excalidraw-collaboration
Version:
Excalidraw as a React component
4 lines • 955 kB
JavaScript
var HP=Object.defineProperty;var B2=e=>t=>{var r=e[t];if(r)return r();throw new Error("Module not found in bundle: "+t)};var S=(e,t)=>()=>(e&&(t=e(e=0)),t);var Kb=(e,t)=>{for(var r in t)HP(e,r,{get:t[r],enumerable:!0})};var I,h=S(()=>{I={PROD:!0,VITE_PKG_NAME:"excalidraw-collaboration",PKG_VERSION:"0.17.11"}});var Vb,Y2=S(()=>{Vb={}});import tN from"open-color";var rN,G2,Cs,z2,Zl,Ql,Mn,Dn,ye,J2,au,su,lu,X2,q2,W2,Z2,Hr=S(()=>{"use strict";h();rN=(e,t)=>t.reduce((r,o)=>(o in e&&(r[o]=e[o]),r),{}),G2=5,Cs=5,z2=4,Zl=4,Ql=1,Mn=[0,2,4,6,8],Dn=(e,t)=>t.map(r=>tN[e][r]),ye={transparent:"transparent",black:"#1e1e1e",white:"#ffffff",gray:Dn("gray",Mn),red:Dn("red",Mn),pink:Dn("pink",Mn),grape:Dn("grape",Mn),violet:Dn("violet",Mn),blue:Dn("blue",Mn),cyan:Dn("cyan",Mn),teal:Dn("teal",Mn),green:Dn("green",Mn),yellow:Dn("yellow",Mn),orange:Dn("orange",Mn),bronze:["#f8f1ee","#eaddd7","#d2bab0","#a18072","#846358"]},J2=rN(ye,["cyan","blue","violet","grape","pink","green","teal","yellow","orange","red"]),au=[ye.black,ye.red[Zl],ye.green[Zl],ye.blue[Zl],ye.yellow[Zl]],su=[ye.transparent,ye.red[Ql],ye.green[Ql],ye.blue[Ql],ye.yellow[Ql]],lu=[ye.white,"#f8f9fa","#f5faff","#fffce8","#fdf8f6"],X2={transparent:ye.transparent,white:ye.white,gray:ye.gray,black:ye.black,bronze:ye.bronze,...J2},q2={transparent:ye.transparent,white:ye.white,gray:ye.gray,black:ye.black,bronze:ye.bronze,...J2},W2=e=>[ye.cyan[e],ye.blue[e],ye.violet[e],ye.grape[e],ye.pink[e],ye.green[e],ye.teal[e],ye.yellow[e],ye.orange[e],ye.red[e]],Z2=(e,t,r)=>`#${((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1)}`});var ro,cu,Q2,Gi,oN,jl,du,j2,Od,An,ey,zi,ec,ty,Yb,ry,li,Gb,Ke,ci,Ls,Bd,Mt,_n,Ms,Rs,Qe,Ma,mu,ae,nt,pu,$r,Kr,di,Ds,uu,Ji,Hd,nN,oy,$d,ny,iy,As,fu,tc,ne,ay,gu,Vr,Kd,sy,ly,cy,dy,my,py,rc,Vd,Yd,uy,hu,bu,oc,Eu,Uu,zb,fy,gy,hy,by,Ey,nc,ic,kn,Uy,Jb,je,Xb,_s,Pt,xy,yy,Jt,Da,wy,xu,vy,ht,qb,yu,xt,ac,Pn,Wt,wu,Ht,Aa,vu,_a,Eo,Zt,Iu,Gd,W=S(()=>{"use strict";h();Y2();Hr();ro=/Mac|iPod|iPhone|iPad/.test(navigator.platform),cu=/^Win/.test(navigator.platform),Q2=/\b(android)\b/i.test(navigator.userAgent),Gi="netscape"in window&&navigator.userAgent.indexOf("rv:")>1&&navigator.userAgent.indexOf("Gecko")>1,oN=navigator.userAgent.indexOf("Chrome")!==-1,jl=!oN&&navigator.userAgent.indexOf("Safari")!==-1,du=/iPad|iPhone/.test(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,j2=()=>navigator.brave?.isBrave?.name==="isBrave",Od=typeof window<"u"&&"ResizeObserver"in window,An="Excalidraw",ey=36,zi=10,ec=8,ty=5,Yb=1,ry=30,li=Math.PI/12,Gb="red",Ke={TEXT:"text",CROSSHAIR:"crosshair",GRABBING:"grabbing",GRAB:"grab",POINTER:"pointer",MOVE:"move",AUTO:""},ci={MAIN:0,WHEEL:1,SECONDARY:2,TOUCH:-1,ERASER:5},Ls={enabled:"all",disabled:"none",inheritFromUI:"var(--ui-pointerEvents)"},Bd={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5},Mt={TEST:"test",DEVELOPMENT:"development"},_n={SHAPE_ACTIONS_MENU:"App-menu__left",ZOOM_ACTIONS:"zoom-actions",SEARCH_MENU_INPUT_WRAPPER:"layer-ui__search-inputWrapper"},Ms="Xiaolai",Rs="Segoe UI Emoji",Qe={Virgil:1,Helvetica:2,Cascadia:3,Excalifont:5,Nunito:6,"Lilita One":7,"Comic Shanns":8,"Liberation Sans":9},Ma={[Ms]:100,[Rs]:1e3},mu=e=>{switch(e){case Qe.Excalifont:return[Ms,Rs];default:return[Rs]}},ae={LIGHT:"light",DARK:"dark"},nt={strokeColor:"#bbb",strokeWidth:2,strokeStyle:"solid",fillStyle:"solid",roughness:0,roundness:null,backgroundColor:"transparent",radius:8,nameOffsetY:3,nameColorLightTheme:"#999999",nameColorDarkTheme:"#7a7a7a",nameFontSize:14,nameLineHeight:1.25},pu=1,$r=20,Kr=Qe.Excalifont,di="left",Ds="top",uu="{version}",Ji=2,Hd=2*Ji,nN=1e-5,oy=2*Hd-nN,$d="#ffffff",ny="#1e1e1e",iy="#a2f1a6",As=20,fu=5,tc={svg:"image/svg+xml",png:"image/png",jpg:"image/jpeg",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif",jfif:"image/jfif"},ne={text:"text/plain",html:"text/html",json:"application/json",excalidraw:"application/vnd.excalidraw+json",excalidrawlib:"application/vnd.excalidrawlib+json","excalidraw.svg":"image/svg+xml","excalidraw.png":"image/png",binary:"application/octet-stream",...tc},ay=[ne.text,ne.html,...Object.values(tc)],gu={png:"png",svg:"svg",clipboard:"clipboard"},Vr={excalidraw:"excalidraw",excalidrawClipboard:"excalidraw/clipboard",excalidrawLibrary:"excalidrawlib",excalidrawClipboardWithAPI:"excalidraw-api/clipboard"},Kd=window.EXCALIDRAW_EXPORT_SOURCE||window.location.origin,sy=500,ly=300,cy=500,dy=1e4,my=3e4,py=100,rc=.1,Vd=.1,Yd=30,uy=300,hu=6e4,bu=3e3,oc=Vb.themeFilter,Eu={addLibrary:"addLibrary"},Uu={addLibrary:"addLibrary"},zb={canvasActions:{changeViewBackgroundColor:!0,clearCanvas:!0,export:{saveFileToDisk:!0},loadScene:!0,saveToActiveFile:!0,toggleTheme:null,saveAsImage:!0},tools:{image:!0}},fy=730,gy=1e3,hy=500,by=1229,Ey=parseInt(Vb.rightSidebarWidth),nc=2,ic=[1,2,3],kn=10,Uy=1440,Jb=4*1024*1024,je="http://www.w3.org/2000/svg",Xb=128,_s={excalidraw:2,excalidrawLibrary:2},Pt=5,xy=.7,yy=11,Jt={TOP:"top",MIDDLE:"middle",BOTTOM:"bottom"},Da={LEFT:"left",CENTER:"center",RIGHT:"right"},wy=20,xu=.25,vy=32,ht={LEGACY:1,PROPORTIONAL_RADIUS:2,ADAPTIVE_RADIUS:3},qb={architect:0,artist:1,cartoonist:2},yu={thin:1,bold:2,extraBold:4},xt={strokeColor:ye.black,backgroundColor:ye.transparent,fillStyle:"solid",strokeWidth:2,strokeStyle:"solid",roughness:qb.artist,opacity:100,locked:!1},ac="library",Pn="search",Wt={name:"default",defaultTab:ac},wu=new Set(["iframe","embeddable","image"]),Ht={selection:"selection",rectangle:"rectangle",diamond:"diamond",ellipse:"ellipse",arrow:"arrow",line:"line",freedraw:"freedraw",text:"text",image:"image",eraser:"eraser",hand:"hand",frame:"frame",magicframe:"magicframe",embeddable:"embeddable",laser:"laser"},Aa={OAI_API_KEY:"excalidraw-oai-api-key",MERMAID_TO_EXCALIDRAW:"mermaid-to-excalidraw",PUBLISH_LIBRARY:"publish-library-data"},vu="Untitled",_a={generalStats:1,elementProperties:2},Eo=1,Zt={sharp:"sharp",round:"round",elbow:"elbow"},Iu=.3,Gd="element"});var ke,Uo,Iy,zd,ks,Wb,Ps=S(()=>{"use strict";h();ke=(e,t,r)=>Math.min(Math.max(e,t),r),Uo=(e,t,r="round")=>{let o=Math.pow(10,t);return Math[r]((e+Number.EPSILON)*o)/o},Iy=(e,t,r="round")=>{let o=1/t;return Math[r](e*o)/o},zd=(e,t)=>(e+t)/2,ks=e=>typeof e=="number"&&Number.isFinite(e),Wb=(e,t,r=1e-4)=>Math.abs(e-t)<r});function Xi(e){return e*Math.PI/180}function ka(e){return e*180/Math.PI}function Ty(e){return Math.abs(Math.sin(2*e))<1e-4}var Jd,Tu=S(()=>{"use strict";h();Ps();Jd=e=>e<0?e+2*Math.PI:e>=2*Math.PI?e-2*Math.PI:e});var Sy=S(()=>{"use strict";h();Tu();Ps()});function Dt(e,t,r=0,o=0){return[e-r,t-o]}function Be(e,t=[0,0]){return Dt(e[0]-t[0],e[1]-t[1])}function pn(e,t){return e[0]*t[1]-t[0]*e[1]}function Zb(e,t){return e[0]*t[0]+e[1]*t[1]}function Fn(e,t){return[e[0]+t[0],e[1]+t[1]]}function mi(e,t){return[e[0]-t[0],e[1]-t[1]]}function Yr(e,t){return Dt(e[0]*t,e[1]*t)}function iN(e){return e[0]*e[0]+e[1]*e[1]}function aN(e){return Math.sqrt(iN(e))}var sc,Su=S(()=>{"use strict";h();sc=e=>{let t=aN(e);return Dt(e[0]/t,e[1]/t)}});function y(e,t){return[e,t]}function Xd(e){return e.length===2?y(e[0],e[1]):void 0}function qd(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&!isNaN(e[0])&&typeof e[1]=="number"&&!isNaN(e[1])}function Ns(e,t){let r=Math.abs;return r(e[0]-t[0])<1e-4&&r(e[1]-t[1])<1e-4}function B([e,t],[r,o],n){return y((e-r)*Math.cos(n)-(t-o)*Math.sin(n)+r,(e-r)*Math.sin(n)+(t-o)*Math.cos(n)+o)}function Fs(e,t=[0,0]){return y(e[0]+t[0],e[1]+t[1])}function pi(e,t){return y((e[0]+t[0])/2,(e[1]+t[1])/2)}function St(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1])}function Qb(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1])}var On,Cu,lc=S(()=>{"use strict";h();Tu();Ps();Su();On=(e,t,r)=>Fs(t,Yr(Be(e,t),r)),Cu=(e,t,r)=>t[0]<=Math.max(e[0],r[0])&&t[0]>=Math.min(e[0],r[0])&&t[1]<=Math.max(e[1],r[1])&&t[1]>=Math.min(e[1],r[1])});function Cy(e,t,r,o){return[e,t,r,o]}var Ry=S(()=>{"use strict";h();lc()});var Ly=S(()=>{"use strict";h();lc()});function Je(e,t){return[e,t]}var Dy,Ay,Pa,sN,jb=S(()=>{"use strict";h();lc();Ps();Su();Dy=e=>Array.isArray(e)&&e.length===2&&qd(e[0])&&qd(e[0]),Ay=(e,t)=>{let r=Be(e[0]),o=Be(e[1]),n=Be(t[0]),i=Be(t[1]),a=mi(o,r),s=mi(i,n),l=pn(a,s);if(l===0)return null;let c=mi(Be(t[0]),Be(e[0])),m=pn(c,a)/l,d=pn(c,s)/l;if(m===0)return null;let p=Fn(r,Yr(a,d));return d>=0&&d<1&&m>=0&&m<1?p:null},Pa=(e,t,r=1e-4)=>{let o=sN(e,t);return o===0?!0:o<r},sN=(e,t)=>{let[r,o]=e,[[n,i],[a,s]]=t,l=r-n,c=o-i,m=a-n,d=s-i,p=l*m+c*d,u=m*m+d*d,f=-1;u!==0&&(f=p/u);let g,E;f<0?(g=n,E=i):f>1?(g=a,E=s):(g=n+f*m,E=i+f*d);let w=r-g,v=o-E;return Math.sqrt(w*w+v*v)}});function e1(...e){return ky(e)}function cc(e){return ky(e)}function ky(e){return lN(e)?e:[...e,e[0]]}function lN(e){return Ns(e[0],e[e.length-1])}var t1,_y,Py=S(()=>{"use strict";h();lc();jb();Ps();t1=(e,t)=>{let r=e[0],o=e[1],n=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){let s=t[i][0],l=t[i][1],c=t[a][0],m=t[a][1];(l>o&&m<=o||l<=o&&m>o)&&r<(c-s)*(o-l)/(m-l)+s&&(n=!n)}return n},_y=(e,t,r=1e-4)=>{let o=!1;for(let n=0,i=t.length-1;n<i;n++)if(Pa(e,Je(t[n],t[n+1]),r)){o=!0;break}return o}});function hr(e,t){return $t([e,t])}var Wd,Zd,Qd,Ny=S(()=>{"use strict";h();G();Wd=([e,t],[r,o])=>e<=r?t>=r:e>=r?o>=e:!1,Zd=([e,t],[r,o])=>{let n=Math.max(e,r),i=Math.min(t,o);return n<=i?$t([n,i]):null},Qd=(e,[t,r])=>e>=t&&e<=r});function Os([e,t,r],o){let n=(m,d,p)=>(m[0]-p[0])*(d[1]-p[1])-(d[0]-p[0])*(m[1]-p[1]),i=n(o,e,t),a=n(o,t,r),s=n(o,r,e),l=i<0||a<0||s<0,c=i>0||a>0||s>0;return!(l&&c)}var Fy=S(()=>{"use strict";h()});var Oy=S(()=>{"use strict";h()});var Ae=S(()=>{"use strict";h();Sy();Tu();Ry();Ly();lc();Py();Ny();jb();Fy();Oy();Su();Ps()});import cN from"es6-promise-pool";function Lr(e,t){if(!e)throw new Error(t)}function yt(e,t,r,o){return e?(e?.addEventListener?.(t,r,o),()=>{e?.removeEventListener?.(t,r,o)}):()=>{}}function Qy(e,t=!0){let r=e.length;if(r<4)return"";let o=e[0],n=e[1],i=e[2],a=`M${o[0].toFixed(2)},${o[1].toFixed(2)} Q${n[0].toFixed(2)},${n[1].toFixed(2)} ${zd(n[0],i[0]).toFixed(2)},${zd(n[1],i[1]).toFixed(2)} T`;for(let s=2,l=r-1;s<l;s++)o=e[s],n=e[s+1],a+=`${zd(o[0],n[0]).toFixed(2)},${zd(o[1],n[1]).toFixed(2)} `;return t&&(a+="Z"),a}var By,r1,Na,Ky,Ru,Vy,ui,fi,De,Cr,Oo,qi,Hy,Yy,Gy,ar,mt,K,tt,br,em,dN,mN,pN,Lu,Rr,Mu,o1,n1,oo,Wi,i1,tm,zy,Jy,rm,Du,Zi,ee,Xy,gi,qy,Gr,Au,Wy,_u,dc,mc,hi,om,$y,pt,Fa,xo,Zy,ku,yo,pc,Pu,$t,Bo,jy,jd,G=S(()=>{"use strict";h();Ae();Hr();W();By=null,r1=()=>{if(By)return By;let e=new Date,t=e.getFullYear(),r=`${e.getMonth()+1}`.padStart(2,"0"),o=`${e.getDate()}`.padStart(2,"0"),n=`${e.getHours()}`.padStart(2,"0"),i=`${e.getMinutes()}`.padStart(2,"0");return`${t}-${r}-${o}-${n}${i}`},Na=e=>e.charAt(0).toUpperCase()+e.slice(1),Ky=e=>e instanceof HTMLElement&&e.className.includes("ToolIcon"),Ru=e=>e instanceof HTMLElement&&e.dataset.type==="wysiwyg"||e instanceof HTMLBRElement||e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement,Vy=e=>Ru(e)||e instanceof Element&&!!e.closest("label, button"),ui=e=>e instanceof HTMLElement&&e.dataset.type==="wysiwyg"||e instanceof HTMLBRElement||e instanceof HTMLTextAreaElement||e instanceof HTMLInputElement&&(e.type==="text"||e.type==="number"||e.type==="password"),fi=({fontFamily:e})=>{for(let[t,r]of Object.entries(Qe))if(r===e)return`${t}${mu(r).map(o=>`, ${o}`).join("")}`;return Rs},De=({fontSize:e,fontFamily:t})=>`${e}px ${fi({fontFamily:t})}`,Cr=(e,t)=>{let r=0,o=null,n=(...i)=>{o=i,clearTimeout(r),r=window.setTimeout(()=>{o=null,e(...i)},t)};return n.flush=()=>{if(clearTimeout(r),o){let i=o;o=null,e(...i)}},n.cancel=()=>{o=null,clearTimeout(r)},n},Oo=(e,t)=>{let r=null,o=null,n=null,i=s=>{r=window.requestAnimationFrame(()=>{r=null,e(...s),o=null,n&&(o=n,n=null,i(o))})},a=(...s)=>{if(I.MODE==="test"){e(...s);return}o=s,r===null?i(o):t?.trailing&&(n=s)};return a.flush=()=>{r!==null&&(cancelAnimationFrame(r),r=null),o&&(e(...n||o),o=n=null)},a.cancel=()=>{o=n=null,r!==null&&(cancelAnimationFrame(r),r=null)},a},qi=e=>1-Math.pow(1-e,4),Hy=(e,t,r)=>(t-e)*qi(r)+e,Yy=({fromValues:e,toValues:t,onStep:r,duration:o=250,interpolateValue:n,onStart:i,onEnd:a,onCancel:s})=>{let l=!1,c=0,m;function d(p){if(l)return;m===void 0&&(m=p,i?.());let u=Math.min(p-m,o),f=qi(u/o),g={};if(Object.keys(e).forEach(E=>{let w=E,v=(t[w]-e[w])*f+e[w];g[w]=v}),r(g),u<o){let E=u/o,w={};Object.keys(e).forEach(v=>{let x=v,T=e[x],C=t[x],R;R=n?n(T,C,E,x):Hy(T,C,E),R==null&&(R=Hy(T,C,E)),w[x]=R}),r(w),c=window.requestAnimationFrame(d)}else r(t),a?.()}return c=window.requestAnimationFrame(d),()=>{s?.(),l=!0,window.cancelAnimationFrame(c)}},Gy=(e,t)=>{if(!e.length||t<1)return[];let r=0,o=0,n=Array(Math.ceil(e.length/t));for(;r<e.length;)n[o++]=e.slice(r,r+=t);return n},ar=(e,t)=>Math.abs(e-t),mt=(e,t)=>t.type==="custom"?{...e.activeTool,type:"custom",customType:t.customType,locked:t.locked??e.activeTool.locked}:{...e.activeTool,lastActiveTool:t.lastActiveToolBeforeEraser===void 0?e.activeTool.lastActiveTool:t.lastActiveToolBeforeEraser,type:t.type,customType:null,locked:t.locked??e.activeTool.locked},K=e=>(e=e.replace(/\bAlt\b/i,"Alt").replace(/\bShift\b/i,"Shift").replace(/\b(Enter|Return)\b/i,"Enter"),ro?e.replace(/\bCtrlOrCmd\b/gi,"Cmd").replace(/\bAlt\b/i,"Option"):e.replace(/\bCtrlOrCmd\b/gi,"Ctrl")),tt=({clientX:e,clientY:t},{zoom:r,offsetLeft:o,offsetTop:n,scrollX:i,scrollY:a})=>{let s=(e-o)/r.value-i,l=(t-n)/r.value-a;return{x:s,y:l}},br=({sceneX:e,sceneY:t},{zoom:r,offsetLeft:o,offsetTop:n,scrollX:i,scrollY:a})=>{let s=(e+i)*r.value+o,l=(t+a)*r.value+n;return{x:s,y:l}},em=e=>getComputedStyle(document.documentElement).getPropertyValue(`--${e}`),dN="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u2C00-\uFB1C\uFDFE-\uFE6F\uFEFD-\uFFFF",mN="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",pN=new RegExp(`^[^${dN}]*[${mN}]`),Lu=e=>pN.test(e),Rr=e=>{let[t,r]=e;return{x:t,y:r}},Mu=e=>{if(e?.name==="AbortError"){console.warn(e);return}throw e},o1=(e,t,r=0)=>{r<0&&(r=e.length+r),r=Math.min(e.length,Math.max(r,0));let o=r-1;for(;++o<e.length;)if(t(e[o],o,e))return o;return-1},n1=(e,t,r=e.length-1)=>{r<0&&(r=e.length+r),r=Math.min(e.length-1,Math.max(r,0));let o=r+1;for(;--o>-1;)if(t(e[o],o,e))return o;return-1},oo=e=>{let t=e.length===5&&e.substr(4,1)==="0",r=e.length===9&&e.substr(7,2)==="00";return t||r||e===ye.transparent},Wi=()=>{let e,t,r=new Promise((o,n)=>{e=o,t=n});return r.resolve=e,r.reject=t,r},i1=(e,t)=>{let r=[{value:1,symbol:"b"},{value:1e3,symbol:"k"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"}],o=/\.0+$|(\.[0-9]*[1-9])0+$/,n;for(n=r.length-1;n>0&&!(e>=r[n].value);n--);return(e/r[n].value).toFixed(t).replace(o,"$1")+r[n].symbol},tm=()=>document.querySelector('meta[name="version"]')?.content||uu,zy=e=>{let t=e.parentElement;for(;t;){if(t===document.body)return document;let{overflowY:r}=window.getComputedStyle(t);if(t.scrollHeight>t.clientHeight&&(r==="auto"||r==="scroll"||r==="overlay"))return t;t=t.parentElement}return document},Jy=e=>{let t=e.parentElement;for(;t;){if(t.tabIndex>-1){t.focus();return}t=t.parentElement}},rm=e=>{e.preventDefault(),e.returnValue=""},Du=e=>Array.from(e).map(t=>`0${t.toString(16)}`.slice(-2)).join(""),Zi=()=>Gr()?1:Date.now(),ee=e=>e instanceof Map?e:e.reduce((t,r)=>(t.set(typeof r=="string"?r:r.id,r),t),new Map),Xy=e=>e.reduce((t,r,o)=>(t.set(r.id,[r,o]),t),new Map),gi=(e,t)=>e.reduce((r,o)=>(r[t?t(o):String(o)]=o,r),{}),qy=e=>e.reduce((t,r,o)=>{let n={...r,prev:null,next:null};if(o!==0){let i=t[o-1];if(n.prev=i,i.next=n,o===e.length-1){let a=t[0];n.next=a,a.prev=n}}return t.push(n),t},[]),Gr=()=>I.MODE==="test",Au=()=>I.MODE==="development",Wy=()=>typeof process<"u"&&!0,_u=(e,t)=>new CustomEvent(e,{detail:{nativeEvent:t},cancelable:!0}),dc=(e,t)=>{let r=!1;for(let o in t){let n=t[o];if(typeof n<"u"){if(e[o]===n&&(typeof n!="object"||n===null))continue;r=!0}}return r?{...e,...t}:e},mc=()=>{try{return window.self===window.top?"top":"iframe"}catch{return"iframe"}},hi=e=>!!e&&typeof e=="object"&&"then"in e&&"catch"in e&&"finally"in e,om=e=>{let t=e?.querySelectorAll("button, a, input, select, textarea, div[tabindex], label[tabindex]");return t?Array.from(t).filter(r=>r.tabIndex>-1&&!r.disabled):[]},$y=(e,t)=>Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t,pt=(e,t,r,o=!1)=>{let n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return o&&console.warn("%cisShallowEqual: objects don't have same properties ->","color: #8B4000",e,t),!1;if(r&&Array.isArray(r)){for(let a of r)if(!(e[a]===t[a]||$y(e[a],t[a])))return o&&console.warn(`%cisShallowEqual: ${a} not equal ->`,"color: #8B4000",e[a],t[a]),!1;return!0}return n.every(a=>{let s=r?.[a],l=s?s(e[a],t[a]):e[a]===t[a]||$y(e[a],t[a]);return!l&&o&&console.warn(`%cisShallowEqual: ${a} not equal ->`,"color: #8B4000",e[a],t[a]),l})},Fa=(e,t,{checkForDefaultPrevented:r=!0}={})=>function(n){if(e?.(n),!r||!n?.defaultPrevented)return t?.(n)},xo=(e,t,r)=>{if(!t)return e;if(r)return console.error(t),e;throw new Error(t)};Zy=e=>{let t,r,o=function(n){let i=Object.entries(n);if(t){let s=!0;for(let[l,c]of i)if(t.get(l)!==c){s=!1;break}if(s)return r}let a=e(n);return t=new Map(i),r=a,a};return o.clear=()=>{t=void 0,r=void 0},o},ku=(e,t)=>e instanceof Set||e instanceof Map?e.has(t):"includes"in e?e.includes(t):e.hasOwnProperty(t),yo=e=>JSON.parse(JSON.stringify(e)),pc=(e,t)=>pt(e,t)?e:t;Pu=e=>e.replace(/\r?\n|\r/g,`
`),$t=e=>e,Bo=async(e,...t)=>new Promise(r=>{r(e(...t))}),jy=(...e)=>Math.max(...e.map(t=>t?1:0))>0,jd=class{pool;entries={};constructor(t,r){this.pool=new cN(t,r)}all(){let t=r=>{if(r.data.result){let[o,n]=r.data.result;this.entries[o]=n}};return this.pool.addEventListener("fulfilled",t),this.pool.start().then(()=>(setTimeout(()=>{this.pool.removeEventListener("fulfilled",t)}),Object.values(this.entries)))}}});var bt,we,sr,un,Mr,X,Nu,uc,ce,Er,uN,fe,he,ue,nm,wo,a1,Ho,e5,t5,bi,im,Bs,Kt,Xe,Ei,r5,o5,n5,Hs,de=S(()=>{"use strict";h();W();G();bt=e=>!!e&&e.type==="image"&&!!e.fileId,we=e=>!!e&&e.type==="image",sr=e=>!!e&&e.type==="embeddable",un=e=>!!e&&e.type==="iframe",Mr=e=>!!e&&(e.type==="iframe"||e.type==="embeddable"),X=e=>e!=null&&e.type==="text",Nu=e=>e!=null&&e.type==="frame",uc=e=>e!=null&&e.type==="magicframe",ce=e=>e!=null&&(e.type==="frame"||e.type==="magicframe"),Er=e=>e!=null&&uN(e.type),uN=e=>e==="freedraw",fe=e=>e!=null&&nm(e.type),he=e=>e!=null&&e.type==="arrow",ue=e=>he(e)&&e.elbowed,nm=e=>e==="arrow"||e==="line",wo=(e,t=!0)=>e!=null&&(!e.locked||t===!0)&&a1(e.type),a1=e=>e==="arrow",Ho=(e,t=!0)=>e!=null&&(!e.locked||t===!0)&&(e.type==="rectangle"||e.type==="diamond"||e.type==="ellipse"||e.type==="image"||e.type==="iframe"||e.type==="embeddable"||e.type==="frame"||e.type==="magicframe"||e.type==="text"&&!e.containerId),e5=e=>e!=null&&(e.type==="rectangle"||e.type==="diamond"||e.type==="image"||e.type==="iframe"||e.type==="embeddable"||e.type==="frame"||e.type==="magicframe"||e.type==="text"&&!e.containerId),t5=e=>e!=null&&(e.type==="rectangle"||e.type==="image"||e.type==="text"||e.type==="iframe"||e.type==="embeddable"||e.type==="frame"||e.type==="magicframe"||e.type==="freedraw"),bi=(e,t=!0)=>e!=null&&(!e.locked||t===!0)&&(e.type==="rectangle"||e.type==="diamond"||e.type==="ellipse"||he(e)),im=e=>{let t=e?.type;if(!t)return!1;switch(t){case"text":case"diamond":case"rectangle":case"iframe":case"embeddable":case"ellipse":case"arrow":case"freedraw":case"line":case"frame":case"magicframe":case"image":case"selection":return!0;default:return xo(t,null),!1}},Bs=e=>e.type==="rectangle"||e.type==="ellipse"||e.type==="diamond",Kt=e=>bi(e)&&!!e.boundElements?.some(({type:t})=>t==="text"),Xe=e=>e!==null&&"containerId"in e&&e.containerId!==null&&X(e),Ei=e=>e==="rectangle"||e==="embeddable"||e==="iframe"||e==="image",r5=e=>e==="line"||e==="arrow"||e==="diamond",o5=(e,t)=>!!((e===ht.ADAPTIVE_RADIUS||e===ht.LEGACY)&&Ei(t.type)||e===ht.PROPORTIONAL_RADIUS&&r5(t.type)),n5=e=>r5(e.type)?{type:ht.PROPORTIONAL_RADIUS}:Ei(e.type)?{type:ht.ADAPTIVE_RADIUS}:null,Hs=e=>Object.hasOwn(e,"fixedPoint")&&e.fixedPoint!=null});import{Random as fN}from"roughjs/bin/math";import{nanoid as gN}from"nanoid";var hN,bN,no,lr,fn=S(()=>{"use strict";h();G();hN=new fN(Date.now()),bN=0,no=()=>Math.floor(hN.next()*2**31),lr=()=>Gr()?`id${bN++}`:gN()});var Fu,vo,Bn,Ou,fc,gc,am,$o=S(()=>{"use strict";h();Fu=class extends Error{constructor(t="Couldn't export canvas.",r="CANVAS_ERROR"){super(),this.name=r,this.message=t}},vo=class extends DOMException{constructor(t="Request Aborted"){super(t,"AbortError")}},Bn=class extends Error{code;constructor(t="Image Scene Data Error",r="IMAGE_SCENE_DATA_ERROR"){super(t),this.name="EncodingError",this.code=r}},Ou=class extends Error{code="ELEMENT_HAS_INVALID_INDEX"},fc=class extends Error{code;constructor(t="Worker URL is not defined!",r="WORKER_URL_NOT_DEFINED"){super(t),this.name="WorkerUrlNotDefinedError",this.code=r}},gc=class extends Error{code;constructor(t="Worker has to be in a separate chunk!",r="WORKER_IN_THE_MAIN_CHUNK"){super(t),this.name="WorkerInTheMainChunkError",this.code=r}},am=class extends Error{constructor(t){super(t),this.name="ExcalidrawError"}}});var s1,Bu,l1,i5,EN,c1,gn,Qi,$s,UN,xN,yN,rt,Vt,wN,Ko,vN,IN,TN,SN,CN,Ba=S(()=>{"use strict";h();W();Ve();i5=e=>(s1||(s1=rt.class(...Object.values(Qi))),s1.test(e)),EN=()=>{if(!Bu)try{Bu=xN()}catch{Bu=UN()}return Bu},c1=()=>(l1||(l1=yN()),l1),gn={WHITESPACE:/\s/u,HYPHEN:/-/u,OPENING:/<\(\[\{/u,CLOSING:/>\)\]\}.,:;!\?…\//u},Qi={CHAR:/\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}`'^〃〰〆#&*+-ー/\=|¦〒¬ ̄/u,OPENING:/([{〈《⦅「「『【〖〔〘〚<〝/u,CLOSING:/)]}〉》⦆」」』】〗〕〙〛>。.,、〟‥?!:;・〜〞/u,CURRENCY:/¥₩£¢$/u},$s={FLAG:/\p{RI}\p{RI}/u,JOINER:/(?:\p{Emoji_Modifier}|\uFE0F\u20E3?|[\u{E0020}-\u{E007E}]+\u{E007F})?/u,ZWJ:/\u200D/u,ANY:/[\p{Emoji}]/u,MOST:/[\p{Extended_Pictographic}\p{Emoji_Presentation}]/u},UN=()=>rt.or(c1(),Vt.On(gn.HYPHEN,gn.WHITESPACE,Qi.CHAR)),xN=()=>rt.or(c1(),Vt.Before(gn.WHITESPACE).Build(),Vt.After(gn.WHITESPACE,gn.HYPHEN).Build(),Vt.Before(Qi.CHAR,Qi.CURRENCY).NotPrecededBy(gn.OPENING,Qi.OPENING).Build(),Vt.After(Qi.CHAR).NotFollowedBy(gn.HYPHEN,gn.CLOSING,Qi.CLOSING).Build(),Vt.BeforeMany(Qi.OPENING).NotPrecededBy(gn.OPENING).Build(),Vt.AfterMany(Qi.CLOSING).NotFollowedBy(gn.CLOSING).Build(),Vt.AfterMany(gn.CLOSING).FollowedBy(gn.OPENING).Build()),yN=()=>rt.group(rt.or($s.FLAG,rt.and($s.MOST,$s.JOINER,rt.build(`(?:${$s.ZWJ.source}(?:${$s.FLAG.source}|${$s.ANY.source}${$s.JOINER.source}))*`)))),rt={build:e=>new RegExp(e,"u"),join:(...e)=>e.map(t=>t.source).join(""),and:(...e)=>rt.build(rt.join(...e)),or:(...e)=>rt.build(e.map(t=>t.source).join("|")),group:(...e)=>rt.build(`(${rt.join(...e)})`),class:(...e)=>rt.build(`[${rt.join(...e)}]`)},Vt={On:(...e)=>{let t=rt.join(...e);return rt.build(`([${t}])`)},Before:(...e)=>{let t=rt.join(...e),r=()=>rt.build(`(?=[${t}])`);return Vt.Chain(r)},After:(...e)=>{let t=rt.join(...e),r=()=>rt.build(`(?<=[${t}])`);return Vt.Chain(r)},BeforeMany:(...e)=>{let t=rt.join(...e),r=()=>rt.build(`(?<![${t}])(?=[${t}])`);return Vt.Chain(r)},AfterMany:(...e)=>{let t=rt.join(...e),r=()=>rt.build(`(?<=[${t}])(?![${t}])`);return Vt.Chain(r)},NotBefore:(...e)=>{let t=rt.join(...e),r=()=>rt.build(`(?![${t}])`);return Vt.Chain(r)},NotAfter:(...e)=>{let t=rt.join(...e),r=()=>rt.build(`(?<![${t}])`);return Vt.Chain(r)},Chain:e=>({Build:e,PreceededBy:(...t)=>{let r=e(),o=Vt.After(...t).Build(),n=()=>rt.and(o,r);return Vt.Chain(n)},FollowedBy:(...t)=>{let r=e(),o=Vt.Before(...t).Build(),n=()=>rt.and(r,o);return Vt.Chain(n)},NotPrecededBy:(...t)=>{let r=e(),o=Vt.NotAfter(...t).Build(),n=()=>rt.and(o,r);return Vt.Chain(n)},NotFollowedBy:(...t)=>{let r=e(),o=Vt.NotBefore(...t).Build(),n=()=>rt.and(r,o);return Vt.Chain(n)}})},wN=e=>{let t=EN();return e.normalize("NFC").split(t).filter(Boolean)},Ko=(e,t,r)=>{if(!Number.isFinite(r)||r<0)return e;let o=[],n=e.split(`
`);for(let i of n){if(Oa(i,t,!0)<=r){o.push(i);continue}let s=vN(i,t,r);o.push(...s)}return o.join(`
`)},vN=(e,t,r)=>{let o=[],i=wN(e)[Symbol.iterator](),a="",s=0,l=i.next();for(;!l.done;){let c=l.value,m=a+c,d=SN(c)?s+Ks.calculate(c,t):Oa(m,t,!0);if(/\s/.test(c)||d<=r){a=m,s=d,l=i.next();continue}if(a)o.push(a.trimEnd()),a="",s=0;else{let p=IN(c,t,r),u=p[p.length-1]??"",f=p.slice(0,-1);o.push(...f),a=u,s=Oa(u,t,!0),l=i.next()}}if(a){let c=TN(a,t,r);o.push(c)}return o},IN=(e,t,r)=>{if(c1().test(e))return[e];CN(e);let o=[],n=Array.from(e),i="",a=0;for(let s of n){let l=Ks.calculate(s,t),c=a+l;if(c<=r){i=i+s,a=c;continue}i&&o.push(i),i=s,a=l}return i&&o.push(i),o},TN=(e,t,r)=>{if(!(Oa(e,t,!0)>r))return e;let[,n,i]=e.match(/^(.+?)(\s+)$/)??[e,e.trimEnd(),""],a=Oa(n,t,!0);for(let s of Array.from(i)){let l=Ks.calculate(s,t),c=a+l;if(c>r)break;n=n+s,a=c}return n},SN=e=>e.codePointAt(0)!==void 0&&e.codePointAt(1)===void 0,CN=e=>{if((I.MODE===Mt.TEST||I.DEV)&&/\s/.test(e))throw new Error("Word should not contain any whitespaces!")}});var RN,cr,LN,d1,Hu,$u,a5,Io,Hn,zr=S(()=>{"use strict";h();Hr();W();RN=ic.includes(devicePixelRatio)?devicePixelRatio:1,cr=()=>({showWelcomeScreen:!1,theme:ae.LIGHT,collaborators:new Map,currentChartType:"bar",currentItemBackgroundColor:xt.backgroundColor,currentItemEndArrowhead:"arrow",currentItemFillStyle:xt.fillStyle,currentItemFontFamily:Kr,currentItemFontSize:$r,currentItemOpacity:xt.opacity,currentItemRoughness:xt.roughness,currentItemStartArrowhead:null,currentItemStrokeColor:xt.strokeColor,currentItemRoundness:"round",currentItemArrowType:Zt.round,currentItemStrokeStyle:xt.strokeStyle,currentItemStrokeWidth:xt.strokeWidth,currentItemTextAlign:di,currentHoveredFontFamily:null,cursorButton:"up",activeEmbeddable:null,newElement:null,editingTextElement:null,editingGroupId:null,editingLinearElement:null,activeTool:{type:"selection",customType:null,locked:xt.locked,lastActiveTool:null},penMode:!1,penDetected:!1,errorMessage:null,exportBackground:!0,exportScale:RN,exportEmbedScene:!1,exportWithDarkMode:!1,fileHandle:null,gridSize:As,gridStep:fu,gridModeEnabled:!1,isBindingEnabled:!0,defaultSidebarDockedPreference:!1,isLoading:!1,isResizing:!1,isRotating:!1,lastPointerDownWith:"mouse",multiElement:null,name:null,contextMenu:null,openMenu:null,openPopup:null,openSidebar:null,openDialog:null,pasteDialog:{shown:!1,data:null},previousSelectedElementIds:{},resizingElement:null,scrolledOutside:!1,scrollX:0,scrollY:0,selectedElementIds:{},hoveredElementIds:{},selectedGroupIds:{},selectedElementsAreBeingDragged:!1,selectionElement:null,shouldCacheIgnoreZoom:!1,stats:{open:!1,panels:_a.generalStats|_a.elementProperties},startBoundElement:null,suggestedBindings:[],frameRendering:{enabled:!0,clip:!0,name:!0,outline:!0},frameToHighlight:null,editingFrame:null,elementsToHighlight:null,toast:null,viewBackgroundColor:ye.white,zenModeEnabled:!1,zoom:{value:1},viewModeEnabled:!1,pendingImageElementId:null,showHyperlinkPopup:!1,selectedLinearElement:null,snapLines:[],originSnapOffset:{x:0,y:0},objectsSnapModeEnabled:!1,userToFollow:null,followedBy:new Set,isCropping:!1,croppingElementId:null,searchMatches:[]}),LN=(e=>e)({showWelcomeScreen:{browser:!0,export:!1,server:!1},theme:{browser:!0,export:!1,server:!1},collaborators:{browser:!1,export:!1,server:!1},currentChartType:{browser:!0,export:!1,server:!1},currentItemBackgroundColor:{browser:!0,export:!1,server:!1},currentItemEndArrowhead:{browser:!0,export:!1,server:!1},currentItemFillStyle:{browser:!0,export:!1,server:!1},currentItemFontFamily:{browser:!0,export:!1,server:!1},currentItemFontSize:{browser:!0,export:!1,server:!1},currentItemRoundness:{browser:!0,export:!1,server:!1},currentItemArrowType:{browser:!0,export:!1,server:!1},currentItemOpacity:{browser:!0,export:!1,server:!1},currentItemRoughness:{browser:!0,export:!1,server:!1},currentItemStartArrowhead:{browser:!0,export:!1,server:!1},currentItemStrokeColor:{browser:!0,export:!1,server:!1},currentItemStrokeStyle:{browser:!0,export:!1,server:!1},currentItemStrokeWidth:{browser:!0,export:!1,server:!1},currentItemTextAlign:{browser:!0,export:!1,server:!1},currentHoveredFontFamily:{browser:!1,export:!1,server:!1},cursorButton:{browser:!0,export:!1,server:!1},activeEmbeddable:{browser:!1,export:!1,server:!1},newElement:{browser:!1,export:!1,server:!1},editingTextElement:{browser:!1,export:!1,server:!1},editingGroupId:{browser:!0,export:!1,server:!1},editingLinearElement:{browser:!1,export:!1,server:!1},activeTool:{browser:!0,export:!1,server:!1},penMode:{browser:!0,export:!1,server:!1},penDetected:{browser:!0,export:!1,server:!1},errorMessage:{browser:!1,export:!1,server:!1},exportBackground:{browser:!0,export:!1,server:!1},exportEmbedScene:{browser:!0,export:!1,server:!1},exportScale:{browser:!0,export:!1,server:!1},exportWithDarkMode:{browser:!0,export:!1,server:!1},fileHandle:{browser:!1,export:!1,server:!1},gridSize:{browser:!0,export:!0,server:!0},gridStep:{browser:!0,export:!0,server:!0},gridModeEnabled:{browser:!0,export:!0,server:!0},height:{browser:!1,export:!1,server:!1},isBindingEnabled:{browser:!1,export:!1,server:!1},defaultSidebarDockedPreference:{browser:!0,export:!1,server:!1},isLoading:{browser:!1,export:!1,server:!1},isResizing:{browser:!1,export:!1,server:!1},isRotating:{browser:!1,export:!1,server:!1},lastPointerDownWith:{browser:!0,export:!1,server:!1},multiElement:{browser:!1,export:!1,server:!1},name:{browser:!0,export:!1,server:!1},offsetLeft:{browser:!1,export:!1,server:!1},offsetTop:{browser:!1,export:!1,server:!1},contextMenu:{browser:!1,export:!1,server:!1},openMenu:{browser:!0,export:!1,server:!1},openPopup:{browser:!1,export:!1,server:!1},openSidebar:{browser:!0,export:!1,server:!1},openDialog:{browser:!1,export:!1,server:!1},pasteDialog:{browser:!1,export:!1,server:!1},previousSelectedElementIds:{browser:!0,export:!1,server:!1},resizingElement:{browser:!1,export:!1,server:!1},scrolledOutside:{browser:!0,export:!1,server:!1},scrollX:{browser:!0,export:!1,server:!1},scrollY:{browser:!0,export:!1,server:!1},selectedElementIds:{browser:!0,export:!1,server:!1},hoveredElementIds:{browser:!1,export:!1,server:!1},selectedGroupIds:{browser:!0,export:!1,server:!1},selectedElementsAreBeingDragged:{browser:!1,export:!1,server:!1},selectionElement:{browser:!1,export:!1,server:!1},shouldCacheIgnoreZoom:{browser:!0,export:!1,server:!1},stats:{browser:!0,export:!1,server:!1},startBoundElement:{browser:!1,export:!1,server:!1},suggestedBindings:{browser:!1,export:!1,server:!1},frameRendering:{browser:!1,export:!1,server:!1},frameToHighlight:{browser:!1,export:!1,server:!1},editingFrame:{browser:!1,export:!1,server:!1},elementsToHighlight:{browser:!1,export:!1,server:!1},toast:{browser:!1,export:!1,server:!1},viewBackgroundColor:{browser:!0,export:!0,server:!0},width:{browser:!1,export:!1,server:!1},zenModeEnabled:{browser:!0,export:!1,server:!1},zoom:{browser:!0,export:!1,server:!1},viewModeEnabled:{browser:!1,export:!1,server:!1},pendingImageElementId:{browser:!1,export:!1,server:!1},showHyperlinkPopup:{browser:!1,export:!1,server:!1},selectedLinearElement:{browser:!0,export:!1,server:!1},snapLines:{browser:!1,export:!1,server:!1},originSnapOffset:{browser:!1,export:!1,server:!1},objectsSnapModeEnabled:{browser:!0,export:!1,server:!1},userToFollow:{browser:!1,export:!1,server:!1},followedBy:{browser:!1,export:!1,server:!1},isCropping:{browser:!1,export:!1,server:!1},croppingElementId:{browser:!1,export:!1,server:!1},searchMatches:{browser:!1,export:!1,server:!1}}),d1=(e,t)=>{let r={};for(let o of Object.keys(e))if(LN[o]?.[t]){let i=e[o];r[o]=i}return r},Hu=e=>d1(e,"browser"),$u=e=>d1(e,"export"),a5=e=>d1(e,"server"),Io=({activeTool:e})=>e.type==="eraser",Hn=({activeTool:e})=>e.type==="hand"});var m1,Ur,Ku,p1,$n,Vu,s5,Vs,it,l5,c5,d5,m5,Ys,p5,Yu,Ui,Xt=S(()=>{"use strict";h();qe();Ve();Ha();m1=(e,t,r)=>{let o=r.reduce((n,i)=>(i.groupIds.includes(e)&&(n[i.id]=!0),n),{});return Object.keys(o).length<2?t.selectedGroupIds[e]||t.editingGroupId===e?{selectedElementIds:t.selectedElementIds,selectedGroupIds:{...t.selectedGroupIds,[e]:!1},editingGroupId:null}:t:{editingGroupId:t.editingGroupId,selectedGroupIds:{...t.selectedGroupIds,[e]:!0},selectedElementIds:{...t.selectedElementIds,...o}}},Ur=function(){let e=null,t=null,r=null,o=(i,a,s,l)=>{if(r!==void 0&&a===t&&i===e&&s.editingGroupId===r?.editingGroupId)return r;let c={};for(let p of i){let u=p.groupIds;if(s.editingGroupId){let f=u.indexOf(s.editingGroupId);f>-1&&(u=u.slice(0,f))}if(u.length>0){let f=u[u.length-1];c[f]=!0}}let m={},d=a.reduce((p,u)=>{let f=u.groupIds.find(g=>c[g]);return f&&(p[u.id]=!0,Array.isArray(m[f])?m[f].push(u.id):m[f]=[u.id]),p},{});for(let p of Object.keys(m))m[p].length<2&&c[p]&&(c[p]=!1);return t=a,e=i,r={editingGroupId:s.editingGroupId,selectedGroupIds:c,selectedElementIds:Ye({...s.selectedElementIds,...d},l)},r},n=(i,a,s,l)=>{let c=l?l.scene.getSelectedElements({selectedElementIds:i.selectedElementIds,elements:a}):ge(a,i);return c.length?o(c,a,i,s):{selectedGroupIds:{},editingGroupId:null,selectedElementIds:Ye(i.selectedElementIds,s)}};return n.clearCache=()=>{t=null,e=null,r=null},n}(),Ku=(e,t)=>p1(e,t)!=null,p1=(e,t)=>t.groupIds.filter(r=>r!==e.editingGroupId).find(r=>e.selectedGroupIds[r]),$n=e=>Object.entries(e.selectedGroupIds).filter(([t,r])=>r).map(([t,r])=>t),Vu=(e,t)=>{let r={...t,selectedGroupIds:{}};for(let o of e){let n=o.groupIds;if(t.editingGroupId){let i=n.indexOf(t.editingGroupId);i>-1&&(n=n.slice(0,i))}if(n.length>0){let i=n[n.length-1];r={...r,...m1(i,r,e)}}}return r.selectedGroupIds},s5=(e,t)=>({...e,editingGroupId:t.groupIds.length?t.groupIds[0]:null,selectedGroupIds:{},selectedElementIds:{[t.id]:!0}}),Vs=(e,t)=>e.groupIds.includes(t),it=(e,t)=>{let r=[];for(let o of e.values())Vs(o,t)&&r.push(o);return r},l5=(e,t)=>e.groupIds.find(r=>t[r]),c5=(e,t,r)=>{let o=[...e],n=t?e.indexOf(t):-1,i=n>-1?n:e.length;for(let a=0;a<i;a++)o[a]=r(o[a]);return o},d5=(e,t,r)=>{let o=[...e],n=r?o.indexOf(r):-1,i=n>-1?n:o.length;return o.splice(i,0,t),o},m5=(e,t)=>e.filter(r=>!t[r]),Ys=(e,t)=>{let r=new Map;return e.forEach(o=>{let n=o.groupIds.length===0?o.id:o.groupIds[o.groupIds.length-1],i=r.get(n)||[],a=se(o,t);a&&i.push(a),r.set(n,[...i,o])}),Array.from(r.values())},p5=e=>{let t=new Set;for(let[,r]of e)if(!r.isDeleted)for(let o of r.groupIds??[])t.add(o);return t},Yu=e=>{let t=e.flatMap(n=>n.groupIds),r=new Map,o=0;for(let n of t)r.set(n,(r.get(n)??0)+1),r.get(n)>o&&(o=r.get(n));return o===e.length},Ui=e=>e.groupIds.length>0});import{sanitizeUrl as MN}from"@braintree/sanitize-url";var sm,Qt,Gu,zu,ji=S(()=>{"use strict";h();sm=e=>e.replace(/"/g,"""),Qt=e=>(e=e.trim(),e&&MN(sm(e))),Gu=e=>!!(e?.includes(location.origin)||e?.startsWith("/")),zu=e=>{if(e=Qt(e),e.startsWith("/"))return`${location.origin}${e}`;try{new URL(e)}catch{return"about:blank"}return e}});var Ju,z,We=S(()=>{"use strict";h();Ju=[],z=e=>(Ju=Ju.concat(e),e)});import Xu from"open-color";var f5,DN,g5,AN,_N,Vo,ot,xi,u5,u1,Yo,hc=S(()=>{"use strict";h();W();zr();f5='<svg viewBox="0 0 24 24" stroke-width="1" width="28" height="28" xmlns="http://www.w3.org/2000/svg">',DN='<path d="M6.164 11.755a5.314 5.314 0 0 1-4.932-5.298 5.314 5.314 0 0 1 5.311-5.311 5.314 5.314 0 0 1 5.307 5.113l8.773 8.773a3.322 3.322 0 0 1 0 4.696l-.895.895a3.322 3.322 0 0 1-4.696 0l-8.868-8.868Z" style="fill:#fff"/>',g5='<path stroke="#1b1b1f" fill="#fff" d="m7.868 11.113 7.773 7.774a2.359 2.359 0 0 0 1.667.691 2.368 2.368 0 0 0 2.357-2.358c0-.625-.248-1.225-.69-1.667L11.201 7.78 9.558 9.469l-1.69 1.643v.001Zm10.273 3.606-3.333 3.333m-3.25-6.583 2 2m-7-7 3 3M3.664 3.625l1 1M2.529 6.922l1.407-.144m5.735-2.932-1.118.866M4.285 9.823l.758-1.194m1.863-6.207-.13 1.408"/>',AN=`data:${ne.svg},${encodeURIComponent(`${f5}${g5}</svg>`)}`,_N=`data:${ne.svg},${encodeURIComponent(`${f5}${DN}${g5}</svg>`)}`,Vo=e=>{e&&(e.style.cursor="")},ot=(e,t)=>{e&&(e.style.cursor=t)},u1=(e,t)=>{let o=()=>{let n=t===ae.DARK;xi=document.createElement("canvas"),xi.theme=t,xi.height=20,xi.width=20;let i=xi.getContext("2d");i.lineWidth=1,i.beginPath(),i.arc(xi.width/2,xi.height/2,5,0,2*Math.PI),i.fillStyle=n?Xu.black:Xu.white,i.fill(),i.strokeStyle=n?Xu.white:Xu.black,i.stroke(),u5=xi.toDataURL(ne.svg)};(!xi||xi.theme!==t)&&o(),ot(e,`url(${u5}) ${20/2} ${20/2}, auto`)},Yo=(e,t)=>{if(e)if(t.activeTool.type==="selection")Vo(e);else if(Hn(t))e.style.cursor=Ke.GRAB;else if(Io(t))u1(e,t.theme);else if(t.activeTool.type==="laser"){let r=t.theme===ae.LIGHT?AN:_N;e.style.cursor=`url(${r}), auto`}else["image","custom"].includes(t.activeTool.type)?t.activeTool.type!=="image"&&(e.style.cursor=Ke.AUTO):e.style.cursor=Ke.CROSSHAIR}});import{RoughGenerator as kN}from"roughjs/bin/generator";var Ge,yi=S(()=>{"use strict";h();wi();f1();Hr();Ge=class e{static rg=new kN;static cache=new WeakMap;static get=t=>e.cache.get(t);static set=(t,r)=>e.cache.set(t,r);static delete=t=>e.cache.delete(t);static destroy=()=>{e.cache=new WeakMap};static generateElementShape=(t,r)=>{let o=r?.isExporting?void 0:e.get(t);if(o!==void 0)return o;qu.delete(t);let n=h5(t,e.rg,r||{isExporting:!1,canvasBackgroundColor:ye.white,embedsValidationStatus:null});return e.cache.set(t,n),n}}});import To from"react";import PN from"open-color";import NN from"clsx";import{Fragment as at,jsx as U,jsxs as V}from"react/jsx-runtime";var Kn,b5,O,j,Re,uoe,bc,E5,U5,x5,Gs,Ec,y5,w5,v5,foe,I5,T5,S5,C5,R5,L5,M5,ea,Wu,D5,A5,g1,h1,_5,So,k5,lm,cm,dm,Zu,zs,Uc,P5,b1,Qu,N5,F5,O5,Js,B5,H5,xc,goe,$5,ju,ef,K5,hoe,boe,V5,Eoe,E1,U1,Y5,tf,G5,z5,Uoe,J5,xoe,X5,q5,x1,y1,w1,v1,I1,T1,S1,C1,W5,Z5,R1,L1,rf,yoe,woe,Go,voe,Ioe,Toe,M1,D1,Q5,j5,e6,t6,A1,r6,o6,Soe,n6,i6,a6,s6,l6,c6,d6,m6,_1,k1,p6,u6,f6,g6,h6,b6,E6,U6,x6,y6,Xs,w6,qs,mm,v6,I6,T6,S6,C6,R6,of,L6,Coe,nf,P1,$a,M6,D6,A6,_6,k6,P6,N6,F6,af,sf,yc,lf,cf,Roe,Loe,O6,Ka,B6,H6,$6,zo,K6,V6,Y6,df,G6,z6,J6,X6,N1,mf,q6,W6,Z6,Q6,j6,Moe,ew,tw,rw,ow,nw,iw,pf,aw,sw,F1,uf,te=S(()=>{"use strict";h();W();Kn=e=>"var(--icon-fill-color)",b5=e=>e===ae.LIGHT?PN.white:"#1e1e1e",O=(e,t=512)=>{let{width:r=512,height:o=r,mirror:n,style:i,...a}=typeof t=="number"?{width:t}:t;return U("svg",{"aria-hidden":"true",focusable:"false",role:"img",viewBox:`0 0 ${r} ${o}`,className:NN({"rtl-mirror":n}),style:i,...a,children:typeof e=="string"?U("path",{fill:"currentColor",d:e}):e})},j={width:24,height:24,fill:"none",strokeWidth:2,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},Re={width:20,height:20,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},uoe=O(V("g",{strokeWidth:"1.5",children:[U("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),U("rect",{x:3,y:8,width:18,height:4,rx:1}),U("line",{x1:12,y1:8,x2:12,y2:21}),U("path",{d:"M19 12v7a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-7"}),U("path",{d:"M7.5 8a2.5 2.5 0 0 1 0 -5a4.8 8 0 0 1 4.5 5a4.8 8 0 0 1 4.5 -5a2.5 2.5 0 0 1 0 5"})]}),j),bc=O(V("g",{strokeWidth:"1.25",children:[U("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),U("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),U("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),U("line",{x1:"3",y1:"6",x2:"3",y2:"19"}),U("line",{x1:"12",y1:"6",x2:"12",y2:"19"}),U("line",{x1:"21",y1:"6",x2:"21",y2:"19"})]}),j),E5=O(V("svg",{strokeWidth:"1.5",children:[U("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),U("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),U("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),j),U5=O(V("g",{strokeWidth:"1.5",children:[U("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),U("circle",{cx:"12",cy:"12",r:"1"}),U("circle",{cx:"12",cy:"19",r:"1"}),U("circle",{cx:"12",cy:"5",r:"1"})]}),j),x5=O(V("svg",{strokeWidth:"1.5",children:[U("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),U("path",{d:"M9 4v6l-2 4v2h10v-2l-2 -4v-6"}),U("line",{x1:"12",y1:"16",x2:"12",y2:"21"}),U("line",{x1:"8",y1:"4",x2:"16",y2:"4"})]}),j),Gs=O(V("g",{children:[U("path",{d:"M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z",stroke:"currentColor",strokeWidth:"1.25"}),U("path",{d:"M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z",stroke:"currentColor",strokeWidth:"1.25"}),U("mask",{id:"UnlockedIcon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:6,y:1,width:9,height:9,children:U("path",{stroke:"none",d:"M6.399 9.561V5.175c0-.93.401-1.823 1.116-2.48a3.981 3.981 0 0 1 2.693-1.028c1.01 0 1.98.37 2.694 1.027.715.658 1.116 1.55 1.116 2.481",fill:"#fff"})}),U("g",{mask:"url(#UnlockedIcon)",children:U("path",{stroke:"none",d:"M5.149 9.561v1.25h2.5v-1.25h-2.5Zm5.06-7.894V.417v1.25Zm2.559 3.508v1.25h2.5v-1.25h-2.5ZM7.648 8.51V5.175h-2.5V8.51h2.5Zm0-3.334c0-.564.243-1.128.713-1.561L6.668 1.775c-.959.883-1.52 2.104-1.52 3.4h2.5Zm.713-1.561a2.732 2.732 0 0 1 1.847-.697v-2.5c-1.31 0-2.585.478-3.54 1.358L8.36 3.614Zm1.847-.697c.71 0 1.374.26 1.847.697l1.694-1.839a5.231 5.231 0 0 0-3.54-1.358v2.5Zm1.847.697c.47.433.713.997.713 1.561h2.5c0-1.296-.56-2.517-1.52-3.4l-1.693 1.839Z",fill:"currentColor"})})]}),Re),Ec=O(V("g",{strokeWidth:"1.25",children:[U("path",{d:"M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z"}),U("path",{d:"M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z"}),U("path",{d:"M6.667 8.333V5.417C6.667 3.806 8.159 2.5 10 2.5c1.841 0 3.333 1.306 3.333 2.917v2.916"})]}),Re),y5=O(V(at,{children:[U("path",{d:"M38.5 83.5c-14-2-17.833-10.473-21-22.5C14.333 48.984 12 22 12 12.5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),U("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m12.005 10.478 7.905 14.423L6 25.75l6.005-15.273Z",fill:"currentColor"}),U("path",{d:"M12.005 10.478c1.92 3.495 3.838 7 7.905 14.423m-7.905-14.423c3.11 5.683 6.23 11.368 7.905 14.423m0 0c-3.68.226-7.35.455-13.91.85m13.91-.85c-5.279.33-10.566.647-13.91.85m0 0c1.936-4.931 3.882-9.86 6.005-15.273M6 25.75c2.069-5.257 4.135-10.505 6.005-15.272",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),{width:41,height:94,fill:"none"}),w5=O(V(at,{children:[U("path",{d:"M18.026 1.232c-5.268 13.125-5.548 33.555 3.285 42.311 8.823 8.75 33.31 12.304 42.422 13.523",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),U("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m72.181 59.247-13.058-10-2.948 13.62 16.006-3.62Z",fill:"currentColor"}),U("path",{d:"M72.181 59.247c-3.163-2.429-6.337-4.856-13.058-10m13.058 10c-5.145-3.936-10.292-7.882-13.058-10m0 0c-.78 3.603-1.563 7.196-2.948 13.62m2.948-13.62c-1.126 5.168-2.24 10.346-2.948 13.62m0 0c5.168-1.166 10.334-2.343 16.006-3.62m-16.006 3.62c5.51-1.248 11.01-2.495 16.006-3.62",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),{width:85,height:71,fill:"none"}),v5=O(V(at,{children:[U("path",{d:"M1 77c14-2 31.833-11.973 35-24 3.167-12.016-6-35-9.5-43.5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),U("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m24.165 1.093-2.132 16.309 13.27-4.258-11.138-12.05Z",fill:"currentColor"}),U("path",{d:"M24.165 1.093c-.522 3.953-1.037 7.916-2.132 16.309m2.131-16.309c-.835 6.424-1.68 12.854-2.13 16.308m0 0c3.51-1.125 7.013-2.243 13.27-4.257m-13.27 4.257c5.038-1.608 10.08-3.232 13.27-4.257m0 0c-3.595-3.892-7.197-7.777-11.14-12.05m11.14 12.05c-3.837-4.148-7.667-8.287-11.14-12.05",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),{width:38,height:78,fill:"none"}),foe=O(U("g",{fill:"currentColor",children:U("path",{d:"M39.9 32.889a.326.326 0 0 0-.279-.056c-2.094-3.083-4.774-6-7.343-8.833l-.419-.472a.212.212 0 0 0-.056-.139.586.586 0 0 0-.167-.111l-.084-.083-.056-.056c-.084-.167-.28-.278-.475-.167-.782.39-1.507.973-2.206 1.528-.92.722-1.842 1.445-2.708 2.25a8.405 8.405 0 0 0-.977 1.028c-.14.194-.028.361.14.444-.615.611-1.23 1.223-1.843 1.861a.315.315 0 0 0-.084.223c0 .083.056.166.111.194l1.09.833v.028c1.535 1.528 4.244 3.611 7.12 5.861.418.334.865.667 1.284 1 .195.223.39.473.558.695.084.11.28.139.391.055.056.056.14.111.196.167a.398.398 0 0 0 .167.056.255.255 0 0 0 .224-.111.394.394 0 0 0 .055-.167c.029 0 .028.028.056.028a.318.318 0 0 0 .224-.084l5.082-5.528a.309.309 0 0 0 0-.444Zm-14.63-1.917a.485.485 0 0 0 .111.14c.586.5 1.2 1 1.843 1.555l-2.569-1.945-.251-.166c-.056-.028-.112-.084-.168-.111l-.195-.167.056-.056.055-.055.112-.111c.866-.861 2.346-2.306 3.1-3.028-.81.805-2.43 3.167-2.095 3.944Zm8.767 6.89-2.122-1.612a44.713 44.713 0 0 0-2.625-2.5c1.145.861 2.122 1.611 2.262 1.75 1.117.972 1.06.806 1.815 1.445l.921.666a1.06 1.06 0 0 1-.251.25Zm.558.416-.056-.028c.084-.055.168-.111.252-.194l-.196.222ZM1.089 5.75c.055.361.14.722.195 1.056.335 1.833.67 3.5 1.284 4.75l.252.944c.084.361.223.806.363.917 1.424 1.25 3.602 3.11 5.947 4.889a.295.295 0 0 0 .363 0s0 .027.028.027a.254.254 0 0 0 .196.084.318.318 0 0 0 .223-.084c2.988-3.305 5.221-6.027 6.813-8.305.112-.111.14-.278.14-.417.111-.111.195-.25.307-.333.111-.111.111-.306 0-.39l-.028-.027c0-.055-.028-.139-.084-.167-.698-.666-1.2-1.138-1.731-1.638-.922-.862-1.871-1.75-3.881-3.75l-.028-.028c-.028-.028-.056-.056-.112-.056-.558-.194-1.703-.389-3.127-.639C6.087 2.223 3.21 1.723.614.944c0 0-.168 0-.196.028l-.083.084c-.028.027-.056.055-.224.11h.056-.056c.028.167.028.278.084.473 0 .055.112.5.112.555l.782 3.556Zm15.496 3.278-.335-.334c.084.112.196.195.335.334Zm-3.546 4.666-.056.056c0-.028.028-.056.056-.056Zm-2.038-10c.168.167.866.834 1.033.973-.726-.334-2.54-1.167-3.379-1.445.838.167 1.983.334 2.346.472ZM1.424 2.306c.419.722.754 3.222 1.089 5.666-.196-.778-.335-1.555-.503-2.278-.251-1.277-.503-2.416-.838-3.416.056 0 .14 0 .252.028Zm-.168-.584c-.112 0-.223-.028-.307-.028 0-.027 0-.055-.028-.055.14 0 .223.028.335.083Zm-1.089.222c0-.027 0-.027 0 0ZM39.453 1.333c.028-.11-.558-.61-.363-.639.42-.027.42-.666 0-.666-.558.028-1.144.166-1.675.25-.977.194-1.982.389-2.96.61-2.205.473-4.383.973-6.561 1.557-.67.194-1.424.333-2.066.666-.224.111-.196.333-.084.472-.056.028-.084.028-.14.056-.195.028-.363.056-.558.083-.168.028-.252.167-.224.334 0 .027.028.083.028.11-1.173 1.556-2.485 3.195-3.909 4.945-1.396 1.611-2.876 3.306-4.356 5.056-4.719 5.5-10.052 11.75-15.943 17.25a.268.268 0 0 0 0 .389c.028.027.056.055.084.055-.084.084-.168.14-.252.222-.056.056-.084.111-.084.167a.605.605 0 0 0-.111.139c-.112.111-.112.305.028.389.111.11.307.11.39-.028.029-.028.029-.056.056-.056a.44.44 0 0 1 .615 0c.335.362.67.723.977 1.028l-.698-.583c-.112-.111-.307-.083-.39.028-.113.11-.085.305.027.389l7.427 6.194c.056.056.112.056.196.056s.14-.028.195-.084l.168-.166c.028.027.083.027.111.027.084 0 .14-.027.196-.083 10.052-10.055 18.15-17.639 27.42-24.417.083-.055.111-.166.111-.25.112 0 .196-.083.251-.194 1.704-5.194 2.039-9.806 2.15-12.083v-.028c0-.028.028-.056.028-.083.028-.056.028-.084.028-.084a1.626 1.626 0 0 0-.111-1.028ZM21.472 9.5c.446-.5.893-1.028 1.34-1.5-2.876 3.778-7.65 9.583-14.408 16.5 4.607-5.083 9.242-10.333 13.068-15ZM5.193 35.778h.084-.084Zm3.462 3.194c-.027-.028-.027-.028 0-.028v.028Zm4.16-3.583c.224-.25.448-.472.699-.722 0 0 0 .027.028.027-.252.223-.475.445-.726.695Zm1.146-1.111c.14-.14.279-.334.446-.5l.028-.028c1.648-1.694 3.351-3.389 5.082-5.111l.028-.028c.419-.333.921-.694 1.368-1.028a379.003 379.003 0 0 0-6.952 6.695ZM24.794 6.472c-.921 1.195-1.954 2.778-2.82 4.028-2.736 3.944-11.532 13.583-11.727 13.75a1976.983 1976.983 0 0 1-8.042 7.639l-.167.167c-.14-.167-.14-.417.028-.556C14.49 19.861 22.03 10.167 25.074 5.917c-.084.194-.14.36-.28.555Zm4.83 5.695c-1.116-.64-1.646-1.64-1.34-2.611l.084-.334c.028-.083.084-.194.14-.277.307-.5.754-.917 1.257-1.167.027 0 .055 0 .083-.028-.028-.056-.028-.139-.028-.222.028-.167.14-.278.335-.278.335 0 1.369.306 1.76.639.111.083.223.194.335.305.14.167.363.445.474.667.056.028.112.306.196.445.056.222.111.472.084.694-.028.028 0 .194-.028.194a2.668 2.668 0 0 1-.363 1.028c-.028.028-.028.056-.056.084l-.028.027c-.14.223-.335.417-.53.556-.643.444-1.369.583-2.095.389 0 0-.195-.084-.28-.111Zm8.154-.834a39.098 39.098 0 0 1-.893 3.167c0 .028-.028.083 0 .111-.056 0-.084.028-.14.056-2.206 1.61-4.356 3.305-6.506 5.028 1.843-1.64 3.686-3.306 5.613-4.945.558-.5.949-1.139 1.06-1.861l.28-1.667v-.055c.14-.334.67-.195.586.166Z",fill:"currentColor"})}),{width:40,height:40,fill:"none"}),I5=O(V("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[U("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),U("path",{d:"M6 6l4.153 11.793a0.365 .365 0 0 0 .331 .207a0.366 .366 0 0 0 .332 -.207l2.184 -4.793l4.787 -1.994a0.355 .355 0 0 0 .213 -.323a0.355 .355 0 0 0 -.213 -.323l-11.787 -4.36z"}),U("path",{d:"M13.5 13.5l4.5 4.5"})]}),{fill:"none",width:22,height:22,strokeWidth:1.25}),T5=O(V("g",{strokeWidth:"1.5",children:[U("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),U("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"})]}),j),S5=O(V("g",{strokeWidth:"1.5",children:[U("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),U("path",{d:"M10.5 20.4l-6.9 -6.9c-.781 -.781 -.781 -2.219 0 -3l6.9 -6.9c.781 -.781 2.219 -.781 3 0l6.9 6.9c.781 .781 .781 2.219 0 3l-6.9 6.9c-.781 .781 -2.219 .781 -3 0z"})]}),j),C5=O(V("g",{strokeWidth:"1.5",children:[U("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),U("circle",{cx:"12",cy:"12",r:"9"})]}),j),R5=O(V("g",{strokeWidth:"1.5",children:[U("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),U("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),U("line",{x1:"15",y1:"16",x2:"19",y2:"12"}),U("line",{x1:"15",y1:"8",x2:"19",y2:"12"})]}),j),L5=O(U("path",{d:"M4.167 10h11.666",strokeWidth:"1.5"}),Re),M5=O(V("g",{strokeWidth:"1.25",children:[U("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),U("path",{d:"M20 17v-12c0 -1.121 -.879 -2 -2 -2s-2 .879 -2 2v12l2 2l2 -2z"}),U("path",{d:"M16 7h4"}),U("path",{d:"M18 19h-13a2 2 0 1 1 0 -4h4a2 2 0 1 0 0 -4h-3"})]}),j),ea=O(V("g",{strokeWidth:"1.25",children:[U("path",{clipRule:"evenodd",d:"m7.643 15.69 7.774-7.773a2.357 2.357 0 1 0-3.334-3.334L4.31 12.357a3.333 3.333 0 0 0-.977 2.357v1.953h1.953c.884 0 1.732-.352 2.357-.977Z"}),U("path",{d:"m11.25 5.417 3.333 3.333"})]}),Re),Wu=O(V("g",{strokeWidth:"1.5",children:[U("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),U("line",{x1:"4",y1:"20",x2:"7",y2:"20"}),U("line",{x1:"14",y1:"20",x2:"21",y2:"20"}),U("line",{x1:"6.9",y1:"15",x2:"13.8",y2:"15"}),U("line",{x1:"10.2",y1:"6.3",x2:"16",y2:"20"}),