@tscircuit/runframe 0.0.777 → 0.0.778

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.
@@ -435,9 +435,12 @@ var ErrorTabContent = ({
435
435
  }, [circuitJsonWarnings]);
436
436
  const packageUrl = () => {
437
437
  if (fsMap) {
438
- return encodeFsMapToUrlHash(
439
- fsMap instanceof Map ? Object.fromEntries(fsMap.entries()) : fsMap
440
- );
438
+ try {
439
+ return encodeFsMapToUrlHash(
440
+ fsMap instanceof Map ? Object.fromEntries(fsMap.entries()) : fsMap
441
+ );
442
+ } catch {
443
+ }
441
444
  }
442
445
  return createSnippetUrl(code ?? "");
443
446
  };
@@ -1330,7 +1333,7 @@ var useErrorTelemetry = ({
1330
1333
  };
1331
1334
 
1332
1335
  // package.json
1333
- var version = "0.0.776";
1336
+ var version = "0.0.777";
1334
1337
 
1335
1338
  // lib/hooks/use-eval-versions.ts
1336
1339
  import { useEffect as useEffect5, useMemo as useMemo2, useState as useState6 } from "react";
package/dist/preview.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  linkify,
9
9
  useOrderDialog,
10
10
  useOrderDialogCli
11
- } from "./chunk-FNT4RPEC.js";
11
+ } from "./chunk-4W6XUK63.js";
12
12
  export {
13
13
  BomTable,
14
14
  CadViewer,
package/dist/runner.js CHANGED
@@ -39,7 +39,7 @@ import {
39
39
  useOrderDialogCli,
40
40
  useRunFrameStore,
41
41
  useRunnerStore
42
- } from "./chunk-FNT4RPEC.js";
42
+ } from "./chunk-4W6XUK63.js";
43
43
 
44
44
  // lib/components/RunFrame/RunFrame.tsx
45
45
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";
@@ -13320,7 +13320,7 @@ ${c.join(`
13320
13320
  `)},Htt=function(){var n=parseInt(document.body.getAttribute(gN)||"0",10);return isFinite(n)?n:0},Umn=function(){yt.useEffect(function(){return document.body.setAttribute(gN,(Htt()+1).toString()),function(){var n=Htt()-1;n<=0?document.body.removeAttribute(gN):document.body.setAttribute(gN,n.toString())}},[])},Gmn=function(n){var e=n.noRelative,t=n.noImportant,i=n.gapMode,r=i===void 0?"margin":i;Umn();var o=yt.useMemo(function(){return Pmn(r)},[r]);return yt.createElement(Fmn,{styles:Lmn(o,!e,r,t?"":"!important")})},$ye=!1;if(typeof window<"u")try{var aj=Object.defineProperty({},"passive",{get:function(){return $ye=!0,!0}});window.addEventListener("test",aj,aj),window.removeEventListener("test",aj,aj)}catch{$ye=!1}var mN=$ye?{passive:!1}:!1,Omn=function(n){return n.tagName==="TEXTAREA"},Vtt=function(n,e){if(!(n instanceof Element))return!1;var t=window.getComputedStyle(n);return t[e]!=="hidden"&&!(t.overflowY===t.overflowX&&!Omn(n)&&t[e]==="visible")},zmn=function(n){return Vtt(n,"overflowY")},Ymn=function(n){return Vtt(n,"overflowX")},Ktt=function(n,e){var t=e.ownerDocument,i=e;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var r=jtt(n,i);if(r){var o=Wtt(n,i),s=o[1],a=o[2];if(s>a)return!0}i=i.parentNode}while(i&&i!==t.body);return!1},Hmn=function(n){var e=n.scrollTop,t=n.scrollHeight,i=n.clientHeight;return[e,t,i]},Vmn=function(n){var e=n.scrollLeft,t=n.scrollWidth,i=n.clientWidth;return[e,t,i]},jtt=function(n,e){return n==="v"?zmn(e):Ymn(e)},Wtt=function(n,e){return n==="v"?Hmn(e):Vmn(e)},Kmn=function(n,e){return n==="h"&&e==="rtl"?-1:1},jmn=function(n,e,t,i,r){var o=Kmn(n,window.getComputedStyle(e).direction),s=o*i,a=t.target,c=e.contains(a),l=!1,u=s>0,d=0,A=0;do{if(!a)break;var h=Wtt(n,a),f=h[0],m=h[1],_=h[2],v=m-_-o*f;(f||v)&&jtt(n,a)&&(d+=v,A+=f);var E=a.parentNode;a=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!c&&a!==document.body||c&&(e.contains(a)||e===a));return(u&&Math.abs(d)<1||!u&&Math.abs(A)<1)&&(l=!0),l},cj=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Jtt=function(n){return[n.deltaX,n.deltaY]},Ztt=function(n){return n&&"current"in n?n.current:n},Wmn=function(n,e){return n[0]===e[0]&&n[1]===e[1]},Jmn=function(n){return`
13321
13321
  .block-interactivity-`.concat(n,` {pointer-events: none;}
13322
13322
  .allow-interactivity-`).concat(n,` {pointer-events: all;}
13323
- `)},Zmn=0,yN=[];function Xmn(n){var e=yt.useRef([]),t=yt.useRef([0,0]),i=yt.useRef(),r=yt.useState(Zmn++)[0],o=yt.useState(Ytt)[0],s=yt.useRef(n);yt.useEffect(function(){s.current=n},[n]),yt.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(r));var m=ymn([n.lockRef.current],(n.shards||[]).map(Ztt),!0).filter(Boolean);return m.forEach(function(_){return _.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(r))})}}},[n.inert,n.lockRef.current,n.shards]);var a=yt.useCallback(function(m,_){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var v=cj(m),E=t.current,b="deltaX"in m?m.deltaX:E[0]-v[0],Q="deltaY"in m?m.deltaY:E[1]-v[1],z,U=m.target,L=Math.abs(b)>Math.abs(Q)?"h":"v";if("touches"in m&&L==="h"&&U.type==="range")return!1;var P=Ktt(L,U);if(!P)return!0;if(P?z=L:(z=L==="v"?"h":"v",P=Ktt(L,U)),!P)return!1;if(!i.current&&"changedTouches"in m&&(b||Q)&&(i.current=z),!z)return!0;var Y=i.current||z;return jmn(Y,_,m,Y==="h"?b:Q)},[]),c=yt.useCallback(function(m){var _=m;if(!(!yN.length||yN[yN.length-1]!==o)){var v="deltaY"in _?Jtt(_):cj(_),E=e.current.filter(function(z){return z.name===_.type&&(z.target===_.target||_.target===z.shadowParent)&&Wmn(z.delta,v)})[0];if(E&&E.should){_.cancelable&&_.preventDefault();return}if(!E){var b=(s.current.shards||[]).map(Ztt).filter(Boolean).filter(function(z){return z.contains(_.target)}),Q=b.length>0?a(_,b[0]):!s.current.noIsolation;Q&&_.cancelable&&_.preventDefault()}}},[]),l=yt.useCallback(function(m,_,v,E){var b={name:m,delta:_,target:v,should:E,shadowParent:qmn(v)};e.current.push(b),setTimeout(function(){e.current=e.current.filter(function(Q){return Q!==b})},1)},[]),u=yt.useCallback(function(m){t.current=cj(m),i.current=void 0},[]),d=yt.useCallback(function(m){l(m.type,Jtt(m),m.target,a(m,n.lockRef.current))},[]),A=yt.useCallback(function(m){l(m.type,cj(m),m.target,a(m,n.lockRef.current))},[]);yt.useEffect(function(){return yN.push(o),n.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:A}),document.addEventListener("wheel",c,mN),document.addEventListener("touchmove",c,mN),document.addEventListener("touchstart",u,mN),function(){yN=yN.filter(function(m){return m!==o}),document.removeEventListener("wheel",c,mN),document.removeEventListener("touchmove",c,mN),document.removeEventListener("touchstart",u,mN)}},[]);var h=n.removeScrollBar,f=n.inert;return yt.createElement(yt.Fragment,null,f?yt.createElement(o,{styles:Jmn(r)}):null,h?yt.createElement(Gmn,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function qmn(n){for(var e=null;n!==null;)n instanceof ShadowRoot&&(e=n.host,n=n.host),n=n.parentNode;return e}const $mn=wmn(ztt,Xmn);var Xtt=yt.forwardRef(function(n,e){return yt.createElement(sj,Pw({},n,{ref:e,sideCar:$mn}))});Xtt.classNames=sj.classNames;var e_e=["Enter"," "],eyn=["ArrowDown","PageUp","Home"],qtt=["ArrowUp","PageDown","End"],tyn=[...eyn,...qtt],nyn={ltr:[...e_e,"ArrowRight"],rtl:[...e_e,"ArrowLeft"]},iyn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},B7="Menu",[w7,ryn,oyn]=Tbe(B7),[tQ,$tt]=VQ(B7,[oyn,wtt,_L]),S7=wtt(),ent=_L(),[tnt,DS]=tQ(B7),[syn,M7]=tQ(B7),nnt=n=>{const{__scopeMenu:e,open:t=!1,children:i,dir:r,onOpenChange:o,modal:s=!0}=n,a=S7(e),[c,l]=yt.useState(null),u=yt.useRef(!1),d=GB(o),A=Iq(r);return yt.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",f,{capture:!0,once:!0}),document.addEventListener("pointermove",f,{capture:!0,once:!0})},f=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",f,{capture:!0}),document.removeEventListener("pointermove",f,{capture:!0})}},[]),lt.jsx(Ptt,{...a,children:lt.jsx(tnt,{scope:e,open:t,onOpenChange:d,content:c,onContentChange:l,children:lt.jsx(syn,{scope:e,onClose:yt.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:A,modal:s,children:i})})})};nnt.displayName=B7;var ayn="MenuAnchor",t_e=yt.forwardRef((n,e)=>{const{__scopeMenu:t,...i}=n,r=S7(t);return lt.jsx(umn,{...r,...i,ref:e})});t_e.displayName=ayn;var n_e="MenuPortal",[cyn,int]=tQ(n_e,{forceMount:void 0}),rnt=n=>{const{__scopeMenu:e,forceMount:t,children:i,container:r}=n,o=DS(n_e,e);return lt.jsx(cyn,{scope:e,forceMount:t,children:lt.jsx(jQ,{present:t||o.open,children:lt.jsx(Ftt,{asChild:!0,container:r,children:i})})})};rnt.displayName=n_e;var D2="MenuContent",[lyn,i_e]=tQ(D2),ont=yt.forwardRef((n,e)=>{const t=int(D2,n.__scopeMenu),{forceMount:i=t.forceMount,...r}=n,o=DS(D2,n.__scopeMenu),s=M7(D2,n.__scopeMenu);return lt.jsx(w7.Provider,{scope:n.__scopeMenu,children:lt.jsx(jQ,{present:i||o.open,children:lt.jsx(w7.Slot,{scope:n.__scopeMenu,children:s.modal?lt.jsx(uyn,{...r,ref:e}):lt.jsx(dyn,{...r,ref:e})})})})}),uyn=yt.forwardRef((n,e)=>{const t=DS(D2,n.__scopeMenu),i=yt.useRef(null),r=qE(e,i);return yt.useEffect(()=>{const o=i.current;if(o)return mmn(o)},[]),lt.jsx(r_e,{...n,ref:r,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:Eg(n.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),dyn=yt.forwardRef((n,e)=>{const t=DS(D2,n.__scopeMenu);return lt.jsx(r_e,{...n,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),Ayn=L8("MenuContent.ScrollLock"),r_e=yt.forwardRef((n,e)=>{const{__scopeMenu:t,loop:i=!1,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:A,onDismiss:h,disableOutsideScroll:f,...m}=n,_=DS(D2,t),v=M7(D2,t),E=S7(t),b=ent(t),Q=ryn(t),[z,U]=yt.useState(null),L=yt.useRef(null),P=qE(e,L,_.onContentChange),Y=yt.useRef(0),G=yt.useRef(""),$=yt.useRef(0),K=yt.useRef(null),ie=yt.useRef("right"),he=yt.useRef(0),ge=f?Xtt:yt.Fragment,le=f?{as:Ayn,allowPinchZoom:!0}:void 0,ye=Be=>{var wt,_t;const Re=G.current+Be,De=Q().filter(ke=>!ke.disabled),Qe=document.activeElement,Je=(wt=De.find(ke=>ke.ref.current===Qe))==null?void 0:wt.textValue,$e=De.map(ke=>ke.textValue),rt=Eyn($e,Re,Je),pt=(_t=De.find(ke=>ke.textValue===rt))==null?void 0:_t.ref.current;(function ke(Xe){G.current=Xe,window.clearTimeout(Y.current),Xe!==""&&(Y.current=window.setTimeout(()=>ke(""),1e3))})(Re),pt&&setTimeout(()=>pt.focus())};yt.useEffect(()=>()=>window.clearTimeout(Y.current),[]),Fpn();const pe=yt.useCallback(Be=>{var De,Qe;return ie.current===((De=K.current)==null?void 0:De.side)&&Byn(Be,(Qe=K.current)==null?void 0:Qe.area)},[]);return lt.jsx(lyn,{scope:t,searchRef:G,onItemEnter:yt.useCallback(Be=>{pe(Be)&&Be.preventDefault()},[pe]),onItemLeave:yt.useCallback(Be=>{var Re;pe(Be)||((Re=L.current)==null||Re.focus(),U(null))},[pe]),onTriggerLeave:yt.useCallback(Be=>{pe(Be)&&Be.preventDefault()},[pe]),pointerGraceTimerRef:$,onPointerGraceIntentChange:yt.useCallback(Be=>{K.current=Be},[]),children:lt.jsx(ge,{...le,children:lt.jsx($et,{asChild:!0,trapped:r,onMountAutoFocus:Eg(o,Be=>{var Re;Be.preventDefault(),(Re=L.current)==null||Re.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:lt.jsx(Wet,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:A,onDismiss:h,children:lt.jsx(Obe,{asChild:!0,...b,dir:v.dir,orientation:"vertical",loop:i,currentTabStopId:z,onCurrentTabStopIdChange:U,onEntryFocus:Eg(c,Be=>{v.isUsingKeyboardRef.current||Be.preventDefault()}),preventScrollOnEntryFocus:!0,children:lt.jsx(dmn,{role:"menu","aria-orientation":"vertical","data-state":xnt(_.open),"data-radix-menu-content":"",dir:v.dir,...E,...m,ref:P,style:{outline:"none",...m.style},onKeyDown:Eg(m.onKeyDown,Be=>{const De=Be.target.closest("[data-radix-menu-content]")===Be.currentTarget,Qe=Be.ctrlKey||Be.altKey||Be.metaKey,Je=Be.key.length===1;De&&(Be.key==="Tab"&&Be.preventDefault(),!Qe&&Je&&ye(Be.key));const $e=L.current;if(Be.target!==$e||!tyn.includes(Be.key))return;Be.preventDefault();const pt=Q().filter(wt=>!wt.disabled).map(wt=>wt.ref.current);qtt.includes(Be.key)&&pt.reverse(),Cyn(pt)}),onBlur:Eg(n.onBlur,Be=>{Be.currentTarget.contains(Be.target)||(window.clearTimeout(Y.current),G.current="")}),onPointerMove:Eg(n.onPointerMove,R7(Be=>{const Re=Be.target,De=he.current!==Be.clientX;if(Be.currentTarget.contains(Re)&&De){const Qe=Be.clientX>he.current?"right":"left";ie.current=Qe,he.current=Be.clientX}}))})})})})})})});ont.displayName=D2;var hyn="MenuGroup",o_e=yt.forwardRef((n,e)=>{const{__scopeMenu:t,...i}=n;return lt.jsx(LC.div,{role:"group",...i,ref:e})});o_e.displayName=hyn;var fyn="MenuLabel",snt=yt.forwardRef((n,e)=>{const{__scopeMenu:t,...i}=n;return lt.jsx(LC.div,{...i,ref:e})});snt.displayName=fyn;var lj="MenuItem",ant="menu.itemSelect",uj=yt.forwardRef((n,e)=>{const{disabled:t=!1,onSelect:i,...r}=n,o=yt.useRef(null),s=M7(lj,n.__scopeMenu),a=i_e(lj,n.__scopeMenu),c=qE(e,o),l=yt.useRef(!1),u=()=>{const d=o.current;if(!t&&d){const A=new CustomEvent(ant,{bubbles:!0,cancelable:!0});d.addEventListener(ant,h=>i==null?void 0:i(h),{once:!0}),kbe(d,A),A.defaultPrevented?l.current=!1:s.onClose()}};return lt.jsx(cnt,{...r,ref:c,disabled:t,onClick:Eg(n.onClick,u),onPointerDown:d=>{var A;(A=n.onPointerDown)==null||A.call(n,d),l.current=!0},onPointerUp:Eg(n.onPointerUp,d=>{var A;l.current||(A=d.currentTarget)==null||A.click()}),onKeyDown:Eg(n.onKeyDown,d=>{const A=a.searchRef.current!=="";t||A&&d.key===" "||e_e.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});uj.displayName=lj;var cnt=yt.forwardRef((n,e)=>{const{__scopeMenu:t,disabled:i=!1,textValue:r,...o}=n,s=i_e(lj,t),a=ent(t),c=yt.useRef(null),l=qE(e,c),[u,d]=yt.useState(!1),[A,h]=yt.useState("");return yt.useEffect(()=>{const f=c.current;f&&h((f.textContent??"").trim())},[o.children]),lt.jsx(w7.ItemSlot,{scope:t,disabled:i,textValue:r??A,children:lt.jsx(zbe,{asChild:!0,...a,focusable:!i,children:lt.jsx(LC.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...o,ref:l,onPointerMove:Eg(n.onPointerMove,R7(f=>{i?s.onItemLeave(f):(s.onItemEnter(f),f.defaultPrevented||f.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Eg(n.onPointerLeave,R7(f=>s.onItemLeave(f))),onFocus:Eg(n.onFocus,()=>d(!0)),onBlur:Eg(n.onBlur,()=>d(!1))})})})}),pyn="MenuCheckboxItem",lnt=yt.forwardRef((n,e)=>{const{checked:t=!1,onCheckedChange:i,...r}=n;return lt.jsx(fnt,{scope:n.__scopeMenu,checked:t,children:lt.jsx(uj,{role:"menuitemcheckbox","aria-checked":dj(t)?"mixed":t,...r,ref:e,"data-state":c_e(t),onSelect:Eg(r.onSelect,()=>i==null?void 0:i(dj(t)?!0:!t),{checkForDefaultPrevented:!1})})})});lnt.displayName=pyn;var unt="MenuRadioGroup",[gyn,myn]=tQ(unt,{value:void 0,onValueChange:()=>{}}),dnt=yt.forwardRef((n,e)=>{const{value:t,onValueChange:i,...r}=n,o=GB(i);return lt.jsx(gyn,{scope:n.__scopeMenu,value:t,onValueChange:o,children:lt.jsx(o_e,{...r,ref:e})})});dnt.displayName=unt;var Ant="MenuRadioItem",hnt=yt.forwardRef((n,e)=>{const{value:t,...i}=n,r=myn(Ant,n.__scopeMenu),o=t===r.value;return lt.jsx(fnt,{scope:n.__scopeMenu,checked:o,children:lt.jsx(uj,{role:"menuitemradio","aria-checked":o,...i,ref:e,"data-state":c_e(o),onSelect:Eg(i.onSelect,()=>{var s;return(s=r.onValueChange)==null?void 0:s.call(r,t)},{checkForDefaultPrevented:!1})})})});hnt.displayName=Ant;var s_e="MenuItemIndicator",[fnt,yyn]=tQ(s_e,{checked:!1}),pnt=yt.forwardRef((n,e)=>{const{__scopeMenu:t,forceMount:i,...r}=n,o=yyn(s_e,t);return lt.jsx(jQ,{present:i||dj(o.checked)||o.checked===!0,children:lt.jsx(LC.span,{...r,ref:e,"data-state":c_e(o.checked)})})});pnt.displayName=s_e;var _yn="MenuSeparator",gnt=yt.forwardRef((n,e)=>{const{__scopeMenu:t,...i}=n;return lt.jsx(LC.div,{role:"separator","aria-orientation":"horizontal",...i,ref:e})});gnt.displayName=_yn;var vyn="MenuArrow",mnt=yt.forwardRef((n,e)=>{const{__scopeMenu:t,...i}=n,r=S7(t);return lt.jsx(Amn,{...r,...i,ref:e})});mnt.displayName=vyn;var a_e="MenuSub",[Iyn,ynt]=tQ(a_e),_nt=n=>{const{__scopeMenu:e,children:t,open:i=!1,onOpenChange:r}=n,o=DS(a_e,e),s=S7(e),[a,c]=yt.useState(null),[l,u]=yt.useState(null),d=GB(r);return yt.useEffect(()=>(o.open===!1&&d(!1),()=>d(!1)),[o.open,d]),lt.jsx(Ptt,{...s,children:lt.jsx(tnt,{scope:e,open:i,onOpenChange:d,content:l,onContentChange:u,children:lt.jsx(Iyn,{scope:e,contentId:KQ(),triggerId:KQ(),trigger:a,onTriggerChange:c,children:t})})})};_nt.displayName=a_e;var Q7="MenuSubTrigger",vnt=yt.forwardRef((n,e)=>{const t=DS(Q7,n.__scopeMenu),i=M7(Q7,n.__scopeMenu),r=ynt(Q7,n.__scopeMenu),o=i_e(Q7,n.__scopeMenu),s=yt.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=o,l={__scopeMenu:n.__scopeMenu},u=yt.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return yt.useEffect(()=>u,[u]),yt.useEffect(()=>{const d=a.current;return()=>{window.clearTimeout(d),c(null)}},[a,c]),lt.jsx(t_e,{asChild:!0,...l,children:lt.jsx(cnt,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":r.contentId,"data-state":xnt(t.open),...n,ref:mL(e,r.onTriggerChange),onClick:d=>{var A;(A=n.onClick)==null||A.call(n,d),!(n.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:Eg(n.onPointerMove,R7(d=>{o.onItemEnter(d),!d.defaultPrevented&&!n.disabled&&!t.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{t.onOpenChange(!0),u()},100))})),onPointerLeave:Eg(n.onPointerLeave,R7(d=>{var h,f;u();const A=(h=t.content)==null?void 0:h.getBoundingClientRect();if(A){const m=(f=t.content)==null?void 0:f.dataset.side,_=m==="right",v=_?-5:5,E=A[_?"left":"right"],b=A[_?"right":"left"];o.onPointerGraceIntentChange({area:[{x:d.clientX+v,y:d.clientY},{x:E,y:A.top},{x:b,y:A.top},{x:b,y:A.bottom},{x:E,y:A.bottom}],side:m}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(d),d.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:Eg(n.onKeyDown,d=>{var h;const A=o.searchRef.current!=="";n.disabled||A&&d.key===" "||nyn[i.dir].includes(d.key)&&(t.onOpenChange(!0),(h=t.content)==null||h.focus(),d.preventDefault())})})})});vnt.displayName=Q7;var Int="MenuSubContent",Cnt=yt.forwardRef((n,e)=>{const t=int(D2,n.__scopeMenu),{forceMount:i=t.forceMount,...r}=n,o=DS(D2,n.__scopeMenu),s=M7(D2,n.__scopeMenu),a=ynt(Int,n.__scopeMenu),c=yt.useRef(null),l=qE(e,c);return lt.jsx(w7.Provider,{scope:n.__scopeMenu,children:lt.jsx(jQ,{present:i||o.open,children:lt.jsx(w7.Slot,{scope:n.__scopeMenu,children:lt.jsx(r_e,{id:a.contentId,"aria-labelledby":a.triggerId,...r,ref:l,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;s.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:Eg(n.onFocusOutside,u=>{u.target!==a.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:Eg(n.onEscapeKeyDown,u=>{s.onClose(),u.preventDefault()}),onKeyDown:Eg(n.onKeyDown,u=>{var h;const d=u.currentTarget.contains(u.target),A=iyn[s.dir].includes(u.key);d&&A&&(o.onOpenChange(!1),(h=a.trigger)==null||h.focus(),u.preventDefault())})})})})})});Cnt.displayName=Int;function xnt(n){return n?"open":"closed"}function dj(n){return n==="indeterminate"}function c_e(n){return dj(n)?"indeterminate":n?"checked":"unchecked"}function Cyn(n){const e=document.activeElement;for(const t of n)if(t===e||(t.focus(),document.activeElement!==e))return}function xyn(n,e){return n.map((t,i)=>n[(e+i)%n.length])}function Eyn(n,e,t){const r=e.length>1&&Array.from(e).every(l=>l===e[0])?e[0]:e,o=t?n.indexOf(t):-1;let s=xyn(n,Math.max(o,0));r.length===1&&(s=s.filter(l=>l!==t));const c=s.find(l=>l.toLowerCase().startsWith(r.toLowerCase()));return c!==t?c:void 0}function byn(n,e){const{x:t,y:i}=n;let r=!1;for(let o=0,s=e.length-1;o<e.length;s=o++){const a=e[o],c=e[s],l=a.x,u=a.y,d=c.x,A=c.y;u>i!=A>i&&t<(d-l)*(i-u)/(A-u)+l&&(r=!r)}return r}function Byn(n,e){if(!e)return!1;const t={x:n.clientX,y:n.clientY};return byn(t,e)}function R7(n){return e=>e.pointerType==="mouse"?n(e):void 0}var wyn=nnt,Syn=t_e,Myn=rnt,Qyn=ont,Ryn=o_e,Dyn=snt,Nyn=uj,Tyn=lnt,kyn=dnt,Pyn=hnt,Fyn=pnt,Lyn=gnt,Uyn=mnt,Gyn=_nt,Oyn=vnt,zyn=Cnt,Aj="DropdownMenu",[Yyn,eZn]=VQ(Aj,[$tt]),rE=$tt(),[Hyn,Ent]=Yyn(Aj),bnt=n=>{const{__scopeDropdownMenu:e,children:t,dir:i,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=n,c=rE(e),l=yt.useRef(null),[u,d]=yL({prop:r,defaultProp:o??!1,onChange:s,caller:Aj});return lt.jsx(Hyn,{scope:e,triggerId:KQ(),triggerRef:l,contentId:KQ(),open:u,onOpenChange:d,onOpenToggle:yt.useCallback(()=>d(A=>!A),[d]),modal:a,children:lt.jsx(wyn,{...c,open:u,onOpenChange:d,dir:i,modal:a,children:t})})};bnt.displayName=Aj;var Bnt="DropdownMenuTrigger",wnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,disabled:i=!1,...r}=n,o=Ent(Bnt,t),s=rE(t);return lt.jsx(Syn,{asChild:!0,...s,children:lt.jsx(LC.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...r,ref:mL(e,o.triggerRef),onPointerDown:Eg(n.onPointerDown,a=>{!i&&a.button===0&&a.ctrlKey===!1&&(o.onOpenToggle(),o.open||a.preventDefault())}),onKeyDown:Eg(n.onKeyDown,a=>{i||(["Enter"," "].includes(a.key)&&o.onOpenToggle(),a.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});wnt.displayName=Bnt;var Vyn="DropdownMenuPortal",Snt=n=>{const{__scopeDropdownMenu:e,...t}=n,i=rE(e);return lt.jsx(Myn,{...i,...t})};Snt.displayName=Vyn;var Mnt="DropdownMenuContent",Qnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=Ent(Mnt,t),o=rE(t),s=yt.useRef(!1);return lt.jsx(Qyn,{id:r.contentId,"aria-labelledby":r.triggerId,...o,...i,ref:e,onCloseAutoFocus:Eg(n.onCloseAutoFocus,a=>{var c;s.current||(c=r.triggerRef.current)==null||c.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:Eg(n.onInteractOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;(!r.modal||u)&&(s.current=!0)}),style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Qnt.displayName=Mnt;var Kyn="DropdownMenuGroup",jyn=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Ryn,{...r,...i,ref:e})});jyn.displayName=Kyn;var Wyn="DropdownMenuLabel",Rnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Dyn,{...r,...i,ref:e})});Rnt.displayName=Wyn;var Jyn="DropdownMenuItem",Dnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Nyn,{...r,...i,ref:e})});Dnt.displayName=Jyn;var Zyn="DropdownMenuCheckboxItem",Nnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Tyn,{...r,...i,ref:e})});Nnt.displayName=Zyn;var Xyn="DropdownMenuRadioGroup",qyn=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(kyn,{...r,...i,ref:e})});qyn.displayName=Xyn;var $yn="DropdownMenuRadioItem",Tnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Pyn,{...r,...i,ref:e})});Tnt.displayName=$yn;var e_n="DropdownMenuItemIndicator",knt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Fyn,{...r,...i,ref:e})});knt.displayName=e_n;var t_n="DropdownMenuSeparator",Pnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Lyn,{...r,...i,ref:e})});Pnt.displayName=t_n;var n_n="DropdownMenuArrow",i_n=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Uyn,{...r,...i,ref:e})});i_n.displayName=n_n;var r_n=n=>{const{__scopeDropdownMenu:e,children:t,open:i,onOpenChange:r,defaultOpen:o}=n,s=rE(e),[a,c]=yL({prop:i,defaultProp:o??!1,onChange:r,caller:"DropdownMenuSub"});return lt.jsx(Gyn,{...s,open:a,onOpenChange:c,children:t})},o_n="DropdownMenuSubTrigger",Fnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Oyn,{...r,...i,ref:e})});Fnt.displayName=o_n;var s_n="DropdownMenuSubContent",Lnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(zyn,{...r,...i,ref:e,style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Lnt.displayName=s_n;var a_n=bnt,c_n=wnt,Unt=Snt,Gnt=Qnt,Ont=Rnt,znt=Dnt,Ynt=Nnt,Hnt=Tnt,Vnt=knt,Knt=Pnt,l_n=r_n,jnt=Fnt,Wnt=Lnt;const Jnt=a_n,Znt=c_n,u_n=Unt,d_n=l_n,Xnt=yt.forwardRef(({className:n,inset:e,children:t,...i},r)=>lt.jsxs(jnt,{ref:r,className:c1("rf-flex rf-cursor-default rf-gap-2 rf-select-none rf-items-center rf-rounded-sm rf-px-2 rf-py-1.5 rf-text-sm rf-outline-none focus:rf-bg-zinc-100 data-[state=open]:rf-bg-zinc-100 [&_svg]:rf-pointer-events-none [&_svg]:rf-size-4 [&_svg]:rf-shrink-0 dark:focus:rf-bg-zinc-800 dark:data-[state=open]:rf-bg-zinc-800",e&&"rf-pl-8",n),...i,children:[t,lt.jsx(Qye,{className:"rf-ml-auto"})]}));Xnt.displayName=jnt.displayName;const qnt=yt.forwardRef(({className:n,...e},t)=>lt.jsx(Wnt,{ref:t,className:c1("rf-z-50 rf-min-w-[8rem] rf-overflow-hidden rf-rounded-md rf-border rf-border-zinc-200 rf-bg-white rf-p-1 rf-text-zinc-950 rf-shadow-lg data-[state=open]:rf-animate-in data-[state=closed]:rf-animate-out data-[state=closed]:rf-fade-out-0 data-[state=open]:rf-fade-in-0 data-[state=closed]:rf-zoom-out-95 data-[state=open]:rf-zoom-in-95 data-[side=bottom]:rf-slide-in-from-top-2 data-[side=left]:rf-slide-in-from-right-2 data-[side=right]:rf-slide-in-from-left-2 data-[side=top]:rf-slide-in-from-bottom-2 dark:rf-border-zinc-800 dark:rf-bg-zinc-950 dark:rf-text-zinc-50",n),...e}));qnt.displayName=Wnt.displayName;const l_e=yt.forwardRef(({className:n,sideOffset:e=4,...t},i)=>lt.jsx(Unt,{children:lt.jsx(Gnt,{ref:i,sideOffset:e,className:c1("rf-z-50 rf-min-w-[8rem] rf-overflow-hidden rf-rounded-md rf-border rf-border-zinc-200 rf-bg-white rf-p-1 rf-text-zinc-950 rf-shadow-md dark:rf-border-zinc-800 dark:rf-bg-zinc-950 dark:rf-text-zinc-50","data-[state=open]:rf-animate-in data-[state=closed]:rf-animate-out data-[state=closed]:rf-fade-out-0 data-[state=open]:rf-fade-in-0 data-[state=closed]:rf-zoom-out-95 data-[state=open]:rf-zoom-in-95 data-[side=bottom]:rf-slide-in-from-top-2 data-[side=left]:rf-slide-in-from-right-2 data-[side=right]:rf-slide-in-from-left-2 data-[side=top]:rf-slide-in-from-bottom-2",n),...t})}));l_e.displayName=Gnt.displayName;const nQ=yt.forwardRef(({className:n,inset:e,...t},i)=>lt.jsx(znt,{ref:i,className:c1("rf-relative rf-flex rf-cursor-default rf-select-none rf-items-center rf-gap-2 rf-rounded-sm rf-px-2 rf-py-1.5 rf-text-sm rf-outline-none rf-transition-colors focus:rf-bg-zinc-100 focus:rf-text-zinc-900 data-[disabled]:rf-pointer-events-none data-[disabled]:rf-opacity-50 [&>svg]:rf-size-4 [&>svg]:rf-shrink-0 dark:focus:rf-bg-zinc-800 dark:focus:rf-text-zinc-50",e&&"rf-pl-8",n),...t}));nQ.displayName=znt.displayName;const A_n=yt.forwardRef(({className:n,children:e,checked:t,...i},r)=>lt.jsxs(Ynt,{ref:r,className:c1("rf-relative rf-flex rf-cursor-default rf-select-none rf-items-center rf-rounded-sm rf-py-1.5 rf-pl-8 rf-pr-2 rf-text-sm rf-outline-none rf-transition-colors focus:rf-bg-zinc-100 focus:rf-text-zinc-900 data-[disabled]:rf-pointer-events-none data-[disabled]:rf-opacity-50 dark:focus:rf-bg-zinc-800 dark:focus:rf-text-zinc-50",n),checked:t,...i,children:[lt.jsx("span",{className:"rf-absolute rf-left-2 rf-flex rf-h-3.5 rf-w-3.5 rf-items-center rf-justify-center",children:lt.jsx(Vnt,{children:lt.jsx(Get,{className:"rf-h-4 rf-w-4"})})}),e]}));A_n.displayName=Ynt.displayName;const h_n=yt.forwardRef(({className:n,children:e,...t},i)=>lt.jsxs(Hnt,{ref:i,className:c1("rf-relative rf-flex rf-cursor-default rf-select-none rf-items-center rf-rounded-sm rf-py-1.5 rf-pl-8 rf-pr-2 rf-text-sm rf-outline-none rf-transition-colors focus:rf-bg-zinc-100 focus:rf-text-zinc-900 data-[disabled]:rf-pointer-events-none data-[disabled]:rf-opacity-50 dark:focus:rf-bg-zinc-800 dark:focus:rf-text-zinc-50",n),...t,children:[lt.jsx("span",{className:"rf-absolute rf-left-2 rf-flex rf-h-3.5 rf-w-3.5 rf-items-center rf-justify-center",children:lt.jsx(Vnt,{children:lt.jsx(zet,{className:"rf-h-2 rf-w-2 rf-fill-current"})})}),e]}));h_n.displayName=Hnt.displayName;const f_n=yt.forwardRef(({className:n,inset:e,...t},i)=>lt.jsx(Ont,{ref:i,className:c1("rf-px-2 rf-py-1.5 rf-text-sm rf-font-semibold",e&&"rf-pl-8",n),...t}));f_n.displayName=Ont.displayName;const $nt=yt.forwardRef(({className:n,...e},t)=>lt.jsx(Knt,{ref:t,className:c1("rf--mx-1 rf-my-1 rf-h-px rf-bg-zinc-100 dark:rf-bg-zinc-800",n),...e}));$nt.displayName=Knt.displayName;const eit=({autoroutingLog:n,onReportAutoroutingLog:e})=>lt.jsx(lt.Fragment,{children:Object.keys(n??{}).length>0&&lt.jsxs(Jnt,{children:[lt.jsx(Znt,{asChild:!0,children:lt.jsxs(j5,{variant:"outline",children:[lt.jsx(ppn,{className:"rf-w-4 rf-h-4 rf-mr-2"}),"Open Autorouting Log"]})}),lt.jsx(l_e,{className:"rf-w-96",children:Object.entries(n??{}).map(([t,{simpleRouteJson:i}])=>lt.jsxs(nQ,{className:"rf-flex rf-justify-between rf-items-center",children:[lt.jsx("span",{className:"rf-truncate rf-text-xs rf-mr-2",children:t}),lt.jsxs("div",{className:"rf-flex rf-gap-2",children:[lt.jsxs(j5,{variant:"outline",size:"sm",onClick:r=>{r.stopPropagation();const o=new Blob([JSON.stringify(i,null,2)],{type:"application/json"}),s=URL.createObjectURL(o),a=document.createElement("a");a.href=s,a.download=`${t}-autorouting.json`,a.click(),URL.revokeObjectURL(s)},children:[lt.jsx(mpn,{className:"rf-w-3 rf-h-3"}),"Download"]}),e&&lt.jsxs(j5,{variant:"outline",size:"sm",onClick:r=>{r.stopPropagation(),e&&e(t,{simpleRouteJson:i})},children:[lt.jsx(xpn,{className:"rf-w-3 rf-h-3"}),"Report Bug"]})]})]},t))})]})}),p_n=({code:n,fsMap:e,autoroutingLog:t,circuitJsonErrors:i,circuitJsonWarnings:r,onReportAutoroutingLog:o,errorMessage:s,errorStack:a,circuitJson:c,evalVersion:l})=>{const u=yt.useMemo(()=>{const Y=[];if(s&&Y.push({type:"Execution Error",message:s,stack:a||void 0,source:"execution"}),i&&i.length>0)for(const G of i)Y.push({type:G.type||"Circuit JSON Error",message:G.message||"No error message available",stack:G.stack||"",source:"circuitJson"});return Y},[s,a,i]),d=yt.useMemo(()=>{if(!c||!Array.isArray(c))return;const Y=c.find(G=>G.type==="source_project_metadata");return Y==null?void 0:Y.software_used_string},[c]),A=yt.useMemo(()=>{const Y=[];if(r&&r.length>0)for(const G of r)Y.push({type:G.type||"Circuit JSON Warning",message:G.message||"No warning message available",stack:G.stack||"",source:"circuitJson"});return Y},[r]),h=()=>e?pvt(e instanceof Map?Object.fromEntries(e.entries()):e):Spn(n??""),f=(Y,G)=>{const $=`https://github.com/tscircuit/tscircuit.com/issues/new?title=${encodeURIComponent(Y)}&body=${encodeURIComponent(G)}`;window.open($,"_blank")},[m,_]=yt.useState(0),[v,E]=yt.useState(0);if(u.length===0&&A.length===0)return lt.jsxs("div",{className:"px-2",children:[lt.jsx("div",{className:"rf-mt-4 rf-bg-green-50 rf-rounded-md rf-border rf-border-green-200",children:lt.jsxs("div",{className:"rf-p-4",children:[lt.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-green-800 rf-mb-3",children:"No errors or warnings!"}),lt.jsx("p",{className:"rf-text-sm rf-text-green-700",children:"Your code is running without any errors or warnings."})]})}),lt.jsxs("div",{className:"rf-flex rf-gap-2 rf-mt-4 rf-justify-end",children:[lt.jsx(eit,{autoroutingLog:t,onReportAutoroutingLog:o}),lt.jsxs(j5,{variant:"outline",className:"rf-p-1",onClick:()=>{const Y=h();f("Issue Report",`[Package code to reproduce](${Y})`)},children:[lt.jsx(Fet,{className:"rf-w-4 rf-h-4"}),"Report Issue"]})]})]});const b=()=>{_(Y=>Math.max(Y-1,0))},Q=()=>{_(Y=>Math.min(Y+1,u.length-1))},z=()=>{E(Y=>Math.max(Y-1,0))},U=()=>{E(Y=>Math.min(Y+1,A.length-1))},L=u[m],P=A[v];return lt.jsxs(lt.Fragment,{children:[lt.jsxs("div",{className:"rf-w-[95%] rf-mx-auto",children:[u.length>1&&lt.jsxs("div",{className:"rf-flex rf-items-center rf-gap-2 rf-mb-2",children:[lt.jsx("button",{type:"button",className:"rf-p-1 rf-rounded-sm rf-transition-colors",onClick:b,disabled:m===0,children:lt.jsx(Oet,{className:"rf-h-4 rf-w-4 rf-text-red-500"})}),lt.jsx("button",{type:"button",className:"rf-p-1 rf-rounded-sm rf-transition-colors",onClick:Q,disabled:m===u.length-1,children:lt.jsx(Qye,{className:"rf-h-4 rf-w-4 rf-text-red-500"})}),lt.jsxs("span",{className:"rf-text-sm rf-text-red-600",children:[m+1," of ",u.length," errors"]})]}),L&&lt.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200 rf-max-h-[500px] rf-overflow-y-auto rf-px-2",children:lt.jsxs("div",{className:"rf-p-4",children:[lt.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-1",children:L.type}),lt.jsx("p",{className:"rf-text-xs rf-font-mono rf-whitespace-pre-wrap rf-text-red-600",children:L.message}),(L.stack||l||d)&&lt.jsxs("details",{style:{whiteSpace:"pre-wrap"},className:"rf-text-xs rf-font-mono rf-text-red-600 rf-mt-2",children:[l&&`@tscircuit/eval@${l}
13323
+ `)},Zmn=0,yN=[];function Xmn(n){var e=yt.useRef([]),t=yt.useRef([0,0]),i=yt.useRef(),r=yt.useState(Zmn++)[0],o=yt.useState(Ytt)[0],s=yt.useRef(n);yt.useEffect(function(){s.current=n},[n]),yt.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(r));var m=ymn([n.lockRef.current],(n.shards||[]).map(Ztt),!0).filter(Boolean);return m.forEach(function(_){return _.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(r))})}}},[n.inert,n.lockRef.current,n.shards]);var a=yt.useCallback(function(m,_){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var v=cj(m),E=t.current,b="deltaX"in m?m.deltaX:E[0]-v[0],Q="deltaY"in m?m.deltaY:E[1]-v[1],z,U=m.target,L=Math.abs(b)>Math.abs(Q)?"h":"v";if("touches"in m&&L==="h"&&U.type==="range")return!1;var P=Ktt(L,U);if(!P)return!0;if(P?z=L:(z=L==="v"?"h":"v",P=Ktt(L,U)),!P)return!1;if(!i.current&&"changedTouches"in m&&(b||Q)&&(i.current=z),!z)return!0;var Y=i.current||z;return jmn(Y,_,m,Y==="h"?b:Q)},[]),c=yt.useCallback(function(m){var _=m;if(!(!yN.length||yN[yN.length-1]!==o)){var v="deltaY"in _?Jtt(_):cj(_),E=e.current.filter(function(z){return z.name===_.type&&(z.target===_.target||_.target===z.shadowParent)&&Wmn(z.delta,v)})[0];if(E&&E.should){_.cancelable&&_.preventDefault();return}if(!E){var b=(s.current.shards||[]).map(Ztt).filter(Boolean).filter(function(z){return z.contains(_.target)}),Q=b.length>0?a(_,b[0]):!s.current.noIsolation;Q&&_.cancelable&&_.preventDefault()}}},[]),l=yt.useCallback(function(m,_,v,E){var b={name:m,delta:_,target:v,should:E,shadowParent:qmn(v)};e.current.push(b),setTimeout(function(){e.current=e.current.filter(function(Q){return Q!==b})},1)},[]),u=yt.useCallback(function(m){t.current=cj(m),i.current=void 0},[]),d=yt.useCallback(function(m){l(m.type,Jtt(m),m.target,a(m,n.lockRef.current))},[]),A=yt.useCallback(function(m){l(m.type,cj(m),m.target,a(m,n.lockRef.current))},[]);yt.useEffect(function(){return yN.push(o),n.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:A}),document.addEventListener("wheel",c,mN),document.addEventListener("touchmove",c,mN),document.addEventListener("touchstart",u,mN),function(){yN=yN.filter(function(m){return m!==o}),document.removeEventListener("wheel",c,mN),document.removeEventListener("touchmove",c,mN),document.removeEventListener("touchstart",u,mN)}},[]);var h=n.removeScrollBar,f=n.inert;return yt.createElement(yt.Fragment,null,f?yt.createElement(o,{styles:Jmn(r)}):null,h?yt.createElement(Gmn,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function qmn(n){for(var e=null;n!==null;)n instanceof ShadowRoot&&(e=n.host,n=n.host),n=n.parentNode;return e}const $mn=wmn(ztt,Xmn);var Xtt=yt.forwardRef(function(n,e){return yt.createElement(sj,Pw({},n,{ref:e,sideCar:$mn}))});Xtt.classNames=sj.classNames;var e_e=["Enter"," "],eyn=["ArrowDown","PageUp","Home"],qtt=["ArrowUp","PageDown","End"],tyn=[...eyn,...qtt],nyn={ltr:[...e_e,"ArrowRight"],rtl:[...e_e,"ArrowLeft"]},iyn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},B7="Menu",[w7,ryn,oyn]=Tbe(B7),[tQ,$tt]=VQ(B7,[oyn,wtt,_L]),S7=wtt(),ent=_L(),[tnt,DS]=tQ(B7),[syn,M7]=tQ(B7),nnt=n=>{const{__scopeMenu:e,open:t=!1,children:i,dir:r,onOpenChange:o,modal:s=!0}=n,a=S7(e),[c,l]=yt.useState(null),u=yt.useRef(!1),d=GB(o),A=Iq(r);return yt.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",f,{capture:!0,once:!0}),document.addEventListener("pointermove",f,{capture:!0,once:!0})},f=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",f,{capture:!0}),document.removeEventListener("pointermove",f,{capture:!0})}},[]),lt.jsx(Ptt,{...a,children:lt.jsx(tnt,{scope:e,open:t,onOpenChange:d,content:c,onContentChange:l,children:lt.jsx(syn,{scope:e,onClose:yt.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:A,modal:s,children:i})})})};nnt.displayName=B7;var ayn="MenuAnchor",t_e=yt.forwardRef((n,e)=>{const{__scopeMenu:t,...i}=n,r=S7(t);return lt.jsx(umn,{...r,...i,ref:e})});t_e.displayName=ayn;var n_e="MenuPortal",[cyn,int]=tQ(n_e,{forceMount:void 0}),rnt=n=>{const{__scopeMenu:e,forceMount:t,children:i,container:r}=n,o=DS(n_e,e);return lt.jsx(cyn,{scope:e,forceMount:t,children:lt.jsx(jQ,{present:t||o.open,children:lt.jsx(Ftt,{asChild:!0,container:r,children:i})})})};rnt.displayName=n_e;var D2="MenuContent",[lyn,i_e]=tQ(D2),ont=yt.forwardRef((n,e)=>{const t=int(D2,n.__scopeMenu),{forceMount:i=t.forceMount,...r}=n,o=DS(D2,n.__scopeMenu),s=M7(D2,n.__scopeMenu);return lt.jsx(w7.Provider,{scope:n.__scopeMenu,children:lt.jsx(jQ,{present:i||o.open,children:lt.jsx(w7.Slot,{scope:n.__scopeMenu,children:s.modal?lt.jsx(uyn,{...r,ref:e}):lt.jsx(dyn,{...r,ref:e})})})})}),uyn=yt.forwardRef((n,e)=>{const t=DS(D2,n.__scopeMenu),i=yt.useRef(null),r=qE(e,i);return yt.useEffect(()=>{const o=i.current;if(o)return mmn(o)},[]),lt.jsx(r_e,{...n,ref:r,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:Eg(n.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),dyn=yt.forwardRef((n,e)=>{const t=DS(D2,n.__scopeMenu);return lt.jsx(r_e,{...n,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),Ayn=L8("MenuContent.ScrollLock"),r_e=yt.forwardRef((n,e)=>{const{__scopeMenu:t,loop:i=!1,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:A,onDismiss:h,disableOutsideScroll:f,...m}=n,_=DS(D2,t),v=M7(D2,t),E=S7(t),b=ent(t),Q=ryn(t),[z,U]=yt.useState(null),L=yt.useRef(null),P=qE(e,L,_.onContentChange),Y=yt.useRef(0),G=yt.useRef(""),$=yt.useRef(0),K=yt.useRef(null),ie=yt.useRef("right"),he=yt.useRef(0),ge=f?Xtt:yt.Fragment,le=f?{as:Ayn,allowPinchZoom:!0}:void 0,ye=Be=>{var wt,_t;const Re=G.current+Be,De=Q().filter(ke=>!ke.disabled),Qe=document.activeElement,Je=(wt=De.find(ke=>ke.ref.current===Qe))==null?void 0:wt.textValue,$e=De.map(ke=>ke.textValue),rt=Eyn($e,Re,Je),pt=(_t=De.find(ke=>ke.textValue===rt))==null?void 0:_t.ref.current;(function ke(Xe){G.current=Xe,window.clearTimeout(Y.current),Xe!==""&&(Y.current=window.setTimeout(()=>ke(""),1e3))})(Re),pt&&setTimeout(()=>pt.focus())};yt.useEffect(()=>()=>window.clearTimeout(Y.current),[]),Fpn();const pe=yt.useCallback(Be=>{var De,Qe;return ie.current===((De=K.current)==null?void 0:De.side)&&Byn(Be,(Qe=K.current)==null?void 0:Qe.area)},[]);return lt.jsx(lyn,{scope:t,searchRef:G,onItemEnter:yt.useCallback(Be=>{pe(Be)&&Be.preventDefault()},[pe]),onItemLeave:yt.useCallback(Be=>{var Re;pe(Be)||((Re=L.current)==null||Re.focus(),U(null))},[pe]),onTriggerLeave:yt.useCallback(Be=>{pe(Be)&&Be.preventDefault()},[pe]),pointerGraceTimerRef:$,onPointerGraceIntentChange:yt.useCallback(Be=>{K.current=Be},[]),children:lt.jsx(ge,{...le,children:lt.jsx($et,{asChild:!0,trapped:r,onMountAutoFocus:Eg(o,Be=>{var Re;Be.preventDefault(),(Re=L.current)==null||Re.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:lt.jsx(Wet,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:A,onDismiss:h,children:lt.jsx(Obe,{asChild:!0,...b,dir:v.dir,orientation:"vertical",loop:i,currentTabStopId:z,onCurrentTabStopIdChange:U,onEntryFocus:Eg(c,Be=>{v.isUsingKeyboardRef.current||Be.preventDefault()}),preventScrollOnEntryFocus:!0,children:lt.jsx(dmn,{role:"menu","aria-orientation":"vertical","data-state":xnt(_.open),"data-radix-menu-content":"",dir:v.dir,...E,...m,ref:P,style:{outline:"none",...m.style},onKeyDown:Eg(m.onKeyDown,Be=>{const De=Be.target.closest("[data-radix-menu-content]")===Be.currentTarget,Qe=Be.ctrlKey||Be.altKey||Be.metaKey,Je=Be.key.length===1;De&&(Be.key==="Tab"&&Be.preventDefault(),!Qe&&Je&&ye(Be.key));const $e=L.current;if(Be.target!==$e||!tyn.includes(Be.key))return;Be.preventDefault();const pt=Q().filter(wt=>!wt.disabled).map(wt=>wt.ref.current);qtt.includes(Be.key)&&pt.reverse(),Cyn(pt)}),onBlur:Eg(n.onBlur,Be=>{Be.currentTarget.contains(Be.target)||(window.clearTimeout(Y.current),G.current="")}),onPointerMove:Eg(n.onPointerMove,R7(Be=>{const Re=Be.target,De=he.current!==Be.clientX;if(Be.currentTarget.contains(Re)&&De){const Qe=Be.clientX>he.current?"right":"left";ie.current=Qe,he.current=Be.clientX}}))})})})})})})});ont.displayName=D2;var hyn="MenuGroup",o_e=yt.forwardRef((n,e)=>{const{__scopeMenu:t,...i}=n;return lt.jsx(LC.div,{role:"group",...i,ref:e})});o_e.displayName=hyn;var fyn="MenuLabel",snt=yt.forwardRef((n,e)=>{const{__scopeMenu:t,...i}=n;return lt.jsx(LC.div,{...i,ref:e})});snt.displayName=fyn;var lj="MenuItem",ant="menu.itemSelect",uj=yt.forwardRef((n,e)=>{const{disabled:t=!1,onSelect:i,...r}=n,o=yt.useRef(null),s=M7(lj,n.__scopeMenu),a=i_e(lj,n.__scopeMenu),c=qE(e,o),l=yt.useRef(!1),u=()=>{const d=o.current;if(!t&&d){const A=new CustomEvent(ant,{bubbles:!0,cancelable:!0});d.addEventListener(ant,h=>i==null?void 0:i(h),{once:!0}),kbe(d,A),A.defaultPrevented?l.current=!1:s.onClose()}};return lt.jsx(cnt,{...r,ref:c,disabled:t,onClick:Eg(n.onClick,u),onPointerDown:d=>{var A;(A=n.onPointerDown)==null||A.call(n,d),l.current=!0},onPointerUp:Eg(n.onPointerUp,d=>{var A;l.current||(A=d.currentTarget)==null||A.click()}),onKeyDown:Eg(n.onKeyDown,d=>{const A=a.searchRef.current!=="";t||A&&d.key===" "||e_e.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});uj.displayName=lj;var cnt=yt.forwardRef((n,e)=>{const{__scopeMenu:t,disabled:i=!1,textValue:r,...o}=n,s=i_e(lj,t),a=ent(t),c=yt.useRef(null),l=qE(e,c),[u,d]=yt.useState(!1),[A,h]=yt.useState("");return yt.useEffect(()=>{const f=c.current;f&&h((f.textContent??"").trim())},[o.children]),lt.jsx(w7.ItemSlot,{scope:t,disabled:i,textValue:r??A,children:lt.jsx(zbe,{asChild:!0,...a,focusable:!i,children:lt.jsx(LC.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...o,ref:l,onPointerMove:Eg(n.onPointerMove,R7(f=>{i?s.onItemLeave(f):(s.onItemEnter(f),f.defaultPrevented||f.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Eg(n.onPointerLeave,R7(f=>s.onItemLeave(f))),onFocus:Eg(n.onFocus,()=>d(!0)),onBlur:Eg(n.onBlur,()=>d(!1))})})})}),pyn="MenuCheckboxItem",lnt=yt.forwardRef((n,e)=>{const{checked:t=!1,onCheckedChange:i,...r}=n;return lt.jsx(fnt,{scope:n.__scopeMenu,checked:t,children:lt.jsx(uj,{role:"menuitemcheckbox","aria-checked":dj(t)?"mixed":t,...r,ref:e,"data-state":c_e(t),onSelect:Eg(r.onSelect,()=>i==null?void 0:i(dj(t)?!0:!t),{checkForDefaultPrevented:!1})})})});lnt.displayName=pyn;var unt="MenuRadioGroup",[gyn,myn]=tQ(unt,{value:void 0,onValueChange:()=>{}}),dnt=yt.forwardRef((n,e)=>{const{value:t,onValueChange:i,...r}=n,o=GB(i);return lt.jsx(gyn,{scope:n.__scopeMenu,value:t,onValueChange:o,children:lt.jsx(o_e,{...r,ref:e})})});dnt.displayName=unt;var Ant="MenuRadioItem",hnt=yt.forwardRef((n,e)=>{const{value:t,...i}=n,r=myn(Ant,n.__scopeMenu),o=t===r.value;return lt.jsx(fnt,{scope:n.__scopeMenu,checked:o,children:lt.jsx(uj,{role:"menuitemradio","aria-checked":o,...i,ref:e,"data-state":c_e(o),onSelect:Eg(i.onSelect,()=>{var s;return(s=r.onValueChange)==null?void 0:s.call(r,t)},{checkForDefaultPrevented:!1})})})});hnt.displayName=Ant;var s_e="MenuItemIndicator",[fnt,yyn]=tQ(s_e,{checked:!1}),pnt=yt.forwardRef((n,e)=>{const{__scopeMenu:t,forceMount:i,...r}=n,o=yyn(s_e,t);return lt.jsx(jQ,{present:i||dj(o.checked)||o.checked===!0,children:lt.jsx(LC.span,{...r,ref:e,"data-state":c_e(o.checked)})})});pnt.displayName=s_e;var _yn="MenuSeparator",gnt=yt.forwardRef((n,e)=>{const{__scopeMenu:t,...i}=n;return lt.jsx(LC.div,{role:"separator","aria-orientation":"horizontal",...i,ref:e})});gnt.displayName=_yn;var vyn="MenuArrow",mnt=yt.forwardRef((n,e)=>{const{__scopeMenu:t,...i}=n,r=S7(t);return lt.jsx(Amn,{...r,...i,ref:e})});mnt.displayName=vyn;var a_e="MenuSub",[Iyn,ynt]=tQ(a_e),_nt=n=>{const{__scopeMenu:e,children:t,open:i=!1,onOpenChange:r}=n,o=DS(a_e,e),s=S7(e),[a,c]=yt.useState(null),[l,u]=yt.useState(null),d=GB(r);return yt.useEffect(()=>(o.open===!1&&d(!1),()=>d(!1)),[o.open,d]),lt.jsx(Ptt,{...s,children:lt.jsx(tnt,{scope:e,open:i,onOpenChange:d,content:l,onContentChange:u,children:lt.jsx(Iyn,{scope:e,contentId:KQ(),triggerId:KQ(),trigger:a,onTriggerChange:c,children:t})})})};_nt.displayName=a_e;var Q7="MenuSubTrigger",vnt=yt.forwardRef((n,e)=>{const t=DS(Q7,n.__scopeMenu),i=M7(Q7,n.__scopeMenu),r=ynt(Q7,n.__scopeMenu),o=i_e(Q7,n.__scopeMenu),s=yt.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=o,l={__scopeMenu:n.__scopeMenu},u=yt.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return yt.useEffect(()=>u,[u]),yt.useEffect(()=>{const d=a.current;return()=>{window.clearTimeout(d),c(null)}},[a,c]),lt.jsx(t_e,{asChild:!0,...l,children:lt.jsx(cnt,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":r.contentId,"data-state":xnt(t.open),...n,ref:mL(e,r.onTriggerChange),onClick:d=>{var A;(A=n.onClick)==null||A.call(n,d),!(n.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:Eg(n.onPointerMove,R7(d=>{o.onItemEnter(d),!d.defaultPrevented&&!n.disabled&&!t.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{t.onOpenChange(!0),u()},100))})),onPointerLeave:Eg(n.onPointerLeave,R7(d=>{var h,f;u();const A=(h=t.content)==null?void 0:h.getBoundingClientRect();if(A){const m=(f=t.content)==null?void 0:f.dataset.side,_=m==="right",v=_?-5:5,E=A[_?"left":"right"],b=A[_?"right":"left"];o.onPointerGraceIntentChange({area:[{x:d.clientX+v,y:d.clientY},{x:E,y:A.top},{x:b,y:A.top},{x:b,y:A.bottom},{x:E,y:A.bottom}],side:m}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(d),d.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:Eg(n.onKeyDown,d=>{var h;const A=o.searchRef.current!=="";n.disabled||A&&d.key===" "||nyn[i.dir].includes(d.key)&&(t.onOpenChange(!0),(h=t.content)==null||h.focus(),d.preventDefault())})})})});vnt.displayName=Q7;var Int="MenuSubContent",Cnt=yt.forwardRef((n,e)=>{const t=int(D2,n.__scopeMenu),{forceMount:i=t.forceMount,...r}=n,o=DS(D2,n.__scopeMenu),s=M7(D2,n.__scopeMenu),a=ynt(Int,n.__scopeMenu),c=yt.useRef(null),l=qE(e,c);return lt.jsx(w7.Provider,{scope:n.__scopeMenu,children:lt.jsx(jQ,{present:i||o.open,children:lt.jsx(w7.Slot,{scope:n.__scopeMenu,children:lt.jsx(r_e,{id:a.contentId,"aria-labelledby":a.triggerId,...r,ref:l,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;s.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:Eg(n.onFocusOutside,u=>{u.target!==a.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:Eg(n.onEscapeKeyDown,u=>{s.onClose(),u.preventDefault()}),onKeyDown:Eg(n.onKeyDown,u=>{var h;const d=u.currentTarget.contains(u.target),A=iyn[s.dir].includes(u.key);d&&A&&(o.onOpenChange(!1),(h=a.trigger)==null||h.focus(),u.preventDefault())})})})})})});Cnt.displayName=Int;function xnt(n){return n?"open":"closed"}function dj(n){return n==="indeterminate"}function c_e(n){return dj(n)?"indeterminate":n?"checked":"unchecked"}function Cyn(n){const e=document.activeElement;for(const t of n)if(t===e||(t.focus(),document.activeElement!==e))return}function xyn(n,e){return n.map((t,i)=>n[(e+i)%n.length])}function Eyn(n,e,t){const r=e.length>1&&Array.from(e).every(l=>l===e[0])?e[0]:e,o=t?n.indexOf(t):-1;let s=xyn(n,Math.max(o,0));r.length===1&&(s=s.filter(l=>l!==t));const c=s.find(l=>l.toLowerCase().startsWith(r.toLowerCase()));return c!==t?c:void 0}function byn(n,e){const{x:t,y:i}=n;let r=!1;for(let o=0,s=e.length-1;o<e.length;s=o++){const a=e[o],c=e[s],l=a.x,u=a.y,d=c.x,A=c.y;u>i!=A>i&&t<(d-l)*(i-u)/(A-u)+l&&(r=!r)}return r}function Byn(n,e){if(!e)return!1;const t={x:n.clientX,y:n.clientY};return byn(t,e)}function R7(n){return e=>e.pointerType==="mouse"?n(e):void 0}var wyn=nnt,Syn=t_e,Myn=rnt,Qyn=ont,Ryn=o_e,Dyn=snt,Nyn=uj,Tyn=lnt,kyn=dnt,Pyn=hnt,Fyn=pnt,Lyn=gnt,Uyn=mnt,Gyn=_nt,Oyn=vnt,zyn=Cnt,Aj="DropdownMenu",[Yyn,eZn]=VQ(Aj,[$tt]),rE=$tt(),[Hyn,Ent]=Yyn(Aj),bnt=n=>{const{__scopeDropdownMenu:e,children:t,dir:i,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=n,c=rE(e),l=yt.useRef(null),[u,d]=yL({prop:r,defaultProp:o??!1,onChange:s,caller:Aj});return lt.jsx(Hyn,{scope:e,triggerId:KQ(),triggerRef:l,contentId:KQ(),open:u,onOpenChange:d,onOpenToggle:yt.useCallback(()=>d(A=>!A),[d]),modal:a,children:lt.jsx(wyn,{...c,open:u,onOpenChange:d,dir:i,modal:a,children:t})})};bnt.displayName=Aj;var Bnt="DropdownMenuTrigger",wnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,disabled:i=!1,...r}=n,o=Ent(Bnt,t),s=rE(t);return lt.jsx(Syn,{asChild:!0,...s,children:lt.jsx(LC.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...r,ref:mL(e,o.triggerRef),onPointerDown:Eg(n.onPointerDown,a=>{!i&&a.button===0&&a.ctrlKey===!1&&(o.onOpenToggle(),o.open||a.preventDefault())}),onKeyDown:Eg(n.onKeyDown,a=>{i||(["Enter"," "].includes(a.key)&&o.onOpenToggle(),a.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});wnt.displayName=Bnt;var Vyn="DropdownMenuPortal",Snt=n=>{const{__scopeDropdownMenu:e,...t}=n,i=rE(e);return lt.jsx(Myn,{...i,...t})};Snt.displayName=Vyn;var Mnt="DropdownMenuContent",Qnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=Ent(Mnt,t),o=rE(t),s=yt.useRef(!1);return lt.jsx(Qyn,{id:r.contentId,"aria-labelledby":r.triggerId,...o,...i,ref:e,onCloseAutoFocus:Eg(n.onCloseAutoFocus,a=>{var c;s.current||(c=r.triggerRef.current)==null||c.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:Eg(n.onInteractOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;(!r.modal||u)&&(s.current=!0)}),style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Qnt.displayName=Mnt;var Kyn="DropdownMenuGroup",jyn=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Ryn,{...r,...i,ref:e})});jyn.displayName=Kyn;var Wyn="DropdownMenuLabel",Rnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Dyn,{...r,...i,ref:e})});Rnt.displayName=Wyn;var Jyn="DropdownMenuItem",Dnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Nyn,{...r,...i,ref:e})});Dnt.displayName=Jyn;var Zyn="DropdownMenuCheckboxItem",Nnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Tyn,{...r,...i,ref:e})});Nnt.displayName=Zyn;var Xyn="DropdownMenuRadioGroup",qyn=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(kyn,{...r,...i,ref:e})});qyn.displayName=Xyn;var $yn="DropdownMenuRadioItem",Tnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Pyn,{...r,...i,ref:e})});Tnt.displayName=$yn;var e_n="DropdownMenuItemIndicator",knt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Fyn,{...r,...i,ref:e})});knt.displayName=e_n;var t_n="DropdownMenuSeparator",Pnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Lyn,{...r,...i,ref:e})});Pnt.displayName=t_n;var n_n="DropdownMenuArrow",i_n=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Uyn,{...r,...i,ref:e})});i_n.displayName=n_n;var r_n=n=>{const{__scopeDropdownMenu:e,children:t,open:i,onOpenChange:r,defaultOpen:o}=n,s=rE(e),[a,c]=yL({prop:i,defaultProp:o??!1,onChange:r,caller:"DropdownMenuSub"});return lt.jsx(Gyn,{...s,open:a,onOpenChange:c,children:t})},o_n="DropdownMenuSubTrigger",Fnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(Oyn,{...r,...i,ref:e})});Fnt.displayName=o_n;var s_n="DropdownMenuSubContent",Lnt=yt.forwardRef((n,e)=>{const{__scopeDropdownMenu:t,...i}=n,r=rE(t);return lt.jsx(zyn,{...r,...i,ref:e,style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Lnt.displayName=s_n;var a_n=bnt,c_n=wnt,Unt=Snt,Gnt=Qnt,Ont=Rnt,znt=Dnt,Ynt=Nnt,Hnt=Tnt,Vnt=knt,Knt=Pnt,l_n=r_n,jnt=Fnt,Wnt=Lnt;const Jnt=a_n,Znt=c_n,u_n=Unt,d_n=l_n,Xnt=yt.forwardRef(({className:n,inset:e,children:t,...i},r)=>lt.jsxs(jnt,{ref:r,className:c1("rf-flex rf-cursor-default rf-gap-2 rf-select-none rf-items-center rf-rounded-sm rf-px-2 rf-py-1.5 rf-text-sm rf-outline-none focus:rf-bg-zinc-100 data-[state=open]:rf-bg-zinc-100 [&_svg]:rf-pointer-events-none [&_svg]:rf-size-4 [&_svg]:rf-shrink-0 dark:focus:rf-bg-zinc-800 dark:data-[state=open]:rf-bg-zinc-800",e&&"rf-pl-8",n),...i,children:[t,lt.jsx(Qye,{className:"rf-ml-auto"})]}));Xnt.displayName=jnt.displayName;const qnt=yt.forwardRef(({className:n,...e},t)=>lt.jsx(Wnt,{ref:t,className:c1("rf-z-50 rf-min-w-[8rem] rf-overflow-hidden rf-rounded-md rf-border rf-border-zinc-200 rf-bg-white rf-p-1 rf-text-zinc-950 rf-shadow-lg data-[state=open]:rf-animate-in data-[state=closed]:rf-animate-out data-[state=closed]:rf-fade-out-0 data-[state=open]:rf-fade-in-0 data-[state=closed]:rf-zoom-out-95 data-[state=open]:rf-zoom-in-95 data-[side=bottom]:rf-slide-in-from-top-2 data-[side=left]:rf-slide-in-from-right-2 data-[side=right]:rf-slide-in-from-left-2 data-[side=top]:rf-slide-in-from-bottom-2 dark:rf-border-zinc-800 dark:rf-bg-zinc-950 dark:rf-text-zinc-50",n),...e}));qnt.displayName=Wnt.displayName;const l_e=yt.forwardRef(({className:n,sideOffset:e=4,...t},i)=>lt.jsx(Unt,{children:lt.jsx(Gnt,{ref:i,sideOffset:e,className:c1("rf-z-50 rf-min-w-[8rem] rf-overflow-hidden rf-rounded-md rf-border rf-border-zinc-200 rf-bg-white rf-p-1 rf-text-zinc-950 rf-shadow-md dark:rf-border-zinc-800 dark:rf-bg-zinc-950 dark:rf-text-zinc-50","data-[state=open]:rf-animate-in data-[state=closed]:rf-animate-out data-[state=closed]:rf-fade-out-0 data-[state=open]:rf-fade-in-0 data-[state=closed]:rf-zoom-out-95 data-[state=open]:rf-zoom-in-95 data-[side=bottom]:rf-slide-in-from-top-2 data-[side=left]:rf-slide-in-from-right-2 data-[side=right]:rf-slide-in-from-left-2 data-[side=top]:rf-slide-in-from-bottom-2",n),...t})}));l_e.displayName=Gnt.displayName;const nQ=yt.forwardRef(({className:n,inset:e,...t},i)=>lt.jsx(znt,{ref:i,className:c1("rf-relative rf-flex rf-cursor-default rf-select-none rf-items-center rf-gap-2 rf-rounded-sm rf-px-2 rf-py-1.5 rf-text-sm rf-outline-none rf-transition-colors focus:rf-bg-zinc-100 focus:rf-text-zinc-900 data-[disabled]:rf-pointer-events-none data-[disabled]:rf-opacity-50 [&>svg]:rf-size-4 [&>svg]:rf-shrink-0 dark:focus:rf-bg-zinc-800 dark:focus:rf-text-zinc-50",e&&"rf-pl-8",n),...t}));nQ.displayName=znt.displayName;const A_n=yt.forwardRef(({className:n,children:e,checked:t,...i},r)=>lt.jsxs(Ynt,{ref:r,className:c1("rf-relative rf-flex rf-cursor-default rf-select-none rf-items-center rf-rounded-sm rf-py-1.5 rf-pl-8 rf-pr-2 rf-text-sm rf-outline-none rf-transition-colors focus:rf-bg-zinc-100 focus:rf-text-zinc-900 data-[disabled]:rf-pointer-events-none data-[disabled]:rf-opacity-50 dark:focus:rf-bg-zinc-800 dark:focus:rf-text-zinc-50",n),checked:t,...i,children:[lt.jsx("span",{className:"rf-absolute rf-left-2 rf-flex rf-h-3.5 rf-w-3.5 rf-items-center rf-justify-center",children:lt.jsx(Vnt,{children:lt.jsx(Get,{className:"rf-h-4 rf-w-4"})})}),e]}));A_n.displayName=Ynt.displayName;const h_n=yt.forwardRef(({className:n,children:e,...t},i)=>lt.jsxs(Hnt,{ref:i,className:c1("rf-relative rf-flex rf-cursor-default rf-select-none rf-items-center rf-rounded-sm rf-py-1.5 rf-pl-8 rf-pr-2 rf-text-sm rf-outline-none rf-transition-colors focus:rf-bg-zinc-100 focus:rf-text-zinc-900 data-[disabled]:rf-pointer-events-none data-[disabled]:rf-opacity-50 dark:focus:rf-bg-zinc-800 dark:focus:rf-text-zinc-50",n),...t,children:[lt.jsx("span",{className:"rf-absolute rf-left-2 rf-flex rf-h-3.5 rf-w-3.5 rf-items-center rf-justify-center",children:lt.jsx(Vnt,{children:lt.jsx(zet,{className:"rf-h-2 rf-w-2 rf-fill-current"})})}),e]}));h_n.displayName=Hnt.displayName;const f_n=yt.forwardRef(({className:n,inset:e,...t},i)=>lt.jsx(Ont,{ref:i,className:c1("rf-px-2 rf-py-1.5 rf-text-sm rf-font-semibold",e&&"rf-pl-8",n),...t}));f_n.displayName=Ont.displayName;const $nt=yt.forwardRef(({className:n,...e},t)=>lt.jsx(Knt,{ref:t,className:c1("rf--mx-1 rf-my-1 rf-h-px rf-bg-zinc-100 dark:rf-bg-zinc-800",n),...e}));$nt.displayName=Knt.displayName;const eit=({autoroutingLog:n,onReportAutoroutingLog:e})=>lt.jsx(lt.Fragment,{children:Object.keys(n??{}).length>0&&lt.jsxs(Jnt,{children:[lt.jsx(Znt,{asChild:!0,children:lt.jsxs(j5,{variant:"outline",children:[lt.jsx(ppn,{className:"rf-w-4 rf-h-4 rf-mr-2"}),"Open Autorouting Log"]})}),lt.jsx(l_e,{className:"rf-w-96",children:Object.entries(n??{}).map(([t,{simpleRouteJson:i}])=>lt.jsxs(nQ,{className:"rf-flex rf-justify-between rf-items-center",children:[lt.jsx("span",{className:"rf-truncate rf-text-xs rf-mr-2",children:t}),lt.jsxs("div",{className:"rf-flex rf-gap-2",children:[lt.jsxs(j5,{variant:"outline",size:"sm",onClick:r=>{r.stopPropagation();const o=new Blob([JSON.stringify(i,null,2)],{type:"application/json"}),s=URL.createObjectURL(o),a=document.createElement("a");a.href=s,a.download=`${t}-autorouting.json`,a.click(),URL.revokeObjectURL(s)},children:[lt.jsx(mpn,{className:"rf-w-3 rf-h-3"}),"Download"]}),e&&lt.jsxs(j5,{variant:"outline",size:"sm",onClick:r=>{r.stopPropagation(),e&&e(t,{simpleRouteJson:i})},children:[lt.jsx(xpn,{className:"rf-w-3 rf-h-3"}),"Report Bug"]})]})]},t))})]})}),p_n=({code:n,fsMap:e,autoroutingLog:t,circuitJsonErrors:i,circuitJsonWarnings:r,onReportAutoroutingLog:o,errorMessage:s,errorStack:a,circuitJson:c,evalVersion:l})=>{const u=yt.useMemo(()=>{const Y=[];if(s&&Y.push({type:"Execution Error",message:s,stack:a||void 0,source:"execution"}),i&&i.length>0)for(const G of i)Y.push({type:G.type||"Circuit JSON Error",message:G.message||"No error message available",stack:G.stack||"",source:"circuitJson"});return Y},[s,a,i]),d=yt.useMemo(()=>{if(!c||!Array.isArray(c))return;const Y=c.find(G=>G.type==="source_project_metadata");return Y==null?void 0:Y.software_used_string},[c]),A=yt.useMemo(()=>{const Y=[];if(r&&r.length>0)for(const G of r)Y.push({type:G.type||"Circuit JSON Warning",message:G.message||"No warning message available",stack:G.stack||"",source:"circuitJson"});return Y},[r]),h=()=>{if(e)try{return pvt(e instanceof Map?Object.fromEntries(e.entries()):e)}catch{}return Spn(n??"")},f=(Y,G)=>{const $=`https://github.com/tscircuit/tscircuit.com/issues/new?title=${encodeURIComponent(Y)}&body=${encodeURIComponent(G)}`;window.open($,"_blank")},[m,_]=yt.useState(0),[v,E]=yt.useState(0);if(u.length===0&&A.length===0)return lt.jsxs("div",{className:"px-2",children:[lt.jsx("div",{className:"rf-mt-4 rf-bg-green-50 rf-rounded-md rf-border rf-border-green-200",children:lt.jsxs("div",{className:"rf-p-4",children:[lt.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-green-800 rf-mb-3",children:"No errors or warnings!"}),lt.jsx("p",{className:"rf-text-sm rf-text-green-700",children:"Your code is running without any errors or warnings."})]})}),lt.jsxs("div",{className:"rf-flex rf-gap-2 rf-mt-4 rf-justify-end",children:[lt.jsx(eit,{autoroutingLog:t,onReportAutoroutingLog:o}),lt.jsxs(j5,{variant:"outline",className:"rf-p-1",onClick:()=>{const Y=h();f("Issue Report",`[Package code to reproduce](${Y})`)},children:[lt.jsx(Fet,{className:"rf-w-4 rf-h-4"}),"Report Issue"]})]})]});const b=()=>{_(Y=>Math.max(Y-1,0))},Q=()=>{_(Y=>Math.min(Y+1,u.length-1))},z=()=>{E(Y=>Math.max(Y-1,0))},U=()=>{E(Y=>Math.min(Y+1,A.length-1))},L=u[m],P=A[v];return lt.jsxs(lt.Fragment,{children:[lt.jsxs("div",{className:"rf-w-[95%] rf-mx-auto",children:[u.length>1&&lt.jsxs("div",{className:"rf-flex rf-items-center rf-gap-2 rf-mb-2",children:[lt.jsx("button",{type:"button",className:"rf-p-1 rf-rounded-sm rf-transition-colors",onClick:b,disabled:m===0,children:lt.jsx(Oet,{className:"rf-h-4 rf-w-4 rf-text-red-500"})}),lt.jsx("button",{type:"button",className:"rf-p-1 rf-rounded-sm rf-transition-colors",onClick:Q,disabled:m===u.length-1,children:lt.jsx(Qye,{className:"rf-h-4 rf-w-4 rf-text-red-500"})}),lt.jsxs("span",{className:"rf-text-sm rf-text-red-600",children:[m+1," of ",u.length," errors"]})]}),L&&lt.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200 rf-max-h-[500px] rf-overflow-y-auto rf-px-2",children:lt.jsxs("div",{className:"rf-p-4",children:[lt.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-1",children:L.type}),lt.jsx("p",{className:"rf-text-xs rf-font-mono rf-whitespace-pre-wrap rf-text-red-600",children:L.message}),(L.stack||l||d)&&lt.jsxs("details",{style:{whiteSpace:"pre-wrap"},className:"rf-text-xs rf-font-mono rf-text-red-600 rf-mt-2",children:[l&&`@tscircuit/eval@${l}
13324
13324
  `,d&&`${d}
13325
13325
  `,L.stack]})]})}),A.length>0&&lt.jsxs(lt.Fragment,{children:[A.length>1&&lt.jsxs("div",{className:"rf-flex rf-items-center rf-gap-2 rf-mb-2 rf-mt-4",children:[lt.jsx("button",{type:"button",className:"rf-p-1 rf-rounded-sm rf-transition-colors",onClick:z,disabled:v===0,children:lt.jsx(Oet,{className:"rf-h-4 rf-w-4 rf-text-orange-500"})}),lt.jsx("button",{type:"button",className:"rf-p-1 rf-rounded-sm rf-transition-colors",onClick:U,disabled:v===A.length-1,children:lt.jsx(Qye,{className:"rf-h-4 rf-w-4 rf-text-orange-500"})}),lt.jsxs("span",{className:"rf-text-sm rf-text-orange-600",children:[v+1," of ",A.length," warnings"]})]}),P&&lt.jsx("div",{className:"rf-mt-4 rf-bg-orange-50 rf-rounded-md rf-border rf-border-orange-200 rf-max-h-[500px] rf-overflow-y-auto rf-px-2",children:lt.jsxs("div",{className:"rf-p-4",children:[lt.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-orange-800 rf-mb-1",children:P.type}),lt.jsx("p",{className:"rf-text-xs rf-font-mono rf-whitespace-pre-wrap rf-text-orange-600",children:P.message}),P.stack&&lt.jsx("details",{style:{whiteSpace:"pre-wrap"},className:"rf-text-xs rf-font-mono rf-text-orange-600 rf-mt-2",children:P.stack})]})})]})]}),lt.jsxs("div",{className:"rf-flex rf-gap-2 rf-mt-4 rf-justify-end",children:[lt.jsx(eit,{autoroutingLog:t,onReportAutoroutingLog:o}),lt.jsxs(j5,{variant:"outline",className:"rf-p-1",onClick:()=>{let Y=`${L.type}: ${L.message}`;l&&(Y+=`
13326
13326
  @tscircuit/eval@${l}`),d&&(Y+=`
@@ -13844,7 +13844,7 @@ ${i.stack}`),t.complete=!0,"root"in this&&this.root&&this.root.emit("asyncEffect
13844
13844
  * Copyright (c) 2013-2015, 2017, Jon Schlinkert.
13845
13845
  * Released under the MIT License.
13846
13846
  *)
13847
- */const sVn=({containerClassName:n,...e})=>{const t=yt.useRef(null),[i,r]=yt.useState(620);return yt.useLayoutEffect(()=>{const o=()=>{if(t.current){const a=t.current.clientHeight,c=window.innerHeight;r(Math.min(Math.max(a,620),c))}};o();const s=new ResizeObserver(o);return t.current&&s.observe(t.current),window.addEventListener("resize",o),()=>{s.disconnect(),window.removeEventListener("resize",o)}},[]),lt.jsx("div",{ref:t,className:n||"rf-w-full rf-h-full",children:lt.jsx(oVn,{...e,height:i})})},aVn='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:root{--radius:0.5rem}.rf-pointer-events-none{pointer-events:none}.rf-invisible{visibility:hidden}.rf-fixed{position:fixed}.rf-absolute{position:absolute}.rf-relative{position:relative}.rf-inset-0{inset:0}.-rf-left-2{left:-.5rem}.-rf-right-10{right:-2.5rem}.-rf-right-2{right:-.5rem}.-rf-right-4{right:-1rem}.-rf-right-6{right:-1.5rem}.-rf-right-7{right:-1.75rem}.-rf-right-8{right:-2rem}.-rf-right-9{right:-2.25rem}.rf-bottom-full{bottom:100%}.rf-left-0{left:0}.rf-left-1{left:.25rem}.rf-left-1\\/2{left:50%}.rf-left-2{left:.5rem}.rf-left-\\[50\\%\\]{left:50%}.rf-right-0{right:0}.rf-right-1{right:.25rem}.rf-right-4{right:1rem}.rf-right-\\[4px\\]{right:4px}.rf-top-0{top:0}.rf-top-1{top:.25rem}.rf-top-2{top:.5rem}.rf-top-2\\.5{top:.625rem}.rf-top-\\[50\\%\\]{top:50%}.rf-top-\\[6px\\]{top:6px}.\\!rf-z-\\[101\\]{z-index:101!important}.rf-z-10{z-index:10}.rf-z-50{z-index:50}.rf-z-\\[100\\]{z-index:100}.rf-order-1{order:1}.rf-order-2{order:2}.rf-order-3{order:3}.rf-m-1{margin:.25rem}.rf-m-6{margin:1.5rem}.-rf-mx-1,.rf--mx-1{margin-left:-.25rem;margin-right:-.25rem}.rf-mx-1{margin-left:.25rem;margin-right:.25rem}.rf-mx-2{margin-left:.5rem;margin-right:.5rem}.rf-mx-4{margin-left:1rem;margin-right:1rem}.rf-mx-auto{margin-left:auto;margin-right:auto}.rf-my-1{margin-bottom:.25rem;margin-top:.25rem}.rf-my-12{margin-bottom:3rem;margin-top:3rem}.rf-my-4{margin-bottom:1rem;margin-top:1rem}.rf-my-auto{margin-bottom:auto;margin-top:auto}.rf-mb-1{margin-bottom:.25rem}.rf-mb-12{margin-bottom:3rem}.rf-mb-2{margin-bottom:.5rem}.rf-mb-3{margin-bottom:.75rem}.rf-mb-4{margin-bottom:1rem}.rf-mb-6{margin-bottom:1.5rem}.rf-mb-8{margin-bottom:2rem}.rf-ml-1{margin-left:.25rem}.rf-ml-2{margin-left:.5rem}.rf-ml-auto{margin-left:auto}.rf-mr-1{margin-right:.25rem}.rf-mr-2{margin-right:.5rem}.rf-mt-0{margin-top:0}.rf-mt-0\\.5{margin-top:.125rem}.rf-mt-1{margin-top:.25rem}.rf-mt-2{margin-top:.5rem}.rf-mt-3{margin-top:.75rem}.rf-mt-4{margin-top:1rem}.rf-mt-5{margin-top:1.25rem}.rf-mt-auto{margin-top:auto}.rf-block{display:block}.rf-inline-block{display:inline-block}.rf-inline{display:inline}.rf-flex{display:flex}.rf-inline-flex{display:inline-flex}.rf-grid{display:grid}.rf-hidden{display:none}.rf-aspect-square{aspect-ratio:1/1}.rf-aspect-video{aspect-ratio:16/9}.rf-size-14{height:3.5rem;width:3.5rem}.rf-size-4{height:1rem;width:1rem}.\\!rf-h-2{height:.5rem!important}.\\!rf-h-2\\.5{height:.625rem!important}.\\!rf-h-3{height:.75rem!important}.\\!rf-h-full{height:100%!important}.rf-h-1{height:.25rem}.rf-h-10{height:2.5rem}.rf-h-12{height:3rem}.rf-h-2{height:.5rem}.rf-h-2\\.5{height:.625rem}.rf-h-3{height:.75rem}.rf-h-3\\.5{height:.875rem}.rf-h-4{height:1rem}.rf-h-5{height:1.25rem}.rf-h-6{height:1.5rem}.rf-h-60{height:15rem}.rf-h-64{height:16rem}.rf-h-7{height:1.75rem}.rf-h-8{height:2rem}.rf-h-9{height:2.25rem}.rf-h-\\[400px\\]{height:400px}.rf-h-\\[calc\\(100vh-52px\\)\\]{height:calc(100vh - 52px)}.rf-h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.rf-h-auto{height:auto}.rf-h-fit{height:-moz-fit-content;height:fit-content}.rf-h-full{height:100%}.rf-h-px{height:1px}.rf-h-screen{height:100vh}.\\!rf-max-h-\\[40vh\\]{max-height:40vh!important}.rf-max-h-32{max-height:8rem}.rf-max-h-96{max-height:24rem}.rf-max-h-\\[200px\\]{max-height:200px}.rf-max-h-\\[300px\\]{max-height:300px}.rf-max-h-\\[500px\\]{max-height:500px}.rf-max-h-\\[90vh\\]{max-height:90vh}.rf-max-h-full{max-height:100%}.rf-min-h-0{min-height:0}.rf-min-h-\\[200px\\]{min-height:200px}.rf-min-h-\\[300px\\]{min-height:300px}.rf-min-h-\\[620px\\]{min-height:620px}.rf-min-h-\\[calc\\(100vh-240px\\)\\]{min-height:calc(100vh - 240px)}.\\!rf-w-2{width:.5rem!important}.\\!rf-w-2\\.5{width:.625rem!important}.rf-w-1{width:.25rem}.rf-w-1\\/2{width:50%}.rf-w-11{width:2.75rem}.rf-w-11\\/12{width:91.666667%}.rf-w-12{width:3rem}.rf-w-16{width:4rem}.rf-w-2{width:.5rem}.rf-w-2\\.5{width:.625rem}.rf-w-20{width:5rem}.rf-w-28{width:7rem}.rf-w-3{width:.75rem}.rf-w-3\\.5{width:.875rem}.rf-w-32{width:8rem}.rf-w-4{width:1rem}.rf-w-40{width:10rem}.rf-w-48{width:12rem}.rf-w-5{width:1.25rem}.rf-w-6{width:1.5rem}.rf-w-64{width:16rem}.rf-w-72{width:18rem}.rf-w-8{width:2rem}.rf-w-9{width:2.25rem}.rf-w-96{width:24rem}.rf-w-\\[95\\%\\]{width:95%}.rf-w-fit{width:-moz-fit-content;width:fit-content}.rf-w-full{width:100%}.rf-w-screen{width:100vw}.rf-min-w-0{min-width:0}.rf-min-w-10{min-width:2.5rem}.rf-min-w-16{min-width:4rem}.rf-min-w-\\[148px\\]{min-width:148px}.rf-min-w-\\[8rem\\]{min-width:8rem}.rf-min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.\\!rf-max-w-\\[660px\\]{max-width:660px!important}.rf-max-w-2xl{max-width:42rem}.rf-max-w-3xl{max-width:48rem}.rf-max-w-4xl{max-width:56rem}.rf-max-w-5xl{max-width:64rem}.rf-max-w-full{max-width:100%}.rf-max-w-lg{max-width:32rem}.rf-max-w-md{max-width:28rem}.rf-max-w-none{max-width:none}.rf-max-w-xl{max-width:36rem}.rf-max-w-xs{max-width:20rem}.rf-flex-1{flex:1 1 0%}.rf-flex-shrink-0,.rf-shrink-0{flex-shrink:0}.rf-flex-grow{flex-grow:1}.rf-table-auto{table-layout:auto}.rf-origin-\\[--radix-popover-content-transform-origin\\]{transform-origin:var(--radix-popover-content-transform-origin)}.-rf-translate-x-1{--tw-translate-x:-0.25rem}.-rf-translate-x-1,.-rf-translate-x-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rf-translate-x-1\\/2{--tw-translate-x:-50%}.-rf-translate-y-1{--tw-translate-y:-0.25rem}.-rf-translate-y-1,.rf--translate-x-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-x-1{--tw-translate-x:-0.25rem}.rf--translate-x-1\\/2{--tw-translate-x:-50%}.rf--translate-x-1\\/2,.rf--translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-y-1{--tw-translate-y:-0.25rem}.rf-translate-x-\\[-50\\%\\]{--tw-translate-x:-50%}.rf-translate-x-\\[-50\\%\\],.rf-translate-y-\\[-50\\%\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf-translate-y-\\[-50\\%\\]{--tw-translate-y:-50%}.rf-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes rf-pulse{50%{opacity:.5}}.rf-animate-pulse{animation:rf-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rf-spin{to{transform:rotate(1turn)}}.rf-animate-spin{animation:rf-spin 1s linear infinite}.rf-cursor-default{cursor:default}.rf-cursor-not-allowed{cursor:not-allowed}.rf-cursor-pointer{cursor:pointer}.rf-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.rf-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.rf-flex-row{flex-direction:row}.rf-flex-col{flex-direction:column}.rf-flex-col-reverse{flex-direction:column-reverse}.rf-flex-wrap{flex-wrap:wrap}.rf-place-items-center{place-items:center}.rf-items-start{align-items:flex-start}.rf-items-end{align-items:flex-end}.rf-items-center{align-items:center}.rf-items-stretch{align-items:stretch}.rf-justify-end{justify-content:flex-end}.rf-justify-center{justify-content:center}.rf-justify-between{justify-content:space-between}.rf-gap-0{gap:0}.rf-gap-1{gap:.25rem}.rf-gap-2{gap:.5rem}.rf-gap-3{gap:.75rem}.rf-gap-4{gap:1rem}.rf-gap-5{gap:1.25rem}.rf-gap-6{gap:1.5rem}.rf-gap-8{gap:2rem}.rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.rf-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.rf-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.rf-overflow-auto{overflow:auto}.rf-overflow-hidden{overflow:hidden}.rf-overflow-visible{overflow:visible}.rf-overflow-x-auto{overflow-x:auto}.\\!rf-overflow-y-auto{overflow-y:auto!important}.rf-overflow-y-auto{overflow-y:auto}.rf-overflow-x-hidden{overflow-x:hidden}.rf-overflow-x-clip{overflow-x:clip}.rf-truncate{overflow:hidden;text-overflow:ellipsis}.rf-truncate,.rf-whitespace-nowrap{white-space:nowrap}.rf-whitespace-pre-wrap{white-space:pre-wrap}.rf-break-words{overflow-wrap:break-word}.rf-rounded{border-radius:.25rem}.rf-rounded-2xl{border-radius:1rem}.rf-rounded-full{border-radius:9999px}.rf-rounded-lg{border-radius:var(--radius)}.rf-rounded-md{border-radius:calc(var(--radius) - 2px)}.rf-rounded-sm{border-radius:calc(var(--radius) - 4px)}.rf-rounded-xl{border-radius:.75rem}.rf-border{border-width:1px}.rf-border-2{border-width:2px}.rf-border-b{border-bottom-width:1px}.rf-border-t{border-top-width:1px}.rf-border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.rf-border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.rf-border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.rf-border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.rf-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.rf-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.rf-border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}.rf-border-input{border-color:hsl(var(--input))}.rf-border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.rf-border-orange-200{--tw-border-opacity:1;border-color:rgb(254 215 170/var(--tw-border-opacity,1))}.rf-border-primary{border-color:hsl(var(--primary))}.rf-border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.rf-border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity,1))}.rf-border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.rf-border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1))}.rf-border-zinc-900{--tw-border-opacity:1;border-color:rgb(24 24 27/var(--tw-border-opacity,1))}.rf-bg-background{background-color:hsl(var(--background))}.rf-bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.rf-bg-black\\/80{background-color:rgba(0,0,0,.8)}.rf-bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.rf-bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.rf-bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.rf-bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.rf-bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.rf-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.rf-bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.rf-bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.rf-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.rf-bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}.rf-bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.rf-bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.rf-bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.rf-bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.rf-bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.rf-bg-muted{background-color:hsl(var(--muted))}.rf-bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.rf-bg-neutral-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.rf-bg-neutral-900{--tw-bg-opacity:1;background-color:rgb(23 23 23/var(--tw-bg-opacity,1))}.rf-bg-orange-400{--tw-bg-opacity:1;background-color:rgb(251 146 60/var(--tw-bg-opacity,1))}.rf-bg-orange-50{--tw-bg-opacity:1;background-color:rgb(255 247 237/var(--tw-bg-opacity,1))}.rf-bg-popover{background-color:hsl(var(--popover))}.rf-bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.rf-bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.rf-bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.rf-bg-red-900{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.rf-bg-transparent{background-color:transparent}.rf-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.rf-bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}.rf-bg-zinc-100{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.rf-bg-zinc-200{--tw-bg-opacity:1;background-color:rgb(228 228 231/var(--tw-bg-opacity,1))}.rf-bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-zinc-800{--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.rf-bg-zinc-900{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.rf-bg-opacity-50{--tw-bg-opacity:0.5}.rf-fill-current{fill:currentColor}.rf-object-contain{-o-object-fit:contain;object-fit:contain}.rf-object-cover{-o-object-fit:cover;object-fit:cover}.\\!rf-p-0{padding:0!important}.rf-p-0{padding:0}.rf-p-1{padding:.25rem}.rf-p-2{padding:.5rem}.rf-p-3{padding:.75rem}.rf-p-4{padding:1rem}.rf-p-5{padding:1.25rem}.rf-p-6{padding:1.5rem}.rf-p-8{padding:2rem}.rf-px-1{padding-left:.25rem;padding-right:.25rem}.rf-px-2{padding-left:.5rem;padding-right:.5rem}.rf-px-3{padding-left:.75rem;padding-right:.75rem}.rf-px-4{padding-left:1rem;padding-right:1rem}.rf-px-6{padding-left:1.5rem;padding-right:1.5rem}.rf-px-8{padding-left:2rem;padding-right:2rem}.rf-py-0{padding-bottom:0;padding-top:0}.rf-py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.rf-py-1{padding-bottom:.25rem;padding-top:.25rem}.rf-py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.rf-py-10{padding-bottom:2.5rem;padding-top:2.5rem}.rf-py-12{padding-bottom:3rem;padding-top:3rem}.rf-py-2{padding-bottom:.5rem;padding-top:.5rem}.rf-py-3{padding-bottom:.75rem;padding-top:.75rem}.rf-py-4{padding-bottom:1rem;padding-top:1rem}.rf-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.rf-py-8{padding-bottom:2rem;padding-top:2rem}.rf-pb-0{padding-bottom:0}.rf-pb-2{padding-bottom:.5rem}.rf-pb-3{padding-bottom:.75rem}.rf-pb-4{padding-bottom:1rem}.rf-pl-2{padding-left:.5rem}.rf-pl-4{padding-left:1rem}.rf-pl-8{padding-left:2rem}.rf-pr-2{padding-right:.5rem}.rf-pt-0{padding-top:0}.rf-pt-2{padding-top:.5rem}.rf-pt-4{padding-top:1rem}.rf-text-left{text-align:left}.rf-text-center{text-align:center}.rf-text-right{text-align:right}.rf-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.rf-text-2xl{font-size:1.5rem;line-height:2rem}.rf-text-3xl{font-size:1.875rem;line-height:2.25rem}.rf-text-\\[8px\\]{font-size:8px}.rf-text-base{font-size:1rem;line-height:1.5rem}.rf-text-lg{font-size:1.125rem;line-height:1.75rem}.rf-text-sm{font-size:.875rem;line-height:1.25rem}.rf-text-xl{font-size:1.25rem;line-height:1.75rem}.rf-text-xs{font-size:.75rem;line-height:1rem}.\\!rf-font-normal{font-weight:400!important}.rf-font-bold{font-weight:700}.rf-font-medium{font-weight:500}.rf-font-semibold{font-weight:600}.rf-uppercase{text-transform:uppercase}.rf-capitalize{text-transform:capitalize}.rf-tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.rf-leading-5{line-height:1.25rem}.rf-leading-none{line-height:1}.rf-leading-relaxed{line-height:1.625}.rf-leading-tight{line-height:1.25}.rf-tracking-wide{letter-spacing:.025em}.rf-tracking-widest{letter-spacing:.1em}.rf-text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.rf-text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.rf-text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.rf-text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.rf-text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.rf-text-blue-900{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity,1))}.rf-text-current{color:currentColor}.rf-text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.rf-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.rf-text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.rf-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.rf-text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.rf-text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.rf-text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.rf-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.rf-text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.rf-text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.rf-text-green-900{--tw-text-opacity:1;color:rgb(20 83 45/var(--tw-text-opacity,1))}.rf-text-muted-foreground{color:hsl(var(--muted-foreground))}.rf-text-neutral-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-neutral-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.rf-text-neutral-900{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.rf-text-neutral-950{--tw-text-opacity:1;color:rgb(10 10 10/var(--tw-text-opacity,1))}.rf-text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity,1))}.rf-text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity,1))}.rf-text-orange-800{--tw-text-opacity:1;color:rgb(154 52 18/var(--tw-text-opacity,1))}.rf-text-popover-foreground{color:hsl(var(--popover-foreground))}.rf-text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity,1))}.rf-text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.rf-text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.rf-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.rf-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.rf-text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.rf-text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.rf-text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity,1))}.rf-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.rf-text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.rf-text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.rf-text-yellow-900{--tw-text-opacity:1;color:rgb(113 63 18/var(--tw-text-opacity,1))}.rf-text-zinc-200{--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.rf-text-zinc-300{--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.rf-text-zinc-400{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.rf-text-zinc-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.rf-text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.rf-text-zinc-950{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.rf-underline{text-decoration-line:underline}.rf-line-through{text-decoration-line:line-through}.rf-underline-offset-4{text-underline-offset:4px}.rf-opacity-0{opacity:0}.rf-opacity-100{opacity:1}.rf-opacity-25{opacity:.25}.rf-opacity-30{opacity:.3}.rf-opacity-50{opacity:.5}.rf-opacity-60{opacity:.6}.rf-opacity-75{opacity:.75}.rf-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.rf-shadow,.rf-shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.rf-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.rf-shadow-md,.rf-shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.rf-outline-none{outline:2px solid transparent;outline-offset:2px}.rf-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.rf-ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.rf-ring-primary{--tw-ring-color:hsl(var(--primary))}.rf-ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.rf-ring-offset-white{--tw-ring-offset-color:#fff}.rf-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-duration-200{transition-duration:.2s}.rf-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.rf-slide-in-from-left-1{--tw-enter-translate-x:-0.25rem}.rf-slide-out-to-left-1{--tw-exit-translate-x:-0.25rem}.rf-duration-200{animation-duration:.2s}.rf-ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.file\\:rf-border-0::file-selector-button{border-width:0}.file\\:rf-bg-transparent::file-selector-button{background-color:transparent}.file\\:rf-text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:rf-font-medium::file-selector-button{font-weight:500}.placeholder\\:rf-text-zinc-500::-moz-placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.placeholder\\:rf-text-zinc-500::placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.hover\\:rf-border-blue-300:hover{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}.hover\\:\\!rf-bg-transparent:hover{background-color:transparent!important}.hover\\:rf-bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\\:rf-bg-red-500\\/90:hover{background-color:rgba(239,68,68,.9)}.hover\\:rf-bg-zinc-100:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.hover\\:rf-bg-zinc-100\\/80:hover{background-color:hsla(240,5%,96%,.8)}.hover\\:rf-bg-zinc-900\\/90:hover{background-color:rgba(24,24,27,.9)}.hover\\:rf-text-red-400:hover{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.hover\\:rf-text-zinc-900:hover{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.hover\\:rf-underline:hover{text-decoration-line:underline}.focus\\:rf-bg-gray-100:focus{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.focus\\:rf-bg-zinc-100:focus{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.focus\\:rf-text-gray-900:focus{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.focus\\:rf-text-zinc-900:focus{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.focus\\:rf-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:rf-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:rf-ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\\:rf-ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:rf-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:rf-ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-zinc-950:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(9 9 11/var(--tw-ring-opacity,1))}.focus-visible\\:rf-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\\:rf-pointer-events-none:disabled{pointer-events:none}.disabled\\:rf-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:rf-opacity-50:disabled{opacity:.5}.rf-group\\/bar:hover .group-hover\\/bar\\:rf-opacity-100{opacity:1}.data-\\[disabled\\=true\\]\\:rf-pointer-events-none[data-disabled=true],.data-\\[disabled\\]\\:rf-pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom],.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right],.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\\[selected\\=true\\]\\:rf-bg-zinc-100[data-selected=true]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[state\\=active\\]\\:rf-bg-white[data-state=active]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.data-\\[state\\=checked\\]\\:rf-bg-zinc-900[data-state=checked]{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.data-\\[state\\=open\\]\\:rf-bg-zinc-100[data-state=open]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[selected\\=true\\]\\:rf-text-zinc-900[data-selected=true]{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.data-\\[state\\=active\\]\\:rf-text-zinc-950[data-state=active]{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.data-\\[state\\=checked\\]\\:rf-text-zinc-50[data-state=checked]{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.data-\\[disabled\\=true\\]\\:rf-opacity-50[data-disabled=true],.data-\\[disabled\\]\\:rf-opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=active\\]\\:rf-shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\\[state\\=open\\]\\:rf-animate-in[data-state=open]{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-animate-out[data-state=closed]{animation-duration:.15s;animation-name:exit;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=open\\]\\:rf-fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=closed\\]\\:rf-zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=open\\]\\:rf-zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[side\\=bottom\\]\\:rf-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\\[side\\=left\\]\\:rf-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\\[side\\=right\\]\\:rf-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\\[side\\=top\\]\\:rf-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\\[state\\=closed\\]\\:rf-slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\\[state\\=closed\\]\\:rf-slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\\[state\\=open\\]\\:rf-slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\\[state\\=open\\]\\:rf-slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y:-48%}.dark\\:rf-border-zinc-50:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(250 250 250/var(--tw-border-opacity,1))}.dark\\:rf-border-zinc-800:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1))}.dark\\:rf-bg-red-900:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-50:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-800:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-950:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:rf-text-zinc-400:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-50:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-900:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-ring-offset-zinc-950:is(.rf-dark *){--tw-ring-offset-color:#09090b}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:hover\\:rf-bg-red-900\\/90:hover:is(.rf-dark *){background-color:rgba(127,29,29,.9)}.dark\\:hover\\:rf-bg-zinc-50\\/90:hover:is(.rf-dark *){background-color:hsla(0,0%,98%,.9)}.dark\\:hover\\:rf-bg-zinc-800:hover:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:hover\\:rf-bg-zinc-800\\/80:hover:is(.rf-dark *){background-color:rgba(39,39,42,.8)}.dark\\:hover\\:rf-text-zinc-50:hover:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus\\:rf-bg-zinc-800:focus:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:focus\\:rf-text-zinc-50:focus:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus-visible\\:rf-ring-zinc-300:focus-visible:is(.rf-dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(212 212 216/var(--tw-ring-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-bg-zinc-800[data-selected=true]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-bg-zinc-950[data-state=active]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-bg-zinc-50[data-state=checked]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=open\\]\\:rf-bg-zinc-800[data-state=open]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-text-zinc-50[data-selected=true]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-text-zinc-50[data-state=active]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-text-zinc-900[data-state=checked]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\\:rf-order-1{order:1}.sm\\:rf-order-2{order:2}.sm\\:rf-mt-0{margin-top:0}.sm\\:rf-inline{display:inline}.sm\\:rf-hidden{display:none}.sm\\:rf-w-auto{width:auto}.sm\\:rf-flex-row{flex-direction:row}.sm\\:rf-items-center{align-items:center}.sm\\:rf-justify-end{justify-content:flex-end}.sm\\:rf-gap-3{gap:.75rem}.sm\\:rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.sm\\:rf-rounded-lg{border-radius:var(--radius)}.sm\\:rf-px-4{padding-left:1rem;padding-right:1rem}.sm\\:rf-text-left{text-align:left}.sm\\:rf-text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:rf-text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:768px){.md\\:rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.\\[\\&\\>span\\]\\:rf-line-clamp-1>span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\\[\\&\\>svg\\]\\:rf-size-4>svg{height:1rem;width:1rem}.\\[\\&\\>svg\\]\\:rf-shrink-0>svg{flex-shrink:0}.\\[\\&\\>svg\\]\\:rf-text-red-300>svg{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.\\[\\&\\>svg\\]\\:hover\\:rf-text-red-400:hover>svg{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-py-1\\.5 [cmdk-group-heading]{padding-bottom:.375rem;padding-top:.375rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-font-medium [cmdk-group-heading]{font-weight:500}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-500 [cmdk-group-heading]{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.dark\\:\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-400 [cmdk-group-heading]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:rf-pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\\[\\&_\\[cmdk-group\\]\\]\\:rf-px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\\[\\&_\\[cmdk-input\\]\\]\\:rf-h-12 [cmdk-input]{height:3rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-py-3 [cmdk-item]{padding-bottom:.75rem;padding-top:.75rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-h-5 [cmdk-item] svg{height:1.25rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-w-5 [cmdk-item] svg{width:1.25rem}.\\[\\&_svg\\]\\:rf-pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:rf-size-4 svg{height:1rem;width:1rem}.\\[\\&_svg\\]\\:rf-shrink-0 svg{flex-shrink:0}',cVn=()=>{yt.useEffect(()=>{if(document.querySelector('style[data-styles="tscircuit-runframe"]'))return;const e=document.createElement("style");e.setAttribute("data-styles","tscircuit-runframe"),e.textContent=aVn,document.head.appendChild(e)},[])},lVn=n=>{yt.useEffect(()=>(n?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[n])},oft=n=>`hsl(${Q2.indexOf(n)*137.5%360}, 70%, 50%)`,uVn=({phaseTimings:n})=>{if(!n)return null;const e=Object.values(n).reduce((t,i)=>t+i,0);return lt.jsxs("div",{className:"rf-space-y-2 rf-w-full rf-px-4",children:[lt.jsx("div",{className:"rf-relative rf-h-8 rf-flex rf-rounded-sm",children:Q2.map(t=>{const i=n[t]||0,r=i/e*100;return lt.jsx("div",{className:"rf-group/bar rf-relative rf-overflow-visible",style:{width:`${r}%`,backgroundColor:oft(t)},children:lt.jsxs("div",{className:"rf-opacity-0 group-hover/bar:rf-opacity-100 rf-transition-opacity rf-absolute rf-bottom-full rf-left-1/2 rf-transform -rf-translate-x-1/2 rf-mb-2 rf-px-2 rf-py-1 rf-text-xs rf-whitespace-nowrap rf-rounded rf-bg-gray-900 rf-text-white rf-pointer-events-none",children:[t,": ",i.toFixed(1),"ms"]})},t)})}),lt.jsxs("div",{className:"rf-text-xs rf-text-gray-500",children:["Total: ",e.toFixed(2),"ms"]})]})},dVn=({renderLog:n})=>{const[e,t]=yt.useState("chronological");if(!n)return lt.jsx("div",{className:"rf-p-4 rf-bg-gray-100 rf-rounded-md",children:"No render log, make sure this tab is open when you render (TODO add a rerender button here)"});const i=Object.entries((n==null?void 0:n.phaseTimings)??{});e==="chronological"?i.sort((o,s)=>Q2.indexOf(o[0])-Q2.indexOf(s[0])):i.sort((o,s)=>s[1]-o[1]);const r=i.reduce((o,[s,a])=>o+a,0);return lt.jsxs("div",{className:"rf-bg-white",children:[lt.jsxs("div",{className:"rf-flex rf-justify-between rf-items-center",children:[lt.jsx("div",{children:"Render Logs"}),lt.jsxs("div",{className:"rf-mb-4 rf-pr-2 rf-flex rf-text-xs rf-items-center",children:[lt.jsx("div",{className:"rf-mr-2",children:"Sort by:"}),lt.jsxs("select",{value:e,onChange:o=>t(o.target.value),className:"rf-px-2 rf-py-1 rf-border rf-rounded rf-text-xs",children:[lt.jsx("option",{value:"chronological",children:"Phase Order"}),lt.jsx("option",{value:"longest",children:"Duration"})]})]})]}),lt.jsx(uVn,{phaseTimings:n.phaseTimings}),lt.jsxs("table",{className:"rf-w-full rf-text-xs",children:[lt.jsx("thead",{children:lt.jsxs("tr",{children:[lt.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase Order"}),lt.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase"}),lt.jsx("th",{className:"rf-text-left rf-p-2",children:"Duration (ms)"})]})}),lt.jsx("tbody",{children:i.map(([o,s])=>lt.jsxs("tr",{children:[lt.jsx("td",{className:"rf-p-2",children:Q2.indexOf(o)}),lt.jsx("td",{className:"rf-p-2",children:o}),lt.jsx("td",{className:"rf-p-2",children:lt.jsx("div",{className:"rf-w-8",children:lt.jsx("div",{className:"rf-h-2 rf-rounded-sm",style:{backgroundColor:oft(o),width:`${s/r*100}%`}})})}),lt.jsx("td",{className:"rf-p-2",children:lt.jsxs("div",{className:"rf-flex w-full",children:[lt.jsxs("span",{className:"rf-flex-grow",children:[s,"ms"]}),lt.jsxs("span",{className:"rf-text-gray-500 rf-pr-2",children:[(s/r*100).toFixed(1),"%"]})]})})]},o))})]})]})},AVn=({errorMessage:n,errorStack:e,circuitJsonErrors:t})=>{yt.useEffect(()=>{if(n){const i=new Error(n);e&&(i.stack=e);try{nU.captureException(i)}catch{}}},[n,e]),yt.useEffect(()=>{if(t&&t.length>0)for(const i of t){const r=new Error(i.message||"Circuit JSON Error");i.stack&&(r.stack=i.stack);try{nU.captureException(r,{error_type:i.type})}catch{}}},[t])},hVn="0.0.776";function fVn(n,e){const[t,i]=yt.useState(()=>{try{const r=window.localStorage.getItem(n);return r?JSON.parse(r):e}catch(r){return console.error("Error reading from localStorage:",r),e}});return yt.useEffect(()=>{try{window.localStorage.setItem(n,JSON.stringify(t))}catch(r){console.error("Error writing to localStorage:",r)}},[n,t]),[t,i]}const Yxe={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Hxe=new Map,kX=n=>{const e=Hxe.get(n);return e?Object.fromEntries(Object.entries(e.stores).map(([t,i])=>[t,i.getState()])):{}},pVn=(n,e,t)=>{if(n===void 0)return{type:"untracked",connection:e.connect(t)};const i=Hxe.get(t.name);if(i)return{type:"tracked",store:n,...i};const r={connection:e.connect(t),stores:{}};return Hxe.set(t.name,r),{type:"tracked",store:n,...r}},gVn=(n,e={})=>(t,i,r)=>{const{enabled:o,anonymousActionType:s,store:a,...c}=e;let l;try{l=(o??(Yxe?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return(Yxe?"production":void 0)!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),n(t,i,r);const{connection:u,...d}=pVn(a,l,c);let A=!0;r.setState=(m,_,v)=>{const E=t(m,_);if(!A)return E;const b=v===void 0?{type:s||"anonymous"}:typeof v=="string"?{type:v}:v;return a===void 0?(u==null||u.send(b,i()),E):(u==null||u.send({...b,type:`${a}/${b.type}`},{...kX(c.name),[a]:r.getState()}),E)};const h=(...m)=>{const _=A;A=!1,t(...m),A=_},f=n(r.setState,i,r);if(d.type==="untracked"?u==null||u.init(f):(d.stores[d.store]=r,u==null||u.init(Object.fromEntries(Object.entries(d.stores).map(([m,_])=>[m,m===d.store?f:_.getState()])))),r.dispatchFromDevtools&&typeof r.dispatch=="function"){let m=!1;const _=r.dispatch;r.dispatch=(...v)=>{(Yxe?"production":void 0)!=="production"&&v[0].type==="__setState"&&!m&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),m=!0),_(...v)}}return u.subscribe(m=>{var _;switch(m.type){case"ACTION":if(typeof m.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Vxe(m.payload,v=>{if(v.type==="__setState"){if(a===void 0){h(v.state);return}Object.keys(v.state).length!==1&&console.error(`
13847
+ */const sVn=({containerClassName:n,...e})=>{const t=yt.useRef(null),[i,r]=yt.useState(620);return yt.useLayoutEffect(()=>{const o=()=>{if(t.current){const a=t.current.clientHeight,c=window.innerHeight;r(Math.min(Math.max(a,620),c))}};o();const s=new ResizeObserver(o);return t.current&&s.observe(t.current),window.addEventListener("resize",o),()=>{s.disconnect(),window.removeEventListener("resize",o)}},[]),lt.jsx("div",{ref:t,className:n||"rf-w-full rf-h-full",children:lt.jsx(oVn,{...e,height:i})})},aVn='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:root{--radius:0.5rem}.rf-pointer-events-none{pointer-events:none}.rf-invisible{visibility:hidden}.rf-fixed{position:fixed}.rf-absolute{position:absolute}.rf-relative{position:relative}.rf-inset-0{inset:0}.-rf-left-2{left:-.5rem}.-rf-right-10{right:-2.5rem}.-rf-right-2{right:-.5rem}.-rf-right-4{right:-1rem}.-rf-right-6{right:-1.5rem}.-rf-right-7{right:-1.75rem}.-rf-right-8{right:-2rem}.-rf-right-9{right:-2.25rem}.rf-bottom-full{bottom:100%}.rf-left-0{left:0}.rf-left-1{left:.25rem}.rf-left-1\\/2{left:50%}.rf-left-2{left:.5rem}.rf-left-\\[50\\%\\]{left:50%}.rf-right-0{right:0}.rf-right-1{right:.25rem}.rf-right-4{right:1rem}.rf-right-\\[4px\\]{right:4px}.rf-top-0{top:0}.rf-top-1{top:.25rem}.rf-top-2{top:.5rem}.rf-top-2\\.5{top:.625rem}.rf-top-\\[50\\%\\]{top:50%}.rf-top-\\[6px\\]{top:6px}.\\!rf-z-\\[101\\]{z-index:101!important}.rf-z-10{z-index:10}.rf-z-50{z-index:50}.rf-z-\\[100\\]{z-index:100}.rf-order-1{order:1}.rf-order-2{order:2}.rf-order-3{order:3}.rf-m-1{margin:.25rem}.rf-m-6{margin:1.5rem}.-rf-mx-1,.rf--mx-1{margin-left:-.25rem;margin-right:-.25rem}.rf-mx-1{margin-left:.25rem;margin-right:.25rem}.rf-mx-2{margin-left:.5rem;margin-right:.5rem}.rf-mx-4{margin-left:1rem;margin-right:1rem}.rf-mx-auto{margin-left:auto;margin-right:auto}.rf-my-1{margin-bottom:.25rem;margin-top:.25rem}.rf-my-12{margin-bottom:3rem;margin-top:3rem}.rf-my-4{margin-bottom:1rem;margin-top:1rem}.rf-my-auto{margin-bottom:auto;margin-top:auto}.rf-mb-1{margin-bottom:.25rem}.rf-mb-12{margin-bottom:3rem}.rf-mb-2{margin-bottom:.5rem}.rf-mb-3{margin-bottom:.75rem}.rf-mb-4{margin-bottom:1rem}.rf-mb-6{margin-bottom:1.5rem}.rf-mb-8{margin-bottom:2rem}.rf-ml-1{margin-left:.25rem}.rf-ml-2{margin-left:.5rem}.rf-ml-auto{margin-left:auto}.rf-mr-1{margin-right:.25rem}.rf-mr-2{margin-right:.5rem}.rf-mt-0{margin-top:0}.rf-mt-0\\.5{margin-top:.125rem}.rf-mt-1{margin-top:.25rem}.rf-mt-2{margin-top:.5rem}.rf-mt-3{margin-top:.75rem}.rf-mt-4{margin-top:1rem}.rf-mt-5{margin-top:1.25rem}.rf-mt-auto{margin-top:auto}.rf-block{display:block}.rf-inline-block{display:inline-block}.rf-inline{display:inline}.rf-flex{display:flex}.rf-inline-flex{display:inline-flex}.rf-grid{display:grid}.rf-hidden{display:none}.rf-aspect-square{aspect-ratio:1/1}.rf-aspect-video{aspect-ratio:16/9}.rf-size-14{height:3.5rem;width:3.5rem}.rf-size-4{height:1rem;width:1rem}.\\!rf-h-2{height:.5rem!important}.\\!rf-h-2\\.5{height:.625rem!important}.\\!rf-h-3{height:.75rem!important}.\\!rf-h-full{height:100%!important}.rf-h-1{height:.25rem}.rf-h-10{height:2.5rem}.rf-h-12{height:3rem}.rf-h-2{height:.5rem}.rf-h-2\\.5{height:.625rem}.rf-h-3{height:.75rem}.rf-h-3\\.5{height:.875rem}.rf-h-4{height:1rem}.rf-h-5{height:1.25rem}.rf-h-6{height:1.5rem}.rf-h-60{height:15rem}.rf-h-64{height:16rem}.rf-h-7{height:1.75rem}.rf-h-8{height:2rem}.rf-h-9{height:2.25rem}.rf-h-\\[400px\\]{height:400px}.rf-h-\\[calc\\(100vh-52px\\)\\]{height:calc(100vh - 52px)}.rf-h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.rf-h-auto{height:auto}.rf-h-fit{height:-moz-fit-content;height:fit-content}.rf-h-full{height:100%}.rf-h-px{height:1px}.rf-h-screen{height:100vh}.\\!rf-max-h-\\[40vh\\]{max-height:40vh!important}.rf-max-h-32{max-height:8rem}.rf-max-h-96{max-height:24rem}.rf-max-h-\\[200px\\]{max-height:200px}.rf-max-h-\\[300px\\]{max-height:300px}.rf-max-h-\\[500px\\]{max-height:500px}.rf-max-h-\\[90vh\\]{max-height:90vh}.rf-max-h-full{max-height:100%}.rf-min-h-0{min-height:0}.rf-min-h-\\[200px\\]{min-height:200px}.rf-min-h-\\[300px\\]{min-height:300px}.rf-min-h-\\[620px\\]{min-height:620px}.rf-min-h-\\[calc\\(100vh-240px\\)\\]{min-height:calc(100vh - 240px)}.\\!rf-w-2{width:.5rem!important}.\\!rf-w-2\\.5{width:.625rem!important}.rf-w-1{width:.25rem}.rf-w-1\\/2{width:50%}.rf-w-11{width:2.75rem}.rf-w-11\\/12{width:91.666667%}.rf-w-12{width:3rem}.rf-w-16{width:4rem}.rf-w-2{width:.5rem}.rf-w-2\\.5{width:.625rem}.rf-w-20{width:5rem}.rf-w-28{width:7rem}.rf-w-3{width:.75rem}.rf-w-3\\.5{width:.875rem}.rf-w-32{width:8rem}.rf-w-4{width:1rem}.rf-w-40{width:10rem}.rf-w-48{width:12rem}.rf-w-5{width:1.25rem}.rf-w-6{width:1.5rem}.rf-w-64{width:16rem}.rf-w-72{width:18rem}.rf-w-8{width:2rem}.rf-w-9{width:2.25rem}.rf-w-96{width:24rem}.rf-w-\\[95\\%\\]{width:95%}.rf-w-fit{width:-moz-fit-content;width:fit-content}.rf-w-full{width:100%}.rf-w-screen{width:100vw}.rf-min-w-0{min-width:0}.rf-min-w-10{min-width:2.5rem}.rf-min-w-16{min-width:4rem}.rf-min-w-\\[148px\\]{min-width:148px}.rf-min-w-\\[8rem\\]{min-width:8rem}.rf-min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.\\!rf-max-w-\\[660px\\]{max-width:660px!important}.rf-max-w-2xl{max-width:42rem}.rf-max-w-3xl{max-width:48rem}.rf-max-w-4xl{max-width:56rem}.rf-max-w-5xl{max-width:64rem}.rf-max-w-full{max-width:100%}.rf-max-w-lg{max-width:32rem}.rf-max-w-md{max-width:28rem}.rf-max-w-none{max-width:none}.rf-max-w-xl{max-width:36rem}.rf-max-w-xs{max-width:20rem}.rf-flex-1{flex:1 1 0%}.rf-flex-shrink-0,.rf-shrink-0{flex-shrink:0}.rf-flex-grow{flex-grow:1}.rf-table-auto{table-layout:auto}.rf-origin-\\[--radix-popover-content-transform-origin\\]{transform-origin:var(--radix-popover-content-transform-origin)}.-rf-translate-x-1{--tw-translate-x:-0.25rem}.-rf-translate-x-1,.-rf-translate-x-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rf-translate-x-1\\/2{--tw-translate-x:-50%}.-rf-translate-y-1{--tw-translate-y:-0.25rem}.-rf-translate-y-1,.rf--translate-x-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-x-1{--tw-translate-x:-0.25rem}.rf--translate-x-1\\/2{--tw-translate-x:-50%}.rf--translate-x-1\\/2,.rf--translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-y-1{--tw-translate-y:-0.25rem}.rf-translate-x-\\[-50\\%\\]{--tw-translate-x:-50%}.rf-translate-x-\\[-50\\%\\],.rf-translate-y-\\[-50\\%\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf-translate-y-\\[-50\\%\\]{--tw-translate-y:-50%}.rf-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes rf-pulse{50%{opacity:.5}}.rf-animate-pulse{animation:rf-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rf-spin{to{transform:rotate(1turn)}}.rf-animate-spin{animation:rf-spin 1s linear infinite}.rf-cursor-default{cursor:default}.rf-cursor-not-allowed{cursor:not-allowed}.rf-cursor-pointer{cursor:pointer}.rf-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.rf-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.rf-flex-row{flex-direction:row}.rf-flex-col{flex-direction:column}.rf-flex-col-reverse{flex-direction:column-reverse}.rf-flex-wrap{flex-wrap:wrap}.rf-place-items-center{place-items:center}.rf-items-start{align-items:flex-start}.rf-items-end{align-items:flex-end}.rf-items-center{align-items:center}.rf-items-stretch{align-items:stretch}.rf-justify-end{justify-content:flex-end}.rf-justify-center{justify-content:center}.rf-justify-between{justify-content:space-between}.rf-gap-0{gap:0}.rf-gap-1{gap:.25rem}.rf-gap-2{gap:.5rem}.rf-gap-3{gap:.75rem}.rf-gap-4{gap:1rem}.rf-gap-5{gap:1.25rem}.rf-gap-6{gap:1.5rem}.rf-gap-8{gap:2rem}.rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.rf-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.rf-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.rf-overflow-auto{overflow:auto}.rf-overflow-hidden{overflow:hidden}.rf-overflow-visible{overflow:visible}.rf-overflow-x-auto{overflow-x:auto}.\\!rf-overflow-y-auto{overflow-y:auto!important}.rf-overflow-y-auto{overflow-y:auto}.rf-overflow-x-hidden{overflow-x:hidden}.rf-overflow-x-clip{overflow-x:clip}.rf-truncate{overflow:hidden;text-overflow:ellipsis}.rf-truncate,.rf-whitespace-nowrap{white-space:nowrap}.rf-whitespace-pre-wrap{white-space:pre-wrap}.rf-break-words{overflow-wrap:break-word}.rf-rounded{border-radius:.25rem}.rf-rounded-2xl{border-radius:1rem}.rf-rounded-full{border-radius:9999px}.rf-rounded-lg{border-radius:var(--radius)}.rf-rounded-md{border-radius:calc(var(--radius) - 2px)}.rf-rounded-sm{border-radius:calc(var(--radius) - 4px)}.rf-rounded-xl{border-radius:.75rem}.rf-border{border-width:1px}.rf-border-2{border-width:2px}.rf-border-b{border-bottom-width:1px}.rf-border-t{border-top-width:1px}.rf-border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.rf-border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.rf-border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.rf-border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.rf-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.rf-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.rf-border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}.rf-border-input{border-color:hsl(var(--input))}.rf-border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.rf-border-orange-200{--tw-border-opacity:1;border-color:rgb(254 215 170/var(--tw-border-opacity,1))}.rf-border-primary{border-color:hsl(var(--primary))}.rf-border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.rf-border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity,1))}.rf-border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.rf-border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1))}.rf-border-zinc-900{--tw-border-opacity:1;border-color:rgb(24 24 27/var(--tw-border-opacity,1))}.rf-bg-background{background-color:hsl(var(--background))}.rf-bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.rf-bg-black\\/80{background-color:rgba(0,0,0,.8)}.rf-bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.rf-bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.rf-bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.rf-bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.rf-bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.rf-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.rf-bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.rf-bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.rf-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.rf-bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}.rf-bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.rf-bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.rf-bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.rf-bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.rf-bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.rf-bg-muted{background-color:hsl(var(--muted))}.rf-bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.rf-bg-neutral-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.rf-bg-neutral-900{--tw-bg-opacity:1;background-color:rgb(23 23 23/var(--tw-bg-opacity,1))}.rf-bg-orange-400{--tw-bg-opacity:1;background-color:rgb(251 146 60/var(--tw-bg-opacity,1))}.rf-bg-orange-50{--tw-bg-opacity:1;background-color:rgb(255 247 237/var(--tw-bg-opacity,1))}.rf-bg-popover{background-color:hsl(var(--popover))}.rf-bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.rf-bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.rf-bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.rf-bg-red-900{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.rf-bg-transparent{background-color:transparent}.rf-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.rf-bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}.rf-bg-zinc-100{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.rf-bg-zinc-200{--tw-bg-opacity:1;background-color:rgb(228 228 231/var(--tw-bg-opacity,1))}.rf-bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-zinc-800{--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.rf-bg-zinc-900{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.rf-bg-opacity-50{--tw-bg-opacity:0.5}.rf-fill-current{fill:currentColor}.rf-object-contain{-o-object-fit:contain;object-fit:contain}.rf-object-cover{-o-object-fit:cover;object-fit:cover}.\\!rf-p-0{padding:0!important}.rf-p-0{padding:0}.rf-p-1{padding:.25rem}.rf-p-2{padding:.5rem}.rf-p-3{padding:.75rem}.rf-p-4{padding:1rem}.rf-p-5{padding:1.25rem}.rf-p-6{padding:1.5rem}.rf-p-8{padding:2rem}.rf-px-1{padding-left:.25rem;padding-right:.25rem}.rf-px-2{padding-left:.5rem;padding-right:.5rem}.rf-px-3{padding-left:.75rem;padding-right:.75rem}.rf-px-4{padding-left:1rem;padding-right:1rem}.rf-px-6{padding-left:1.5rem;padding-right:1.5rem}.rf-px-8{padding-left:2rem;padding-right:2rem}.rf-py-0{padding-bottom:0;padding-top:0}.rf-py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.rf-py-1{padding-bottom:.25rem;padding-top:.25rem}.rf-py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.rf-py-10{padding-bottom:2.5rem;padding-top:2.5rem}.rf-py-12{padding-bottom:3rem;padding-top:3rem}.rf-py-2{padding-bottom:.5rem;padding-top:.5rem}.rf-py-3{padding-bottom:.75rem;padding-top:.75rem}.rf-py-4{padding-bottom:1rem;padding-top:1rem}.rf-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.rf-py-8{padding-bottom:2rem;padding-top:2rem}.rf-pb-0{padding-bottom:0}.rf-pb-2{padding-bottom:.5rem}.rf-pb-3{padding-bottom:.75rem}.rf-pb-4{padding-bottom:1rem}.rf-pl-2{padding-left:.5rem}.rf-pl-4{padding-left:1rem}.rf-pl-8{padding-left:2rem}.rf-pr-2{padding-right:.5rem}.rf-pt-0{padding-top:0}.rf-pt-2{padding-top:.5rem}.rf-pt-4{padding-top:1rem}.rf-text-left{text-align:left}.rf-text-center{text-align:center}.rf-text-right{text-align:right}.rf-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.rf-text-2xl{font-size:1.5rem;line-height:2rem}.rf-text-3xl{font-size:1.875rem;line-height:2.25rem}.rf-text-\\[8px\\]{font-size:8px}.rf-text-base{font-size:1rem;line-height:1.5rem}.rf-text-lg{font-size:1.125rem;line-height:1.75rem}.rf-text-sm{font-size:.875rem;line-height:1.25rem}.rf-text-xl{font-size:1.25rem;line-height:1.75rem}.rf-text-xs{font-size:.75rem;line-height:1rem}.\\!rf-font-normal{font-weight:400!important}.rf-font-bold{font-weight:700}.rf-font-medium{font-weight:500}.rf-font-semibold{font-weight:600}.rf-uppercase{text-transform:uppercase}.rf-capitalize{text-transform:capitalize}.rf-tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.rf-leading-5{line-height:1.25rem}.rf-leading-none{line-height:1}.rf-leading-relaxed{line-height:1.625}.rf-leading-tight{line-height:1.25}.rf-tracking-wide{letter-spacing:.025em}.rf-tracking-widest{letter-spacing:.1em}.rf-text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.rf-text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.rf-text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.rf-text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.rf-text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.rf-text-blue-900{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity,1))}.rf-text-current{color:currentColor}.rf-text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.rf-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.rf-text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.rf-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.rf-text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.rf-text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.rf-text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.rf-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.rf-text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.rf-text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.rf-text-green-900{--tw-text-opacity:1;color:rgb(20 83 45/var(--tw-text-opacity,1))}.rf-text-muted-foreground{color:hsl(var(--muted-foreground))}.rf-text-neutral-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-neutral-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.rf-text-neutral-900{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.rf-text-neutral-950{--tw-text-opacity:1;color:rgb(10 10 10/var(--tw-text-opacity,1))}.rf-text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity,1))}.rf-text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity,1))}.rf-text-orange-800{--tw-text-opacity:1;color:rgb(154 52 18/var(--tw-text-opacity,1))}.rf-text-popover-foreground{color:hsl(var(--popover-foreground))}.rf-text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity,1))}.rf-text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.rf-text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.rf-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.rf-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.rf-text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.rf-text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.rf-text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity,1))}.rf-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.rf-text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.rf-text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.rf-text-yellow-900{--tw-text-opacity:1;color:rgb(113 63 18/var(--tw-text-opacity,1))}.rf-text-zinc-200{--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.rf-text-zinc-300{--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.rf-text-zinc-400{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.rf-text-zinc-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.rf-text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.rf-text-zinc-950{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.rf-underline{text-decoration-line:underline}.rf-line-through{text-decoration-line:line-through}.rf-underline-offset-4{text-underline-offset:4px}.rf-opacity-0{opacity:0}.rf-opacity-100{opacity:1}.rf-opacity-25{opacity:.25}.rf-opacity-30{opacity:.3}.rf-opacity-50{opacity:.5}.rf-opacity-60{opacity:.6}.rf-opacity-75{opacity:.75}.rf-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.rf-shadow,.rf-shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.rf-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.rf-shadow-md,.rf-shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.rf-outline-none{outline:2px solid transparent;outline-offset:2px}.rf-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.rf-ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.rf-ring-primary{--tw-ring-color:hsl(var(--primary))}.rf-ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.rf-ring-offset-white{--tw-ring-offset-color:#fff}.rf-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-duration-200{transition-duration:.2s}.rf-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.rf-slide-in-from-left-1{--tw-enter-translate-x:-0.25rem}.rf-slide-out-to-left-1{--tw-exit-translate-x:-0.25rem}.rf-duration-200{animation-duration:.2s}.rf-ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.file\\:rf-border-0::file-selector-button{border-width:0}.file\\:rf-bg-transparent::file-selector-button{background-color:transparent}.file\\:rf-text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:rf-font-medium::file-selector-button{font-weight:500}.placeholder\\:rf-text-zinc-500::-moz-placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.placeholder\\:rf-text-zinc-500::placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.hover\\:rf-border-blue-300:hover{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}.hover\\:\\!rf-bg-transparent:hover{background-color:transparent!important}.hover\\:rf-bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\\:rf-bg-red-500\\/90:hover{background-color:rgba(239,68,68,.9)}.hover\\:rf-bg-zinc-100:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.hover\\:rf-bg-zinc-100\\/80:hover{background-color:hsla(240,5%,96%,.8)}.hover\\:rf-bg-zinc-900\\/90:hover{background-color:rgba(24,24,27,.9)}.hover\\:rf-text-red-400:hover{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.hover\\:rf-text-zinc-900:hover{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.hover\\:rf-underline:hover{text-decoration-line:underline}.focus\\:rf-bg-gray-100:focus{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.focus\\:rf-bg-zinc-100:focus{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.focus\\:rf-text-gray-900:focus{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.focus\\:rf-text-zinc-900:focus{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.focus\\:rf-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:rf-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:rf-ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\\:rf-ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:rf-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:rf-ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-zinc-950:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(9 9 11/var(--tw-ring-opacity,1))}.focus-visible\\:rf-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\\:rf-pointer-events-none:disabled{pointer-events:none}.disabled\\:rf-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:rf-opacity-50:disabled{opacity:.5}.rf-group\\/bar:hover .group-hover\\/bar\\:rf-opacity-100{opacity:1}.data-\\[disabled\\=true\\]\\:rf-pointer-events-none[data-disabled=true],.data-\\[disabled\\]\\:rf-pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom],.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right],.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\\[selected\\=true\\]\\:rf-bg-zinc-100[data-selected=true]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[state\\=active\\]\\:rf-bg-white[data-state=active]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.data-\\[state\\=checked\\]\\:rf-bg-zinc-900[data-state=checked]{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.data-\\[state\\=open\\]\\:rf-bg-zinc-100[data-state=open]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[selected\\=true\\]\\:rf-text-zinc-900[data-selected=true]{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.data-\\[state\\=active\\]\\:rf-text-zinc-950[data-state=active]{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.data-\\[state\\=checked\\]\\:rf-text-zinc-50[data-state=checked]{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.data-\\[disabled\\=true\\]\\:rf-opacity-50[data-disabled=true],.data-\\[disabled\\]\\:rf-opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=active\\]\\:rf-shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\\[state\\=open\\]\\:rf-animate-in[data-state=open]{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-animate-out[data-state=closed]{animation-duration:.15s;animation-name:exit;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=open\\]\\:rf-fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=closed\\]\\:rf-zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=open\\]\\:rf-zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[side\\=bottom\\]\\:rf-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\\[side\\=left\\]\\:rf-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\\[side\\=right\\]\\:rf-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\\[side\\=top\\]\\:rf-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\\[state\\=closed\\]\\:rf-slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\\[state\\=closed\\]\\:rf-slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\\[state\\=open\\]\\:rf-slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\\[state\\=open\\]\\:rf-slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y:-48%}.dark\\:rf-border-zinc-50:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(250 250 250/var(--tw-border-opacity,1))}.dark\\:rf-border-zinc-800:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1))}.dark\\:rf-bg-red-900:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-50:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-800:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-950:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:rf-text-zinc-400:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-50:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-900:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-ring-offset-zinc-950:is(.rf-dark *){--tw-ring-offset-color:#09090b}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:hover\\:rf-bg-red-900\\/90:hover:is(.rf-dark *){background-color:rgba(127,29,29,.9)}.dark\\:hover\\:rf-bg-zinc-50\\/90:hover:is(.rf-dark *){background-color:hsla(0,0%,98%,.9)}.dark\\:hover\\:rf-bg-zinc-800:hover:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:hover\\:rf-bg-zinc-800\\/80:hover:is(.rf-dark *){background-color:rgba(39,39,42,.8)}.dark\\:hover\\:rf-text-zinc-50:hover:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus\\:rf-bg-zinc-800:focus:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:focus\\:rf-text-zinc-50:focus:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus-visible\\:rf-ring-zinc-300:focus-visible:is(.rf-dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(212 212 216/var(--tw-ring-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-bg-zinc-800[data-selected=true]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-bg-zinc-950[data-state=active]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-bg-zinc-50[data-state=checked]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=open\\]\\:rf-bg-zinc-800[data-state=open]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-text-zinc-50[data-selected=true]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-text-zinc-50[data-state=active]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-text-zinc-900[data-state=checked]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\\:rf-order-1{order:1}.sm\\:rf-order-2{order:2}.sm\\:rf-mt-0{margin-top:0}.sm\\:rf-inline{display:inline}.sm\\:rf-hidden{display:none}.sm\\:rf-w-auto{width:auto}.sm\\:rf-flex-row{flex-direction:row}.sm\\:rf-items-center{align-items:center}.sm\\:rf-justify-end{justify-content:flex-end}.sm\\:rf-gap-3{gap:.75rem}.sm\\:rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.sm\\:rf-rounded-lg{border-radius:var(--radius)}.sm\\:rf-px-4{padding-left:1rem;padding-right:1rem}.sm\\:rf-text-left{text-align:left}.sm\\:rf-text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:rf-text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:768px){.md\\:rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.\\[\\&\\>span\\]\\:rf-line-clamp-1>span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\\[\\&\\>svg\\]\\:rf-size-4>svg{height:1rem;width:1rem}.\\[\\&\\>svg\\]\\:rf-shrink-0>svg{flex-shrink:0}.\\[\\&\\>svg\\]\\:rf-text-red-300>svg{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.\\[\\&\\>svg\\]\\:hover\\:rf-text-red-400:hover>svg{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-py-1\\.5 [cmdk-group-heading]{padding-bottom:.375rem;padding-top:.375rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-font-medium [cmdk-group-heading]{font-weight:500}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-500 [cmdk-group-heading]{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.dark\\:\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-400 [cmdk-group-heading]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:rf-pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\\[\\&_\\[cmdk-group\\]\\]\\:rf-px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\\[\\&_\\[cmdk-input\\]\\]\\:rf-h-12 [cmdk-input]{height:3rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-py-3 [cmdk-item]{padding-bottom:.75rem;padding-top:.75rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-h-5 [cmdk-item] svg{height:1.25rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-w-5 [cmdk-item] svg{width:1.25rem}.\\[\\&_svg\\]\\:rf-pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:rf-size-4 svg{height:1rem;width:1rem}.\\[\\&_svg\\]\\:rf-shrink-0 svg{flex-shrink:0}',cVn=()=>{yt.useEffect(()=>{if(document.querySelector('style[data-styles="tscircuit-runframe"]'))return;const e=document.createElement("style");e.setAttribute("data-styles","tscircuit-runframe"),e.textContent=aVn,document.head.appendChild(e)},[])},lVn=n=>{yt.useEffect(()=>(n?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[n])},oft=n=>`hsl(${Q2.indexOf(n)*137.5%360}, 70%, 50%)`,uVn=({phaseTimings:n})=>{if(!n)return null;const e=Object.values(n).reduce((t,i)=>t+i,0);return lt.jsxs("div",{className:"rf-space-y-2 rf-w-full rf-px-4",children:[lt.jsx("div",{className:"rf-relative rf-h-8 rf-flex rf-rounded-sm",children:Q2.map(t=>{const i=n[t]||0,r=i/e*100;return lt.jsx("div",{className:"rf-group/bar rf-relative rf-overflow-visible",style:{width:`${r}%`,backgroundColor:oft(t)},children:lt.jsxs("div",{className:"rf-opacity-0 group-hover/bar:rf-opacity-100 rf-transition-opacity rf-absolute rf-bottom-full rf-left-1/2 rf-transform -rf-translate-x-1/2 rf-mb-2 rf-px-2 rf-py-1 rf-text-xs rf-whitespace-nowrap rf-rounded rf-bg-gray-900 rf-text-white rf-pointer-events-none",children:[t,": ",i.toFixed(1),"ms"]})},t)})}),lt.jsxs("div",{className:"rf-text-xs rf-text-gray-500",children:["Total: ",e.toFixed(2),"ms"]})]})},dVn=({renderLog:n})=>{const[e,t]=yt.useState("chronological");if(!n)return lt.jsx("div",{className:"rf-p-4 rf-bg-gray-100 rf-rounded-md",children:"No render log, make sure this tab is open when you render (TODO add a rerender button here)"});const i=Object.entries((n==null?void 0:n.phaseTimings)??{});e==="chronological"?i.sort((o,s)=>Q2.indexOf(o[0])-Q2.indexOf(s[0])):i.sort((o,s)=>s[1]-o[1]);const r=i.reduce((o,[s,a])=>o+a,0);return lt.jsxs("div",{className:"rf-bg-white",children:[lt.jsxs("div",{className:"rf-flex rf-justify-between rf-items-center",children:[lt.jsx("div",{children:"Render Logs"}),lt.jsxs("div",{className:"rf-mb-4 rf-pr-2 rf-flex rf-text-xs rf-items-center",children:[lt.jsx("div",{className:"rf-mr-2",children:"Sort by:"}),lt.jsxs("select",{value:e,onChange:o=>t(o.target.value),className:"rf-px-2 rf-py-1 rf-border rf-rounded rf-text-xs",children:[lt.jsx("option",{value:"chronological",children:"Phase Order"}),lt.jsx("option",{value:"longest",children:"Duration"})]})]})]}),lt.jsx(uVn,{phaseTimings:n.phaseTimings}),lt.jsxs("table",{className:"rf-w-full rf-text-xs",children:[lt.jsx("thead",{children:lt.jsxs("tr",{children:[lt.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase Order"}),lt.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase"}),lt.jsx("th",{className:"rf-text-left rf-p-2",children:"Duration (ms)"})]})}),lt.jsx("tbody",{children:i.map(([o,s])=>lt.jsxs("tr",{children:[lt.jsx("td",{className:"rf-p-2",children:Q2.indexOf(o)}),lt.jsx("td",{className:"rf-p-2",children:o}),lt.jsx("td",{className:"rf-p-2",children:lt.jsx("div",{className:"rf-w-8",children:lt.jsx("div",{className:"rf-h-2 rf-rounded-sm",style:{backgroundColor:oft(o),width:`${s/r*100}%`}})})}),lt.jsx("td",{className:"rf-p-2",children:lt.jsxs("div",{className:"rf-flex w-full",children:[lt.jsxs("span",{className:"rf-flex-grow",children:[s,"ms"]}),lt.jsxs("span",{className:"rf-text-gray-500 rf-pr-2",children:[(s/r*100).toFixed(1),"%"]})]})})]},o))})]})]})},AVn=({errorMessage:n,errorStack:e,circuitJsonErrors:t})=>{yt.useEffect(()=>{if(n){const i=new Error(n);e&&(i.stack=e);try{nU.captureException(i)}catch{}}},[n,e]),yt.useEffect(()=>{if(t&&t.length>0)for(const i of t){const r=new Error(i.message||"Circuit JSON Error");i.stack&&(r.stack=i.stack);try{nU.captureException(r,{error_type:i.type})}catch{}}},[t])},hVn="0.0.777";function fVn(n,e){const[t,i]=yt.useState(()=>{try{const r=window.localStorage.getItem(n);return r?JSON.parse(r):e}catch(r){return console.error("Error reading from localStorage:",r),e}});return yt.useEffect(()=>{try{window.localStorage.setItem(n,JSON.stringify(t))}catch(r){console.error("Error writing to localStorage:",r)}},[n,t]),[t,i]}const Yxe={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Hxe=new Map,kX=n=>{const e=Hxe.get(n);return e?Object.fromEntries(Object.entries(e.stores).map(([t,i])=>[t,i.getState()])):{}},pVn=(n,e,t)=>{if(n===void 0)return{type:"untracked",connection:e.connect(t)};const i=Hxe.get(t.name);if(i)return{type:"tracked",store:n,...i};const r={connection:e.connect(t),stores:{}};return Hxe.set(t.name,r),{type:"tracked",store:n,...r}},gVn=(n,e={})=>(t,i,r)=>{const{enabled:o,anonymousActionType:s,store:a,...c}=e;let l;try{l=(o??(Yxe?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return(Yxe?"production":void 0)!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),n(t,i,r);const{connection:u,...d}=pVn(a,l,c);let A=!0;r.setState=(m,_,v)=>{const E=t(m,_);if(!A)return E;const b=v===void 0?{type:s||"anonymous"}:typeof v=="string"?{type:v}:v;return a===void 0?(u==null||u.send(b,i()),E):(u==null||u.send({...b,type:`${a}/${b.type}`},{...kX(c.name),[a]:r.getState()}),E)};const h=(...m)=>{const _=A;A=!1,t(...m),A=_},f=n(r.setState,i,r);if(d.type==="untracked"?u==null||u.init(f):(d.stores[d.store]=r,u==null||u.init(Object.fromEntries(Object.entries(d.stores).map(([m,_])=>[m,m===d.store?f:_.getState()])))),r.dispatchFromDevtools&&typeof r.dispatch=="function"){let m=!1;const _=r.dispatch;r.dispatch=(...v)=>{(Yxe?"production":void 0)!=="production"&&v[0].type==="__setState"&&!m&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),m=!0),_(...v)}}return u.subscribe(m=>{var _;switch(m.type){case"ACTION":if(typeof m.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Vxe(m.payload,v=>{if(v.type==="__setState"){if(a===void 0){h(v.state);return}Object.keys(v.state).length!==1&&console.error(`
13848
13848
  [zustand devtools middleware] Unsupported __setState action format.
13849
13849
  When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
13850
13850
  and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
@@ -13354,7 +13354,7 @@ ${c.join(`
13354
13354
  `)},YAt=function(){var i=parseInt(document.body.getAttribute(tN)||"0",10);return isFinite(i)?i:0},Skn=function(){at.useEffect(function(){return document.body.setAttribute(tN,(YAt()+1).toString()),function(){var i=YAt()-1;i<=0?document.body.removeAttribute(tN):document.body.setAttribute(tN,i.toString())}},[])},Bkn=function(i){var e=i.noRelative,t=i.noImportant,n=i.gapMode,r=n===void 0?"margin":n;Skn();var o=at.useMemo(function(){return Ckn(r)},[r]);return at.createElement(Ekn,{styles:wkn(o,!e,r,t?"":"!important")})},I2e=!1;if(typeof window<"u")try{var BJ=Object.defineProperty({},"passive",{get:function(){return I2e=!0,!0}});window.addEventListener("test",BJ,BJ),window.removeEventListener("test",BJ,BJ)}catch{I2e=!1}var nN=I2e?{passive:!1}:!1,Mkn=function(i){return i.tagName==="TEXTAREA"},VAt=function(i,e){if(!(i instanceof Element))return!1;var t=window.getComputedStyle(i);return t[e]!=="hidden"&&!(t.overflowY===t.overflowX&&!Mkn(i)&&t[e]==="visible")},Rkn=function(i){return VAt(i,"overflowY")},Qkn=function(i){return VAt(i,"overflowX")},jAt=function(i,e){var t=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=KAt(i,n);if(r){var o=WAt(i,n),s=o[1],a=o[2];if(s>a)return!0}n=n.parentNode}while(n&&n!==t.body);return!1},Dkn=function(i){var e=i.scrollTop,t=i.scrollHeight,n=i.clientHeight;return[e,t,n]},Nkn=function(i){var e=i.scrollLeft,t=i.scrollWidth,n=i.clientWidth;return[e,t,n]},KAt=function(i,e){return i==="v"?Rkn(e):Qkn(e)},WAt=function(i,e){return i==="v"?Dkn(e):Nkn(e)},Tkn=function(i,e){return i==="h"&&e==="rtl"?-1:1},kkn=function(i,e,t,n,r){var o=Tkn(i,window.getComputedStyle(e).direction),s=o*n,a=t.target,c=e.contains(a),l=!1,u=s>0,d=0,h=0;do{if(!a)break;var f=WAt(i,a),A=f[0],m=f[1],_=f[2],y=m-_-o*A;(A||y)&&KAt(i,a)&&(d+=y,h+=A);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&a!==document.body||c&&(e.contains(a)||e===a));return(u&&Math.abs(d)<1||!u&&Math.abs(h)<1)&&(l=!0),l},MJ=function(i){return"changedTouches"in i?[i.changedTouches[0].clientX,i.changedTouches[0].clientY]:[0,0]},XAt=function(i){return[i.deltaX,i.deltaY]},qAt=function(i){return i&&"current"in i?i.current:i},Pkn=function(i,e){return i[0]===e[0]&&i[1]===e[1]},Lkn=function(i){return`
13355
13355
  .block-interactivity-`.concat(i,` {pointer-events: none;}
13356
13356
  .allow-interactivity-`).concat(i,` {pointer-events: all;}
13357
- `)},Fkn=0,iN=[];function Ukn(i){var e=at.useRef([]),t=at.useRef([0,0]),n=at.useRef(),r=at.useState(Fkn++)[0],o=at.useState(HAt)[0],s=at.useRef(i);at.useEffect(function(){s.current=i},[i]),at.useEffect(function(){if(i.inert){document.body.classList.add("block-interactivity-".concat(r));var m=skn([i.lockRef.current],(i.shards||[]).map(qAt),!0).filter(Boolean);return m.forEach(function(_){return _.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(r))})}}},[i.inert,i.lockRef.current,i.shards]);var a=at.useCallback(function(m,_){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var y=MJ(m),v=t.current,I="deltaX"in m?m.deltaX:v[0]-y[0],S="deltaY"in m?m.deltaY:v[1]-y[1],L,Q=m.target,T=Math.abs(I)>Math.abs(S)?"h":"v";if("touches"in m&&T==="h"&&Q.type==="range")return!1;var B=jAt(T,Q);if(!B)return!0;if(B?L=T:(L=T==="v"?"h":"v",B=jAt(T,Q)),!B)return!1;if(!n.current&&"changedTouches"in m&&(I||S)&&(n.current=L),!L)return!0;var P=n.current||L;return kkn(P,_,m,P==="h"?I:S)},[]),c=at.useCallback(function(m){var _=m;if(!(!iN.length||iN[iN.length-1]!==o)){var y="deltaY"in _?XAt(_):MJ(_),v=e.current.filter(function(L){return L.name===_.type&&(L.target===_.target||_.target===L.shadowParent)&&Pkn(L.delta,y)})[0];if(v&&v.should){_.cancelable&&_.preventDefault();return}if(!v){var I=(s.current.shards||[]).map(qAt).filter(Boolean).filter(function(L){return L.contains(_.target)}),S=I.length>0?a(_,I[0]):!s.current.noIsolation;S&&_.cancelable&&_.preventDefault()}}},[]),l=at.useCallback(function(m,_,y,v){var I={name:m,delta:_,target:y,should:v,shadowParent:Okn(y)};e.current.push(I),setTimeout(function(){e.current=e.current.filter(function(S){return S!==I})},1)},[]),u=at.useCallback(function(m){t.current=MJ(m),n.current=void 0},[]),d=at.useCallback(function(m){l(m.type,XAt(m),m.target,a(m,i.lockRef.current))},[]),h=at.useCallback(function(m){l(m.type,MJ(m),m.target,a(m,i.lockRef.current))},[]);at.useEffect(function(){return iN.push(o),i.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,nN),document.addEventListener("touchmove",c,nN),document.addEventListener("touchstart",u,nN),function(){iN=iN.filter(function(m){return m!==o}),document.removeEventListener("wheel",c,nN),document.removeEventListener("touchmove",c,nN),document.removeEventListener("touchstart",u,nN)}},[]);var f=i.removeScrollBar,A=i.inert;return at.createElement(at.Fragment,null,A?at.createElement(o,{styles:Lkn(r)}):null,f?at.createElement(Bkn,{noRelative:i.noRelative,gapMode:i.gapMode}):null)}function Okn(i){for(var e=null;i!==null;)i instanceof ShadowRoot&&(e=i.host,i=i.host),i=i.parentNode;return e}const Gkn=Akn(zAt,Ukn);var RJ=at.forwardRef(function(i,e){return at.createElement(SJ,l4({},i,{ref:e,sideCar:Gkn}))});RJ.classNames=SJ.classNames;var x2e=["Enter"," "],zkn=["ArrowDown","PageUp","Home"],JAt=["ArrowUp","PageDown","End"],Hkn=[...zkn,...JAt],Ykn={ltr:[...x2e,"ArrowRight"],rtl:[...x2e,"ArrowLeft"]},Vkn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},HF="Menu",[YF,jkn,Kkn]=QYe(HF),[wR,$At]=Bw(HF,[Kkn,IJ,Aj]),VF=IJ(),ZAt=Aj(),[egt,D8]=wR(HF),[Wkn,jF]=wR(HF),tgt=i=>{const{__scopeMenu:e,open:t=!1,children:n,dir:r,onOpenChange:o,modal:s=!0}=i,a=VF(e),[c,l]=at.useState(null),u=at.useRef(!1),d=Mw(o),h=fhe(r);return at.useEffect(()=>{const f=()=>{u.current=!0,document.addEventListener("pointerdown",A,{capture:!0,once:!0}),document.addEventListener("pointermove",A,{capture:!0,once:!0})},A=()=>u.current=!1;return document.addEventListener("keydown",f,{capture:!0}),()=>{document.removeEventListener("keydown",f,{capture:!0}),document.removeEventListener("pointerdown",A,{capture:!0}),document.removeEventListener("pointermove",A,{capture:!0})}},[]),Je.jsx(p2e,{...a,children:Je.jsx(egt,{scope:e,open:t,onOpenChange:d,content:c,onContentChange:l,children:Je.jsx(Wkn,{scope:e,onClose:at.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:h,modal:s,children:n})})})};tgt.displayName=HF;var Xkn="MenuAnchor",b2e=at.forwardRef((i,e)=>{const{__scopeMenu:t,...n}=i,r=VF(t);return Je.jsx(A2e,{...r,...n,ref:e})});b2e.displayName=Xkn;var C2e="MenuPortal",[qkn,ngt]=wR(C2e,{forceMount:void 0}),igt=i=>{const{__scopeMenu:e,forceMount:t,children:n,container:r}=i,o=D8(C2e,e);return Je.jsx(qkn,{scope:e,forceMount:t,children:Je.jsx(L5,{present:t||o.open,children:Je.jsx(xJ,{asChild:!0,container:r,children:n})})})};igt.displayName=C2e;var Z5="MenuContent",[Jkn,E2e]=wR(Z5),rgt=at.forwardRef((i,e)=>{const t=ngt(Z5,i.__scopeMenu),{forceMount:n=t.forceMount,...r}=i,o=D8(Z5,i.__scopeMenu),s=jF(Z5,i.__scopeMenu);return Je.jsx(YF.Provider,{scope:i.__scopeMenu,children:Je.jsx(L5,{present:n||o.open,children:Je.jsx(YF.Slot,{scope:i.__scopeMenu,children:s.modal?Je.jsx($kn,{...r,ref:e}):Je.jsx(Zkn,{...r,ref:e})})})})}),$kn=at.forwardRef((i,e)=>{const t=D8(Z5,i.__scopeMenu),n=at.useRef(null),r=lx(e,n);return at.useEffect(()=>{const o=n.current;if(o)return m2e(o)},[]),Je.jsx(w2e,{...i,ref:r,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:uA(i.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),Zkn=at.forwardRef((i,e)=>{const t=D8(Z5,i.__scopeMenu);return Je.jsx(w2e,{...i,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),ePn=o6("MenuContent.ScrollLock"),w2e=at.forwardRef((i,e)=>{const{__scopeMenu:t,loop:n=!1,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:f,disableOutsideScroll:A,...m}=i,_=D8(Z5,t),y=jF(Z5,t),v=VF(t),I=ZAt(t),S=jkn(t),[L,Q]=at.useState(null),T=at.useRef(null),B=lx(e,T,_.onContentChange),P=at.useRef(0),R=at.useRef(""),X=at.useRef(0),G=at.useRef(null),q=at.useRef("right"),re=at.useRef(0),ce=A?RJ:at.Fragment,oe=A?{as:ePn,allowPinchZoom:!0}:void 0,ye=we=>{var Mt,ft;const Be=R.current+we,Se=S().filter(Ee=>!Ee.disabled),be=document.activeElement,Pe=(Mt=Se.find(Ee=>Ee.ref.current===be))==null?void 0:Mt.textValue,Ke=Se.map(Ee=>Ee.textValue),et=hPn(Ke,Be,Pe),lt=(ft=Se.find(Ee=>Ee.textValue===et))==null?void 0:ft.ref.current;(function Ee(Oe){R.current=Oe,window.clearTimeout(P.current),Oe!==""&&(P.current=window.setTimeout(()=>Ee(""),1e3))})(Be),lt&&setTimeout(()=>lt.focus())};at.useEffect(()=>()=>window.clearTimeout(P.current),[]),JCe();const fe=at.useCallback(we=>{var Se,be;return q.current===((Se=G.current)==null?void 0:Se.side)&&pPn(we,(be=G.current)==null?void 0:be.area)},[]);return Je.jsx(Jkn,{scope:t,searchRef:R,onItemEnter:at.useCallback(we=>{fe(we)&&we.preventDefault()},[fe]),onItemLeave:at.useCallback(we=>{var Be;fe(we)||((Be=T.current)==null||Be.focus(),Q(null))},[fe]),onTriggerLeave:at.useCallback(we=>{fe(we)&&we.preventDefault()},[fe]),pointerGraceTimerRef:X,onPointerGraceIntentChange:at.useCallback(we=>{G.current=we},[]),children:Je.jsx(ce,{...oe,children:Je.jsx(dJ,{asChild:!0,trapped:r,onMountAutoFocus:uA(o,we=>{var Be;we.preventDefault(),(Be=T.current)==null||Be.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:Je.jsx(uJ,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:f,children:Je.jsx(UYe,{asChild:!0,...I,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:L,onCurrentTabStopIdChange:Q,onEntryFocus:uA(c,we=>{y.isUsingKeyboardRef.current||we.preventDefault()}),preventScrollOnEntryFocus:!0,children:Je.jsx(PAt,{role:"menu","aria-orientation":"vertical","data-state":xgt(_.open),"data-radix-menu-content":"",dir:y.dir,...v,...m,ref:B,style:{outline:"none",...m.style},onKeyDown:uA(m.onKeyDown,we=>{const Se=we.target.closest("[data-radix-menu-content]")===we.currentTarget,be=we.ctrlKey||we.altKey||we.metaKey,Pe=we.key.length===1;Se&&(we.key==="Tab"&&we.preventDefault(),!be&&Pe&&ye(we.key));const Ke=T.current;if(we.target!==Ke||!Hkn.includes(we.key))return;we.preventDefault();const lt=S().filter(Mt=>!Mt.disabled).map(Mt=>Mt.ref.current);JAt.includes(we.key)&&lt.reverse(),uPn(lt)}),onBlur:uA(i.onBlur,we=>{we.currentTarget.contains(we.target)||(window.clearTimeout(P.current),R.current="")}),onPointerMove:uA(i.onPointerMove,WF(we=>{const Be=we.target,Se=re.current!==we.clientX;if(we.currentTarget.contains(Be)&&Se){const be=we.clientX>re.current?"right":"left";q.current=be,re.current=we.clientX}}))})})})})})})});rgt.displayName=Z5;var tPn="MenuGroup",S2e=at.forwardRef((i,e)=>{const{__scopeMenu:t,...n}=i;return Je.jsx(sy.div,{role:"group",...n,ref:e})});S2e.displayName=tPn;var nPn="MenuLabel",ogt=at.forwardRef((i,e)=>{const{__scopeMenu:t,...n}=i;return Je.jsx(sy.div,{...n,ref:e})});ogt.displayName=nPn;var QJ="MenuItem",sgt="menu.itemSelect",DJ=at.forwardRef((i,e)=>{const{disabled:t=!1,onSelect:n,...r}=i,o=at.useRef(null),s=jF(QJ,i.__scopeMenu),a=E2e(QJ,i.__scopeMenu),c=lx(e,o),l=at.useRef(!1),u=()=>{const d=o.current;if(!t&&d){const h=new CustomEvent(sgt,{bubbles:!0,cancelable:!0});d.addEventListener(sgt,f=>n==null?void 0:n(f),{once:!0}),NYe(d,h),h.defaultPrevented?l.current=!1:s.onClose()}};return Je.jsx(agt,{...r,ref:c,disabled:t,onClick:uA(i.onClick,u),onPointerDown:d=>{var h;(h=i.onPointerDown)==null||h.call(i,d),l.current=!0},onPointerUp:uA(i.onPointerUp,d=>{var h;l.current||(h=d.currentTarget)==null||h.click()}),onKeyDown:uA(i.onKeyDown,d=>{const h=a.searchRef.current!=="";t||h&&d.key===" "||x2e.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});DJ.displayName=QJ;var agt=at.forwardRef((i,e)=>{const{__scopeMenu:t,disabled:n=!1,textValue:r,...o}=i,s=E2e(QJ,t),a=ZAt(t),c=at.useRef(null),l=lx(e,c),[u,d]=at.useState(!1),[h,f]=at.useState("");return at.useEffect(()=>{const A=c.current;A&&f((A.textContent??"").trim())},[o.children]),Je.jsx(YF.ItemSlot,{scope:t,disabled:n,textValue:r??h,children:Je.jsx(OYe,{asChild:!0,...a,focusable:!n,children:Je.jsx(sy.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...o,ref:l,onPointerMove:uA(i.onPointerMove,WF(A=>{n?s.onItemLeave(A):(s.onItemEnter(A),A.defaultPrevented||A.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:uA(i.onPointerLeave,WF(A=>s.onItemLeave(A))),onFocus:uA(i.onFocus,()=>d(!0)),onBlur:uA(i.onBlur,()=>d(!1))})})})}),iPn="MenuCheckboxItem",cgt=at.forwardRef((i,e)=>{const{checked:t=!1,onCheckedChange:n,...r}=i;return Je.jsx(fgt,{scope:i.__scopeMenu,checked:t,children:Je.jsx(DJ,{role:"menuitemcheckbox","aria-checked":NJ(t)?"mixed":t,...r,ref:e,"data-state":R2e(t),onSelect:uA(r.onSelect,()=>n==null?void 0:n(NJ(t)?!0:!t),{checkForDefaultPrevented:!1})})})});cgt.displayName=iPn;var lgt="MenuRadioGroup",[rPn,oPn]=wR(lgt,{value:void 0,onValueChange:()=>{}}),ugt=at.forwardRef((i,e)=>{const{value:t,onValueChange:n,...r}=i,o=Mw(n);return Je.jsx(rPn,{scope:i.__scopeMenu,value:t,onValueChange:o,children:Je.jsx(S2e,{...r,ref:e})})});ugt.displayName=lgt;var dgt="MenuRadioItem",hgt=at.forwardRef((i,e)=>{const{value:t,...n}=i,r=oPn(dgt,i.__scopeMenu),o=t===r.value;return Je.jsx(fgt,{scope:i.__scopeMenu,checked:o,children:Je.jsx(DJ,{role:"menuitemradio","aria-checked":o,...n,ref:e,"data-state":R2e(o),onSelect:uA(n.onSelect,()=>{var s;return(s=r.onValueChange)==null?void 0:s.call(r,t)},{checkForDefaultPrevented:!1})})})});hgt.displayName=dgt;var B2e="MenuItemIndicator",[fgt,sPn]=wR(B2e,{checked:!1}),pgt=at.forwardRef((i,e)=>{const{__scopeMenu:t,forceMount:n,...r}=i,o=sPn(B2e,t);return Je.jsx(L5,{present:n||NJ(o.checked)||o.checked===!0,children:Je.jsx(sy.span,{...r,ref:e,"data-state":R2e(o.checked)})})});pgt.displayName=B2e;var aPn="MenuSeparator",Agt=at.forwardRef((i,e)=>{const{__scopeMenu:t,...n}=i;return Je.jsx(sy.div,{role:"separator","aria-orientation":"horizontal",...n,ref:e})});Agt.displayName=aPn;var cPn="MenuArrow",ggt=at.forwardRef((i,e)=>{const{__scopeMenu:t,...n}=i,r=VF(t);return Je.jsx(LAt,{...r,...n,ref:e})});ggt.displayName=cPn;var M2e="MenuSub",[lPn,mgt]=wR(M2e),_gt=i=>{const{__scopeMenu:e,children:t,open:n=!1,onOpenChange:r}=i,o=D8(M2e,e),s=VF(e),[a,c]=at.useState(null),[l,u]=at.useState(null),d=Mw(r);return at.useEffect(()=>(o.open===!1&&d(!1),()=>d(!1)),[o.open,d]),Je.jsx(p2e,{...s,children:Je.jsx(egt,{scope:e,open:n,onOpenChange:d,content:l,onContentChange:u,children:Je.jsx(lPn,{scope:e,contentId:c2(),triggerId:c2(),trigger:a,onTriggerChange:c,children:t})})})};_gt.displayName=M2e;var KF="MenuSubTrigger",ygt=at.forwardRef((i,e)=>{const t=D8(KF,i.__scopeMenu),n=jF(KF,i.__scopeMenu),r=mgt(KF,i.__scopeMenu),o=E2e(KF,i.__scopeMenu),s=at.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=o,l={__scopeMenu:i.__scopeMenu},u=at.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return at.useEffect(()=>u,[u]),at.useEffect(()=>{const d=a.current;return()=>{window.clearTimeout(d),c(null)}},[a,c]),Je.jsx(b2e,{asChild:!0,...l,children:Je.jsx(agt,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":r.contentId,"data-state":xgt(t.open),...i,ref:eS(e,r.onTriggerChange),onClick:d=>{var h;(h=i.onClick)==null||h.call(i,d),!(i.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:uA(i.onPointerMove,WF(d=>{o.onItemEnter(d),!d.defaultPrevented&&!i.disabled&&!t.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{t.onOpenChange(!0),u()},100))})),onPointerLeave:uA(i.onPointerLeave,WF(d=>{var f,A;u();const h=(f=t.content)==null?void 0:f.getBoundingClientRect();if(h){const m=(A=t.content)==null?void 0:A.dataset.side,_=m==="right",y=_?-5:5,v=h[_?"left":"right"],I=h[_?"right":"left"];o.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:v,y:h.top},{x:I,y:h.top},{x:I,y:h.bottom},{x:v,y:h.bottom}],side:m}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(d),d.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:uA(i.onKeyDown,d=>{var f;const h=o.searchRef.current!=="";i.disabled||h&&d.key===" "||Ykn[n.dir].includes(d.key)&&(t.onOpenChange(!0),(f=t.content)==null||f.focus(),d.preventDefault())})})})});ygt.displayName=KF;var vgt="MenuSubContent",Igt=at.forwardRef((i,e)=>{const t=ngt(Z5,i.__scopeMenu),{forceMount:n=t.forceMount,...r}=i,o=D8(Z5,i.__scopeMenu),s=jF(Z5,i.__scopeMenu),a=mgt(vgt,i.__scopeMenu),c=at.useRef(null),l=lx(e,c);return Je.jsx(YF.Provider,{scope:i.__scopeMenu,children:Je.jsx(L5,{present:n||o.open,children:Je.jsx(YF.Slot,{scope:i.__scopeMenu,children:Je.jsx(w2e,{id:a.contentId,"aria-labelledby":a.triggerId,...r,ref:l,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;s.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:uA(i.onFocusOutside,u=>{u.target!==a.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:uA(i.onEscapeKeyDown,u=>{s.onClose(),u.preventDefault()}),onKeyDown:uA(i.onKeyDown,u=>{var f;const d=u.currentTarget.contains(u.target),h=Vkn[s.dir].includes(u.key);d&&h&&(o.onOpenChange(!1),(f=a.trigger)==null||f.focus(),u.preventDefault())})})})})})});Igt.displayName=vgt;function xgt(i){return i?"open":"closed"}function NJ(i){return i==="indeterminate"}function R2e(i){return NJ(i)?"indeterminate":i?"checked":"unchecked"}function uPn(i){const e=document.activeElement;for(const t of i)if(t===e||(t.focus(),document.activeElement!==e))return}function dPn(i,e){return i.map((t,n)=>i[(e+n)%i.length])}function hPn(i,e,t){const r=e.length>1&&Array.from(e).every(l=>l===e[0])?e[0]:e,o=t?i.indexOf(t):-1;let s=dPn(i,Math.max(o,0));r.length===1&&(s=s.filter(l=>l!==t));const c=s.find(l=>l.toLowerCase().startsWith(r.toLowerCase()));return c!==t?c:void 0}function fPn(i,e){const{x:t,y:n}=i;let r=!1;for(let o=0,s=e.length-1;o<e.length;s=o++){const a=e[o],c=e[s],l=a.x,u=a.y,d=c.x,h=c.y;u>n!=h>n&&t<(d-l)*(n-u)/(h-u)+l&&(r=!r)}return r}function pPn(i,e){if(!e)return!1;const t={x:i.clientX,y:i.clientY};return fPn(t,e)}function WF(i){return e=>e.pointerType==="mouse"?i(e):void 0}var APn=tgt,gPn=b2e,mPn=igt,_Pn=rgt,yPn=S2e,vPn=ogt,IPn=DJ,xPn=cgt,bPn=ugt,CPn=hgt,EPn=pgt,wPn=Agt,SPn=ggt,BPn=_gt,MPn=ygt,RPn=Igt,TJ="DropdownMenu",[QPn,nHi]=Bw(TJ,[$At]),x2=$At(),[DPn,bgt]=QPn(TJ),Cgt=i=>{const{__scopeDropdownMenu:e,children:t,dir:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=i,c=x2(e),l=at.useRef(null),[u,d]=s6({prop:r,defaultProp:o??!1,onChange:s,caller:TJ});return Je.jsx(DPn,{scope:e,triggerId:c2(),triggerRef:l,contentId:c2(),open:u,onOpenChange:d,onOpenToggle:at.useCallback(()=>d(h=>!h),[d]),modal:a,children:Je.jsx(APn,{...c,open:u,onOpenChange:d,dir:n,modal:a,children:t})})};Cgt.displayName=TJ;var Egt="DropdownMenuTrigger",wgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,disabled:n=!1,...r}=i,o=bgt(Egt,t),s=x2(t);return Je.jsx(gPn,{asChild:!0,...s,children:Je.jsx(sy.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...r,ref:eS(e,o.triggerRef),onPointerDown:uA(i.onPointerDown,a=>{!n&&a.button===0&&a.ctrlKey===!1&&(o.onOpenToggle(),o.open||a.preventDefault())}),onKeyDown:uA(i.onKeyDown,a=>{n||(["Enter"," "].includes(a.key)&&o.onOpenToggle(),a.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});wgt.displayName=Egt;var NPn="DropdownMenuPortal",Sgt=i=>{const{__scopeDropdownMenu:e,...t}=i,n=x2(e);return Je.jsx(mPn,{...n,...t})};Sgt.displayName=NPn;var Bgt="DropdownMenuContent",Mgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=bgt(Bgt,t),o=x2(t),s=at.useRef(!1);return Je.jsx(_Pn,{id:r.contentId,"aria-labelledby":r.triggerId,...o,...n,ref:e,onCloseAutoFocus:uA(i.onCloseAutoFocus,a=>{var c;s.current||(c=r.triggerRef.current)==null||c.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:uA(i.onInteractOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;(!r.modal||u)&&(s.current=!0)}),style:{...i.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Mgt.displayName=Bgt;var TPn="DropdownMenuGroup",kPn=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(yPn,{...r,...n,ref:e})});kPn.displayName=TPn;var PPn="DropdownMenuLabel",Rgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(vPn,{...r,...n,ref:e})});Rgt.displayName=PPn;var LPn="DropdownMenuItem",Qgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(IPn,{...r,...n,ref:e})});Qgt.displayName=LPn;var FPn="DropdownMenuCheckboxItem",Dgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(xPn,{...r,...n,ref:e})});Dgt.displayName=FPn;var UPn="DropdownMenuRadioGroup",OPn=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(bPn,{...r,...n,ref:e})});OPn.displayName=UPn;var GPn="DropdownMenuRadioItem",Ngt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(CPn,{...r,...n,ref:e})});Ngt.displayName=GPn;var zPn="DropdownMenuItemIndicator",Tgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(EPn,{...r,...n,ref:e})});Tgt.displayName=zPn;var HPn="DropdownMenuSeparator",kgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(wPn,{...r,...n,ref:e})});kgt.displayName=HPn;var YPn="DropdownMenuArrow",VPn=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(SPn,{...r,...n,ref:e})});VPn.displayName=YPn;var jPn=i=>{const{__scopeDropdownMenu:e,children:t,open:n,onOpenChange:r,defaultOpen:o}=i,s=x2(e),[a,c]=s6({prop:n,defaultProp:o??!1,onChange:r,caller:"DropdownMenuSub"});return Je.jsx(BPn,{...s,open:a,onOpenChange:c,children:t})},KPn="DropdownMenuSubTrigger",Pgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(MPn,{...r,...n,ref:e})});Pgt.displayName=KPn;var WPn="DropdownMenuSubContent",Lgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(RPn,{...r,...n,ref:e,style:{...i.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Lgt.displayName=WPn;var XPn=Cgt,qPn=wgt,Fgt=Sgt,Ugt=Mgt,Ogt=Rgt,Ggt=Qgt,zgt=Dgt,Hgt=Ngt,Ygt=Tgt,Vgt=kgt,JPn=jPn,jgt=Pgt,Kgt=Lgt;const Q2e=XPn,D2e=qPn,N2e=Fgt,T2e=JPn,kJ=at.forwardRef(({className:i,inset:e,children:t,...n},r)=>Je.jsxs(jgt,{ref:r,className:Cp("rf-flex rf-cursor-default rf-gap-2 rf-select-none rf-items-center rf-rounded-sm rf-px-2 rf-py-1.5 rf-text-sm rf-outline-none focus:rf-bg-zinc-100 data-[state=open]:rf-bg-zinc-100 [&_svg]:rf-pointer-events-none [&_svg]:rf-size-4 [&_svg]:rf-shrink-0 dark:focus:rf-bg-zinc-800 dark:data-[state=open]:rf-bg-zinc-800",e&&"rf-pl-8",i),...n,children:[t,Je.jsx(jCe,{className:"rf-ml-auto"})]}));kJ.displayName=jgt.displayName;const PJ=at.forwardRef(({className:i,...e},t)=>Je.jsx(Kgt,{ref:t,className:Cp("rf-z-50 rf-min-w-[8rem] rf-overflow-hidden rf-rounded-md rf-border rf-border-zinc-200 rf-bg-white rf-p-1 rf-text-zinc-950 rf-shadow-lg data-[state=open]:rf-animate-in data-[state=closed]:rf-animate-out data-[state=closed]:rf-fade-out-0 data-[state=open]:rf-fade-in-0 data-[state=closed]:rf-zoom-out-95 data-[state=open]:rf-zoom-in-95 data-[side=bottom]:rf-slide-in-from-top-2 data-[side=left]:rf-slide-in-from-right-2 data-[side=right]:rf-slide-in-from-left-2 data-[side=top]:rf-slide-in-from-bottom-2 dark:rf-border-zinc-800 dark:rf-bg-zinc-950 dark:rf-text-zinc-50",i),...e}));PJ.displayName=Kgt.displayName;const LJ=at.forwardRef(({className:i,sideOffset:e=4,...t},n)=>Je.jsx(Fgt,{children:Je.jsx(Ugt,{ref:n,sideOffset:e,className:Cp("rf-z-50 rf-min-w-[8rem] rf-overflow-hidden rf-rounded-md rf-border rf-border-zinc-200 rf-bg-white rf-p-1 rf-text-zinc-950 rf-shadow-md dark:rf-border-zinc-800 dark:rf-bg-zinc-950 dark:rf-text-zinc-50","data-[state=open]:rf-animate-in data-[state=closed]:rf-animate-out data-[state=closed]:rf-fade-out-0 data-[state=open]:rf-fade-in-0 data-[state=closed]:rf-zoom-out-95 data-[state=open]:rf-zoom-in-95 data-[side=bottom]:rf-slide-in-from-top-2 data-[side=left]:rf-slide-in-from-right-2 data-[side=right]:rf-slide-in-from-left-2 data-[side=top]:rf-slide-in-from-bottom-2",i),...t})}));LJ.displayName=Ugt.displayName;const V2=at.forwardRef(({className:i,inset:e,...t},n)=>Je.jsx(Ggt,{ref:n,className:Cp("rf-relative rf-flex rf-cursor-default rf-select-none rf-items-center rf-gap-2 rf-rounded-sm rf-px-2 rf-py-1.5 rf-text-sm rf-outline-none rf-transition-colors focus:rf-bg-zinc-100 focus:rf-text-zinc-900 data-[disabled]:rf-pointer-events-none data-[disabled]:rf-opacity-50 [&>svg]:rf-size-4 [&>svg]:rf-shrink-0 dark:focus:rf-bg-zinc-800 dark:focus:rf-text-zinc-50",e&&"rf-pl-8",i),...t}));V2.displayName=Ggt.displayName;const $Pn=at.forwardRef(({className:i,children:e,checked:t,...n},r)=>Je.jsxs(zgt,{ref:r,className:Cp("rf-relative rf-flex rf-cursor-default rf-select-none rf-items-center rf-rounded-sm rf-py-1.5 rf-pl-8 rf-pr-2 rf-text-sm rf-outline-none rf-transition-colors focus:rf-bg-zinc-100 focus:rf-text-zinc-900 data-[disabled]:rf-pointer-events-none data-[disabled]:rf-opacity-50 dark:focus:rf-bg-zinc-800 dark:focus:rf-text-zinc-50",i),checked:t,...n,children:[Je.jsx("span",{className:"rf-absolute rf-left-2 rf-flex rf-h-3.5 rf-w-3.5 rf-items-center rf-justify-center",children:Je.jsx(Ygt,{children:Je.jsx(lJ,{className:"rf-h-4 rf-w-4"})})}),e]}));$Pn.displayName=zgt.displayName;const ZPn=at.forwardRef(({className:i,children:e,...t},n)=>Je.jsxs(Hgt,{ref:n,className:Cp("rf-relative rf-flex rf-cursor-default rf-select-none rf-items-center rf-rounded-sm rf-py-1.5 rf-pl-8 rf-pr-2 rf-text-sm rf-outline-none rf-transition-colors focus:rf-bg-zinc-100 focus:rf-text-zinc-900 data-[disabled]:rf-pointer-events-none data-[disabled]:rf-opacity-50 dark:focus:rf-bg-zinc-800 dark:focus:rf-text-zinc-50",i),...t,children:[Je.jsx("span",{className:"rf-absolute rf-left-2 rf-flex rf-h-3.5 rf-w-3.5 rf-items-center rf-justify-center",children:Je.jsx(Ygt,{children:Je.jsx(Ypt,{className:"rf-h-2 rf-w-2 rf-fill-current"})})}),e]}));ZPn.displayName=Hgt.displayName;const eLn=at.forwardRef(({className:i,inset:e,...t},n)=>Je.jsx(Ogt,{ref:n,className:Cp("rf-px-2 rf-py-1.5 rf-text-sm rf-font-semibold",e&&"rf-pl-8",i),...t}));eLn.displayName=Ogt.displayName;const Wgt=at.forwardRef(({className:i,...e},t)=>Je.jsx(Vgt,{ref:t,className:Cp("rf--mx-1 rf-my-1 rf-h-px rf-bg-zinc-100 dark:rf-bg-zinc-800",i),...e}));Wgt.displayName=Vgt.displayName;const Xgt=({autoroutingLog:i,onReportAutoroutingLog:e})=>Je.jsx(Je.Fragment,{children:Object.keys(i??{}).length>0&&Je.jsxs(Q2e,{children:[Je.jsx(D2e,{asChild:!0,children:Je.jsxs(Ax,{variant:"outline",children:[Je.jsx(aNn,{className:"rf-w-4 rf-h-4 rf-mr-2"}),"Open Autorouting Log"]})}),Je.jsx(LJ,{className:"rf-w-96",children:Object.entries(i??{}).map(([t,{simpleRouteJson:n}])=>Je.jsxs(V2,{className:"rf-flex rf-justify-between rf-items-center",children:[Je.jsx("span",{className:"rf-truncate rf-text-xs rf-mr-2",children:t}),Je.jsxs("div",{className:"rf-flex rf-gap-2",children:[Je.jsxs(Ax,{variant:"outline",size:"sm",onClick:r=>{r.stopPropagation();const o=new Blob([JSON.stringify(n,null,2)],{type:"application/json"}),s=URL.createObjectURL(o),a=document.createElement("a");a.href=s,a.download=`${t}-autorouting.json`,a.click(),URL.revokeObjectURL(s)},children:[Je.jsx(lNn,{className:"rf-w-3 rf-h-3"}),"Download"]}),e&&Je.jsxs(Ax,{variant:"outline",size:"sm",onClick:r=>{r.stopPropagation(),e&&e(t,{simpleRouteJson:n})},children:[Je.jsx(_Nn,{className:"rf-w-3 rf-h-3"}),"Report Bug"]})]})]},t))})]})}),tLn=({code:i,fsMap:e,autoroutingLog:t,circuitJsonErrors:n,circuitJsonWarnings:r,onReportAutoroutingLog:o,errorMessage:s,errorStack:a,circuitJson:c,evalVersion:l})=>{const u=at.useMemo(()=>{const P=[];if(s&&P.push({type:"Execution Error",message:s,stack:a||void 0,source:"execution"}),n&&n.length>0)for(const R of n)P.push({type:R.type||"Circuit JSON Error",message:R.message||"No error message available",stack:R.stack||"",source:"circuitJson"});return P},[s,a,n]),d=at.useMemo(()=>{if(!c||!Array.isArray(c))return;const P=c.find(R=>R.type==="source_project_metadata");return P==null?void 0:P.software_used_string},[c]),h=at.useMemo(()=>{const P=[];if(r&&r.length>0)for(const R of r)P.push({type:R.type||"Circuit JSON Warning",message:R.message||"No warning message available",stack:R.stack||"",source:"circuitJson"});return P},[r]),f=()=>e?Xun(e instanceof Map?Object.fromEntries(e.entries()):e):xNn(i??""),A=(P,R)=>{const X=`https://github.com/tscircuit/tscircuit.com/issues/new?title=${encodeURIComponent(P)}&body=${encodeURIComponent(R)}`;window.open(X,"_blank")},[m,_]=at.useState(0),[y,v]=at.useState(0);if(u.length===0&&h.length===0)return Je.jsxs("div",{className:"px-2",children:[Je.jsx("div",{className:"rf-mt-4 rf-bg-green-50 rf-rounded-md rf-border rf-border-green-200",children:Je.jsxs("div",{className:"rf-p-4",children:[Je.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-green-800 rf-mb-3",children:"No errors or warnings!"}),Je.jsx("p",{className:"rf-text-sm rf-text-green-700",children:"Your code is running without any errors or warnings."})]})}),Je.jsxs("div",{className:"rf-flex rf-gap-2 rf-mt-4 rf-justify-end",children:[Je.jsx(Xgt,{autoroutingLog:t,onReportAutoroutingLog:o}),Je.jsxs(Ax,{variant:"outline",className:"rf-p-1",onClick:()=>{const P=f();A("Issue Report",`[Package code to reproduce](${P})`)},children:[Je.jsx(VCe,{className:"rf-w-4 rf-h-4"}),"Report Issue"]})]})]});const I=()=>{_(P=>Math.max(P-1,0))},S=()=>{_(P=>Math.min(P+1,u.length-1))},L=()=>{v(P=>Math.max(P-1,0))},Q=()=>{v(P=>Math.min(P+1,h.length-1))},T=u[m],B=h[y];return Je.jsxs(Je.Fragment,{children:[Je.jsxs("div",{className:"rf-w-[95%] rf-mx-auto",children:[u.length>1&&Je.jsxs("div",{className:"rf-flex rf-items-center rf-gap-2 rf-mb-2",children:[Je.jsx("button",{type:"button",className:"rf-p-1 rf-rounded-sm rf-transition-colors",onClick:I,disabled:m===0,children:Je.jsx(Hpt,{className:"rf-h-4 rf-w-4 rf-text-red-500"})}),Je.jsx("button",{type:"button",className:"rf-p-1 rf-rounded-sm rf-transition-colors",onClick:S,disabled:m===u.length-1,children:Je.jsx(jCe,{className:"rf-h-4 rf-w-4 rf-text-red-500"})}),Je.jsxs("span",{className:"rf-text-sm rf-text-red-600",children:[m+1," of ",u.length," errors"]})]}),T&&Je.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200 rf-max-h-[500px] rf-overflow-y-auto rf-px-2",children:Je.jsxs("div",{className:"rf-p-4",children:[Je.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-1",children:T.type}),Je.jsx("p",{className:"rf-text-xs rf-font-mono rf-whitespace-pre-wrap rf-text-red-600",children:T.message}),(T.stack||l||d)&&Je.jsxs("details",{style:{whiteSpace:"pre-wrap"},className:"rf-text-xs rf-font-mono rf-text-red-600 rf-mt-2",children:[l&&`@tscircuit/eval@${l}
13357
+ `)},Fkn=0,iN=[];function Ukn(i){var e=at.useRef([]),t=at.useRef([0,0]),n=at.useRef(),r=at.useState(Fkn++)[0],o=at.useState(HAt)[0],s=at.useRef(i);at.useEffect(function(){s.current=i},[i]),at.useEffect(function(){if(i.inert){document.body.classList.add("block-interactivity-".concat(r));var m=skn([i.lockRef.current],(i.shards||[]).map(qAt),!0).filter(Boolean);return m.forEach(function(_){return _.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(r))})}}},[i.inert,i.lockRef.current,i.shards]);var a=at.useCallback(function(m,_){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var y=MJ(m),v=t.current,I="deltaX"in m?m.deltaX:v[0]-y[0],S="deltaY"in m?m.deltaY:v[1]-y[1],L,Q=m.target,T=Math.abs(I)>Math.abs(S)?"h":"v";if("touches"in m&&T==="h"&&Q.type==="range")return!1;var B=jAt(T,Q);if(!B)return!0;if(B?L=T:(L=T==="v"?"h":"v",B=jAt(T,Q)),!B)return!1;if(!n.current&&"changedTouches"in m&&(I||S)&&(n.current=L),!L)return!0;var P=n.current||L;return kkn(P,_,m,P==="h"?I:S)},[]),c=at.useCallback(function(m){var _=m;if(!(!iN.length||iN[iN.length-1]!==o)){var y="deltaY"in _?XAt(_):MJ(_),v=e.current.filter(function(L){return L.name===_.type&&(L.target===_.target||_.target===L.shadowParent)&&Pkn(L.delta,y)})[0];if(v&&v.should){_.cancelable&&_.preventDefault();return}if(!v){var I=(s.current.shards||[]).map(qAt).filter(Boolean).filter(function(L){return L.contains(_.target)}),S=I.length>0?a(_,I[0]):!s.current.noIsolation;S&&_.cancelable&&_.preventDefault()}}},[]),l=at.useCallback(function(m,_,y,v){var I={name:m,delta:_,target:y,should:v,shadowParent:Okn(y)};e.current.push(I),setTimeout(function(){e.current=e.current.filter(function(S){return S!==I})},1)},[]),u=at.useCallback(function(m){t.current=MJ(m),n.current=void 0},[]),d=at.useCallback(function(m){l(m.type,XAt(m),m.target,a(m,i.lockRef.current))},[]),h=at.useCallback(function(m){l(m.type,MJ(m),m.target,a(m,i.lockRef.current))},[]);at.useEffect(function(){return iN.push(o),i.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,nN),document.addEventListener("touchmove",c,nN),document.addEventListener("touchstart",u,nN),function(){iN=iN.filter(function(m){return m!==o}),document.removeEventListener("wheel",c,nN),document.removeEventListener("touchmove",c,nN),document.removeEventListener("touchstart",u,nN)}},[]);var f=i.removeScrollBar,A=i.inert;return at.createElement(at.Fragment,null,A?at.createElement(o,{styles:Lkn(r)}):null,f?at.createElement(Bkn,{noRelative:i.noRelative,gapMode:i.gapMode}):null)}function Okn(i){for(var e=null;i!==null;)i instanceof ShadowRoot&&(e=i.host,i=i.host),i=i.parentNode;return e}const Gkn=Akn(zAt,Ukn);var RJ=at.forwardRef(function(i,e){return at.createElement(SJ,l4({},i,{ref:e,sideCar:Gkn}))});RJ.classNames=SJ.classNames;var x2e=["Enter"," "],zkn=["ArrowDown","PageUp","Home"],JAt=["ArrowUp","PageDown","End"],Hkn=[...zkn,...JAt],Ykn={ltr:[...x2e,"ArrowRight"],rtl:[...x2e,"ArrowLeft"]},Vkn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},HF="Menu",[YF,jkn,Kkn]=QYe(HF),[wR,$At]=Bw(HF,[Kkn,IJ,Aj]),VF=IJ(),ZAt=Aj(),[egt,D8]=wR(HF),[Wkn,jF]=wR(HF),tgt=i=>{const{__scopeMenu:e,open:t=!1,children:n,dir:r,onOpenChange:o,modal:s=!0}=i,a=VF(e),[c,l]=at.useState(null),u=at.useRef(!1),d=Mw(o),h=fhe(r);return at.useEffect(()=>{const f=()=>{u.current=!0,document.addEventListener("pointerdown",A,{capture:!0,once:!0}),document.addEventListener("pointermove",A,{capture:!0,once:!0})},A=()=>u.current=!1;return document.addEventListener("keydown",f,{capture:!0}),()=>{document.removeEventListener("keydown",f,{capture:!0}),document.removeEventListener("pointerdown",A,{capture:!0}),document.removeEventListener("pointermove",A,{capture:!0})}},[]),Je.jsx(p2e,{...a,children:Je.jsx(egt,{scope:e,open:t,onOpenChange:d,content:c,onContentChange:l,children:Je.jsx(Wkn,{scope:e,onClose:at.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:h,modal:s,children:n})})})};tgt.displayName=HF;var Xkn="MenuAnchor",b2e=at.forwardRef((i,e)=>{const{__scopeMenu:t,...n}=i,r=VF(t);return Je.jsx(A2e,{...r,...n,ref:e})});b2e.displayName=Xkn;var C2e="MenuPortal",[qkn,ngt]=wR(C2e,{forceMount:void 0}),igt=i=>{const{__scopeMenu:e,forceMount:t,children:n,container:r}=i,o=D8(C2e,e);return Je.jsx(qkn,{scope:e,forceMount:t,children:Je.jsx(L5,{present:t||o.open,children:Je.jsx(xJ,{asChild:!0,container:r,children:n})})})};igt.displayName=C2e;var Z5="MenuContent",[Jkn,E2e]=wR(Z5),rgt=at.forwardRef((i,e)=>{const t=ngt(Z5,i.__scopeMenu),{forceMount:n=t.forceMount,...r}=i,o=D8(Z5,i.__scopeMenu),s=jF(Z5,i.__scopeMenu);return Je.jsx(YF.Provider,{scope:i.__scopeMenu,children:Je.jsx(L5,{present:n||o.open,children:Je.jsx(YF.Slot,{scope:i.__scopeMenu,children:s.modal?Je.jsx($kn,{...r,ref:e}):Je.jsx(Zkn,{...r,ref:e})})})})}),$kn=at.forwardRef((i,e)=>{const t=D8(Z5,i.__scopeMenu),n=at.useRef(null),r=lx(e,n);return at.useEffect(()=>{const o=n.current;if(o)return m2e(o)},[]),Je.jsx(w2e,{...i,ref:r,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:uA(i.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),Zkn=at.forwardRef((i,e)=>{const t=D8(Z5,i.__scopeMenu);return Je.jsx(w2e,{...i,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),ePn=o6("MenuContent.ScrollLock"),w2e=at.forwardRef((i,e)=>{const{__scopeMenu:t,loop:n=!1,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:f,disableOutsideScroll:A,...m}=i,_=D8(Z5,t),y=jF(Z5,t),v=VF(t),I=ZAt(t),S=jkn(t),[L,Q]=at.useState(null),T=at.useRef(null),B=lx(e,T,_.onContentChange),P=at.useRef(0),R=at.useRef(""),X=at.useRef(0),G=at.useRef(null),q=at.useRef("right"),re=at.useRef(0),ce=A?RJ:at.Fragment,oe=A?{as:ePn,allowPinchZoom:!0}:void 0,ye=we=>{var Mt,ft;const Be=R.current+we,Se=S().filter(Ee=>!Ee.disabled),be=document.activeElement,Pe=(Mt=Se.find(Ee=>Ee.ref.current===be))==null?void 0:Mt.textValue,Ke=Se.map(Ee=>Ee.textValue),et=hPn(Ke,Be,Pe),lt=(ft=Se.find(Ee=>Ee.textValue===et))==null?void 0:ft.ref.current;(function Ee(Oe){R.current=Oe,window.clearTimeout(P.current),Oe!==""&&(P.current=window.setTimeout(()=>Ee(""),1e3))})(Be),lt&&setTimeout(()=>lt.focus())};at.useEffect(()=>()=>window.clearTimeout(P.current),[]),JCe();const fe=at.useCallback(we=>{var Se,be;return q.current===((Se=G.current)==null?void 0:Se.side)&&pPn(we,(be=G.current)==null?void 0:be.area)},[]);return Je.jsx(Jkn,{scope:t,searchRef:R,onItemEnter:at.useCallback(we=>{fe(we)&&we.preventDefault()},[fe]),onItemLeave:at.useCallback(we=>{var Be;fe(we)||((Be=T.current)==null||Be.focus(),Q(null))},[fe]),onTriggerLeave:at.useCallback(we=>{fe(we)&&we.preventDefault()},[fe]),pointerGraceTimerRef:X,onPointerGraceIntentChange:at.useCallback(we=>{G.current=we},[]),children:Je.jsx(ce,{...oe,children:Je.jsx(dJ,{asChild:!0,trapped:r,onMountAutoFocus:uA(o,we=>{var Be;we.preventDefault(),(Be=T.current)==null||Be.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:Je.jsx(uJ,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:f,children:Je.jsx(UYe,{asChild:!0,...I,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:L,onCurrentTabStopIdChange:Q,onEntryFocus:uA(c,we=>{y.isUsingKeyboardRef.current||we.preventDefault()}),preventScrollOnEntryFocus:!0,children:Je.jsx(PAt,{role:"menu","aria-orientation":"vertical","data-state":xgt(_.open),"data-radix-menu-content":"",dir:y.dir,...v,...m,ref:B,style:{outline:"none",...m.style},onKeyDown:uA(m.onKeyDown,we=>{const Se=we.target.closest("[data-radix-menu-content]")===we.currentTarget,be=we.ctrlKey||we.altKey||we.metaKey,Pe=we.key.length===1;Se&&(we.key==="Tab"&&we.preventDefault(),!be&&Pe&&ye(we.key));const Ke=T.current;if(we.target!==Ke||!Hkn.includes(we.key))return;we.preventDefault();const lt=S().filter(Mt=>!Mt.disabled).map(Mt=>Mt.ref.current);JAt.includes(we.key)&&lt.reverse(),uPn(lt)}),onBlur:uA(i.onBlur,we=>{we.currentTarget.contains(we.target)||(window.clearTimeout(P.current),R.current="")}),onPointerMove:uA(i.onPointerMove,WF(we=>{const Be=we.target,Se=re.current!==we.clientX;if(we.currentTarget.contains(Be)&&Se){const be=we.clientX>re.current?"right":"left";q.current=be,re.current=we.clientX}}))})})})})})})});rgt.displayName=Z5;var tPn="MenuGroup",S2e=at.forwardRef((i,e)=>{const{__scopeMenu:t,...n}=i;return Je.jsx(sy.div,{role:"group",...n,ref:e})});S2e.displayName=tPn;var nPn="MenuLabel",ogt=at.forwardRef((i,e)=>{const{__scopeMenu:t,...n}=i;return Je.jsx(sy.div,{...n,ref:e})});ogt.displayName=nPn;var QJ="MenuItem",sgt="menu.itemSelect",DJ=at.forwardRef((i,e)=>{const{disabled:t=!1,onSelect:n,...r}=i,o=at.useRef(null),s=jF(QJ,i.__scopeMenu),a=E2e(QJ,i.__scopeMenu),c=lx(e,o),l=at.useRef(!1),u=()=>{const d=o.current;if(!t&&d){const h=new CustomEvent(sgt,{bubbles:!0,cancelable:!0});d.addEventListener(sgt,f=>n==null?void 0:n(f),{once:!0}),NYe(d,h),h.defaultPrevented?l.current=!1:s.onClose()}};return Je.jsx(agt,{...r,ref:c,disabled:t,onClick:uA(i.onClick,u),onPointerDown:d=>{var h;(h=i.onPointerDown)==null||h.call(i,d),l.current=!0},onPointerUp:uA(i.onPointerUp,d=>{var h;l.current||(h=d.currentTarget)==null||h.click()}),onKeyDown:uA(i.onKeyDown,d=>{const h=a.searchRef.current!=="";t||h&&d.key===" "||x2e.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});DJ.displayName=QJ;var agt=at.forwardRef((i,e)=>{const{__scopeMenu:t,disabled:n=!1,textValue:r,...o}=i,s=E2e(QJ,t),a=ZAt(t),c=at.useRef(null),l=lx(e,c),[u,d]=at.useState(!1),[h,f]=at.useState("");return at.useEffect(()=>{const A=c.current;A&&f((A.textContent??"").trim())},[o.children]),Je.jsx(YF.ItemSlot,{scope:t,disabled:n,textValue:r??h,children:Je.jsx(OYe,{asChild:!0,...a,focusable:!n,children:Je.jsx(sy.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...o,ref:l,onPointerMove:uA(i.onPointerMove,WF(A=>{n?s.onItemLeave(A):(s.onItemEnter(A),A.defaultPrevented||A.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:uA(i.onPointerLeave,WF(A=>s.onItemLeave(A))),onFocus:uA(i.onFocus,()=>d(!0)),onBlur:uA(i.onBlur,()=>d(!1))})})})}),iPn="MenuCheckboxItem",cgt=at.forwardRef((i,e)=>{const{checked:t=!1,onCheckedChange:n,...r}=i;return Je.jsx(fgt,{scope:i.__scopeMenu,checked:t,children:Je.jsx(DJ,{role:"menuitemcheckbox","aria-checked":NJ(t)?"mixed":t,...r,ref:e,"data-state":R2e(t),onSelect:uA(r.onSelect,()=>n==null?void 0:n(NJ(t)?!0:!t),{checkForDefaultPrevented:!1})})})});cgt.displayName=iPn;var lgt="MenuRadioGroup",[rPn,oPn]=wR(lgt,{value:void 0,onValueChange:()=>{}}),ugt=at.forwardRef((i,e)=>{const{value:t,onValueChange:n,...r}=i,o=Mw(n);return Je.jsx(rPn,{scope:i.__scopeMenu,value:t,onValueChange:o,children:Je.jsx(S2e,{...r,ref:e})})});ugt.displayName=lgt;var dgt="MenuRadioItem",hgt=at.forwardRef((i,e)=>{const{value:t,...n}=i,r=oPn(dgt,i.__scopeMenu),o=t===r.value;return Je.jsx(fgt,{scope:i.__scopeMenu,checked:o,children:Je.jsx(DJ,{role:"menuitemradio","aria-checked":o,...n,ref:e,"data-state":R2e(o),onSelect:uA(n.onSelect,()=>{var s;return(s=r.onValueChange)==null?void 0:s.call(r,t)},{checkForDefaultPrevented:!1})})})});hgt.displayName=dgt;var B2e="MenuItemIndicator",[fgt,sPn]=wR(B2e,{checked:!1}),pgt=at.forwardRef((i,e)=>{const{__scopeMenu:t,forceMount:n,...r}=i,o=sPn(B2e,t);return Je.jsx(L5,{present:n||NJ(o.checked)||o.checked===!0,children:Je.jsx(sy.span,{...r,ref:e,"data-state":R2e(o.checked)})})});pgt.displayName=B2e;var aPn="MenuSeparator",Agt=at.forwardRef((i,e)=>{const{__scopeMenu:t,...n}=i;return Je.jsx(sy.div,{role:"separator","aria-orientation":"horizontal",...n,ref:e})});Agt.displayName=aPn;var cPn="MenuArrow",ggt=at.forwardRef((i,e)=>{const{__scopeMenu:t,...n}=i,r=VF(t);return Je.jsx(LAt,{...r,...n,ref:e})});ggt.displayName=cPn;var M2e="MenuSub",[lPn,mgt]=wR(M2e),_gt=i=>{const{__scopeMenu:e,children:t,open:n=!1,onOpenChange:r}=i,o=D8(M2e,e),s=VF(e),[a,c]=at.useState(null),[l,u]=at.useState(null),d=Mw(r);return at.useEffect(()=>(o.open===!1&&d(!1),()=>d(!1)),[o.open,d]),Je.jsx(p2e,{...s,children:Je.jsx(egt,{scope:e,open:n,onOpenChange:d,content:l,onContentChange:u,children:Je.jsx(lPn,{scope:e,contentId:c2(),triggerId:c2(),trigger:a,onTriggerChange:c,children:t})})})};_gt.displayName=M2e;var KF="MenuSubTrigger",ygt=at.forwardRef((i,e)=>{const t=D8(KF,i.__scopeMenu),n=jF(KF,i.__scopeMenu),r=mgt(KF,i.__scopeMenu),o=E2e(KF,i.__scopeMenu),s=at.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=o,l={__scopeMenu:i.__scopeMenu},u=at.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return at.useEffect(()=>u,[u]),at.useEffect(()=>{const d=a.current;return()=>{window.clearTimeout(d),c(null)}},[a,c]),Je.jsx(b2e,{asChild:!0,...l,children:Je.jsx(agt,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":r.contentId,"data-state":xgt(t.open),...i,ref:eS(e,r.onTriggerChange),onClick:d=>{var h;(h=i.onClick)==null||h.call(i,d),!(i.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:uA(i.onPointerMove,WF(d=>{o.onItemEnter(d),!d.defaultPrevented&&!i.disabled&&!t.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{t.onOpenChange(!0),u()},100))})),onPointerLeave:uA(i.onPointerLeave,WF(d=>{var f,A;u();const h=(f=t.content)==null?void 0:f.getBoundingClientRect();if(h){const m=(A=t.content)==null?void 0:A.dataset.side,_=m==="right",y=_?-5:5,v=h[_?"left":"right"],I=h[_?"right":"left"];o.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:v,y:h.top},{x:I,y:h.top},{x:I,y:h.bottom},{x:v,y:h.bottom}],side:m}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(d),d.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:uA(i.onKeyDown,d=>{var f;const h=o.searchRef.current!=="";i.disabled||h&&d.key===" "||Ykn[n.dir].includes(d.key)&&(t.onOpenChange(!0),(f=t.content)==null||f.focus(),d.preventDefault())})})})});ygt.displayName=KF;var vgt="MenuSubContent",Igt=at.forwardRef((i,e)=>{const t=ngt(Z5,i.__scopeMenu),{forceMount:n=t.forceMount,...r}=i,o=D8(Z5,i.__scopeMenu),s=jF(Z5,i.__scopeMenu),a=mgt(vgt,i.__scopeMenu),c=at.useRef(null),l=lx(e,c);return Je.jsx(YF.Provider,{scope:i.__scopeMenu,children:Je.jsx(L5,{present:n||o.open,children:Je.jsx(YF.Slot,{scope:i.__scopeMenu,children:Je.jsx(w2e,{id:a.contentId,"aria-labelledby":a.triggerId,...r,ref:l,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;s.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:uA(i.onFocusOutside,u=>{u.target!==a.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:uA(i.onEscapeKeyDown,u=>{s.onClose(),u.preventDefault()}),onKeyDown:uA(i.onKeyDown,u=>{var f;const d=u.currentTarget.contains(u.target),h=Vkn[s.dir].includes(u.key);d&&h&&(o.onOpenChange(!1),(f=a.trigger)==null||f.focus(),u.preventDefault())})})})})})});Igt.displayName=vgt;function xgt(i){return i?"open":"closed"}function NJ(i){return i==="indeterminate"}function R2e(i){return NJ(i)?"indeterminate":i?"checked":"unchecked"}function uPn(i){const e=document.activeElement;for(const t of i)if(t===e||(t.focus(),document.activeElement!==e))return}function dPn(i,e){return i.map((t,n)=>i[(e+n)%i.length])}function hPn(i,e,t){const r=e.length>1&&Array.from(e).every(l=>l===e[0])?e[0]:e,o=t?i.indexOf(t):-1;let s=dPn(i,Math.max(o,0));r.length===1&&(s=s.filter(l=>l!==t));const c=s.find(l=>l.toLowerCase().startsWith(r.toLowerCase()));return c!==t?c:void 0}function fPn(i,e){const{x:t,y:n}=i;let r=!1;for(let o=0,s=e.length-1;o<e.length;s=o++){const a=e[o],c=e[s],l=a.x,u=a.y,d=c.x,h=c.y;u>n!=h>n&&t<(d-l)*(n-u)/(h-u)+l&&(r=!r)}return r}function pPn(i,e){if(!e)return!1;const t={x:i.clientX,y:i.clientY};return fPn(t,e)}function WF(i){return e=>e.pointerType==="mouse"?i(e):void 0}var APn=tgt,gPn=b2e,mPn=igt,_Pn=rgt,yPn=S2e,vPn=ogt,IPn=DJ,xPn=cgt,bPn=ugt,CPn=hgt,EPn=pgt,wPn=Agt,SPn=ggt,BPn=_gt,MPn=ygt,RPn=Igt,TJ="DropdownMenu",[QPn,nHi]=Bw(TJ,[$At]),x2=$At(),[DPn,bgt]=QPn(TJ),Cgt=i=>{const{__scopeDropdownMenu:e,children:t,dir:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=i,c=x2(e),l=at.useRef(null),[u,d]=s6({prop:r,defaultProp:o??!1,onChange:s,caller:TJ});return Je.jsx(DPn,{scope:e,triggerId:c2(),triggerRef:l,contentId:c2(),open:u,onOpenChange:d,onOpenToggle:at.useCallback(()=>d(h=>!h),[d]),modal:a,children:Je.jsx(APn,{...c,open:u,onOpenChange:d,dir:n,modal:a,children:t})})};Cgt.displayName=TJ;var Egt="DropdownMenuTrigger",wgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,disabled:n=!1,...r}=i,o=bgt(Egt,t),s=x2(t);return Je.jsx(gPn,{asChild:!0,...s,children:Je.jsx(sy.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...r,ref:eS(e,o.triggerRef),onPointerDown:uA(i.onPointerDown,a=>{!n&&a.button===0&&a.ctrlKey===!1&&(o.onOpenToggle(),o.open||a.preventDefault())}),onKeyDown:uA(i.onKeyDown,a=>{n||(["Enter"," "].includes(a.key)&&o.onOpenToggle(),a.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});wgt.displayName=Egt;var NPn="DropdownMenuPortal",Sgt=i=>{const{__scopeDropdownMenu:e,...t}=i,n=x2(e);return Je.jsx(mPn,{...n,...t})};Sgt.displayName=NPn;var Bgt="DropdownMenuContent",Mgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=bgt(Bgt,t),o=x2(t),s=at.useRef(!1);return Je.jsx(_Pn,{id:r.contentId,"aria-labelledby":r.triggerId,...o,...n,ref:e,onCloseAutoFocus:uA(i.onCloseAutoFocus,a=>{var c;s.current||(c=r.triggerRef.current)==null||c.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:uA(i.onInteractOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;(!r.modal||u)&&(s.current=!0)}),style:{...i.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Mgt.displayName=Bgt;var TPn="DropdownMenuGroup",kPn=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(yPn,{...r,...n,ref:e})});kPn.displayName=TPn;var PPn="DropdownMenuLabel",Rgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(vPn,{...r,...n,ref:e})});Rgt.displayName=PPn;var LPn="DropdownMenuItem",Qgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(IPn,{...r,...n,ref:e})});Qgt.displayName=LPn;var FPn="DropdownMenuCheckboxItem",Dgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(xPn,{...r,...n,ref:e})});Dgt.displayName=FPn;var UPn="DropdownMenuRadioGroup",OPn=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(bPn,{...r,...n,ref:e})});OPn.displayName=UPn;var GPn="DropdownMenuRadioItem",Ngt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(CPn,{...r,...n,ref:e})});Ngt.displayName=GPn;var zPn="DropdownMenuItemIndicator",Tgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(EPn,{...r,...n,ref:e})});Tgt.displayName=zPn;var HPn="DropdownMenuSeparator",kgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(wPn,{...r,...n,ref:e})});kgt.displayName=HPn;var YPn="DropdownMenuArrow",VPn=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(SPn,{...r,...n,ref:e})});VPn.displayName=YPn;var jPn=i=>{const{__scopeDropdownMenu:e,children:t,open:n,onOpenChange:r,defaultOpen:o}=i,s=x2(e),[a,c]=s6({prop:n,defaultProp:o??!1,onChange:r,caller:"DropdownMenuSub"});return Je.jsx(BPn,{...s,open:a,onOpenChange:c,children:t})},KPn="DropdownMenuSubTrigger",Pgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(MPn,{...r,...n,ref:e})});Pgt.displayName=KPn;var WPn="DropdownMenuSubContent",Lgt=at.forwardRef((i,e)=>{const{__scopeDropdownMenu:t,...n}=i,r=x2(t);return Je.jsx(RPn,{...r,...n,ref:e,style:{...i.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Lgt.displayName=WPn;var XPn=Cgt,qPn=wgt,Fgt=Sgt,Ugt=Mgt,Ogt=Rgt,Ggt=Qgt,zgt=Dgt,Hgt=Ngt,Ygt=Tgt,Vgt=kgt,JPn=jPn,jgt=Pgt,Kgt=Lgt;const Q2e=XPn,D2e=qPn,N2e=Fgt,T2e=JPn,kJ=at.forwardRef(({className:i,inset:e,children:t,...n},r)=>Je.jsxs(jgt,{ref:r,className:Cp("rf-flex rf-cursor-default rf-gap-2 rf-select-none rf-items-center rf-rounded-sm rf-px-2 rf-py-1.5 rf-text-sm rf-outline-none focus:rf-bg-zinc-100 data-[state=open]:rf-bg-zinc-100 [&_svg]:rf-pointer-events-none [&_svg]:rf-size-4 [&_svg]:rf-shrink-0 dark:focus:rf-bg-zinc-800 dark:data-[state=open]:rf-bg-zinc-800",e&&"rf-pl-8",i),...n,children:[t,Je.jsx(jCe,{className:"rf-ml-auto"})]}));kJ.displayName=jgt.displayName;const PJ=at.forwardRef(({className:i,...e},t)=>Je.jsx(Kgt,{ref:t,className:Cp("rf-z-50 rf-min-w-[8rem] rf-overflow-hidden rf-rounded-md rf-border rf-border-zinc-200 rf-bg-white rf-p-1 rf-text-zinc-950 rf-shadow-lg data-[state=open]:rf-animate-in data-[state=closed]:rf-animate-out data-[state=closed]:rf-fade-out-0 data-[state=open]:rf-fade-in-0 data-[state=closed]:rf-zoom-out-95 data-[state=open]:rf-zoom-in-95 data-[side=bottom]:rf-slide-in-from-top-2 data-[side=left]:rf-slide-in-from-right-2 data-[side=right]:rf-slide-in-from-left-2 data-[side=top]:rf-slide-in-from-bottom-2 dark:rf-border-zinc-800 dark:rf-bg-zinc-950 dark:rf-text-zinc-50",i),...e}));PJ.displayName=Kgt.displayName;const LJ=at.forwardRef(({className:i,sideOffset:e=4,...t},n)=>Je.jsx(Fgt,{children:Je.jsx(Ugt,{ref:n,sideOffset:e,className:Cp("rf-z-50 rf-min-w-[8rem] rf-overflow-hidden rf-rounded-md rf-border rf-border-zinc-200 rf-bg-white rf-p-1 rf-text-zinc-950 rf-shadow-md dark:rf-border-zinc-800 dark:rf-bg-zinc-950 dark:rf-text-zinc-50","data-[state=open]:rf-animate-in data-[state=closed]:rf-animate-out data-[state=closed]:rf-fade-out-0 data-[state=open]:rf-fade-in-0 data-[state=closed]:rf-zoom-out-95 data-[state=open]:rf-zoom-in-95 data-[side=bottom]:rf-slide-in-from-top-2 data-[side=left]:rf-slide-in-from-right-2 data-[side=right]:rf-slide-in-from-left-2 data-[side=top]:rf-slide-in-from-bottom-2",i),...t})}));LJ.displayName=Ugt.displayName;const V2=at.forwardRef(({className:i,inset:e,...t},n)=>Je.jsx(Ggt,{ref:n,className:Cp("rf-relative rf-flex rf-cursor-default rf-select-none rf-items-center rf-gap-2 rf-rounded-sm rf-px-2 rf-py-1.5 rf-text-sm rf-outline-none rf-transition-colors focus:rf-bg-zinc-100 focus:rf-text-zinc-900 data-[disabled]:rf-pointer-events-none data-[disabled]:rf-opacity-50 [&>svg]:rf-size-4 [&>svg]:rf-shrink-0 dark:focus:rf-bg-zinc-800 dark:focus:rf-text-zinc-50",e&&"rf-pl-8",i),...t}));V2.displayName=Ggt.displayName;const $Pn=at.forwardRef(({className:i,children:e,checked:t,...n},r)=>Je.jsxs(zgt,{ref:r,className:Cp("rf-relative rf-flex rf-cursor-default rf-select-none rf-items-center rf-rounded-sm rf-py-1.5 rf-pl-8 rf-pr-2 rf-text-sm rf-outline-none rf-transition-colors focus:rf-bg-zinc-100 focus:rf-text-zinc-900 data-[disabled]:rf-pointer-events-none data-[disabled]:rf-opacity-50 dark:focus:rf-bg-zinc-800 dark:focus:rf-text-zinc-50",i),checked:t,...n,children:[Je.jsx("span",{className:"rf-absolute rf-left-2 rf-flex rf-h-3.5 rf-w-3.5 rf-items-center rf-justify-center",children:Je.jsx(Ygt,{children:Je.jsx(lJ,{className:"rf-h-4 rf-w-4"})})}),e]}));$Pn.displayName=zgt.displayName;const ZPn=at.forwardRef(({className:i,children:e,...t},n)=>Je.jsxs(Hgt,{ref:n,className:Cp("rf-relative rf-flex rf-cursor-default rf-select-none rf-items-center rf-rounded-sm rf-py-1.5 rf-pl-8 rf-pr-2 rf-text-sm rf-outline-none rf-transition-colors focus:rf-bg-zinc-100 focus:rf-text-zinc-900 data-[disabled]:rf-pointer-events-none data-[disabled]:rf-opacity-50 dark:focus:rf-bg-zinc-800 dark:focus:rf-text-zinc-50",i),...t,children:[Je.jsx("span",{className:"rf-absolute rf-left-2 rf-flex rf-h-3.5 rf-w-3.5 rf-items-center rf-justify-center",children:Je.jsx(Ygt,{children:Je.jsx(Ypt,{className:"rf-h-2 rf-w-2 rf-fill-current"})})}),e]}));ZPn.displayName=Hgt.displayName;const eLn=at.forwardRef(({className:i,inset:e,...t},n)=>Je.jsx(Ogt,{ref:n,className:Cp("rf-px-2 rf-py-1.5 rf-text-sm rf-font-semibold",e&&"rf-pl-8",i),...t}));eLn.displayName=Ogt.displayName;const Wgt=at.forwardRef(({className:i,...e},t)=>Je.jsx(Vgt,{ref:t,className:Cp("rf--mx-1 rf-my-1 rf-h-px rf-bg-zinc-100 dark:rf-bg-zinc-800",i),...e}));Wgt.displayName=Vgt.displayName;const Xgt=({autoroutingLog:i,onReportAutoroutingLog:e})=>Je.jsx(Je.Fragment,{children:Object.keys(i??{}).length>0&&Je.jsxs(Q2e,{children:[Je.jsx(D2e,{asChild:!0,children:Je.jsxs(Ax,{variant:"outline",children:[Je.jsx(aNn,{className:"rf-w-4 rf-h-4 rf-mr-2"}),"Open Autorouting Log"]})}),Je.jsx(LJ,{className:"rf-w-96",children:Object.entries(i??{}).map(([t,{simpleRouteJson:n}])=>Je.jsxs(V2,{className:"rf-flex rf-justify-between rf-items-center",children:[Je.jsx("span",{className:"rf-truncate rf-text-xs rf-mr-2",children:t}),Je.jsxs("div",{className:"rf-flex rf-gap-2",children:[Je.jsxs(Ax,{variant:"outline",size:"sm",onClick:r=>{r.stopPropagation();const o=new Blob([JSON.stringify(n,null,2)],{type:"application/json"}),s=URL.createObjectURL(o),a=document.createElement("a");a.href=s,a.download=`${t}-autorouting.json`,a.click(),URL.revokeObjectURL(s)},children:[Je.jsx(lNn,{className:"rf-w-3 rf-h-3"}),"Download"]}),e&&Je.jsxs(Ax,{variant:"outline",size:"sm",onClick:r=>{r.stopPropagation(),e&&e(t,{simpleRouteJson:n})},children:[Je.jsx(_Nn,{className:"rf-w-3 rf-h-3"}),"Report Bug"]})]})]},t))})]})}),tLn=({code:i,fsMap:e,autoroutingLog:t,circuitJsonErrors:n,circuitJsonWarnings:r,onReportAutoroutingLog:o,errorMessage:s,errorStack:a,circuitJson:c,evalVersion:l})=>{const u=at.useMemo(()=>{const P=[];if(s&&P.push({type:"Execution Error",message:s,stack:a||void 0,source:"execution"}),n&&n.length>0)for(const R of n)P.push({type:R.type||"Circuit JSON Error",message:R.message||"No error message available",stack:R.stack||"",source:"circuitJson"});return P},[s,a,n]),d=at.useMemo(()=>{if(!c||!Array.isArray(c))return;const P=c.find(R=>R.type==="source_project_metadata");return P==null?void 0:P.software_used_string},[c]),h=at.useMemo(()=>{const P=[];if(r&&r.length>0)for(const R of r)P.push({type:R.type||"Circuit JSON Warning",message:R.message||"No warning message available",stack:R.stack||"",source:"circuitJson"});return P},[r]),f=()=>{if(e)try{return Xun(e instanceof Map?Object.fromEntries(e.entries()):e)}catch{}return xNn(i??"")},A=(P,R)=>{const X=`https://github.com/tscircuit/tscircuit.com/issues/new?title=${encodeURIComponent(P)}&body=${encodeURIComponent(R)}`;window.open(X,"_blank")},[m,_]=at.useState(0),[y,v]=at.useState(0);if(u.length===0&&h.length===0)return Je.jsxs("div",{className:"px-2",children:[Je.jsx("div",{className:"rf-mt-4 rf-bg-green-50 rf-rounded-md rf-border rf-border-green-200",children:Je.jsxs("div",{className:"rf-p-4",children:[Je.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-green-800 rf-mb-3",children:"No errors or warnings!"}),Je.jsx("p",{className:"rf-text-sm rf-text-green-700",children:"Your code is running without any errors or warnings."})]})}),Je.jsxs("div",{className:"rf-flex rf-gap-2 rf-mt-4 rf-justify-end",children:[Je.jsx(Xgt,{autoroutingLog:t,onReportAutoroutingLog:o}),Je.jsxs(Ax,{variant:"outline",className:"rf-p-1",onClick:()=>{const P=f();A("Issue Report",`[Package code to reproduce](${P})`)},children:[Je.jsx(VCe,{className:"rf-w-4 rf-h-4"}),"Report Issue"]})]})]});const I=()=>{_(P=>Math.max(P-1,0))},S=()=>{_(P=>Math.min(P+1,u.length-1))},L=()=>{v(P=>Math.max(P-1,0))},Q=()=>{v(P=>Math.min(P+1,h.length-1))},T=u[m],B=h[y];return Je.jsxs(Je.Fragment,{children:[Je.jsxs("div",{className:"rf-w-[95%] rf-mx-auto",children:[u.length>1&&Je.jsxs("div",{className:"rf-flex rf-items-center rf-gap-2 rf-mb-2",children:[Je.jsx("button",{type:"button",className:"rf-p-1 rf-rounded-sm rf-transition-colors",onClick:I,disabled:m===0,children:Je.jsx(Hpt,{className:"rf-h-4 rf-w-4 rf-text-red-500"})}),Je.jsx("button",{type:"button",className:"rf-p-1 rf-rounded-sm rf-transition-colors",onClick:S,disabled:m===u.length-1,children:Je.jsx(jCe,{className:"rf-h-4 rf-w-4 rf-text-red-500"})}),Je.jsxs("span",{className:"rf-text-sm rf-text-red-600",children:[m+1," of ",u.length," errors"]})]}),T&&Je.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200 rf-max-h-[500px] rf-overflow-y-auto rf-px-2",children:Je.jsxs("div",{className:"rf-p-4",children:[Je.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-1",children:T.type}),Je.jsx("p",{className:"rf-text-xs rf-font-mono rf-whitespace-pre-wrap rf-text-red-600",children:T.message}),(T.stack||l||d)&&Je.jsxs("details",{style:{whiteSpace:"pre-wrap"},className:"rf-text-xs rf-font-mono rf-text-red-600 rf-mt-2",children:[l&&`@tscircuit/eval@${l}
13358
13358
  `,d&&`${d}
13359
13359
  `,T.stack]})]})}),h.length>0&&Je.jsxs(Je.Fragment,{children:[h.length>1&&Je.jsxs("div",{className:"rf-flex rf-items-center rf-gap-2 rf-mb-2 rf-mt-4",children:[Je.jsx("button",{type:"button",className:"rf-p-1 rf-rounded-sm rf-transition-colors",onClick:L,disabled:y===0,children:Je.jsx(Hpt,{className:"rf-h-4 rf-w-4 rf-text-orange-500"})}),Je.jsx("button",{type:"button",className:"rf-p-1 rf-rounded-sm rf-transition-colors",onClick:Q,disabled:y===h.length-1,children:Je.jsx(jCe,{className:"rf-h-4 rf-w-4 rf-text-orange-500"})}),Je.jsxs("span",{className:"rf-text-sm rf-text-orange-600",children:[y+1," of ",h.length," warnings"]})]}),B&&Je.jsx("div",{className:"rf-mt-4 rf-bg-orange-50 rf-rounded-md rf-border rf-border-orange-200 rf-max-h-[500px] rf-overflow-y-auto rf-px-2",children:Je.jsxs("div",{className:"rf-p-4",children:[Je.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-orange-800 rf-mb-1",children:B.type}),Je.jsx("p",{className:"rf-text-xs rf-font-mono rf-whitespace-pre-wrap rf-text-orange-600",children:B.message}),B.stack&&Je.jsx("details",{style:{whiteSpace:"pre-wrap"},className:"rf-text-xs rf-font-mono rf-text-orange-600 rf-mt-2",children:B.stack})]})})]})]}),Je.jsxs("div",{className:"rf-flex rf-gap-2 rf-mt-4 rf-justify-end",children:[Je.jsx(Xgt,{autoroutingLog:t,onReportAutoroutingLog:o}),Je.jsxs(Ax,{variant:"outline",className:"rf-p-1",onClick:()=>{let P=`${T.type}: ${T.message}`;l&&(P+=`
13360
13360
  @tscircuit/eval@${l}`),d&&(P+=`
@@ -13878,7 +13878,7 @@ ${r.stack}`),n.complete=!0,"root"in this&&this.root&&this.root.emit("asyncEffect
13878
13878
  * Copyright (c) 2013-2015, 2017, Jon Schlinkert.
13879
13879
  * Released under the MIT License.
13880
13880
  *)
13881
- */const jgi=({containerClassName:i,...e})=>{const t=at.useRef(null),[n,r]=at.useState(620);return at.useLayoutEffect(()=>{const o=()=>{if(t.current){const a=t.current.clientHeight,c=window.innerHeight;r(Math.min(Math.max(a,620),c))}};o();const s=new ResizeObserver(o);return t.current&&s.observe(t.current),window.addEventListener("resize",o),()=>{s.disconnect(),window.removeEventListener("resize",o)}},[]),Je.jsx("div",{ref:t,className:i||"rf-w-full rf-h-full",children:Je.jsx(Vgi,{...e,height:n})})},Kgi='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:root{--radius:0.5rem}.rf-pointer-events-none{pointer-events:none}.rf-invisible{visibility:hidden}.rf-fixed{position:fixed}.rf-absolute{position:absolute}.rf-relative{position:relative}.rf-inset-0{inset:0}.-rf-left-2{left:-.5rem}.-rf-right-10{right:-2.5rem}.-rf-right-2{right:-.5rem}.-rf-right-4{right:-1rem}.-rf-right-6{right:-1.5rem}.-rf-right-7{right:-1.75rem}.-rf-right-8{right:-2rem}.-rf-right-9{right:-2.25rem}.rf-bottom-full{bottom:100%}.rf-left-0{left:0}.rf-left-1{left:.25rem}.rf-left-1\\/2{left:50%}.rf-left-2{left:.5rem}.rf-left-\\[50\\%\\]{left:50%}.rf-right-0{right:0}.rf-right-1{right:.25rem}.rf-right-4{right:1rem}.rf-right-\\[4px\\]{right:4px}.rf-top-0{top:0}.rf-top-1{top:.25rem}.rf-top-2{top:.5rem}.rf-top-2\\.5{top:.625rem}.rf-top-\\[50\\%\\]{top:50%}.rf-top-\\[6px\\]{top:6px}.\\!rf-z-\\[101\\]{z-index:101!important}.rf-z-10{z-index:10}.rf-z-50{z-index:50}.rf-z-\\[100\\]{z-index:100}.rf-order-1{order:1}.rf-order-2{order:2}.rf-order-3{order:3}.rf-m-1{margin:.25rem}.rf-m-6{margin:1.5rem}.-rf-mx-1,.rf--mx-1{margin-left:-.25rem;margin-right:-.25rem}.rf-mx-1{margin-left:.25rem;margin-right:.25rem}.rf-mx-2{margin-left:.5rem;margin-right:.5rem}.rf-mx-4{margin-left:1rem;margin-right:1rem}.rf-mx-auto{margin-left:auto;margin-right:auto}.rf-my-1{margin-bottom:.25rem;margin-top:.25rem}.rf-my-12{margin-bottom:3rem;margin-top:3rem}.rf-my-4{margin-bottom:1rem;margin-top:1rem}.rf-my-auto{margin-bottom:auto;margin-top:auto}.rf-mb-1{margin-bottom:.25rem}.rf-mb-12{margin-bottom:3rem}.rf-mb-2{margin-bottom:.5rem}.rf-mb-3{margin-bottom:.75rem}.rf-mb-4{margin-bottom:1rem}.rf-mb-6{margin-bottom:1.5rem}.rf-mb-8{margin-bottom:2rem}.rf-ml-1{margin-left:.25rem}.rf-ml-2{margin-left:.5rem}.rf-ml-auto{margin-left:auto}.rf-mr-1{margin-right:.25rem}.rf-mr-2{margin-right:.5rem}.rf-mt-0{margin-top:0}.rf-mt-0\\.5{margin-top:.125rem}.rf-mt-1{margin-top:.25rem}.rf-mt-2{margin-top:.5rem}.rf-mt-3{margin-top:.75rem}.rf-mt-4{margin-top:1rem}.rf-mt-5{margin-top:1.25rem}.rf-mt-auto{margin-top:auto}.rf-block{display:block}.rf-inline-block{display:inline-block}.rf-inline{display:inline}.rf-flex{display:flex}.rf-inline-flex{display:inline-flex}.rf-grid{display:grid}.rf-hidden{display:none}.rf-aspect-square{aspect-ratio:1/1}.rf-aspect-video{aspect-ratio:16/9}.rf-size-14{height:3.5rem;width:3.5rem}.rf-size-4{height:1rem;width:1rem}.\\!rf-h-2{height:.5rem!important}.\\!rf-h-2\\.5{height:.625rem!important}.\\!rf-h-3{height:.75rem!important}.\\!rf-h-full{height:100%!important}.rf-h-1{height:.25rem}.rf-h-10{height:2.5rem}.rf-h-12{height:3rem}.rf-h-2{height:.5rem}.rf-h-2\\.5{height:.625rem}.rf-h-3{height:.75rem}.rf-h-3\\.5{height:.875rem}.rf-h-4{height:1rem}.rf-h-5{height:1.25rem}.rf-h-6{height:1.5rem}.rf-h-60{height:15rem}.rf-h-64{height:16rem}.rf-h-7{height:1.75rem}.rf-h-8{height:2rem}.rf-h-9{height:2.25rem}.rf-h-\\[400px\\]{height:400px}.rf-h-\\[calc\\(100vh-52px\\)\\]{height:calc(100vh - 52px)}.rf-h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.rf-h-auto{height:auto}.rf-h-fit{height:-moz-fit-content;height:fit-content}.rf-h-full{height:100%}.rf-h-px{height:1px}.rf-h-screen{height:100vh}.\\!rf-max-h-\\[40vh\\]{max-height:40vh!important}.rf-max-h-32{max-height:8rem}.rf-max-h-96{max-height:24rem}.rf-max-h-\\[200px\\]{max-height:200px}.rf-max-h-\\[300px\\]{max-height:300px}.rf-max-h-\\[500px\\]{max-height:500px}.rf-max-h-\\[90vh\\]{max-height:90vh}.rf-max-h-full{max-height:100%}.rf-min-h-0{min-height:0}.rf-min-h-\\[200px\\]{min-height:200px}.rf-min-h-\\[300px\\]{min-height:300px}.rf-min-h-\\[620px\\]{min-height:620px}.rf-min-h-\\[calc\\(100vh-240px\\)\\]{min-height:calc(100vh - 240px)}.\\!rf-w-2{width:.5rem!important}.\\!rf-w-2\\.5{width:.625rem!important}.rf-w-1{width:.25rem}.rf-w-1\\/2{width:50%}.rf-w-11{width:2.75rem}.rf-w-11\\/12{width:91.666667%}.rf-w-12{width:3rem}.rf-w-16{width:4rem}.rf-w-2{width:.5rem}.rf-w-2\\.5{width:.625rem}.rf-w-20{width:5rem}.rf-w-28{width:7rem}.rf-w-3{width:.75rem}.rf-w-3\\.5{width:.875rem}.rf-w-32{width:8rem}.rf-w-4{width:1rem}.rf-w-40{width:10rem}.rf-w-48{width:12rem}.rf-w-5{width:1.25rem}.rf-w-6{width:1.5rem}.rf-w-64{width:16rem}.rf-w-72{width:18rem}.rf-w-8{width:2rem}.rf-w-9{width:2.25rem}.rf-w-96{width:24rem}.rf-w-\\[95\\%\\]{width:95%}.rf-w-fit{width:-moz-fit-content;width:fit-content}.rf-w-full{width:100%}.rf-w-screen{width:100vw}.rf-min-w-0{min-width:0}.rf-min-w-10{min-width:2.5rem}.rf-min-w-16{min-width:4rem}.rf-min-w-\\[148px\\]{min-width:148px}.rf-min-w-\\[8rem\\]{min-width:8rem}.rf-min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.\\!rf-max-w-\\[660px\\]{max-width:660px!important}.rf-max-w-2xl{max-width:42rem}.rf-max-w-3xl{max-width:48rem}.rf-max-w-4xl{max-width:56rem}.rf-max-w-5xl{max-width:64rem}.rf-max-w-full{max-width:100%}.rf-max-w-lg{max-width:32rem}.rf-max-w-md{max-width:28rem}.rf-max-w-none{max-width:none}.rf-max-w-xl{max-width:36rem}.rf-max-w-xs{max-width:20rem}.rf-flex-1{flex:1 1 0%}.rf-flex-shrink-0,.rf-shrink-0{flex-shrink:0}.rf-flex-grow{flex-grow:1}.rf-table-auto{table-layout:auto}.rf-origin-\\[--radix-popover-content-transform-origin\\]{transform-origin:var(--radix-popover-content-transform-origin)}.-rf-translate-x-1{--tw-translate-x:-0.25rem}.-rf-translate-x-1,.-rf-translate-x-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rf-translate-x-1\\/2{--tw-translate-x:-50%}.-rf-translate-y-1{--tw-translate-y:-0.25rem}.-rf-translate-y-1,.rf--translate-x-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-x-1{--tw-translate-x:-0.25rem}.rf--translate-x-1\\/2{--tw-translate-x:-50%}.rf--translate-x-1\\/2,.rf--translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-y-1{--tw-translate-y:-0.25rem}.rf-translate-x-\\[-50\\%\\]{--tw-translate-x:-50%}.rf-translate-x-\\[-50\\%\\],.rf-translate-y-\\[-50\\%\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf-translate-y-\\[-50\\%\\]{--tw-translate-y:-50%}.rf-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes rf-pulse{50%{opacity:.5}}.rf-animate-pulse{animation:rf-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rf-spin{to{transform:rotate(1turn)}}.rf-animate-spin{animation:rf-spin 1s linear infinite}.rf-cursor-default{cursor:default}.rf-cursor-not-allowed{cursor:not-allowed}.rf-cursor-pointer{cursor:pointer}.rf-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.rf-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.rf-flex-row{flex-direction:row}.rf-flex-col{flex-direction:column}.rf-flex-col-reverse{flex-direction:column-reverse}.rf-flex-wrap{flex-wrap:wrap}.rf-place-items-center{place-items:center}.rf-items-start{align-items:flex-start}.rf-items-end{align-items:flex-end}.rf-items-center{align-items:center}.rf-items-stretch{align-items:stretch}.rf-justify-end{justify-content:flex-end}.rf-justify-center{justify-content:center}.rf-justify-between{justify-content:space-between}.rf-gap-0{gap:0}.rf-gap-1{gap:.25rem}.rf-gap-2{gap:.5rem}.rf-gap-3{gap:.75rem}.rf-gap-4{gap:1rem}.rf-gap-5{gap:1.25rem}.rf-gap-6{gap:1.5rem}.rf-gap-8{gap:2rem}.rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.rf-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.rf-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.rf-overflow-auto{overflow:auto}.rf-overflow-hidden{overflow:hidden}.rf-overflow-visible{overflow:visible}.rf-overflow-x-auto{overflow-x:auto}.\\!rf-overflow-y-auto{overflow-y:auto!important}.rf-overflow-y-auto{overflow-y:auto}.rf-overflow-x-hidden{overflow-x:hidden}.rf-overflow-x-clip{overflow-x:clip}.rf-truncate{overflow:hidden;text-overflow:ellipsis}.rf-truncate,.rf-whitespace-nowrap{white-space:nowrap}.rf-whitespace-pre-wrap{white-space:pre-wrap}.rf-break-words{overflow-wrap:break-word}.rf-rounded{border-radius:.25rem}.rf-rounded-2xl{border-radius:1rem}.rf-rounded-full{border-radius:9999px}.rf-rounded-lg{border-radius:var(--radius)}.rf-rounded-md{border-radius:calc(var(--radius) - 2px)}.rf-rounded-sm{border-radius:calc(var(--radius) - 4px)}.rf-rounded-xl{border-radius:.75rem}.rf-border{border-width:1px}.rf-border-2{border-width:2px}.rf-border-b{border-bottom-width:1px}.rf-border-t{border-top-width:1px}.rf-border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.rf-border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.rf-border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.rf-border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.rf-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.rf-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.rf-border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}.rf-border-input{border-color:hsl(var(--input))}.rf-border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.rf-border-orange-200{--tw-border-opacity:1;border-color:rgb(254 215 170/var(--tw-border-opacity,1))}.rf-border-primary{border-color:hsl(var(--primary))}.rf-border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.rf-border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity,1))}.rf-border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.rf-border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1))}.rf-border-zinc-900{--tw-border-opacity:1;border-color:rgb(24 24 27/var(--tw-border-opacity,1))}.rf-bg-background{background-color:hsl(var(--background))}.rf-bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.rf-bg-black\\/80{background-color:rgba(0,0,0,.8)}.rf-bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.rf-bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.rf-bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.rf-bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.rf-bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.rf-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.rf-bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.rf-bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.rf-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.rf-bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}.rf-bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.rf-bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.rf-bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.rf-bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.rf-bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.rf-bg-muted{background-color:hsl(var(--muted))}.rf-bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.rf-bg-neutral-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.rf-bg-neutral-900{--tw-bg-opacity:1;background-color:rgb(23 23 23/var(--tw-bg-opacity,1))}.rf-bg-orange-400{--tw-bg-opacity:1;background-color:rgb(251 146 60/var(--tw-bg-opacity,1))}.rf-bg-orange-50{--tw-bg-opacity:1;background-color:rgb(255 247 237/var(--tw-bg-opacity,1))}.rf-bg-popover{background-color:hsl(var(--popover))}.rf-bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.rf-bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.rf-bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.rf-bg-red-900{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.rf-bg-transparent{background-color:transparent}.rf-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.rf-bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}.rf-bg-zinc-100{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.rf-bg-zinc-200{--tw-bg-opacity:1;background-color:rgb(228 228 231/var(--tw-bg-opacity,1))}.rf-bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-zinc-800{--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.rf-bg-zinc-900{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.rf-bg-opacity-50{--tw-bg-opacity:0.5}.rf-fill-current{fill:currentColor}.rf-object-contain{-o-object-fit:contain;object-fit:contain}.rf-object-cover{-o-object-fit:cover;object-fit:cover}.\\!rf-p-0{padding:0!important}.rf-p-0{padding:0}.rf-p-1{padding:.25rem}.rf-p-2{padding:.5rem}.rf-p-3{padding:.75rem}.rf-p-4{padding:1rem}.rf-p-5{padding:1.25rem}.rf-p-6{padding:1.5rem}.rf-p-8{padding:2rem}.rf-px-1{padding-left:.25rem;padding-right:.25rem}.rf-px-2{padding-left:.5rem;padding-right:.5rem}.rf-px-3{padding-left:.75rem;padding-right:.75rem}.rf-px-4{padding-left:1rem;padding-right:1rem}.rf-px-6{padding-left:1.5rem;padding-right:1.5rem}.rf-px-8{padding-left:2rem;padding-right:2rem}.rf-py-0{padding-bottom:0;padding-top:0}.rf-py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.rf-py-1{padding-bottom:.25rem;padding-top:.25rem}.rf-py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.rf-py-10{padding-bottom:2.5rem;padding-top:2.5rem}.rf-py-12{padding-bottom:3rem;padding-top:3rem}.rf-py-2{padding-bottom:.5rem;padding-top:.5rem}.rf-py-3{padding-bottom:.75rem;padding-top:.75rem}.rf-py-4{padding-bottom:1rem;padding-top:1rem}.rf-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.rf-py-8{padding-bottom:2rem;padding-top:2rem}.rf-pb-0{padding-bottom:0}.rf-pb-2{padding-bottom:.5rem}.rf-pb-3{padding-bottom:.75rem}.rf-pb-4{padding-bottom:1rem}.rf-pl-2{padding-left:.5rem}.rf-pl-4{padding-left:1rem}.rf-pl-8{padding-left:2rem}.rf-pr-2{padding-right:.5rem}.rf-pt-0{padding-top:0}.rf-pt-2{padding-top:.5rem}.rf-pt-4{padding-top:1rem}.rf-text-left{text-align:left}.rf-text-center{text-align:center}.rf-text-right{text-align:right}.rf-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.rf-text-2xl{font-size:1.5rem;line-height:2rem}.rf-text-3xl{font-size:1.875rem;line-height:2.25rem}.rf-text-\\[8px\\]{font-size:8px}.rf-text-base{font-size:1rem;line-height:1.5rem}.rf-text-lg{font-size:1.125rem;line-height:1.75rem}.rf-text-sm{font-size:.875rem;line-height:1.25rem}.rf-text-xl{font-size:1.25rem;line-height:1.75rem}.rf-text-xs{font-size:.75rem;line-height:1rem}.\\!rf-font-normal{font-weight:400!important}.rf-font-bold{font-weight:700}.rf-font-medium{font-weight:500}.rf-font-semibold{font-weight:600}.rf-uppercase{text-transform:uppercase}.rf-capitalize{text-transform:capitalize}.rf-tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.rf-leading-5{line-height:1.25rem}.rf-leading-none{line-height:1}.rf-leading-relaxed{line-height:1.625}.rf-leading-tight{line-height:1.25}.rf-tracking-wide{letter-spacing:.025em}.rf-tracking-widest{letter-spacing:.1em}.rf-text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.rf-text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.rf-text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.rf-text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.rf-text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.rf-text-blue-900{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity,1))}.rf-text-current{color:currentColor}.rf-text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.rf-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.rf-text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.rf-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.rf-text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.rf-text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.rf-text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.rf-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.rf-text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.rf-text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.rf-text-green-900{--tw-text-opacity:1;color:rgb(20 83 45/var(--tw-text-opacity,1))}.rf-text-muted-foreground{color:hsl(var(--muted-foreground))}.rf-text-neutral-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-neutral-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.rf-text-neutral-900{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.rf-text-neutral-950{--tw-text-opacity:1;color:rgb(10 10 10/var(--tw-text-opacity,1))}.rf-text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity,1))}.rf-text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity,1))}.rf-text-orange-800{--tw-text-opacity:1;color:rgb(154 52 18/var(--tw-text-opacity,1))}.rf-text-popover-foreground{color:hsl(var(--popover-foreground))}.rf-text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity,1))}.rf-text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.rf-text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.rf-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.rf-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.rf-text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.rf-text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.rf-text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity,1))}.rf-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.rf-text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.rf-text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.rf-text-yellow-900{--tw-text-opacity:1;color:rgb(113 63 18/var(--tw-text-opacity,1))}.rf-text-zinc-200{--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.rf-text-zinc-300{--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.rf-text-zinc-400{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.rf-text-zinc-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.rf-text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.rf-text-zinc-950{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.rf-underline{text-decoration-line:underline}.rf-line-through{text-decoration-line:line-through}.rf-underline-offset-4{text-underline-offset:4px}.rf-opacity-0{opacity:0}.rf-opacity-100{opacity:1}.rf-opacity-25{opacity:.25}.rf-opacity-30{opacity:.3}.rf-opacity-50{opacity:.5}.rf-opacity-60{opacity:.6}.rf-opacity-75{opacity:.75}.rf-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.rf-shadow,.rf-shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.rf-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.rf-shadow-md,.rf-shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.rf-outline-none{outline:2px solid transparent;outline-offset:2px}.rf-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.rf-ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.rf-ring-primary{--tw-ring-color:hsl(var(--primary))}.rf-ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.rf-ring-offset-white{--tw-ring-offset-color:#fff}.rf-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-duration-200{transition-duration:.2s}.rf-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.rf-slide-in-from-left-1{--tw-enter-translate-x:-0.25rem}.rf-slide-out-to-left-1{--tw-exit-translate-x:-0.25rem}.rf-duration-200{animation-duration:.2s}.rf-ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.file\\:rf-border-0::file-selector-button{border-width:0}.file\\:rf-bg-transparent::file-selector-button{background-color:transparent}.file\\:rf-text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:rf-font-medium::file-selector-button{font-weight:500}.placeholder\\:rf-text-zinc-500::-moz-placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.placeholder\\:rf-text-zinc-500::placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.hover\\:rf-border-blue-300:hover{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}.hover\\:\\!rf-bg-transparent:hover{background-color:transparent!important}.hover\\:rf-bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\\:rf-bg-red-500\\/90:hover{background-color:rgba(239,68,68,.9)}.hover\\:rf-bg-zinc-100:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.hover\\:rf-bg-zinc-100\\/80:hover{background-color:hsla(240,5%,96%,.8)}.hover\\:rf-bg-zinc-900\\/90:hover{background-color:rgba(24,24,27,.9)}.hover\\:rf-text-red-400:hover{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.hover\\:rf-text-zinc-900:hover{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.hover\\:rf-underline:hover{text-decoration-line:underline}.focus\\:rf-bg-gray-100:focus{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.focus\\:rf-bg-zinc-100:focus{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.focus\\:rf-text-gray-900:focus{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.focus\\:rf-text-zinc-900:focus{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.focus\\:rf-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:rf-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:rf-ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\\:rf-ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:rf-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:rf-ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-zinc-950:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(9 9 11/var(--tw-ring-opacity,1))}.focus-visible\\:rf-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\\:rf-pointer-events-none:disabled{pointer-events:none}.disabled\\:rf-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:rf-opacity-50:disabled{opacity:.5}.rf-group\\/bar:hover .group-hover\\/bar\\:rf-opacity-100{opacity:1}.data-\\[disabled\\=true\\]\\:rf-pointer-events-none[data-disabled=true],.data-\\[disabled\\]\\:rf-pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom],.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right],.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\\[selected\\=true\\]\\:rf-bg-zinc-100[data-selected=true]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[state\\=active\\]\\:rf-bg-white[data-state=active]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.data-\\[state\\=checked\\]\\:rf-bg-zinc-900[data-state=checked]{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.data-\\[state\\=open\\]\\:rf-bg-zinc-100[data-state=open]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[selected\\=true\\]\\:rf-text-zinc-900[data-selected=true]{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.data-\\[state\\=active\\]\\:rf-text-zinc-950[data-state=active]{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.data-\\[state\\=checked\\]\\:rf-text-zinc-50[data-state=checked]{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.data-\\[disabled\\=true\\]\\:rf-opacity-50[data-disabled=true],.data-\\[disabled\\]\\:rf-opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=active\\]\\:rf-shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\\[state\\=open\\]\\:rf-animate-in[data-state=open]{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-animate-out[data-state=closed]{animation-duration:.15s;animation-name:exit;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=open\\]\\:rf-fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=closed\\]\\:rf-zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=open\\]\\:rf-zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[side\\=bottom\\]\\:rf-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\\[side\\=left\\]\\:rf-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\\[side\\=right\\]\\:rf-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\\[side\\=top\\]\\:rf-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\\[state\\=closed\\]\\:rf-slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\\[state\\=closed\\]\\:rf-slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\\[state\\=open\\]\\:rf-slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\\[state\\=open\\]\\:rf-slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y:-48%}.dark\\:rf-border-zinc-50:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(250 250 250/var(--tw-border-opacity,1))}.dark\\:rf-border-zinc-800:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1))}.dark\\:rf-bg-red-900:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-50:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-800:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-950:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:rf-text-zinc-400:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-50:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-900:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-ring-offset-zinc-950:is(.rf-dark *){--tw-ring-offset-color:#09090b}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:hover\\:rf-bg-red-900\\/90:hover:is(.rf-dark *){background-color:rgba(127,29,29,.9)}.dark\\:hover\\:rf-bg-zinc-50\\/90:hover:is(.rf-dark *){background-color:hsla(0,0%,98%,.9)}.dark\\:hover\\:rf-bg-zinc-800:hover:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:hover\\:rf-bg-zinc-800\\/80:hover:is(.rf-dark *){background-color:rgba(39,39,42,.8)}.dark\\:hover\\:rf-text-zinc-50:hover:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus\\:rf-bg-zinc-800:focus:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:focus\\:rf-text-zinc-50:focus:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus-visible\\:rf-ring-zinc-300:focus-visible:is(.rf-dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(212 212 216/var(--tw-ring-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-bg-zinc-800[data-selected=true]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-bg-zinc-950[data-state=active]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-bg-zinc-50[data-state=checked]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=open\\]\\:rf-bg-zinc-800[data-state=open]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-text-zinc-50[data-selected=true]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-text-zinc-50[data-state=active]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-text-zinc-900[data-state=checked]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\\:rf-order-1{order:1}.sm\\:rf-order-2{order:2}.sm\\:rf-mt-0{margin-top:0}.sm\\:rf-inline{display:inline}.sm\\:rf-hidden{display:none}.sm\\:rf-w-auto{width:auto}.sm\\:rf-flex-row{flex-direction:row}.sm\\:rf-items-center{align-items:center}.sm\\:rf-justify-end{justify-content:flex-end}.sm\\:rf-gap-3{gap:.75rem}.sm\\:rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.sm\\:rf-rounded-lg{border-radius:var(--radius)}.sm\\:rf-px-4{padding-left:1rem;padding-right:1rem}.sm\\:rf-text-left{text-align:left}.sm\\:rf-text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:rf-text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:768px){.md\\:rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.\\[\\&\\>span\\]\\:rf-line-clamp-1>span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\\[\\&\\>svg\\]\\:rf-size-4>svg{height:1rem;width:1rem}.\\[\\&\\>svg\\]\\:rf-shrink-0>svg{flex-shrink:0}.\\[\\&\\>svg\\]\\:rf-text-red-300>svg{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.\\[\\&\\>svg\\]\\:hover\\:rf-text-red-400:hover>svg{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-py-1\\.5 [cmdk-group-heading]{padding-bottom:.375rem;padding-top:.375rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-font-medium [cmdk-group-heading]{font-weight:500}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-500 [cmdk-group-heading]{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.dark\\:\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-400 [cmdk-group-heading]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:rf-pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\\[\\&_\\[cmdk-group\\]\\]\\:rf-px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\\[\\&_\\[cmdk-input\\]\\]\\:rf-h-12 [cmdk-input]{height:3rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-py-3 [cmdk-item]{padding-bottom:.75rem;padding-top:.75rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-h-5 [cmdk-item] svg{height:1.25rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-w-5 [cmdk-item] svg{width:1.25rem}.\\[\\&_svg\\]\\:rf-pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:rf-size-4 svg{height:1rem;width:1rem}.\\[\\&_svg\\]\\:rf-shrink-0 svg{flex-shrink:0}',Wgi=()=>{at.useEffect(()=>{if(document.querySelector('style[data-styles="tscircuit-runframe"]'))return;const e=document.createElement("style");e.setAttribute("data-styles","tscircuit-runframe"),e.textContent=Kgi,document.head.appendChild(e)},[])},Xgi=i=>{at.useEffect(()=>(i?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[i])},ZEt=i=>`hsl(${yE.indexOf(i)*137.5%360}, 70%, 50%)`,qgi=({phaseTimings:i})=>{if(!i)return null;const e=Object.values(i).reduce((t,n)=>t+n,0);return Je.jsxs("div",{className:"rf-space-y-2 rf-w-full rf-px-4",children:[Je.jsx("div",{className:"rf-relative rf-h-8 rf-flex rf-rounded-sm",children:yE.map(t=>{const n=i[t]||0,r=n/e*100;return Je.jsx("div",{className:"rf-group/bar rf-relative rf-overflow-visible",style:{width:`${r}%`,backgroundColor:ZEt(t)},children:Je.jsxs("div",{className:"rf-opacity-0 group-hover/bar:rf-opacity-100 rf-transition-opacity rf-absolute rf-bottom-full rf-left-1/2 rf-transform -rf-translate-x-1/2 rf-mb-2 rf-px-2 rf-py-1 rf-text-xs rf-whitespace-nowrap rf-rounded rf-bg-gray-900 rf-text-white rf-pointer-events-none",children:[t,": ",n.toFixed(1),"ms"]})},t)})}),Je.jsxs("div",{className:"rf-text-xs rf-text-gray-500",children:["Total: ",e.toFixed(2),"ms"]})]})},Jgi=({renderLog:i})=>{const[e,t]=at.useState("chronological");if(!i)return Je.jsx("div",{className:"rf-p-4 rf-bg-gray-100 rf-rounded-md",children:"No render log, make sure this tab is open when you render (TODO add a rerender button here)"});const n=Object.entries((i==null?void 0:i.phaseTimings)??{});e==="chronological"?n.sort((o,s)=>yE.indexOf(o[0])-yE.indexOf(s[0])):n.sort((o,s)=>s[1]-o[1]);const r=n.reduce((o,[s,a])=>o+a,0);return Je.jsxs("div",{className:"rf-bg-white",children:[Je.jsxs("div",{className:"rf-flex rf-justify-between rf-items-center",children:[Je.jsx("div",{children:"Render Logs"}),Je.jsxs("div",{className:"rf-mb-4 rf-pr-2 rf-flex rf-text-xs rf-items-center",children:[Je.jsx("div",{className:"rf-mr-2",children:"Sort by:"}),Je.jsxs("select",{value:e,onChange:o=>t(o.target.value),className:"rf-px-2 rf-py-1 rf-border rf-rounded rf-text-xs",children:[Je.jsx("option",{value:"chronological",children:"Phase Order"}),Je.jsx("option",{value:"longest",children:"Duration"})]})]})]}),Je.jsx(qgi,{phaseTimings:i.phaseTimings}),Je.jsxs("table",{className:"rf-w-full rf-text-xs",children:[Je.jsx("thead",{children:Je.jsxs("tr",{children:[Je.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase Order"}),Je.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase"}),Je.jsx("th",{className:"rf-text-left rf-p-2",children:"Duration (ms)"})]})}),Je.jsx("tbody",{children:n.map(([o,s])=>Je.jsxs("tr",{children:[Je.jsx("td",{className:"rf-p-2",children:yE.indexOf(o)}),Je.jsx("td",{className:"rf-p-2",children:o}),Je.jsx("td",{className:"rf-p-2",children:Je.jsx("div",{className:"rf-w-8",children:Je.jsx("div",{className:"rf-h-2 rf-rounded-sm",style:{backgroundColor:ZEt(o),width:`${s/r*100}%`}})})}),Je.jsx("td",{className:"rf-p-2",children:Je.jsxs("div",{className:"rf-flex w-full",children:[Je.jsxs("span",{className:"rf-flex-grow",children:[s,"ms"]}),Je.jsxs("span",{className:"rf-text-gray-500 rf-pr-2",children:[(s/r*100).toFixed(1),"%"]})]})})]},o))})]})]})},e5t=({errorMessage:i,errorStack:e,circuitJsonErrors:t})=>{at.useEffect(()=>{if(i){const n=new Error(i);e&&(n.stack=e);try{$j.captureException(n)}catch{}}},[i,e]),at.useEffect(()=>{if(t&&t.length>0)for(const n of t){const r=new Error(n.message||"Circuit JSON Error");n.stack&&(r.stack=n.stack);try{$j.captureException(r,{error_type:n.type})}catch{}}},[t])},$gi="0.0.776";function t5t(i,e){const[t,n]=at.useState(()=>{try{const r=window.localStorage.getItem(i);return r?JSON.parse(r):e}catch(r){return console.error("Error reading from localStorage:",r),e}});return at.useEffect(()=>{try{window.localStorage.setItem(i,JSON.stringify(t))}catch(r){console.error("Error writing to localStorage:",r)}},[i,t]),[t,n]}const sne=wYe()(SYe(i=>({lastRunEvalVersion:void 0,setLastRunEvalVersion:e=>{i({lastRunEvalVersion:e})}}),{name:"runframe-runner-store"})),Zgi=i=>{const[e,t]=at.useState([]),[n,r]=at.useState(null),[o,s]=at.useState(""),[a,c]=t5t("eval-version-selection",null),l=sne(f=>f.setLastRunEvalVersion),u=sne(f=>f.lastRunEvalVersion);return at.useEffect(()=>{i&&fetch("https://data.jsdelivr.com/v1/package/npm/@tscircuit/eval").then(f=>f.json()).then(f=>{var A;if(Array.isArray(f==null?void 0:f.versions)){let m=[...f.versions];(A=f.tags)!=null&&A.latest&&(r(f.tags.latest),m=m.filter(_=>_!==f.tags.latest)),t(m)}}).catch(()=>{})},[i]),at.useEffect(()=>{i&&(a?(window.TSCIRCUIT_LATEST_EVAL_VERSION=a,l(a)):n&&(window.TSCIRCUIT_LATEST_EVAL_VERSION=n,l(n)))},[i,a,n]),{versions:at.useMemo(()=>e.filter(f=>f.includes(o)).slice(0,50),[e,o]),latestVersion:n,lastRunEvalVersion:u,search:o,setSearch:s,selectVersion:f=>{c(f),s("")}}},emi=["assembly","bom","circuit_json","errors","render_log"],tmi=({code:i,fsMap:e,onRunClicked:t=void 0,errorMessage:n,errorStack:r,circuitJson:o,autoroutingGraphics:s,showRightHeaderContent:a=!0,showCodeTab:c=!1,codeTabContent:l,showJsonTab:u=!0,showRenderLogTab:d=!0,onActiveTabChange:h,renderLog:f,showImportAndFormatButtons:A=!0,className:m,headerClassName:_,leftHeaderContent:y,readOnly:v,isStreaming:I,autoroutingLog:S,onReportAutoroutingLog:L,isRunningCode:Q,hasCodeChangedSinceLastRun:T,onEditEvent:B,editEvents:P,defaultActiveTab:R,defaultTab:X,availableTabs:G,autoRotate3dViewerDisabled:q,showSchematicDebugGrid:re=!1,showToggleFullScreen:ce=!0,defaultToFullScreen:oe=!1,activeEffectName:ye,allowSelectingVersion:fe=!0})=>{var Qt,Bt;Wgi();const{versions:we,latestVersion:Be,lastRunEvalVersion:Se,search:be,setSearch:Pe,selectVersion:Ke}=Zgi(fe),et=at.useMemo(()=>o?o.filter(bt=>bt&&"error_type"in bt||bt.type.includes("error")):null,[o]),lt=at.useMemo(()=>o?o.filter(bt=>bt&&"warning_type"in bt||bt.type.includes("warning")):null,[o]);e5t({errorMessage:n,errorStack:r,circuitJsonErrors:et});const[Mt,ft]=at.useState(R??X??(G==null?void 0:G[0])??"pcb"),[Ee,Oe]=at.useState(null),[Ye,dt]=at.useState(oe);Xgi(Ye);const _t=at.useCallback(bt=>{ft(bt),h==null||h(bt)},[h]),At=()=>{dt(!Ye)};at.useEffect(()=>{n&&(Mt!=="errors"&&Oe(Mt),_t("errors"))},[n]),at.useEffect(()=>{(Mt==="code"||Mt==="errors")&&o&&!n&&_t(Ee??R??X??(G==null?void 0:G[0])??"pcb")},[o]);const Ze=at.useCallback(bt=>{window.TSCIRCUIT_3D_OBJECT_REF=bt===null?void 0:bt},[]);return Je.jsx("div",{className:Cp("flex flex-col relative rf-overflow-x-hidden rf-h-full",m),children:Je.jsx("div",{className:Cp("rf-md:sticky rf-md:top-2 rf-h-full",Ye&&"rf-fixed rf-top-0 rf-left-0 rf-w-full rf-h-full rf-bg-white rf-overflow-hidden"),children:Je.jsxs(Tfe,{value:Mt,onValueChange:_t,className:"rf-flex-grow rf-flex rf-flex-col rf-h-full",children:[Je.jsxs("div",{className:Cp("rf-flex rf-items-center rf-gap-2 rf-p-2 rf-pb-0",_),children:[y,y&&Je.jsx("div",{className:"rf-flex-grow"}),!y&&Q&&Je.jsx(CR,{className:"rf-w-4 rf-h-4 rf-animate-spin"}),!y&&Je.jsx("div",{className:"rf-flex-grow"}),f&&f.progress!==1&&!n&&Je.jsxs("div",{className:"rf-flex rf-items-center rf-gap-2 rf-min-w-0 rf-max-w-xs",children:[ye?Je.jsx("div",{className:"rf-text-xs rf-text-gray-500 rf-truncate rf-min-w-0",title:ye,children:ye}):f.lastRenderEvent&&Je.jsx("div",{className:"rf-text-xs rf-text-gray-500 rf-truncate rf-min-w-0",title:((Qt=f.lastRenderEvent)==null?void 0:Qt.phase)??"",children:((Bt=f.lastRenderEvent)==null?void 0:Bt.phase)??""}),Je.jsx("div",{className:"rf-w-4 rf-h-4 rf-bg-blue-500 rf-opacity-50 rf-rounded-full rf-text-white rf-flex-shrink-0",children:Je.jsx(CR,{className:"rf-w-4 rf-h-4 rf-animate-spin"})}),Je.jsxs("div",{className:"rf-text-xs rf-font-bold rf-text-gray-700 rf-tabular-nums rf-flex-shrink-0",children:[((f.progress??0)*100).toFixed(1),"%"]})]}),a&&Je.jsxs(eK,{children:[c&&Je.jsx(Lw,{value:"code",children:"Code"}),!G||G.includes("pcb")?Je.jsxs(Lw,{value:"pcb",className:"rf-whitespace-nowrap",children:[o&&Je.jsx("span",{className:Cp("rf-inline-flex rf-items-center rf-justify-center rf-w-2 rf-h-2 rf-mr-1 rf-text-xs rf-font-bold rf-text-white rf-rounded-full",T?"rf-bg-gray-500":"rf-bg-blue-500")}),"PCB"]}):null,!G||G.includes("schematic")?Je.jsxs(Lw,{value:"schematic",className:"rf-whitespace-nowrap",children:[o&&Je.jsx("span",{className:Cp("rf-inline-flex rf-items-center rf-justify-center rf-w-2 rf-h-2 rf-mr-1 rf-text-xs rf-font-bold rf-text-white rf-rounded-full",T?"rf-bg-gray-500":"rf-bg-blue-500")}),"Schematic"]}):null,!G||G.includes("cad")?Je.jsxs(Lw,{value:"cad",children:[o&&Je.jsx("span",{className:Cp("inline-flex items-center justify-center w-2 h-2 mr-1 text-xs font-bold text-white rounded-full",T?"rf-bg-gray-500":"rf-bg-blue-500")}),"3D"]}):null,!["pcb","cad","schematic"].includes(Mt)&&Je.jsx(Lw,{value:Mt,children:PKe(Mt)}),Je.jsxs(Q2e,{children:[Je.jsx(D2e,{asChild:!0,children:Je.jsxs("div",{className:"rf-whitespace-nowrap rf-p-2 rf-mr-1 rf-cursor-pointer rf-relative",children:[Je.jsx(uNn,{className:"rf-w-4 rf-h-4"}),(et&&et.length>0||n)&&Je.jsx("span",{className:"rf-inline-flex rf-absolute rf-top-[6px] rf-right-[4px] rf-items-center rf-justify-center rf-w-1 rf-h-1 rf-ml-2 rf-text-[8px] rf-font-bold rf-text-white rf-bg-red-500 rf-rounded-full"})]})}),Je.jsxs(LJ,{className:"rf-*:text-xs",children:[emi.filter(bt=>!G||G.includes(bt)).map(bt=>Je.jsxs(V2,{onSelect:()=>_t(bt),children:[Mt!==bt&&Je.jsx(Ypt,{className:"rf-w-3 rf-h-3 rf-opacity-30"}),Mt===bt&&Je.jsx(lJ,{className:"rf-w-3 rf-h-3"}),Je.jsx("div",{className:"rf-pr-2",children:PKe(bt)}),bt==="errors"&&(et&&et.length>0||n)&&Je.jsx("span",{className:"rf-inline-flex rf-items-center rf-justify-center rf-w-3 rf-h-3 rf-ml-2 rf-text-[8px] rf-font-bold rf-text-white rf-bg-red-500 rf-rounded-full",children:n?1:et==null?void 0:et.length})]},bt)),Je.jsx(V2,{disabled:!0,className:"rf-opacity-60 rf-cursor-default rf-select-none",children:Je.jsxs("div",{className:"rf-pr-2 rf-text-xs rf-text-gray-500",children:["@tscircuit/runframe@",$gi.split(".").map((bt,Yt)=>Yt===2?parseInt(bt)+1:bt).join(".")]})}),fe?Je.jsxs(T2e,{onOpenChange:bt=>!bt&&Pe(""),children:[Je.jsx(kJ,{className:"rf-text-xs rf-opacity-60",children:Je.jsxs("div",{className:"rf-pr-2 rf-text-xs rf-text-gray-500",children:["@tscircuit/eval@",Se??Be??"latest"]})}),Je.jsx(N2e,{children:Je.jsxs(PJ,{className:"rf-*:text-xs rf-w-40 rf-max-h-[200px] rf-overflow-y-auto",children:[Je.jsx("div",{className:"rf-p-1",children:Je.jsx(bEe,{value:be,onChange:bt=>Pe(bt.target.value),placeholder:"Search...",className:"rf-h-7 rf-text-xs"})}),Je.jsx(Wgt,{}),Je.jsx(V2,{onSelect:()=>Ke(null),children:Be?`${Be} (latest)`:"latest"}),we.map(bt=>Je.jsx(V2,{onSelect:()=>Ke(bt),children:bt},bt))]})})]}):Se&&Je.jsx(V2,{disabled:!0,className:"rf-opacity-60 rf-cursor-default rf-select-none",children:Je.jsxs("div",{className:"rf-pr-2 rf-text-xs rf-text-gray-500",children:["@tscircuit/eval@",Se]})})]})]})]}),ce&&Je.jsx(Ax,{onClick:At,variant:"ghost",children:Ye?Je.jsx(pNn,{size:16}):Je.jsx(hNn,{size:16})})]}),c&&Je.jsx(G5,{value:"code",className:"rf-flex-grow rf-overflow-hidden",children:Je.jsx("div",{className:"rf-h-full",children:l})}),(!G||G.includes("pcb"))&&Je.jsx(G5,{value:"pcb",children:Je.jsx("div",{className:Cp("rf-overflow-hidden",Ye?"rf-h-[calc(100vh-52px)]":"rf-h-full"),children:Je.jsx(X7,{fallbackRender:({error:bt})=>Je.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200",children:Je.jsxs("div",{className:"rf-p-4",children:[Je.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-3",children:"Error loading PCB viewer"}),Je.jsx("p",{className:"rf-text-xs rf-font-mono rf-whitespace-pre-wrap rf-text-red-600 rf-mt-2",children:(bt==null?void 0:bt.message)||"An unknown error occurred"})]})}),children:o?Je.jsx(jgi,{focusOnHover:!1,circuitJson:o,debugGraphics:s,containerClassName:Cp("rf-h-full rf-w-full",Ye?"rf-min-h-[calc(100vh-240px)]":"rf-min-h-[620px]"),onEditEventsChanged:bt=>{if(B)for(const Yt of bt)B(Yt)}}):Je.jsx(UR,{onRunClicked:t})})})}),(!G||G.includes("assembly"))&&Je.jsx(G5,{value:"assembly",children:Je.jsx("div",{className:Cp("rf-overflow-auto",Ye?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Je.jsx(X7,{fallback:Je.jsx("div",{children:"Error loading Assembly"}),children:o?Je.jsx(oHn,{circuitJson:o,containerStyle:{height:"100%"},editingEnabled:!0,debugGrid:!0}):Je.jsx(UR,{onRunClicked:t})})})}),(!G||G.includes("schematic"))&&Je.jsx(G5,{value:"schematic",children:Je.jsx("div",{className:Cp("rf-overflow-auto rf-bg-white",Ye?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Je.jsx(X7,{fallbackRender:({error:bt})=>Je.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200",children:Je.jsxs("div",{className:"rf-p-4",children:[Je.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-3",children:"Error loading Schematic"}),Je.jsx("p",{className:"rf-text-xs rf-font-mono rf-whitespace-pre-wrap rf-text-red-600 rf-mt-2",children:(bt==null?void 0:bt.message)||"An unknown error occurred"})]})}),children:o?Je.jsx(nHn,{circuitJson:o,containerStyle:{height:"100%"},editingEnabled:!0,onEditEvent:bt=>{B==null||B(bt)},debugGrid:re}):Je.jsx(UR,{onRunClicked:t})})})}),(!G||G.includes("cad"))&&Je.jsx(G5,{value:"cad",children:Je.jsx("div",{className:Cp("rf-overflow-auto",Ye?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Je.jsx(X7,{FallbackComponent:J7n,children:o?Je.jsx(X7n,{ref:Ze,circuitJson:o,autoRotateDisabled:q}):Je.jsx(UR,{onRunClicked:t})})})}),(!G||G.includes("bom"))&&Je.jsx(G5,{value:"bom",children:Je.jsx("div",{className:Cp("rf-overflow-auto",Ye?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Je.jsx(X7,{fallbackRender:({error:bt})=>Je.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200",children:Je.jsxs("div",{className:"rf-p-4",children:[Je.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-3",children:"Error loading Bill of Materials"}),Je.jsx("p",{className:"rf-text-xs rf-font-mono rf-whitespace-pre-wrap rf-text-red-600 rf-mt-2",children:(bt==null?void 0:bt.message)||"An unknown error occurred"})]})}),children:o?Je.jsx(uHn,{circuitJson:o}):Je.jsx(UR,{onRunClicked:t})})})}),(!G||G.includes("circuit_json"))&&Je.jsx(G5,{value:"circuit_json",children:Je.jsx("div",{className:Cp("rf-overflow-auto",Ye?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Je.jsx(X7,{fallback:Je.jsx("div",{children:"Error loading JSON viewer"}),children:o?Je.jsx(cHn,{elements:o}):Je.jsx(UR,{onRunClicked:t})})})}),(!G||G.includes("errors"))&&Je.jsx(G5,{value:"errors",children:Je.jsx("div",{className:Cp("rf-overflow-auto",Ye?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:n||et&&et.length>0||o?Je.jsx(tLn,{code:i,fsMap:e,circuitJsonErrors:et,circuitJsonWarnings:lt,errorMessage:n,errorStack:r,circuitJson:o,evalVersion:Se,autoroutingLog:S,onReportAutoroutingLog:L}):Je.jsx(UR,{onRunClicked:t})})}),d&&(!G||G.includes("render_log"))&&Je.jsx(G5,{value:"render_log",children:Je.jsx(Jgi,{renderLog:f})})]})})})};var ane="Dialog",[n5t,i5t]=Bw(ane),[nmi,$3]=n5t(ane),r5t=i=>{const{__scopeDialog:e,children:t,open:n,defaultOpen:r,onOpenChange:o,modal:s=!0}=i,a=at.useRef(null),c=at.useRef(null),[l,u]=s6({prop:n,defaultProp:r??!1,onChange:o,caller:ane});return Je.jsx(nmi,{scope:e,triggerRef:a,contentRef:c,contentId:c2(),titleId:c2(),descriptionId:c2(),open:l,onOpenChange:u,onOpenToggle:at.useCallback(()=>u(d=>!d),[u]),modal:s,children:t})};r5t.displayName=ane;var o5t="DialogTrigger",s5t=at.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=$3(o5t,t),o=lx(e,r.triggerRef);return Je.jsx(sy.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":mBe(r.open),...n,ref:o,onClick:uA(i.onClick,r.onOpenToggle)})});s5t.displayName=o5t;var ABe="DialogPortal",[imi,a5t]=n5t(ABe,{forceMount:void 0}),c5t=i=>{const{__scopeDialog:e,forceMount:t,children:n,container:r}=i,o=$3(ABe,e);return Je.jsx(imi,{scope:e,forceMount:t,children:at.Children.map(n,s=>Je.jsx(L5,{present:t||o.open,children:Je.jsx(xJ,{asChild:!0,container:r,children:s})}))})};c5t.displayName=ABe;var cne="DialogOverlay",l5t=at.forwardRef((i,e)=>{const t=a5t(cne,i.__scopeDialog),{forceMount:n=t.forceMount,...r}=i,o=$3(cne,i.__scopeDialog);return o.modal?Je.jsx(L5,{present:n||o.open,children:Je.jsx(omi,{...r,ref:e})}):null});l5t.displayName=cne;var rmi=o6("DialogOverlay.RemoveScroll"),omi=at.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=$3(cne,t);return Je.jsx(RJ,{as:rmi,allowPinchZoom:!0,shards:[r.contentRef],children:Je.jsx(sy.div,{"data-state":mBe(r.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),aQ="DialogContent",u5t=at.forwardRef((i,e)=>{const t=a5t(aQ,i.__scopeDialog),{forceMount:n=t.forceMount,...r}=i,o=$3(aQ,i.__scopeDialog);return Je.jsx(L5,{present:n||o.open,children:o.modal?Je.jsx(smi,{...r,ref:e}):Je.jsx(ami,{...r,ref:e})})});u5t.displayName=aQ;var smi=at.forwardRef((i,e)=>{const t=$3(aQ,i.__scopeDialog),n=at.useRef(null),r=lx(e,t.contentRef,n);return at.useEffect(()=>{const o=n.current;if(o)return m2e(o)},[]),Je.jsx(d5t,{...i,ref:r,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:uA(i.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=t.triggerRef.current)==null||s.focus()}),onPointerDownOutside:uA(i.onPointerDownOutside,o=>{const s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:uA(i.onFocusOutside,o=>o.preventDefault())})}),ami=at.forwardRef((i,e)=>{const t=$3(aQ,i.__scopeDialog),n=at.useRef(!1),r=at.useRef(!1);return Je.jsx(d5t,{...i,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s,a;(s=i.onCloseAutoFocus)==null||s.call(i,o),o.defaultPrevented||(n.current||(a=t.triggerRef.current)==null||a.focus(),o.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:o=>{var c,l;(c=i.onInteractOutside)==null||c.call(i,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const s=o.target;((l=t.triggerRef.current)==null?void 0:l.contains(s))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&r.current&&o.preventDefault()}})}),d5t=at.forwardRef((i,e)=>{const{__scopeDialog:t,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:o,...s}=i,a=$3(aQ,t),c=at.useRef(null),l=lx(e,c);return JCe(),Je.jsxs(Je.Fragment,{children:[Je.jsx(dJ,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:o,children:Je.jsx(uJ,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":mBe(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),Je.jsxs(Je.Fragment,{children:[Je.jsx(lmi,{titleId:a.titleId}),Je.jsx(dmi,{contentRef:c,descriptionId:a.descriptionId})]})]})}),gBe="DialogTitle",h5t=at.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=$3(gBe,t);return Je.jsx(sy.h2,{id:r.titleId,...n,ref:e})});h5t.displayName=gBe;var f5t="DialogDescription",p5t=at.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=$3(f5t,t);return Je.jsx(sy.p,{id:r.descriptionId,...n,ref:e})});p5t.displayName=f5t;var A5t="DialogClose",g5t=at.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=$3(A5t,t);return Je.jsx(sy.button,{type:"button",...n,ref:e,onClick:uA(i.onClick,()=>r.onOpenChange(!1))})});g5t.displayName=A5t;function mBe(i){return i?"open":"closed"}var m5t="DialogTitleWarning",[cmi,_5t]=aan(m5t,{contentName:aQ,titleName:gBe,docsSlug:"dialog"}),lmi=({titleId:i})=>{const e=_5t(m5t),t=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
13881
+ */const jgi=({containerClassName:i,...e})=>{const t=at.useRef(null),[n,r]=at.useState(620);return at.useLayoutEffect(()=>{const o=()=>{if(t.current){const a=t.current.clientHeight,c=window.innerHeight;r(Math.min(Math.max(a,620),c))}};o();const s=new ResizeObserver(o);return t.current&&s.observe(t.current),window.addEventListener("resize",o),()=>{s.disconnect(),window.removeEventListener("resize",o)}},[]),Je.jsx("div",{ref:t,className:i||"rf-w-full rf-h-full",children:Je.jsx(Vgi,{...e,height:n})})},Kgi='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:root{--radius:0.5rem}.rf-pointer-events-none{pointer-events:none}.rf-invisible{visibility:hidden}.rf-fixed{position:fixed}.rf-absolute{position:absolute}.rf-relative{position:relative}.rf-inset-0{inset:0}.-rf-left-2{left:-.5rem}.-rf-right-10{right:-2.5rem}.-rf-right-2{right:-.5rem}.-rf-right-4{right:-1rem}.-rf-right-6{right:-1.5rem}.-rf-right-7{right:-1.75rem}.-rf-right-8{right:-2rem}.-rf-right-9{right:-2.25rem}.rf-bottom-full{bottom:100%}.rf-left-0{left:0}.rf-left-1{left:.25rem}.rf-left-1\\/2{left:50%}.rf-left-2{left:.5rem}.rf-left-\\[50\\%\\]{left:50%}.rf-right-0{right:0}.rf-right-1{right:.25rem}.rf-right-4{right:1rem}.rf-right-\\[4px\\]{right:4px}.rf-top-0{top:0}.rf-top-1{top:.25rem}.rf-top-2{top:.5rem}.rf-top-2\\.5{top:.625rem}.rf-top-\\[50\\%\\]{top:50%}.rf-top-\\[6px\\]{top:6px}.\\!rf-z-\\[101\\]{z-index:101!important}.rf-z-10{z-index:10}.rf-z-50{z-index:50}.rf-z-\\[100\\]{z-index:100}.rf-order-1{order:1}.rf-order-2{order:2}.rf-order-3{order:3}.rf-m-1{margin:.25rem}.rf-m-6{margin:1.5rem}.-rf-mx-1,.rf--mx-1{margin-left:-.25rem;margin-right:-.25rem}.rf-mx-1{margin-left:.25rem;margin-right:.25rem}.rf-mx-2{margin-left:.5rem;margin-right:.5rem}.rf-mx-4{margin-left:1rem;margin-right:1rem}.rf-mx-auto{margin-left:auto;margin-right:auto}.rf-my-1{margin-bottom:.25rem;margin-top:.25rem}.rf-my-12{margin-bottom:3rem;margin-top:3rem}.rf-my-4{margin-bottom:1rem;margin-top:1rem}.rf-my-auto{margin-bottom:auto;margin-top:auto}.rf-mb-1{margin-bottom:.25rem}.rf-mb-12{margin-bottom:3rem}.rf-mb-2{margin-bottom:.5rem}.rf-mb-3{margin-bottom:.75rem}.rf-mb-4{margin-bottom:1rem}.rf-mb-6{margin-bottom:1.5rem}.rf-mb-8{margin-bottom:2rem}.rf-ml-1{margin-left:.25rem}.rf-ml-2{margin-left:.5rem}.rf-ml-auto{margin-left:auto}.rf-mr-1{margin-right:.25rem}.rf-mr-2{margin-right:.5rem}.rf-mt-0{margin-top:0}.rf-mt-0\\.5{margin-top:.125rem}.rf-mt-1{margin-top:.25rem}.rf-mt-2{margin-top:.5rem}.rf-mt-3{margin-top:.75rem}.rf-mt-4{margin-top:1rem}.rf-mt-5{margin-top:1.25rem}.rf-mt-auto{margin-top:auto}.rf-block{display:block}.rf-inline-block{display:inline-block}.rf-inline{display:inline}.rf-flex{display:flex}.rf-inline-flex{display:inline-flex}.rf-grid{display:grid}.rf-hidden{display:none}.rf-aspect-square{aspect-ratio:1/1}.rf-aspect-video{aspect-ratio:16/9}.rf-size-14{height:3.5rem;width:3.5rem}.rf-size-4{height:1rem;width:1rem}.\\!rf-h-2{height:.5rem!important}.\\!rf-h-2\\.5{height:.625rem!important}.\\!rf-h-3{height:.75rem!important}.\\!rf-h-full{height:100%!important}.rf-h-1{height:.25rem}.rf-h-10{height:2.5rem}.rf-h-12{height:3rem}.rf-h-2{height:.5rem}.rf-h-2\\.5{height:.625rem}.rf-h-3{height:.75rem}.rf-h-3\\.5{height:.875rem}.rf-h-4{height:1rem}.rf-h-5{height:1.25rem}.rf-h-6{height:1.5rem}.rf-h-60{height:15rem}.rf-h-64{height:16rem}.rf-h-7{height:1.75rem}.rf-h-8{height:2rem}.rf-h-9{height:2.25rem}.rf-h-\\[400px\\]{height:400px}.rf-h-\\[calc\\(100vh-52px\\)\\]{height:calc(100vh - 52px)}.rf-h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.rf-h-auto{height:auto}.rf-h-fit{height:-moz-fit-content;height:fit-content}.rf-h-full{height:100%}.rf-h-px{height:1px}.rf-h-screen{height:100vh}.\\!rf-max-h-\\[40vh\\]{max-height:40vh!important}.rf-max-h-32{max-height:8rem}.rf-max-h-96{max-height:24rem}.rf-max-h-\\[200px\\]{max-height:200px}.rf-max-h-\\[300px\\]{max-height:300px}.rf-max-h-\\[500px\\]{max-height:500px}.rf-max-h-\\[90vh\\]{max-height:90vh}.rf-max-h-full{max-height:100%}.rf-min-h-0{min-height:0}.rf-min-h-\\[200px\\]{min-height:200px}.rf-min-h-\\[300px\\]{min-height:300px}.rf-min-h-\\[620px\\]{min-height:620px}.rf-min-h-\\[calc\\(100vh-240px\\)\\]{min-height:calc(100vh - 240px)}.\\!rf-w-2{width:.5rem!important}.\\!rf-w-2\\.5{width:.625rem!important}.rf-w-1{width:.25rem}.rf-w-1\\/2{width:50%}.rf-w-11{width:2.75rem}.rf-w-11\\/12{width:91.666667%}.rf-w-12{width:3rem}.rf-w-16{width:4rem}.rf-w-2{width:.5rem}.rf-w-2\\.5{width:.625rem}.rf-w-20{width:5rem}.rf-w-28{width:7rem}.rf-w-3{width:.75rem}.rf-w-3\\.5{width:.875rem}.rf-w-32{width:8rem}.rf-w-4{width:1rem}.rf-w-40{width:10rem}.rf-w-48{width:12rem}.rf-w-5{width:1.25rem}.rf-w-6{width:1.5rem}.rf-w-64{width:16rem}.rf-w-72{width:18rem}.rf-w-8{width:2rem}.rf-w-9{width:2.25rem}.rf-w-96{width:24rem}.rf-w-\\[95\\%\\]{width:95%}.rf-w-fit{width:-moz-fit-content;width:fit-content}.rf-w-full{width:100%}.rf-w-screen{width:100vw}.rf-min-w-0{min-width:0}.rf-min-w-10{min-width:2.5rem}.rf-min-w-16{min-width:4rem}.rf-min-w-\\[148px\\]{min-width:148px}.rf-min-w-\\[8rem\\]{min-width:8rem}.rf-min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.\\!rf-max-w-\\[660px\\]{max-width:660px!important}.rf-max-w-2xl{max-width:42rem}.rf-max-w-3xl{max-width:48rem}.rf-max-w-4xl{max-width:56rem}.rf-max-w-5xl{max-width:64rem}.rf-max-w-full{max-width:100%}.rf-max-w-lg{max-width:32rem}.rf-max-w-md{max-width:28rem}.rf-max-w-none{max-width:none}.rf-max-w-xl{max-width:36rem}.rf-max-w-xs{max-width:20rem}.rf-flex-1{flex:1 1 0%}.rf-flex-shrink-0,.rf-shrink-0{flex-shrink:0}.rf-flex-grow{flex-grow:1}.rf-table-auto{table-layout:auto}.rf-origin-\\[--radix-popover-content-transform-origin\\]{transform-origin:var(--radix-popover-content-transform-origin)}.-rf-translate-x-1{--tw-translate-x:-0.25rem}.-rf-translate-x-1,.-rf-translate-x-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rf-translate-x-1\\/2{--tw-translate-x:-50%}.-rf-translate-y-1{--tw-translate-y:-0.25rem}.-rf-translate-y-1,.rf--translate-x-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-x-1{--tw-translate-x:-0.25rem}.rf--translate-x-1\\/2{--tw-translate-x:-50%}.rf--translate-x-1\\/2,.rf--translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-y-1{--tw-translate-y:-0.25rem}.rf-translate-x-\\[-50\\%\\]{--tw-translate-x:-50%}.rf-translate-x-\\[-50\\%\\],.rf-translate-y-\\[-50\\%\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf-translate-y-\\[-50\\%\\]{--tw-translate-y:-50%}.rf-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes rf-pulse{50%{opacity:.5}}.rf-animate-pulse{animation:rf-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rf-spin{to{transform:rotate(1turn)}}.rf-animate-spin{animation:rf-spin 1s linear infinite}.rf-cursor-default{cursor:default}.rf-cursor-not-allowed{cursor:not-allowed}.rf-cursor-pointer{cursor:pointer}.rf-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.rf-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.rf-flex-row{flex-direction:row}.rf-flex-col{flex-direction:column}.rf-flex-col-reverse{flex-direction:column-reverse}.rf-flex-wrap{flex-wrap:wrap}.rf-place-items-center{place-items:center}.rf-items-start{align-items:flex-start}.rf-items-end{align-items:flex-end}.rf-items-center{align-items:center}.rf-items-stretch{align-items:stretch}.rf-justify-end{justify-content:flex-end}.rf-justify-center{justify-content:center}.rf-justify-between{justify-content:space-between}.rf-gap-0{gap:0}.rf-gap-1{gap:.25rem}.rf-gap-2{gap:.5rem}.rf-gap-3{gap:.75rem}.rf-gap-4{gap:1rem}.rf-gap-5{gap:1.25rem}.rf-gap-6{gap:1.5rem}.rf-gap-8{gap:2rem}.rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.rf-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.rf-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.rf-overflow-auto{overflow:auto}.rf-overflow-hidden{overflow:hidden}.rf-overflow-visible{overflow:visible}.rf-overflow-x-auto{overflow-x:auto}.\\!rf-overflow-y-auto{overflow-y:auto!important}.rf-overflow-y-auto{overflow-y:auto}.rf-overflow-x-hidden{overflow-x:hidden}.rf-overflow-x-clip{overflow-x:clip}.rf-truncate{overflow:hidden;text-overflow:ellipsis}.rf-truncate,.rf-whitespace-nowrap{white-space:nowrap}.rf-whitespace-pre-wrap{white-space:pre-wrap}.rf-break-words{overflow-wrap:break-word}.rf-rounded{border-radius:.25rem}.rf-rounded-2xl{border-radius:1rem}.rf-rounded-full{border-radius:9999px}.rf-rounded-lg{border-radius:var(--radius)}.rf-rounded-md{border-radius:calc(var(--radius) - 2px)}.rf-rounded-sm{border-radius:calc(var(--radius) - 4px)}.rf-rounded-xl{border-radius:.75rem}.rf-border{border-width:1px}.rf-border-2{border-width:2px}.rf-border-b{border-bottom-width:1px}.rf-border-t{border-top-width:1px}.rf-border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.rf-border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.rf-border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.rf-border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.rf-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.rf-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.rf-border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}.rf-border-input{border-color:hsl(var(--input))}.rf-border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.rf-border-orange-200{--tw-border-opacity:1;border-color:rgb(254 215 170/var(--tw-border-opacity,1))}.rf-border-primary{border-color:hsl(var(--primary))}.rf-border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.rf-border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity,1))}.rf-border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.rf-border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1))}.rf-border-zinc-900{--tw-border-opacity:1;border-color:rgb(24 24 27/var(--tw-border-opacity,1))}.rf-bg-background{background-color:hsl(var(--background))}.rf-bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.rf-bg-black\\/80{background-color:rgba(0,0,0,.8)}.rf-bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.rf-bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.rf-bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.rf-bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.rf-bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.rf-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.rf-bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.rf-bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.rf-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.rf-bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}.rf-bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.rf-bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.rf-bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.rf-bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.rf-bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.rf-bg-muted{background-color:hsl(var(--muted))}.rf-bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.rf-bg-neutral-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.rf-bg-neutral-900{--tw-bg-opacity:1;background-color:rgb(23 23 23/var(--tw-bg-opacity,1))}.rf-bg-orange-400{--tw-bg-opacity:1;background-color:rgb(251 146 60/var(--tw-bg-opacity,1))}.rf-bg-orange-50{--tw-bg-opacity:1;background-color:rgb(255 247 237/var(--tw-bg-opacity,1))}.rf-bg-popover{background-color:hsl(var(--popover))}.rf-bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.rf-bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.rf-bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.rf-bg-red-900{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.rf-bg-transparent{background-color:transparent}.rf-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.rf-bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}.rf-bg-zinc-100{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.rf-bg-zinc-200{--tw-bg-opacity:1;background-color:rgb(228 228 231/var(--tw-bg-opacity,1))}.rf-bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-zinc-800{--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.rf-bg-zinc-900{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.rf-bg-opacity-50{--tw-bg-opacity:0.5}.rf-fill-current{fill:currentColor}.rf-object-contain{-o-object-fit:contain;object-fit:contain}.rf-object-cover{-o-object-fit:cover;object-fit:cover}.\\!rf-p-0{padding:0!important}.rf-p-0{padding:0}.rf-p-1{padding:.25rem}.rf-p-2{padding:.5rem}.rf-p-3{padding:.75rem}.rf-p-4{padding:1rem}.rf-p-5{padding:1.25rem}.rf-p-6{padding:1.5rem}.rf-p-8{padding:2rem}.rf-px-1{padding-left:.25rem;padding-right:.25rem}.rf-px-2{padding-left:.5rem;padding-right:.5rem}.rf-px-3{padding-left:.75rem;padding-right:.75rem}.rf-px-4{padding-left:1rem;padding-right:1rem}.rf-px-6{padding-left:1.5rem;padding-right:1.5rem}.rf-px-8{padding-left:2rem;padding-right:2rem}.rf-py-0{padding-bottom:0;padding-top:0}.rf-py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.rf-py-1{padding-bottom:.25rem;padding-top:.25rem}.rf-py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.rf-py-10{padding-bottom:2.5rem;padding-top:2.5rem}.rf-py-12{padding-bottom:3rem;padding-top:3rem}.rf-py-2{padding-bottom:.5rem;padding-top:.5rem}.rf-py-3{padding-bottom:.75rem;padding-top:.75rem}.rf-py-4{padding-bottom:1rem;padding-top:1rem}.rf-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.rf-py-8{padding-bottom:2rem;padding-top:2rem}.rf-pb-0{padding-bottom:0}.rf-pb-2{padding-bottom:.5rem}.rf-pb-3{padding-bottom:.75rem}.rf-pb-4{padding-bottom:1rem}.rf-pl-2{padding-left:.5rem}.rf-pl-4{padding-left:1rem}.rf-pl-8{padding-left:2rem}.rf-pr-2{padding-right:.5rem}.rf-pt-0{padding-top:0}.rf-pt-2{padding-top:.5rem}.rf-pt-4{padding-top:1rem}.rf-text-left{text-align:left}.rf-text-center{text-align:center}.rf-text-right{text-align:right}.rf-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.rf-text-2xl{font-size:1.5rem;line-height:2rem}.rf-text-3xl{font-size:1.875rem;line-height:2.25rem}.rf-text-\\[8px\\]{font-size:8px}.rf-text-base{font-size:1rem;line-height:1.5rem}.rf-text-lg{font-size:1.125rem;line-height:1.75rem}.rf-text-sm{font-size:.875rem;line-height:1.25rem}.rf-text-xl{font-size:1.25rem;line-height:1.75rem}.rf-text-xs{font-size:.75rem;line-height:1rem}.\\!rf-font-normal{font-weight:400!important}.rf-font-bold{font-weight:700}.rf-font-medium{font-weight:500}.rf-font-semibold{font-weight:600}.rf-uppercase{text-transform:uppercase}.rf-capitalize{text-transform:capitalize}.rf-tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.rf-leading-5{line-height:1.25rem}.rf-leading-none{line-height:1}.rf-leading-relaxed{line-height:1.625}.rf-leading-tight{line-height:1.25}.rf-tracking-wide{letter-spacing:.025em}.rf-tracking-widest{letter-spacing:.1em}.rf-text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.rf-text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.rf-text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.rf-text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.rf-text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.rf-text-blue-900{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity,1))}.rf-text-current{color:currentColor}.rf-text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.rf-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.rf-text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.rf-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.rf-text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.rf-text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.rf-text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.rf-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.rf-text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.rf-text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.rf-text-green-900{--tw-text-opacity:1;color:rgb(20 83 45/var(--tw-text-opacity,1))}.rf-text-muted-foreground{color:hsl(var(--muted-foreground))}.rf-text-neutral-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-neutral-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.rf-text-neutral-900{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.rf-text-neutral-950{--tw-text-opacity:1;color:rgb(10 10 10/var(--tw-text-opacity,1))}.rf-text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity,1))}.rf-text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity,1))}.rf-text-orange-800{--tw-text-opacity:1;color:rgb(154 52 18/var(--tw-text-opacity,1))}.rf-text-popover-foreground{color:hsl(var(--popover-foreground))}.rf-text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity,1))}.rf-text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.rf-text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.rf-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.rf-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.rf-text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.rf-text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.rf-text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity,1))}.rf-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.rf-text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.rf-text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.rf-text-yellow-900{--tw-text-opacity:1;color:rgb(113 63 18/var(--tw-text-opacity,1))}.rf-text-zinc-200{--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.rf-text-zinc-300{--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.rf-text-zinc-400{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.rf-text-zinc-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.rf-text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.rf-text-zinc-950{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.rf-underline{text-decoration-line:underline}.rf-line-through{text-decoration-line:line-through}.rf-underline-offset-4{text-underline-offset:4px}.rf-opacity-0{opacity:0}.rf-opacity-100{opacity:1}.rf-opacity-25{opacity:.25}.rf-opacity-30{opacity:.3}.rf-opacity-50{opacity:.5}.rf-opacity-60{opacity:.6}.rf-opacity-75{opacity:.75}.rf-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.rf-shadow,.rf-shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.rf-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.rf-shadow-md,.rf-shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.rf-outline-none{outline:2px solid transparent;outline-offset:2px}.rf-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.rf-ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.rf-ring-primary{--tw-ring-color:hsl(var(--primary))}.rf-ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.rf-ring-offset-white{--tw-ring-offset-color:#fff}.rf-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-duration-200{transition-duration:.2s}.rf-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.rf-slide-in-from-left-1{--tw-enter-translate-x:-0.25rem}.rf-slide-out-to-left-1{--tw-exit-translate-x:-0.25rem}.rf-duration-200{animation-duration:.2s}.rf-ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.file\\:rf-border-0::file-selector-button{border-width:0}.file\\:rf-bg-transparent::file-selector-button{background-color:transparent}.file\\:rf-text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:rf-font-medium::file-selector-button{font-weight:500}.placeholder\\:rf-text-zinc-500::-moz-placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.placeholder\\:rf-text-zinc-500::placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.hover\\:rf-border-blue-300:hover{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}.hover\\:\\!rf-bg-transparent:hover{background-color:transparent!important}.hover\\:rf-bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\\:rf-bg-red-500\\/90:hover{background-color:rgba(239,68,68,.9)}.hover\\:rf-bg-zinc-100:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.hover\\:rf-bg-zinc-100\\/80:hover{background-color:hsla(240,5%,96%,.8)}.hover\\:rf-bg-zinc-900\\/90:hover{background-color:rgba(24,24,27,.9)}.hover\\:rf-text-red-400:hover{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.hover\\:rf-text-zinc-900:hover{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.hover\\:rf-underline:hover{text-decoration-line:underline}.focus\\:rf-bg-gray-100:focus{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.focus\\:rf-bg-zinc-100:focus{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.focus\\:rf-text-gray-900:focus{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.focus\\:rf-text-zinc-900:focus{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.focus\\:rf-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:rf-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:rf-ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\\:rf-ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:rf-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:rf-ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-zinc-950:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(9 9 11/var(--tw-ring-opacity,1))}.focus-visible\\:rf-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\\:rf-pointer-events-none:disabled{pointer-events:none}.disabled\\:rf-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:rf-opacity-50:disabled{opacity:.5}.rf-group\\/bar:hover .group-hover\\/bar\\:rf-opacity-100{opacity:1}.data-\\[disabled\\=true\\]\\:rf-pointer-events-none[data-disabled=true],.data-\\[disabled\\]\\:rf-pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom],.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right],.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\\[selected\\=true\\]\\:rf-bg-zinc-100[data-selected=true]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[state\\=active\\]\\:rf-bg-white[data-state=active]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.data-\\[state\\=checked\\]\\:rf-bg-zinc-900[data-state=checked]{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.data-\\[state\\=open\\]\\:rf-bg-zinc-100[data-state=open]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[selected\\=true\\]\\:rf-text-zinc-900[data-selected=true]{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.data-\\[state\\=active\\]\\:rf-text-zinc-950[data-state=active]{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.data-\\[state\\=checked\\]\\:rf-text-zinc-50[data-state=checked]{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.data-\\[disabled\\=true\\]\\:rf-opacity-50[data-disabled=true],.data-\\[disabled\\]\\:rf-opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=active\\]\\:rf-shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\\[state\\=open\\]\\:rf-animate-in[data-state=open]{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-animate-out[data-state=closed]{animation-duration:.15s;animation-name:exit;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=open\\]\\:rf-fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=closed\\]\\:rf-zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=open\\]\\:rf-zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[side\\=bottom\\]\\:rf-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\\[side\\=left\\]\\:rf-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\\[side\\=right\\]\\:rf-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\\[side\\=top\\]\\:rf-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\\[state\\=closed\\]\\:rf-slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\\[state\\=closed\\]\\:rf-slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\\[state\\=open\\]\\:rf-slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\\[state\\=open\\]\\:rf-slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y:-48%}.dark\\:rf-border-zinc-50:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(250 250 250/var(--tw-border-opacity,1))}.dark\\:rf-border-zinc-800:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1))}.dark\\:rf-bg-red-900:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-50:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-800:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-950:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:rf-text-zinc-400:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-50:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-900:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-ring-offset-zinc-950:is(.rf-dark *){--tw-ring-offset-color:#09090b}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:hover\\:rf-bg-red-900\\/90:hover:is(.rf-dark *){background-color:rgba(127,29,29,.9)}.dark\\:hover\\:rf-bg-zinc-50\\/90:hover:is(.rf-dark *){background-color:hsla(0,0%,98%,.9)}.dark\\:hover\\:rf-bg-zinc-800:hover:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:hover\\:rf-bg-zinc-800\\/80:hover:is(.rf-dark *){background-color:rgba(39,39,42,.8)}.dark\\:hover\\:rf-text-zinc-50:hover:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus\\:rf-bg-zinc-800:focus:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:focus\\:rf-text-zinc-50:focus:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus-visible\\:rf-ring-zinc-300:focus-visible:is(.rf-dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(212 212 216/var(--tw-ring-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-bg-zinc-800[data-selected=true]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-bg-zinc-950[data-state=active]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-bg-zinc-50[data-state=checked]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=open\\]\\:rf-bg-zinc-800[data-state=open]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-text-zinc-50[data-selected=true]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-text-zinc-50[data-state=active]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-text-zinc-900[data-state=checked]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\\:rf-order-1{order:1}.sm\\:rf-order-2{order:2}.sm\\:rf-mt-0{margin-top:0}.sm\\:rf-inline{display:inline}.sm\\:rf-hidden{display:none}.sm\\:rf-w-auto{width:auto}.sm\\:rf-flex-row{flex-direction:row}.sm\\:rf-items-center{align-items:center}.sm\\:rf-justify-end{justify-content:flex-end}.sm\\:rf-gap-3{gap:.75rem}.sm\\:rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.sm\\:rf-rounded-lg{border-radius:var(--radius)}.sm\\:rf-px-4{padding-left:1rem;padding-right:1rem}.sm\\:rf-text-left{text-align:left}.sm\\:rf-text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:rf-text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:768px){.md\\:rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.\\[\\&\\>span\\]\\:rf-line-clamp-1>span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\\[\\&\\>svg\\]\\:rf-size-4>svg{height:1rem;width:1rem}.\\[\\&\\>svg\\]\\:rf-shrink-0>svg{flex-shrink:0}.\\[\\&\\>svg\\]\\:rf-text-red-300>svg{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.\\[\\&\\>svg\\]\\:hover\\:rf-text-red-400:hover>svg{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-py-1\\.5 [cmdk-group-heading]{padding-bottom:.375rem;padding-top:.375rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-font-medium [cmdk-group-heading]{font-weight:500}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-500 [cmdk-group-heading]{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.dark\\:\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-400 [cmdk-group-heading]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:rf-pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\\[\\&_\\[cmdk-group\\]\\]\\:rf-px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\\[\\&_\\[cmdk-input\\]\\]\\:rf-h-12 [cmdk-input]{height:3rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-py-3 [cmdk-item]{padding-bottom:.75rem;padding-top:.75rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-h-5 [cmdk-item] svg{height:1.25rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-w-5 [cmdk-item] svg{width:1.25rem}.\\[\\&_svg\\]\\:rf-pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:rf-size-4 svg{height:1rem;width:1rem}.\\[\\&_svg\\]\\:rf-shrink-0 svg{flex-shrink:0}',Wgi=()=>{at.useEffect(()=>{if(document.querySelector('style[data-styles="tscircuit-runframe"]'))return;const e=document.createElement("style");e.setAttribute("data-styles","tscircuit-runframe"),e.textContent=Kgi,document.head.appendChild(e)},[])},Xgi=i=>{at.useEffect(()=>(i?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[i])},ZEt=i=>`hsl(${yE.indexOf(i)*137.5%360}, 70%, 50%)`,qgi=({phaseTimings:i})=>{if(!i)return null;const e=Object.values(i).reduce((t,n)=>t+n,0);return Je.jsxs("div",{className:"rf-space-y-2 rf-w-full rf-px-4",children:[Je.jsx("div",{className:"rf-relative rf-h-8 rf-flex rf-rounded-sm",children:yE.map(t=>{const n=i[t]||0,r=n/e*100;return Je.jsx("div",{className:"rf-group/bar rf-relative rf-overflow-visible",style:{width:`${r}%`,backgroundColor:ZEt(t)},children:Je.jsxs("div",{className:"rf-opacity-0 group-hover/bar:rf-opacity-100 rf-transition-opacity rf-absolute rf-bottom-full rf-left-1/2 rf-transform -rf-translate-x-1/2 rf-mb-2 rf-px-2 rf-py-1 rf-text-xs rf-whitespace-nowrap rf-rounded rf-bg-gray-900 rf-text-white rf-pointer-events-none",children:[t,": ",n.toFixed(1),"ms"]})},t)})}),Je.jsxs("div",{className:"rf-text-xs rf-text-gray-500",children:["Total: ",e.toFixed(2),"ms"]})]})},Jgi=({renderLog:i})=>{const[e,t]=at.useState("chronological");if(!i)return Je.jsx("div",{className:"rf-p-4 rf-bg-gray-100 rf-rounded-md",children:"No render log, make sure this tab is open when you render (TODO add a rerender button here)"});const n=Object.entries((i==null?void 0:i.phaseTimings)??{});e==="chronological"?n.sort((o,s)=>yE.indexOf(o[0])-yE.indexOf(s[0])):n.sort((o,s)=>s[1]-o[1]);const r=n.reduce((o,[s,a])=>o+a,0);return Je.jsxs("div",{className:"rf-bg-white",children:[Je.jsxs("div",{className:"rf-flex rf-justify-between rf-items-center",children:[Je.jsx("div",{children:"Render Logs"}),Je.jsxs("div",{className:"rf-mb-4 rf-pr-2 rf-flex rf-text-xs rf-items-center",children:[Je.jsx("div",{className:"rf-mr-2",children:"Sort by:"}),Je.jsxs("select",{value:e,onChange:o=>t(o.target.value),className:"rf-px-2 rf-py-1 rf-border rf-rounded rf-text-xs",children:[Je.jsx("option",{value:"chronological",children:"Phase Order"}),Je.jsx("option",{value:"longest",children:"Duration"})]})]})]}),Je.jsx(qgi,{phaseTimings:i.phaseTimings}),Je.jsxs("table",{className:"rf-w-full rf-text-xs",children:[Je.jsx("thead",{children:Je.jsxs("tr",{children:[Je.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase Order"}),Je.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase"}),Je.jsx("th",{className:"rf-text-left rf-p-2",children:"Duration (ms)"})]})}),Je.jsx("tbody",{children:n.map(([o,s])=>Je.jsxs("tr",{children:[Je.jsx("td",{className:"rf-p-2",children:yE.indexOf(o)}),Je.jsx("td",{className:"rf-p-2",children:o}),Je.jsx("td",{className:"rf-p-2",children:Je.jsx("div",{className:"rf-w-8",children:Je.jsx("div",{className:"rf-h-2 rf-rounded-sm",style:{backgroundColor:ZEt(o),width:`${s/r*100}%`}})})}),Je.jsx("td",{className:"rf-p-2",children:Je.jsxs("div",{className:"rf-flex w-full",children:[Je.jsxs("span",{className:"rf-flex-grow",children:[s,"ms"]}),Je.jsxs("span",{className:"rf-text-gray-500 rf-pr-2",children:[(s/r*100).toFixed(1),"%"]})]})})]},o))})]})]})},e5t=({errorMessage:i,errorStack:e,circuitJsonErrors:t})=>{at.useEffect(()=>{if(i){const n=new Error(i);e&&(n.stack=e);try{$j.captureException(n)}catch{}}},[i,e]),at.useEffect(()=>{if(t&&t.length>0)for(const n of t){const r=new Error(n.message||"Circuit JSON Error");n.stack&&(r.stack=n.stack);try{$j.captureException(r,{error_type:n.type})}catch{}}},[t])},$gi="0.0.777";function t5t(i,e){const[t,n]=at.useState(()=>{try{const r=window.localStorage.getItem(i);return r?JSON.parse(r):e}catch(r){return console.error("Error reading from localStorage:",r),e}});return at.useEffect(()=>{try{window.localStorage.setItem(i,JSON.stringify(t))}catch(r){console.error("Error writing to localStorage:",r)}},[i,t]),[t,n]}const sne=wYe()(SYe(i=>({lastRunEvalVersion:void 0,setLastRunEvalVersion:e=>{i({lastRunEvalVersion:e})}}),{name:"runframe-runner-store"})),Zgi=i=>{const[e,t]=at.useState([]),[n,r]=at.useState(null),[o,s]=at.useState(""),[a,c]=t5t("eval-version-selection",null),l=sne(f=>f.setLastRunEvalVersion),u=sne(f=>f.lastRunEvalVersion);return at.useEffect(()=>{i&&fetch("https://data.jsdelivr.com/v1/package/npm/@tscircuit/eval").then(f=>f.json()).then(f=>{var A;if(Array.isArray(f==null?void 0:f.versions)){let m=[...f.versions];(A=f.tags)!=null&&A.latest&&(r(f.tags.latest),m=m.filter(_=>_!==f.tags.latest)),t(m)}}).catch(()=>{})},[i]),at.useEffect(()=>{i&&(a?(window.TSCIRCUIT_LATEST_EVAL_VERSION=a,l(a)):n&&(window.TSCIRCUIT_LATEST_EVAL_VERSION=n,l(n)))},[i,a,n]),{versions:at.useMemo(()=>e.filter(f=>f.includes(o)).slice(0,50),[e,o]),latestVersion:n,lastRunEvalVersion:u,search:o,setSearch:s,selectVersion:f=>{c(f),s("")}}},emi=["assembly","bom","circuit_json","errors","render_log"],tmi=({code:i,fsMap:e,onRunClicked:t=void 0,errorMessage:n,errorStack:r,circuitJson:o,autoroutingGraphics:s,showRightHeaderContent:a=!0,showCodeTab:c=!1,codeTabContent:l,showJsonTab:u=!0,showRenderLogTab:d=!0,onActiveTabChange:h,renderLog:f,showImportAndFormatButtons:A=!0,className:m,headerClassName:_,leftHeaderContent:y,readOnly:v,isStreaming:I,autoroutingLog:S,onReportAutoroutingLog:L,isRunningCode:Q,hasCodeChangedSinceLastRun:T,onEditEvent:B,editEvents:P,defaultActiveTab:R,defaultTab:X,availableTabs:G,autoRotate3dViewerDisabled:q,showSchematicDebugGrid:re=!1,showToggleFullScreen:ce=!0,defaultToFullScreen:oe=!1,activeEffectName:ye,allowSelectingVersion:fe=!0})=>{var Qt,Bt;Wgi();const{versions:we,latestVersion:Be,lastRunEvalVersion:Se,search:be,setSearch:Pe,selectVersion:Ke}=Zgi(fe),et=at.useMemo(()=>o?o.filter(bt=>bt&&"error_type"in bt||bt.type.includes("error")):null,[o]),lt=at.useMemo(()=>o?o.filter(bt=>bt&&"warning_type"in bt||bt.type.includes("warning")):null,[o]);e5t({errorMessage:n,errorStack:r,circuitJsonErrors:et});const[Mt,ft]=at.useState(R??X??(G==null?void 0:G[0])??"pcb"),[Ee,Oe]=at.useState(null),[Ye,dt]=at.useState(oe);Xgi(Ye);const _t=at.useCallback(bt=>{ft(bt),h==null||h(bt)},[h]),At=()=>{dt(!Ye)};at.useEffect(()=>{n&&(Mt!=="errors"&&Oe(Mt),_t("errors"))},[n]),at.useEffect(()=>{(Mt==="code"||Mt==="errors")&&o&&!n&&_t(Ee??R??X??(G==null?void 0:G[0])??"pcb")},[o]);const Ze=at.useCallback(bt=>{window.TSCIRCUIT_3D_OBJECT_REF=bt===null?void 0:bt},[]);return Je.jsx("div",{className:Cp("flex flex-col relative rf-overflow-x-hidden rf-h-full",m),children:Je.jsx("div",{className:Cp("rf-md:sticky rf-md:top-2 rf-h-full",Ye&&"rf-fixed rf-top-0 rf-left-0 rf-w-full rf-h-full rf-bg-white rf-overflow-hidden"),children:Je.jsxs(Tfe,{value:Mt,onValueChange:_t,className:"rf-flex-grow rf-flex rf-flex-col rf-h-full",children:[Je.jsxs("div",{className:Cp("rf-flex rf-items-center rf-gap-2 rf-p-2 rf-pb-0",_),children:[y,y&&Je.jsx("div",{className:"rf-flex-grow"}),!y&&Q&&Je.jsx(CR,{className:"rf-w-4 rf-h-4 rf-animate-spin"}),!y&&Je.jsx("div",{className:"rf-flex-grow"}),f&&f.progress!==1&&!n&&Je.jsxs("div",{className:"rf-flex rf-items-center rf-gap-2 rf-min-w-0 rf-max-w-xs",children:[ye?Je.jsx("div",{className:"rf-text-xs rf-text-gray-500 rf-truncate rf-min-w-0",title:ye,children:ye}):f.lastRenderEvent&&Je.jsx("div",{className:"rf-text-xs rf-text-gray-500 rf-truncate rf-min-w-0",title:((Qt=f.lastRenderEvent)==null?void 0:Qt.phase)??"",children:((Bt=f.lastRenderEvent)==null?void 0:Bt.phase)??""}),Je.jsx("div",{className:"rf-w-4 rf-h-4 rf-bg-blue-500 rf-opacity-50 rf-rounded-full rf-text-white rf-flex-shrink-0",children:Je.jsx(CR,{className:"rf-w-4 rf-h-4 rf-animate-spin"})}),Je.jsxs("div",{className:"rf-text-xs rf-font-bold rf-text-gray-700 rf-tabular-nums rf-flex-shrink-0",children:[((f.progress??0)*100).toFixed(1),"%"]})]}),a&&Je.jsxs(eK,{children:[c&&Je.jsx(Lw,{value:"code",children:"Code"}),!G||G.includes("pcb")?Je.jsxs(Lw,{value:"pcb",className:"rf-whitespace-nowrap",children:[o&&Je.jsx("span",{className:Cp("rf-inline-flex rf-items-center rf-justify-center rf-w-2 rf-h-2 rf-mr-1 rf-text-xs rf-font-bold rf-text-white rf-rounded-full",T?"rf-bg-gray-500":"rf-bg-blue-500")}),"PCB"]}):null,!G||G.includes("schematic")?Je.jsxs(Lw,{value:"schematic",className:"rf-whitespace-nowrap",children:[o&&Je.jsx("span",{className:Cp("rf-inline-flex rf-items-center rf-justify-center rf-w-2 rf-h-2 rf-mr-1 rf-text-xs rf-font-bold rf-text-white rf-rounded-full",T?"rf-bg-gray-500":"rf-bg-blue-500")}),"Schematic"]}):null,!G||G.includes("cad")?Je.jsxs(Lw,{value:"cad",children:[o&&Je.jsx("span",{className:Cp("inline-flex items-center justify-center w-2 h-2 mr-1 text-xs font-bold text-white rounded-full",T?"rf-bg-gray-500":"rf-bg-blue-500")}),"3D"]}):null,!["pcb","cad","schematic"].includes(Mt)&&Je.jsx(Lw,{value:Mt,children:PKe(Mt)}),Je.jsxs(Q2e,{children:[Je.jsx(D2e,{asChild:!0,children:Je.jsxs("div",{className:"rf-whitespace-nowrap rf-p-2 rf-mr-1 rf-cursor-pointer rf-relative",children:[Je.jsx(uNn,{className:"rf-w-4 rf-h-4"}),(et&&et.length>0||n)&&Je.jsx("span",{className:"rf-inline-flex rf-absolute rf-top-[6px] rf-right-[4px] rf-items-center rf-justify-center rf-w-1 rf-h-1 rf-ml-2 rf-text-[8px] rf-font-bold rf-text-white rf-bg-red-500 rf-rounded-full"})]})}),Je.jsxs(LJ,{className:"rf-*:text-xs",children:[emi.filter(bt=>!G||G.includes(bt)).map(bt=>Je.jsxs(V2,{onSelect:()=>_t(bt),children:[Mt!==bt&&Je.jsx(Ypt,{className:"rf-w-3 rf-h-3 rf-opacity-30"}),Mt===bt&&Je.jsx(lJ,{className:"rf-w-3 rf-h-3"}),Je.jsx("div",{className:"rf-pr-2",children:PKe(bt)}),bt==="errors"&&(et&&et.length>0||n)&&Je.jsx("span",{className:"rf-inline-flex rf-items-center rf-justify-center rf-w-3 rf-h-3 rf-ml-2 rf-text-[8px] rf-font-bold rf-text-white rf-bg-red-500 rf-rounded-full",children:n?1:et==null?void 0:et.length})]},bt)),Je.jsx(V2,{disabled:!0,className:"rf-opacity-60 rf-cursor-default rf-select-none",children:Je.jsxs("div",{className:"rf-pr-2 rf-text-xs rf-text-gray-500",children:["@tscircuit/runframe@",$gi.split(".").map((bt,Yt)=>Yt===2?parseInt(bt)+1:bt).join(".")]})}),fe?Je.jsxs(T2e,{onOpenChange:bt=>!bt&&Pe(""),children:[Je.jsx(kJ,{className:"rf-text-xs rf-opacity-60",children:Je.jsxs("div",{className:"rf-pr-2 rf-text-xs rf-text-gray-500",children:["@tscircuit/eval@",Se??Be??"latest"]})}),Je.jsx(N2e,{children:Je.jsxs(PJ,{className:"rf-*:text-xs rf-w-40 rf-max-h-[200px] rf-overflow-y-auto",children:[Je.jsx("div",{className:"rf-p-1",children:Je.jsx(bEe,{value:be,onChange:bt=>Pe(bt.target.value),placeholder:"Search...",className:"rf-h-7 rf-text-xs"})}),Je.jsx(Wgt,{}),Je.jsx(V2,{onSelect:()=>Ke(null),children:Be?`${Be} (latest)`:"latest"}),we.map(bt=>Je.jsx(V2,{onSelect:()=>Ke(bt),children:bt},bt))]})})]}):Se&&Je.jsx(V2,{disabled:!0,className:"rf-opacity-60 rf-cursor-default rf-select-none",children:Je.jsxs("div",{className:"rf-pr-2 rf-text-xs rf-text-gray-500",children:["@tscircuit/eval@",Se]})})]})]})]}),ce&&Je.jsx(Ax,{onClick:At,variant:"ghost",children:Ye?Je.jsx(pNn,{size:16}):Je.jsx(hNn,{size:16})})]}),c&&Je.jsx(G5,{value:"code",className:"rf-flex-grow rf-overflow-hidden",children:Je.jsx("div",{className:"rf-h-full",children:l})}),(!G||G.includes("pcb"))&&Je.jsx(G5,{value:"pcb",children:Je.jsx("div",{className:Cp("rf-overflow-hidden",Ye?"rf-h-[calc(100vh-52px)]":"rf-h-full"),children:Je.jsx(X7,{fallbackRender:({error:bt})=>Je.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200",children:Je.jsxs("div",{className:"rf-p-4",children:[Je.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-3",children:"Error loading PCB viewer"}),Je.jsx("p",{className:"rf-text-xs rf-font-mono rf-whitespace-pre-wrap rf-text-red-600 rf-mt-2",children:(bt==null?void 0:bt.message)||"An unknown error occurred"})]})}),children:o?Je.jsx(jgi,{focusOnHover:!1,circuitJson:o,debugGraphics:s,containerClassName:Cp("rf-h-full rf-w-full",Ye?"rf-min-h-[calc(100vh-240px)]":"rf-min-h-[620px]"),onEditEventsChanged:bt=>{if(B)for(const Yt of bt)B(Yt)}}):Je.jsx(UR,{onRunClicked:t})})})}),(!G||G.includes("assembly"))&&Je.jsx(G5,{value:"assembly",children:Je.jsx("div",{className:Cp("rf-overflow-auto",Ye?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Je.jsx(X7,{fallback:Je.jsx("div",{children:"Error loading Assembly"}),children:o?Je.jsx(oHn,{circuitJson:o,containerStyle:{height:"100%"},editingEnabled:!0,debugGrid:!0}):Je.jsx(UR,{onRunClicked:t})})})}),(!G||G.includes("schematic"))&&Je.jsx(G5,{value:"schematic",children:Je.jsx("div",{className:Cp("rf-overflow-auto rf-bg-white",Ye?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Je.jsx(X7,{fallbackRender:({error:bt})=>Je.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200",children:Je.jsxs("div",{className:"rf-p-4",children:[Je.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-3",children:"Error loading Schematic"}),Je.jsx("p",{className:"rf-text-xs rf-font-mono rf-whitespace-pre-wrap rf-text-red-600 rf-mt-2",children:(bt==null?void 0:bt.message)||"An unknown error occurred"})]})}),children:o?Je.jsx(nHn,{circuitJson:o,containerStyle:{height:"100%"},editingEnabled:!0,onEditEvent:bt=>{B==null||B(bt)},debugGrid:re}):Je.jsx(UR,{onRunClicked:t})})})}),(!G||G.includes("cad"))&&Je.jsx(G5,{value:"cad",children:Je.jsx("div",{className:Cp("rf-overflow-auto",Ye?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Je.jsx(X7,{FallbackComponent:J7n,children:o?Je.jsx(X7n,{ref:Ze,circuitJson:o,autoRotateDisabled:q}):Je.jsx(UR,{onRunClicked:t})})})}),(!G||G.includes("bom"))&&Je.jsx(G5,{value:"bom",children:Je.jsx("div",{className:Cp("rf-overflow-auto",Ye?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Je.jsx(X7,{fallbackRender:({error:bt})=>Je.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200",children:Je.jsxs("div",{className:"rf-p-4",children:[Je.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-3",children:"Error loading Bill of Materials"}),Je.jsx("p",{className:"rf-text-xs rf-font-mono rf-whitespace-pre-wrap rf-text-red-600 rf-mt-2",children:(bt==null?void 0:bt.message)||"An unknown error occurred"})]})}),children:o?Je.jsx(uHn,{circuitJson:o}):Je.jsx(UR,{onRunClicked:t})})})}),(!G||G.includes("circuit_json"))&&Je.jsx(G5,{value:"circuit_json",children:Je.jsx("div",{className:Cp("rf-overflow-auto",Ye?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Je.jsx(X7,{fallback:Je.jsx("div",{children:"Error loading JSON viewer"}),children:o?Je.jsx(cHn,{elements:o}):Je.jsx(UR,{onRunClicked:t})})})}),(!G||G.includes("errors"))&&Je.jsx(G5,{value:"errors",children:Je.jsx("div",{className:Cp("rf-overflow-auto",Ye?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:n||et&&et.length>0||o?Je.jsx(tLn,{code:i,fsMap:e,circuitJsonErrors:et,circuitJsonWarnings:lt,errorMessage:n,errorStack:r,circuitJson:o,evalVersion:Se,autoroutingLog:S,onReportAutoroutingLog:L}):Je.jsx(UR,{onRunClicked:t})})}),d&&(!G||G.includes("render_log"))&&Je.jsx(G5,{value:"render_log",children:Je.jsx(Jgi,{renderLog:f})})]})})})};var ane="Dialog",[n5t,i5t]=Bw(ane),[nmi,$3]=n5t(ane),r5t=i=>{const{__scopeDialog:e,children:t,open:n,defaultOpen:r,onOpenChange:o,modal:s=!0}=i,a=at.useRef(null),c=at.useRef(null),[l,u]=s6({prop:n,defaultProp:r??!1,onChange:o,caller:ane});return Je.jsx(nmi,{scope:e,triggerRef:a,contentRef:c,contentId:c2(),titleId:c2(),descriptionId:c2(),open:l,onOpenChange:u,onOpenToggle:at.useCallback(()=>u(d=>!d),[u]),modal:s,children:t})};r5t.displayName=ane;var o5t="DialogTrigger",s5t=at.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=$3(o5t,t),o=lx(e,r.triggerRef);return Je.jsx(sy.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":mBe(r.open),...n,ref:o,onClick:uA(i.onClick,r.onOpenToggle)})});s5t.displayName=o5t;var ABe="DialogPortal",[imi,a5t]=n5t(ABe,{forceMount:void 0}),c5t=i=>{const{__scopeDialog:e,forceMount:t,children:n,container:r}=i,o=$3(ABe,e);return Je.jsx(imi,{scope:e,forceMount:t,children:at.Children.map(n,s=>Je.jsx(L5,{present:t||o.open,children:Je.jsx(xJ,{asChild:!0,container:r,children:s})}))})};c5t.displayName=ABe;var cne="DialogOverlay",l5t=at.forwardRef((i,e)=>{const t=a5t(cne,i.__scopeDialog),{forceMount:n=t.forceMount,...r}=i,o=$3(cne,i.__scopeDialog);return o.modal?Je.jsx(L5,{present:n||o.open,children:Je.jsx(omi,{...r,ref:e})}):null});l5t.displayName=cne;var rmi=o6("DialogOverlay.RemoveScroll"),omi=at.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=$3(cne,t);return Je.jsx(RJ,{as:rmi,allowPinchZoom:!0,shards:[r.contentRef],children:Je.jsx(sy.div,{"data-state":mBe(r.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),aQ="DialogContent",u5t=at.forwardRef((i,e)=>{const t=a5t(aQ,i.__scopeDialog),{forceMount:n=t.forceMount,...r}=i,o=$3(aQ,i.__scopeDialog);return Je.jsx(L5,{present:n||o.open,children:o.modal?Je.jsx(smi,{...r,ref:e}):Je.jsx(ami,{...r,ref:e})})});u5t.displayName=aQ;var smi=at.forwardRef((i,e)=>{const t=$3(aQ,i.__scopeDialog),n=at.useRef(null),r=lx(e,t.contentRef,n);return at.useEffect(()=>{const o=n.current;if(o)return m2e(o)},[]),Je.jsx(d5t,{...i,ref:r,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:uA(i.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=t.triggerRef.current)==null||s.focus()}),onPointerDownOutside:uA(i.onPointerDownOutside,o=>{const s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:uA(i.onFocusOutside,o=>o.preventDefault())})}),ami=at.forwardRef((i,e)=>{const t=$3(aQ,i.__scopeDialog),n=at.useRef(!1),r=at.useRef(!1);return Je.jsx(d5t,{...i,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s,a;(s=i.onCloseAutoFocus)==null||s.call(i,o),o.defaultPrevented||(n.current||(a=t.triggerRef.current)==null||a.focus(),o.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:o=>{var c,l;(c=i.onInteractOutside)==null||c.call(i,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const s=o.target;((l=t.triggerRef.current)==null?void 0:l.contains(s))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&r.current&&o.preventDefault()}})}),d5t=at.forwardRef((i,e)=>{const{__scopeDialog:t,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:o,...s}=i,a=$3(aQ,t),c=at.useRef(null),l=lx(e,c);return JCe(),Je.jsxs(Je.Fragment,{children:[Je.jsx(dJ,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:o,children:Je.jsx(uJ,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":mBe(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),Je.jsxs(Je.Fragment,{children:[Je.jsx(lmi,{titleId:a.titleId}),Je.jsx(dmi,{contentRef:c,descriptionId:a.descriptionId})]})]})}),gBe="DialogTitle",h5t=at.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=$3(gBe,t);return Je.jsx(sy.h2,{id:r.titleId,...n,ref:e})});h5t.displayName=gBe;var f5t="DialogDescription",p5t=at.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=$3(f5t,t);return Je.jsx(sy.p,{id:r.descriptionId,...n,ref:e})});p5t.displayName=f5t;var A5t="DialogClose",g5t=at.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=$3(A5t,t);return Je.jsx(sy.button,{type:"button",...n,ref:e,onClick:uA(i.onClick,()=>r.onOpenChange(!1))})});g5t.displayName=A5t;function mBe(i){return i?"open":"closed"}var m5t="DialogTitleWarning",[cmi,_5t]=aan(m5t,{contentName:aQ,titleName:gBe,docsSlug:"dialog"}),lmi=({titleId:i})=>{const e=_5t(m5t),t=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
13882
13882
 
13883
13883
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
13884
13884
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tscircuit/runframe",
3
3
  "main": "dist/preview.js",
4
4
  "type": "module",
5
- "version": "0.0.777",
5
+ "version": "0.0.778",
6
6
  "exports": {
7
7
  ".": "./dist/preview.js",
8
8
  "./preview": "./dist/preview.js",