@1agh/maude 2.0.0 → 2.0.1

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 z_t=Object.create;var{getPrototypeOf:F_t,defineProperty:LO,getOwnPropertyNames:B_t}=Object;var Mme=Object.prototype.hasOwnProperty;function j_t(e){return this[e]}var U_t,H_t,W_t=(e,t,n)=>{var o=e!=null&&typeof e==="object";if(o){var r=t?U_t??=new WeakMap:H_t??=new WeakMap,a=r.get(e);if(a)return a}n=e!=null?z_t(F_t(e)):{};let s=t||!e||!e.__esModule||!Mme.call(e,"default")?LO(n,"default",{value:e,enumerable:!0}):n;if(e&&typeof e==="object"||typeof e==="function"){for(let l of B_t(e))if(!Mme.call(s,l))LO(s,l,{get:j_t.bind(e,l),enumerable:!0})}if(o)r.set(e,s);return s};var V_t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var G_t=(e)=>e;function q_t(e,t){this[e]=G_t.bind(null,t)}var hW=(e,t)=>{for(var n in t)LO(e,n,{get:t[n],enumerable:!0,configurable:!0,set:q_t.bind(t,n)})};var Ve=(e,t,n)=>()=>{if(e)try{t=e(e=0)}catch(o){n=[o]}if(n)throw n[0];return t};var Ome=(e,t,n)=>{for(var o in t)LO(e,o,{get:t[o],set:n[o],enumerable:!0,configurable:!0})},K0=((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 ha={};Ome(ha,{Activity:()=>Vme,Children:()=>e2,Component:()=>DO,Fragment:()=>Fs,Profiler:()=>Gme,PureComponent:()=>qme,StrictMode:()=>Kme,Suspense:()=>Yme,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>Z0,__COMPILER_RUNTIME:()=>Xme,cache:()=>Zme,cacheSignal:()=>Jme,cloneElement:()=>Ec,createContext:()=>ll,createElement:()=>tr,createRef:()=>Qme,forwardRef:()=>Ln,isValidElement:()=>Bs,lazy:()=>ehe,memo:()=>Fr,startTransition:()=>the,unstable_useCacheRefresh:()=>nhe,use:()=>SW,useActionState:()=>ohe,useCallback:()=>ee,useContext:()=>Mr,useDebugValue:()=>_W,useDeferredValue:()=>rhe,useEffect:()=>M,useEffectEvent:()=>ahe,useId:()=>Sa,useImperativeHandle:()=>she,useInsertionEffect:()=>t2,useLayoutEffect:()=>Zn,useMemo:()=>pe,useOptimistic:()=>ihe,useReducer:()=>zO,useRef:()=>U,useState:()=>T,useSyncExternalStore:()=>qe,useTransition:()=>lhe,version:()=>FO},{Activity:(Z1n)=>Vme=Z1n,Children:(Z1n)=>e2=Z1n,Component:(Z1n)=>DO=Z1n,Fragment:(Z1n)=>Fs=Z1n,Profiler:(Z1n)=>Gme=Z1n,PureComponent:(Z1n)=>qme=Z1n,StrictMode:(Z1n)=>Kme=Z1n,Suspense:(Z1n)=>Yme=Z1n,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:(Z1n)=>Z0=Z1n,__COMPILER_RUNTIME:(Z1n)=>Xme=Z1n,cache:(Z1n)=>Zme=Z1n,cacheSignal:(Z1n)=>Jme=Z1n,cloneElement:(Z1n)=>Ec=Z1n,createContext:(Z1n)=>ll=Z1n,createElement:(Z1n)=>tr=Z1n,createRef:(Z1n)=>Qme=Z1n,forwardRef:(Z1n)=>Ln=Z1n,isValidElement:(Z1n)=>Bs=Z1n,lazy:(Z1n)=>ehe=Z1n,memo:(Z1n)=>Fr=Z1n,startTransition:(Z1n)=>the=Z1n,unstable_useCacheRefresh:(Z1n)=>nhe=Z1n,use:(Z1n)=>SW=Z1n,useActionState:(Z1n)=>ohe=Z1n,useCallback:(Z1n)=>ee=Z1n,useContext:(Z1n)=>Mr=Z1n,useDebugValue:(Z1n)=>_W=Z1n,useDeferredValue:(Z1n)=>rhe=Z1n,useEffect:(Z1n)=>M=Z1n,useEffectEvent:(Z1n)=>ahe=Z1n,useId:(Z1n)=>Sa=Z1n,useImperativeHandle:(Z1n)=>she=Z1n,useInsertionEffect:(Z1n)=>t2=Z1n,useLayoutEffect:(Z1n)=>Zn=Z1n,useMemo:(Z1n)=>pe=Z1n,useOptimistic:(Z1n)=>ihe=Z1n,useReducer:(Z1n)=>zO=Z1n,useRef:(Z1n)=>U=Z1n,useState:(Z1n)=>T=Z1n,useSyncExternalStore:(Z1n)=>qe=Z1n,useTransition:(Z1n)=>lhe=Z1n,version:(Z1n)=>FO=Z1n});function rCt(e){if(e===null||typeof e!=="object")return null;return e=Lme&&e[Lme]||e["@@iterator"],typeof e==="function"?e:null}function X0(e,t,n){this.props=e,this.context=t,this.refs=Ume,this.updater=n||Bme}function Hme(){}function vW(e,t,n){this.props=e,this.context=t,this.refs=Ume,this.updater=n||Bme}function bW(){}function xW(e,t,n){var o=n.ref;return{$$typeof:yW,type:e,key:t,ref:o!==void 0?o:null,props:n}}function aCt(e,t){return xW(e.type,t,e.props)}function kW(e){return typeof e==="object"&&e!==null&&e.$$typeof===yW}function sCt(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}function gW(e,t){return typeof e==="object"&&e!==null&&e.key!=null?sCt(""+e.key):t.toString(36)}function iCt(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(bW,bW):(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 Y0(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 yW:case K_t:s=!0;break;case Fme:return s=e._init,Y0(s(e._payload),t,n,o,r)}}if(s)return r=r(e),s=o===""?"."+gW(e,0):o,Pme(r)?(n="",s!=null&&(n=s.replace(Dme,"$&/")+"/"),Y0(r,t,n,"",function(u){return u})):r!=null&&(kW(r)&&(r=aCt(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(Dme,"$&/")+"/")+s)),t.push(r)),1;s=0;var l=o===""?".":o+":";if(Pme(e))for(var c=0;c<e.length;c++)o=e[c],a=l+gW(o,c),s+=Y0(o,t,n,a,r);else if(c=rCt(e),typeof c==="function")for(e=c.call(e),c=0;!(o=e.next()).done;)o=o.value,a=l+gW(o,c++),s+=Y0(o,t,n,a,r);else if(a==="object"){if(typeof e.then==="function")return Y0(iCt(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 PO(e,t,n){if(e==null)return e;var o=[],r=0;return Y0(e,o,"","",function(a){return t.call(n,a,r++)}),o}function lCt(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 yW,K_t,Y_t,X_t,Z_t,J_t,Q_t,eCt,tCt,nCt,Fme,oCt,Lme,Bme,jme,Ume,wW,Pme,Ea,Wme,Dme,zme,cCt,Vme,e2,DO,Fs,Gme,qme,Kme,Yme,Z0,Xme,Zme=function(e){return function(){return e.apply(null,arguments)}},Jme=function(){return null},Ec=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=jme({},e.props),r=e.key;if(t!=null)for(a in t.key!==void 0&&(r=""+t.key),t)!Wme.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 xW(e.type,r,o)},ll=function(e){return e={$$typeof:Q_t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:J_t,_context:e},e},tr=function(e,t,n){var o,r={},a=null;if(t!=null)for(o in t.key!==void 0&&(a=""+t.key),t)Wme.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 xW(e,a,r)},Qme=function(){return{current:null}},Ln=function(e){return{$$typeof:eCt,render:e}},Bs,ehe=function(e){return{$$typeof:Fme,_payload:{_status:-1,_result:e},_init:lCt}},Fr=function(e,t){return{$$typeof:nCt,type:e,compare:t===void 0?null:t}},the=function(e){var t=Ea.T,n={};Ea.T=n;try{var o=e(),r=Ea.S;r!==null&&r(n,o),typeof o==="object"&&o!==null&&typeof o.then==="function"&&o.then(bW,zme)}catch(a){zme(a)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ea.T=t}},nhe=function(){return Ea.H.useCacheRefresh()},SW=function(e){return Ea.H.use(e)},ohe=function(e,t,n){return Ea.H.useActionState(e,t,n)},ee=function(e,t){return Ea.H.useCallback(e,t)},Mr=function(e){return Ea.H.useContext(e)},_W=function(){},rhe=function(e,t){return Ea.H.useDeferredValue(e,t)},M=function(e,t){return Ea.H.useEffect(e,t)},ahe=function(e){return Ea.H.useEffectEvent(e)},Sa=function(){return Ea.H.useId()},she=function(e,t,n){return Ea.H.useImperativeHandle(e,t,n)},t2=function(e,t){return Ea.H.useInsertionEffect(e,t)},Zn=function(e,t){return Ea.H.useLayoutEffect(e,t)},pe=function(e,t){return Ea.H.useMemo(e,t)},ihe=function(e,t){return Ea.H.useOptimistic(e,t)},zO=function(e,t,n){return Ea.H.useReducer(e,t,n)},U=function(e){return Ea.H.useRef(e)},T=function(e){return Ea.H.useState(e)},qe=function(e,t,n){return Ea.H.useSyncExternalStore(e,t,n)},lhe=function(){return Ea.H.useTransition()},FO="19.2.7";var ae=Ve(()=>{yW=Symbol.for("react.transitional.element"),K_t=Symbol.for("react.portal"),Y_t=Symbol.for("react.fragment"),X_t=Symbol.for("react.strict_mode"),Z_t=Symbol.for("react.profiler"),J_t=Symbol.for("react.consumer"),Q_t=Symbol.for("react.context"),eCt=Symbol.for("react.forward_ref"),tCt=Symbol.for("react.suspense"),nCt=Symbol.for("react.memo"),Fme=Symbol.for("react.lazy"),oCt=Symbol.for("react.activity"),Lme=Symbol.iterator;Bme={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jme=Object.assign,Ume={};X0.prototype.isReactComponent={};X0.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")};X0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};Hme.prototype=X0.prototype;wW=vW.prototype=new Hme;wW.constructor=vW;jme(wW,X0.prototype);wW.isPureReactComponent=!0;Pme=Array.isArray;Ea={H:null,A:null,T:null,S:null},Wme=Object.prototype.hasOwnProperty;Dme=/\/+/g;zme=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)},cCt={map:PO,forEach:function(e,t,n){PO(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return PO(e,function(){t++}),t},toArray:function(e){return PO(e,function(t){return t})||[]},only:function(e){if(!kW(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Vme=oCt,e2=cCt,DO=X0,Fs=Y_t,Gme=Z_t,qme=vW,Kme=X_t,Yme=tCt,Z0=Ea,Xme={__proto__:null,c:function(e){return Ea.H.useMemoCache(e)}},Bs=kW});function che(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 xb(){}function dCt(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:uCt,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}var n2,uCt,CW,AW,Gf=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(che(299));return dCt(e,t,null,n)},NW=function(e){var t=CW.T,n=n2.p;try{if(CW.T=null,n2.p=2,e)return e()}finally{CW.T=t,n2.p=n,n2.d.f()}};var uhe=Ve(()=>{ae();n2={d:{f:xb,r:function(){throw Error(che(522))},D:xb,C:xb,L:xb,m:xb,X:xb,S:xb,M:xb},p:0,findDOMNode:null},uCt=Symbol.for("react.portal");CW=Z0;AW=n2});function dhe(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dhe)}catch(e){console.error(e)}}var qf=Ve(()=>{uhe();dhe()});function Hh(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 uT(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 bq(e){return(e??[]).slice(0,3).map((t)=>Hh(t,"(unnamed)"))}function r2t(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 a2t(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(Kb(a)&&a.kind==="body-rejected")t.sourceSlugs.push(typeof a.slug==="string"?a.slug:"(unnamed)")}if(o!==void 0)if(!Kb(o))t.unreadable=!0;else{for(let l of["synced","pulled","conflicts","pushed","failed"])if(o[l]!==void 0&&!em(o[l]))t.unreadable=!0;if(em(o.failed))t.failedFiles=o.failed;if(Array.isArray(o.held))for(let l of o.held){if(Kb(l)&&(l.kind==="hub-older"||l.kind==="hub-refused"))continue;t.held+=Kb(l)&&em(l.count)?l.count:1}let a=0;if(Kb(o.rateLimited)){if(t.paused=!0,em(o.rateLimited.waiting))a=o.rateLimited.waiting;if(a>0)t.failedFiles=0}let s=o.progress;if(Kb(s)){if(Array.isArray(s.blocked))for(let l of s.blocked){if(!Kb(l)||!em(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=em(s.delivered)&&em(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(!Kb(r))t.unreadable=!0;else{if(em(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:em(r.done)?r.done:0,total:em(r.total)?r.total:0}}}return t}function ic(e,t={}){if(!e||e.linked===!1)return null;let n=Hh(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=(A=!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:A?"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 A=e.tsxCount??0;return{phase:"nothing-syncable",online:!1,label:`0 syncable${A>0?` · ${A} tsx`:""}`,title:e.reason?Hh(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=a2t(e),p=(A)=>{let C=[],E=0,R=(W,B)=>{if(W<=0)return;C.push(B),E+=W},L=d.sourceSlugs.length;if(R(L,`${H1(L,"source change")} ${L===1?"was":"were"} not applied`),!A)R(d.failedFiles,`${H1(d.failedFiles,"file")} could not be delivered`),R(d.tooLarge,`${H1(d.tooLarge,"file")} ${d.tooLarge===1?"is":"are"} too large to sync`),R(d.blockedOther,`${H1(d.blockedOther,"file")} ${d.blockedOther===1?"is":"are"} blocked`),R(d.held,`${H1(d.held,"change")} ${d.held===1?"is":"are"} held for your decision`),R(d.failedMedia,`${H1(d.failedMedia,"media upload")} failed`);if(E===0)return null;return{phase:"attention",online:!1,label:`${E} to review`,title:`${E===1?"A change needs":`${E} 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:bq(d.sourceSlugs)}},f=r2t(e.docs),h=e.docs!==void 0&&f===null;if(f&&f.rejected>0){let A=f.synced+f.pending+f.rejected;return{phase:"refused",online:!1,label:`${f.rejected} refused`,title:`${f.rejected} of ${A} canvas${A===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:bq(e.rejectedSlugs)}}let g=i2t(e.accepted);if(g){let A=g.pending;return{phase:"refused",online:!1,label:"sign in again",title:`${n} no longer accepts your sign-in — `+(A>0?`${A} change${A===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 A=p(u);if(A)return A}let b=e.parked?.since;if(typeof b==="number"&&Number.isFinite(b)&&b>0){let A=p(!1);if(A)return A;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 A=e.state==="online"||e.flash==="synced";if(!A&&s)return a(!0);let C=A?p(!1):null;if(C)return C;return{phase:A?"synced":"connecting",online:A,label:A?l>0?`${l} ↑`:"synced":"connecting…",title:A?`Syncing with ${n}.${c}`:`Connecting to ${n}…`,next:A?null:"Nothing to do — this usually takes a moment.",names:[]}}let w=f.synced+f.pending+f.rejected;if(w===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 v=l2t(e.aiAction);if(v?.state==="held"){let A=v.canvases;return{phase:"attention",online:!0,label:"AI edit held",title:`An unfinished AI edit to ${A} canvas${A===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 A=f.synced>0;if(!A&&s)return a();return{phase:A?"syncing":"connecting",online:!1,label:A?`${f.synced}/${w}`:"connecting…",title:A?`Syncing with ${n} — ${f.synced} of ${w} canvas${w===1?"":"es"} so far.`:`Connecting to ${n}…`,next:"Nothing to do — this usually takes a moment.",names:[]}}if(d.moving){let A=d.moving,C="media"in A?`uploading media (${A.media.done} of ${A.media.total})`:A.tracked>0?`files ${A.delivered} of ${A.tracked} delivered`:"checking project files";return{phase:"syncing",online:!0,label:"media"in A?"media ↑":A.tracked>0?`${A.delivered}/${A.tracked} files`:"files…",title:`Syncing with ${n} — all ${w} canvas${w===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(v?.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=s2t(e.accepted);if(x){let A=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}`+(A>=10?` — the oldest has waited ${A} s.`:".")+" They are kept on this device until the project confirms them.",next:A>=60?"Maude keeps trying. If this persists, check your connection.":null,names:[]}}let S=e.pulled?.count,_=typeof S==="number"&&Number.isInteger(S)&&S>=0?Math.min(S,w):0;return{phase:"synced",online:!0,label:l>0?`${l} ↑`:"synced",title:`Synced with ${n} — all ${w} canvas${w===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?bq(e.pulled?.names):[]}}function s2t(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 i2t(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 l2t(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 em=(e)=>typeof e==="number"&&Number.isInteger(e)&&e>=0,Kb=(e)=>e!==null&&typeof e==="object"&&!Array.isArray(e),H1=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`;function Yb(e,t){let n=e?.access;if(!n||typeof n!=="object")return e?.cloud?.role??void 0;let o=(l,c)=>l===null||Ld[c]>Ld[l]?c:l,r=(Array.isArray(n.grants)?n.grants:[]).filter((l)=>typeof l?.r==="string"&&(l.r in Ld)),a=typeof n.role==="string"&&n.role in Ld?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 jve(e,t){if(Hve(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(Ld[n.role]>=wq)return!0;return(Array.isArray(n.grants)?n.grants:[]).some((o)=>o?.c===t&&Ld[o?.r]>=wq)}function Uve(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 _P(e,t){return!jve(e,Uve(e,t))}function rx(e){let t=e?.access;return!!t&&typeof t==="object"&&t.role==null&&Array.isArray(t.grants)&&t.grants.length>0}function CP(e,t){if(!Hve(e)||e.formatGate||!t)return!1;return(Array.isArray(e.access?.grants)?e.access.grants:[]).some((n)=>n?.c===t&&Ld[n?.r]>=wq)}function Wve(e,t){let n=Uve(e,t),o=!jve(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&&Ld[s?.r]>=Ld.viewer),a=!!e.canComment||r;return{ro:o,cm:a,...a&&e.formatGate?{cg:!0}:{}}}function zve(e){let t=typeof e==="string"?e.trim():"";if(!t)return"";return t.split(/\s+/)[0]}function Lu(e){if(typeof e!=="string"||!e)return"";return(e.split("/").pop()||e).replace(/\.(tsx|jsx|html)$/i,"")}function Dp(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 Sq(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 f2t({canvas:e=null}={},t=fetch){let o=await Sq(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:nr.asked};if(o.status===202&&o.body?.queued)return{ok:!0,state:"queued",words:dT({error:o.body.words},nr.queued)};if(r==="pending")return{ok:!0,state:"pending",words:dT(o.body,nr.asked)};if(r==="already-can-edit")return{ok:!0,state:"already",words:nr.alreadyCan};if(o.status===429)return{ok:!1,state:"limited",words:dT(o.body,nr.unavailable)};if(r==="not-linked")return{ok:!1,state:"not-linked",words:nr.notLinked};if(o.status===404||o.status===405)return{ok:!1,state:"not-linked",words:nr.notLinked};if(o.status===0||o.status>=500)return{ok:!1,state:"unavailable",words:nr.unavailable};return{ok:!1,state:"refused",words:dT(o.body,nr.notLinked)}}async function Gve(e=fetch){let t=await Sq(e,"GET","/_api/share/requests");return t.status===200&&Array.isArray(t.body?.requests)?t.body.requests:[]}async function SP(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:nr.answered};let o=await Sq(n,"POST",`/_api/share/requests/${encodeURIComponent(e)}/${t}`,{});if(o.status>=200&&o.status<300)return{ok:!0,words:""};return{ok:!1,words:dT(o.body,nr.answered)}}function m2t(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 _q(e,t){if(e!==401)return null;let n=m2t(e,t);return n&&(n.kind==="link-off"||n.kind==="ended")?n:null}function qve(e,t){let n=e?.fetch;if(typeof n!=="function"||n[Fve])return()=>{};let o=async(...r)=>{let a=await n.apply(e,r);try{if(a?.status===401&&h2t(r[0],e.location?.origin)&&(a.headers?.get?.("content-type")??"").includes("json"))a.clone().json().then((s)=>{let l=_q(401,s);if(l)t(l)}).catch(()=>{})}catch{}return a};return o[Fve]=!0,e.fetch=o,()=>{if(e.fetch===o)e.fetch=n}}function g2t(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=vq(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 b2t(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:nr.asksToEdit(t,n?Lu(n):""),action:nr.review}}function Kve(e){if(e?.type==="access")return g2t({type:"maude.access",change:e.change,reason:e.reason,by:e.by,role:e.role});if(e?.type==="access-request"){let t=b2t({type:"maude.access-request",id:e.id,from:e.from,canvas:e.canvas});return t?{kind:"request",...t}:null}return null}function Tq(e){let t=typeof e==="string"&&e?e:null;if(t===xq)return;xq=t;for(let n of kq)n()}function Xve(e){return kq.add(e),()=>kq.delete(e)}function Zve(e,t=(...n)=>fetch(...n)){return{"share.ask-to-edit":async()=>{let n=Dp(e.activePath,e.designRel),o=await f2t({canvas:n},t);return e.toast?.(o.words,o.ok),o},"share.request-approve":async(n)=>{let o=await SP(n?.id,"approve",t);if(!o.ok)e.toast?.(o.words);return o},"share.request-decline":async(n)=>{let o=await SP(n?.id,"decline",t);if(!o.ok)e.toast?.(o.words);return o}}}var p2t,vq=(e)=>typeof e==="string"&&p2t[e]||"",Ld,W1=(e)=>typeof e==="string"&&(e in Ld)?Ld[e]:void 0,Bve=(e,t)=>Yb(e,t)==="observer",wq,Hve=(e)=>!!e?.cloud&&!e.canvasToken&&rx(e),Vve=(e)=>e?.canComment===!0&&!e.formatGate,nr,dT=(e,t)=>typeof e?.error==="string"&&e.error&&e.error.length<=200?e.error:t,Cq,Aq,Nq=(e,t)=>e==="observer"&&!t?.ended&&!t?.linkOff,Fve,h2t=(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}/`))},pT="maude:access-frame",fT="maude:view-only-gesture",xq=null,kq,Yve=()=>xq;var Vs=Ve(()=>{p2t=Object.freeze({owner:"Owner",member:"Can edit",viewer:"Can comment",observer:"Can view"}),Ld=Object.freeze({observer:0,viewer:1,member:2,owner:3});wq=Ld.member;nr=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 ${zve(e)||"them"} edit`,notNow:"Not now",review:"Review",raised:(e)=>`You can edit ${e||"this project"} now.`,narrowedTo:(e,t)=>`${zve(e)||"Someone"} changed you to ${vq(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",sharedWithYou:(e)=>`Shared with you · ${vq(e)}`,onlyOne:(e)=>`Only ${e} was shared with you.`,onlyMany:(e)=>`Only these ${e} canvases were shared with you.`});Cq=Object.freeze({path:"/_health",ms:30000}),Aq=Object.freeze({path:"/_api/share/me",ms:60000}),Fve=Symbol.for("maude.access.refusal-watch");kq=new Set});function hwe(e=globalThis.window){zq=!0,e?.dispatchEvent?.(new CustomEvent("maude:open-trash"))}function Uq(){let e=zq;return zq=!1,e}function sx(e,t=globalThis.window){Fq.push(e),t?.dispatchEvent?.(new CustomEvent(IP))}function gwe(){let e=Fq;return Fq=[],e}function Wh(e,t,n,o=globalThis.window){o?.dispatchEvent?.(new CustomEvent(mT,{detail:{op:e,path:t,label:n}}))}function ix(e,t,n=globalThis.window){n?.dispatchEvent?.(new CustomEvent(mT,{detail:{op:"jump",path:e,artboardId:t}}))}function bwe(e=globalThis.window){Bq=!0,e?.dispatchEvent?.(new CustomEvent(EP))}function ywe(){let e=Bq;return Bq=!1,e}var jq="maude:open-trash",zq=!1,IP="maude:canvases-op",Fq,mT="maude:canvas-op",EP="maude:focus-selector",Bq=!1;var zp=Ve(()=>{Fq=[]});var Dd=(...e)=>e,lx;var $P=Ve(()=>{lx=Object.freeze([{id:"kanban",title:"Kanban",desc:"To do · Doing · Done",thumb:"kanban",board:{groups:[{title:"To do",cards:Dd("","")},{title:"Doing",cards:Dd("")},{title:"Done",cards:Dd("")}]}},{id:"retro",title:"Retro",desc:"Went well · To improve · Actions",thumb:"retro",board:{groups:[{title:"Went well",cards:Dd("","")},{title:"To improve",cards:Dd("","")},{title:"Actions",cards:Dd("")}]}},{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:Dd("")}))}},{id:"roadmap",title:"Roadmap",desc:"One column a month",thumb:"road",board:{groups:[{title:"This month",cards:Dd("","")},{title:"Next month",cards:Dd("","")},{title:"The month after",cards:Dd("")}]}},{id:"brainstorm",title:"Brainstorm",desc:"A topic and ideas round it",thumb:"brain",board:{title:"Topic",layout:"radial",groups:[{title:"Ideas",cards:Dd("","","","","","")}]}},{id:"checklist",title:"Checklist",desc:"One section, ticks",thumb:"check",board:{groups:[{title:"Checklist",cards:Dd("☐","☐","☐","☐")}]}},{id:"blank",title:"Blank section",desc:"Draw it, name it",thumb:"blank",board:{groups:[{title:"Section"}]}}])});var hT,gT,vwe;var wwe=Ve(()=>{hT={shell:["desktop"],minRole:"edit"},gT={hidden:!0},vwe=[{id:"ai.runs.list",label:"AI runs",kind:"command",icon:"sparkle",exec:"shell",visible:hT,search:gT},{id:"ai.stop",label:"Stop",kind:"command",exec:"shell",visible:hT,search:gT},{id:"ai.cancel-waiting",label:"Cancel the waiting prompt",kind:"command",exec:"shell",visible:hT,search:gT},{id:"ai.run-on-copy",label:"Run on a copy",kind:"command",exec:"shell",visible:hT,search:gT},{id:"ai.keep-going",label:"Keep going",kind:"command",exec:"shell",visible:hT,search:gT}]});function kwe(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(L2t[a.toLowerCase()]),""));for(;;){t=t.replace(/^\s+/,"");let r=RP.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(MP[o])o=MP[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 RP.filter((r)=>n.has(r)).join("")+o}function G1(e){let t=kwe(e);if(!t)throw Error(`actions/keys: '${e}' is not a key chord`);return t}function q1(e){let t=new Set;if(e.metaKey||e.ctrlKey)t.add("⌘");if(e.altKey)t.add("⌥");let n=e.key??"";if(MP[n])n=MP[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]:P2t[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)||xwe.has(n)||/^F\d/.test(n);if(e.shiftKey&&r)t.add("⇧");return RP.filter((a)=>t.has(a)).join("")+n}function Swe(e){let{mods:t,key:n}=Cwe(e);if(t.some((o)=>o!=="⇧"))return!1;if(xwe.has(n)||/^F\d{1,2}$/.test(n))return!1;return n.length===1}function _we(e){return e.includes("⌘")||e.includes("⌃")}function Cwe(e){let t=[],n=e;for(;;){let o=RP.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 tm(e,t={}){let{mods:n,key:o}=Cwe(kwe(e)??e),r=o==="="&&n.includes("⌘")?"+":o;return t.spaced?[...n,r].join(" "):n.join("")+r}var RP,MP,xwe,L2t,P2t,Awe,Nwe;var Fp=Ve(()=>{RP=["⌃","⌥","⇧","⌘"],MP={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","-":"−","–":"−"},xwe=new Set(["↵","esc","Space","tab","⌫","⌦","←","→","↑","↓","Home","End","PageUp","PageDown"]),L2t={cmd:"⌘",command:"⌘",meta:"⌘",ctrl:"⌃",control:"⌃",alt:"⌥",opt:"⌥",option:"⌥",shift:"⇧"};P2t={Minus:"−",Equal:"=",Slash:"/",Backslash:"\\",BracketLeft:"[",BracketRight:"]",Comma:",",Period:".",Semicolon:";",Quote:"'",Backquote:"`",Space:"Space"};Awe=new Set(["⌘Z","⇧⌘Z","⌘Y","⌘A","⌘C","⌘X","⌘V","⇧⌘V","⌥⇧⌘V","⌘B","⌘I","⌘U","⌘←","⌘→","⌘↑","⌘↓","⇧⌘←","⇧⌘→","⌥←","⌥→","⌘⌫","⌥⌫"].map(G1)),Nwe=new Set(["⌘N","⇧⌘N","⌘T","⌘W","⌘Q","⌘L"].map(G1))});function Ht(e,t,n={}){return{chord:G1(e),layer:t,...n}}function Ur(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=Ht(l+e,n,o);a.push(s===0?c:{...c,alias:!0})}return a}var zd,bT,OP,zc,cx;var Fd=Ve(()=>{Fp();zd=["chrome","timeline","text"],bT={focus:["chrome","timeline"],notFacts:["rangeFocused"]},OP={notFacts:["selectFocused"]},zc={focus:["canvas"]},cx={focus:["canvas","text"]}});var Vh,Zb,Fc=(e,t,n)=>({id:e,label:t,kind:"command",exec:"canvas",keys:n}),Twe,Iwe,Ewe;var $we=Ve(()=>{$P();Fd();Vh={...zc,selection:["annotation"]},Zb={...Vh,mode:["preview"]},Twe=[Fc("annotation.group","Group",[Ht("⌘G","selection",{when:Zb})]),Fc("annotation.ungroup","Ungroup",[Ht("⇧⌘G","selection",{when:Zb})]),Fc("annotation.lock","Lock / unlock",[Ht("⇧⌘L","selection",{when:Zb})]),Fc("annotation.duplicate","Duplicate",[Ht("⌘D","selection",{when:Vh})]),Fc("annotation.to-front","Bring to front",[Ht("]","selection",{when:Zb})]),Fc("annotation.forward","Bring forward",[Ht("⌘]","selection",{when:Zb})]),Fc("annotation.to-back","Send to back",[Ht("[","selection",{when:Zb})]),Fc("annotation.backward","Send backward",[Ht("⌘[","selection",{when:Zb})]),Fc("annotation.copy","Copy",[Ht("⌘C","selection",{when:Vh})]),Fc("annotation.cut","Cut",[Ht("⌘X","selection",{when:Vh})]),Fc("annotation.chain","Add the next one",[Ht("⌘↵","selection",{when:Vh})]),Fc("annotation.edit-text","Edit text",[Ht("↵","selection",{when:Vh})]),Fc("annotation.nudge","Nudge",["←","→","↑","↓"].flatMap((e)=>Ur(e,"⇧","selection",{when:Vh}))),Fc("annotation.remove","Remove",[...Ur("⌫","⇧","selection",{when:Vh}),...Ur("⌦","⇧","selection",{when:Vh})]),{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:[Ht("⌘/","selection",{when:Zb})],search:{keywords:["ask ai","sticky","section","selection"]}}],Iwe=[{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"]}}],Ewe=lx.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 Rwe,Mwe;var Owe=Ve(()=>{Fd();Rwe={focus:["chrome","timeline","canvas"],notFacts:["rangeFocused"]},Mwe=[{id:"settings.open",label:"Settings…",kind:"command",icon:"sliders",exec:"shell",fromCanvas:!0,keys:[Ht("⌘,","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:"Sign in as another account…",kind:"command",exec:"shell",visible:{shell:["desktop","cloud"]}},{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:[Ht("⌘/","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:[Ht("?","global",{inText:!1,when:Rwe}),Ht("⌘?","global",{inText:!1,alias:!0,when:Rwe})],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:Ur("F1","⌥⇧⌘","global",{inText:!1,when:bT}),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 Lwe;var Pwe=Ve(()=>{Fd();Lwe=[{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:[Ht("⌘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:[Ht("⌘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 dx(e,t,n){return{id:`chat.advanced.${e}`,label:t,kind:"command",exec:"shell",visible:Hq,search:{keywords:n,where:"AI chat panel › Advanced"}}}var Hq,ux,nm,Dwe;var zwe=Ve(()=>{Hq={shell:["desktop"]},ux={shell:["desktop"],minRole:"edit"},nm={hidden:!0};Dwe=[{id:"chat.new",label:"New chat",kind:"command",icon:"plus",exec:"shell",visible:Hq,search:nm},{id:"chat.rename",label:"Rename…",kind:"command",exec:"shell",visible:ux,search:nm},{id:"chat.archive",label:"Archive",kind:"command",exec:"shell",visible:ux,search:nm},{id:"chat.trash",label:"Move to trash",kind:"command",icon:"trash",exec:"shell",visible:ux,search:nm},{id:"chat.undo",label:"Undo this chat",kind:"command",exec:"shell",visible:ux,search:nm},{id:"chat.copy-transcript",label:"Copy transcript",kind:"command",exec:"shell",visible:Hq,search:nm},{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"}},dx("ask-before","Permissions",["ask before","mode","permission","plan","suggest only","bypass","auto"]),dx("model","Model",["opus","sonnet","haiku","claude"]),dx("effort","Effort",["thinking","think harder","low","high"]),dx("fast-mode","Fast mode",["fast","speed"]),dx("show-in-chat","Show in chat",["verbose","thinking","transcript","detail","view"]),dx("suggestions","Suggestions",["chips","suggest","quick"]),dx("raw-log","Raw log",["tool log","tools","calls","debug","log"]),{id:"ai.attach-files",label:"Attach files…",kind:"command",icon:"file",exec:"shell",visible:ux,search:nm},{id:"ai.attach-folder",label:"Choose a folder…",kind:"command",icon:"folder",exec:"shell",visible:{shell:["desktop"],minRole:"edit",facts:["native"]},search:nm},{id:"ai.attach-assets",label:"From Assets",kind:"command",icon:"image",exec:"shell",visible:ux,search:nm},{id:"ai.attach-screenshot",label:"Paste a screenshot",kind:"command",exec:"shell",visible:ux,search:nm}]});var Bp=(e,t,n={})=>({id:e,label:t,kind:"command",exec:"shell",...n}),Fwe;var Bwe=Ve(()=>{Fwe=[Bp("diag.sync","Sync"),Bp("diag.server","Server"),Bp("diag.ai","AI setup"),Bp("diag.logs","Logs"),Bp("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"}},Bp("diag.ai-recheck","Check AI setup again"),Bp("diag.address","Address"),Bp("diag.process","Process"),Bp("diag.project-folder","Project folder"),Bp("sync.resync","Resync now",{visible:{minRole:"edit"},enabled:{facts:["online"]}}),Bp("sync.download-all","Download all",{enabled:{facts:["online"]}})]});var jwe,D2t,yT,Uwe,dr=(e,t,n=jwe)=>({id:e,label:t,kind:"command",exec:"shell",visible:n,search:Uwe}),Hwe;var Wwe=Ve(()=>{jwe={minRole:"edit"},D2t={minRole:"owner"},yT={minRole:"view"},Uwe={hidden:!0},Hwe=[dr("ds.publish","Update canvases"),dr("ds.cancel-pending","Cancel"),dr("ds.keep-outside","Keep"),dr("ds.undo-outside","Undo"),dr("ds.pick","Use this"),dr("ds.canvas-update","Update"),dr("ds.canvas-leave","Keep this version"),dr("ds.trash-token","Move to Trash"),dr("ds.restore-token","Restore"),dr("ds.clear-token","Clear out",D2t),dr("ds.open","Design system",yT),dr("ds.set-theme-preview","Show the system in Light or Dark",yT),dr("ds.show-reach","Show where it lands",yT),dr("ds.review-update","Update for every canvas…"),dr("ds.go-to","Go to the design system",yT),dr("ds.instance-update","Update to the current look"),dr("ds.set-token","Change a token"),dr("ds.set-dark-follows","Dark follows Light"),dr("ds.set-master","Change a component"),dr("ds.make","Make a design system"),dr("ds.draft","Write a direction"),dr("ds.use-direction","Use this direction"),dr("ds.mix","Mix directions"),dr("ds.make-done","Finish the design system"),dr("ds.set-default","Use for new canvases"),dr("ds.rename","Rename…"),dr("ds.switch","Switch canvases to another system…"),dr("ds.preview","Preview in another system…",yT),dr("ds.convert","Turn into a Design system canvas"),dr("ds.convert-restore","Restore the system folder"),dr("ds.fix-contrast","Lighten to 4.5:1"),dr("ds.add-colour","Add it to the system"),dr("ds.use-nearest","Use the system colour"),dr("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:Uwe},dr("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:jwe,search:{keywords:["team","library","share","shared","brand kit","design system"]}},dr("ds.library-update","Update from the library"),dr("ds.library-unlink","Unlink the library")]});var Vwe,Gwe,qwe,In,ji,Wq,Jb=(e,t={})=>Ht(e,"selection",{when:Wq,...t}),Qb=(e,t,n)=>({id:e,label:t,kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},...n.length?{keys:n}:{}}),Kwe;var Ywe=Ve(()=>{Fd();Vwe={focus:["chrome"],facts:["canvasOpen"],notFacts:["rangeFocused"]},Gwe={when:OP,inText:!1},qwe={focus:["chrome","timeline"],facts:["canvasOpen"],notFacts:["rangeFocused"]},In={minRole:"edit"},ji=zc,Wq={...ji,mode:["edit"],selection:["object"]},Kwe=[{id:"edit.undo",label:"Undo",kind:"command",exec:"canvas",enabled:In,keys:[Ht("⌘Z","global",{inText:!1,when:Vwe}),Ht("⌘Z","timeline",Gwe),Ht("⌘Z","global",{when:zc})],legacy:{menu:"Undo",sheet:"Undo / redo"}},{id:"edit.redo",label:"Redo",kind:"command",exec:"canvas",enabled:In,keys:[Ht("⇧⌘Z","global",{inText:!1,when:Vwe}),Ht("⇧⌘Z","timeline",Gwe),Ht("⌘Y","global",{inText:!1,alias:!0,when:qwe}),Ht("⇧⌘Y","global",{inText:!1,alias:!0,when:qwe}),Ht("⇧⌘Z","global",{when:zc}),Ht("⌘Y","global",{alias:!0,when:zc})],legacy:{menu:"Redo",sheet:"Undo / redo"}},{id:"edit.undo-history",label:"Undo history…",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:{...In,facts:["canvasOpen"]}},{id:"edit.copy",label:"Copy",kind:"command",exec:"shell",visible:{minRole:"comment"},keys:[Ht("⌘C","global",{inText:!0,when:{focus:zd}})]},{id:"edit.cut",label:"Cut",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:In,keys:[Ht("⌘X","global",{inText:!0,when:{focus:zd}})]},{id:"edit.paste",label:"Paste",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:In,keys:[Ht("⌘V","global",{inText:!0,when:{focus:zd}})]},{id:"select.all",label:"Select all",kind:"command",exec:"canvas",visible:{minRole:"comment"},keys:[Ht("⌘A","selection",{when:ji})]},{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:In,keys:[Ht("⇧⌘A","global",{inText:!1,when:zc})],legacy:{menu:"Select all annotations"}},{id:"object.duplicate",label:"Duplicate",kind:"command",exec:"canvas",keys:[Ht("⌘D","selection",{when:{...ji,selection:["object"]}})]},{id:"object.copy",label:"Copy",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},keys:[Ht("⌘C","selection",{when:Wq})],search:{hidden:!0},help:{group:"objects",order:901}},{id:"object.cut",label:"Cut",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},keys:[Ht("⌘X","selection",{when:Wq})],search:{hidden:!0},help:{group:"objects",order:902}},{id:"artboard.copy",label:"Copy artboard",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},keys:[Ht("⌘C","selection",{when:{...ji,mode:["edit"],selection:["artboard"]}})],search:{hidden:!0},help:{group:"objects",order:903}},{id:"canvas.paste",label:"Paste objects",kind:"command",exec:"canvas",enabled:In,search:{keywords:["paste","clipboard","objects","artboard"]}},{id:"edit.copy-properties",label:"Copy properties",kind:"command",exec:"canvas",visible:{minRole:"comment"},keys:Ur("⌥⌘C","⇧","selection",{when:{...ji,selection:["object"]}})},{id:"edit.paste-properties",label:"Paste properties",kind:"command",exec:"canvas",visible:{minRole:"comment"},enabled:In,keys:Ur("⌥⌘V","⇧","selection",{when:{...ji,selection:["object"]}})},{id:"object.enter",label:"Go inside",kind:"command",exec:"canvas",keys:[Ht("↵","selection",{when:{...ji,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:[Ht("⇧↵","selection",{when:{...ji,selection:["object"]}})]},{id:"object.select-next",label:"Select next object",kind:"command",exec:"canvas",keys:[Ht("tab","selection",{when:{...ji,mode:["edit"]}})]},{id:"object.select-prev",label:"Select previous object",kind:"command",exec:"canvas",keys:[Ht("⇧tab","selection",{when:{...ji,mode:["edit"]}})]},{id:"object.remove",label:"Remove",kind:"command",exec:"canvas",keys:[...Ur("⌫","⇧","global",{when:{focus:["chrome","timeline"],notFacts:["selectFocused"]}}),...Ur("⌦","⇧","global",{when:{focus:["chrome","timeline"],notFacts:["selectFocused"]}}),...["⌘⌫","⇧⌘⌫","⌥⌫","⌥⇧⌫","⌥⌘⌫","⌥⇧⌘⌫","⌘⌦","⇧⌘⌦","⌥⌦","⌥⇧⌦","⌥⌘⌦","⌥⇧⌘⌦"].map((e)=>Ht(e,"timeline",{inText:!1,alias:!0,when:{selection:["clip"],notFacts:["selectFocused"]}})),...Ur("⌫","⇧","selection",{when:{...ji,selection:["object"]}}),...Ur("⌦","⇧","selection",{when:{...ji,selection:["object"]}})]},{id:"object.nudge",label:"Nudge",kind:"command",exec:"canvas",keys:["←","→","↑","↓"].flatMap((e)=>Ur(e,"⇧","selection",{when:{...ji,selection:["object","artboard"]}}).map((t)=>t.chord==="←"||t.chord==="→"?{...t,when:{...t.when,notFacts:["selectionHasTakes"]}}:t))},Qb("object.frame","Frame selection",[Jb("⌥⌘G"),Jb("⌘G",{alias:!0})]),Qb("object.unframe","Remove frame",[Jb("⇧⌘G")]),Qb("object.bring-front","Bring to front",[Jb("⌘]")]),Qb("object.bring-forward","Bring forward",[Jb("]")]),Qb("object.send-backward","Send backward",[Jb("[")]),Qb("object.send-back","Send to back",[Jb("⌘[")]),Qb("object.lock","Lock",[Jb("⇧⌘L")]),Qb("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:{...In,selection:["object","artboard"]},search:{keywords:[...n]}})),{id:"object.rotate",label:"Rotate 90°",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{keywords:["rotate","turn","angle"]}},{id:"object.place-freely",label:"Place freely",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{keywords:["absolute","free","position","ignore auto layout","x y"]}},{id:"object.reorder-earlier",label:"Move earlier",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{keywords:["reorder","order","earlier","before","left","up"]}},{id:"object.reorder-later",label:"Move later",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{keywords:["reorder","order","later","after","right","down"]}},{id:"object.reorder-to",label:"Move next to…",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"object.constrain",label:"Constraints",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"layout.set-gap",label:"Set gap",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"layout.convert-to-absolute",label:"Convert children to absolute position",kind:"command",exec:"canvas",enabled:{...In,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:In,search:{hidden:!0}},{id:"artboard.draw",label:"Draw an artboard",kind:"command",exec:"canvas",enabled:In,search:{hidden:!0}},{id:"artboard.insert-preset",label:"Add an artboard",kind:"command",exec:"canvas",enabled:In,search:{hidden:!0}},{id:"object.insert-path",label:"Draw a path",kind:"command",exec:"canvas",enabled:In,search:{hidden:!0}},{id:"path.edit",label:"Edit path points",kind:"command",exec:"canvas",enabled:{...In,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:{...In,selection:["object"]}})),{id:"object.set-corner-radius",label:"Round a corner",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"text.set",label:"Set text",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"text.set-language",label:"Set language",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"text.set-case",label:"Set case",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"text.use-style",label:"Use a style",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"text.reset-style",label:"Reset text style",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{keywords:["reset","override","style","type","font","size"]}},{id:"component.insert",label:"Place a component",kind:"command",exec:"canvas",enabled:{...In},search:{hidden:!0}},{id:"image.place",label:"Place a picture",kind:"command",exec:"canvas",enabled:In,search:{hidden:!0}},{id:"image.crop",label:"Crop",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{keywords:["crop","fit","fill","tile","zoom","picture","image","photo"]}},{id:"image.replace",label:"Replace…",kind:"command",exec:"shell",enabled:{...In,selection:["object"]},search:{keywords:["replace","swap","picture","image","photo"]}},{id:"image.next-take",label:"Next take",kind:"command",exec:"shell",enabled:{...In},keys:[Ht("→","selection",{when:{focus:["chrome"],facts:["selectionHasTakes"]}})],search:{hidden:!0}},{id:"image.prev-take",label:"Previous take",kind:"command",exec:"shell",enabled:{...In},keys:[Ht("←","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:{...In,selection:["object"]},search:{hidden:!0}},{id:"photo.apply-every-use",label:"Apply to every use…",kind:"command",exec:"shell",enabled:{...In,selection:["object"]},search:{keywords:["apply","every","use","all","photo","picture","image","look"]}},{id:"figma.make-editable",label:"Make editable",kind:"command",exec:"shell",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"component.swap-variant",label:"Swap variant or component",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"component.reset",label:"Reset to the main component",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{keywords:["reset","override","instance","component","changes","master"]}},{id:"component.detach",label:"Detach instance",kind:"command",exec:"canvas",enabled:{...In,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:{...In,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:{...In,selection:["object"]}},{id:"element.stamp",label:"Name element",kind:"command",exec:"canvas",enabled:In,search:{hidden:!0}},{id:"artboard.resize",label:"Resize artboard",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.add-width",label:"Add a width",kind:"command",exec:"shell",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.tidy",label:"Tidy up artboards",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{keywords:["tidy","row","even","gaps","arrange","line up"]}},{id:"artboard.duplicate",label:"Duplicate artboard",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},keys:[Ht("⌘D","selection",{when:{...ji,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:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-safe-zones",label:"Set safe zones",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-print",label:"Set paper, size, bleed or margin",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.convert-kind",label:"Change kind",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"warning.fix",label:"Fix what to check",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-print-guides",label:"Print guides on this artboard",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-guides",label:"Set layout guides",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.rename",label:"Rename artboard",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{keywords:["name","label","artboard"]}},{id:"artboard.reset-position",label:"Reset artboard position",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{keywords:["position","grid","back","artboard"]}},{id:"artboard.trash",label:"Move artboard to the trash",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},keys:[...Ur("⌫","⇧","selection",{when:{...ji,selection:["artboard"]}}),...Ur("⌦","⇧","selection",{when:{...ji,selection:["artboard"]}})],search:{keywords:["delete","remove","trash","artboard"]}},{id:"artboard.ask-ai",label:"Ask AI about this artboard",kind:"command",exec:"shell",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"ai.ask-selection",label:"Ask AI about the selection",kind:"command",icon:"sparkle",exec:"canvas",visible:In,enabled:{...In,selection:["object"]},keys:[Ht("⌘/","selection",{when:{...ji,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:{...In,selection:["object"]}},{id:"element.clear-link",label:"Clear link",kind:"command",exec:"shell",enabled:{...In,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:{...In,selection:["object"]}},{id:"element.detach",label:"Detach from shared component",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{...In,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:{...In,mode:["preview","viewing"],selection:["object"]},keys:[Ht("↵","selection",{when:{...ji,mode:["preview","viewing"],selection:["object"]}})],search:{keywords:["inspect","switch","edit mode"]}},{id:"asset.relink",label:"Relink…",kind:"command",exec:"shell",enabled:{...In}}]});var Xwe;var Zwe=Ve(()=>{Fd();Xwe=[{id:"export.open",label:"Export…",kind:"command",icon:"download",exec:"shell",fromCanvas:!0,visible:{minRole:"comment"},keys:[Ht("⇧⌘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:[Ht("⇧⌘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:[Ht("⇧⌘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:"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 wi,Jwe;var Qwe=Ve(()=>{wi={hidden:!0},Jwe=[{id:"history.filter",label:"Filter versions",kind:"command",exec:"shell",search:wi},{id:"history.view-version",label:"View this version",kind:"command",exec:"shell",search:wi},{id:"history.object",label:"Version history of this object",kind:"command",exec:"shell",search:wi},{id:"history.compare",label:"Compare",kind:"command",exec:"shell",search:wi},{id:"history.compare-pictures",label:"Compare pictures",kind:"command",exec:"shell",search:wi},{id:"history.name",label:"Name this version…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.restore",label:"Restore this version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.restore-artboard",label:"Restore only this artboard",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.restore-object",label:"Restore this object",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.go-back",label:"Go back to the last good version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.branch-switch",label:"Switch branch",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.new-branch",label:"New branch…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.fetch",label:"Fetch",kind:"command",exec:"shell",search:wi},{id:"history.publish",label:"Publish",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.save-with-note",label:"Save a version with a note…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.open-pr",label:"Add to main · opens a pull request",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.discard-file",label:"Discard changes to a file",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.continue-draft",label:"Continue on your draft",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.undo-action",label:"Undo this change",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi}]});var Bc,exe;var txe=Ve(()=>{Fd();Bc={shell:["desktop"]},exe=[{id:"project.new",label:"New project…",kind:"command",exec:"shell",visible:{minRole:"comment"},keys:[Ht("⇧⌘N","global",{inText:!0,when:Bc})],native:{menu:"File",order:2}},{id:"project.pull-copy",label:"Pull a local copy…",kind:"command",exec:"shell",visible:{...Bc,minRole:"comment"}},{id:"project.share-github",label:"Share on GitHub…",kind:"command",exec:"shell",visible:{...Bc,minRole:"comment"}},{id:"project.open",label:"Open project…",kind:"command",exec:"native",visible:{minRole:"comment"},keys:[Ht("⌘O","global",{inText:!0,when:Bc})],help:{group:"finding",order:20},native:{menu:"File",order:3}},{id:"home.open",label:"Show Home",kind:"command",exec:"native",keys:[Ht("⌘T","global",{inText:!0,when:Bc})],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:[Ht("⌘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:[Ht("⌘W","global",{inText:!0,when:Bc})],help:{group:"tabs-windows",order:40},native:{menu:"File",order:5}},{id:"tab.next",label:"Show next tab",kind:"command",exec:"native",keys:[Ht("⌃tab","global",{inText:!0,when:Bc}),Ht("⇧⌘]","global",{inText:!0,alias:!0,when:Bc})],help:{group:"tabs-windows",order:10},native:{menu:"Window",order:1}},{id:"tab.prev",label:"Show previous tab",kind:"command",exec:"native",keys:[Ht("⌃⇧tab","global",{inText:!0,when:Bc}),Ht("⇧⌘[","global",{inText:!0,alias:!0,when:Bc})],help:{group:"tabs-windows",order:20},native:{menu:"Window",order:2}},{id:"tab.overview",label:"Show all tabs",kind:"command",exec:"native",keys:[Ht("⇧⌘\\","global",{inText:!0,when:Bc})],help:{group:"tabs-windows",order:25},native:{menu:"Window",order:3}},{id:"tab.rename",label:"Rename…",kind:"command",exec:"native",visible:Bc},...[1,2,3,4,5,6,7,8].map((e)=>({id:`tab.select-${e}`,label:`Show tab ${e}`,kind:"command",exec:"native",keys:[Ht(`⌘${e}`,"global",{inText:!0,when:Bc})],native:{menu:"Window",order:2+e}})),{id:"tab.select-last",label:"Show last tab",kind:"command",exec:"native",keys:[Ht("⌘9","global",{inText:!0,when:Bc})],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 Vq,Gq,nxe;var oxe=Ve(()=>{Vq={facts:["canvasOpen"]},Gq={hidden:!0},nxe=[{id:"presence.follow",label:"Follow",kind:"command",icon:"eye",exec:"canvas",visible:Vq,search:Gq},{id:"presence.go-to",label:"Go to",kind:"command",exec:"canvas",visible:Vq,search:Gq},{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:Vq,search:Gq}]});var rxe;var axe=Ve(()=>{Fd();rxe=[{id:"search.open",label:"Search",kind:"command",icon:"search",exec:"shell",fromCanvas:!0,keys:[Ht("⌘K","global",{inText:!0,when:{notShell:["home"]}}),Ht("⇧⌘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:[Ht("/","global",{inText:!1,when:bT})],legacy:{sheet:"Search files"}},{id:"canvases.find",label:"Find a canvas",kind:"command",exec:"shell",keys:Ur("⌘F","⇧","global",{inText:!1,when:bT}),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:[Ht("⇧⌘R","global",{inText:!0,when:{focus:zd}})]}]});var z2t,LP,om=(e,t,n)=>({id:e,label:t,kind:"command",...n?{icon:n}:{},exec:"shell",visible:z2t,search:LP}),sxe;var ixe=Ve(()=>{z2t={minRole:"edit"},LP={hidden:!0},sxe=[om("sync.conflict.keep-mine","Keep yours"),om("sync.conflict.keep-theirs","Keep theirs"),om("sync.conflict.keep-both","Keep both","duplicate"),om("save.retry-held","Retry saving"),om("sync.keep-mine","Keep mine"),om("sync.use-theirs","Use theirs"),om("sync.keep-both","Keep both","duplicate"),{id:"sync.compare",label:"Compare",kind:"command",exec:"shell",search:LP},om("sync.publish-ai-edit","Publish"),om("sync.discard-ai-edit","Discard"),om("sync.cancel-transfer","Cancel the transfer"),{id:"sync.get-latest",label:"Get latest",kind:"command",exec:"shell",search:LP},{id:"sync.sign-in-again",label:"Sign in again",kind:"command",exec:"shell",search:LP}]});var Ui,qq=(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"}}),F2t,lxe;var cxe=Ve(()=>{Fd();Ui={when:OP,inText:!1},F2t=[["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"]],lxe=[{id:"timeline.play",label:"Play / pause",kind:"toggle",exec:"shell",keys:Ur("Space","⌥⇧⌘","timeline",Ui)},{id:"timeline.step",label:"Step a frame",kind:"command",exec:"shell",keys:[...Ur("←","⌥⇧⌘","timeline",Ui),...Ur("→","⌥⇧⌘","timeline",Ui)]},{id:"timeline.to-start",label:"Go to start",kind:"command",exec:"shell",keys:Ur("Home","⌥⇧⌘","timeline",Ui)},{id:"timeline.to-end",label:"Go to end",kind:"command",exec:"shell",keys:Ur("End","⌥⇧⌘","timeline",Ui)},{id:"timeline.prev-keyframe",label:"Previous keyframe",kind:"command",exec:"shell",keys:[Ht(",","timeline",Ui)]},{id:"timeline.next-keyframe",label:"Next keyframe",kind:"command",exec:"shell",keys:[Ht(".","timeline",Ui),Ht("⌘.","timeline",{...Ui,alias:!0})]},{id:"timeline.split",label:"Split at playhead",kind:"command",exec:"shell",keys:[Ht("S","timeline",Ui),...Ur("⌘B","⇧","timeline",Ui),Ht("⌘B","global",{...Ui,alias:!0,when:{facts:["timelineVisible"]}})]},{id:"timeline.loop-in",label:"Loop starts here",kind:"command",exec:"shell",keys:[Ht("I","timeline",Ui)]},{id:"timeline.loop-out",label:"Loop ends here",kind:"command",exec:"shell",keys:[Ht("O","timeline",Ui)]},{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:[Ht("⌘=","timeline",{...Ui,when:{notFacts:["selectFocused","rangeFocused"]}}),Ht("⌘+","timeline",{...Ui,alias:!0,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.zoom-out",label:"Zoom timeline out",kind:"command",exec:"shell",keys:[Ht("⌘−","timeline",{...Ui,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.zoom-fit",label:"Fit the timeline",kind:"command",exec:"shell",keys:[Ht("0","timeline",{...Ui,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:Ur("C","⇧","timeline",{...Ui,when:{notFacts:["selectFocused","rangeFocused"]}})},qq("timeline.trim","Trim a clip","Timeline › Drag a clip’s edge"),qq("timeline.move-clip","Move a clip","Timeline › Drag a clip"),qq("timeline.add-clips","Add footage to the video","Timeline › Drop footage"),...F2t.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 B2t(e,t){if(e==="present")return t?.kind==="artboards"?"present-artboards":"present-canvas";return e}function lc(e,t,n){return j2t[e][B2t(t,n)]}function px(e,t,n){if(!e)return t==="measure"||t==="comment-pins"||t==="object-tools";return U2t[t](e,n)}var Bd=(e,t,n,o,r)=>Object.freeze({edit:e,preview:t,"present-artboards":n,"present-canvas":o,viewing:r}),j2t,U2t,uxe=(e,t)=>lc("left-panels",e,t)==="folded";var rm=Ve(()=>{j2t=Object.freeze({clicks:Bd("tool","live","next-artboard","pan-zoom","specs"),toolbar:Bd("edit","preview","none","none","viewing"),annotations:Bd("quiet","drawn","hidden","hidden","read-only"),"comment-pins":Bd("shown","shown","hidden","hidden","shown"),measure:Bd("on","on","off","off","on"),"ai-changes":Bd("live","live","held","live-unmarked","live"),"left-panels":Bd("shown","folded","hidden","hidden","shown"),"ai-panel":Bd("shown","folded","hidden","hidden","none"),"share-cluster":Bd("full","full","hidden","hidden","full-access"),inspect:Bd("inspector","panel-on-cmd-click","hidden","hidden","panel-on-click"),"project-menu":Bd("pill","pill","esc-first","esc-first","pill"),esc:Bd("steps-back","steps-back","settles-back","same-view","deselect")});U2t=Object.freeze({measure:(e,t)=>lc("measure",e,t)==="on","inspect-panel":(e,t)=>lc("inspect",e,t).startsWith("panel"),"comment-pins":(e,t)=>lc("comment-pins",e,t)==="shown","object-tools":(e,t)=>lc("clicks",e,t)==="tool","live-design":(e,t)=>lc("clicks",e,t)==="live","annotations-editable":(e,t)=>lc("annotations",e,t)==="drawn",chrome:(e,t)=>lc("share-cluster",e,t)!=="hidden"})});function mx(e,t){if(e==="edit"&&!t.edit)return"viewing";if(e==="viewing"&&t.edit)return"edit";return e}function hxe(e){if(e.edit||e.annotate)return"edit";return e.comment?"comment":"view"}function Y1(e,t){for(let n of[e,...gxe[e]]){let o=jp[n].slots.find((r)=>r.key===t);if(o)return{mode:n,slot:o}}return null}function Jq(e,t,n,o){let r=Y1(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=hxe(n);if(PP[c]<PP[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 bxe(e){let t=[];for(let n of[e,...gxe[e]])for(let o of jp[n].slots){if(!o.key||t.includes(o.key))continue;if(Y1(e,o.key)?.slot===o&&!o.pending)t.push(o.key)}return t}function yxe(e,t,n){if(!fxe(t))return!1;let o=jp[e].slots.find((r)=>r.tool===t||!!r.tips?.includes(t)||!!r.more?.some((a)=>a.tool===t));return!o||PP[hxe(n)]>=PP[o.minRole]}function dxe(e,t){return jp[e].slots.some((n)=>n.tool===t||n.tool!==null&&V2t[n.tool]===t||!!n.tips?.includes(t)||!!n.lights?.includes(t)||!!n.more?.some((o)=>o.tool===t))}function vxe(e,t,n){if(!fxe(e)||G2t.has(e))return null;if(dxe(n,e))return n;if(e==="move")return t.edit?"edit":"viewing";for(let o of["preview","edit"])if(dxe(o,e))return o;return null}function vT(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 Kq,pxe,Yq,H2t,Xq,o_n,W2t,fxe=(e)=>typeof e==="string"&&W2t.has(e),fx,K1,mxe=(e)=>e.edit?"edit":"viewing",Zq=(e)=>e.edit?"edit":"preview",r_n,a_n,PP,ba=(e)=>Object.freeze(e),jp,V2t,gxe,G2t;var Up=Ve(()=>{rm();Kq=["edit","viewing","preview","present"],pxe=["artboards","canvas"],Yq=["browse","move","hand","comment","pen","highlighter","eraser","shape","sticky","section","arrow","text"],H2t=["inspect","frame","el-shape","el-pen","el-text","image","component","line","ellipse","polygon","crop","slice","pointer"],Xq=[...Yq,...H2t],o_n=new Set(Kq),W2t=new Set(Xq),fx=Object.freeze({edit:!1,annotate:!1,comment:!1}),K1=Object.freeze({edit:!0,annotate:!0,comment:!0});r_n=Object.freeze({edit:"edit",viewing:"edit",preview:"preview",present:"preview"}),a_n=Object.freeze({edit:"move",viewing:"inspect",preview:"browse",present:"browse"}),PP=Object.freeze({view:0,comment:1,edit:2});jp=Object.freeze({edit:Object.freeze({rest:"move",slots:Object.freeze([ba({key:"V",label:"Select",tool:"move",minRole:"edit"}),ba({key:"H",label:"Hand",tool:"hand",minRole:"edit"}),ba({key:"F",label:"Artboard / Frame",tool:"frame",minRole:"edit"}),ba({key:"R",label:"Shape",tool:"el-shape",minRole:"edit"}),ba({key:"P",label:"Pen",tool:"el-pen",minRole:"edit"}),ba({key:"T",label:"Text",tool:"el-text",minRole:"edit"}),ba({key:"I",label:"Image",tool:"image",minRole:"edit",panel:"image",panelFirst:!0}),ba({key:"⇧I",label:"Component",tool:null,minRole:"edit",panel:"components"}),ba({key:"",label:"More",tool:null,minRole:"edit",popover:"more",more:Object.freeze([ba({key:"",label:"Line",tool:"line",minRole:"edit"}),ba({key:"",label:"Ellipse",tool:"ellipse",minRole:"edit"}),ba({key:"",label:"Polygon",tool:"polygon",minRole:"edit"}),ba({key:"",label:"Crop",tool:"crop",minRole:"edit"}),ba({key:"",label:"Export area",tool:"slice",minRole:"edit"})])})])}),preview:Object.freeze({rest:"browse",slots:Object.freeze([ba({key:"V",label:"Select",tool:"browse",minRole:"view"}),ba({key:"H",label:"Hand",tool:"hand",minRole:"view"}),ba({key:"N",label:"Sticky",tool:"sticky",minRole:"edit",popover:"sticky-colours"}),ba({key:"C",label:"Comment",tool:"comment",minRole:"comment"}),ba({key:"M",label:"Marker",tool:"pen",minRole:"edit",popover:"marker-tips",tips:["pen","highlighter","eraser"]}),ba({key:"A",label:"Arrow",tool:"arrow",minRole:"edit"}),ba({key:"R",label:"Shape",tool:"shape",minRole:"edit",popover:"shape-kinds"}),ba({key:"T",label:"Text",tool:"text",minRole:"edit"}),ba({key:"E",label:"Stickers",tool:null,minRole:"edit",panel:"stickers"}),ba({key:"S",label:"Section",tool:"section",minRole:"edit",panel:"templates"})])}),viewing:Object.freeze({rest:"inspect",slots:Object.freeze([ba({key:"H",label:"Hand",tool:"inspect",minRole:"view"}),ba({key:"C",label:"Comment",tool:"comment",minRole:"comment"})])}),present:Object.freeze({rest:"browse",hidden:!0,slots:Object.freeze([ba({key:"L",label:"Pointer",tool:"pointer",minRole:"view"})])})}),V2t=Object.freeze({}),gxe=Object.freeze({edit:["preview"],preview:["edit"],viewing:["preview","edit"],present:[]});G2t=new Set(["hand"])});function wxe(e){if(e.tool==="move")return"tool.select";return`tool.${e.tool??e.panel??e.label.toLowerCase()}`}function X2t(){let e=new Map,t=0;for(let n of kxe)for(let o of jp[n].slots){if(o.pending||o.more||!o.key)continue;let r=wxe(o);if(!e.has(r))e.set(r,{slot:o,home:n,order:t++,keys:new Map})}for(let n of kxe)for(let o of bxe(n)){let r=Y1(n,o);if(!r)continue;let a=e.get(wxe(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:G1(s),layer:"tools",when:{focus:Y2t,mode:l}})),a=K2t[o.home];return{id:n,label:q2t[n]??o.slot.label,kind:"tool",exec:"canvas",keys:r,...a?{help:{group:a,order:o.order}}:{},...xxe[n]?{legacy:{menu:xxe[n]}}:{}}})}var q2t,xxe,K2t,Y2t,kxe,ey=(e,t,n)=>({id:e,label:t,kind:"tool",exec:"canvas",keys:[],...n?{legacy:{menu:n}}:{}}),Sxe;var _xe=Ve(()=>{Up();Fp();Fd();q2t={"tool.browse":"Select","tool.inspect":"Inspect","tool.pen":"Marker"},xxe={"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)"},K2t={edit:"edit-tools",preview:"preview-tools"},Y2t=["canvas","chrome"],kxe=["edit","preview","viewing","present"];Sxe=[...X2t(),{id:"tool.hand-hold",label:"Hand (hold Space)",kind:"tool",exec:"canvas",keys:Ur("Space","⌥⇧⌘","tools",{hold:!0,when:zc})},{id:"tool.create-default",label:"Add one at its default size",kind:"command",exec:"canvas",enabled:{minRole:"edit"},keys:[Ht("↵","tools",{when:{focus:["canvas"],mode:["edit","preview"],facts:["toolArmed"]}})],search:{hidden:!0}},ey("tool.highlighter","Highlighter"),ey("tool.eraser","Eraser","Eraser"),ey("tool.rect","Rectangle","Rect"),ey("tool.ellipse","Ellipse","Ellipse"),ey("tool.line","Line"),ey("tool.polygon","Polygon"),ey("tool.slice","Export area"),ey("tool.crop","Crop")]});var Cxe;var Axe=Ve(()=>{Fd();Cxe=[{id:"ui.step-back",label:"Step back",kind:"command",exec:"shell",keys:[...Ur("esc","⌥⇧⌘","global",{inText:!0,when:{focus:zd}}),...Ur("esc","⌥⇧⌘","selection",{inText:!1,when:zc})],legacy:{sheet:"Deselect · close menu"}},{id:"ui.cycle-region",label:"Move between the panels and the canvas",kind:"command",exec:"shell",fromCanvas:!0,keys:[Ht("F6","global",{inText:!0}),Ht("⇧F6","global",{inText:!0,alias:!0})],search:{keywords:["focus","panels","canvas","keyboard","f6"]}}]});var Z2t,J2t=(e)=>({hidden:!0,where:e,note:"bound by its S7 surface"}),Ga=(e,t,n,o="edit")=>({id:e,label:t,kind:"command",exec:"shell",enabled:o==="edit"?Z2t:{minRole:o},search:J2t(n)}),Nxe;var Txe=Ve(()=>{Z2t={minRole:"edit"},Nxe=[{...Ga("video.captions.add","Captions from speech","Timeline › Captions"),search:{where:"Timeline › Captions",keywords:["captions","subtitles","speech","transcribe"]}},{...Ga("video.transcript.open","Transcript","Timeline › Transcript","comment"),search:{where:"Timeline › Transcript",keywords:["transcript","words","captions","text"]}},Ga("video.captions.style","Caption style","Inspector › Captions"),Ga("video.captions.fix-word","Fix a caption word","Transcript panel"),Ga("video.captions.export","Export captions","Export sheet","comment"),Ga("video.transcript.cut","Cut these words","Transcript panel"),Ga("video.transcript.find-speech","Find speech","Transcript panel"),Ga("video.music.beats","Find the beat","Inspector › Music"),Ga("video.music.duck","Lower under speech","Inspector › Music"),Ga("video.music.volume","Music volume","Inspector › Music"),Ga("video.cut-to-beat","Cut to the beat","Inspector › Music"),Ga("video.snap","Snap to the beat","Timeline"),{...Ga("video.reframe","Re-frame","Timeline › Re-frame"),search:{where:"Timeline › Re-frame",keywords:["reframe","crop","framing","vertical","focus","window"]}},{...Ga("video.poster.set","Set as poster frame","Timeline"),search:{where:"Timeline › Poster",keywords:["poster","cover","thumbnail"]}},{...Ga("video.format.add","Add a format","Inspector › Formats"),search:{where:"Inspector › Formats",keywords:["format","size","16:9","9:16","1:1","reels","linked","aspect"]}},{...Ga("video.format.unlink","Make an unlinked copy","Inspector › Formats"),search:{where:"Inspector › Formats",keywords:["unlink","copy","own cut","fork","format"]}},{...Ga("video.allow-longer","Allow longer videos","Timeline › Advanced"),search:{where:"Timeline › Advanced",keywords:["longer","length","limit","2 min","frames"]}},Ga("video.easing.set","Keyframe curve","Timeline › Advanced"),{...Ga("video.take.swap","Swap a take","Timeline › Other takes"),search:{where:"Timeline › Other takes",keywords:["take","other takes","swap","alternate"]}},Ga("video.fit","Fit the picture","Inspector › Clip"),Ga("video.place","Place the title","Inspector › Formats"),Ga("video.title.motion","Title motion","Inspector › Title"),Ga("video.title.style","Title font and colour","Inspector › Title"),Ga("video.transition.set","Set the transition","Timeline › Join")]});var Ixe;var Exe=Ve(()=>{Fd();Ixe=[{id:"mode.preview",label:"Preview",kind:"toggle",icon:"eye",exec:"canvas",keys:[Ht("⌥⌘P","global",{inText:!0,when:{mode:["edit","preview","viewing"]}})],search:{keywords:["mode","live","interact","edit"]}},{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:[Ht("⌘\\","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:[Ht("↵","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:[Ht("⌘I","selection",{when:{focus:["chrome","timeline"],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:[Ht("⇧⌘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:[Ht("⌥⌘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:[Ht("⇧⌘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:[Ht("⇧⌘T","global",{inText:!0})],legacy:{menu:"Timeline"}},{id:"view.annotations",label:"Annotations",kind:"toggle",exec:"canvas",keys:[Ht("⇧P","global",{inText:!1,when:zc})],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:[Ht("⌥⌘↵","global",{when:{mode:["edit","viewing","preview"]}})],search:{keywords:["presentation","slideshow","artboards","selected"]}},{id:"present.from-start",label:"Present from the start",kind:"command",exec:"shell",fromCanvas:!0,keys:[Ht("⇧⌥⌘↵","global",{when:{mode:["edit","viewing","preview"]}})],search:{keywords:["presentation","slideshow","beginning","first"]}},{id:"present.next",label:"Next artboard",kind:"command",exec:"shell",keys:[Ht("→","global",{when:{mode:["present"]}}),Ht("Space","global",{when:{mode:["present"]}})],search:{keywords:["presentation","slideshow","advance","forward"]}},{id:"present.prev",label:"Previous artboard",kind:"command",exec:"shell",keys:[Ht("←","global",{when:{mode:["present"]}}),Ht("⇧Space","global",{when:{mode:["present"]}})],search:{keywords:["presentation","slideshow","back","backward"]}},{id:"present.canvas",label:"Present the canvas",kind:"toggle",exec:"shell",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:[Ht("⌘=","global",{inText:!0,when:cx}),Ht("⌘+","global",{inText:!0,alias:!0,when:cx})],legacy:{menu:"Zoom In",sheet:"Zoom in / out"}},{id:"view.zoom-out",label:"Zoom out",kind:"command",exec:"canvas",keys:[Ht("⌘−","global",{inText:!0,when:cx})],legacy:{menu:"Zoom Out",sheet:"Zoom in / out"}},{id:"view.zoom-fit",label:"Zoom to fit",kind:"command",exec:"canvas",keys:[Ht("⌘0","global",{inText:!0,when:cx})],legacy:{menu:"Fit to Screen",sheet:"Fit · actual size"}},{id:"view.zoom-actual",label:"Actual size",kind:"command",exec:"canvas",keys:[Ht("⇧0","global",{inText:!1,when:cx})],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)=>Ht(`⌥⌘${e}`,"global",{inText:!0,alias:t>0,when:cx}))},{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 am,Go;var Gs=Ve(()=>{wwe();$we();Owe();Pwe();zwe();Bwe();Wwe();Ywe();Zwe();Qwe();txe();oxe();axe();ixe();cxe();_xe();Axe();Txe();Exe();am=Object.freeze([...rxe,...Lwe,...Kwe,...Ixe,...Sxe,...Cxe,...lxe,...Nxe,...Xwe,...Mwe,...vwe,...Fwe,...Twe,...Ewe,...Iwe,...exe,...Dwe,...Jwe,...nxe,...sxe,...Hwe]),Go=new Map(am.map((e)=>[e.id,e]))});function eK(e){let t=Array.isArray(e)?e.filter((n)=>typeof n==="string"&&n):[];if(t.length===wT.length&&t.every((n,o)=>n===wT[o]))return;wT=t;for(let n of[...Qq])n(wT)}function DP(){return[...wT]}function $xe(e){return Qq.add(e),()=>{Qq.delete(e)}}var wT,Qq;var zP=Ve(()=>{wT=[],Qq=new Set});var tK,Rxe;var Mxe=Ve(()=>{tK={view:0,comment:1,edit:2,owner:3},Rxe=["timeline","selection","tools","global"]});function jc(e,t){if(!e)return!0;if(e.minRole&&tK[t.role]<tK[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)=>jc(n,t)))return!1;return!0}function Pl(e,t){return jc(e.visible,t)}function X1(e,t){return Pl(e,t)&&jc(e.enabled,t)}function Oxe(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 Q2t(e){return e.inText??(_we(e.chord)&&!Awe.has(e.chord))}function eTt(e,t){if(t.focus==="text"&&!Q2t(e.binding))return!1;if(t.focus==="modal"&&!e.binding.inModal)return!1;if(e.binding.layer==="timeline"&&t.focus!=="timeline")return!1;return Pl(e.action,t)&&jc(e.binding.when,t)}function Z1(e,t,n,o="tap"){if(n.singleKeys===!1&&Swe(t))return null;let r=e.get(t);if(!r?.length)return null;let a=r.filter((s)=>o==="hold"===!!s.binding.hold&&eTt(s,n));if(!a.length)return null;for(let s of Rxe){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 Pu=Ve(()=>{Fp();Mxe()});function tTt(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"))}function J1(e,t,n){return Oxe(e,(o,r)=>n(o.id)&&tTt(r,t))}var FP=Ve(()=>{Pu()});function xT(e,t=120){if(typeof e!=="string")return null;return e.replace(nTt,"").trim().slice(0,t).trim()||null}function nK(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 hx(e,t){if(!Array.isArray(e)||e.length===0)return null;return e.find((n)=>n.id===t)??e[0]}var nTt;var Q1=Ve(()=>{nTt=/[\u202a-\u202e\u2066-\u2069\u200b-\u200f\u2060\u00ad\ufeff\u0000-\u001f\u007f-\u009f]/g});var BP="mdcc-usage-tour-seen",jP="mdcc-collab-tour-seen",Ct="__system__",kT="mdcc-theme",ST="mdcc-show-hidden",UP="maude-cp-mode",_T="mdcc-sidebar-open",CT="mdcc-minimap-visible",AT="mdcc-zoomctl-visible",NT="mdcc-annotations-visible",oK=30000,TT="mdcc-panel-sides",IT="mdcc-layers-mode",qa,ET=(e)=>/\.(tsx|jsx)$/i.test(String(e||"")),Gh="2.0.0",rK;var Wo=Ve(()=>{qa=/\.(tsx|html?)$/i,rK=[]});function oTt(){return typeof window<"u"?window.__TAURI__:null}function rTt(){let e=typeof window<"u"?window:null;if(!e)return null;if(e.__maudeShellBus)return e.__maudeShellBus;let t=oTt(),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 gx(e,t){let n=rTt();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 lTt(e){return e.length<=63&&aTt.test(e)&&e!=="canvas"&&!e.startsWith("view-")&&!e.startsWith("canvas-")}function cTt(e){if(!e||e.length>512||iTt.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 uTt(e){try{return decodeURIComponent(e)}catch{return null}}function Pxe(e){if(typeof e!=="string"||e===""||sTt.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(!lTt(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(uTt);if(a.some((l)=>l===null||l.includes("/")||l.includes("\\")))return null;let s=cTt(a.join("/"));if(!s)return null;return`${r}/c/${s.split("/").map(encodeURIComponent).join("/")}`}function HP(e,t){if(!e||typeof e!=="object")return null;let n=e;if(n.reason!=="browser-door")return null;let o=Pxe(n.url);if(!o)return null;if(t&&new URL(o).hostname!==`${t}.cloud.maude.sh`)return null;return{url:o}}function dTt(e){try{globalThis.window?.open?.(e,"_blank","noopener,noreferrer")}catch{}}async function WP({url:e,profile:t},{invoke:n,openInBrowser:o=dTt}){let r=Pxe(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=Lxe(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:Lxe(a)||"Open this project in your browser."}}}var aTt,sTt,iTt,Lxe=(e)=>String((e&&typeof e==="object"&&"message"in e?e.message:e)??"").trim();var VP=Ve(()=>{aTt=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,sTt=/[\s\u0000-\u001f\u007f-\u009f\\@?#]/,iTt=/[\u0000-\u001f\u007f-\u009f\\]/});function Vt(){return typeof window<"u"&&!!window.__TAURI__}function pTt(){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 Lo(e,t){return pTt().core.invoke(e,t)}function fTt(e,t){return gx(e,t)}function qh(e,t){return gx(e,t)}async function ny(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}}async function RT(e){let t=await mTt(e),n=HP(t.json);if(n)return WP({url:n.url},{invoke:Vt()?Lo: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 aK(t.json),project:t.json}}catch(o){return{ok:!1,error:String(o?.message||o||"The project could not be opened.")}}}function Yh(e,t){return{size:e.size,type:t||"",name:e.name,async read(n,o){let r=await Lo("read_picked_media",{token:e.token,offset:n,len:o-n});return new Uint8Array(r)},release:()=>Lo("release_picked_media",{token:e.token}).catch(()=>{})}}async function QP(e,t){let n=Yh(e,t);try{return new Blob([await n.read(0,e.size)],t?{type:t}:void 0)}finally{n.release()}}var GP=()=>Lo("github_sign_in"),qP=()=>Lo("github_sign_out"),ty=()=>Vt()?Lo("cloud_sign_in_prepare"):Promise.resolve(!1),eS=()=>Vt()?Lo("cloud_signed_in"):Promise.resolve(!1),Dxe=()=>Vt()?Promise.resolve().then(()=>Lo("accounts_list")).then((e)=>Array.isArray(e)?e:null,()=>null):Promise.resolve(null),KP=()=>Lo("github_is_signed_in"),zxe=()=>Lo("github_open_verification",{url:"https://github.com/login/device"}),$T=(e)=>Lo("open_github_url",{url:e}),YP=(e)=>Lo("open_cloud_url",{url:e}),XP=(e)=>qh("github://device-code",e),ZP=(e)=>qh("github://signed-in",e),tS=(e)=>qh("menu://action",(t)=>e(t?.id)),oy=()=>ny("/_api/github/identity"),Fxe=()=>ny("/_api/github/repos"),Bxe=(e)=>ny("/_api/github/invite",{method:"POST",body:JSON.stringify({username:e})}),jxe=(e)=>ny("/_api/github/clone",{method:"POST",body:JSON.stringify(e)}),Uxe=(e)=>ny("/_api/github/create-project",{method:"POST",body:JSON.stringify(e)}),Hxe=(e)=>ny("/_api/project/create-local",{method:"POST",body:JSON.stringify(e)}),Wxe=(e)=>ny("/_api/design/init",{method:"POST",body:JSON.stringify({dir:e})}),mTt=(e)=>ny("/_api/projects/prepare",{method:"POST",body:JSON.stringify(e)}),aK=(e)=>Lo("managed_project_open",{serverUrl:e.serverUrl,projectId:e.projectId,name:e.name||e.projectId,canvasGroups:e.canvasGroups||[]}),JP=()=>Vt()?Lo("managed_projects_list"):Promise.resolve([]),Vxe=()=>Lo("app_recent_projects"),MT=()=>Lo("pick_directory"),Kh=(e,t)=>Lo("open_local_project",{path:e,open:t}),Gxe=(e)=>Lo("resolve_project_for_link",{project:e}),ry=()=>Lo("pick_media_file"),bx=()=>Lo("pick_media_files"),sK=(e)=>fTt("update-ready",e),yx=()=>Lo("restart_to_update"),qxe=()=>Lo("check_for_updates"),Kxe=()=>Lo("prefs_get_claude_auto_setup"),Yxe=(e)=>Lo("prefs_set_claude_auto_setup",{enabled:e});var Po=Ve(()=>{VP()});function hTt(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 Qxe{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-ATt;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=Xxe(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],Bs(c))r=!1,this.create({id:n,type:"default",message:c});else if(TTt(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"&&!Bs(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"&&!Bs(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"&&!Bs(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"&&!Bs(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=Xxe(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 eD(e){return e.label!==void 0}function sm(...e){return e.filter(Boolean).join(" ")}function FTt(e){let[t,n]=e.split("-"),o=[];if(t)o.push(t);if(n)o.push(n);return o}function Jxe(){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 jTt(e,t){let n={};return[e,t].forEach((o,r)=>{let a=r===1,s=a?"--mobile-offset":"--offset",l=a?OTt:MTt;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 gTt=(e)=>{switch(e){case"success":return vTt;case"info":return xTt;case"warning":return wTt;case"error":return kTt;default:return null}},bTt,yTt=({visible:e,className:t})=>tr("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},tr("div",{className:"sonner-spinner"},bTt.map((n,o)=>tr("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),vTt,wTt,xTt,kTt,STt,_Tt=()=>{let[e,t]=T(document.hidden);return M(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[]),e},CTt=1,ATt=100,Xxe=(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:CTt++},Uc,NTt=(e,t)=>Uc.message(e,t),TTt=(e)=>e&&typeof e==="object"&&("ok"in e)&&typeof e.ok==="boolean"&&("status"in e)&&typeof e.status==="number",ITt,ETt=()=>Uc.toasts,$Tt=()=>Uc.getActiveToasts(),tD,RTt=3,MTt="24px",OTt="16px",Zxe=4000,LTt=356,PTt=14,DTt=45,zTt=200,BTt=(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:w,index:y,toasts:v,expanded:x,removeToast:S,defaultRichColors:_,closeButton:A,style:C,cancelButtonStyle:E,actionButtonStyle:R,className:L="",descriptionClassName:W="",duration:B,position:j,gap:P,expandByDefault:V,classNames:K,icons:Q,closeButtonAriaLabel:G="Close toast"}=e,[F,q]=T(null),[z,J]=T(null),[Z,te]=T(!1),[ye,Se]=T(!1),[ce,be]=T(!1),[$e,Ie]=T(!1),[Ue,se]=T(!1),[ge,Ne]=T(0),[oe,Ae]=T(0),At=U(p.duration||B||Zxe),je=U(null),ft=U(null),ve=y===0,Ye=y+1<=b,Ee=p.type,Mt=Ee!=null?Ee:"default",en=p.dismissible!==!1,gt=p.className||"",rt=p.descriptionClassName||"",Tt=pe(()=>w.findIndex((Le)=>Le.toastId===p.id)||0,[w,p.id]),Oe=pe(()=>{var Le;return(Le=p.closeButton)!=null?Le:A},[p.closeButton,A]),pt=pe(()=>p.duration||B||Zxe,[p.duration,B]),ut=U(0),Re=U(0),at=U(0),Ge=U(null),[xt,Ze]=j.split("-"),Rt=pe(()=>w.reduce((Le,It,bn)=>{if(bn>=Tt)return Le;return Le+It.height},0),[w,Tt]),Ft=_Tt(),pn=pe(()=>{var Le;return(Le=e.swipeDirections)!=null?Le:FTt(j)},[e.swipeDirections,j]),ot=p.invert||d,vt=Ee==="loading";Re.current=pe(()=>Tt*P+Rt,[Tt,Rt]),M(()=>{At.current=pt},[pt]),M(()=>{te(!0)},[]),M(()=>{let Le=ft.current;if(Le){let It=Le.getBoundingClientRect().height;return Ae(It),g((bn)=>[{toastId:p.id,height:It,position:p.position},...bn]),()=>g((bn)=>bn.filter((sn)=>sn.toastId!==p.id))}},[g,p.id]),Zn(()=>{if(!Z)return;let Le=ft.current,It=Le.style.height;Le.style.height="auto";let bn=Le.getBoundingClientRect().height;Le.style.height=It,Ae(bn),g((sn)=>{if(!sn.find((Bt)=>Bt.toastId===p.id))return[{toastId:p.id,height:bn,position:p.position},...sn];else return sn.map((Bt)=>Bt.toastId===p.id?{...Bt,height:bn}:Bt)})},[Z,p.title,p.description,g,p.id,p.jsx,p.action,p.cancel]);let Lt=ee(()=>{Se(!0),Ne(Re.current),g((Le)=>Le.filter((It)=>It.toastId!==p.id)),setTimeout(()=>{S(p)},zTt)},[p,S,g,Re]);M(()=>{if(p.promise&&Ee==="loading"||p.duration===1/0||p.type==="loading")return;let Le,It=()=>{if(at.current<ut.current){let sn=new Date().getTime()-ut.current;At.current=At.current-sn}at.current=new Date().getTime()},bn=()=>{if(At.current===1/0)return;ut.current=new Date().getTime(),Le=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),Lt()},At.current)};if(x||h||Ft)It();else bn();return()=>clearTimeout(Le)},[x,h,p,Ee,Ft,Lt]),M(()=>{if(p.delete)Lt(),p.onDismiss==null||p.onDismiss.call(p,p)},[Lt,p.delete]);function on(){var Le;if(Q==null?void 0:Q.loading){var It;return tr("div",{className:sm(K==null?void 0:K.loader,p==null?void 0:(It=p.classNames)==null?void 0:It.loader,"sonner-loader"),"data-visible":Ee==="loading"},Q.loading)}return tr(yTt,{className:sm(K==null?void 0:K.loader,p==null?void 0:(Le=p.classNames)==null?void 0:Le.loader),visible:Ee==="loading"})}let uo=p.icon||(Q==null?void 0:Q[Ee])||gTt(Ee);var Kt,$n;return tr("li",{tabIndex:0,ref:ft,className:sm(L,gt,K==null?void 0:K.toast,p==null?void 0:(t=p.classNames)==null?void 0:t.toast,K==null?void 0:K[Mt],p==null?void 0:(n=p.classNames)==null?void 0:n[Mt]),"data-sonner-toast":"","data-rich-colors":(Kt=p.richColors)!=null?Kt:_,"data-styled":!Boolean(p.jsx||p.unstyled||f),"data-mounted":Z,"data-promise":Boolean(p.promise),"data-swiped":Ue,"data-removed":ye,"data-visible":Ye,"data-y-position":xt,"data-x-position":Ze,"data-index":y,"data-front":ve,"data-swiping":ce,"data-dismissible":en,"data-type":Ee,"data-invert":ot,"data-swipe-out":$e,"data-swipe-direction":z,"data-expanded":Boolean(x||V&&Z),"data-testid":p.testId,style:{"--index":y,"--toasts-before":y,"--z-index":v.length-y,"--offset":`${ye?ge:Re.current}px`,"--initial-height":V?"auto":`${oe}px`,...C,...p.style},onDragEnd:()=>{be(!1),q(null),Ge.current=null},onPointerDown:(Le)=>{if(Le.button===2)return;if(vt||!en)return;if(je.current=new Date,Ne(Re.current),Le.target.setPointerCapture(Le.pointerId),Le.target.tagName==="BUTTON")return;be(!0),Ge.current={x:Le.clientX,y:Le.clientY}},onPointerUp:()=>{var Le,It,bn;if($e||!en)return;Ge.current=null;let sn=Number(((Le=ft.current)==null?void 0:Le.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),_n=Number(((It=ft.current)==null?void 0:It.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Bt=new Date().getTime()-((bn=je.current)==null?void 0:bn.getTime()),Rn=F==="x"?sn:_n,Cn=Math.abs(Rn)/Bt;if((F==="x"?pn.includes(sn>0?"right":"left"):pn.includes(_n>0?"bottom":"top"))&&(Math.abs(Rn)>=DTt||Cn>0.11)){if(Ne(Re.current),p.onDismiss==null||p.onDismiss.call(p,p),F==="x")J(sn>0?"right":"left");else J(_n>0?"down":"up");Lt(),Ie(!0);return}else{var Nn,le;(Nn=ft.current)==null||Nn.style.setProperty("--swipe-amount-x","0px"),(le=ft.current)==null||le.style.setProperty("--swipe-amount-y","0px")}se(!1),be(!1),q(null)},onPointerMove:(Le)=>{var It,bn,sn;if(!Ge.current||!en)return;if(((It=window.getSelection())==null?void 0:It.toString().length)>0)return;let Bt=Le.clientY-Ge.current.y,Rn=Le.clientX-Ge.current.x;if(!F&&(Math.abs(Rn)>1||Math.abs(Bt)>1))q(Math.abs(Rn)>Math.abs(Bt)?"x":"y");let Cn={x:0,y:0},zt=(Nn)=>1/(1.5+Math.abs(Nn)/20);if(F==="y"){if(pn.includes("top")||pn.includes("bottom"))if(pn.includes("top")&&Bt<0||pn.includes("bottom")&&Bt>0)Cn.y=Bt;else{let Nn=Bt*zt(Bt);Cn.y=Math.abs(Nn)<Math.abs(Bt)?Nn:Bt}}else if(F==="x"){if(pn.includes("left")||pn.includes("right"))if(pn.includes("left")&&Rn<0||pn.includes("right")&&Rn>0)Cn.x=Rn;else{let Nn=Rn*zt(Rn);Cn.x=Math.abs(Nn)<Math.abs(Rn)?Nn:Rn}}if(Math.abs(Cn.x)>0||Math.abs(Cn.y)>0)se(!0);(bn=ft.current)==null||bn.style.setProperty("--swipe-amount-x",`${Cn.x}px`),(sn=ft.current)==null||sn.style.setProperty("--swipe-amount-y",`${Cn.y}px`)}},Oe&&!p.jsx&&Ee!=="loading"?tr("button",{"aria-label":G,"data-disabled":vt,"data-close-button":!0,onClick:vt||!en?()=>{}:()=>{Lt(),p.onDismiss==null||p.onDismiss.call(p,p)},className:sm(K==null?void 0:K.closeButton,p==null?void 0:(o=p.classNames)==null?void 0:o.closeButton)},($n=Q==null?void 0:Q.close)!=null?$n:STt):null,(Ee||p.icon||p.promise)&&p.icon!==null&&((Q==null?void 0:Q[Ee])!==null||p.icon)?tr("div",{"data-icon":"",className:sm(K==null?void 0:K.icon,p==null?void 0:(r=p.classNames)==null?void 0:r.icon)},Ee==="loading"?p.icon||on():p.promise?on():null,Ee!=="loading"?uo:null):null,tr("div",{"data-content":"",className:sm(K==null?void 0:K.content,p==null?void 0:(a=p.classNames)==null?void 0:a.content)},tr("div",{"data-title":"",className:sm(K==null?void 0:K.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?tr("div",{"data-description":"",className:sm(W,rt,K==null?void 0:K.description,p==null?void 0:(l=p.classNames)==null?void 0:l.description)},typeof p.description==="function"?p.description():p.description):null),Bs(p.cancel)?p.cancel:p.cancel&&eD(p.cancel)?tr("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||E,onClick:(Le)=>{if(!eD(p.cancel))return;if(!en)return;p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Le),Lt()},className:sm(K==null?void 0:K.cancelButton,p==null?void 0:(c=p.classNames)==null?void 0:c.cancelButton)},p.cancel.label):null,Bs(p.action)?p.action:p.action&&eD(p.action)?tr("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||R,onClick:(Le)=>{if(!eD(p.action))return;if(p.action.onClick==null||p.action.onClick.call(p.action,Le),Le.defaultPrevented)return;Lt()},className:sm(K==null?void 0:K.actionButton,p==null?void 0:(u=p.classNames)==null?void 0:u.actionButton)},p.action.label):null)},eke;var tke=Ve(()=>{ae();qf();bTt=Array(12).fill(0),vTt=tr("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},tr("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"})),wTt=tr("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},tr("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"})),xTt=tr("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},tr("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"})),kTt=tr("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},tr("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"})),STt=tr("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"},tr("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),tr("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));Uc=new Qxe,ITt=NTt,tD=Object.assign(ITt,{success:Uc.success,info:Uc.info,warning:Uc.warning,error:Uc.error,custom:Uc.custom,message:Uc.message,promise:Uc.promise,dismiss:Uc.dismiss,loading:Uc.loading},{getHistory:ETt,getToasts:$Tt});hTt("[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%)}");eke=Ln(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:w=RTt,toastOptions:y,dir:v=Jxe(),gap:x=PTt,icons:S,customAriaLabel:_,containerAriaLabel:A="Notifications"}=t,[C,E]=T([]),R=pe(()=>{if(o)return C.filter((te)=>te.toasterId===o);return C.filter((te)=>!te.toasterId)},[C,o]),L=pe(()=>Array.from(new Set([a].concat(R.filter((te)=>te.position).map((te)=>te.position)))),[R,a]),[W,B]=T([]),[j,P]=T(!1),[V,K]=T(!1),[Q,G]=T(f!=="system"?f:typeof window<"u"?window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":"light"),F=U(null),q=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),z=U(null),J=U(!1),Z=ee((te)=>{E((ye)=>{var Se;if(!((Se=ye.find((ce)=>ce.id===te.id))==null?void 0:Se.delete))Uc.dismiss(te.id);return ye.filter(({id:ce})=>ce!==te.id)})},[]);return M(()=>Uc.subscribe((te)=>{if(te.dismiss){requestAnimationFrame(()=>{E((ye)=>ye.map((Se)=>Se.id===te.id?{...Se,delete:!0}:Se))});return}setTimeout(()=>{NW(()=>{E((ye)=>{let Se=ye.findIndex((ce)=>ce.id===te.id);if(Se!==-1)return[...ye.slice(0,Se),{...ye[Se],...te},...ye.slice(Se+1)];return[te,...ye]})})})}),[]),M(()=>{if(f!=="system"){G(f);return}if(f==="system")if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)G("dark");else G("light");if(typeof window>"u")return;let te=window.matchMedia("(prefers-color-scheme: dark)");try{te.addEventListener("change",({matches:ye})=>{if(ye)G("dark");else G("light")})}catch(ye){te.addListener(({matches:Se})=>{try{if(Se)G("dark");else G("light")}catch(ce){console.error(ce)}})}},[f]),M(()=>{if(C.length<=1)P(!1)},[C]),M(()=>{let te=(ye)=>{var Se;if(s.length>0&&s.every(($e)=>ye[$e]||ye.code===$e)){var be;P(!0),(be=F.current)==null||be.focus()}if(ye.code==="Escape"&&(document.activeElement===F.current||((Se=F.current)==null?void 0:Se.contains(document.activeElement))))P(!1)};return document.addEventListener("keydown",te),()=>document.removeEventListener("keydown",te)},[s]),M(()=>{if(F.current)return()=>{if(z.current)z.current.focus({preventScroll:!0}),z.current=null,J.current=!1}},[F.current]),tr("section",{ref:n,"aria-label":_!=null?_:`${A} ${q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},L.map((te,ye)=>{var Se;let[ce,be]=te.split("-");if(!R.length)return null;return tr("ol",{key:te,dir:v==="auto"?Jxe():v,tabIndex:-1,ref:F,className:u,"data-sonner-toaster":!0,"data-sonner-theme":Q,"data-y-position":ce,"data-x-position":be,style:{"--front-toast-height":`${((Se=W[0])==null?void 0:Se.height)||0}px`,"--width":`${LTt}px`,"--gap":`${x}px`,...b,...jTt(d,p)},onBlur:($e)=>{if(J.current&&!$e.currentTarget.contains($e.relatedTarget)){if(J.current=!1,z.current)z.current.focus({preventScroll:!0}),z.current=null}},onFocus:($e)=>{if($e.target instanceof HTMLElement&&$e.target.dataset.dismissible==="false")return;if(!J.current)J.current=!0,z.current=$e.relatedTarget},onMouseEnter:()=>P(!0),onMouseMove:()=>P(!0),onMouseLeave:()=>{if(!V)P(!1)},onDragEnd:()=>P(!1),onPointerDown:($e)=>{if($e.target instanceof HTMLElement&&$e.target.dataset.dismissible==="false")return;K(!0)},onPointerUp:()=>K(!1)},R.filter(($e)=>!$e.position&&ye===0||$e.position===te).map(($e,Ie)=>{var Ue,se;return tr(BTt,{key:$e.id,icons:S,index:Ie,toast:$e,defaultRichColors:h,duration:(Ue=y==null?void 0:y.duration)!=null?Ue:g,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:r,visibleToasts:w,closeButton:(se=y==null?void 0:y.closeButton)!=null?se:c,interacting:V,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((ge)=>ge.position==$e.position),heights:W.filter((ge)=>ge.position==$e.position),setHeights:B,expandByDefault:l,gap:x,expanded:j,swipeDirections:t.swipeDirections})}))}))})});function nke(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:UTt,type:e,key:o,ref:t!==void 0?t:null,props:n}}var UTt,HTt,X,i,m;var H=Ve(()=>{UTt=Symbol.for("react.transitional.element"),HTt=Symbol.for("react.fragment");X=HTt,i=nke,m=nke});function nS({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 de({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:OT[e]})}function ay(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 ir({children:e}){return i("span",{className:"kbd",children:e})}var _r=({as:e,size:t=14})=>i(e,{size:t,strokeWidth:1.75,style:{display:"block"}}),OT;var Pt=Ve(()=>{H();OT={"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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{children:[i("path",{d:"M2 4.5h4l1.3 1.5H14V13H2z"}),i("path",{d:"M8 7.5v3.5M6.25 9.25h3.5"})]}),warn:m(X,{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(X,{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(X,{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(X,{children:[i("circle",{cx:"7",cy:"7",r:"4"}),i("line",{x1:"10",y1:"10",x2:"13.5",y2:"13.5"})]}),plus:m(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{children:[i("polyline",{points:"4 4 12 4"}),i("line",{x1:"8",y1:"4",x2:"8",y2:"12"})]}),button:m(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{children:[i("path",{d:"M3 13 6.6 3l3.6 10"}),i("path",{d:"M4.3 9.6h4.6"})]}),"eye-off":m(X,{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(X,{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(X,{children:[i("polyline",{points:"6 5 3 8 6 11"}),i("polyline",{points:"10 5 13 8 10 11"})]}),download:m(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{children:[i("path",{d:"M8 2.75l5.75 10H2.25z"}),i("path",{d:"M8 6.75v2.5M8 11h.01"})]}),"panel-right":m(X,{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(X,{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(X,{children:[i("circle",{cx:"8",cy:"8",r:"5.75"}),i("path",{d:"M8 4.75V8l2.25 1.5"})]}),"share-up":m(X,{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(X,{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(X,{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(X,{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 pke={};hW(pke,{MAX_NOTICE_ENTRIES:()=>rke,NoticeCard:()=>cke,NotificationHost:()=>fK,dismissCanvasNotices:()=>qTt,dismissNotice:()=>Dl,noticeDuration:()=>pK,noticeEntries:()=>VTt,notify:()=>Do,notifyCanvasText:()=>LT,notifyCanvasTriggered:()=>rS,notifyUndo:()=>dK,shownNoticeIds:()=>uke,summarizeNoticeText:()=>oS});function GTt(){while(Es.length>rke){let e=Es.findIndex(ake);if(e<0)e=Es.findIndex((t)=>t.kind!=="error"&&!t.paused&&pK(t)!==1/0);if(e<0)e=0;Es=[...Es.slice(0,e),...Es.slice(e+1)]}}function ske(e,t){let n={...e,title:nD(e.title),...e.description!==void 0?{description:nD(e.description)}:{}},o=n.id??`notice-${++rD}`,r=t?{...n,id:o,canvasTriggered:t}:{...n,id:o};if(Es.findIndex((s)=>s.id===o)<0)Es=[...Es,r];else Es=Es.map((s)=>s.id===o?r:s);return GTt(),uK(),o}function Do(e){return ske(e,!1)}function lke(){let e=Date.now();if(e<iK||e-iK>=1000)iK=e,lK=0;if(lK>=5)return!1;return lK++,!0}function rS(e){if(!lke())return null;return ske(e,!0)}function LT(e,t="info"){if(!lke())return null;let o=(t==="undo"?Es.find((r)=>r.group==="canvas"&&r.kind==="undo"):void 0)?.id??`canvas-notice-${ike++%2}`;return Do({id:o,title:nD(e).slice(0,4000),kind:t,group:"canvas",timerKey:`${++rD}`})}function dK(e,t){let n=Es.find((o)=>o.group==="canvas"&&o.kind==="undo");return Do({id:n?.id??`canvas-notice-${ike++%2}`,title:e,kind:"undo",group:"canvas",timerKey:`${++rD}`,...t?{action:t}:{}})}function qTt(){if(!Es.some((e)=>e.group==="canvas"))return;Es=Es.filter((e)=>e.group!=="canvas"),uK()}function Dl(e){Es=Es.filter((t)=>t.id!==e),uK()}function oD(e){let t=Es.find((n)=>n.id===e);Dl(e),t?.onDismiss?.()}function pK(e){return e.duration??(e.action||["error","warning","undo"].includes(e.kind??"")?1e4:5000)}function oS(e){let t=nD(e).trim().replace(/\s+/g," ");return t.length>280?`${t.slice(0,279)}…`:t}function KTt(e){if(e.placement)return e.placement;return typeof document<"u"&&document.querySelector(".tl-track")?"top":"bottom"}function cke({entry:e}){let t=e.icon??YTt[e.kind??"info"];return 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(de,{name:t,size:16,className:"maude-notice-glyph"})}):null,m("div",{className:"maude-notice-txt",children:[i("div",{className:"maude-notice-title",children:oS(e.title)}),e.description&&i("div",{className:"maude-notice-summary",children:oS(e.description)}),e.content]}),e.action&&i("button",{type:"button",className:"maude-notice-action",onClick:(n)=>{n.currentTarget.blur(),e.action?.onClick(),oD(e.id)},children:e.action.label}),i("button",{type:"button",className:"maude-notice-close","aria-label":"Dismiss notification",onClick:(n)=>{n.currentTarget.blur(),oD(e.id)},children:"×"})]})}function XTt({entry:e,visible:t,paused:n}){let o=pK(e),r=U(null),a=U(o);return M(()=>{a.current=o},[o,e.timerKey]),M(()=>{if(!t||n||e.paused||o===1/0)return;let s=Date.now(),l=setTimeout(()=>oD(e.id),Math.max(0,a.current));return()=>{clearTimeout(l),a.current=Math.max(0,a.current-(Date.now()-s))}},[t,n,e.paused,o,e.timerKey,e.id]),M(()=>{if(t){let s=r.current??`${e.id}:view-${++rD}`;r.current=s,tD.custom(()=>i(cke,{entry:e}),{id:s,duration:1/0,position:KTt(e)==="top"?"top-center":"bottom-center",onDismiss:()=>{if(r.current===s)oD(e.id)}})}else if(r.current){let s=r.current;r.current=null,tD.dismiss(s)}},[e,t]),M(()=>()=>{let s=r.current;if(r.current=null,s)tD.dismiss(s)},[]),null}function uke(e){let t=e.filter((s)=>!ake(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,dke).map((s)=>s.id)}function fK({paused:e=!1,hiddenGroups:t=JTt}){let n=qe(WTt,oke,oke),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(uke(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:ZTt}),i(eke,{position:"bottom-center",offset:{bottom:84,top:16},mobileOffset:{left:16,right:16,bottom:84,top:16},visibleToasts:dke,expand:s,style:{"--width":"min(640px, calc(100vw - 32px))"},containerAriaLabel:"Notifications"}),n.map((f)=>i(XTt,{entry:f,visible:p.has(f.id),paused:e||r||s||c||!p.has(f.id)},f.id))]})}var Es,rD=0,cK,uK=()=>{for(let e of cK)e()},WTt=(e)=>(cK.add(e),()=>{cK.delete(e)}),oke=()=>Es,VTt=()=>Es,rke=40,ake=(e)=>e.group==="canvas"||!!e.canvasTriggered,nD=(e)=>typeof e==="string"?e:e===null||e===void 0?"":String(e),ike=0,iK=-1/0,lK=0,YTt,ZTt=`
1
+ var z_t=Object.create;var{getPrototypeOf:F_t,defineProperty:LO,getOwnPropertyNames:B_t}=Object;var Mme=Object.prototype.hasOwnProperty;function j_t(e){return this[e]}var U_t,H_t,W_t=(e,t,n)=>{var o=e!=null&&typeof e==="object";if(o){var r=t?U_t??=new WeakMap:H_t??=new WeakMap,a=r.get(e);if(a)return a}n=e!=null?z_t(F_t(e)):{};let s=t||!e||!e.__esModule||!Mme.call(e,"default")?LO(n,"default",{value:e,enumerable:!0}):n;if(e&&typeof e==="object"||typeof e==="function"){for(let l of B_t(e))if(!Mme.call(s,l))LO(s,l,{get:j_t.bind(e,l),enumerable:!0})}if(o)r.set(e,s);return s};var V_t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var G_t=(e)=>e;function q_t(e,t){this[e]=G_t.bind(null,t)}var hW=(e,t)=>{for(var n in t)LO(e,n,{get:t[n],enumerable:!0,configurable:!0,set:q_t.bind(t,n)})};var Ve=(e,t,n)=>()=>{if(e)try{t=e(e=0)}catch(o){n=[o]}if(n)throw n[0];return t};var Ome=(e,t,n)=>{for(var o in t)LO(e,o,{get:t[o],set:n[o],enumerable:!0,configurable:!0})},K0=((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 ha={};Ome(ha,{Activity:()=>Vme,Children:()=>e2,Component:()=>DO,Fragment:()=>Fs,Profiler:()=>Gme,PureComponent:()=>qme,StrictMode:()=>Kme,Suspense:()=>Yme,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>Z0,__COMPILER_RUNTIME:()=>Xme,cache:()=>Zme,cacheSignal:()=>Jme,cloneElement:()=>Ec,createContext:()=>ll,createElement:()=>tr,createRef:()=>Qme,forwardRef:()=>Ln,isValidElement:()=>Bs,lazy:()=>ehe,memo:()=>Fr,startTransition:()=>the,unstable_useCacheRefresh:()=>nhe,use:()=>SW,useActionState:()=>ohe,useCallback:()=>ee,useContext:()=>Mr,useDebugValue:()=>_W,useDeferredValue:()=>rhe,useEffect:()=>M,useEffectEvent:()=>ahe,useId:()=>Sa,useImperativeHandle:()=>she,useInsertionEffect:()=>t2,useLayoutEffect:()=>Zn,useMemo:()=>pe,useOptimistic:()=>ihe,useReducer:()=>zO,useRef:()=>U,useState:()=>T,useSyncExternalStore:()=>qe,useTransition:()=>lhe,version:()=>FO},{Activity:(Z1n)=>Vme=Z1n,Children:(Z1n)=>e2=Z1n,Component:(Z1n)=>DO=Z1n,Fragment:(Z1n)=>Fs=Z1n,Profiler:(Z1n)=>Gme=Z1n,PureComponent:(Z1n)=>qme=Z1n,StrictMode:(Z1n)=>Kme=Z1n,Suspense:(Z1n)=>Yme=Z1n,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:(Z1n)=>Z0=Z1n,__COMPILER_RUNTIME:(Z1n)=>Xme=Z1n,cache:(Z1n)=>Zme=Z1n,cacheSignal:(Z1n)=>Jme=Z1n,cloneElement:(Z1n)=>Ec=Z1n,createContext:(Z1n)=>ll=Z1n,createElement:(Z1n)=>tr=Z1n,createRef:(Z1n)=>Qme=Z1n,forwardRef:(Z1n)=>Ln=Z1n,isValidElement:(Z1n)=>Bs=Z1n,lazy:(Z1n)=>ehe=Z1n,memo:(Z1n)=>Fr=Z1n,startTransition:(Z1n)=>the=Z1n,unstable_useCacheRefresh:(Z1n)=>nhe=Z1n,use:(Z1n)=>SW=Z1n,useActionState:(Z1n)=>ohe=Z1n,useCallback:(Z1n)=>ee=Z1n,useContext:(Z1n)=>Mr=Z1n,useDebugValue:(Z1n)=>_W=Z1n,useDeferredValue:(Z1n)=>rhe=Z1n,useEffect:(Z1n)=>M=Z1n,useEffectEvent:(Z1n)=>ahe=Z1n,useId:(Z1n)=>Sa=Z1n,useImperativeHandle:(Z1n)=>she=Z1n,useInsertionEffect:(Z1n)=>t2=Z1n,useLayoutEffect:(Z1n)=>Zn=Z1n,useMemo:(Z1n)=>pe=Z1n,useOptimistic:(Z1n)=>ihe=Z1n,useReducer:(Z1n)=>zO=Z1n,useRef:(Z1n)=>U=Z1n,useState:(Z1n)=>T=Z1n,useSyncExternalStore:(Z1n)=>qe=Z1n,useTransition:(Z1n)=>lhe=Z1n,version:(Z1n)=>FO=Z1n});function rCt(e){if(e===null||typeof e!=="object")return null;return e=Lme&&e[Lme]||e["@@iterator"],typeof e==="function"?e:null}function X0(e,t,n){this.props=e,this.context=t,this.refs=Ume,this.updater=n||Bme}function Hme(){}function vW(e,t,n){this.props=e,this.context=t,this.refs=Ume,this.updater=n||Bme}function bW(){}function xW(e,t,n){var o=n.ref;return{$$typeof:yW,type:e,key:t,ref:o!==void 0?o:null,props:n}}function aCt(e,t){return xW(e.type,t,e.props)}function kW(e){return typeof e==="object"&&e!==null&&e.$$typeof===yW}function sCt(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}function gW(e,t){return typeof e==="object"&&e!==null&&e.key!=null?sCt(""+e.key):t.toString(36)}function iCt(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(bW,bW):(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 Y0(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 yW:case K_t:s=!0;break;case Fme:return s=e._init,Y0(s(e._payload),t,n,o,r)}}if(s)return r=r(e),s=o===""?"."+gW(e,0):o,Pme(r)?(n="",s!=null&&(n=s.replace(Dme,"$&/")+"/"),Y0(r,t,n,"",function(u){return u})):r!=null&&(kW(r)&&(r=aCt(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(Dme,"$&/")+"/")+s)),t.push(r)),1;s=0;var l=o===""?".":o+":";if(Pme(e))for(var c=0;c<e.length;c++)o=e[c],a=l+gW(o,c),s+=Y0(o,t,n,a,r);else if(c=rCt(e),typeof c==="function")for(e=c.call(e),c=0;!(o=e.next()).done;)o=o.value,a=l+gW(o,c++),s+=Y0(o,t,n,a,r);else if(a==="object"){if(typeof e.then==="function")return Y0(iCt(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 PO(e,t,n){if(e==null)return e;var o=[],r=0;return Y0(e,o,"","",function(a){return t.call(n,a,r++)}),o}function lCt(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 yW,K_t,Y_t,X_t,Z_t,J_t,Q_t,eCt,tCt,nCt,Fme,oCt,Lme,Bme,jme,Ume,wW,Pme,Ea,Wme,Dme,zme,cCt,Vme,e2,DO,Fs,Gme,qme,Kme,Yme,Z0,Xme,Zme=function(e){return function(){return e.apply(null,arguments)}},Jme=function(){return null},Ec=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=jme({},e.props),r=e.key;if(t!=null)for(a in t.key!==void 0&&(r=""+t.key),t)!Wme.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 xW(e.type,r,o)},ll=function(e){return e={$$typeof:Q_t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:J_t,_context:e},e},tr=function(e,t,n){var o,r={},a=null;if(t!=null)for(o in t.key!==void 0&&(a=""+t.key),t)Wme.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 xW(e,a,r)},Qme=function(){return{current:null}},Ln=function(e){return{$$typeof:eCt,render:e}},Bs,ehe=function(e){return{$$typeof:Fme,_payload:{_status:-1,_result:e},_init:lCt}},Fr=function(e,t){return{$$typeof:nCt,type:e,compare:t===void 0?null:t}},the=function(e){var t=Ea.T,n={};Ea.T=n;try{var o=e(),r=Ea.S;r!==null&&r(n,o),typeof o==="object"&&o!==null&&typeof o.then==="function"&&o.then(bW,zme)}catch(a){zme(a)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ea.T=t}},nhe=function(){return Ea.H.useCacheRefresh()},SW=function(e){return Ea.H.use(e)},ohe=function(e,t,n){return Ea.H.useActionState(e,t,n)},ee=function(e,t){return Ea.H.useCallback(e,t)},Mr=function(e){return Ea.H.useContext(e)},_W=function(){},rhe=function(e,t){return Ea.H.useDeferredValue(e,t)},M=function(e,t){return Ea.H.useEffect(e,t)},ahe=function(e){return Ea.H.useEffectEvent(e)},Sa=function(){return Ea.H.useId()},she=function(e,t,n){return Ea.H.useImperativeHandle(e,t,n)},t2=function(e,t){return Ea.H.useInsertionEffect(e,t)},Zn=function(e,t){return Ea.H.useLayoutEffect(e,t)},pe=function(e,t){return Ea.H.useMemo(e,t)},ihe=function(e,t){return Ea.H.useOptimistic(e,t)},zO=function(e,t,n){return Ea.H.useReducer(e,t,n)},U=function(e){return Ea.H.useRef(e)},T=function(e){return Ea.H.useState(e)},qe=function(e,t,n){return Ea.H.useSyncExternalStore(e,t,n)},lhe=function(){return Ea.H.useTransition()},FO="19.2.7";var ae=Ve(()=>{yW=Symbol.for("react.transitional.element"),K_t=Symbol.for("react.portal"),Y_t=Symbol.for("react.fragment"),X_t=Symbol.for("react.strict_mode"),Z_t=Symbol.for("react.profiler"),J_t=Symbol.for("react.consumer"),Q_t=Symbol.for("react.context"),eCt=Symbol.for("react.forward_ref"),tCt=Symbol.for("react.suspense"),nCt=Symbol.for("react.memo"),Fme=Symbol.for("react.lazy"),oCt=Symbol.for("react.activity"),Lme=Symbol.iterator;Bme={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jme=Object.assign,Ume={};X0.prototype.isReactComponent={};X0.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")};X0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};Hme.prototype=X0.prototype;wW=vW.prototype=new Hme;wW.constructor=vW;jme(wW,X0.prototype);wW.isPureReactComponent=!0;Pme=Array.isArray;Ea={H:null,A:null,T:null,S:null},Wme=Object.prototype.hasOwnProperty;Dme=/\/+/g;zme=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)},cCt={map:PO,forEach:function(e,t,n){PO(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return PO(e,function(){t++}),t},toArray:function(e){return PO(e,function(t){return t})||[]},only:function(e){if(!kW(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Vme=oCt,e2=cCt,DO=X0,Fs=Y_t,Gme=Z_t,qme=vW,Kme=X_t,Yme=tCt,Z0=Ea,Xme={__proto__:null,c:function(e){return Ea.H.useMemoCache(e)}},Bs=kW});function che(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 xb(){}function dCt(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:uCt,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}var n2,uCt,CW,AW,Gf=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(che(299));return dCt(e,t,null,n)},NW=function(e){var t=CW.T,n=n2.p;try{if(CW.T=null,n2.p=2,e)return e()}finally{CW.T=t,n2.p=n,n2.d.f()}};var uhe=Ve(()=>{ae();n2={d:{f:xb,r:function(){throw Error(che(522))},D:xb,C:xb,L:xb,m:xb,X:xb,S:xb,M:xb},p:0,findDOMNode:null},uCt=Symbol.for("react.portal");CW=Z0;AW=n2});function dhe(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dhe)}catch(e){console.error(e)}}var qf=Ve(()=>{uhe();dhe()});function Hh(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 uT(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 bq(e){return(e??[]).slice(0,3).map((t)=>Hh(t,"(unnamed)"))}function r2t(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 a2t(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(Kb(a)&&a.kind==="body-rejected")t.sourceSlugs.push(typeof a.slug==="string"?a.slug:"(unnamed)")}if(o!==void 0)if(!Kb(o))t.unreadable=!0;else{for(let l of["synced","pulled","conflicts","pushed","failed"])if(o[l]!==void 0&&!em(o[l]))t.unreadable=!0;if(em(o.failed))t.failedFiles=o.failed;if(Array.isArray(o.held))for(let l of o.held){if(Kb(l)&&(l.kind==="hub-older"||l.kind==="hub-refused"))continue;t.held+=Kb(l)&&em(l.count)?l.count:1}let a=0;if(Kb(o.rateLimited)){if(t.paused=!0,em(o.rateLimited.waiting))a=o.rateLimited.waiting;if(a>0)t.failedFiles=0}let s=o.progress;if(Kb(s)){if(Array.isArray(s.blocked))for(let l of s.blocked){if(!Kb(l)||!em(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=em(s.delivered)&&em(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(!Kb(r))t.unreadable=!0;else{if(em(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:em(r.done)?r.done:0,total:em(r.total)?r.total:0}}}return t}function ic(e,t={}){if(!e||e.linked===!1)return null;let n=Hh(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=(A=!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:A?"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 A=e.tsxCount??0;return{phase:"nothing-syncable",online:!1,label:`0 syncable${A>0?` · ${A} tsx`:""}`,title:e.reason?Hh(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=a2t(e),p=(A)=>{let C=[],E=0,R=(W,B)=>{if(W<=0)return;C.push(B),E+=W},L=d.sourceSlugs.length;if(R(L,`${H1(L,"source change")} ${L===1?"was":"were"} not applied`),!A)R(d.failedFiles,`${H1(d.failedFiles,"file")} could not be delivered`),R(d.tooLarge,`${H1(d.tooLarge,"file")} ${d.tooLarge===1?"is":"are"} too large to sync`),R(d.blockedOther,`${H1(d.blockedOther,"file")} ${d.blockedOther===1?"is":"are"} blocked`),R(d.held,`${H1(d.held,"change")} ${d.held===1?"is":"are"} held for your decision`),R(d.failedMedia,`${H1(d.failedMedia,"media upload")} failed`);if(E===0)return null;return{phase:"attention",online:!1,label:`${E} to review`,title:`${E===1?"A change needs":`${E} 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:bq(d.sourceSlugs)}},f=r2t(e.docs),h=e.docs!==void 0&&f===null;if(f&&f.rejected>0){let A=f.synced+f.pending+f.rejected;return{phase:"refused",online:!1,label:`${f.rejected} refused`,title:`${f.rejected} of ${A} canvas${A===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:bq(e.rejectedSlugs)}}let g=i2t(e.accepted);if(g){let A=g.pending;return{phase:"refused",online:!1,label:"sign in again",title:`${n} no longer accepts your sign-in — `+(A>0?`${A} change${A===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 A=p(u);if(A)return A}let b=e.parked?.since;if(typeof b==="number"&&Number.isFinite(b)&&b>0){let A=p(!1);if(A)return A;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 A=e.state==="online"||e.flash==="synced";if(!A&&s)return a(!0);let C=A?p(!1):null;if(C)return C;return{phase:A?"synced":"connecting",online:A,label:A?l>0?`${l} ↑`:"synced":"connecting…",title:A?`Syncing with ${n}.${c}`:`Connecting to ${n}…`,next:A?null:"Nothing to do — this usually takes a moment.",names:[]}}let w=f.synced+f.pending+f.rejected;if(w===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 v=l2t(e.aiAction);if(v?.state==="held"){let A=v.canvases;return{phase:"attention",online:!0,label:"AI edit held",title:`An unfinished AI edit to ${A} canvas${A===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 A=f.synced>0;if(!A&&s)return a();return{phase:A?"syncing":"connecting",online:!1,label:A?`${f.synced}/${w}`:"connecting…",title:A?`Syncing with ${n} — ${f.synced} of ${w} canvas${w===1?"":"es"} so far.`:`Connecting to ${n}…`,next:"Nothing to do — this usually takes a moment.",names:[]}}if(d.moving){let A=d.moving,C="media"in A?`uploading media (${A.media.done} of ${A.media.total})`:A.tracked>0?`files ${A.delivered} of ${A.tracked} delivered`:"checking project files";return{phase:"syncing",online:!0,label:"media"in A?"media ↑":A.tracked>0?`${A.delivered}/${A.tracked} files`:"files…",title:`Syncing with ${n} — all ${w} canvas${w===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(v?.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=s2t(e.accepted);if(x){let A=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}`+(A>=10?` — the oldest has waited ${A} s.`:".")+" They are kept on this device until the project confirms them.",next:A>=60?"Maude keeps trying. If this persists, check your connection.":null,names:[]}}let S=e.pulled?.count,_=typeof S==="number"&&Number.isInteger(S)&&S>=0?Math.min(S,w):0;return{phase:"synced",online:!0,label:l>0?`${l} ↑`:"synced",title:`Synced with ${n} — all ${w} canvas${w===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?bq(e.pulled?.names):[]}}function s2t(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 i2t(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 l2t(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 em=(e)=>typeof e==="number"&&Number.isInteger(e)&&e>=0,Kb=(e)=>e!==null&&typeof e==="object"&&!Array.isArray(e),H1=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`;function Yb(e,t){let n=e?.access;if(!n||typeof n!=="object")return e?.cloud?.role??void 0;let o=(l,c)=>l===null||Ld[c]>Ld[l]?c:l,r=(Array.isArray(n.grants)?n.grants:[]).filter((l)=>typeof l?.r==="string"&&(l.r in Ld)),a=typeof n.role==="string"&&n.role in Ld?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 jve(e,t){if(Hve(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(Ld[n.role]>=wq)return!0;return(Array.isArray(n.grants)?n.grants:[]).some((o)=>o?.c===t&&Ld[o?.r]>=wq)}function Uve(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 _P(e,t){return!jve(e,Uve(e,t))}function rx(e){let t=e?.access;return!!t&&typeof t==="object"&&t.role==null&&Array.isArray(t.grants)&&t.grants.length>0}function CP(e,t){if(!Hve(e)||e.formatGate||!t)return!1;return(Array.isArray(e.access?.grants)?e.access.grants:[]).some((n)=>n?.c===t&&Ld[n?.r]>=wq)}function Wve(e,t){let n=Uve(e,t),o=!jve(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&&Ld[s?.r]>=Ld.viewer),a=!!e.canComment||r;return{ro:o,cm:a,...a&&e.formatGate?{cg:!0}:{}}}function zve(e){let t=typeof e==="string"?e.trim():"";if(!t)return"";return t.split(/\s+/)[0]}function Lu(e){if(typeof e!=="string"||!e)return"";return(e.split("/").pop()||e).replace(/\.(tsx|jsx|html)$/i,"")}function Dp(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 Sq(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 f2t({canvas:e=null}={},t=fetch){let o=await Sq(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:nr.asked};if(o.status===202&&o.body?.queued)return{ok:!0,state:"queued",words:dT({error:o.body.words},nr.queued)};if(r==="pending")return{ok:!0,state:"pending",words:dT(o.body,nr.asked)};if(r==="already-can-edit")return{ok:!0,state:"already",words:nr.alreadyCan};if(o.status===429)return{ok:!1,state:"limited",words:dT(o.body,nr.unavailable)};if(r==="not-linked")return{ok:!1,state:"not-linked",words:nr.notLinked};if(o.status===404||o.status===405)return{ok:!1,state:"not-linked",words:nr.notLinked};if(o.status===0||o.status>=500)return{ok:!1,state:"unavailable",words:nr.unavailable};return{ok:!1,state:"refused",words:dT(o.body,nr.notLinked)}}async function Gve(e=fetch){let t=await Sq(e,"GET","/_api/share/requests");return t.status===200&&Array.isArray(t.body?.requests)?t.body.requests:[]}async function SP(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:nr.answered};let o=await Sq(n,"POST",`/_api/share/requests/${encodeURIComponent(e)}/${t}`,{});if(o.status>=200&&o.status<300)return{ok:!0,words:""};return{ok:!1,words:dT(o.body,nr.answered)}}function m2t(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 _q(e,t){if(e!==401)return null;let n=m2t(e,t);return n&&(n.kind==="link-off"||n.kind==="ended")?n:null}function qve(e,t){let n=e?.fetch;if(typeof n!=="function"||n[Fve])return()=>{};let o=async(...r)=>{let a=await n.apply(e,r);try{if(a?.status===401&&h2t(r[0],e.location?.origin)&&(a.headers?.get?.("content-type")??"").includes("json"))a.clone().json().then((s)=>{let l=_q(401,s);if(l)t(l)}).catch(()=>{})}catch{}return a};return o[Fve]=!0,e.fetch=o,()=>{if(e.fetch===o)e.fetch=n}}function g2t(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=vq(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 b2t(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:nr.asksToEdit(t,n?Lu(n):""),action:nr.review}}function Kve(e){if(e?.type==="access")return g2t({type:"maude.access",change:e.change,reason:e.reason,by:e.by,role:e.role});if(e?.type==="access-request"){let t=b2t({type:"maude.access-request",id:e.id,from:e.from,canvas:e.canvas});return t?{kind:"request",...t}:null}return null}function Tq(e){let t=typeof e==="string"&&e?e:null;if(t===xq)return;xq=t;for(let n of kq)n()}function Xve(e){return kq.add(e),()=>kq.delete(e)}function Zve(e,t=(...n)=>fetch(...n)){return{"share.ask-to-edit":async()=>{let n=Dp(e.activePath,e.designRel),o=await f2t({canvas:n},t);return e.toast?.(o.words,o.ok),o},"share.request-approve":async(n)=>{let o=await SP(n?.id,"approve",t);if(!o.ok)e.toast?.(o.words);return o},"share.request-decline":async(n)=>{let o=await SP(n?.id,"decline",t);if(!o.ok)e.toast?.(o.words);return o}}}var p2t,vq=(e)=>typeof e==="string"&&p2t[e]||"",Ld,W1=(e)=>typeof e==="string"&&(e in Ld)?Ld[e]:void 0,Bve=(e,t)=>Yb(e,t)==="observer",wq,Hve=(e)=>!!e?.cloud&&!e.canvasToken&&rx(e),Vve=(e)=>e?.canComment===!0&&!e.formatGate,nr,dT=(e,t)=>typeof e?.error==="string"&&e.error&&e.error.length<=200?e.error:t,Cq,Aq,Nq=(e,t)=>e==="observer"&&!t?.ended&&!t?.linkOff,Fve,h2t=(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}/`))},pT="maude:access-frame",fT="maude:view-only-gesture",xq=null,kq,Yve=()=>xq;var Vs=Ve(()=>{p2t=Object.freeze({owner:"Owner",member:"Can edit",viewer:"Can comment",observer:"Can view"}),Ld=Object.freeze({observer:0,viewer:1,member:2,owner:3});wq=Ld.member;nr=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 ${zve(e)||"them"} edit`,notNow:"Not now",review:"Review",raised:(e)=>`You can edit ${e||"this project"} now.`,narrowedTo:(e,t)=>`${zve(e)||"Someone"} changed you to ${vq(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",sharedWithYou:(e)=>`Shared with you · ${vq(e)}`,onlyOne:(e)=>`Only ${e} was shared with you.`,onlyMany:(e)=>`Only these ${e} canvases were shared with you.`});Cq=Object.freeze({path:"/_health",ms:30000}),Aq=Object.freeze({path:"/_api/share/me",ms:60000}),Fve=Symbol.for("maude.access.refusal-watch");kq=new Set});function hwe(e=globalThis.window){zq=!0,e?.dispatchEvent?.(new CustomEvent("maude:open-trash"))}function Uq(){let e=zq;return zq=!1,e}function sx(e,t=globalThis.window){Fq.push(e),t?.dispatchEvent?.(new CustomEvent(IP))}function gwe(){let e=Fq;return Fq=[],e}function Wh(e,t,n,o=globalThis.window){o?.dispatchEvent?.(new CustomEvent(mT,{detail:{op:e,path:t,label:n}}))}function ix(e,t,n=globalThis.window){n?.dispatchEvent?.(new CustomEvent(mT,{detail:{op:"jump",path:e,artboardId:t}}))}function bwe(e=globalThis.window){Bq=!0,e?.dispatchEvent?.(new CustomEvent(EP))}function ywe(){let e=Bq;return Bq=!1,e}var jq="maude:open-trash",zq=!1,IP="maude:canvases-op",Fq,mT="maude:canvas-op",EP="maude:focus-selector",Bq=!1;var zp=Ve(()=>{Fq=[]});var Dd=(...e)=>e,lx;var $P=Ve(()=>{lx=Object.freeze([{id:"kanban",title:"Kanban",desc:"To do · Doing · Done",thumb:"kanban",board:{groups:[{title:"To do",cards:Dd("","")},{title:"Doing",cards:Dd("")},{title:"Done",cards:Dd("")}]}},{id:"retro",title:"Retro",desc:"Went well · To improve · Actions",thumb:"retro",board:{groups:[{title:"Went well",cards:Dd("","")},{title:"To improve",cards:Dd("","")},{title:"Actions",cards:Dd("")}]}},{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:Dd("")}))}},{id:"roadmap",title:"Roadmap",desc:"One column a month",thumb:"road",board:{groups:[{title:"This month",cards:Dd("","")},{title:"Next month",cards:Dd("","")},{title:"The month after",cards:Dd("")}]}},{id:"brainstorm",title:"Brainstorm",desc:"A topic and ideas round it",thumb:"brain",board:{title:"Topic",layout:"radial",groups:[{title:"Ideas",cards:Dd("","","","","","")}]}},{id:"checklist",title:"Checklist",desc:"One section, ticks",thumb:"check",board:{groups:[{title:"Checklist",cards:Dd("☐","☐","☐","☐")}]}},{id:"blank",title:"Blank section",desc:"Draw it, name it",thumb:"blank",board:{groups:[{title:"Section"}]}}])});var hT,gT,vwe;var wwe=Ve(()=>{hT={shell:["desktop"],minRole:"edit"},gT={hidden:!0},vwe=[{id:"ai.runs.list",label:"AI runs",kind:"command",icon:"sparkle",exec:"shell",visible:hT,search:gT},{id:"ai.stop",label:"Stop",kind:"command",exec:"shell",visible:hT,search:gT},{id:"ai.cancel-waiting",label:"Cancel the waiting prompt",kind:"command",exec:"shell",visible:hT,search:gT},{id:"ai.run-on-copy",label:"Run on a copy",kind:"command",exec:"shell",visible:hT,search:gT},{id:"ai.keep-going",label:"Keep going",kind:"command",exec:"shell",visible:hT,search:gT}]});function kwe(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(L2t[a.toLowerCase()]),""));for(;;){t=t.replace(/^\s+/,"");let r=RP.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(MP[o])o=MP[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 RP.filter((r)=>n.has(r)).join("")+o}function G1(e){let t=kwe(e);if(!t)throw Error(`actions/keys: '${e}' is not a key chord`);return t}function q1(e){let t=new Set;if(e.metaKey||e.ctrlKey)t.add("⌘");if(e.altKey)t.add("⌥");let n=e.key??"";if(MP[n])n=MP[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]:P2t[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)||xwe.has(n)||/^F\d/.test(n);if(e.shiftKey&&r)t.add("⇧");return RP.filter((a)=>t.has(a)).join("")+n}function Swe(e){let{mods:t,key:n}=Cwe(e);if(t.some((o)=>o!=="⇧"))return!1;if(xwe.has(n)||/^F\d{1,2}$/.test(n))return!1;return n.length===1}function _we(e){return e.includes("⌘")||e.includes("⌃")}function Cwe(e){let t=[],n=e;for(;;){let o=RP.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 tm(e,t={}){let{mods:n,key:o}=Cwe(kwe(e)??e),r=o==="="&&n.includes("⌘")?"+":o;return t.spaced?[...n,r].join(" "):n.join("")+r}var RP,MP,xwe,L2t,P2t,Awe,Nwe;var Fp=Ve(()=>{RP=["⌃","⌥","⇧","⌘"],MP={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","-":"−","–":"−"},xwe=new Set(["↵","esc","Space","tab","⌫","⌦","←","→","↑","↓","Home","End","PageUp","PageDown"]),L2t={cmd:"⌘",command:"⌘",meta:"⌘",ctrl:"⌃",control:"⌃",alt:"⌥",opt:"⌥",option:"⌥",shift:"⇧"};P2t={Minus:"−",Equal:"=",Slash:"/",Backslash:"\\",BracketLeft:"[",BracketRight:"]",Comma:",",Period:".",Semicolon:";",Quote:"'",Backquote:"`",Space:"Space"};Awe=new Set(["⌘Z","⇧⌘Z","⌘Y","⌘A","⌘C","⌘X","⌘V","⇧⌘V","⌥⇧⌘V","⌘B","⌘I","⌘U","⌘←","⌘→","⌘↑","⌘↓","⇧⌘←","⇧⌘→","⌥←","⌥→","⌘⌫","⌥⌫"].map(G1)),Nwe=new Set(["⌘N","⇧⌘N","⌘T","⌘W","⌘Q","⌘L"].map(G1))});function Ht(e,t,n={}){return{chord:G1(e),layer:t,...n}}function Ur(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=Ht(l+e,n,o);a.push(s===0?c:{...c,alias:!0})}return a}var zd,bT,OP,zc,cx;var Fd=Ve(()=>{Fp();zd=["chrome","timeline","text"],bT={focus:["chrome","timeline"],notFacts:["rangeFocused"]},OP={notFacts:["selectFocused"]},zc={focus:["canvas"]},cx={focus:["canvas","text"]}});var Vh,Zb,Fc=(e,t,n)=>({id:e,label:t,kind:"command",exec:"canvas",keys:n}),Twe,Iwe,Ewe;var $we=Ve(()=>{$P();Fd();Vh={...zc,selection:["annotation"]},Zb={...Vh,mode:["preview"]},Twe=[Fc("annotation.group","Group",[Ht("⌘G","selection",{when:Zb})]),Fc("annotation.ungroup","Ungroup",[Ht("⇧⌘G","selection",{when:Zb})]),Fc("annotation.lock","Lock / unlock",[Ht("⇧⌘L","selection",{when:Zb})]),Fc("annotation.duplicate","Duplicate",[Ht("⌘D","selection",{when:Vh})]),Fc("annotation.to-front","Bring to front",[Ht("]","selection",{when:Zb})]),Fc("annotation.forward","Bring forward",[Ht("⌘]","selection",{when:Zb})]),Fc("annotation.to-back","Send to back",[Ht("[","selection",{when:Zb})]),Fc("annotation.backward","Send backward",[Ht("⌘[","selection",{when:Zb})]),Fc("annotation.copy","Copy",[Ht("⌘C","selection",{when:Vh})]),Fc("annotation.cut","Cut",[Ht("⌘X","selection",{when:Vh})]),Fc("annotation.chain","Add the next one",[Ht("⌘↵","selection",{when:Vh})]),Fc("annotation.edit-text","Edit text",[Ht("↵","selection",{when:Vh})]),Fc("annotation.nudge","Nudge",["←","→","↑","↓"].flatMap((e)=>Ur(e,"⇧","selection",{when:Vh}))),Fc("annotation.remove","Remove",[...Ur("⌫","⇧","selection",{when:Vh}),...Ur("⌦","⇧","selection",{when:Vh})]),{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:[Ht("⌘/","selection",{when:Zb})],search:{keywords:["ask ai","sticky","section","selection"]}}],Iwe=[{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"]}}],Ewe=lx.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 Rwe,Mwe;var Owe=Ve(()=>{Fd();Rwe={focus:["chrome","timeline","canvas"],notFacts:["rangeFocused"]},Mwe=[{id:"settings.open",label:"Settings…",kind:"command",icon:"sliders",exec:"shell",fromCanvas:!0,keys:[Ht("⌘,","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:"Sign in as another account…",kind:"command",exec:"shell",visible:{shell:["desktop","cloud"]}},{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:[Ht("⌘/","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:[Ht("?","global",{inText:!1,when:Rwe}),Ht("⌘?","global",{inText:!1,alias:!0,when:Rwe})],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:Ur("F1","⌥⇧⌘","global",{inText:!1,when:bT}),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 Lwe;var Pwe=Ve(()=>{Fd();Lwe=[{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:[Ht("⌘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:[Ht("⌘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 dx(e,t,n){return{id:`chat.advanced.${e}`,label:t,kind:"command",exec:"shell",visible:Hq,search:{keywords:n,where:"AI chat panel › Advanced"}}}var Hq,ux,nm,Dwe;var zwe=Ve(()=>{Hq={shell:["desktop"]},ux={shell:["desktop"],minRole:"edit"},nm={hidden:!0};Dwe=[{id:"chat.new",label:"New chat",kind:"command",icon:"plus",exec:"shell",visible:Hq,search:nm},{id:"chat.rename",label:"Rename…",kind:"command",exec:"shell",visible:ux,search:nm},{id:"chat.archive",label:"Archive",kind:"command",exec:"shell",visible:ux,search:nm},{id:"chat.trash",label:"Move to trash",kind:"command",icon:"trash",exec:"shell",visible:ux,search:nm},{id:"chat.undo",label:"Undo this chat",kind:"command",exec:"shell",visible:ux,search:nm},{id:"chat.copy-transcript",label:"Copy transcript",kind:"command",exec:"shell",visible:Hq,search:nm},{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"}},dx("ask-before","Permissions",["ask before","mode","permission","plan","suggest only","bypass","auto"]),dx("model","Model",["opus","sonnet","haiku","claude"]),dx("effort","Effort",["thinking","think harder","low","high"]),dx("fast-mode","Fast mode",["fast","speed"]),dx("show-in-chat","Show in chat",["verbose","thinking","transcript","detail","view"]),dx("suggestions","Suggestions",["chips","suggest","quick"]),dx("raw-log","Raw log",["tool log","tools","calls","debug","log"]),{id:"ai.attach-files",label:"Attach files…",kind:"command",icon:"file",exec:"shell",visible:ux,search:nm},{id:"ai.attach-folder",label:"Choose a folder…",kind:"command",icon:"folder",exec:"shell",visible:{shell:["desktop"],minRole:"edit",facts:["native"]},search:nm},{id:"ai.attach-assets",label:"From Assets",kind:"command",icon:"image",exec:"shell",visible:ux,search:nm},{id:"ai.attach-screenshot",label:"Paste a screenshot",kind:"command",exec:"shell",visible:ux,search:nm}]});var Bp=(e,t,n={})=>({id:e,label:t,kind:"command",exec:"shell",...n}),Fwe;var Bwe=Ve(()=>{Fwe=[Bp("diag.sync","Sync"),Bp("diag.server","Server"),Bp("diag.ai","AI setup"),Bp("diag.logs","Logs"),Bp("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"}},Bp("diag.ai-recheck","Check AI setup again"),Bp("diag.address","Address"),Bp("diag.process","Process"),Bp("diag.project-folder","Project folder"),Bp("sync.resync","Resync now",{visible:{minRole:"edit"},enabled:{facts:["online"]}}),Bp("sync.download-all","Download all",{enabled:{facts:["online"]}})]});var jwe,D2t,yT,Uwe,dr=(e,t,n=jwe)=>({id:e,label:t,kind:"command",exec:"shell",visible:n,search:Uwe}),Hwe;var Wwe=Ve(()=>{jwe={minRole:"edit"},D2t={minRole:"owner"},yT={minRole:"view"},Uwe={hidden:!0},Hwe=[dr("ds.publish","Update canvases"),dr("ds.cancel-pending","Cancel"),dr("ds.keep-outside","Keep"),dr("ds.undo-outside","Undo"),dr("ds.pick","Use this"),dr("ds.canvas-update","Update"),dr("ds.canvas-leave","Keep this version"),dr("ds.trash-token","Move to Trash"),dr("ds.restore-token","Restore"),dr("ds.clear-token","Clear out",D2t),dr("ds.open","Design system",yT),dr("ds.set-theme-preview","Show the system in Light or Dark",yT),dr("ds.show-reach","Show where it lands",yT),dr("ds.review-update","Update for every canvas…"),dr("ds.go-to","Go to the design system",yT),dr("ds.instance-update","Update to the current look"),dr("ds.set-token","Change a token"),dr("ds.set-dark-follows","Dark follows Light"),dr("ds.set-master","Change a component"),dr("ds.make","Make a design system"),dr("ds.draft","Write a direction"),dr("ds.use-direction","Use this direction"),dr("ds.mix","Mix directions"),dr("ds.make-done","Finish the design system"),dr("ds.set-default","Use for new canvases"),dr("ds.rename","Rename…"),dr("ds.switch","Switch canvases to another system…"),dr("ds.preview","Preview in another system…",yT),dr("ds.convert","Turn into a Design system canvas"),dr("ds.convert-restore","Restore the system folder"),dr("ds.fix-contrast","Lighten to 4.5:1"),dr("ds.add-colour","Add it to the system"),dr("ds.use-nearest","Use the system colour"),dr("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:Uwe},dr("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:jwe,search:{keywords:["team","library","share","shared","brand kit","design system"]}},dr("ds.library-update","Update from the library"),dr("ds.library-unlink","Unlink the library")]});var Vwe,Gwe,qwe,In,ji,Wq,Jb=(e,t={})=>Ht(e,"selection",{when:Wq,...t}),Qb=(e,t,n)=>({id:e,label:t,kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},...n.length?{keys:n}:{}}),Kwe;var Ywe=Ve(()=>{Fd();Vwe={focus:["chrome"],facts:["canvasOpen"],notFacts:["rangeFocused"]},Gwe={when:OP,inText:!1},qwe={focus:["chrome","timeline"],facts:["canvasOpen"],notFacts:["rangeFocused"]},In={minRole:"edit"},ji=zc,Wq={...ji,mode:["edit"],selection:["object"]},Kwe=[{id:"edit.undo",label:"Undo",kind:"command",exec:"canvas",enabled:In,keys:[Ht("⌘Z","global",{inText:!1,when:Vwe}),Ht("⌘Z","timeline",Gwe),Ht("⌘Z","global",{when:zc})],legacy:{menu:"Undo",sheet:"Undo / redo"}},{id:"edit.redo",label:"Redo",kind:"command",exec:"canvas",enabled:In,keys:[Ht("⇧⌘Z","global",{inText:!1,when:Vwe}),Ht("⇧⌘Z","timeline",Gwe),Ht("⌘Y","global",{inText:!1,alias:!0,when:qwe}),Ht("⇧⌘Y","global",{inText:!1,alias:!0,when:qwe}),Ht("⇧⌘Z","global",{when:zc}),Ht("⌘Y","global",{alias:!0,when:zc})],legacy:{menu:"Redo",sheet:"Undo / redo"}},{id:"edit.undo-history",label:"Undo history…",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:{...In,facts:["canvasOpen"]}},{id:"edit.copy",label:"Copy",kind:"command",exec:"shell",visible:{minRole:"comment"},keys:[Ht("⌘C","global",{inText:!0,when:{focus:zd}})]},{id:"edit.cut",label:"Cut",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:In,keys:[Ht("⌘X","global",{inText:!0,when:{focus:zd}})]},{id:"edit.paste",label:"Paste",kind:"command",exec:"shell",visible:{minRole:"comment"},enabled:In,keys:[Ht("⌘V","global",{inText:!0,when:{focus:zd}})]},{id:"select.all",label:"Select all",kind:"command",exec:"canvas",visible:{minRole:"comment"},keys:[Ht("⌘A","selection",{when:ji})]},{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:In,keys:[Ht("⇧⌘A","global",{inText:!1,when:zc})],legacy:{menu:"Select all annotations"}},{id:"object.duplicate",label:"Duplicate",kind:"command",exec:"canvas",keys:[Ht("⌘D","selection",{when:{...ji,selection:["object"]}})]},{id:"object.copy",label:"Copy",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},keys:[Ht("⌘C","selection",{when:Wq})],search:{hidden:!0},help:{group:"objects",order:901}},{id:"object.cut",label:"Cut",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},keys:[Ht("⌘X","selection",{when:Wq})],search:{hidden:!0},help:{group:"objects",order:902}},{id:"artboard.copy",label:"Copy artboard",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},keys:[Ht("⌘C","selection",{when:{...ji,mode:["edit"],selection:["artboard"]}})],search:{hidden:!0},help:{group:"objects",order:903}},{id:"canvas.paste",label:"Paste objects",kind:"command",exec:"canvas",enabled:In,search:{keywords:["paste","clipboard","objects","artboard"]}},{id:"edit.copy-properties",label:"Copy properties",kind:"command",exec:"canvas",visible:{minRole:"comment"},keys:Ur("⌥⌘C","⇧","selection",{when:{...ji,selection:["object"]}})},{id:"edit.paste-properties",label:"Paste properties",kind:"command",exec:"canvas",visible:{minRole:"comment"},enabled:In,keys:Ur("⌥⌘V","⇧","selection",{when:{...ji,selection:["object"]}})},{id:"object.enter",label:"Go inside",kind:"command",exec:"canvas",keys:[Ht("↵","selection",{when:{...ji,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:[Ht("⇧↵","selection",{when:{...ji,selection:["object"]}})]},{id:"object.select-next",label:"Select next object",kind:"command",exec:"canvas",keys:[Ht("tab","selection",{when:{...ji,mode:["edit"]}})]},{id:"object.select-prev",label:"Select previous object",kind:"command",exec:"canvas",keys:[Ht("⇧tab","selection",{when:{...ji,mode:["edit"]}})]},{id:"object.remove",label:"Remove",kind:"command",exec:"canvas",keys:[...Ur("⌫","⇧","global",{when:{focus:["chrome","timeline"],notFacts:["selectFocused"]}}),...Ur("⌦","⇧","global",{when:{focus:["chrome","timeline"],notFacts:["selectFocused"]}}),...["⌘⌫","⇧⌘⌫","⌥⌫","⌥⇧⌫","⌥⌘⌫","⌥⇧⌘⌫","⌘⌦","⇧⌘⌦","⌥⌦","⌥⇧⌦","⌥⌘⌦","⌥⇧⌘⌦"].map((e)=>Ht(e,"timeline",{inText:!1,alias:!0,when:{selection:["clip"],notFacts:["selectFocused"]}})),...Ur("⌫","⇧","selection",{when:{...ji,selection:["object"]}}),...Ur("⌦","⇧","selection",{when:{...ji,selection:["object"]}})]},{id:"object.nudge",label:"Nudge",kind:"command",exec:"canvas",keys:["←","→","↑","↓"].flatMap((e)=>Ur(e,"⇧","selection",{when:{...ji,selection:["object","artboard"]}}).map((t)=>t.chord==="←"||t.chord==="→"?{...t,when:{...t.when,notFacts:["selectionHasTakes"]}}:t))},Qb("object.frame","Frame selection",[Jb("⌥⌘G"),Jb("⌘G",{alias:!0})]),Qb("object.unframe","Remove frame",[Jb("⇧⌘G")]),Qb("object.bring-front","Bring to front",[Jb("⌘]")]),Qb("object.bring-forward","Bring forward",[Jb("]")]),Qb("object.send-backward","Send backward",[Jb("[")]),Qb("object.send-back","Send to back",[Jb("⌘[")]),Qb("object.lock","Lock",[Jb("⇧⌘L")]),Qb("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:{...In,selection:["object","artboard"]},search:{keywords:[...n]}})),{id:"object.rotate",label:"Rotate 90°",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{keywords:["rotate","turn","angle"]}},{id:"object.place-freely",label:"Place freely",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{keywords:["absolute","free","position","ignore auto layout","x y"]}},{id:"object.reorder-earlier",label:"Move earlier",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{keywords:["reorder","order","earlier","before","left","up"]}},{id:"object.reorder-later",label:"Move later",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{keywords:["reorder","order","later","after","right","down"]}},{id:"object.reorder-to",label:"Move next to…",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"object.constrain",label:"Constraints",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"layout.set-gap",label:"Set gap",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"layout.convert-to-absolute",label:"Convert children to absolute position",kind:"command",exec:"canvas",enabled:{...In,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:In,search:{hidden:!0}},{id:"artboard.draw",label:"Draw an artboard",kind:"command",exec:"canvas",enabled:In,search:{hidden:!0}},{id:"artboard.insert-preset",label:"Add an artboard",kind:"command",exec:"canvas",enabled:In,search:{hidden:!0}},{id:"object.insert-path",label:"Draw a path",kind:"command",exec:"canvas",enabled:In,search:{hidden:!0}},{id:"path.edit",label:"Edit path points",kind:"command",exec:"canvas",enabled:{...In,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:{...In,selection:["object"]}})),{id:"object.set-corner-radius",label:"Round a corner",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"text.set",label:"Set text",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"text.set-language",label:"Set language",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"text.set-case",label:"Set case",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"text.use-style",label:"Use a style",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"text.reset-style",label:"Reset text style",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{keywords:["reset","override","style","type","font","size"]}},{id:"component.insert",label:"Place a component",kind:"command",exec:"canvas",enabled:{...In},search:{hidden:!0}},{id:"image.place",label:"Place a picture",kind:"command",exec:"canvas",enabled:In,search:{hidden:!0}},{id:"image.crop",label:"Crop",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{keywords:["crop","fit","fill","tile","zoom","picture","image","photo"]}},{id:"image.replace",label:"Replace…",kind:"command",exec:"shell",enabled:{...In,selection:["object"]},search:{keywords:["replace","swap","picture","image","photo"]}},{id:"image.next-take",label:"Next take",kind:"command",exec:"shell",enabled:{...In},keys:[Ht("→","selection",{when:{focus:["chrome"],facts:["selectionHasTakes"]}})],search:{hidden:!0}},{id:"image.prev-take",label:"Previous take",kind:"command",exec:"shell",enabled:{...In},keys:[Ht("←","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:{...In,selection:["object"]},search:{hidden:!0}},{id:"photo.apply-every-use",label:"Apply to every use…",kind:"command",exec:"shell",enabled:{...In,selection:["object"]},search:{keywords:["apply","every","use","all","photo","picture","image","look"]}},{id:"figma.make-editable",label:"Make editable",kind:"command",exec:"shell",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"component.swap-variant",label:"Swap variant or component",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{hidden:!0}},{id:"component.reset",label:"Reset to the main component",kind:"command",exec:"canvas",enabled:{...In,selection:["object"]},search:{keywords:["reset","override","instance","component","changes","master"]}},{id:"component.detach",label:"Detach instance",kind:"command",exec:"canvas",enabled:{...In,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:{...In,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:{...In,selection:["object"]}},{id:"element.stamp",label:"Name element",kind:"command",exec:"canvas",enabled:In,search:{hidden:!0}},{id:"artboard.resize",label:"Resize artboard",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.add-width",label:"Add a width",kind:"command",exec:"shell",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.tidy",label:"Tidy up artboards",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{keywords:["tidy","row","even","gaps","arrange","line up"]}},{id:"artboard.duplicate",label:"Duplicate artboard",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},keys:[Ht("⌘D","selection",{when:{...ji,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:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-safe-zones",label:"Set safe zones",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-print",label:"Set paper, size, bleed or margin",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.convert-kind",label:"Change kind",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"warning.fix",label:"Fix what to check",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-print-guides",label:"Print guides on this artboard",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.set-guides",label:"Set layout guides",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"artboard.rename",label:"Rename artboard",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{keywords:["name","label","artboard"]}},{id:"artboard.reset-position",label:"Reset artboard position",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},search:{keywords:["position","grid","back","artboard"]}},{id:"artboard.trash",label:"Move artboard to the trash",kind:"command",exec:"canvas",enabled:{...In,selection:["artboard"]},keys:[...Ur("⌫","⇧","selection",{when:{...ji,selection:["artboard"]}}),...Ur("⌦","⇧","selection",{when:{...ji,selection:["artboard"]}})],search:{keywords:["delete","remove","trash","artboard"]}},{id:"artboard.ask-ai",label:"Ask AI about this artboard",kind:"command",exec:"shell",enabled:{...In,selection:["artboard"]},search:{hidden:!0}},{id:"ai.ask-selection",label:"Ask AI about the selection",kind:"command",icon:"sparkle",exec:"canvas",visible:In,enabled:{...In,selection:["object"]},keys:[Ht("⌘/","selection",{when:{...ji,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:{...In,selection:["object"]}},{id:"element.clear-link",label:"Clear link",kind:"command",exec:"shell",enabled:{...In,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:{...In,selection:["object"]}},{id:"element.detach",label:"Detach from shared component",kind:"command",exec:"shell",search:{where:"Inspector › Advanced"},enabled:{...In,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:{...In,mode:["preview","viewing"],selection:["object"]},keys:[Ht("↵","selection",{when:{...ji,mode:["preview","viewing"],selection:["object"]}})],search:{keywords:["inspect","switch","edit mode"]}},{id:"asset.relink",label:"Relink…",kind:"command",exec:"shell",enabled:{...In}}]});var Xwe;var Zwe=Ve(()=>{Fd();Xwe=[{id:"export.open",label:"Export…",kind:"command",icon:"download",exec:"shell",fromCanvas:!0,visible:{minRole:"comment"},keys:[Ht("⇧⌘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:[Ht("⇧⌘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:[Ht("⇧⌘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:"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 wi,Jwe;var Qwe=Ve(()=>{wi={hidden:!0},Jwe=[{id:"history.filter",label:"Filter versions",kind:"command",exec:"shell",search:wi},{id:"history.view-version",label:"View this version",kind:"command",exec:"shell",search:wi},{id:"history.object",label:"Version history of this object",kind:"command",exec:"shell",search:wi},{id:"history.compare",label:"Compare",kind:"command",exec:"shell",search:wi},{id:"history.compare-pictures",label:"Compare pictures",kind:"command",exec:"shell",search:wi},{id:"history.name",label:"Name this version…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.restore",label:"Restore this version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.restore-artboard",label:"Restore only this artboard",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.restore-object",label:"Restore this object",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.go-back",label:"Go back to the last good version",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.branch-switch",label:"Switch branch",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.new-branch",label:"New branch…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.fetch",label:"Fetch",kind:"command",exec:"shell",search:wi},{id:"history.publish",label:"Publish",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.save-with-note",label:"Save a version with a note…",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.open-pr",label:"Add to main · opens a pull request",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.discard-file",label:"Discard changes to a file",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.continue-draft",label:"Continue on your draft",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi},{id:"history.undo-action",label:"Undo this change",kind:"command",exec:"shell",visible:{minRole:"edit"},search:wi}]});var Bc,exe;var txe=Ve(()=>{Fd();Bc={shell:["desktop"]},exe=[{id:"project.new",label:"New project…",kind:"command",exec:"shell",visible:{minRole:"comment"},keys:[Ht("⇧⌘N","global",{inText:!0,when:Bc})],native:{menu:"File",order:2}},{id:"project.pull-copy",label:"Pull a local copy…",kind:"command",exec:"shell",visible:{...Bc,minRole:"comment"}},{id:"project.share-github",label:"Share on GitHub…",kind:"command",exec:"shell",visible:{...Bc,minRole:"comment"}},{id:"project.open",label:"Open project…",kind:"command",exec:"native",visible:{minRole:"comment"},keys:[Ht("⌘O","global",{inText:!0,when:Bc})],help:{group:"finding",order:20},native:{menu:"File",order:3}},{id:"home.open",label:"Show Home",kind:"command",exec:"native",keys:[Ht("⌘T","global",{inText:!0,when:Bc})],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:[Ht("⌘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:[Ht("⌘W","global",{inText:!0,when:Bc})],help:{group:"tabs-windows",order:40},native:{menu:"File",order:5}},{id:"tab.next",label:"Show next tab",kind:"command",exec:"native",keys:[Ht("⌃tab","global",{inText:!0,when:Bc}),Ht("⇧⌘]","global",{inText:!0,alias:!0,when:Bc})],help:{group:"tabs-windows",order:10},native:{menu:"Window",order:1}},{id:"tab.prev",label:"Show previous tab",kind:"command",exec:"native",keys:[Ht("⌃⇧tab","global",{inText:!0,when:Bc}),Ht("⇧⌘[","global",{inText:!0,alias:!0,when:Bc})],help:{group:"tabs-windows",order:20},native:{menu:"Window",order:2}},{id:"tab.overview",label:"Show all tabs",kind:"command",exec:"native",keys:[Ht("⇧⌘\\","global",{inText:!0,when:Bc})],help:{group:"tabs-windows",order:25},native:{menu:"Window",order:3}},{id:"tab.rename",label:"Rename…",kind:"command",exec:"native",visible:Bc},...[1,2,3,4,5,6,7,8].map((e)=>({id:`tab.select-${e}`,label:`Show tab ${e}`,kind:"command",exec:"native",keys:[Ht(`⌘${e}`,"global",{inText:!0,when:Bc})],native:{menu:"Window",order:2+e}})),{id:"tab.select-last",label:"Show last tab",kind:"command",exec:"native",keys:[Ht("⌘9","global",{inText:!0,when:Bc})],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 Vq,Gq,nxe;var oxe=Ve(()=>{Vq={facts:["canvasOpen"]},Gq={hidden:!0},nxe=[{id:"presence.follow",label:"Follow",kind:"command",icon:"eye",exec:"canvas",visible:Vq,search:Gq},{id:"presence.go-to",label:"Go to",kind:"command",exec:"canvas",visible:Vq,search:Gq},{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:Vq,search:Gq}]});var rxe;var axe=Ve(()=>{Fd();rxe=[{id:"search.open",label:"Search",kind:"command",icon:"search",exec:"shell",fromCanvas:!0,keys:[Ht("⌘K","global",{inText:!0,when:{notShell:["home"]}}),Ht("⇧⌘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:[Ht("/","global",{inText:!1,when:bT})],legacy:{sheet:"Search files"}},{id:"canvases.find",label:"Find a canvas",kind:"command",exec:"shell",keys:Ur("⌘F","⇧","global",{inText:!1,when:bT}),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:[Ht("⇧⌘R","global",{inText:!0,when:{focus:zd}})]}]});var z2t,LP,om=(e,t,n)=>({id:e,label:t,kind:"command",...n?{icon:n}:{},exec:"shell",visible:z2t,search:LP}),sxe;var ixe=Ve(()=>{z2t={minRole:"edit"},LP={hidden:!0},sxe=[om("sync.conflict.keep-mine","Keep yours"),om("sync.conflict.keep-theirs","Keep theirs"),om("sync.conflict.keep-both","Keep both","duplicate"),om("save.retry-held","Retry saving"),om("sync.keep-mine","Keep mine"),om("sync.use-theirs","Use theirs"),om("sync.keep-both","Keep both","duplicate"),{id:"sync.compare",label:"Compare",kind:"command",exec:"shell",search:LP},om("sync.publish-ai-edit","Publish"),om("sync.discard-ai-edit","Discard"),om("sync.cancel-transfer","Cancel the transfer"),{id:"sync.get-latest",label:"Get latest",kind:"command",exec:"shell",search:LP},{id:"sync.sign-in-again",label:"Sign in again",kind:"command",exec:"shell",search:LP}]});var Ui,qq=(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"}}),F2t,lxe;var cxe=Ve(()=>{Fd();Ui={when:OP,inText:!1},F2t=[["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"]],lxe=[{id:"timeline.play",label:"Play / pause",kind:"toggle",exec:"shell",keys:Ur("Space","⌥⇧⌘","timeline",Ui)},{id:"timeline.step",label:"Step a frame",kind:"command",exec:"shell",keys:[...Ur("←","⌥⇧⌘","timeline",Ui),...Ur("→","⌥⇧⌘","timeline",Ui)]},{id:"timeline.to-start",label:"Go to start",kind:"command",exec:"shell",keys:Ur("Home","⌥⇧⌘","timeline",Ui)},{id:"timeline.to-end",label:"Go to end",kind:"command",exec:"shell",keys:Ur("End","⌥⇧⌘","timeline",Ui)},{id:"timeline.prev-keyframe",label:"Previous keyframe",kind:"command",exec:"shell",keys:[Ht(",","timeline",Ui)]},{id:"timeline.next-keyframe",label:"Next keyframe",kind:"command",exec:"shell",keys:[Ht(".","timeline",Ui),Ht("⌘.","timeline",{...Ui,alias:!0})]},{id:"timeline.split",label:"Split at playhead",kind:"command",exec:"shell",keys:[Ht("S","timeline",Ui),...Ur("⌘B","⇧","timeline",Ui),Ht("⌘B","global",{...Ui,alias:!0,when:{facts:["timelineVisible"]}})]},{id:"timeline.loop-in",label:"Loop starts here",kind:"command",exec:"shell",keys:[Ht("I","timeline",Ui)]},{id:"timeline.loop-out",label:"Loop ends here",kind:"command",exec:"shell",keys:[Ht("O","timeline",Ui)]},{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:[Ht("⌘=","timeline",{...Ui,when:{notFacts:["selectFocused","rangeFocused"]}}),Ht("⌘+","timeline",{...Ui,alias:!0,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.zoom-out",label:"Zoom timeline out",kind:"command",exec:"shell",keys:[Ht("⌘−","timeline",{...Ui,when:{notFacts:["selectFocused","rangeFocused"]}})]},{id:"timeline.zoom-fit",label:"Fit the timeline",kind:"command",exec:"shell",keys:[Ht("0","timeline",{...Ui,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:Ur("C","⇧","timeline",{...Ui,when:{notFacts:["selectFocused","rangeFocused"]}})},qq("timeline.trim","Trim a clip","Timeline › Drag a clip’s edge"),qq("timeline.move-clip","Move a clip","Timeline › Drag a clip"),qq("timeline.add-clips","Add footage to the video","Timeline › Drop footage"),...F2t.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 B2t(e,t){if(e==="present")return t?.kind==="artboards"?"present-artboards":"present-canvas";return e}function lc(e,t,n){return j2t[e][B2t(t,n)]}function px(e,t,n){if(!e)return t==="measure"||t==="comment-pins"||t==="object-tools";return U2t[t](e,n)}var Bd=(e,t,n,o,r)=>Object.freeze({edit:e,preview:t,"present-artboards":n,"present-canvas":o,viewing:r}),j2t,U2t,uxe=(e,t)=>lc("left-panels",e,t)==="folded";var rm=Ve(()=>{j2t=Object.freeze({clicks:Bd("tool","live","next-artboard","pan-zoom","specs"),toolbar:Bd("edit","preview","none","none","viewing"),annotations:Bd("quiet","drawn","hidden","hidden","read-only"),"comment-pins":Bd("shown","shown","hidden","hidden","shown"),measure:Bd("on","on","off","off","on"),"ai-changes":Bd("live","live","held","live-unmarked","live"),"left-panels":Bd("shown","folded","hidden","hidden","shown"),"ai-panel":Bd("shown","folded","hidden","hidden","none"),"share-cluster":Bd("full","full","hidden","hidden","full-access"),inspect:Bd("inspector","panel-on-cmd-click","hidden","hidden","panel-on-click"),"project-menu":Bd("pill","pill","esc-first","esc-first","pill"),esc:Bd("steps-back","steps-back","settles-back","same-view","deselect")});U2t=Object.freeze({measure:(e,t)=>lc("measure",e,t)==="on","inspect-panel":(e,t)=>lc("inspect",e,t).startsWith("panel"),"comment-pins":(e,t)=>lc("comment-pins",e,t)==="shown","object-tools":(e,t)=>lc("clicks",e,t)==="tool","live-design":(e,t)=>lc("clicks",e,t)==="live","annotations-editable":(e,t)=>lc("annotations",e,t)==="drawn",chrome:(e,t)=>lc("share-cluster",e,t)!=="hidden"})});function mx(e,t){if(e==="edit"&&!t.edit)return"viewing";if(e==="viewing"&&t.edit)return"edit";return e}function hxe(e){if(e.edit||e.annotate)return"edit";return e.comment?"comment":"view"}function Y1(e,t){for(let n of[e,...gxe[e]]){let o=jp[n].slots.find((r)=>r.key===t);if(o)return{mode:n,slot:o}}return null}function Jq(e,t,n,o){let r=Y1(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=hxe(n);if(PP[c]<PP[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 bxe(e){let t=[];for(let n of[e,...gxe[e]])for(let o of jp[n].slots){if(!o.key||t.includes(o.key))continue;if(Y1(e,o.key)?.slot===o&&!o.pending)t.push(o.key)}return t}function yxe(e,t,n){if(!fxe(t))return!1;let o=jp[e].slots.find((r)=>r.tool===t||!!r.tips?.includes(t)||!!r.more?.some((a)=>a.tool===t));return!o||PP[hxe(n)]>=PP[o.minRole]}function dxe(e,t){return jp[e].slots.some((n)=>n.tool===t||n.tool!==null&&V2t[n.tool]===t||!!n.tips?.includes(t)||!!n.lights?.includes(t)||!!n.more?.some((o)=>o.tool===t))}function vxe(e,t,n){if(!fxe(e)||G2t.has(e))return null;if(dxe(n,e))return n;if(e==="move")return t.edit?"edit":"viewing";for(let o of["preview","edit"])if(dxe(o,e))return o;return null}function vT(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 Kq,pxe,Yq,H2t,Xq,o_n,W2t,fxe=(e)=>typeof e==="string"&&W2t.has(e),fx,K1,mxe=(e)=>e.edit?"edit":"viewing",Zq=(e)=>e.edit?"edit":"preview",r_n,a_n,PP,ba=(e)=>Object.freeze(e),jp,V2t,gxe,G2t;var Up=Ve(()=>{rm();Kq=["edit","viewing","preview","present"],pxe=["artboards","canvas"],Yq=["browse","move","hand","comment","pen","highlighter","eraser","shape","sticky","section","arrow","text"],H2t=["inspect","frame","el-shape","el-pen","el-text","image","component","line","ellipse","polygon","crop","slice","pointer"],Xq=[...Yq,...H2t],o_n=new Set(Kq),W2t=new Set(Xq),fx=Object.freeze({edit:!1,annotate:!1,comment:!1}),K1=Object.freeze({edit:!0,annotate:!0,comment:!0});r_n=Object.freeze({edit:"edit",viewing:"edit",preview:"preview",present:"preview"}),a_n=Object.freeze({edit:"move",viewing:"inspect",preview:"browse",present:"browse"}),PP=Object.freeze({view:0,comment:1,edit:2});jp=Object.freeze({edit:Object.freeze({rest:"move",slots:Object.freeze([ba({key:"V",label:"Select",tool:"move",minRole:"edit"}),ba({key:"H",label:"Hand",tool:"hand",minRole:"edit"}),ba({key:"F",label:"Artboard / Frame",tool:"frame",minRole:"edit"}),ba({key:"R",label:"Shape",tool:"el-shape",minRole:"edit"}),ba({key:"P",label:"Pen",tool:"el-pen",minRole:"edit"}),ba({key:"T",label:"Text",tool:"el-text",minRole:"edit"}),ba({key:"I",label:"Image",tool:"image",minRole:"edit",panel:"image",panelFirst:!0}),ba({key:"⇧I",label:"Component",tool:null,minRole:"edit",panel:"components"}),ba({key:"",label:"More",tool:null,minRole:"edit",popover:"more",more:Object.freeze([ba({key:"",label:"Line",tool:"line",minRole:"edit"}),ba({key:"",label:"Ellipse",tool:"ellipse",minRole:"edit"}),ba({key:"",label:"Polygon",tool:"polygon",minRole:"edit"}),ba({key:"",label:"Crop",tool:"crop",minRole:"edit"}),ba({key:"",label:"Export area",tool:"slice",minRole:"edit"})])})])}),preview:Object.freeze({rest:"browse",slots:Object.freeze([ba({key:"V",label:"Select",tool:"browse",minRole:"view"}),ba({key:"H",label:"Hand",tool:"hand",minRole:"view"}),ba({key:"N",label:"Sticky",tool:"sticky",minRole:"edit",popover:"sticky-colours"}),ba({key:"C",label:"Comment",tool:"comment",minRole:"comment"}),ba({key:"M",label:"Marker",tool:"pen",minRole:"edit",popover:"marker-tips",tips:["pen","highlighter","eraser"]}),ba({key:"A",label:"Arrow",tool:"arrow",minRole:"edit"}),ba({key:"R",label:"Shape",tool:"shape",minRole:"edit",popover:"shape-kinds"}),ba({key:"T",label:"Text",tool:"text",minRole:"edit"}),ba({key:"E",label:"Stickers",tool:null,minRole:"edit",panel:"stickers"}),ba({key:"S",label:"Section",tool:"section",minRole:"edit",panel:"templates"})])}),viewing:Object.freeze({rest:"inspect",slots:Object.freeze([ba({key:"H",label:"Hand",tool:"inspect",minRole:"view"}),ba({key:"C",label:"Comment",tool:"comment",minRole:"comment"})])}),present:Object.freeze({rest:"browse",hidden:!0,slots:Object.freeze([ba({key:"L",label:"Pointer",tool:"pointer",minRole:"view"})])})}),V2t=Object.freeze({}),gxe=Object.freeze({edit:["preview"],preview:["edit"],viewing:["preview","edit"],present:[]});G2t=new Set(["hand"])});function wxe(e){if(e.tool==="move")return"tool.select";return`tool.${e.tool??e.panel??e.label.toLowerCase()}`}function X2t(){let e=new Map,t=0;for(let n of kxe)for(let o of jp[n].slots){if(o.pending||o.more||!o.key)continue;let r=wxe(o);if(!e.has(r))e.set(r,{slot:o,home:n,order:t++,keys:new Map})}for(let n of kxe)for(let o of bxe(n)){let r=Y1(n,o);if(!r)continue;let a=e.get(wxe(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:G1(s),layer:"tools",when:{focus:Y2t,mode:l}})),a=K2t[o.home];return{id:n,label:q2t[n]??o.slot.label,kind:"tool",exec:"canvas",keys:r,...a?{help:{group:a,order:o.order}}:{},...xxe[n]?{legacy:{menu:xxe[n]}}:{}}})}var q2t,xxe,K2t,Y2t,kxe,ey=(e,t,n)=>({id:e,label:t,kind:"tool",exec:"canvas",keys:[],...n?{legacy:{menu:n}}:{}}),Sxe;var _xe=Ve(()=>{Up();Fp();Fd();q2t={"tool.browse":"Select","tool.inspect":"Inspect","tool.pen":"Marker"},xxe={"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)"},K2t={edit:"edit-tools",preview:"preview-tools"},Y2t=["canvas","chrome"],kxe=["edit","preview","viewing","present"];Sxe=[...X2t(),{id:"tool.hand-hold",label:"Hand (hold Space)",kind:"tool",exec:"canvas",keys:Ur("Space","⌥⇧⌘","tools",{hold:!0,when:zc})},{id:"tool.create-default",label:"Add one at its default size",kind:"command",exec:"canvas",enabled:{minRole:"edit"},keys:[Ht("↵","tools",{when:{focus:["canvas"],mode:["edit","preview"],facts:["toolArmed"]}})],search:{hidden:!0}},ey("tool.highlighter","Highlighter"),ey("tool.eraser","Eraser","Eraser"),ey("tool.rect","Rectangle","Rect"),ey("tool.ellipse","Ellipse","Ellipse"),ey("tool.line","Line"),ey("tool.polygon","Polygon"),ey("tool.slice","Export area"),ey("tool.crop","Crop")]});var Cxe;var Axe=Ve(()=>{Fd();Cxe=[{id:"ui.step-back",label:"Step back",kind:"command",exec:"shell",keys:[...Ur("esc","⌥⇧⌘","global",{inText:!0,when:{focus:zd}}),...Ur("esc","⌥⇧⌘","selection",{inText:!1,when:zc})],legacy:{sheet:"Deselect · close menu"}},{id:"ui.cycle-region",label:"Move between the panels and the canvas",kind:"command",exec:"shell",fromCanvas:!0,keys:[Ht("F6","global",{inText:!0}),Ht("⇧F6","global",{inText:!0,alias:!0})],search:{keywords:["focus","panels","canvas","keyboard","f6"]}}]});var Z2t,J2t=(e)=>({hidden:!0,where:e,note:"bound by its S7 surface"}),Ga=(e,t,n,o="edit")=>({id:e,label:t,kind:"command",exec:"shell",enabled:o==="edit"?Z2t:{minRole:o},search:J2t(n)}),Nxe;var Txe=Ve(()=>{Z2t={minRole:"edit"},Nxe=[{...Ga("video.captions.add","Captions from speech","Timeline › Captions"),search:{where:"Timeline › Captions",keywords:["captions","subtitles","speech","transcribe"]}},{...Ga("video.transcript.open","Transcript","Timeline › Transcript","comment"),search:{where:"Timeline › Transcript",keywords:["transcript","words","captions","text"]}},Ga("video.captions.style","Caption style","Inspector › Captions"),Ga("video.captions.fix-word","Fix a caption word","Transcript panel"),Ga("video.captions.export","Export captions","Export sheet","comment"),Ga("video.transcript.cut","Cut these words","Transcript panel"),Ga("video.transcript.find-speech","Find speech","Transcript panel"),Ga("video.music.beats","Find the beat","Inspector › Music"),Ga("video.music.duck","Lower under speech","Inspector › Music"),Ga("video.music.volume","Music volume","Inspector › Music"),Ga("video.cut-to-beat","Cut to the beat","Inspector › Music"),Ga("video.snap","Snap to the beat","Timeline"),{...Ga("video.reframe","Re-frame","Timeline › Re-frame"),search:{where:"Timeline › Re-frame",keywords:["reframe","crop","framing","vertical","focus","window"]}},{...Ga("video.poster.set","Set as poster frame","Timeline"),search:{where:"Timeline › Poster",keywords:["poster","cover","thumbnail"]}},{...Ga("video.format.add","Add a format","Inspector › Formats"),search:{where:"Inspector › Formats",keywords:["format","size","16:9","9:16","1:1","reels","linked","aspect"]}},{...Ga("video.format.unlink","Make an unlinked copy","Inspector › Formats"),search:{where:"Inspector › Formats",keywords:["unlink","copy","own cut","fork","format"]}},{...Ga("video.allow-longer","Allow longer videos","Timeline › Advanced"),search:{where:"Timeline › Advanced",keywords:["longer","length","limit","2 min","frames"]}},Ga("video.easing.set","Keyframe curve","Timeline › Advanced"),{...Ga("video.take.swap","Swap a take","Timeline › Other takes"),search:{where:"Timeline › Other takes",keywords:["take","other takes","swap","alternate"]}},Ga("video.fit","Fit the picture","Inspector › Clip"),Ga("video.place","Place the title","Inspector › Formats"),Ga("video.title.motion","Title motion","Inspector › Title"),Ga("video.title.style","Title font and colour","Inspector › Title"),Ga("video.transition.set","Set the transition","Timeline › Join")]});var Ixe;var Exe=Ve(()=>{Fd();Ixe=[{id:"mode.preview",label:"Preview",kind:"toggle",icon:"eye",exec:"canvas",keys:[Ht("⌥⌘P","global",{inText:!0,when:{mode:["edit","preview","viewing"]}})],search:{keywords:["mode","live","interact","edit"]}},{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:[Ht("⌘\\","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:[Ht("↵","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:[Ht("⌘I","selection",{when:{focus:["chrome","timeline"],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:[Ht("⇧⌘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:[Ht("⌥⌘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:[Ht("⇧⌘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:[Ht("⇧⌘T","global",{inText:!0})],legacy:{menu:"Timeline"}},{id:"view.annotations",label:"Annotations",kind:"toggle",exec:"canvas",keys:[Ht("⇧P","global",{inText:!1,when:zc})],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:[Ht("⌥⌘↵","global",{when:{mode:["edit","viewing","preview"]}})],search:{keywords:["presentation","slideshow","artboards","selected"]}},{id:"present.from-start",label:"Present from the start",kind:"command",exec:"shell",fromCanvas:!0,keys:[Ht("⇧⌥⌘↵","global",{when:{mode:["edit","viewing","preview"]}})],search:{keywords:["presentation","slideshow","beginning","first"]}},{id:"present.next",label:"Next artboard",kind:"command",exec:"shell",keys:[Ht("→","global",{when:{mode:["present"]}}),Ht("Space","global",{when:{mode:["present"]}})],search:{keywords:["presentation","slideshow","advance","forward"]}},{id:"present.prev",label:"Previous artboard",kind:"command",exec:"shell",keys:[Ht("←","global",{when:{mode:["present"]}}),Ht("⇧Space","global",{when:{mode:["present"]}})],search:{keywords:["presentation","slideshow","back","backward"]}},{id:"present.canvas",label:"Present the canvas",kind:"toggle",exec:"shell",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:[Ht("⌘=","global",{inText:!0,when:cx}),Ht("⌘+","global",{inText:!0,alias:!0,when:cx})],legacy:{menu:"Zoom In",sheet:"Zoom in / out"}},{id:"view.zoom-out",label:"Zoom out",kind:"command",exec:"canvas",keys:[Ht("⌘−","global",{inText:!0,when:cx})],legacy:{menu:"Zoom Out",sheet:"Zoom in / out"}},{id:"view.zoom-fit",label:"Zoom to fit",kind:"command",exec:"canvas",keys:[Ht("⌘0","global",{inText:!0,when:cx})],legacy:{menu:"Fit to Screen",sheet:"Fit · actual size"}},{id:"view.zoom-actual",label:"Actual size",kind:"command",exec:"canvas",keys:[Ht("⇧0","global",{inText:!1,when:cx})],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)=>Ht(`⌥⌘${e}`,"global",{inText:!0,alias:t>0,when:cx}))},{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 am,Go;var Gs=Ve(()=>{wwe();$we();Owe();Pwe();zwe();Bwe();Wwe();Ywe();Zwe();Qwe();txe();oxe();axe();ixe();cxe();_xe();Axe();Txe();Exe();am=Object.freeze([...rxe,...Lwe,...Kwe,...Ixe,...Sxe,...Cxe,...lxe,...Nxe,...Xwe,...Mwe,...vwe,...Fwe,...Twe,...Ewe,...Iwe,...exe,...Dwe,...Jwe,...nxe,...sxe,...Hwe]),Go=new Map(am.map((e)=>[e.id,e]))});function eK(e){let t=Array.isArray(e)?e.filter((n)=>typeof n==="string"&&n):[];if(t.length===wT.length&&t.every((n,o)=>n===wT[o]))return;wT=t;for(let n of[...Qq])n(wT)}function DP(){return[...wT]}function $xe(e){return Qq.add(e),()=>{Qq.delete(e)}}var wT,Qq;var zP=Ve(()=>{wT=[],Qq=new Set});var tK,Rxe;var Mxe=Ve(()=>{tK={view:0,comment:1,edit:2,owner:3},Rxe=["timeline","selection","tools","global"]});function jc(e,t){if(!e)return!0;if(e.minRole&&tK[t.role]<tK[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)=>jc(n,t)))return!1;return!0}function Pl(e,t){return jc(e.visible,t)}function X1(e,t){return Pl(e,t)&&jc(e.enabled,t)}function Oxe(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 Q2t(e){return e.inText??(_we(e.chord)&&!Awe.has(e.chord))}function eTt(e,t){if(t.focus==="text"&&!Q2t(e.binding))return!1;if(t.focus==="modal"&&!e.binding.inModal)return!1;if(e.binding.layer==="timeline"&&t.focus!=="timeline")return!1;return Pl(e.action,t)&&jc(e.binding.when,t)}function Z1(e,t,n,o="tap"){if(n.singleKeys===!1&&Swe(t))return null;let r=e.get(t);if(!r?.length)return null;let a=r.filter((s)=>o==="hold"===!!s.binding.hold&&eTt(s,n));if(!a.length)return null;for(let s of Rxe){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 Pu=Ve(()=>{Fp();Mxe()});function tTt(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"))}function J1(e,t,n){return Oxe(e,(o,r)=>n(o.id)&&tTt(r,t))}var FP=Ve(()=>{Pu()});function xT(e,t=120){if(typeof e!=="string")return null;return e.replace(nTt,"").trim().slice(0,t).trim()||null}function nK(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 hx(e,t){if(!Array.isArray(e)||e.length===0)return null;return e.find((n)=>n.id===t)??e[0]}var nTt;var Q1=Ve(()=>{nTt=/[\u202a-\u202e\u2066-\u2069\u200b-\u200f\u2060\u00ad\ufeff\u0000-\u001f\u007f-\u009f]/g});var BP="mdcc-usage-tour-seen",jP="mdcc-collab-tour-seen",Ct="__system__",kT="mdcc-theme",ST="mdcc-show-hidden",UP="maude-cp-mode",_T="mdcc-sidebar-open",CT="mdcc-minimap-visible",AT="mdcc-zoomctl-visible",NT="mdcc-annotations-visible",oK=30000,TT="mdcc-panel-sides",IT="mdcc-layers-mode",qa,ET=(e)=>/\.(tsx|jsx)$/i.test(String(e||"")),Gh="2.0.1",rK;var Wo=Ve(()=>{qa=/\.(tsx|html?)$/i,rK=[]});function oTt(){return typeof window<"u"?window.__TAURI__:null}function rTt(){let e=typeof window<"u"?window:null;if(!e)return null;if(e.__maudeShellBus)return e.__maudeShellBus;let t=oTt(),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 gx(e,t){let n=rTt();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 lTt(e){return e.length<=63&&aTt.test(e)&&e!=="canvas"&&!e.startsWith("view-")&&!e.startsWith("canvas-")}function cTt(e){if(!e||e.length>512||iTt.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 uTt(e){try{return decodeURIComponent(e)}catch{return null}}function Pxe(e){if(typeof e!=="string"||e===""||sTt.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(!lTt(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(uTt);if(a.some((l)=>l===null||l.includes("/")||l.includes("\\")))return null;let s=cTt(a.join("/"));if(!s)return null;return`${r}/c/${s.split("/").map(encodeURIComponent).join("/")}`}function HP(e,t){if(!e||typeof e!=="object")return null;let n=e;if(n.reason!=="browser-door")return null;let o=Pxe(n.url);if(!o)return null;if(t&&new URL(o).hostname!==`${t}.cloud.maude.sh`)return null;return{url:o}}function dTt(e){try{globalThis.window?.open?.(e,"_blank","noopener,noreferrer")}catch{}}async function WP({url:e,profile:t},{invoke:n,openInBrowser:o=dTt}){let r=Pxe(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=Lxe(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:Lxe(a)||"Open this project in your browser."}}}var aTt,sTt,iTt,Lxe=(e)=>String((e&&typeof e==="object"&&"message"in e?e.message:e)??"").trim();var VP=Ve(()=>{aTt=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,sTt=/[\s\u0000-\u001f\u007f-\u009f\\@?#]/,iTt=/[\u0000-\u001f\u007f-\u009f\\]/});function Vt(){return typeof window<"u"&&!!window.__TAURI__}function pTt(){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 Lo(e,t){return pTt().core.invoke(e,t)}function fTt(e,t){return gx(e,t)}function qh(e,t){return gx(e,t)}async function ny(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}}async function RT(e){let t=await mTt(e),n=HP(t.json);if(n)return WP({url:n.url},{invoke:Vt()?Lo: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 aK(t.json),project:t.json}}catch(o){return{ok:!1,error:String(o?.message||o||"The project could not be opened.")}}}function Yh(e,t){return{size:e.size,type:t||"",name:e.name,async read(n,o){let r=await Lo("read_picked_media",{token:e.token,offset:n,len:o-n});return new Uint8Array(r)},release:()=>Lo("release_picked_media",{token:e.token}).catch(()=>{})}}async function QP(e,t){let n=Yh(e,t);try{return new Blob([await n.read(0,e.size)],t?{type:t}:void 0)}finally{n.release()}}var GP=()=>Lo("github_sign_in"),qP=()=>Lo("github_sign_out"),ty=()=>Vt()?Lo("cloud_sign_in_prepare"):Promise.resolve(!1),eS=()=>Vt()?Lo("cloud_signed_in"):Promise.resolve(!1),Dxe=()=>Vt()?Promise.resolve().then(()=>Lo("accounts_list")).then((e)=>Array.isArray(e)?e:null,()=>null):Promise.resolve(null),KP=()=>Lo("github_is_signed_in"),zxe=()=>Lo("github_open_verification",{url:"https://github.com/login/device"}),$T=(e)=>Lo("open_github_url",{url:e}),YP=(e)=>Lo("open_cloud_url",{url:e}),XP=(e)=>qh("github://device-code",e),ZP=(e)=>qh("github://signed-in",e),tS=(e)=>qh("menu://action",(t)=>e(t?.id)),oy=()=>ny("/_api/github/identity"),Fxe=()=>ny("/_api/github/repos"),Bxe=(e)=>ny("/_api/github/invite",{method:"POST",body:JSON.stringify({username:e})}),jxe=(e)=>ny("/_api/github/clone",{method:"POST",body:JSON.stringify(e)}),Uxe=(e)=>ny("/_api/github/create-project",{method:"POST",body:JSON.stringify(e)}),Hxe=(e)=>ny("/_api/project/create-local",{method:"POST",body:JSON.stringify(e)}),Wxe=(e)=>ny("/_api/design/init",{method:"POST",body:JSON.stringify({dir:e})}),mTt=(e)=>ny("/_api/projects/prepare",{method:"POST",body:JSON.stringify(e)}),aK=(e)=>Lo("managed_project_open",{serverUrl:e.serverUrl,projectId:e.projectId,name:e.name||e.projectId,canvasGroups:e.canvasGroups||[]}),JP=()=>Vt()?Lo("managed_projects_list"):Promise.resolve([]),Vxe=()=>Lo("app_recent_projects"),MT=()=>Lo("pick_directory"),Kh=(e,t)=>Lo("open_local_project",{path:e,open:t}),Gxe=(e)=>Lo("resolve_project_for_link",{project:e}),ry=()=>Lo("pick_media_file"),bx=()=>Lo("pick_media_files"),sK=(e)=>fTt("update-ready",e),yx=()=>Lo("restart_to_update"),qxe=()=>Lo("check_for_updates"),Kxe=()=>Lo("prefs_get_claude_auto_setup"),Yxe=(e)=>Lo("prefs_set_claude_auto_setup",{enabled:e});var Po=Ve(()=>{VP()});function hTt(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 Qxe{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-ATt;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=Xxe(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],Bs(c))r=!1,this.create({id:n,type:"default",message:c});else if(TTt(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"&&!Bs(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"&&!Bs(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"&&!Bs(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"&&!Bs(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=Xxe(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 eD(e){return e.label!==void 0}function sm(...e){return e.filter(Boolean).join(" ")}function FTt(e){let[t,n]=e.split("-"),o=[];if(t)o.push(t);if(n)o.push(n);return o}function Jxe(){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 jTt(e,t){let n={};return[e,t].forEach((o,r)=>{let a=r===1,s=a?"--mobile-offset":"--offset",l=a?OTt:MTt;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 gTt=(e)=>{switch(e){case"success":return vTt;case"info":return xTt;case"warning":return wTt;case"error":return kTt;default:return null}},bTt,yTt=({visible:e,className:t})=>tr("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},tr("div",{className:"sonner-spinner"},bTt.map((n,o)=>tr("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),vTt,wTt,xTt,kTt,STt,_Tt=()=>{let[e,t]=T(document.hidden);return M(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[]),e},CTt=1,ATt=100,Xxe=(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:CTt++},Uc,NTt=(e,t)=>Uc.message(e,t),TTt=(e)=>e&&typeof e==="object"&&("ok"in e)&&typeof e.ok==="boolean"&&("status"in e)&&typeof e.status==="number",ITt,ETt=()=>Uc.toasts,$Tt=()=>Uc.getActiveToasts(),tD,RTt=3,MTt="24px",OTt="16px",Zxe=4000,LTt=356,PTt=14,DTt=45,zTt=200,BTt=(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:w,index:y,toasts:v,expanded:x,removeToast:S,defaultRichColors:_,closeButton:A,style:C,cancelButtonStyle:E,actionButtonStyle:R,className:L="",descriptionClassName:W="",duration:B,position:j,gap:P,expandByDefault:V,classNames:K,icons:Q,closeButtonAriaLabel:G="Close toast"}=e,[F,q]=T(null),[z,J]=T(null),[Z,te]=T(!1),[ye,Se]=T(!1),[ce,be]=T(!1),[$e,Ie]=T(!1),[Ue,se]=T(!1),[ge,Ne]=T(0),[oe,Ae]=T(0),At=U(p.duration||B||Zxe),je=U(null),ft=U(null),ve=y===0,Ye=y+1<=b,Ee=p.type,Mt=Ee!=null?Ee:"default",en=p.dismissible!==!1,gt=p.className||"",rt=p.descriptionClassName||"",Tt=pe(()=>w.findIndex((Le)=>Le.toastId===p.id)||0,[w,p.id]),Oe=pe(()=>{var Le;return(Le=p.closeButton)!=null?Le:A},[p.closeButton,A]),pt=pe(()=>p.duration||B||Zxe,[p.duration,B]),ut=U(0),Re=U(0),at=U(0),Ge=U(null),[xt,Ze]=j.split("-"),Rt=pe(()=>w.reduce((Le,It,bn)=>{if(bn>=Tt)return Le;return Le+It.height},0),[w,Tt]),Ft=_Tt(),pn=pe(()=>{var Le;return(Le=e.swipeDirections)!=null?Le:FTt(j)},[e.swipeDirections,j]),ot=p.invert||d,vt=Ee==="loading";Re.current=pe(()=>Tt*P+Rt,[Tt,Rt]),M(()=>{At.current=pt},[pt]),M(()=>{te(!0)},[]),M(()=>{let Le=ft.current;if(Le){let It=Le.getBoundingClientRect().height;return Ae(It),g((bn)=>[{toastId:p.id,height:It,position:p.position},...bn]),()=>g((bn)=>bn.filter((sn)=>sn.toastId!==p.id))}},[g,p.id]),Zn(()=>{if(!Z)return;let Le=ft.current,It=Le.style.height;Le.style.height="auto";let bn=Le.getBoundingClientRect().height;Le.style.height=It,Ae(bn),g((sn)=>{if(!sn.find((Bt)=>Bt.toastId===p.id))return[{toastId:p.id,height:bn,position:p.position},...sn];else return sn.map((Bt)=>Bt.toastId===p.id?{...Bt,height:bn}:Bt)})},[Z,p.title,p.description,g,p.id,p.jsx,p.action,p.cancel]);let Lt=ee(()=>{Se(!0),Ne(Re.current),g((Le)=>Le.filter((It)=>It.toastId!==p.id)),setTimeout(()=>{S(p)},zTt)},[p,S,g,Re]);M(()=>{if(p.promise&&Ee==="loading"||p.duration===1/0||p.type==="loading")return;let Le,It=()=>{if(at.current<ut.current){let sn=new Date().getTime()-ut.current;At.current=At.current-sn}at.current=new Date().getTime()},bn=()=>{if(At.current===1/0)return;ut.current=new Date().getTime(),Le=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),Lt()},At.current)};if(x||h||Ft)It();else bn();return()=>clearTimeout(Le)},[x,h,p,Ee,Ft,Lt]),M(()=>{if(p.delete)Lt(),p.onDismiss==null||p.onDismiss.call(p,p)},[Lt,p.delete]);function on(){var Le;if(Q==null?void 0:Q.loading){var It;return tr("div",{className:sm(K==null?void 0:K.loader,p==null?void 0:(It=p.classNames)==null?void 0:It.loader,"sonner-loader"),"data-visible":Ee==="loading"},Q.loading)}return tr(yTt,{className:sm(K==null?void 0:K.loader,p==null?void 0:(Le=p.classNames)==null?void 0:Le.loader),visible:Ee==="loading"})}let uo=p.icon||(Q==null?void 0:Q[Ee])||gTt(Ee);var Kt,$n;return tr("li",{tabIndex:0,ref:ft,className:sm(L,gt,K==null?void 0:K.toast,p==null?void 0:(t=p.classNames)==null?void 0:t.toast,K==null?void 0:K[Mt],p==null?void 0:(n=p.classNames)==null?void 0:n[Mt]),"data-sonner-toast":"","data-rich-colors":(Kt=p.richColors)!=null?Kt:_,"data-styled":!Boolean(p.jsx||p.unstyled||f),"data-mounted":Z,"data-promise":Boolean(p.promise),"data-swiped":Ue,"data-removed":ye,"data-visible":Ye,"data-y-position":xt,"data-x-position":Ze,"data-index":y,"data-front":ve,"data-swiping":ce,"data-dismissible":en,"data-type":Ee,"data-invert":ot,"data-swipe-out":$e,"data-swipe-direction":z,"data-expanded":Boolean(x||V&&Z),"data-testid":p.testId,style:{"--index":y,"--toasts-before":y,"--z-index":v.length-y,"--offset":`${ye?ge:Re.current}px`,"--initial-height":V?"auto":`${oe}px`,...C,...p.style},onDragEnd:()=>{be(!1),q(null),Ge.current=null},onPointerDown:(Le)=>{if(Le.button===2)return;if(vt||!en)return;if(je.current=new Date,Ne(Re.current),Le.target.setPointerCapture(Le.pointerId),Le.target.tagName==="BUTTON")return;be(!0),Ge.current={x:Le.clientX,y:Le.clientY}},onPointerUp:()=>{var Le,It,bn;if($e||!en)return;Ge.current=null;let sn=Number(((Le=ft.current)==null?void 0:Le.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),_n=Number(((It=ft.current)==null?void 0:It.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Bt=new Date().getTime()-((bn=je.current)==null?void 0:bn.getTime()),Rn=F==="x"?sn:_n,Cn=Math.abs(Rn)/Bt;if((F==="x"?pn.includes(sn>0?"right":"left"):pn.includes(_n>0?"bottom":"top"))&&(Math.abs(Rn)>=DTt||Cn>0.11)){if(Ne(Re.current),p.onDismiss==null||p.onDismiss.call(p,p),F==="x")J(sn>0?"right":"left");else J(_n>0?"down":"up");Lt(),Ie(!0);return}else{var Nn,le;(Nn=ft.current)==null||Nn.style.setProperty("--swipe-amount-x","0px"),(le=ft.current)==null||le.style.setProperty("--swipe-amount-y","0px")}se(!1),be(!1),q(null)},onPointerMove:(Le)=>{var It,bn,sn;if(!Ge.current||!en)return;if(((It=window.getSelection())==null?void 0:It.toString().length)>0)return;let Bt=Le.clientY-Ge.current.y,Rn=Le.clientX-Ge.current.x;if(!F&&(Math.abs(Rn)>1||Math.abs(Bt)>1))q(Math.abs(Rn)>Math.abs(Bt)?"x":"y");let Cn={x:0,y:0},zt=(Nn)=>1/(1.5+Math.abs(Nn)/20);if(F==="y"){if(pn.includes("top")||pn.includes("bottom"))if(pn.includes("top")&&Bt<0||pn.includes("bottom")&&Bt>0)Cn.y=Bt;else{let Nn=Bt*zt(Bt);Cn.y=Math.abs(Nn)<Math.abs(Bt)?Nn:Bt}}else if(F==="x"){if(pn.includes("left")||pn.includes("right"))if(pn.includes("left")&&Rn<0||pn.includes("right")&&Rn>0)Cn.x=Rn;else{let Nn=Rn*zt(Rn);Cn.x=Math.abs(Nn)<Math.abs(Rn)?Nn:Rn}}if(Math.abs(Cn.x)>0||Math.abs(Cn.y)>0)se(!0);(bn=ft.current)==null||bn.style.setProperty("--swipe-amount-x",`${Cn.x}px`),(sn=ft.current)==null||sn.style.setProperty("--swipe-amount-y",`${Cn.y}px`)}},Oe&&!p.jsx&&Ee!=="loading"?tr("button",{"aria-label":G,"data-disabled":vt,"data-close-button":!0,onClick:vt||!en?()=>{}:()=>{Lt(),p.onDismiss==null||p.onDismiss.call(p,p)},className:sm(K==null?void 0:K.closeButton,p==null?void 0:(o=p.classNames)==null?void 0:o.closeButton)},($n=Q==null?void 0:Q.close)!=null?$n:STt):null,(Ee||p.icon||p.promise)&&p.icon!==null&&((Q==null?void 0:Q[Ee])!==null||p.icon)?tr("div",{"data-icon":"",className:sm(K==null?void 0:K.icon,p==null?void 0:(r=p.classNames)==null?void 0:r.icon)},Ee==="loading"?p.icon||on():p.promise?on():null,Ee!=="loading"?uo:null):null,tr("div",{"data-content":"",className:sm(K==null?void 0:K.content,p==null?void 0:(a=p.classNames)==null?void 0:a.content)},tr("div",{"data-title":"",className:sm(K==null?void 0:K.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?tr("div",{"data-description":"",className:sm(W,rt,K==null?void 0:K.description,p==null?void 0:(l=p.classNames)==null?void 0:l.description)},typeof p.description==="function"?p.description():p.description):null),Bs(p.cancel)?p.cancel:p.cancel&&eD(p.cancel)?tr("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||E,onClick:(Le)=>{if(!eD(p.cancel))return;if(!en)return;p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Le),Lt()},className:sm(K==null?void 0:K.cancelButton,p==null?void 0:(c=p.classNames)==null?void 0:c.cancelButton)},p.cancel.label):null,Bs(p.action)?p.action:p.action&&eD(p.action)?tr("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||R,onClick:(Le)=>{if(!eD(p.action))return;if(p.action.onClick==null||p.action.onClick.call(p.action,Le),Le.defaultPrevented)return;Lt()},className:sm(K==null?void 0:K.actionButton,p==null?void 0:(u=p.classNames)==null?void 0:u.actionButton)},p.action.label):null)},eke;var tke=Ve(()=>{ae();qf();bTt=Array(12).fill(0),vTt=tr("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},tr("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"})),wTt=tr("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},tr("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"})),xTt=tr("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},tr("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"})),kTt=tr("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},tr("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"})),STt=tr("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"},tr("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),tr("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));Uc=new Qxe,ITt=NTt,tD=Object.assign(ITt,{success:Uc.success,info:Uc.info,warning:Uc.warning,error:Uc.error,custom:Uc.custom,message:Uc.message,promise:Uc.promise,dismiss:Uc.dismiss,loading:Uc.loading},{getHistory:ETt,getToasts:$Tt});hTt("[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%)}");eke=Ln(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:w=RTt,toastOptions:y,dir:v=Jxe(),gap:x=PTt,icons:S,customAriaLabel:_,containerAriaLabel:A="Notifications"}=t,[C,E]=T([]),R=pe(()=>{if(o)return C.filter((te)=>te.toasterId===o);return C.filter((te)=>!te.toasterId)},[C,o]),L=pe(()=>Array.from(new Set([a].concat(R.filter((te)=>te.position).map((te)=>te.position)))),[R,a]),[W,B]=T([]),[j,P]=T(!1),[V,K]=T(!1),[Q,G]=T(f!=="system"?f:typeof window<"u"?window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":"light"),F=U(null),q=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),z=U(null),J=U(!1),Z=ee((te)=>{E((ye)=>{var Se;if(!((Se=ye.find((ce)=>ce.id===te.id))==null?void 0:Se.delete))Uc.dismiss(te.id);return ye.filter(({id:ce})=>ce!==te.id)})},[]);return M(()=>Uc.subscribe((te)=>{if(te.dismiss){requestAnimationFrame(()=>{E((ye)=>ye.map((Se)=>Se.id===te.id?{...Se,delete:!0}:Se))});return}setTimeout(()=>{NW(()=>{E((ye)=>{let Se=ye.findIndex((ce)=>ce.id===te.id);if(Se!==-1)return[...ye.slice(0,Se),{...ye[Se],...te},...ye.slice(Se+1)];return[te,...ye]})})})}),[]),M(()=>{if(f!=="system"){G(f);return}if(f==="system")if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)G("dark");else G("light");if(typeof window>"u")return;let te=window.matchMedia("(prefers-color-scheme: dark)");try{te.addEventListener("change",({matches:ye})=>{if(ye)G("dark");else G("light")})}catch(ye){te.addListener(({matches:Se})=>{try{if(Se)G("dark");else G("light")}catch(ce){console.error(ce)}})}},[f]),M(()=>{if(C.length<=1)P(!1)},[C]),M(()=>{let te=(ye)=>{var Se;if(s.length>0&&s.every(($e)=>ye[$e]||ye.code===$e)){var be;P(!0),(be=F.current)==null||be.focus()}if(ye.code==="Escape"&&(document.activeElement===F.current||((Se=F.current)==null?void 0:Se.contains(document.activeElement))))P(!1)};return document.addEventListener("keydown",te),()=>document.removeEventListener("keydown",te)},[s]),M(()=>{if(F.current)return()=>{if(z.current)z.current.focus({preventScroll:!0}),z.current=null,J.current=!1}},[F.current]),tr("section",{ref:n,"aria-label":_!=null?_:`${A} ${q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},L.map((te,ye)=>{var Se;let[ce,be]=te.split("-");if(!R.length)return null;return tr("ol",{key:te,dir:v==="auto"?Jxe():v,tabIndex:-1,ref:F,className:u,"data-sonner-toaster":!0,"data-sonner-theme":Q,"data-y-position":ce,"data-x-position":be,style:{"--front-toast-height":`${((Se=W[0])==null?void 0:Se.height)||0}px`,"--width":`${LTt}px`,"--gap":`${x}px`,...b,...jTt(d,p)},onBlur:($e)=>{if(J.current&&!$e.currentTarget.contains($e.relatedTarget)){if(J.current=!1,z.current)z.current.focus({preventScroll:!0}),z.current=null}},onFocus:($e)=>{if($e.target instanceof HTMLElement&&$e.target.dataset.dismissible==="false")return;if(!J.current)J.current=!0,z.current=$e.relatedTarget},onMouseEnter:()=>P(!0),onMouseMove:()=>P(!0),onMouseLeave:()=>{if(!V)P(!1)},onDragEnd:()=>P(!1),onPointerDown:($e)=>{if($e.target instanceof HTMLElement&&$e.target.dataset.dismissible==="false")return;K(!0)},onPointerUp:()=>K(!1)},R.filter(($e)=>!$e.position&&ye===0||$e.position===te).map(($e,Ie)=>{var Ue,se;return tr(BTt,{key:$e.id,icons:S,index:Ie,toast:$e,defaultRichColors:h,duration:(Ue=y==null?void 0:y.duration)!=null?Ue:g,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:r,visibleToasts:w,closeButton:(se=y==null?void 0:y.closeButton)!=null?se:c,interacting:V,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((ge)=>ge.position==$e.position),heights:W.filter((ge)=>ge.position==$e.position),setHeights:B,expandByDefault:l,gap:x,expanded:j,swipeDirections:t.swipeDirections})}))}))})});function nke(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:UTt,type:e,key:o,ref:t!==void 0?t:null,props:n}}var UTt,HTt,X,i,m;var H=Ve(()=>{UTt=Symbol.for("react.transitional.element"),HTt=Symbol.for("react.fragment");X=HTt,i=nke,m=nke});function nS({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 de({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:OT[e]})}function ay(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 ir({children:e}){return i("span",{className:"kbd",children:e})}var _r=({as:e,size:t=14})=>i(e,{size:t,strokeWidth:1.75,style:{display:"block"}}),OT;var Pt=Ve(()=>{H();OT={"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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{children:[i("path",{d:"M2 4.5h4l1.3 1.5H14V13H2z"}),i("path",{d:"M8 7.5v3.5M6.25 9.25h3.5"})]}),warn:m(X,{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(X,{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(X,{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(X,{children:[i("circle",{cx:"7",cy:"7",r:"4"}),i("line",{x1:"10",y1:"10",x2:"13.5",y2:"13.5"})]}),plus:m(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{children:[i("polyline",{points:"4 4 12 4"}),i("line",{x1:"8",y1:"4",x2:"8",y2:"12"})]}),button:m(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{children:[i("path",{d:"M3 13 6.6 3l3.6 10"}),i("path",{d:"M4.3 9.6h4.6"})]}),"eye-off":m(X,{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(X,{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(X,{children:[i("polyline",{points:"6 5 3 8 6 11"}),i("polyline",{points:"10 5 13 8 10 11"})]}),download:m(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{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(X,{children:[i("path",{d:"M8 2.75l5.75 10H2.25z"}),i("path",{d:"M8 6.75v2.5M8 11h.01"})]}),"panel-right":m(X,{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(X,{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(X,{children:[i("circle",{cx:"8",cy:"8",r:"5.75"}),i("path",{d:"M8 4.75V8l2.25 1.5"})]}),"share-up":m(X,{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(X,{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(X,{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(X,{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 pke={};hW(pke,{MAX_NOTICE_ENTRIES:()=>rke,NoticeCard:()=>cke,NotificationHost:()=>fK,dismissCanvasNotices:()=>qTt,dismissNotice:()=>Dl,noticeDuration:()=>pK,noticeEntries:()=>VTt,notify:()=>Do,notifyCanvasText:()=>LT,notifyCanvasTriggered:()=>rS,notifyUndo:()=>dK,shownNoticeIds:()=>uke,summarizeNoticeText:()=>oS});function GTt(){while(Es.length>rke){let e=Es.findIndex(ake);if(e<0)e=Es.findIndex((t)=>t.kind!=="error"&&!t.paused&&pK(t)!==1/0);if(e<0)e=0;Es=[...Es.slice(0,e),...Es.slice(e+1)]}}function ske(e,t){let n={...e,title:nD(e.title),...e.description!==void 0?{description:nD(e.description)}:{}},o=n.id??`notice-${++rD}`,r=t?{...n,id:o,canvasTriggered:t}:{...n,id:o};if(Es.findIndex((s)=>s.id===o)<0)Es=[...Es,r];else Es=Es.map((s)=>s.id===o?r:s);return GTt(),uK(),o}function Do(e){return ske(e,!1)}function lke(){let e=Date.now();if(e<iK||e-iK>=1000)iK=e,lK=0;if(lK>=5)return!1;return lK++,!0}function rS(e){if(!lke())return null;return ske(e,!0)}function LT(e,t="info"){if(!lke())return null;let o=(t==="undo"?Es.find((r)=>r.group==="canvas"&&r.kind==="undo"):void 0)?.id??`canvas-notice-${ike++%2}`;return Do({id:o,title:nD(e).slice(0,4000),kind:t,group:"canvas",timerKey:`${++rD}`})}function dK(e,t){let n=Es.find((o)=>o.group==="canvas"&&o.kind==="undo");return Do({id:n?.id??`canvas-notice-${ike++%2}`,title:e,kind:"undo",group:"canvas",timerKey:`${++rD}`,...t?{action:t}:{}})}function qTt(){if(!Es.some((e)=>e.group==="canvas"))return;Es=Es.filter((e)=>e.group!=="canvas"),uK()}function Dl(e){Es=Es.filter((t)=>t.id!==e),uK()}function oD(e){let t=Es.find((n)=>n.id===e);Dl(e),t?.onDismiss?.()}function pK(e){return e.duration??(e.action||["error","warning","undo"].includes(e.kind??"")?1e4:5000)}function oS(e){let t=nD(e).trim().replace(/\s+/g," ");return t.length>280?`${t.slice(0,279)}…`:t}function KTt(e){if(e.placement)return e.placement;return typeof document<"u"&&document.querySelector(".tl-track")?"top":"bottom"}function cke({entry:e}){let t=e.icon??YTt[e.kind??"info"];return 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(de,{name:t,size:16,className:"maude-notice-glyph"})}):null,m("div",{className:"maude-notice-txt",children:[i("div",{className:"maude-notice-title",children:oS(e.title)}),e.description&&i("div",{className:"maude-notice-summary",children:oS(e.description)}),e.content]}),e.action&&i("button",{type:"button",className:"maude-notice-action",onClick:(n)=>{n.currentTarget.blur(),e.action?.onClick(),oD(e.id)},children:e.action.label}),i("button",{type:"button",className:"maude-notice-close","aria-label":"Dismiss notification",onClick:(n)=>{n.currentTarget.blur(),oD(e.id)},children:"×"})]})}function XTt({entry:e,visible:t,paused:n}){let o=pK(e),r=U(null),a=U(o);return M(()=>{a.current=o},[o,e.timerKey]),M(()=>{if(!t||n||e.paused||o===1/0)return;let s=Date.now(),l=setTimeout(()=>oD(e.id),Math.max(0,a.current));return()=>{clearTimeout(l),a.current=Math.max(0,a.current-(Date.now()-s))}},[t,n,e.paused,o,e.timerKey,e.id]),M(()=>{if(t){let s=r.current??`${e.id}:view-${++rD}`;r.current=s,tD.custom(()=>i(cke,{entry:e}),{id:s,duration:1/0,position:KTt(e)==="top"?"top-center":"bottom-center",onDismiss:()=>{if(r.current===s)oD(e.id)}})}else if(r.current){let s=r.current;r.current=null,tD.dismiss(s)}},[e,t]),M(()=>()=>{let s=r.current;if(r.current=null,s)tD.dismiss(s)},[]),null}function uke(e){let t=e.filter((s)=>!ake(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,dke).map((s)=>s.id)}function fK({paused:e=!1,hiddenGroups:t=JTt}){let n=qe(WTt,oke,oke),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(uke(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:ZTt}),i(eke,{position:"bottom-center",offset:{bottom:84,top:16},mobileOffset:{left:16,right:16,bottom:84,top:16},visibleToasts:dke,expand:s,style:{"--width":"min(640px, calc(100vw - 32px))"},containerAriaLabel:"Notifications"}),n.map((f)=>i(XTt,{entry:f,visible:p.has(f.id),paused:e||r||s||c||!p.has(f.id)},f.id))]})}var Es,rD=0,cK,uK=()=>{for(let e of cK)e()},WTt=(e)=>(cK.add(e),()=>{cK.delete(e)}),oke=()=>Es,VTt=()=>Es,rke=40,ake=(e)=>e.group==="canvas"||!!e.canvasTriggered,nD=(e)=>typeof e==="string"?e:e===null||e===void 0?"":String(e),ike=0,iK=-1/0,lK=0,YTt,ZTt=`
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.0.0",
3
+ "version": "2.0.1",
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": {
@@ -65,13 +65,13 @@
65
65
  "test:e2e:desktop:parity:cloud": "pnpm --filter @maude/desktop-e2e e2e:parity:cloud"
66
66
  },
67
67
  "optionalDependencies": {
68
- "@1agh/maude-darwin-arm64": "2.0.0",
69
- "@1agh/maude-darwin-x64": "2.0.0",
70
- "@1agh/maude-linux-arm64": "2.0.0",
71
- "@1agh/maude-linux-arm64-musl": "2.0.0",
72
- "@1agh/maude-linux-x64": "2.0.0",
73
- "@1agh/maude-linux-x64-musl": "2.0.0",
74
- "@1agh/maude-win32-x64": "2.0.0"
68
+ "@1agh/maude-darwin-arm64": "2.0.1",
69
+ "@1agh/maude-darwin-x64": "2.0.1",
70
+ "@1agh/maude-linux-arm64": "2.0.1",
71
+ "@1agh/maude-linux-arm64-musl": "2.0.1",
72
+ "@1agh/maude-linux-x64": "2.0.1",
73
+ "@1agh/maude-linux-x64-musl": "2.0.1",
74
+ "@1agh/maude-win32-x64": "2.0.1"
75
75
  },
76
76
  "files": [
77
77
  "cli",