@tscircuit/runframe 0.0.773 → 0.0.774
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.
|
@@ -1330,7 +1330,7 @@ var useErrorTelemetry = ({
|
|
|
1330
1330
|
};
|
|
1331
1331
|
|
|
1332
1332
|
// package.json
|
|
1333
|
-
var version = "0.0.
|
|
1333
|
+
var version = "0.0.773";
|
|
1334
1334
|
|
|
1335
1335
|
// lib/hooks/use-eval-versions.ts
|
|
1336
1336
|
import { useEffect as useEffect5, useMemo as useMemo2, useState as useState6 } from "react";
|
package/dist/preview.js
CHANGED
package/dist/runner.js
CHANGED
|
@@ -13340,7 +13340,7 @@ ${G}
|
|
|
13340
13340
|
\`\`\`
|
|
13341
13341
|
${L.type}: ${j}
|
|
13342
13342
|
\`\`\``}f(Y,ee)},children:[ut.jsx(iqe,{className:"rf-w-4 rf-h-4"}),"Report Issue"]})]})]})};function Gfn(i,e,t){var d;const{transform:n,shouldDrawErrors:r}=t;if(!r)return[];const{pcb_port_ids:o}=i,s=e.find(h=>h.type==="pcb_port"&&h.pcb_port_id===(o==null?void 0:o[0])),a=e.find(h=>h.type==="pcb_port"&&h.pcb_port_id===(o==null?void 0:o[1]));if(!s||!a){const h=(d=i.message)==null?void 0:d.match(/pcb_via\[#?(pcb_via_\d+)\]/),f=h==null?void 0:h[1],y=e.find(_=>_.type==="pcb_via"&&_.pcb_via_id===f);if(y&&y.type==="pcb_via")return Ofn(i,y,t);if(i.center){const _=Li(n,{x:i.center.x,y:i.center.y});return[{name:"rect",type:"element",attributes:{x:(_.x-5).toString(),y:(_.y-5).toString(),width:"10",height:"10",fill:"red",transform:`rotate(45 ${_.x} ${_.y})`},children:[],value:""},{name:"text",type:"element",attributes:{x:_.x.toString(),y:(_.y-15).toString(),fill:"red","font-family":"sans-serif","font-size":"12","text-anchor":"middle"},children:[{type:"text",value:i.message||"Pcb Trace Error",name:"",attributes:{},children:[]}],value:""}]}else return[]}const c=Li(n,{x:s.x,y:s.y}),l=Li(n,{x:a.x,y:a.y}),u={x:(c.x+l.x)/2,y:(c.y+l.y)/2};return isNaN(c.x)||isNaN(c.y)||isNaN(l.x)||isNaN(l.y)||isNaN(u.x)||isNaN(u.y)?[]:[{name:"line",type:"element",attributes:{x1:c.x.toString(),y1:c.y.toString(),x2:u.x.toString(),y2:u.y.toString(),stroke:"red","stroke-width":"1.5","stroke-dasharray":"2,2"},children:[],value:""},{name:"line",type:"element",attributes:{x1:u.x.toString(),y1:u.y.toString(),x2:l.x.toString(),y2:l.y.toString(),stroke:"red","stroke-width":"1.5","stroke-dasharray":"2,2"},children:[],value:""},{name:"rect",type:"element",attributes:{x:(u.x-5).toString(),y:(u.y-5).toString(),width:"10",height:"10",fill:"red",transform:`rotate(45 ${u.x} ${u.y})`},children:[],value:""},{name:"text",type:"element",attributes:{x:u.x.toString(),y:(u.y-15).toString(),fill:"red","font-family":"sans-serif","font-size":"12","text-anchor":"middle"},children:[{type:"text",value:i.message||"Pcb Trace Error",name:"",attributes:{},children:[]}],value:""}]}function Ofn(i,e,t){const{transform:n}=t;if(i.center&&e){const r=Li(n,{x:i.center.x,y:i.center.y}),o=Li(n,{x:e.x,y:e.y}),s=o.x-r.x,a=o.y-r.y,c=Math.sqrt(s*s+a*a),l=Math.atan2(a,s)*180/Math.PI,A=c+10*2,d=20,h=(r.x+o.x)/2,f=(r.y+o.y)/2;return[{name:"rect",type:"element",attributes:{x:(h-A/2).toString(),y:(f-d/2).toString(),width:A.toString(),height:d.toString(),fill:"none",stroke:"red","stroke-width":"1","stroke-dasharray":"3,2",transform:`rotate(${l} ${h} ${f})`},children:[],value:""},{name:"rect",type:"element",attributes:{x:(h-5).toString(),y:(f-5).toString(),width:"10",height:"10",fill:"red",transform:`rotate(45 ${h} ${f})`},children:[],value:""},{name:"text",type:"element",attributes:{x:h.toString(),y:(f-d/2-5).toString(),fill:"red","font-family":"sans-serif","font-size":"12","text-anchor":"middle"},children:[{type:"text",value:i.message||"Pcb Trace Error",name:"",attributes:{},children:[]}],value:""}]}return[]}function zfn(i,e){const{transform:t,layer:n}=e;if(!i.route||!Array.isArray(i.route))return[];const r=i.route[0],o=i.route[i.route.length-1],s=r.x===o.x&&r.y===o.y,a=i.route.slice(0,s?-1:void 0).map((c,l)=>{const[u,A]=Li(t,[c.x,c.y]);return l===0?`M ${u} ${A}`:`L ${u} ${A}`}).join(" ")+(s?" Z":"");return[{name:"path",type:"element",attributes:{class:"pcb-fabrication-note-path",stroke:i.color||"rgba(255,255,255,0.5)",fill:"none",d:a,"stroke-width":(i.stroke_width*Math.abs(t.a)).toString(),"data-pcb-component-id":i.pcb_component_id,"data-pcb-fabrication-note-path-id":i.pcb_fabrication_note_path_id},value:"",children:[]}]}function Yfn(i,e){const{transform:t,layer:n}=e,{anchor_position:r,anchor_alignment:o,text:s,font_size:a=1,layer:c="top",color:l}=i;if(n&&c!==n)return[];if(!r||typeof r.x!="number"||typeof r.y!="number")return console.error("Invalid anchor_position:",r),[];const[u,A]=Li(t,[r.x,r.y]),d=a*Math.abs(t.a),h=Xu(wd(u,A),gE(Math.PI/180));return[{name:"text",type:"element",attributes:{x:"0",y:"0","font-family":"Arial, sans-serif","font-size":d.toString(),"text-anchor":"middle","dominant-baseline":"central",transform:p3(h),class:"pcb-fabrication-note-text",fill:l||"rgba(255,255,255,0.5)"},children:[{type:"text",value:s,name:"",attributes:{},children:[]}],value:""}]}function Hfn(i,e){const{transform:t,colorMap:n}=e,[r,o]=Li(t,[i.x,i.y]);if(i.shape==="pill"){const s=i.outer_width*Math.abs(t.a),a=i.outer_height*Math.abs(t.a),c=i.hole_width*Math.abs(t.a),l=i.hole_height*Math.abs(t.a),u=s/2,A=c/2,d=a-s;return[{name:"g",type:"element",children:[{name:"path",type:"element",attributes:{class:"pcb-hole-outer",fill:n.copper.top,d:`M${r-u},${o-d/2} v${d} a${u},${u} 0 0 0 ${s},0 v-${d} a${u},${u} 0 0 0 -${s},0 z`},value:"",children:[]},{name:"path",type:"element",attributes:{class:"pcb-hole-inner",fill:n.drill,d:`M${r-A},${o-(l-c)/2} v${l-c} a${A},${A} 0 0 0 ${c},0 v-${l-c} a${A},${A} 0 0 0 -${c},0 z`},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="circle"){const s=i.outer_diameter*Math.abs(t.a),a=i.outer_diameter*Math.abs(t.a),c=i.hole_diameter*Math.abs(t.a),l=i.hole_diameter*Math.abs(t.a),u=Math.min(s,a)/2,A=Math.min(c,l)/2;return[{name:"g",type:"element",children:[{name:"circle",type:"element",attributes:{class:"pcb-hole-outer",fill:n.copper.top,cx:r.toString(),cy:o.toString(),r:u.toString()},value:"",children:[]},{name:"circle",type:"element",attributes:{class:"pcb-hole-inner",fill:n.drill,cx:r.toString(),cy:o.toString(),r:A.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="circular_hole_with_rect_pad"){const s=i.hole_diameter*Math.abs(t.a),a=i.rect_pad_width*Math.abs(t.a),c=i.rect_pad_height*Math.abs(t.a),l=s/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"pcb-hole-outer-pad",fill:n.copper.top,x:(r-a/2).toString(),y:(o-c/2).toString(),width:a.toString(),height:c.toString()},value:"",children:[]},{name:"circle",type:"element",attributes:{class:"pcb-hole-inner",fill:n.drill,cx:r.toString(),cy:o.toString(),r:l.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="pill_hole_with_rect_pad"){const s=i.rect_pad_width*Math.abs(t.a),a=i.rect_pad_height*Math.abs(t.a),c=i.hole_height*Math.abs(t.a),l=i.hole_width*Math.abs(t.a),u=Math.min(c,l)/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"pcb-hole-outer-pad",fill:n.copper.top,x:(r-s/2).toString(),y:(o-a/2).toString(),width:s.toString(),height:a.toString()},value:"",children:[]},{name:"rect",type:"element",attributes:{class:"pcb-hole-inner",fill:n.drill,x:(r-l/2).toString(),y:(o-c/2).toString(),width:l.toString(),height:c.toString(),rx:u.toString(),ry:u.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="rotated_pill_hole_with_rect_pad"){const s=i.rect_pad_width*Math.abs(t.a),a=i.rect_pad_height*Math.abs(t.a),c=i.hole_height*Math.abs(t.a),l=i.hole_width*Math.abs(t.a),u=Math.min(c,l)/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"pcb-hole-outer-pad",fill:n.copper.top,x:(-s/2).toString(),y:(-a/2).toString(),width:s.toString(),height:a.toString(),transform:`translate(${r} ${o}) rotate(${-i.rect_ccw_rotation})`},value:"",children:[]},{name:"rect",type:"element",attributes:{class:"pcb-hole-inner",fill:n.drill,x:(-l/2).toString(),y:(-c/2).toString(),width:l.toString(),height:c.toString(),rx:u.toString(),ry:u.toString(),transform:`translate(${r} ${o}) rotate(${-i.hole_ccw_rotation})`},value:"",children:[]}],value:"",attributes:{}}]}return[]}function Vfn(i,e){const{transform:t,layer:n,colorMap:r}=e;if(!i.route||!Array.isArray(i.route))return[];let o=i.route.map((u,A)=>{const[d,h]=Li(t,[u.x,u.y]);return A===0?`M ${d} ${h}`:`L ${d} ${h}`}).join(" ");const s=i.route[0],a=i.route[i.route.length-1];s&&a&&s.x===a.x&&s.y===a.y&&(o+=" Z");const c=i.layer||"top";if(n&&c!==n)return[];const l=c==="bottom"?r.silkscreen.bottom:r.silkscreen.top;return[{name:"path",type:"element",attributes:{class:`pcb-silkscreen pcb-silkscreen-${c}`,d:o,fill:"none",stroke:l,"stroke-width":(i.stroke_width*Math.abs(t.a)).toString(),"stroke-linecap":"round","stroke-linejoin":"round","data-pcb-component-id":i.pcb_component_id,"data-pcb-silkscreen-path-id":i.pcb_silkscreen_path_id},value:"",children:[]}]}function Kfn(i,e){const{transform:t,layer:n,colorMap:r}=e,{anchor_position:o,text:s,font_size:a=1,layer:c="top",ccw_rotation:l=0,anchor_alignment:u="center"}=i;if(n&&c!==n)return[];if(!o||typeof o.x!="number"||typeof o.y!="number")return console.error("Invalid anchor_position:",o),[];const[A,d]=Li(t,[o.x,o.y]),h=a*Math.abs(t.a);let f="middle",y="central",_=0,v=0;switch(u){case"top_left":f="start",y="text-before-edge";break;case"top_center":f="middle",y="text-before-edge";break;case"top_right":f="end",y="text-before-edge";break;case"center_left":f="start",y="central";break;case"center_right":f="end",y="central";break;case"bottom_left":f="start",y="text-after-edge";break;case"bottom_center":f="middle",y="text-after-edge";break;case"bottom_right":f="end",y="text-after-edge";break;case"center":default:f="middle",y="central";break}const E=Xu(wd(A,d),gE(l*Math.PI/180),...c==="bottom"?[P9(-1,1)]:[]),b=c==="bottom"?r.silkscreen.bottom:r.silkscreen.top,M=s.split(`
|
|
13343
|
-
`),z=M.length===1?[{type:"text",value:s,name:"",attributes:{},children:[]}]:M.map((L,F)=>({type:"element",name:"tspan",value:"",attributes:{x:"0",...F>0?{dy:h.toString()}:{}},children:[{type:"text",value:L,name:"",attributes:{},children:[]}]}));return[{name:"text",type:"element",attributes:{x:"0",y:"0",dx:_.toString(),dy:v.toString(),fill:b,"font-family":"Arial, sans-serif","font-size":h.toString(),"text-anchor":f,"dominant-baseline":y,transform:p3(E),class:`pcb-silkscreen-text pcb-silkscreen-${c}`,"data-pcb-silkscreen-text-id":i.pcb_component_id,stroke:"none"},children:z,value:""}]}function jfn(i,e){const{transform:t,layer:n,colorMap:r}=e,{center:o,width:s,height:a,layer:c="top",pcb_silkscreen_rect_id:l,stroke_width:u,is_filled:A,has_stroke:d,is_stroke_dashed:h}=i;if(n&&c!==n)return[];if(!o||typeof o.x!="number"||typeof o.y!="number"||typeof s!="number"||typeof a!="number")return console.error("Invalid rectangle data:",{center:o,width:s,height:a}),[];const[f,y]=Li(t,[o.x,o.y]),_=s*Math.abs(t.a),v=a*Math.abs(t.d),E=u*Math.abs(t.a),b=c==="bottom"?r.silkscreen.bottom:r.silkscreen.top,M={x:(f-_/2).toString(),y:(y-v/2).toString(),width:_.toString(),height:v.toString(),class:`pcb-silkscreen-rect pcb-silkscreen-${c}`,"data-pcb-silkscreen-rect-id":l};M.fill=A?b:"none";let z;if(d===void 0?z=E>0:z=d,z){if(M.stroke=b,M["stroke-width"]=E.toString(),h){const L=.1*Math.abs(t.a),F=.05*Math.abs(t.a);M["stroke-dasharray"]=`${L} ${F}`}}else M.stroke="none";return[{name:"rect",type:"element",attributes:M,value:"",children:[]}]}function Jfn(i,e){const{transform:t,layer:n,colorMap:r}=e,{center:o,radius:s,layer:a="top",pcb_silkscreen_circle_id:c,stroke_width:l=1}=i;if(n&&a!==n)return[];if(!o||typeof o.x!="number"||typeof o.y!="number"||typeof s!="number")return console.error("Invalid PCB Silkscreen Circle data:",{center:o,radius:s}),[];const[u,A]=Li(t,[o.x,o.y]),d=s*Math.abs(t.a),h=l*Math.abs(t.a),f=a==="bottom"?r.silkscreen.bottom:r.silkscreen.top;return[{name:"circle",type:"element",attributes:{cx:u.toString(),cy:A.toString(),r:d.toString(),class:`pcb-silkscreen-circle pcb-silkscreen-${a}`,stroke:f,"stroke-width":h.toString(),"data-pcb-silkscreen-circle-id":c},value:"",children:[]}]}function Wfn(i,e){const{transform:t,layer:n,colorMap:r}=e,{x1:o,y1:s,x2:a,y2:c,stroke_width:l,layer:u="top",pcb_silkscreen_line_id:A}=i;if(n&&u!==n)return[];if(typeof o!="number"||typeof s!="number"||typeof a!="number"||typeof c!="number")return console.error("Invalid coordinates:",{x1:o,y1:s,x2:a,y2:c}),[];const[d,h]=Li(t,[o,s]),[f,y]=Li(t,[a,c]),_=l*Math.abs(t.a),v=u==="bottom"?r.silkscreen.bottom:r.silkscreen.top;return[{name:"line",type:"element",attributes:{x1:d.toString(),y1:h.toString(),x2:f.toString(),y2:y.toString(),stroke:v,"stroke-width":_.toString(),class:`pcb-silkscreen-line pcb-silkscreen-${u}`,"data-pcb-silkscreen-line-id":A},value:"",children:[]}]}function Zfn(i){const e=[];for(let t=0;t<i.length-1;t++)e.push([i[t],i[t+1]]);return e}var sx={copper:{top:"rgb(200, 52, 52)",bottom:"rgb(77, 127, 196)"},soldermask:{top:"rgb(200, 52, 52)",bottom:"rgb(77, 127, 196)"},drill:"#FF26E2",silkscreen:{top:"#f2eda1",bottom:"#5da9e9"},boardOutline:"rgba(255, 255, 255, 0.5)",debugComponent:{fill:null,stroke:null}};sx.drill,sx.silkscreen.top,sx.silkscreen.bottom,sx.copper.top,sx.copper.bottom;function RD(i,e=sx){return e.copper[i]??"white"}var Xfn={bottom:"rgb(105, 105, 105)",top:"rgb(105, 105, 105)"};function ZV(i){return Xfn[i]??"rgb(105, 105, 105)"}function qfn(i,e){const{transform:t,layer:n,colorMap:r}=e;if(!i.route||!Array.isArray(i.route)||i.route.length<2)return[];const o=Zfn(i.route),s=[];for(const[a,c]of o){const l=Li(t,[a.x,a.y]),u=Li(t,[c.x,c.y]),A="layer"in a?a.layer:"layer"in c?c.layer:null;if(!A||n&&A!==n)continue;const d=r.soldermask[A]??RD(A,r),h="width"in a?a.width:"width"in c?c.width:null,f={name:"path",type:"element",value:"",children:[],attributes:{class:"pcb-trace",stroke:d,fill:"none",d:`M ${l[0]} ${l[1]} L ${u[0]} ${u[1]}`,"stroke-width":h?(h*Math.abs(t.a)).toString():"0.3","stroke-linecap":"round","stroke-linejoin":"round","shape-rendering":"crispEdges","data-layer":A}};s.push(f)}return s.sort((a,c)=>{const l=a.attributes["data-layer"],u=c.attributes["data-layer"];return l==="bottom"&&u!=="bottom"?-1:l==="top"&&u!=="top"?1:0}),s}function $fn(i,e){const{transform:t,layer:n,colorMap:r}=e;if(n&&i.layer!==n)return[];if(i.shape==="rect"||i.shape==="rotated_rect"){const o=i.width*Math.abs(t.a),s=i.height*Math.abs(t.d),[a,c]=Li(t,[i.x,i.y]);return i.shape==="rotated_rect"&&i.ccw_rotation?[{name:"rect",type:"element",attributes:{class:"pcb-pad",fill:RD(i.layer,r),x:(-o/2).toString(),y:(-s/2).toString(),width:o.toString(),height:s.toString(),transform:`translate(${a} ${c}) rotate(${-i.ccw_rotation})`,"data-layer":i.layer}}]:[{name:"rect",type:"element",attributes:{class:"pcb-pad",fill:RD(i.layer,r),x:(a-o/2).toString(),y:(c-s/2).toString(),width:o.toString(),height:s.toString(),"data-layer":i.layer}}]}if(i.shape==="pill"){const o=i.width*Math.abs(t.a),s=i.height*Math.abs(t.d),a=i.radius*Math.abs(t.a),[c,l]=Li(t,[i.x,i.y]);return[{name:"rect",type:"element",attributes:{class:"pcb-pad",fill:RD(i.layer,r),x:(c-o/2).toString(),y:(l-s/2).toString(),width:o.toString(),height:s.toString(),rx:a.toString(),ry:a.toString(),"data-layer":i.layer}}]}if(i.shape==="circle"){const o=i.radius*Math.abs(t.a),[s,a]=Li(t,[i.x,i.y]);return[{name:"circle",type:"element",attributes:{class:"pcb-pad",fill:RD(i.layer,r),cx:s.toString(),cy:a.toString(),r:o.toString(),"data-layer":i.layer}}]}if(i.shape==="polygon"){const o=(i.points??[]).map(s=>Li(t,[s.x,s.y]));return[{name:"polygon",type:"element",attributes:{class:"pcb-pad",fill:RD(i.layer),points:o.map(s=>s.join(",")).join(" "),"data-layer":i.layer}}]}return[]}function Cet(i,e){const{transform:t,colorMap:n}=e,{width:r,height:o,center:s,outline:a}=i;let c;if(a&&Array.isArray(a)&&a.length>=3)c=a.map((l,u)=>{const[A,d]=Li(t,[l.x,l.y]);return u===0?`M ${A} ${d}`:`L ${A} ${d}`}).join(" ");else{const l=r/2,u=o/2,A=Li(t,[s.x-l,s.y-u]),d=Li(t,[s.x+l,s.y-u]),h=Li(t,[s.x+l,s.y+u]),f=Li(t,[s.x-l,s.y+u]);c=`M ${A[0]} ${A[1]} L ${d[0]} ${d[1]} L ${h[0]} ${h[1]} L ${f[0]} ${f[1]}`}return c+=" Z",[{name:"path",type:"element",value:"",children:[],attributes:{class:"pcb-board",d:c,fill:"none",stroke:n.boardOutline,"stroke-width":(.1*Math.abs(t.a)).toString()}}]}function epn(i,e){const{transform:t,colorMap:n}=e,[r,o]=Li(t,[i.x,i.y]),s=i.outer_diameter*Math.abs(t.a),a=i.outer_diameter*Math.abs(t.a),c=i.hole_diameter*Math.abs(t.a),l=i.hole_diameter*Math.abs(t.a),u=Math.min(s,a)/2,A=Math.min(c,l)/2;return{name:"g",type:"element",children:[{name:"circle",type:"element",attributes:{class:"pcb-hole-outer",fill:n.copper.top,cx:r.toString(),cy:o.toString(),r:u.toString()}},{name:"circle",type:"element",attributes:{class:"pcb-hole-inner",fill:n.drill,cx:r.toString(),cy:o.toString(),r:A.toString()}}]}}function tpn(i,e){const{transform:t,colorMap:n}=e,[r,o]=Li(t,[i.x,i.y]);if(i.hole_shape==="circle"||i.hole_shape==="square"){const s=i.hole_diameter*Math.abs(t.a),a=s/2;return i.hole_shape==="circle"?[{name:"circle",type:"element",attributes:{class:"pcb-hole",cx:r.toString(),cy:o.toString(),r:a.toString(),fill:n.drill},children:[],value:""}]:[{name:"rect",type:"element",attributes:{class:"pcb-hole",x:(r-a).toString(),y:(o-a).toString(),width:s.toString(),height:s.toString(),fill:n.drill},children:[],value:""}]}if(i.hole_shape==="oval"){const s=i.hole_width*Math.abs(t.a),a=i.hole_height*Math.abs(t.a),c=s/2,l=a/2;return[{name:"ellipse",type:"element",attributes:{class:"pcb-hole",cx:r.toString(),cy:o.toString(),rx:c.toString(),ry:l.toString(),fill:n.drill},children:[],value:""}]}return[]}var npn=(i,e)=>{const t=Rp(e).pcb_smtpad.get(i);if(t&&"x"in t&&"y"in t)return{x:t.x,y:t.y};const n=Rp(e).pcb_plated_hole.get(i);return n&&"x"in n&&"y"in n?{x:n.x,y:n.y}:null},ipn=(i,e,t,n)=>{const r=t.getIdsConnectedToNet(e);let o=null,s=1/0;for(const a of r){const c=npn(a,n);if(c){const l=i.x-c.x,u=i.y-c.y,A=Math.sqrt(l*l+u*u);A>0&&A<s&&(s=A,o=c)}}return o};function rpn(i,e){const{transform:t}=e,n=ZY(i),r=i.filter(c=>c.type==="pcb_port"),o=i.filter(c=>c.type==="source_trace"),s=[];r.forEach((c,l)=>{const u=c.pcb_port_id;if(!u)return;const A=n.getNetConnectedToId(u);if(!A)return;let d=!1;const h=Rp(i).source_port.getWhere({pcb_port_id:u});if(h&&h.source_port_id){const _=h.source_port_id;for(const v of o)if(Array.isArray(v.connected_source_port_ids)&&v.connected_source_port_ids.includes(_)&&Array.isArray(v.connected_source_net_ids)&&v.connected_source_net_ids.length>0){d=!0;break}}const f={x:c.x,y:c.y},y=ipn(f,A,n,i);y&&s.push({key:`${u}-${l}`,startPoint:f,endPoint:y,isInNet:d})});const a=[];for(const c of s){const l=Li(t,[c.startPoint.x,c.startPoint.y]),u=Li(t,[c.endPoint.x,c.endPoint.y]),A={x1:l[0].toString(),y1:l[1].toString(),x2:u[0].toString(),y2:u[1].toString(),stroke:"white","stroke-width":"1","stroke-dasharray":"6,6"};a.push({name:"line",type:"element",attributes:A,value:"",children:[]})}return a}function opn(i,e){const{transform:t,colorMap:n}=e;if(i.shape==="rect"){const r=i,[o,s]=Li(t,[r.center.x,r.center.y]),a=r.width*Math.abs(t.a),c=r.height*Math.abs(t.d),l=-(r.rotation??0);return[{name:"rect",type:"element",attributes:{class:"pcb-cutout pcb-cutout-rect",x:(-a/2).toString(),y:(-c/2).toString(),width:a.toString(),height:c.toString(),fill:n.drill,transform:p3(Xu(wd(o,s),gE(l*Math.PI/180)))},children:[],value:""}]}if(i.shape==="circle"){const r=i,[o,s]=Li(t,[r.center.x,r.center.y]),a=r.radius*Math.abs(t.a);return[{name:"circle",type:"element",attributes:{class:"pcb-cutout pcb-cutout-circle",cx:o.toString(),cy:s.toString(),r:a.toString(),fill:n.drill},children:[],value:""}]}if(i.shape==="polygon"){const r=i;return!r.points||r.points.length===0?[]:[{name:"polygon",type:"element",attributes:{class:"pcb-cutout pcb-cutout-polygon",points:r.points.map(a=>Li(t,[a.x,a.y])).map(a=>`${a[0]},${a[1]}`).join(" "),fill:n.drill},children:[],value:""}]}return[]}function spn(i,e){var d,h;const{transform:t}=e,{center:n,width:r,height:o,rotation:s=0}=i,[a,c]=Li(t,[n.x,n.y]),l=r*Math.abs(t.a),u=o*Math.abs(t.d),A=`translate(${a}, ${c}) rotate(${-s}) scale(1, -1)`;return!((d=e.colorMap.debugComponent)!=null&&d.fill)&&!((h=e.colorMap.debugComponent)!=null&&h.stroke)?[]:[{name:"g",type:"element",attributes:{transform:A},children:[{name:"rect",type:"element",attributes:{class:"pcb-component",x:(-l/2).toString(),y:(-u/2).toString(),width:l.toString(),height:u.toString(),fill:e.colorMap.debugComponent.fill??"transparent",stroke:e.colorMap.debugComponent.stroke??"transparent"}}],value:""}]}function L7(i){const e=i.find(t=>t.type==="project_software_metadata"||t.type==="source_project_metadata");return e==null?void 0:e.software_used_string}var apn={version:"0.0.173"},U7=apn.version,xet=["pcb_trace_error","pcb_plated_hole","pcb_fabrication_note_text","pcb_fabrication_note_path","pcb_silkscreen_text","pcb_silkscreen_path","pcb_via","pcb_cutout","pcb_smtpad","pcb_trace","pcb_component","pcb_board"];function Eet(i,e){var mt,ke,Xe,et,ht,Bt,gt,un;const t=(e==null?void 0:e.drawPaddingOutsideBoard)??!0,n=e==null?void 0:e.layer,r=e==null?void 0:e.colorOverrides,o={copper:{top:((mt=r==null?void 0:r.copper)==null?void 0:mt.top)??sx.copper.top,bottom:((ke=r==null?void 0:r.copper)==null?void 0:ke.bottom)??sx.copper.bottom},drill:(r==null?void 0:r.drill)??sx.drill,silkscreen:{top:((Xe=r==null?void 0:r.silkscreen)==null?void 0:Xe.top)??sx.silkscreen.top,bottom:((et=r==null?void 0:r.silkscreen)==null?void 0:et.bottom)??sx.silkscreen.bottom},boardOutline:(r==null?void 0:r.boardOutline)??sx.boardOutline,soldermask:{top:((ht=r==null?void 0:r.soldermask)==null?void 0:ht.top)??sx.soldermask.top,bottom:((Bt=r==null?void 0:r.soldermask)==null?void 0:Bt.bottom)??sx.soldermask.bottom},debugComponent:{fill:((gt=r==null?void 0:r.debugComponent)==null?void 0:gt.fill)??sx.debugComponent.fill,stroke:((un=r==null?void 0:r.debugComponent)==null?void 0:un.stroke)??sx.debugComponent.stroke}};let s=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,A=Number.POSITIVE_INFINITY,d=Number.NEGATIVE_INFINITY,h=Number.NEGATIVE_INFINITY;for(const jt of i)if(jt.type==="pcb_board")jt.outline&&Array.isArray(jt.outline)&&jt.outline.length>=3?(qe(jt.outline),rt(jt.outline)):"center"in jt&&"width"in jt&&"height"in jt&&(we(jt.center,jt.width,jt.height),Je(jt.center,jt.width,jt.height));else if("x"in jt&&"y"in jt)we({x:jt.x,y:jt.y},0,0);else if(jt.type==="pcb_smtpad"){const Yt=jt;Yt.shape==="rect"||Yt.shape==="rotated_rect"||Yt.shape==="pill"?we({x:Yt.x,y:Yt.y},Yt.width,Yt.height):Yt.shape==="circle"?we({x:Yt.x,y:Yt.y},Yt.radius*2,Yt.radius*2):Yt.shape==="polygon"&&yt(Yt.points)}else"route"in jt?yt(jt.route):(jt.type==="pcb_silkscreen_text"||jt.type==="pcb_silkscreen_rect"||jt.type==="pcb_silkscreen_circle"||jt.type==="pcb_silkscreen_line")&&wt(jt);const f=t?1:0,y=t||!isFinite(u)?s:u,_=t||!isFinite(A)?a:A,v=t||!isFinite(d)?c:d,E=t||!isFinite(h)?l:h,b=v-y+2*f,M=E-_+2*f;let z=(e==null?void 0:e.width)??800,U=(e==null?void 0:e.height)??600;if(e!=null&&e.matchBoardAspectRatio){const jt=d-u,Yt=h-A;if(jt>0&&Yt>0){const hn=jt/Yt;e!=null&&e.width&&!(e!=null&&e.height)?U=e.width/hn:e!=null&&e.height&&!(e!=null&&e.width)?z=e.height*hn:U=z/hn}}const L=[];for(const jt of i)"route"in jt&&jt.route!==void 0&&L.push(jt.route);const F=z/b,Y=U/M,G=Math.min(F,Y),ee=(z-b*G)/2,j=(U-M*G)/2,ie=Xu(wd(ee-y*G+f*G,U-j+_*G-f*G),P9(G,-G)),he={transform:ie,layer:n,shouldDrawErrors:e==null?void 0:e.shouldDrawErrors,drawPaddingOutsideBoard:t,colorMap:o};function ge(jt){if(jt.type==="pcb_smtpad")return jt.layer==="top"||jt.layer==="bottom"?jt.layer:void 0;if(jt.type==="pcb_trace")for(const Yt of jt.route??[]){const hn="layer"in Yt&&Yt.layer||"from_layer"in Yt&&Yt.from_layer||"to_layer"in Yt&&Yt.to_layer||void 0;if(hn==="top"||hn==="bottom")return hn}}function le(jt){return jt.type==="pcb_trace"||jt.type==="pcb_smtpad"}let me=i.sort((jt,Yt)=>{const hn=ge(jt),hi=ge(Yt);if(le(jt)&&le(Yt)&&hn!==hi){if(hn==="top")return 1;if(hi==="top"||hn==="bottom")return-1;if(hi==="bottom")return 1}return(xet.indexOf(Yt.type)??9999)-(xet.indexOf(jt.type)??9999)}).flatMap(jt=>cpn({elm:jt,circuitJson:i,ctx:he}));for(const jt of i)if("stroke_width"in jt){String(G*jt.stroke_width);break}if(e!=null&&e.shouldDrawRatsNest){const jt=rpn(i,he);me=me.concat(jt)}const pe=[{name:"style",type:"element",value:"",attributes:{},children:[{type:"text",value:"",name:"",attributes:{},children:[]}]},{name:"rect",type:"element",value:"",attributes:{class:"boundary",x:"0",y:"0",fill:(e==null?void 0:e.backgroundColor)??"#000",width:z.toString(),height:U.toString()},children:[]}];t&&pe.push(lpn(ie,s,a,c,l)),pe.push(...me);const Be=L7(i),Re=U7,De={name:"svg",type:"element",attributes:{xmlns:"http://www.w3.org/2000/svg",width:z.toString(),height:U.toString(),...Be&&{"data-software-used-string":Be},...(e==null?void 0:e.includeVersion)&&{"data-circuit-to-svg-version":Re}},value:"",children:pe.filter(jt=>jt!==null)};try{return MH(De)}catch(jt){throw console.error("Error stringifying SVG object:",jt),jt}function we(jt,Yt,hn){const hi=Yt/2,Xn=hn/2;s=Math.min(s,jt.x-hi),a=Math.min(a,jt.y-Xn),c=Math.max(c,jt.x+hi),l=Math.max(l,jt.y+Xn)}function Je(jt,Yt,hn){const hi=Yt/2,Xn=hn/2;u=Math.min(u,jt.x-hi),A=Math.min(A,jt.y-Xn),d=Math.max(d,jt.x+hi),h=Math.max(h,jt.y+Xn)}function qe(jt){for(const Yt of jt)s=Math.min(s,Yt.x),a=Math.min(a,Yt.y),c=Math.max(c,Yt.x),l=Math.max(l,Yt.y)}function rt(jt){for(const Yt of jt)u=Math.min(u,Yt.x),A=Math.min(A,Yt.y),d=Math.max(d,Yt.x),h=Math.max(h,Yt.y)}function yt(jt){for(const Yt of jt)s=Math.min(s,Yt.x),a=Math.min(a,Yt.y),c=Math.max(c,Yt.x),l=Math.max(l,Yt.y)}function wt(jt){if(jt.type==="pcb_silkscreen_text")we(jt.anchor_position,0,0);else if(jt.type==="pcb_silkscreen_path")yt(jt.route);else if(jt.type==="pcb_silkscreen_rect")we(jt.center,jt.width,jt.height);else if(jt.type==="pcb_silkscreen_circle")we(jt.center,jt.radius*2,jt.radius*2);else if(jt.type==="pcb_silkscreen_line")we({x:jt.x1,y:jt.y1},0,0),we({x:jt.x2,y:jt.y2},0,0);else if(jt.type==="pcb_cutout"){const Yt=jt;Yt.shape==="rect"?we(Yt.center,Yt.width,Yt.height):Yt.shape==="circle"?we(Yt.center,Yt.radius*2,Yt.radius*2):Yt.shape==="polygon"&&yt(Yt.points)}}}function cpn({elm:i,circuitJson:e,ctx:t}){switch(i.type){case"pcb_trace_error":return Gfn(i,e,t).filter(Boolean);case"pcb_component":return spn(i,t).filter(Boolean);case"pcb_trace":return qfn(i,t);case"pcb_plated_hole":return Hfn(i,t).filter(Boolean);case"pcb_hole":return tpn(i,t);case"pcb_smtpad":return $fn(i,t);case"pcb_silkscreen_text":return Kfn(i,t);case"pcb_silkscreen_rect":return jfn(i,t);case"pcb_silkscreen_circle":return Jfn(i,t);case"pcb_silkscreen_line":return Wfn(i,t);case"pcb_fabrication_note_path":return zfn(i,t);case"pcb_fabrication_note_text":return Yfn(i,t);case"pcb_silkscreen_path":return Vfn(i,t);case"pcb_board":return t.drawPaddingOutsideBoard?Cet(i,t):[];case"pcb_via":return epn(i,t);case"pcb_cutout":return opn(i,t);default:return[]}}function lpn(i,e,t,n,r){const[o,s]=Li(i,[e,t]),[a,c]=Li(i,[n,r]),l=Math.abs(a-o),u=Math.abs(c-s),A=Math.min(o,a),d=Math.min(s,c);return{name:"rect",type:"element",value:"",children:[],attributes:{class:"pcb-boundary",fill:"none",stroke:"#fff","stroke-width":"0.3",x:A.toString(),y:d.toString(),width:l.toString(),height:u.toString()}}}var upn=Eet,XV={fill:"none",stroke:"rgb(0,0,0)",strokeOpacity:"0.8",strokeWidthFactor:.2};function Apn(i,e,t={}){const{width:n,height:r,center:o,outline:s}=i;let a;if(s&&Array.isArray(s)&&s.length>=3)a=s.map((c,l)=>{const[u,A]=Li(e,[c.x,c.y]);return l===0?`M ${u} ${A}`:`L ${u} ${A}`}).join(" ");else{const c=n/2,l=r/2,u=Li(e,[o.x-c,o.y-l]),A=Li(e,[o.x+c,o.y-l]),d=Li(e,[o.x+c,o.y+l]),h=Li(e,[o.x-c,o.y+l]);a=`M ${u[0]} ${u[1]} L ${A[0]} ${A[1]} L ${d[0]} ${d[1]} L ${h[0]} ${h[1]}`}return a+=" Z",[{name:"path",type:"element",value:"",children:[],attributes:{class:"pcb-board",d:a,fill:t.fill??XV.fill,stroke:t.stroke??XV.stroke,"stroke-opacity":t.strokeOpacity??XV.strokeOpacity,"stroke-width":((t.strokeWidthFactor??XV.strokeWidthFactor)*Math.abs(e.a)).toString()}}]}var dpn={pin_number:.15,negated_pin_number:.15*.8,reference_designator:.18,manufacturer_number:.18,net_label:.18,error:.05},DD=(i,e)=>e??dpn[i],ww=(i,e,t)=>Math.abs(i.a)*DD(e,t);function hpn(i,e){const{elm:t,portPosition:n,name:r,arePinsInterchangeable:o}=i,{transform:s}=e,{center:a,width:c,height:l,rotation:u=0,layer:A="top"}=t;if(!a||typeof c!="number"||typeof l!="number")return null;const[d,h]=Li(s,[a.x,a.y]),[f,y]=Li(s,[n.x,n.y]),_=c*Math.abs(s.a),v=l*Math.abs(s.d),E=y>h,b=f<d,M=[fpn(_,v,u,A),ppn(_,v,r??"")];return o||M.push(gpn(_,v,u,A,E,b)),{name:"g",type:"element",value:"",attributes:{transform:`translate(${d}, ${h}) scale(1, -1)`},children:M}}function fpn(i,e,t,n){const r=i/2,o=e/2;return{name:"path",type:"element",attributes:{class:"assembly-component",d:mpn(r,o,t),"stroke-width":.8.toFixed(2),transform:`rotate(${-t})`,"stroke-dasharray":n==="bottom"?"2,2":""},value:"",children:[]}}function ppn(i,e,t,n){const r=Math.min(i,e),c=Math.min(58,Math.max(3,r*.8)),l=e>i;return{name:"text",type:"element",attributes:{x:"0",y:"0",class:"assembly-component-label","text-anchor":"middle",dy:".10em",style:"pointer-events: none","font-size":`${c.toFixed(1)}px`,transform:l?"rotate(90) scale(1, -1)":"scale(1, -1)"},children:[{type:"text",value:t||"",name:"",attributes:{},children:[]}],value:""}}function gpn(i,e,t,n,r,o){const s=i/2,a=e/2,c=Math.min(s,a)*.5;let l;return r&&o?l=[[-s,-a],[-s+c,-a],[-s,-a+c]]:r&&!o?l=[[s,-a],[s-c,-a],[s,-a+c]]:!r&&o?l=[[-s,a],[-s+c,a],[-s,a-c]]:l=[[s,a],[s-c,a],[s,a-c]],{name:"polygon",type:"element",attributes:{class:"assembly-pin1-indicator",points:l.map(A=>A.join(",")).join(" "),fill:"#333",stroke:"none",transform:`rotate(${-t})`},value:"",children:[]}}function mpn(i,e,t){const n=(a,c,l)=>{const u=Math.PI/180*l,A=Math.cos(u),d=Math.sin(u);return[a*A-c*d,a*d+c*A]};return`${[[-i,-e],[i,-e],[i,e],[-i,e]].map(([a,c])=>n(a,c,t)).map(([a,c],l)=>l===0?`M${a},${c}`:`L${a},${c}`).join(" ")} Z`}var hme="rgb(190, 190, 190)";function ypn(i,e){const{transform:t}=e,[n,r]=Li(t,[i.x,i.y]);if(i.hole_shape==="circle"||i.hole_shape==="square"){const o=i.hole_diameter*Math.abs(t.a),s=o/2;return i.hole_shape==="circle"?[{name:"circle",type:"element",attributes:{class:"assembly-hole",cx:n.toString(),cy:r.toString(),r:s.toString(),fill:hme},children:[],value:""}]:[{name:"rect",type:"element",attributes:{class:"assembly-hole",x:(n-s).toString(),y:(r-s).toString(),width:o.toString(),height:o.toString(),fill:hme},children:[],value:""}]}if(i.hole_shape==="oval"){const o=i.hole_width*Math.abs(t.a),s=i.hole_height*Math.abs(t.a),a=o/2,c=s/2;return[{name:"ellipse",type:"element",attributes:{class:"assembly-hole",cx:n.toString(),cy:r.toString(),rx:a.toString(),ry:c.toString(),fill:hme},children:[],value:""}]}return[]}var G7="rgb(210, 210, 210)",O7="rgb(190, 190, 190)";function _pn(i,e){const{transform:t}=e,[n,r]=Li(t,[i.x,i.y]);if(i.shape==="pill"){const o=i.outer_width*Math.abs(t.a),s=i.outer_height*Math.abs(t.a),a=i.hole_width*Math.abs(t.a),c=i.hole_height*Math.abs(t.a),l=o/2,u=s-o,A=a/2;return[{name:"g",type:"element",children:[{name:"path",type:"element",attributes:{class:"assembly-hole-outer",fill:G7,d:`M${n-l},${r-u/2} v${u} a${l},${l} 0 0 0 ${o},0 v-${u} a${l},${l} 0 0 0 -${o},0 z`},value:"",children:[]},{name:"path",type:"element",attributes:{class:"assembly-hole-inner",fill:O7,d:`M${n-A},${r-(c-a)/2} v${c-a} a${A},${A} 0 0 0 ${a},0 v-${c-a} a${A},${A} 0 0 0 -${a},0 z`},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="circle"){const o=i.outer_diameter*Math.abs(t.a),s=i.outer_diameter*Math.abs(t.a),a=i.hole_diameter*Math.abs(t.a),c=i.hole_diameter*Math.abs(t.a),l=Math.min(o,s)/2,u=Math.min(a,c)/2;return[{name:"g",type:"element",children:[{name:"circle",type:"element",attributes:{class:"assembly-hole-outer",fill:G7,cx:n.toString(),cy:r.toString(),r:l.toString()},value:"",children:[]},{name:"circle",type:"element",attributes:{class:"assembly-hole-inner",fill:O7,cx:n.toString(),cy:r.toString(),r:u.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="circular_hole_with_rect_pad"){const o=i.hole_diameter*Math.abs(t.a),s=i.rect_pad_width*Math.abs(t.a),a=i.rect_pad_height*Math.abs(t.a),c=o/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"assembly-hole-outer-pad",fill:G7,x:(n-s/2).toString(),y:(r-a/2).toString(),width:s.toString(),height:a.toString()},value:"",children:[]},{name:"circle",type:"element",attributes:{class:"assembly-hole-inner",fill:O7,cx:n.toString(),cy:r.toString(),r:c.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="pill_hole_with_rect_pad"){const o=i.rect_pad_width*Math.abs(t.a),s=i.rect_pad_height*Math.abs(t.a),a=i.hole_height*Math.abs(t.a),c=i.hole_width*Math.abs(t.a),l=Math.min(a,c)/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"assembly-hole-outer-pad",fill:G7,x:(n-o/2).toString(),y:(r-s/2).toString(),width:o.toString(),height:s.toString()},value:"",children:[]},{name:"rect",type:"element",attributes:{class:"assembly-hole-inner",fill:O7,x:(n-c/2).toString(),y:(r-a/2).toString(),width:c.toString(),height:a.toString(),rx:l.toString(),ry:l.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="rotated_pill_hole_with_rect_pad"){const o=i.rect_pad_width*Math.abs(t.a),s=i.rect_pad_height*Math.abs(t.a),a=i.hole_height*Math.abs(t.a),c=i.hole_width*Math.abs(t.a),l=Math.min(a,c)/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"assembly-hole-outer-pad",fill:G7,x:(-o/2).toString(),y:(-s/2).toString(),width:o.toString(),height:s.toString(),transform:`translate(${n} ${r}) rotate(${-i.rect_ccw_rotation})`},value:"",children:[]},{name:"rect",type:"element",attributes:{class:"assembly-hole-inner",fill:O7,x:(-c/2).toString(),y:(-a/2).toString(),width:c.toString(),height:a.toString(),rx:l.toString(),ry:l.toString(),transform:`translate(${n} ${r}) rotate(${-i.hole_ccw_rotation})`},value:"",children:[]}],value:"",attributes:{}}]}return[]}var z7="rgb(210, 210, 210)";function vpn(i,e){const{transform:t}=e;if(i.shape==="rect"||i.shape==="rotated_rect"){const n=i.width*Math.abs(t.a),r=i.height*Math.abs(t.d),[o,s]=Li(t,[i.x,i.y]);return i.shape==="rotated_rect"&&i.ccw_rotation?[{name:"rect",type:"element",attributes:{class:"assembly-pad",fill:z7,x:(-n/2).toString(),y:(-r/2).toString(),width:n.toString(),height:r.toString(),transform:`translate(${o} ${s}) rotate(${-i.ccw_rotation})`,"data-layer":i.layer},value:"",children:[]}]:[{name:"rect",type:"element",attributes:{class:"assembly-pad",fill:z7,x:(o-n/2).toString(),y:(s-r/2).toString(),width:n.toString(),height:r.toString(),"data-layer":i.layer},value:"",children:[]}]}if(i.shape==="pill"){const n=i.width*Math.abs(t.a),r=i.height*Math.abs(t.d),o=i.radius*Math.abs(t.a),[s,a]=Li(t,[i.x,i.y]);return[{name:"rect",type:"element",attributes:{class:"assembly-pad",fill:z7,x:(s-n/2).toString(),y:(a-r/2).toString(),width:n.toString(),height:r.toString(),rx:o.toString(),ry:o.toString(),"data-layer":i.layer},value:"",children:[]}]}if(i.shape==="circle"){const n=i.radius*Math.abs(t.a),[r,o]=Li(t,[i.x,i.y]);return[{name:"circle",type:"element",attributes:{class:"assembly-pad",fill:z7,cx:r.toString(),cy:o.toString(),r:n.toString(),"data-layer":i.layer},value:"",children:[]}]}if(i.shape==="polygon"){const n=(i.points??[]).map(r=>Li(t,[r.x,r.y]));return[{name:"polygon",type:"element",attributes:{class:"assembly-pad",fill:z7,points:n.map(r=>r.join(",")).join(" "),"data-layer":i.layer},value:"",children:[]}]}return[]}var bet=["pcb_component","pcb_smtpad","pcb_hole","pcb_plated_hole","pcb_board"];function Bet(i,e){let t=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY;for(const U of i)if(U.type==="pcb_board"){const L=U.center,F=U.width||0,Y=U.height||0;t=Math.min(t,L.x-F/2),n=Math.min(n,L.y-Y/2),r=Math.max(r,L.x+F/2),o=Math.max(o,L.y+Y/2)}const s=1,a=r-t+2*s,c=o-n+2*s,l=(e==null?void 0:e.width)??800,u=(e==null?void 0:e.height)??600,A=l/a,d=u/c,h=Math.min(A,d),f=(l-a*h)/2,y=(u-c*h)/2,_=Xu(wd(f-t*h+s*h,u-y+n*h-s*h),P9(h,-h)),v={transform:_},E=i.sort((U,L)=>(bet.indexOf(L.type)??9999)-(bet.indexOf(U.type)??9999)).flatMap(U=>Ipn(U,v,i)),b=L7(i),M=U7,z={name:"svg",type:"element",attributes:{xmlns:"http://www.w3.org/2000/svg",width:l.toString(),height:u.toString(),...b&&{"data-software-used-string":b},...(e==null?void 0:e.includeVersion)&&{"data-circuit-to-svg-version":M}},value:"",children:[{name:"style",type:"element",children:[{type:"text",value:`
|
|
13343
|
+
`),z=M.length===1?[{type:"text",value:s,name:"",attributes:{},children:[]}]:M.map((L,F)=>({type:"element",name:"tspan",value:"",attributes:{x:"0",...F>0?{dy:h.toString()}:{}},children:[{type:"text",value:L,name:"",attributes:{},children:[]}]}));return[{name:"text",type:"element",attributes:{x:"0",y:"0",dx:_.toString(),dy:v.toString(),fill:b,"font-family":"Arial, sans-serif","font-size":h.toString(),"text-anchor":f,"dominant-baseline":y,transform:p3(E),class:`pcb-silkscreen-text pcb-silkscreen-${c}`,"data-pcb-silkscreen-text-id":i.pcb_component_id,stroke:"none"},children:z,value:""}]}function jfn(i,e){const{transform:t,layer:n,colorMap:r}=e,{center:o,width:s,height:a,layer:c="top",pcb_silkscreen_rect_id:l,stroke_width:u,is_filled:A,has_stroke:d,is_stroke_dashed:h}=i;if(n&&c!==n)return[];if(!o||typeof o.x!="number"||typeof o.y!="number"||typeof s!="number"||typeof a!="number")return console.error("Invalid rectangle data:",{center:o,width:s,height:a}),[];const[f,y]=Li(t,[o.x,o.y]),_=s*Math.abs(t.a),v=a*Math.abs(t.d),E=u*Math.abs(t.a),b=c==="bottom"?r.silkscreen.bottom:r.silkscreen.top,M={x:(f-_/2).toString(),y:(y-v/2).toString(),width:_.toString(),height:v.toString(),class:`pcb-silkscreen-rect pcb-silkscreen-${c}`,"data-pcb-silkscreen-rect-id":l};M.fill=A?b:"none";let z;if(d===void 0?z=E>0:z=d,z){if(M.stroke=b,M["stroke-width"]=E.toString(),h){const L=.1*Math.abs(t.a),F=.05*Math.abs(t.a);M["stroke-dasharray"]=`${L} ${F}`}}else M.stroke="none";return[{name:"rect",type:"element",attributes:M,value:"",children:[]}]}function Jfn(i,e){const{transform:t,layer:n,colorMap:r}=e,{center:o,radius:s,layer:a="top",pcb_silkscreen_circle_id:c,stroke_width:l=1}=i;if(n&&a!==n)return[];if(!o||typeof o.x!="number"||typeof o.y!="number"||typeof s!="number")return console.error("Invalid PCB Silkscreen Circle data:",{center:o,radius:s}),[];const[u,A]=Li(t,[o.x,o.y]),d=s*Math.abs(t.a),h=l*Math.abs(t.a),f=a==="bottom"?r.silkscreen.bottom:r.silkscreen.top;return[{name:"circle",type:"element",attributes:{cx:u.toString(),cy:A.toString(),r:d.toString(),class:`pcb-silkscreen-circle pcb-silkscreen-${a}`,stroke:f,"stroke-width":h.toString(),"data-pcb-silkscreen-circle-id":c},value:"",children:[]}]}function Wfn(i,e){const{transform:t,layer:n,colorMap:r}=e,{x1:o,y1:s,x2:a,y2:c,stroke_width:l,layer:u="top",pcb_silkscreen_line_id:A}=i;if(n&&u!==n)return[];if(typeof o!="number"||typeof s!="number"||typeof a!="number"||typeof c!="number")return console.error("Invalid coordinates:",{x1:o,y1:s,x2:a,y2:c}),[];const[d,h]=Li(t,[o,s]),[f,y]=Li(t,[a,c]),_=l*Math.abs(t.a),v=u==="bottom"?r.silkscreen.bottom:r.silkscreen.top;return[{name:"line",type:"element",attributes:{x1:d.toString(),y1:h.toString(),x2:f.toString(),y2:y.toString(),stroke:v,"stroke-width":_.toString(),class:`pcb-silkscreen-line pcb-silkscreen-${u}`,"data-pcb-silkscreen-line-id":A},value:"",children:[]}]}function Zfn(i){const e=[];for(let t=0;t<i.length-1;t++)e.push([i[t],i[t+1]]);return e}var sx={copper:{top:"rgb(200, 52, 52)",bottom:"rgb(77, 127, 196)"},soldermask:{top:"rgb(200, 52, 52)",bottom:"rgb(77, 127, 196)"},drill:"#FF26E2",silkscreen:{top:"#f2eda1",bottom:"#5da9e9"},boardOutline:"rgba(255, 255, 255, 0.5)",debugComponent:{fill:null,stroke:null}};sx.drill,sx.silkscreen.top,sx.silkscreen.bottom,sx.copper.top,sx.copper.bottom;function RD(i,e=sx){return e.copper[i]??"white"}var Xfn={bottom:"rgb(105, 105, 105)",top:"rgb(105, 105, 105)"};function ZV(i){return Xfn[i]??"rgb(105, 105, 105)"}function qfn(i,e){const{transform:t,layer:n,colorMap:r}=e;if(!i.route||!Array.isArray(i.route)||i.route.length<2)return[];const o=Zfn(i.route),s=[];for(const[a,c]of o){const l=Li(t,[a.x,a.y]),u=Li(t,[c.x,c.y]),A="layer"in a?a.layer:"layer"in c?c.layer:null;if(!A||n&&A!==n)continue;const d=r.soldermask[A]??RD(A,r),h="width"in a?a.width:"width"in c?c.width:null,f={name:"path",type:"element",value:"",children:[],attributes:{class:"pcb-trace",stroke:d,fill:"none",d:`M ${l[0]} ${l[1]} L ${u[0]} ${u[1]}`,"stroke-width":h?(h*Math.abs(t.a)).toString():"0.3","stroke-linecap":"round","stroke-linejoin":"round","shape-rendering":"crispEdges","data-layer":A}};s.push(f)}return s.sort((a,c)=>{const l=a.attributes["data-layer"],u=c.attributes["data-layer"];return l==="bottom"&&u!=="bottom"?-1:l==="top"&&u!=="top"?1:0}),s}function $fn(i,e){const{transform:t,layer:n,colorMap:r}=e;if(n&&i.layer!==n)return[];if(i.shape==="rect"||i.shape==="rotated_rect"){const o=i.width*Math.abs(t.a),s=i.height*Math.abs(t.d),[a,c]=Li(t,[i.x,i.y]);return i.shape==="rotated_rect"&&i.ccw_rotation?[{name:"rect",type:"element",attributes:{class:"pcb-pad",fill:RD(i.layer,r),x:(-o/2).toString(),y:(-s/2).toString(),width:o.toString(),height:s.toString(),transform:`translate(${a} ${c}) rotate(${-i.ccw_rotation})`,"data-layer":i.layer}}]:[{name:"rect",type:"element",attributes:{class:"pcb-pad",fill:RD(i.layer,r),x:(a-o/2).toString(),y:(c-s/2).toString(),width:o.toString(),height:s.toString(),"data-layer":i.layer}}]}if(i.shape==="pill"){const o=i.width*Math.abs(t.a),s=i.height*Math.abs(t.d),a=i.radius*Math.abs(t.a),[c,l]=Li(t,[i.x,i.y]);return[{name:"rect",type:"element",attributes:{class:"pcb-pad",fill:RD(i.layer,r),x:(c-o/2).toString(),y:(l-s/2).toString(),width:o.toString(),height:s.toString(),rx:a.toString(),ry:a.toString(),"data-layer":i.layer}}]}if(i.shape==="circle"){const o=i.radius*Math.abs(t.a),[s,a]=Li(t,[i.x,i.y]);return[{name:"circle",type:"element",attributes:{class:"pcb-pad",fill:RD(i.layer,r),cx:s.toString(),cy:a.toString(),r:o.toString(),"data-layer":i.layer}}]}if(i.shape==="polygon"){const o=(i.points??[]).map(s=>Li(t,[s.x,s.y]));return[{name:"polygon",type:"element",attributes:{class:"pcb-pad",fill:RD(i.layer),points:o.map(s=>s.join(",")).join(" "),"data-layer":i.layer}}]}return[]}function Cet(i,e){const{transform:t,colorMap:n}=e,{width:r,height:o,center:s,outline:a}=i;let c;if(a&&Array.isArray(a)&&a.length>=3)c=a.map((l,u)=>{const[A,d]=Li(t,[l.x,l.y]);return u===0?`M ${A} ${d}`:`L ${A} ${d}`}).join(" ");else{const l=r/2,u=o/2,A=Li(t,[s.x-l,s.y-u]),d=Li(t,[s.x+l,s.y-u]),h=Li(t,[s.x+l,s.y+u]),f=Li(t,[s.x-l,s.y+u]);c=`M ${A[0]} ${A[1]} L ${d[0]} ${d[1]} L ${h[0]} ${h[1]} L ${f[0]} ${f[1]}`}return c+=" Z",[{name:"path",type:"element",value:"",children:[],attributes:{class:"pcb-board",d:c,fill:"none",stroke:n.boardOutline,"stroke-width":(.1*Math.abs(t.a)).toString()}}]}function epn(i,e){const{transform:t,colorMap:n}=e,[r,o]=Li(t,[i.x,i.y]),s=i.outer_diameter*Math.abs(t.a),a=i.outer_diameter*Math.abs(t.a),c=i.hole_diameter*Math.abs(t.a),l=i.hole_diameter*Math.abs(t.a),u=Math.min(s,a)/2,A=Math.min(c,l)/2;return{name:"g",type:"element",children:[{name:"circle",type:"element",attributes:{class:"pcb-hole-outer",fill:n.copper.top,cx:r.toString(),cy:o.toString(),r:u.toString()}},{name:"circle",type:"element",attributes:{class:"pcb-hole-inner",fill:n.drill,cx:r.toString(),cy:o.toString(),r:A.toString()}}]}}function tpn(i,e){const{transform:t,colorMap:n}=e,[r,o]=Li(t,[i.x,i.y]);if(i.hole_shape==="circle"||i.hole_shape==="square"){const s=i.hole_diameter*Math.abs(t.a),a=s/2;return i.hole_shape==="circle"?[{name:"circle",type:"element",attributes:{class:"pcb-hole",cx:r.toString(),cy:o.toString(),r:a.toString(),fill:n.drill},children:[],value:""}]:[{name:"rect",type:"element",attributes:{class:"pcb-hole",x:(r-a).toString(),y:(o-a).toString(),width:s.toString(),height:s.toString(),fill:n.drill},children:[],value:""}]}if(i.hole_shape==="oval"){const s=i.hole_width*Math.abs(t.a),a=i.hole_height*Math.abs(t.a),c=s/2,l=a/2;return[{name:"ellipse",type:"element",attributes:{class:"pcb-hole",cx:r.toString(),cy:o.toString(),rx:c.toString(),ry:l.toString(),fill:n.drill},children:[],value:""}]}return[]}var npn=(i,e)=>{const t=Rp(e).pcb_smtpad.get(i);if(t&&"x"in t&&"y"in t)return{x:t.x,y:t.y};const n=Rp(e).pcb_plated_hole.get(i);return n&&"x"in n&&"y"in n?{x:n.x,y:n.y}:null},ipn=(i,e,t,n)=>{const r=t.getIdsConnectedToNet(e);let o=null,s=1/0;for(const a of r){const c=npn(a,n);if(c){const l=i.x-c.x,u=i.y-c.y,A=Math.sqrt(l*l+u*u);A>0&&A<s&&(s=A,o=c)}}return o};function rpn(i,e){const{transform:t}=e,n=ZY(i),r=i.filter(c=>c.type==="pcb_port"),o=i.filter(c=>c.type==="source_trace"),s=[];r.forEach((c,l)=>{const u=c.pcb_port_id;if(!u)return;const A=n.getNetConnectedToId(u);if(!A)return;let d=!1;const h=Rp(i).source_port.getWhere({pcb_port_id:u});if(h&&h.source_port_id){const _=h.source_port_id;for(const v of o)if(Array.isArray(v.connected_source_port_ids)&&v.connected_source_port_ids.includes(_)&&Array.isArray(v.connected_source_net_ids)&&v.connected_source_net_ids.length>0){d=!0;break}}const f={x:c.x,y:c.y},y=ipn(f,A,n,i);y&&s.push({key:`${u}-${l}`,startPoint:f,endPoint:y,isInNet:d})});const a=[];for(const c of s){const l=Li(t,[c.startPoint.x,c.startPoint.y]),u=Li(t,[c.endPoint.x,c.endPoint.y]),A={x1:l[0].toString(),y1:l[1].toString(),x2:u[0].toString(),y2:u[1].toString(),stroke:"white","stroke-width":"1","stroke-dasharray":"6,6"};a.push({name:"line",type:"element",attributes:A,value:"",children:[]})}return a}function opn(i,e){const{transform:t,colorMap:n}=e;if(i.shape==="rect"){const r=i,[o,s]=Li(t,[r.center.x,r.center.y]),a=r.width*Math.abs(t.a),c=r.height*Math.abs(t.d),l=-(r.rotation??0);return[{name:"rect",type:"element",attributes:{class:"pcb-cutout pcb-cutout-rect",x:(-a/2).toString(),y:(-c/2).toString(),width:a.toString(),height:c.toString(),fill:n.drill,transform:p3(Xu(wd(o,s),gE(l*Math.PI/180)))},children:[],value:""}]}if(i.shape==="circle"){const r=i,[o,s]=Li(t,[r.center.x,r.center.y]),a=r.radius*Math.abs(t.a);return[{name:"circle",type:"element",attributes:{class:"pcb-cutout pcb-cutout-circle",cx:o.toString(),cy:s.toString(),r:a.toString(),fill:n.drill},children:[],value:""}]}if(i.shape==="polygon"){const r=i;return!r.points||r.points.length===0?[]:[{name:"polygon",type:"element",attributes:{class:"pcb-cutout pcb-cutout-polygon",points:r.points.map(a=>Li(t,[a.x,a.y])).map(a=>`${a[0]},${a[1]}`).join(" "),fill:n.drill},children:[],value:""}]}return[]}function spn(i,e){var d,h;const{transform:t}=e,{center:n,width:r,height:o,rotation:s=0}=i,[a,c]=Li(t,[n.x,n.y]),l=r*Math.abs(t.a),u=o*Math.abs(t.d),A=`translate(${a}, ${c}) rotate(${-s}) scale(1, -1)`;return!((d=e.colorMap.debugComponent)!=null&&d.fill)&&!((h=e.colorMap.debugComponent)!=null&&h.stroke)?[]:[{name:"g",type:"element",attributes:{transform:A},children:[{name:"rect",type:"element",attributes:{class:"pcb-component",x:(-l/2).toString(),y:(-u/2).toString(),width:l.toString(),height:u.toString(),fill:e.colorMap.debugComponent.fill??"transparent",stroke:e.colorMap.debugComponent.stroke??"transparent"}}],value:""}]}function L7(i){const e=i.find(t=>t.type==="project_software_metadata"||t.type==="source_project_metadata");return e==null?void 0:e.software_used_string}var apn={version:"0.0.174"},U7=apn.version,xet=["pcb_trace_error","pcb_plated_hole","pcb_fabrication_note_text","pcb_fabrication_note_path","pcb_silkscreen_text","pcb_silkscreen_path","pcb_via","pcb_cutout","pcb_smtpad","pcb_trace","pcb_component","pcb_board"];function Eet(i,e){var mt,ke,Xe,et,ht,Bt,gt,un;const t=(e==null?void 0:e.drawPaddingOutsideBoard)??!0,n=e==null?void 0:e.layer,r=e==null?void 0:e.colorOverrides,o={copper:{top:((mt=r==null?void 0:r.copper)==null?void 0:mt.top)??sx.copper.top,bottom:((ke=r==null?void 0:r.copper)==null?void 0:ke.bottom)??sx.copper.bottom},drill:(r==null?void 0:r.drill)??sx.drill,silkscreen:{top:((Xe=r==null?void 0:r.silkscreen)==null?void 0:Xe.top)??sx.silkscreen.top,bottom:((et=r==null?void 0:r.silkscreen)==null?void 0:et.bottom)??sx.silkscreen.bottom},boardOutline:(r==null?void 0:r.boardOutline)??sx.boardOutline,soldermask:{top:((ht=r==null?void 0:r.soldermask)==null?void 0:ht.top)??sx.soldermask.top,bottom:((Bt=r==null?void 0:r.soldermask)==null?void 0:Bt.bottom)??sx.soldermask.bottom},debugComponent:{fill:((gt=r==null?void 0:r.debugComponent)==null?void 0:gt.fill)??sx.debugComponent.fill,stroke:((un=r==null?void 0:r.debugComponent)==null?void 0:un.stroke)??sx.debugComponent.stroke}};let s=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,A=Number.POSITIVE_INFINITY,d=Number.NEGATIVE_INFINITY,h=Number.NEGATIVE_INFINITY;for(const jt of i)if(jt.type==="pcb_board")jt.outline&&Array.isArray(jt.outline)&&jt.outline.length>=3?(qe(jt.outline),rt(jt.outline)):"center"in jt&&"width"in jt&&"height"in jt&&(we(jt.center,jt.width,jt.height),Je(jt.center,jt.width,jt.height));else if("x"in jt&&"y"in jt)we({x:jt.x,y:jt.y},0,0);else if(jt.type==="pcb_smtpad"){const Yt=jt;Yt.shape==="rect"||Yt.shape==="rotated_rect"||Yt.shape==="pill"?we({x:Yt.x,y:Yt.y},Yt.width,Yt.height):Yt.shape==="circle"?we({x:Yt.x,y:Yt.y},Yt.radius*2,Yt.radius*2):Yt.shape==="polygon"&&yt(Yt.points)}else"route"in jt?yt(jt.route):(jt.type==="pcb_silkscreen_text"||jt.type==="pcb_silkscreen_rect"||jt.type==="pcb_silkscreen_circle"||jt.type==="pcb_silkscreen_line")&&wt(jt);const f=t?1:0,y=t||!isFinite(u)?s:u,_=t||!isFinite(A)?a:A,v=t||!isFinite(d)?c:d,E=t||!isFinite(h)?l:h,b=v-y+2*f,M=E-_+2*f;let z=(e==null?void 0:e.width)??800,U=(e==null?void 0:e.height)??600;if(e!=null&&e.matchBoardAspectRatio){const jt=d-u,Yt=h-A;if(jt>0&&Yt>0){const hn=jt/Yt;e!=null&&e.width&&!(e!=null&&e.height)?U=e.width/hn:e!=null&&e.height&&!(e!=null&&e.width)?z=e.height*hn:U=z/hn}}const L=[];for(const jt of i)"route"in jt&&jt.route!==void 0&&L.push(jt.route);const F=z/b,Y=U/M,G=Math.min(F,Y),ee=(z-b*G)/2,j=(U-M*G)/2,ie=Xu(wd(ee-y*G+f*G,U-j+_*G-f*G),P9(G,-G)),he={transform:ie,layer:n,shouldDrawErrors:e==null?void 0:e.shouldDrawErrors,drawPaddingOutsideBoard:t,colorMap:o};function ge(jt){if(jt.type==="pcb_smtpad")return jt.layer==="top"||jt.layer==="bottom"?jt.layer:void 0;if(jt.type==="pcb_trace")for(const Yt of jt.route??[]){const hn="layer"in Yt&&Yt.layer||"from_layer"in Yt&&Yt.from_layer||"to_layer"in Yt&&Yt.to_layer||void 0;if(hn==="top"||hn==="bottom")return hn}}function le(jt){return jt.type==="pcb_trace"||jt.type==="pcb_smtpad"}let me=i.sort((jt,Yt)=>{const hn=ge(jt),hi=ge(Yt);if(le(jt)&&le(Yt)&&hn!==hi){if(hn==="top")return 1;if(hi==="top"||hn==="bottom")return-1;if(hi==="bottom")return 1}return(xet.indexOf(Yt.type)??9999)-(xet.indexOf(jt.type)??9999)}).flatMap(jt=>cpn({elm:jt,circuitJson:i,ctx:he}));for(const jt of i)if("stroke_width"in jt){String(G*jt.stroke_width);break}if(e!=null&&e.shouldDrawRatsNest){const jt=rpn(i,he);me=me.concat(jt)}const pe=[{name:"style",type:"element",value:"",attributes:{},children:[{type:"text",value:"",name:"",attributes:{},children:[]}]},{name:"rect",type:"element",value:"",attributes:{class:"boundary",x:"0",y:"0",fill:(e==null?void 0:e.backgroundColor)??"#000",width:z.toString(),height:U.toString()},children:[]}];t&&pe.push(lpn(ie,s,a,c,l)),pe.push(...me);const Be=L7(i),Re=U7,De={name:"svg",type:"element",attributes:{xmlns:"http://www.w3.org/2000/svg",width:z.toString(),height:U.toString(),...Be&&{"data-software-used-string":Be},...(e==null?void 0:e.includeVersion)&&{"data-circuit-to-svg-version":Re}},value:"",children:pe.filter(jt=>jt!==null)};try{return MH(De)}catch(jt){throw console.error("Error stringifying SVG object:",jt),jt}function we(jt,Yt,hn){const hi=Yt/2,Xn=hn/2;s=Math.min(s,jt.x-hi),a=Math.min(a,jt.y-Xn),c=Math.max(c,jt.x+hi),l=Math.max(l,jt.y+Xn)}function Je(jt,Yt,hn){const hi=Yt/2,Xn=hn/2;u=Math.min(u,jt.x-hi),A=Math.min(A,jt.y-Xn),d=Math.max(d,jt.x+hi),h=Math.max(h,jt.y+Xn)}function qe(jt){for(const Yt of jt)s=Math.min(s,Yt.x),a=Math.min(a,Yt.y),c=Math.max(c,Yt.x),l=Math.max(l,Yt.y)}function rt(jt){for(const Yt of jt)u=Math.min(u,Yt.x),A=Math.min(A,Yt.y),d=Math.max(d,Yt.x),h=Math.max(h,Yt.y)}function yt(jt){for(const Yt of jt)s=Math.min(s,Yt.x),a=Math.min(a,Yt.y),c=Math.max(c,Yt.x),l=Math.max(l,Yt.y)}function wt(jt){if(jt.type==="pcb_silkscreen_text")we(jt.anchor_position,0,0);else if(jt.type==="pcb_silkscreen_path")yt(jt.route);else if(jt.type==="pcb_silkscreen_rect")we(jt.center,jt.width,jt.height);else if(jt.type==="pcb_silkscreen_circle")we(jt.center,jt.radius*2,jt.radius*2);else if(jt.type==="pcb_silkscreen_line")we({x:jt.x1,y:jt.y1},0,0),we({x:jt.x2,y:jt.y2},0,0);else if(jt.type==="pcb_cutout"){const Yt=jt;Yt.shape==="rect"?we(Yt.center,Yt.width,Yt.height):Yt.shape==="circle"?we(Yt.center,Yt.radius*2,Yt.radius*2):Yt.shape==="polygon"&&yt(Yt.points)}}}function cpn({elm:i,circuitJson:e,ctx:t}){switch(i.type){case"pcb_trace_error":return Gfn(i,e,t).filter(Boolean);case"pcb_component":return spn(i,t).filter(Boolean);case"pcb_trace":return qfn(i,t);case"pcb_plated_hole":return Hfn(i,t).filter(Boolean);case"pcb_hole":return tpn(i,t);case"pcb_smtpad":return $fn(i,t);case"pcb_silkscreen_text":return Kfn(i,t);case"pcb_silkscreen_rect":return jfn(i,t);case"pcb_silkscreen_circle":return Jfn(i,t);case"pcb_silkscreen_line":return Wfn(i,t);case"pcb_fabrication_note_path":return zfn(i,t);case"pcb_fabrication_note_text":return Yfn(i,t);case"pcb_silkscreen_path":return Vfn(i,t);case"pcb_board":return t.drawPaddingOutsideBoard?Cet(i,t):[];case"pcb_via":return epn(i,t);case"pcb_cutout":return opn(i,t);default:return[]}}function lpn(i,e,t,n,r){const[o,s]=Li(i,[e,t]),[a,c]=Li(i,[n,r]),l=Math.abs(a-o),u=Math.abs(c-s),A=Math.min(o,a),d=Math.min(s,c);return{name:"rect",type:"element",value:"",children:[],attributes:{class:"pcb-boundary",fill:"none",stroke:"#fff","stroke-width":"0.3",x:A.toString(),y:d.toString(),width:l.toString(),height:u.toString()}}}var upn=Eet,XV={fill:"none",stroke:"rgb(0,0,0)",strokeOpacity:"0.8",strokeWidthFactor:.2};function Apn(i,e,t={}){const{width:n,height:r,center:o,outline:s}=i;let a;if(s&&Array.isArray(s)&&s.length>=3)a=s.map((c,l)=>{const[u,A]=Li(e,[c.x,c.y]);return l===0?`M ${u} ${A}`:`L ${u} ${A}`}).join(" ");else{const c=n/2,l=r/2,u=Li(e,[o.x-c,o.y-l]),A=Li(e,[o.x+c,o.y-l]),d=Li(e,[o.x+c,o.y+l]),h=Li(e,[o.x-c,o.y+l]);a=`M ${u[0]} ${u[1]} L ${A[0]} ${A[1]} L ${d[0]} ${d[1]} L ${h[0]} ${h[1]}`}return a+=" Z",[{name:"path",type:"element",value:"",children:[],attributes:{class:"pcb-board",d:a,fill:t.fill??XV.fill,stroke:t.stroke??XV.stroke,"stroke-opacity":t.strokeOpacity??XV.strokeOpacity,"stroke-width":((t.strokeWidthFactor??XV.strokeWidthFactor)*Math.abs(e.a)).toString()}}]}var dpn={pin_number:.15,negated_pin_number:.15*.8,reference_designator:.18,manufacturer_number:.18,net_label:.18,error:.05},DD=(i,e)=>e??dpn[i],ww=(i,e,t)=>Math.abs(i.a)*DD(e,t);function hpn(i,e){const{elm:t,portPosition:n,name:r,arePinsInterchangeable:o}=i,{transform:s}=e,{center:a,width:c,height:l,rotation:u=0,layer:A="top"}=t;if(!a||typeof c!="number"||typeof l!="number")return null;const[d,h]=Li(s,[a.x,a.y]),[f,y]=Li(s,[n.x,n.y]),_=c*Math.abs(s.a),v=l*Math.abs(s.d),E=y>h,b=f<d,M=[fpn(_,v,u,A),ppn(_,v,r??"")];return o||M.push(gpn(_,v,u,A,E,b)),{name:"g",type:"element",value:"",attributes:{transform:`translate(${d}, ${h}) scale(1, -1)`},children:M}}function fpn(i,e,t,n){const r=i/2,o=e/2;return{name:"path",type:"element",attributes:{class:"assembly-component",d:mpn(r,o,t),"stroke-width":.8.toFixed(2),transform:`rotate(${-t})`,"stroke-dasharray":n==="bottom"?"2,2":""},value:"",children:[]}}function ppn(i,e,t,n){const r=Math.min(i,e),c=Math.min(58,Math.max(3,r*.8)),l=e>i;return{name:"text",type:"element",attributes:{x:"0",y:"0",class:"assembly-component-label","text-anchor":"middle",dy:".10em",style:"pointer-events: none","font-size":`${c.toFixed(1)}px`,transform:l?"rotate(90) scale(1, -1)":"scale(1, -1)"},children:[{type:"text",value:t||"",name:"",attributes:{},children:[]}],value:""}}function gpn(i,e,t,n,r,o){const s=i/2,a=e/2,c=Math.min(s,a)*.5;let l;return r&&o?l=[[-s,-a],[-s+c,-a],[-s,-a+c]]:r&&!o?l=[[s,-a],[s-c,-a],[s,-a+c]]:!r&&o?l=[[-s,a],[-s+c,a],[-s,a-c]]:l=[[s,a],[s-c,a],[s,a-c]],{name:"polygon",type:"element",attributes:{class:"assembly-pin1-indicator",points:l.map(A=>A.join(",")).join(" "),fill:"#333",stroke:"none",transform:`rotate(${-t})`},value:"",children:[]}}function mpn(i,e,t){const n=(a,c,l)=>{const u=Math.PI/180*l,A=Math.cos(u),d=Math.sin(u);return[a*A-c*d,a*d+c*A]};return`${[[-i,-e],[i,-e],[i,e],[-i,e]].map(([a,c])=>n(a,c,t)).map(([a,c],l)=>l===0?`M${a},${c}`:`L${a},${c}`).join(" ")} Z`}var hme="rgb(190, 190, 190)";function ypn(i,e){const{transform:t}=e,[n,r]=Li(t,[i.x,i.y]);if(i.hole_shape==="circle"||i.hole_shape==="square"){const o=i.hole_diameter*Math.abs(t.a),s=o/2;return i.hole_shape==="circle"?[{name:"circle",type:"element",attributes:{class:"assembly-hole",cx:n.toString(),cy:r.toString(),r:s.toString(),fill:hme},children:[],value:""}]:[{name:"rect",type:"element",attributes:{class:"assembly-hole",x:(n-s).toString(),y:(r-s).toString(),width:o.toString(),height:o.toString(),fill:hme},children:[],value:""}]}if(i.hole_shape==="oval"){const o=i.hole_width*Math.abs(t.a),s=i.hole_height*Math.abs(t.a),a=o/2,c=s/2;return[{name:"ellipse",type:"element",attributes:{class:"assembly-hole",cx:n.toString(),cy:r.toString(),rx:a.toString(),ry:c.toString(),fill:hme},children:[],value:""}]}return[]}var G7="rgb(210, 210, 210)",O7="rgb(190, 190, 190)";function _pn(i,e){const{transform:t}=e,[n,r]=Li(t,[i.x,i.y]);if(i.shape==="pill"){const o=i.outer_width*Math.abs(t.a),s=i.outer_height*Math.abs(t.a),a=i.hole_width*Math.abs(t.a),c=i.hole_height*Math.abs(t.a),l=o/2,u=s-o,A=a/2;return[{name:"g",type:"element",children:[{name:"path",type:"element",attributes:{class:"assembly-hole-outer",fill:G7,d:`M${n-l},${r-u/2} v${u} a${l},${l} 0 0 0 ${o},0 v-${u} a${l},${l} 0 0 0 -${o},0 z`},value:"",children:[]},{name:"path",type:"element",attributes:{class:"assembly-hole-inner",fill:O7,d:`M${n-A},${r-(c-a)/2} v${c-a} a${A},${A} 0 0 0 ${a},0 v-${c-a} a${A},${A} 0 0 0 -${a},0 z`},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="circle"){const o=i.outer_diameter*Math.abs(t.a),s=i.outer_diameter*Math.abs(t.a),a=i.hole_diameter*Math.abs(t.a),c=i.hole_diameter*Math.abs(t.a),l=Math.min(o,s)/2,u=Math.min(a,c)/2;return[{name:"g",type:"element",children:[{name:"circle",type:"element",attributes:{class:"assembly-hole-outer",fill:G7,cx:n.toString(),cy:r.toString(),r:l.toString()},value:"",children:[]},{name:"circle",type:"element",attributes:{class:"assembly-hole-inner",fill:O7,cx:n.toString(),cy:r.toString(),r:u.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="circular_hole_with_rect_pad"){const o=i.hole_diameter*Math.abs(t.a),s=i.rect_pad_width*Math.abs(t.a),a=i.rect_pad_height*Math.abs(t.a),c=o/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"assembly-hole-outer-pad",fill:G7,x:(n-s/2).toString(),y:(r-a/2).toString(),width:s.toString(),height:a.toString()},value:"",children:[]},{name:"circle",type:"element",attributes:{class:"assembly-hole-inner",fill:O7,cx:n.toString(),cy:r.toString(),r:c.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="pill_hole_with_rect_pad"){const o=i.rect_pad_width*Math.abs(t.a),s=i.rect_pad_height*Math.abs(t.a),a=i.hole_height*Math.abs(t.a),c=i.hole_width*Math.abs(t.a),l=Math.min(a,c)/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"assembly-hole-outer-pad",fill:G7,x:(n-o/2).toString(),y:(r-s/2).toString(),width:o.toString(),height:s.toString()},value:"",children:[]},{name:"rect",type:"element",attributes:{class:"assembly-hole-inner",fill:O7,x:(n-c/2).toString(),y:(r-a/2).toString(),width:c.toString(),height:a.toString(),rx:l.toString(),ry:l.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="rotated_pill_hole_with_rect_pad"){const o=i.rect_pad_width*Math.abs(t.a),s=i.rect_pad_height*Math.abs(t.a),a=i.hole_height*Math.abs(t.a),c=i.hole_width*Math.abs(t.a),l=Math.min(a,c)/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"assembly-hole-outer-pad",fill:G7,x:(-o/2).toString(),y:(-s/2).toString(),width:o.toString(),height:s.toString(),transform:`translate(${n} ${r}) rotate(${-i.rect_ccw_rotation})`},value:"",children:[]},{name:"rect",type:"element",attributes:{class:"assembly-hole-inner",fill:O7,x:(-c/2).toString(),y:(-a/2).toString(),width:c.toString(),height:a.toString(),rx:l.toString(),ry:l.toString(),transform:`translate(${n} ${r}) rotate(${-i.hole_ccw_rotation})`},value:"",children:[]}],value:"",attributes:{}}]}return[]}var z7="rgb(210, 210, 210)";function vpn(i,e){const{transform:t}=e;if(i.shape==="rect"||i.shape==="rotated_rect"){const n=i.width*Math.abs(t.a),r=i.height*Math.abs(t.d),[o,s]=Li(t,[i.x,i.y]);return i.shape==="rotated_rect"&&i.ccw_rotation?[{name:"rect",type:"element",attributes:{class:"assembly-pad",fill:z7,x:(-n/2).toString(),y:(-r/2).toString(),width:n.toString(),height:r.toString(),transform:`translate(${o} ${s}) rotate(${-i.ccw_rotation})`,"data-layer":i.layer},value:"",children:[]}]:[{name:"rect",type:"element",attributes:{class:"assembly-pad",fill:z7,x:(o-n/2).toString(),y:(s-r/2).toString(),width:n.toString(),height:r.toString(),"data-layer":i.layer},value:"",children:[]}]}if(i.shape==="pill"){const n=i.width*Math.abs(t.a),r=i.height*Math.abs(t.d),o=i.radius*Math.abs(t.a),[s,a]=Li(t,[i.x,i.y]);return[{name:"rect",type:"element",attributes:{class:"assembly-pad",fill:z7,x:(s-n/2).toString(),y:(a-r/2).toString(),width:n.toString(),height:r.toString(),rx:o.toString(),ry:o.toString(),"data-layer":i.layer},value:"",children:[]}]}if(i.shape==="circle"){const n=i.radius*Math.abs(t.a),[r,o]=Li(t,[i.x,i.y]);return[{name:"circle",type:"element",attributes:{class:"assembly-pad",fill:z7,cx:r.toString(),cy:o.toString(),r:n.toString(),"data-layer":i.layer},value:"",children:[]}]}if(i.shape==="polygon"){const n=(i.points??[]).map(r=>Li(t,[r.x,r.y]));return[{name:"polygon",type:"element",attributes:{class:"assembly-pad",fill:z7,points:n.map(r=>r.join(",")).join(" "),"data-layer":i.layer},value:"",children:[]}]}return[]}var bet=["pcb_component","pcb_smtpad","pcb_hole","pcb_plated_hole","pcb_board"];function Bet(i,e){let t=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY;for(const U of i)if(U.type==="pcb_board"){const L=U.center,F=U.width||0,Y=U.height||0;t=Math.min(t,L.x-F/2),n=Math.min(n,L.y-Y/2),r=Math.max(r,L.x+F/2),o=Math.max(o,L.y+Y/2)}const s=1,a=r-t+2*s,c=o-n+2*s,l=(e==null?void 0:e.width)??800,u=(e==null?void 0:e.height)??600,A=l/a,d=u/c,h=Math.min(A,d),f=(l-a*h)/2,y=(u-c*h)/2,_=Xu(wd(f-t*h+s*h,u-y+n*h-s*h),P9(h,-h)),v={transform:_},E=i.sort((U,L)=>(bet.indexOf(L.type)??9999)-(bet.indexOf(U.type)??9999)).flatMap(U=>Ipn(U,v,i)),b=L7(i),M=U7,z={name:"svg",type:"element",attributes:{xmlns:"http://www.w3.org/2000/svg",width:l.toString(),height:u.toString(),...b&&{"data-software-used-string":b},...(e==null?void 0:e.includeVersion)&&{"data-circuit-to-svg-version":M}},value:"",children:[{name:"style",type:"element",children:[{type:"text",value:`
|
|
13344
13344
|
.assembly-component {
|
|
13345
13345
|
fill: none;
|
|
13346
13346
|
stroke: #000;
|
|
@@ -13823,7 +13823,7 @@ ${n.stack}`),t.complete=!0,"root"in this&&this.root&&this.root.emit("asyncEffect
|
|
|
13823
13823
|
* Copyright (c) 2013-2015, 2017, Jon Schlinkert.
|
|
13824
13824
|
* Released under the MIT License.
|
|
13825
13825
|
*)
|
|
13826
|
-
*/const oPn=({containerClassName:i,...e})=>{const t=vt.useRef(null),[n,r]=vt.useState(620);return vt.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)}},[]),ut.jsx("div",{ref:t,className:i||"rf-w-full rf-h-full",children:ut.jsx(rPn,{...e,height:n})})},sPn='*,: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}',aPn=()=>{vt.useEffect(()=>{if(document.querySelector('style[data-styles="tscircuit-runframe"]'))return;const e=document.createElement("style");e.setAttribute("data-styles","tscircuit-runframe"),e.textContent=sPn,document.head.appendChild(e)},[])},cPn=i=>{vt.useEffect(()=>(i?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[i])},Qut=i=>`hsl(${y2.indexOf(i)*137.5%360}, 70%, 50%)`,lPn=({phaseTimings:i})=>{if(!i)return null;const e=Object.values(i).reduce((t,n)=>t+n,0);return ut.jsxs("div",{className:"rf-space-y-2 rf-w-full rf-px-4",children:[ut.jsx("div",{className:"rf-relative rf-h-8 rf-flex rf-rounded-sm",children:y2.map(t=>{const n=i[t]||0,r=n/e*100;return ut.jsx("div",{className:"rf-group/bar rf-relative rf-overflow-visible",style:{width:`${r}%`,backgroundColor:Qut(t)},children:ut.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)})}),ut.jsxs("div",{className:"rf-text-xs rf-text-gray-500",children:["Total: ",e.toFixed(2),"ms"]})]})},uPn=({renderLog:i})=>{const[e,t]=vt.useState("chronological");if(!i)return ut.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)=>y2.indexOf(o[0])-y2.indexOf(s[0])):n.sort((o,s)=>s[1]-o[1]);const r=n.reduce((o,[s,a])=>o+a,0);return ut.jsxs("div",{className:"rf-bg-white",children:[ut.jsxs("div",{className:"rf-flex rf-justify-between rf-items-center",children:[ut.jsx("div",{children:"Render Logs"}),ut.jsxs("div",{className:"rf-mb-4 rf-pr-2 rf-flex rf-text-xs rf-items-center",children:[ut.jsx("div",{className:"rf-mr-2",children:"Sort by:"}),ut.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:[ut.jsx("option",{value:"chronological",children:"Phase Order"}),ut.jsx("option",{value:"longest",children:"Duration"})]})]})]}),ut.jsx(lPn,{phaseTimings:i.phaseTimings}),ut.jsxs("table",{className:"rf-w-full rf-text-xs",children:[ut.jsx("thead",{children:ut.jsxs("tr",{children:[ut.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase Order"}),ut.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase"}),ut.jsx("th",{className:"rf-text-left rf-p-2",children:"Duration (ms)"})]})}),ut.jsx("tbody",{children:n.map(([o,s])=>ut.jsxs("tr",{children:[ut.jsx("td",{className:"rf-p-2",children:y2.indexOf(o)}),ut.jsx("td",{className:"rf-p-2",children:o}),ut.jsx("td",{className:"rf-p-2",children:ut.jsx("div",{className:"rf-w-8",children:ut.jsx("div",{className:"rf-h-2 rf-rounded-sm",style:{backgroundColor:Qut(o),width:`${s/r*100}%`}})})}),ut.jsx("td",{className:"rf-p-2",children:ut.jsxs("div",{className:"rf-flex w-full",children:[ut.jsxs("span",{className:"rf-flex-grow",children:[s,"ms"]}),ut.jsxs("span",{className:"rf-text-gray-500 rf-pr-2",children:[(s/r*100).toFixed(1),"%"]})]})})]},o))})]})]})},APn=({errorMessage:i,errorStack:e,circuitJsonErrors:t})=>{vt.useEffect(()=>{if(i){const n=new Error(i);e&&(n.stack=e);try{UF.captureException(n)}catch{}}},[i,e]),vt.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{UF.captureException(r,{error_type:n.type})}catch{}}},[t])},dPn="0.0.772";function hPn(i,e){const[t,n]=vt.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 vt.useEffect(()=>{try{window.localStorage.setItem(i,JSON.stringify(t))}catch(r){console.error("Error writing to localStorage:",r)}},[i,t]),[t,n]}const A9e={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},d9e=new Map,UW=i=>{const e=d9e.get(i);return e?Object.fromEntries(Object.entries(e.stores).map(([t,n])=>[t,n.getState()])):{}},fPn=(i,e,t)=>{if(i===void 0)return{type:"untracked",connection:e.connect(t)};const n=d9e.get(t.name);if(n)return{type:"tracked",store:i,...n};const r={connection:e.connect(t),stores:{}};return d9e.set(t.name,r),{type:"tracked",store:i,...r}},pPn=(i,e={})=>(t,n,r)=>{const{enabled:o,anonymousActionType:s,store:a,...c}=e;let l;try{l=(o??(A9e?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return(A9e?"production":void 0)!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),i(t,n,r);const{connection:u,...A}=fPn(a,l,c);let d=!0;r.setState=(y,_,v)=>{const E=t(y,_);if(!d)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,n()),E):(u==null||u.send({...b,type:`${a}/${b.type}`},{...UW(c.name),[a]:r.getState()}),E)};const h=(...y)=>{const _=d;d=!1,t(...y),d=_},f=i(r.setState,n,r);if(A.type==="untracked"?u==null||u.init(f):(A.stores[A.store]=r,u==null||u.init(Object.fromEntries(Object.entries(A.stores).map(([y,_])=>[y,y===A.store?f:_.getState()])))),r.dispatchFromDevtools&&typeof r.dispatch=="function"){let y=!1;const _=r.dispatch;r.dispatch=(...v)=>{(A9e?"production":void 0)!=="production"&&v[0].type==="__setState"&&!y&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),y=!0),_(...v)}}return u.subscribe(y=>{var _;switch(y.type){case"ACTION":if(typeof y.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return h9e(y.payload,v=>{if(v.type==="__setState"){if(a===void 0){h(v.state);return}Object.keys(v.state).length!==1&&console.error(`
|
|
13826
|
+
*/const oPn=({containerClassName:i,...e})=>{const t=vt.useRef(null),[n,r]=vt.useState(620);return vt.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)}},[]),ut.jsx("div",{ref:t,className:i||"rf-w-full rf-h-full",children:ut.jsx(rPn,{...e,height:n})})},sPn='*,: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}',aPn=()=>{vt.useEffect(()=>{if(document.querySelector('style[data-styles="tscircuit-runframe"]'))return;const e=document.createElement("style");e.setAttribute("data-styles","tscircuit-runframe"),e.textContent=sPn,document.head.appendChild(e)},[])},cPn=i=>{vt.useEffect(()=>(i?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[i])},Qut=i=>`hsl(${y2.indexOf(i)*137.5%360}, 70%, 50%)`,lPn=({phaseTimings:i})=>{if(!i)return null;const e=Object.values(i).reduce((t,n)=>t+n,0);return ut.jsxs("div",{className:"rf-space-y-2 rf-w-full rf-px-4",children:[ut.jsx("div",{className:"rf-relative rf-h-8 rf-flex rf-rounded-sm",children:y2.map(t=>{const n=i[t]||0,r=n/e*100;return ut.jsx("div",{className:"rf-group/bar rf-relative rf-overflow-visible",style:{width:`${r}%`,backgroundColor:Qut(t)},children:ut.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)})}),ut.jsxs("div",{className:"rf-text-xs rf-text-gray-500",children:["Total: ",e.toFixed(2),"ms"]})]})},uPn=({renderLog:i})=>{const[e,t]=vt.useState("chronological");if(!i)return ut.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)=>y2.indexOf(o[0])-y2.indexOf(s[0])):n.sort((o,s)=>s[1]-o[1]);const r=n.reduce((o,[s,a])=>o+a,0);return ut.jsxs("div",{className:"rf-bg-white",children:[ut.jsxs("div",{className:"rf-flex rf-justify-between rf-items-center",children:[ut.jsx("div",{children:"Render Logs"}),ut.jsxs("div",{className:"rf-mb-4 rf-pr-2 rf-flex rf-text-xs rf-items-center",children:[ut.jsx("div",{className:"rf-mr-2",children:"Sort by:"}),ut.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:[ut.jsx("option",{value:"chronological",children:"Phase Order"}),ut.jsx("option",{value:"longest",children:"Duration"})]})]})]}),ut.jsx(lPn,{phaseTimings:i.phaseTimings}),ut.jsxs("table",{className:"rf-w-full rf-text-xs",children:[ut.jsx("thead",{children:ut.jsxs("tr",{children:[ut.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase Order"}),ut.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase"}),ut.jsx("th",{className:"rf-text-left rf-p-2",children:"Duration (ms)"})]})}),ut.jsx("tbody",{children:n.map(([o,s])=>ut.jsxs("tr",{children:[ut.jsx("td",{className:"rf-p-2",children:y2.indexOf(o)}),ut.jsx("td",{className:"rf-p-2",children:o}),ut.jsx("td",{className:"rf-p-2",children:ut.jsx("div",{className:"rf-w-8",children:ut.jsx("div",{className:"rf-h-2 rf-rounded-sm",style:{backgroundColor:Qut(o),width:`${s/r*100}%`}})})}),ut.jsx("td",{className:"rf-p-2",children:ut.jsxs("div",{className:"rf-flex w-full",children:[ut.jsxs("span",{className:"rf-flex-grow",children:[s,"ms"]}),ut.jsxs("span",{className:"rf-text-gray-500 rf-pr-2",children:[(s/r*100).toFixed(1),"%"]})]})})]},o))})]})]})},APn=({errorMessage:i,errorStack:e,circuitJsonErrors:t})=>{vt.useEffect(()=>{if(i){const n=new Error(i);e&&(n.stack=e);try{UF.captureException(n)}catch{}}},[i,e]),vt.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{UF.captureException(r,{error_type:n.type})}catch{}}},[t])},dPn="0.0.773";function hPn(i,e){const[t,n]=vt.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 vt.useEffect(()=>{try{window.localStorage.setItem(i,JSON.stringify(t))}catch(r){console.error("Error writing to localStorage:",r)}},[i,t]),[t,n]}const A9e={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},d9e=new Map,UW=i=>{const e=d9e.get(i);return e?Object.fromEntries(Object.entries(e.stores).map(([t,n])=>[t,n.getState()])):{}},fPn=(i,e,t)=>{if(i===void 0)return{type:"untracked",connection:e.connect(t)};const n=d9e.get(t.name);if(n)return{type:"tracked",store:i,...n};const r={connection:e.connect(t),stores:{}};return d9e.set(t.name,r),{type:"tracked",store:i,...r}},pPn=(i,e={})=>(t,n,r)=>{const{enabled:o,anonymousActionType:s,store:a,...c}=e;let l;try{l=(o??(A9e?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return(A9e?"production":void 0)!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),i(t,n,r);const{connection:u,...A}=fPn(a,l,c);let d=!0;r.setState=(y,_,v)=>{const E=t(y,_);if(!d)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,n()),E):(u==null||u.send({...b,type:`${a}/${b.type}`},{...UW(c.name),[a]:r.getState()}),E)};const h=(...y)=>{const _=d;d=!1,t(...y),d=_},f=i(r.setState,n,r);if(A.type==="untracked"?u==null||u.init(f):(A.stores[A.store]=r,u==null||u.init(Object.fromEntries(Object.entries(A.stores).map(([y,_])=>[y,y===A.store?f:_.getState()])))),r.dispatchFromDevtools&&typeof r.dispatch=="function"){let y=!1;const _=r.dispatch;r.dispatch=(...v)=>{(A9e?"production":void 0)!=="production"&&v[0].type==="__setState"&&!y&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),y=!0),_(...v)}}return u.subscribe(y=>{var _;switch(y.type){case"ACTION":if(typeof y.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return h9e(y.payload,v=>{if(v.type==="__setState"){if(a===void 0){h(v.state);return}Object.keys(v.state).length!==1&&console.error(`
|
|
13827
13827
|
[zustand devtools middleware] Unsupported __setState action format.
|
|
13828
13828
|
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
|
13829
13829
|
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
package/dist/standalone.min.js
CHANGED
|
@@ -13374,7 +13374,7 @@ ${R}
|
|
|
13374
13374
|
\`\`\`
|
|
13375
13375
|
${k.type}: ${z}
|
|
13376
13376
|
\`\`\``}A(P,W)},children:[Ze.jsx(Xxe,{className:"rf-w-4 rf-h-4"}),"Report Issue"]})]})]})};function wDn(i,e,t){var h;const{transform:n,shouldDrawErrors:r}=t;if(!r)return[];const{pcb_port_ids:o}=i,a=e.find(p=>p.type==="pcb_port"&&p.pcb_port_id===(o==null?void 0:o[0])),s=e.find(p=>p.type==="pcb_port"&&p.pcb_port_id===(o==null?void 0:o[1]));if(!a||!s){const p=(h=i.message)==null?void 0:h.match(/pcb_via\[#?(pcb_via_\d+)\]/),A=p==null?void 0:p[1],m=e.find(_=>_.type==="pcb_via"&&_.pcb_via_id===A);if(m&&m.type==="pcb_via")return SDn(i,m,t);if(i.center){const _=gr(n,{x:i.center.x,y:i.center.y});return[{name:"rect",type:"element",attributes:{x:(_.x-5).toString(),y:(_.y-5).toString(),width:"10",height:"10",fill:"red",transform:`rotate(45 ${_.x} ${_.y})`},children:[],value:""},{name:"text",type:"element",attributes:{x:_.x.toString(),y:(_.y-15).toString(),fill:"red","font-family":"sans-serif","font-size":"12","text-anchor":"middle"},children:[{type:"text",value:i.message||"Pcb Trace Error",name:"",attributes:{},children:[]}],value:""}]}else return[]}const c=gr(n,{x:a.x,y:a.y}),l=gr(n,{x:s.x,y:s.y}),u={x:(c.x+l.x)/2,y:(c.y+l.y)/2};return isNaN(c.x)||isNaN(c.y)||isNaN(l.x)||isNaN(l.y)||isNaN(u.x)||isNaN(u.y)?[]:[{name:"line",type:"element",attributes:{x1:c.x.toString(),y1:c.y.toString(),x2:u.x.toString(),y2:u.y.toString(),stroke:"red","stroke-width":"1.5","stroke-dasharray":"2,2"},children:[],value:""},{name:"line",type:"element",attributes:{x1:u.x.toString(),y1:u.y.toString(),x2:l.x.toString(),y2:l.y.toString(),stroke:"red","stroke-width":"1.5","stroke-dasharray":"2,2"},children:[],value:""},{name:"rect",type:"element",attributes:{x:(u.x-5).toString(),y:(u.y-5).toString(),width:"10",height:"10",fill:"red",transform:`rotate(45 ${u.x} ${u.y})`},children:[],value:""},{name:"text",type:"element",attributes:{x:u.x.toString(),y:(u.y-15).toString(),fill:"red","font-family":"sans-serif","font-size":"12","text-anchor":"middle"},children:[{type:"text",value:i.message||"Pcb Trace Error",name:"",attributes:{},children:[]}],value:""}]}function SDn(i,e,t){const{transform:n}=t;if(i.center&&e){const r=gr(n,{x:i.center.x,y:i.center.y}),o=gr(n,{x:e.x,y:e.y}),a=o.x-r.x,s=o.y-r.y,c=Math.sqrt(a*a+s*s),l=Math.atan2(s,a)*180/Math.PI,d=c+10*2,h=20,p=(r.x+o.x)/2,A=(r.y+o.y)/2;return[{name:"rect",type:"element",attributes:{x:(p-d/2).toString(),y:(A-h/2).toString(),width:d.toString(),height:h.toString(),fill:"none",stroke:"red","stroke-width":"1","stroke-dasharray":"3,2",transform:`rotate(${l} ${p} ${A})`},children:[],value:""},{name:"rect",type:"element",attributes:{x:(p-5).toString(),y:(A-5).toString(),width:"10",height:"10",fill:"red",transform:`rotate(45 ${p} ${A})`},children:[],value:""},{name:"text",type:"element",attributes:{x:p.toString(),y:(A-h/2-5).toString(),fill:"red","font-family":"sans-serif","font-size":"12","text-anchor":"middle"},children:[{type:"text",value:i.message||"Pcb Trace Error",name:"",attributes:{},children:[]}],value:""}]}return[]}function BDn(i,e){const{transform:t,layer:n}=e;if(!i.route||!Array.isArray(i.route))return[];const r=i.route[0],o=i.route[i.route.length-1],a=r.x===o.x&&r.y===o.y,s=i.route.slice(0,a?-1:void 0).map((c,l)=>{const[u,d]=gr(t,[c.x,c.y]);return l===0?`M ${u} ${d}`:`L ${u} ${d}`}).join(" ")+(a?" Z":"");return[{name:"path",type:"element",attributes:{class:"pcb-fabrication-note-path",stroke:i.color||"rgba(255,255,255,0.5)",fill:"none",d:s,"stroke-width":(i.stroke_width*Math.abs(t.a)).toString(),"data-pcb-component-id":i.pcb_component_id,"data-pcb-fabrication-note-path-id":i.pcb_fabrication_note_path_id},value:"",children:[]}]}function MDn(i,e){const{transform:t,layer:n}=e,{anchor_position:r,anchor_alignment:o,text:a,font_size:s=1,layer:c="top",color:l}=i;if(n&&c!==n)return[];if(!r||typeof r.x!="number"||typeof r.y!="number")return console.error("Invalid anchor_position:",r),[];const[u,d]=gr(t,[r.x,r.y]),h=s*Math.abs(t.a),p=ph(ip(u,d),S2(Math.PI/180));return[{name:"text",type:"element",attributes:{x:"0",y:"0","font-family":"Arial, sans-serif","font-size":h.toString(),"text-anchor":"middle","dominant-baseline":"central",transform:iB(p),class:"pcb-fabrication-note-text",fill:l||"rgba(255,255,255,0.5)"},children:[{type:"text",value:a,name:"",attributes:{},children:[]}],value:""}]}function RDn(i,e){const{transform:t,colorMap:n}=e,[r,o]=gr(t,[i.x,i.y]);if(i.shape==="pill"){const a=i.outer_width*Math.abs(t.a),s=i.outer_height*Math.abs(t.a),c=i.hole_width*Math.abs(t.a),l=i.hole_height*Math.abs(t.a),u=a/2,d=c/2,h=s-a;return[{name:"g",type:"element",children:[{name:"path",type:"element",attributes:{class:"pcb-hole-outer",fill:n.copper.top,d:`M${r-u},${o-h/2} v${h} a${u},${u} 0 0 0 ${a},0 v-${h} a${u},${u} 0 0 0 -${a},0 z`},value:"",children:[]},{name:"path",type:"element",attributes:{class:"pcb-hole-inner",fill:n.drill,d:`M${r-d},${o-(l-c)/2} v${l-c} a${d},${d} 0 0 0 ${c},0 v-${l-c} a${d},${d} 0 0 0 -${c},0 z`},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="circle"){const a=i.outer_diameter*Math.abs(t.a),s=i.outer_diameter*Math.abs(t.a),c=i.hole_diameter*Math.abs(t.a),l=i.hole_diameter*Math.abs(t.a),u=Math.min(a,s)/2,d=Math.min(c,l)/2;return[{name:"g",type:"element",children:[{name:"circle",type:"element",attributes:{class:"pcb-hole-outer",fill:n.copper.top,cx:r.toString(),cy:o.toString(),r:u.toString()},value:"",children:[]},{name:"circle",type:"element",attributes:{class:"pcb-hole-inner",fill:n.drill,cx:r.toString(),cy:o.toString(),r:d.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="circular_hole_with_rect_pad"){const a=i.hole_diameter*Math.abs(t.a),s=i.rect_pad_width*Math.abs(t.a),c=i.rect_pad_height*Math.abs(t.a),l=a/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"pcb-hole-outer-pad",fill:n.copper.top,x:(r-s/2).toString(),y:(o-c/2).toString(),width:s.toString(),height:c.toString()},value:"",children:[]},{name:"circle",type:"element",attributes:{class:"pcb-hole-inner",fill:n.drill,cx:r.toString(),cy:o.toString(),r:l.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="pill_hole_with_rect_pad"){const a=i.rect_pad_width*Math.abs(t.a),s=i.rect_pad_height*Math.abs(t.a),c=i.hole_height*Math.abs(t.a),l=i.hole_width*Math.abs(t.a),u=Math.min(c,l)/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"pcb-hole-outer-pad",fill:n.copper.top,x:(r-a/2).toString(),y:(o-s/2).toString(),width:a.toString(),height:s.toString()},value:"",children:[]},{name:"rect",type:"element",attributes:{class:"pcb-hole-inner",fill:n.drill,x:(r-l/2).toString(),y:(o-c/2).toString(),width:l.toString(),height:c.toString(),rx:u.toString(),ry:u.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="rotated_pill_hole_with_rect_pad"){const a=i.rect_pad_width*Math.abs(t.a),s=i.rect_pad_height*Math.abs(t.a),c=i.hole_height*Math.abs(t.a),l=i.hole_width*Math.abs(t.a),u=Math.min(c,l)/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"pcb-hole-outer-pad",fill:n.copper.top,x:(-a/2).toString(),y:(-s/2).toString(),width:a.toString(),height:s.toString(),transform:`translate(${r} ${o}) rotate(${-i.rect_ccw_rotation})`},value:"",children:[]},{name:"rect",type:"element",attributes:{class:"pcb-hole-inner",fill:n.drill,x:(-l/2).toString(),y:(-c/2).toString(),width:l.toString(),height:c.toString(),rx:u.toString(),ry:u.toString(),transform:`translate(${r} ${o}) rotate(${-i.hole_ccw_rotation})`},value:"",children:[]}],value:"",attributes:{}}]}return[]}function QDn(i,e){const{transform:t,layer:n,colorMap:r}=e;if(!i.route||!Array.isArray(i.route))return[];let o=i.route.map((u,d)=>{const[h,p]=gr(t,[u.x,u.y]);return d===0?`M ${h} ${p}`:`L ${h} ${p}`}).join(" ");const a=i.route[0],s=i.route[i.route.length-1];a&&s&&a.x===s.x&&a.y===s.y&&(o+=" Z");const c=i.layer||"top";if(n&&c!==n)return[];const l=c==="bottom"?r.silkscreen.bottom:r.silkscreen.top;return[{name:"path",type:"element",attributes:{class:`pcb-silkscreen pcb-silkscreen-${c}`,d:o,fill:"none",stroke:l,"stroke-width":(i.stroke_width*Math.abs(t.a)).toString(),"stroke-linecap":"round","stroke-linejoin":"round","data-pcb-component-id":i.pcb_component_id,"data-pcb-silkscreen-path-id":i.pcb_silkscreen_path_id},value:"",children:[]}]}function DDn(i,e){const{transform:t,layer:n,colorMap:r}=e,{anchor_position:o,text:a,font_size:s=1,layer:c="top",ccw_rotation:l=0,anchor_alignment:u="center"}=i;if(n&&c!==n)return[];if(!o||typeof o.x!="number"||typeof o.y!="number")return console.error("Invalid anchor_position:",o),[];const[d,h]=gr(t,[o.x,o.y]),p=s*Math.abs(t.a);let A="middle",m="central",_=0,y=0;switch(u){case"top_left":A="start",m="text-before-edge";break;case"top_center":A="middle",m="text-before-edge";break;case"top_right":A="end",m="text-before-edge";break;case"center_left":A="start",m="central";break;case"center_right":A="end",m="central";break;case"bottom_left":A="start",m="text-after-edge";break;case"bottom_center":A="middle",m="text-after-edge";break;case"bottom_right":A="end",m="text-after-edge";break;case"center":default:A="middle",m="central";break}const v=ph(ip(d,h),S2(l*Math.PI/180),...c==="bottom"?[wb(-1,1)]:[]),I=c==="bottom"?r.silkscreen.bottom:r.silkscreen.top,S=a.split(`
|
|
13377
|
-
`),U=S.length===1?[{type:"text",value:a,name:"",attributes:{},children:[]}]:S.map((k,B)=>({type:"element",name:"tspan",value:"",attributes:{x:"0",...B>0?{dy:p.toString()}:{}},children:[{type:"text",value:k,name:"",attributes:{},children:[]}]}));return[{name:"text",type:"element",attributes:{x:"0",y:"0",dx:_.toString(),dy:y.toString(),fill:I,"font-family":"Arial, sans-serif","font-size":p.toString(),"text-anchor":A,"dominant-baseline":m,transform:iB(v),class:`pcb-silkscreen-text pcb-silkscreen-${c}`,"data-pcb-silkscreen-text-id":i.pcb_component_id,stroke:"none"},children:U,value:""}]}function NDn(i,e){const{transform:t,layer:n,colorMap:r}=e,{center:o,width:a,height:s,layer:c="top",pcb_silkscreen_rect_id:l,stroke_width:u,is_filled:d,has_stroke:h,is_stroke_dashed:p}=i;if(n&&c!==n)return[];if(!o||typeof o.x!="number"||typeof o.y!="number"||typeof a!="number"||typeof s!="number")return console.error("Invalid rectangle data:",{center:o,width:a,height:s}),[];const[A,m]=gr(t,[o.x,o.y]),_=a*Math.abs(t.a),y=s*Math.abs(t.d),v=u*Math.abs(t.a),I=c==="bottom"?r.silkscreen.bottom:r.silkscreen.top,S={x:(A-_/2).toString(),y:(m-y/2).toString(),width:_.toString(),height:y.toString(),class:`pcb-silkscreen-rect pcb-silkscreen-${c}`,"data-pcb-silkscreen-rect-id":l};S.fill=d?I:"none";let U;if(h===void 0?U=v>0:U=h,U){if(S.stroke=I,S["stroke-width"]=v.toString(),p){const k=.1*Math.abs(t.a),B=.05*Math.abs(t.a);S["stroke-dasharray"]=`${k} ${B}`}}else S.stroke="none";return[{name:"rect",type:"element",attributes:S,value:"",children:[]}]}function TDn(i,e){const{transform:t,layer:n,colorMap:r}=e,{center:o,radius:a,layer:s="top",pcb_silkscreen_circle_id:c,stroke_width:l=1}=i;if(n&&s!==n)return[];if(!o||typeof o.x!="number"||typeof o.y!="number"||typeof a!="number")return console.error("Invalid PCB Silkscreen Circle data:",{center:o,radius:a}),[];const[u,d]=gr(t,[o.x,o.y]),h=a*Math.abs(t.a),p=l*Math.abs(t.a),A=s==="bottom"?r.silkscreen.bottom:r.silkscreen.top;return[{name:"circle",type:"element",attributes:{cx:u.toString(),cy:d.toString(),r:h.toString(),class:`pcb-silkscreen-circle pcb-silkscreen-${s}`,stroke:A,"stroke-width":p.toString(),"data-pcb-silkscreen-circle-id":c},value:"",children:[]}]}function kDn(i,e){const{transform:t,layer:n,colorMap:r}=e,{x1:o,y1:a,x2:s,y2:c,stroke_width:l,layer:u="top",pcb_silkscreen_line_id:d}=i;if(n&&u!==n)return[];if(typeof o!="number"||typeof a!="number"||typeof s!="number"||typeof c!="number")return console.error("Invalid coordinates:",{x1:o,y1:a,x2:s,y2:c}),[];const[h,p]=gr(t,[o,a]),[A,m]=gr(t,[s,c]),_=l*Math.abs(t.a),y=u==="bottom"?r.silkscreen.bottom:r.silkscreen.top;return[{name:"line",type:"element",attributes:{x1:h.toString(),y1:p.toString(),x2:A.toString(),y2:m.toString(),stroke:y,"stroke-width":_.toString(),class:`pcb-silkscreen-line pcb-silkscreen-${u}`,"data-pcb-silkscreen-line-id":d},value:"",children:[]}]}function PDn(i){const e=[];for(let t=0;t<i.length-1;t++)e.push([i[t],i[t+1]]);return e}var kC={copper:{top:"rgb(200, 52, 52)",bottom:"rgb(77, 127, 196)"},soldermask:{top:"rgb(200, 52, 52)",bottom:"rgb(77, 127, 196)"},drill:"#FF26E2",silkscreen:{top:"#f2eda1",bottom:"#5da9e9"},boardOutline:"rgba(255, 255, 255, 0.5)",debugComponent:{fill:null,stroke:null}};kC.drill,kC.silkscreen.top,kC.silkscreen.bottom,kC.copper.top,kC.copper.bottom;function gD(i,e=kC){return e.copper[i]??"white"}var LDn={bottom:"rgb(105, 105, 105)",top:"rgb(105, 105, 105)"};function Iq(i){return LDn[i]??"rgb(105, 105, 105)"}function FDn(i,e){const{transform:t,layer:n,colorMap:r}=e;if(!i.route||!Array.isArray(i.route)||i.route.length<2)return[];const o=PDn(i.route),a=[];for(const[s,c]of o){const l=gr(t,[s.x,s.y]),u=gr(t,[c.x,c.y]),d="layer"in s?s.layer:"layer"in c?c.layer:null;if(!d||n&&d!==n)continue;const h=r.soldermask[d]??gD(d,r),p="width"in s?s.width:"width"in c?c.width:null,A={name:"path",type:"element",value:"",children:[],attributes:{class:"pcb-trace",stroke:h,fill:"none",d:`M ${l[0]} ${l[1]} L ${u[0]} ${u[1]}`,"stroke-width":p?(p*Math.abs(t.a)).toString():"0.3","stroke-linecap":"round","stroke-linejoin":"round","shape-rendering":"crispEdges","data-layer":d}};a.push(A)}return a.sort((s,c)=>{const l=s.attributes["data-layer"],u=c.attributes["data-layer"];return l==="bottom"&&u!=="bottom"?-1:l==="top"&&u!=="top"?1:0}),a}function UDn(i,e){const{transform:t,layer:n,colorMap:r}=e;if(n&&i.layer!==n)return[];if(i.shape==="rect"||i.shape==="rotated_rect"){const o=i.width*Math.abs(t.a),a=i.height*Math.abs(t.d),[s,c]=gr(t,[i.x,i.y]);return i.shape==="rotated_rect"&&i.ccw_rotation?[{name:"rect",type:"element",attributes:{class:"pcb-pad",fill:gD(i.layer,r),x:(-o/2).toString(),y:(-a/2).toString(),width:o.toString(),height:a.toString(),transform:`translate(${s} ${c}) rotate(${-i.ccw_rotation})`,"data-layer":i.layer}}]:[{name:"rect",type:"element",attributes:{class:"pcb-pad",fill:gD(i.layer,r),x:(s-o/2).toString(),y:(c-a/2).toString(),width:o.toString(),height:a.toString(),"data-layer":i.layer}}]}if(i.shape==="pill"){const o=i.width*Math.abs(t.a),a=i.height*Math.abs(t.d),s=i.radius*Math.abs(t.a),[c,l]=gr(t,[i.x,i.y]);return[{name:"rect",type:"element",attributes:{class:"pcb-pad",fill:gD(i.layer,r),x:(c-o/2).toString(),y:(l-a/2).toString(),width:o.toString(),height:a.toString(),rx:s.toString(),ry:s.toString(),"data-layer":i.layer}}]}if(i.shape==="circle"){const o=i.radius*Math.abs(t.a),[a,s]=gr(t,[i.x,i.y]);return[{name:"circle",type:"element",attributes:{class:"pcb-pad",fill:gD(i.layer,r),cx:a.toString(),cy:s.toString(),r:o.toString(),"data-layer":i.layer}}]}if(i.shape==="polygon"){const o=(i.points??[]).map(a=>gr(t,[a.x,a.y]));return[{name:"polygon",type:"element",attributes:{class:"pcb-pad",fill:gD(i.layer),points:o.map(a=>a.join(",")).join(" "),"data-layer":i.layer}}]}return[]}function _pt(i,e){const{transform:t,colorMap:n}=e,{width:r,height:o,center:a,outline:s}=i;let c;if(s&&Array.isArray(s)&&s.length>=3)c=s.map((l,u)=>{const[d,h]=gr(t,[l.x,l.y]);return u===0?`M ${d} ${h}`:`L ${d} ${h}`}).join(" ");else{const l=r/2,u=o/2,d=gr(t,[a.x-l,a.y-u]),h=gr(t,[a.x+l,a.y-u]),p=gr(t,[a.x+l,a.y+u]),A=gr(t,[a.x-l,a.y+u]);c=`M ${d[0]} ${d[1]} L ${h[0]} ${h[1]} L ${p[0]} ${p[1]} L ${A[0]} ${A[1]}`}return c+=" Z",[{name:"path",type:"element",value:"",children:[],attributes:{class:"pcb-board",d:c,fill:"none",stroke:n.boardOutline,"stroke-width":(.1*Math.abs(t.a)).toString()}}]}function ODn(i,e){const{transform:t,colorMap:n}=e,[r,o]=gr(t,[i.x,i.y]),a=i.outer_diameter*Math.abs(t.a),s=i.outer_diameter*Math.abs(t.a),c=i.hole_diameter*Math.abs(t.a),l=i.hole_diameter*Math.abs(t.a),u=Math.min(a,s)/2,d=Math.min(c,l)/2;return{name:"g",type:"element",children:[{name:"circle",type:"element",attributes:{class:"pcb-hole-outer",fill:n.copper.top,cx:r.toString(),cy:o.toString(),r:u.toString()}},{name:"circle",type:"element",attributes:{class:"pcb-hole-inner",fill:n.drill,cx:r.toString(),cy:o.toString(),r:d.toString()}}]}}function GDn(i,e){const{transform:t,colorMap:n}=e,[r,o]=gr(t,[i.x,i.y]);if(i.hole_shape==="circle"||i.hole_shape==="square"){const a=i.hole_diameter*Math.abs(t.a),s=a/2;return i.hole_shape==="circle"?[{name:"circle",type:"element",attributes:{class:"pcb-hole",cx:r.toString(),cy:o.toString(),r:s.toString(),fill:n.drill},children:[],value:""}]:[{name:"rect",type:"element",attributes:{class:"pcb-hole",x:(r-s).toString(),y:(o-s).toString(),width:a.toString(),height:a.toString(),fill:n.drill},children:[],value:""}]}if(i.hole_shape==="oval"){const a=i.hole_width*Math.abs(t.a),s=i.hole_height*Math.abs(t.a),c=a/2,l=s/2;return[{name:"ellipse",type:"element",attributes:{class:"pcb-hole",cx:r.toString(),cy:o.toString(),rx:c.toString(),ry:l.toString(),fill:n.drill},children:[],value:""}]}return[]}var zDn=(i,e)=>{const t=Zg(e).pcb_smtpad.get(i);if(t&&"x"in t&&"y"in t)return{x:t.x,y:t.y};const n=Zg(e).pcb_plated_hole.get(i);return n&&"x"in n&&"y"in n?{x:n.x,y:n.y}:null},HDn=(i,e,t,n)=>{const r=t.getIdsConnectedToNet(e);let o=null,a=1/0;for(const s of r){const c=zDn(s,n);if(c){const l=i.x-c.x,u=i.y-c.y,d=Math.sqrt(l*l+u*u);d>0&&d<a&&(a=d,o=c)}}return o};function YDn(i,e){const{transform:t}=e,n=PH(i),r=i.filter(c=>c.type==="pcb_port"),o=i.filter(c=>c.type==="source_trace"),a=[];r.forEach((c,l)=>{const u=c.pcb_port_id;if(!u)return;const d=n.getNetConnectedToId(u);if(!d)return;let h=!1;const p=Zg(i).source_port.getWhere({pcb_port_id:u});if(p&&p.source_port_id){const _=p.source_port_id;for(const y of o)if(Array.isArray(y.connected_source_port_ids)&&y.connected_source_port_ids.includes(_)&&Array.isArray(y.connected_source_net_ids)&&y.connected_source_net_ids.length>0){h=!0;break}}const A={x:c.x,y:c.y},m=HDn(A,d,n,i);m&&a.push({key:`${u}-${l}`,startPoint:A,endPoint:m,isInNet:h})});const s=[];for(const c of a){const l=gr(t,[c.startPoint.x,c.startPoint.y]),u=gr(t,[c.endPoint.x,c.endPoint.y]),d={x1:l[0].toString(),y1:l[1].toString(),x2:u[0].toString(),y2:u[1].toString(),stroke:"white","stroke-width":"1","stroke-dasharray":"6,6"};s.push({name:"line",type:"element",attributes:d,value:"",children:[]})}return s}function VDn(i,e){const{transform:t,colorMap:n}=e;if(i.shape==="rect"){const r=i,[o,a]=gr(t,[r.center.x,r.center.y]),s=r.width*Math.abs(t.a),c=r.height*Math.abs(t.d),l=-(r.rotation??0);return[{name:"rect",type:"element",attributes:{class:"pcb-cutout pcb-cutout-rect",x:(-s/2).toString(),y:(-c/2).toString(),width:s.toString(),height:c.toString(),fill:n.drill,transform:iB(ph(ip(o,a),S2(l*Math.PI/180)))},children:[],value:""}]}if(i.shape==="circle"){const r=i,[o,a]=gr(t,[r.center.x,r.center.y]),s=r.radius*Math.abs(t.a);return[{name:"circle",type:"element",attributes:{class:"pcb-cutout pcb-cutout-circle",cx:o.toString(),cy:a.toString(),r:s.toString(),fill:n.drill},children:[],value:""}]}if(i.shape==="polygon"){const r=i;return!r.points||r.points.length===0?[]:[{name:"polygon",type:"element",attributes:{class:"pcb-cutout pcb-cutout-polygon",points:r.points.map(s=>gr(t,[s.x,s.y])).map(s=>`${s[0]},${s[1]}`).join(" "),fill:n.drill},children:[],value:""}]}return[]}function jDn(i,e){var h,p;const{transform:t}=e,{center:n,width:r,height:o,rotation:a=0}=i,[s,c]=gr(t,[n.x,n.y]),l=r*Math.abs(t.a),u=o*Math.abs(t.d),d=`translate(${s}, ${c}) rotate(${-a}) scale(1, -1)`;return!((h=e.colorMap.debugComponent)!=null&&h.fill)&&!((p=e.colorMap.debugComponent)!=null&&p.stroke)?[]:[{name:"g",type:"element",attributes:{transform:d},children:[{name:"rect",type:"element",attributes:{class:"pcb-component",x:(-l/2).toString(),y:(-u/2).toString(),width:l.toString(),height:u.toString(),fill:e.colorMap.debugComponent.fill??"transparent",stroke:e.colorMap.debugComponent.stroke??"transparent"}}],value:""}]}function tF(i){const e=i.find(t=>t.type==="project_software_metadata"||t.type==="source_project_metadata");return e==null?void 0:e.software_used_string}var KDn={version:"0.0.173"},nF=KDn.version,ypt=["pcb_trace_error","pcb_plated_hole","pcb_fabrication_note_text","pcb_fabrication_note_path","pcb_silkscreen_text","pcb_silkscreen_path","pcb_via","pcb_cutout","pcb_smtpad","pcb_trace","pcb_component","pcb_board"];function vpt(i,e){var ht,Ee,Oe,Ve,ft,xt,At,$e;const t=(e==null?void 0:e.drawPaddingOutsideBoard)??!0,n=e==null?void 0:e.layer,r=e==null?void 0:e.colorOverrides,o={copper:{top:((ht=r==null?void 0:r.copper)==null?void 0:ht.top)??kC.copper.top,bottom:((Ee=r==null?void 0:r.copper)==null?void 0:Ee.bottom)??kC.copper.bottom},drill:(r==null?void 0:r.drill)??kC.drill,silkscreen:{top:((Oe=r==null?void 0:r.silkscreen)==null?void 0:Oe.top)??kC.silkscreen.top,bottom:((Ve=r==null?void 0:r.silkscreen)==null?void 0:Ve.bottom)??kC.silkscreen.bottom},boardOutline:(r==null?void 0:r.boardOutline)??kC.boardOutline,soldermask:{top:((ft=r==null?void 0:r.soldermask)==null?void 0:ft.top)??kC.soldermask.top,bottom:((xt=r==null?void 0:r.soldermask)==null?void 0:xt.bottom)??kC.soldermask.bottom},debugComponent:{fill:((At=r==null?void 0:r.debugComponent)==null?void 0:At.fill)??kC.debugComponent.fill,stroke:(($e=r==null?void 0:r.debugComponent)==null?void 0:$e.stroke)??kC.debugComponent.stroke}};let a=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,d=Number.POSITIVE_INFINITY,h=Number.NEGATIVE_INFINITY,p=Number.NEGATIVE_INFINITY;for(const Qt of i)if(Qt.type==="pcb_board")Qt.outline&&Array.isArray(Qt.outline)&&Qt.outline.length>=3?(Ke(Qt.outline),et(Qt.outline)):"center"in Qt&&"width"in Qt&&"height"in Qt&&(be(Qt.center,Qt.width,Qt.height),Pe(Qt.center,Qt.width,Qt.height));else if("x"in Qt&&"y"in Qt)be({x:Qt.x,y:Qt.y},0,0);else if(Qt.type==="pcb_smtpad"){const Bt=Qt;Bt.shape==="rect"||Bt.shape==="rotated_rect"||Bt.shape==="pill"?be({x:Bt.x,y:Bt.y},Bt.width,Bt.height):Bt.shape==="circle"?be({x:Bt.x,y:Bt.y},Bt.radius*2,Bt.radius*2):Bt.shape==="polygon"&<(Bt.points)}else"route"in Qt?lt(Qt.route):(Qt.type==="pcb_silkscreen_text"||Qt.type==="pcb_silkscreen_rect"||Qt.type==="pcb_silkscreen_circle"||Qt.type==="pcb_silkscreen_line")&&Mt(Qt);const A=t?1:0,m=t||!isFinite(u)?a:u,_=t||!isFinite(d)?s:d,y=t||!isFinite(h)?c:h,v=t||!isFinite(p)?l:p,I=y-m+2*A,S=v-_+2*A;let U=(e==null?void 0:e.width)??800,N=(e==null?void 0:e.height)??600;if(e!=null&&e.matchBoardAspectRatio){const Qt=h-u,Bt=p-d;if(Qt>0&&Bt>0){const bt=Qt/Bt;e!=null&&e.width&&!(e!=null&&e.height)?N=e.width/bt:e!=null&&e.height&&!(e!=null&&e.width)?U=e.height*bt:N=U/bt}}const k=[];for(const Qt of i)"route"in Qt&&Qt.route!==void 0&&k.push(Qt.route);const B=U/I,P=N/S,R=Math.min(B,P),W=(U-I*R)/2,z=(N-S*R)/2,q=ph(ip(W-m*R+A*R,N-z+_*R-A*R),wb(R,-R)),re={transform:q,layer:n,shouldDrawErrors:e==null?void 0:e.shouldDrawErrors,drawPaddingOutsideBoard:t,colorMap:o};function ce(Qt){if(Qt.type==="pcb_smtpad")return Qt.layer==="top"||Qt.layer==="bottom"?Qt.layer:void 0;if(Qt.type==="pcb_trace")for(const Bt of Qt.route??[]){const bt="layer"in Bt&&Bt.layer||"from_layer"in Bt&&Bt.from_layer||"to_layer"in Bt&&Bt.to_layer||void 0;if(bt==="top"||bt==="bottom")return bt}}function oe(Qt){return Qt.type==="pcb_trace"||Qt.type==="pcb_smtpad"}let ye=i.sort((Qt,Bt)=>{const bt=ce(Qt),Yt=ce(Bt);if(oe(Qt)&&oe(Bt)&&bt!==Yt){if(bt==="top")return 1;if(Yt==="top"||bt==="bottom")return-1;if(Yt==="bottom")return 1}return(ypt.indexOf(Bt.type)??9999)-(ypt.indexOf(Qt.type)??9999)}).flatMap(Qt=>XDn({elm:Qt,circuitJson:i,ctx:re}));for(const Qt of i)if("stroke_width"in Qt){String(R*Qt.stroke_width);break}if(e!=null&&e.shouldDrawRatsNest){const Qt=YDn(i,re);ye=ye.concat(Qt)}const fe=[{name:"style",type:"element",value:"",attributes:{},children:[{type:"text",value:"",name:"",attributes:{},children:[]}]},{name:"rect",type:"element",value:"",attributes:{class:"boundary",x:"0",y:"0",fill:(e==null?void 0:e.backgroundColor)??"#000",width:U.toString(),height:N.toString()},children:[]}];t&&fe.push(WDn(q,a,s,c,l)),fe.push(...ye);const we=tF(i),Be=nF,Se={name:"svg",type:"element",attributes:{xmlns:"http://www.w3.org/2000/svg",width:U.toString(),height:N.toString(),...we&&{"data-software-used-string":we},...(e==null?void 0:e.includeVersion)&&{"data-circuit-to-svg-version":Be}},value:"",children:fe.filter(Qt=>Qt!==null)};try{return mY(Se)}catch(Qt){throw console.error("Error stringifying SVG object:",Qt),Qt}function be(Qt,Bt,bt){const Yt=Bt/2,an=bt/2;a=Math.min(a,Qt.x-Yt),s=Math.min(s,Qt.y-an),c=Math.max(c,Qt.x+Yt),l=Math.max(l,Qt.y+an)}function Pe(Qt,Bt,bt){const Yt=Bt/2,an=bt/2;u=Math.min(u,Qt.x-Yt),d=Math.min(d,Qt.y-an),h=Math.max(h,Qt.x+Yt),p=Math.max(p,Qt.y+an)}function Ke(Qt){for(const Bt of Qt)a=Math.min(a,Bt.x),s=Math.min(s,Bt.y),c=Math.max(c,Bt.x),l=Math.max(l,Bt.y)}function et(Qt){for(const Bt of Qt)u=Math.min(u,Bt.x),d=Math.min(d,Bt.y),h=Math.max(h,Bt.x),p=Math.max(p,Bt.y)}function lt(Qt){for(const Bt of Qt)a=Math.min(a,Bt.x),s=Math.min(s,Bt.y),c=Math.max(c,Bt.x),l=Math.max(l,Bt.y)}function Mt(Qt){if(Qt.type==="pcb_silkscreen_text")be(Qt.anchor_position,0,0);else if(Qt.type==="pcb_silkscreen_path")lt(Qt.route);else if(Qt.type==="pcb_silkscreen_rect")be(Qt.center,Qt.width,Qt.height);else if(Qt.type==="pcb_silkscreen_circle")be(Qt.center,Qt.radius*2,Qt.radius*2);else if(Qt.type==="pcb_silkscreen_line")be({x:Qt.x1,y:Qt.y1},0,0),be({x:Qt.x2,y:Qt.y2},0,0);else if(Qt.type==="pcb_cutout"){const Bt=Qt;Bt.shape==="rect"?be(Bt.center,Bt.width,Bt.height):Bt.shape==="circle"?be(Bt.center,Bt.radius*2,Bt.radius*2):Bt.shape==="polygon"&<(Bt.points)}}}function XDn({elm:i,circuitJson:e,ctx:t}){switch(i.type){case"pcb_trace_error":return wDn(i,e,t).filter(Boolean);case"pcb_component":return jDn(i,t).filter(Boolean);case"pcb_trace":return FDn(i,t);case"pcb_plated_hole":return RDn(i,t).filter(Boolean);case"pcb_hole":return GDn(i,t);case"pcb_smtpad":return UDn(i,t);case"pcb_silkscreen_text":return DDn(i,t);case"pcb_silkscreen_rect":return NDn(i,t);case"pcb_silkscreen_circle":return TDn(i,t);case"pcb_silkscreen_line":return kDn(i,t);case"pcb_fabrication_note_path":return BDn(i,t);case"pcb_fabrication_note_text":return MDn(i,t);case"pcb_silkscreen_path":return QDn(i,t);case"pcb_board":return t.drawPaddingOutsideBoard?_pt(i,t):[];case"pcb_via":return ODn(i,t);case"pcb_cutout":return VDn(i,t);default:return[]}}function WDn(i,e,t,n,r){const[o,a]=gr(i,[e,t]),[s,c]=gr(i,[n,r]),l=Math.abs(s-o),u=Math.abs(c-a),d=Math.min(o,s),h=Math.min(a,c);return{name:"rect",type:"element",value:"",children:[],attributes:{class:"pcb-boundary",fill:"none",stroke:"#fff","stroke-width":"0.3",x:d.toString(),y:h.toString(),width:l.toString(),height:u.toString()}}}var qDn=vpt,xq={fill:"none",stroke:"rgb(0,0,0)",strokeOpacity:"0.8",strokeWidthFactor:.2};function JDn(i,e,t={}){const{width:n,height:r,center:o,outline:a}=i;let s;if(a&&Array.isArray(a)&&a.length>=3)s=a.map((c,l)=>{const[u,d]=gr(e,[c.x,c.y]);return l===0?`M ${u} ${d}`:`L ${u} ${d}`}).join(" ");else{const c=n/2,l=r/2,u=gr(e,[o.x-c,o.y-l]),d=gr(e,[o.x+c,o.y-l]),h=gr(e,[o.x+c,o.y+l]),p=gr(e,[o.x-c,o.y+l]);s=`M ${u[0]} ${u[1]} L ${d[0]} ${d[1]} L ${h[0]} ${h[1]} L ${p[0]} ${p[1]}`}return s+=" Z",[{name:"path",type:"element",value:"",children:[],attributes:{class:"pcb-board",d:s,fill:t.fill??xq.fill,stroke:t.stroke??xq.stroke,"stroke-opacity":t.strokeOpacity??xq.strokeOpacity,"stroke-width":((t.strokeWidthFactor??xq.strokeWidthFactor)*Math.abs(e.a)).toString()}}]}var $Dn={pin_number:.15,negated_pin_number:.15*.8,reference_designator:.18,manufacturer_number:.18,net_label:.18,error:.05},mD=(i,e)=>e??$Dn[i],uS=(i,e,t)=>Math.abs(i.a)*mD(e,t);function ZDn(i,e){const{elm:t,portPosition:n,name:r,arePinsInterchangeable:o}=i,{transform:a}=e,{center:s,width:c,height:l,rotation:u=0,layer:d="top"}=t;if(!s||typeof c!="number"||typeof l!="number")return null;const[h,p]=gr(a,[s.x,s.y]),[A,m]=gr(a,[n.x,n.y]),_=c*Math.abs(a.a),y=l*Math.abs(a.d),v=m>p,I=A<h,S=[eNn(_,y,u,d),tNn(_,y,r??"")];return o||S.push(nNn(_,y,u,d,v,I)),{name:"g",type:"element",value:"",attributes:{transform:`translate(${h}, ${p}) scale(1, -1)`},children:S}}function eNn(i,e,t,n){const r=i/2,o=e/2;return{name:"path",type:"element",attributes:{class:"assembly-component",d:iNn(r,o,t),"stroke-width":.8.toFixed(2),transform:`rotate(${-t})`,"stroke-dasharray":n==="bottom"?"2,2":""},value:"",children:[]}}function tNn(i,e,t,n){const r=Math.min(i,e),c=Math.min(58,Math.max(3,r*.8)),l=e>i;return{name:"text",type:"element",attributes:{x:"0",y:"0",class:"assembly-component-label","text-anchor":"middle",dy:".10em",style:"pointer-events: none","font-size":`${c.toFixed(1)}px`,transform:l?"rotate(90) scale(1, -1)":"scale(1, -1)"},children:[{type:"text",value:t||"",name:"",attributes:{},children:[]}],value:""}}function nNn(i,e,t,n,r,o){const a=i/2,s=e/2,c=Math.min(a,s)*.5;let l;return r&&o?l=[[-a,-s],[-a+c,-s],[-a,-s+c]]:r&&!o?l=[[a,-s],[a-c,-s],[a,-s+c]]:!r&&o?l=[[-a,s],[-a+c,s],[-a,s-c]]:l=[[a,s],[a-c,s],[a,s-c]],{name:"polygon",type:"element",attributes:{class:"assembly-pin1-indicator",points:l.map(d=>d.join(",")).join(" "),fill:"#333",stroke:"none",transform:`rotate(${-t})`},value:"",children:[]}}function iNn(i,e,t){const n=(s,c,l)=>{const u=Math.PI/180*l,d=Math.cos(u),h=Math.sin(u);return[s*d-c*h,s*h+c*d]};return`${[[-i,-e],[i,-e],[i,e],[-i,e]].map(([s,c])=>n(s,c,t)).map(([s,c],l)=>l===0?`M${s},${c}`:`L${s},${c}`).join(" ")} Z`}var Fbe="rgb(190, 190, 190)";function rNn(i,e){const{transform:t}=e,[n,r]=gr(t,[i.x,i.y]);if(i.hole_shape==="circle"||i.hole_shape==="square"){const o=i.hole_diameter*Math.abs(t.a),a=o/2;return i.hole_shape==="circle"?[{name:"circle",type:"element",attributes:{class:"assembly-hole",cx:n.toString(),cy:r.toString(),r:a.toString(),fill:Fbe},children:[],value:""}]:[{name:"rect",type:"element",attributes:{class:"assembly-hole",x:(n-a).toString(),y:(r-a).toString(),width:o.toString(),height:o.toString(),fill:Fbe},children:[],value:""}]}if(i.hole_shape==="oval"){const o=i.hole_width*Math.abs(t.a),a=i.hole_height*Math.abs(t.a),s=o/2,c=a/2;return[{name:"ellipse",type:"element",attributes:{class:"assembly-hole",cx:n.toString(),cy:r.toString(),rx:s.toString(),ry:c.toString(),fill:Fbe},children:[],value:""}]}return[]}var iF="rgb(210, 210, 210)",rF="rgb(190, 190, 190)";function oNn(i,e){const{transform:t}=e,[n,r]=gr(t,[i.x,i.y]);if(i.shape==="pill"){const o=i.outer_width*Math.abs(t.a),a=i.outer_height*Math.abs(t.a),s=i.hole_width*Math.abs(t.a),c=i.hole_height*Math.abs(t.a),l=o/2,u=a-o,d=s/2;return[{name:"g",type:"element",children:[{name:"path",type:"element",attributes:{class:"assembly-hole-outer",fill:iF,d:`M${n-l},${r-u/2} v${u} a${l},${l} 0 0 0 ${o},0 v-${u} a${l},${l} 0 0 0 -${o},0 z`},value:"",children:[]},{name:"path",type:"element",attributes:{class:"assembly-hole-inner",fill:rF,d:`M${n-d},${r-(c-s)/2} v${c-s} a${d},${d} 0 0 0 ${s},0 v-${c-s} a${d},${d} 0 0 0 -${s},0 z`},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="circle"){const o=i.outer_diameter*Math.abs(t.a),a=i.outer_diameter*Math.abs(t.a),s=i.hole_diameter*Math.abs(t.a),c=i.hole_diameter*Math.abs(t.a),l=Math.min(o,a)/2,u=Math.min(s,c)/2;return[{name:"g",type:"element",children:[{name:"circle",type:"element",attributes:{class:"assembly-hole-outer",fill:iF,cx:n.toString(),cy:r.toString(),r:l.toString()},value:"",children:[]},{name:"circle",type:"element",attributes:{class:"assembly-hole-inner",fill:rF,cx:n.toString(),cy:r.toString(),r:u.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="circular_hole_with_rect_pad"){const o=i.hole_diameter*Math.abs(t.a),a=i.rect_pad_width*Math.abs(t.a),s=i.rect_pad_height*Math.abs(t.a),c=o/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"assembly-hole-outer-pad",fill:iF,x:(n-a/2).toString(),y:(r-s/2).toString(),width:a.toString(),height:s.toString()},value:"",children:[]},{name:"circle",type:"element",attributes:{class:"assembly-hole-inner",fill:rF,cx:n.toString(),cy:r.toString(),r:c.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="pill_hole_with_rect_pad"){const o=i.rect_pad_width*Math.abs(t.a),a=i.rect_pad_height*Math.abs(t.a),s=i.hole_height*Math.abs(t.a),c=i.hole_width*Math.abs(t.a),l=Math.min(s,c)/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"assembly-hole-outer-pad",fill:iF,x:(n-o/2).toString(),y:(r-a/2).toString(),width:o.toString(),height:a.toString()},value:"",children:[]},{name:"rect",type:"element",attributes:{class:"assembly-hole-inner",fill:rF,x:(n-c/2).toString(),y:(r-s/2).toString(),width:c.toString(),height:s.toString(),rx:l.toString(),ry:l.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="rotated_pill_hole_with_rect_pad"){const o=i.rect_pad_width*Math.abs(t.a),a=i.rect_pad_height*Math.abs(t.a),s=i.hole_height*Math.abs(t.a),c=i.hole_width*Math.abs(t.a),l=Math.min(s,c)/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"assembly-hole-outer-pad",fill:iF,x:(-o/2).toString(),y:(-a/2).toString(),width:o.toString(),height:a.toString(),transform:`translate(${n} ${r}) rotate(${-i.rect_ccw_rotation})`},value:"",children:[]},{name:"rect",type:"element",attributes:{class:"assembly-hole-inner",fill:rF,x:(-c/2).toString(),y:(-s/2).toString(),width:c.toString(),height:s.toString(),rx:l.toString(),ry:l.toString(),transform:`translate(${n} ${r}) rotate(${-i.hole_ccw_rotation})`},value:"",children:[]}],value:"",attributes:{}}]}return[]}var oF="rgb(210, 210, 210)";function aNn(i,e){const{transform:t}=e;if(i.shape==="rect"||i.shape==="rotated_rect"){const n=i.width*Math.abs(t.a),r=i.height*Math.abs(t.d),[o,a]=gr(t,[i.x,i.y]);return i.shape==="rotated_rect"&&i.ccw_rotation?[{name:"rect",type:"element",attributes:{class:"assembly-pad",fill:oF,x:(-n/2).toString(),y:(-r/2).toString(),width:n.toString(),height:r.toString(),transform:`translate(${o} ${a}) rotate(${-i.ccw_rotation})`,"data-layer":i.layer},value:"",children:[]}]:[{name:"rect",type:"element",attributes:{class:"assembly-pad",fill:oF,x:(o-n/2).toString(),y:(a-r/2).toString(),width:n.toString(),height:r.toString(),"data-layer":i.layer},value:"",children:[]}]}if(i.shape==="pill"){const n=i.width*Math.abs(t.a),r=i.height*Math.abs(t.d),o=i.radius*Math.abs(t.a),[a,s]=gr(t,[i.x,i.y]);return[{name:"rect",type:"element",attributes:{class:"assembly-pad",fill:oF,x:(a-n/2).toString(),y:(s-r/2).toString(),width:n.toString(),height:r.toString(),rx:o.toString(),ry:o.toString(),"data-layer":i.layer},value:"",children:[]}]}if(i.shape==="circle"){const n=i.radius*Math.abs(t.a),[r,o]=gr(t,[i.x,i.y]);return[{name:"circle",type:"element",attributes:{class:"assembly-pad",fill:oF,cx:r.toString(),cy:o.toString(),r:n.toString(),"data-layer":i.layer},value:"",children:[]}]}if(i.shape==="polygon"){const n=(i.points??[]).map(r=>gr(t,[r.x,r.y]));return[{name:"polygon",type:"element",attributes:{class:"assembly-pad",fill:oF,points:n.map(r=>r.join(",")).join(" "),"data-layer":i.layer},value:"",children:[]}]}return[]}var Ipt=["pcb_component","pcb_smtpad","pcb_hole","pcb_plated_hole","pcb_board"];function xpt(i,e){let t=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY;for(const N of i)if(N.type==="pcb_board"){const k=N.center,B=N.width||0,P=N.height||0;t=Math.min(t,k.x-B/2),n=Math.min(n,k.y-P/2),r=Math.max(r,k.x+B/2),o=Math.max(o,k.y+P/2)}const a=1,s=r-t+2*a,c=o-n+2*a,l=(e==null?void 0:e.width)??800,u=(e==null?void 0:e.height)??600,d=l/s,h=u/c,p=Math.min(d,h),A=(l-s*p)/2,m=(u-c*p)/2,_=ph(ip(A-t*p+a*p,u-m+n*p-a*p),wb(p,-p)),y={transform:_},v=i.sort((N,k)=>(Ipt.indexOf(k.type)??9999)-(Ipt.indexOf(N.type)??9999)).flatMap(N=>sNn(N,y,i)),I=tF(i),S=nF,U={name:"svg",type:"element",attributes:{xmlns:"http://www.w3.org/2000/svg",width:l.toString(),height:u.toString(),...I&&{"data-software-used-string":I},...(e==null?void 0:e.includeVersion)&&{"data-circuit-to-svg-version":S}},value:"",children:[{name:"style",type:"element",children:[{type:"text",value:`
|
|
13377
|
+
`),U=S.length===1?[{type:"text",value:a,name:"",attributes:{},children:[]}]:S.map((k,B)=>({type:"element",name:"tspan",value:"",attributes:{x:"0",...B>0?{dy:p.toString()}:{}},children:[{type:"text",value:k,name:"",attributes:{},children:[]}]}));return[{name:"text",type:"element",attributes:{x:"0",y:"0",dx:_.toString(),dy:y.toString(),fill:I,"font-family":"Arial, sans-serif","font-size":p.toString(),"text-anchor":A,"dominant-baseline":m,transform:iB(v),class:`pcb-silkscreen-text pcb-silkscreen-${c}`,"data-pcb-silkscreen-text-id":i.pcb_component_id,stroke:"none"},children:U,value:""}]}function NDn(i,e){const{transform:t,layer:n,colorMap:r}=e,{center:o,width:a,height:s,layer:c="top",pcb_silkscreen_rect_id:l,stroke_width:u,is_filled:d,has_stroke:h,is_stroke_dashed:p}=i;if(n&&c!==n)return[];if(!o||typeof o.x!="number"||typeof o.y!="number"||typeof a!="number"||typeof s!="number")return console.error("Invalid rectangle data:",{center:o,width:a,height:s}),[];const[A,m]=gr(t,[o.x,o.y]),_=a*Math.abs(t.a),y=s*Math.abs(t.d),v=u*Math.abs(t.a),I=c==="bottom"?r.silkscreen.bottom:r.silkscreen.top,S={x:(A-_/2).toString(),y:(m-y/2).toString(),width:_.toString(),height:y.toString(),class:`pcb-silkscreen-rect pcb-silkscreen-${c}`,"data-pcb-silkscreen-rect-id":l};S.fill=d?I:"none";let U;if(h===void 0?U=v>0:U=h,U){if(S.stroke=I,S["stroke-width"]=v.toString(),p){const k=.1*Math.abs(t.a),B=.05*Math.abs(t.a);S["stroke-dasharray"]=`${k} ${B}`}}else S.stroke="none";return[{name:"rect",type:"element",attributes:S,value:"",children:[]}]}function TDn(i,e){const{transform:t,layer:n,colorMap:r}=e,{center:o,radius:a,layer:s="top",pcb_silkscreen_circle_id:c,stroke_width:l=1}=i;if(n&&s!==n)return[];if(!o||typeof o.x!="number"||typeof o.y!="number"||typeof a!="number")return console.error("Invalid PCB Silkscreen Circle data:",{center:o,radius:a}),[];const[u,d]=gr(t,[o.x,o.y]),h=a*Math.abs(t.a),p=l*Math.abs(t.a),A=s==="bottom"?r.silkscreen.bottom:r.silkscreen.top;return[{name:"circle",type:"element",attributes:{cx:u.toString(),cy:d.toString(),r:h.toString(),class:`pcb-silkscreen-circle pcb-silkscreen-${s}`,stroke:A,"stroke-width":p.toString(),"data-pcb-silkscreen-circle-id":c},value:"",children:[]}]}function kDn(i,e){const{transform:t,layer:n,colorMap:r}=e,{x1:o,y1:a,x2:s,y2:c,stroke_width:l,layer:u="top",pcb_silkscreen_line_id:d}=i;if(n&&u!==n)return[];if(typeof o!="number"||typeof a!="number"||typeof s!="number"||typeof c!="number")return console.error("Invalid coordinates:",{x1:o,y1:a,x2:s,y2:c}),[];const[h,p]=gr(t,[o,a]),[A,m]=gr(t,[s,c]),_=l*Math.abs(t.a),y=u==="bottom"?r.silkscreen.bottom:r.silkscreen.top;return[{name:"line",type:"element",attributes:{x1:h.toString(),y1:p.toString(),x2:A.toString(),y2:m.toString(),stroke:y,"stroke-width":_.toString(),class:`pcb-silkscreen-line pcb-silkscreen-${u}`,"data-pcb-silkscreen-line-id":d},value:"",children:[]}]}function PDn(i){const e=[];for(let t=0;t<i.length-1;t++)e.push([i[t],i[t+1]]);return e}var kC={copper:{top:"rgb(200, 52, 52)",bottom:"rgb(77, 127, 196)"},soldermask:{top:"rgb(200, 52, 52)",bottom:"rgb(77, 127, 196)"},drill:"#FF26E2",silkscreen:{top:"#f2eda1",bottom:"#5da9e9"},boardOutline:"rgba(255, 255, 255, 0.5)",debugComponent:{fill:null,stroke:null}};kC.drill,kC.silkscreen.top,kC.silkscreen.bottom,kC.copper.top,kC.copper.bottom;function gD(i,e=kC){return e.copper[i]??"white"}var LDn={bottom:"rgb(105, 105, 105)",top:"rgb(105, 105, 105)"};function Iq(i){return LDn[i]??"rgb(105, 105, 105)"}function FDn(i,e){const{transform:t,layer:n,colorMap:r}=e;if(!i.route||!Array.isArray(i.route)||i.route.length<2)return[];const o=PDn(i.route),a=[];for(const[s,c]of o){const l=gr(t,[s.x,s.y]),u=gr(t,[c.x,c.y]),d="layer"in s?s.layer:"layer"in c?c.layer:null;if(!d||n&&d!==n)continue;const h=r.soldermask[d]??gD(d,r),p="width"in s?s.width:"width"in c?c.width:null,A={name:"path",type:"element",value:"",children:[],attributes:{class:"pcb-trace",stroke:h,fill:"none",d:`M ${l[0]} ${l[1]} L ${u[0]} ${u[1]}`,"stroke-width":p?(p*Math.abs(t.a)).toString():"0.3","stroke-linecap":"round","stroke-linejoin":"round","shape-rendering":"crispEdges","data-layer":d}};a.push(A)}return a.sort((s,c)=>{const l=s.attributes["data-layer"],u=c.attributes["data-layer"];return l==="bottom"&&u!=="bottom"?-1:l==="top"&&u!=="top"?1:0}),a}function UDn(i,e){const{transform:t,layer:n,colorMap:r}=e;if(n&&i.layer!==n)return[];if(i.shape==="rect"||i.shape==="rotated_rect"){const o=i.width*Math.abs(t.a),a=i.height*Math.abs(t.d),[s,c]=gr(t,[i.x,i.y]);return i.shape==="rotated_rect"&&i.ccw_rotation?[{name:"rect",type:"element",attributes:{class:"pcb-pad",fill:gD(i.layer,r),x:(-o/2).toString(),y:(-a/2).toString(),width:o.toString(),height:a.toString(),transform:`translate(${s} ${c}) rotate(${-i.ccw_rotation})`,"data-layer":i.layer}}]:[{name:"rect",type:"element",attributes:{class:"pcb-pad",fill:gD(i.layer,r),x:(s-o/2).toString(),y:(c-a/2).toString(),width:o.toString(),height:a.toString(),"data-layer":i.layer}}]}if(i.shape==="pill"){const o=i.width*Math.abs(t.a),a=i.height*Math.abs(t.d),s=i.radius*Math.abs(t.a),[c,l]=gr(t,[i.x,i.y]);return[{name:"rect",type:"element",attributes:{class:"pcb-pad",fill:gD(i.layer,r),x:(c-o/2).toString(),y:(l-a/2).toString(),width:o.toString(),height:a.toString(),rx:s.toString(),ry:s.toString(),"data-layer":i.layer}}]}if(i.shape==="circle"){const o=i.radius*Math.abs(t.a),[a,s]=gr(t,[i.x,i.y]);return[{name:"circle",type:"element",attributes:{class:"pcb-pad",fill:gD(i.layer,r),cx:a.toString(),cy:s.toString(),r:o.toString(),"data-layer":i.layer}}]}if(i.shape==="polygon"){const o=(i.points??[]).map(a=>gr(t,[a.x,a.y]));return[{name:"polygon",type:"element",attributes:{class:"pcb-pad",fill:gD(i.layer),points:o.map(a=>a.join(",")).join(" "),"data-layer":i.layer}}]}return[]}function _pt(i,e){const{transform:t,colorMap:n}=e,{width:r,height:o,center:a,outline:s}=i;let c;if(s&&Array.isArray(s)&&s.length>=3)c=s.map((l,u)=>{const[d,h]=gr(t,[l.x,l.y]);return u===0?`M ${d} ${h}`:`L ${d} ${h}`}).join(" ");else{const l=r/2,u=o/2,d=gr(t,[a.x-l,a.y-u]),h=gr(t,[a.x+l,a.y-u]),p=gr(t,[a.x+l,a.y+u]),A=gr(t,[a.x-l,a.y+u]);c=`M ${d[0]} ${d[1]} L ${h[0]} ${h[1]} L ${p[0]} ${p[1]} L ${A[0]} ${A[1]}`}return c+=" Z",[{name:"path",type:"element",value:"",children:[],attributes:{class:"pcb-board",d:c,fill:"none",stroke:n.boardOutline,"stroke-width":(.1*Math.abs(t.a)).toString()}}]}function ODn(i,e){const{transform:t,colorMap:n}=e,[r,o]=gr(t,[i.x,i.y]),a=i.outer_diameter*Math.abs(t.a),s=i.outer_diameter*Math.abs(t.a),c=i.hole_diameter*Math.abs(t.a),l=i.hole_diameter*Math.abs(t.a),u=Math.min(a,s)/2,d=Math.min(c,l)/2;return{name:"g",type:"element",children:[{name:"circle",type:"element",attributes:{class:"pcb-hole-outer",fill:n.copper.top,cx:r.toString(),cy:o.toString(),r:u.toString()}},{name:"circle",type:"element",attributes:{class:"pcb-hole-inner",fill:n.drill,cx:r.toString(),cy:o.toString(),r:d.toString()}}]}}function GDn(i,e){const{transform:t,colorMap:n}=e,[r,o]=gr(t,[i.x,i.y]);if(i.hole_shape==="circle"||i.hole_shape==="square"){const a=i.hole_diameter*Math.abs(t.a),s=a/2;return i.hole_shape==="circle"?[{name:"circle",type:"element",attributes:{class:"pcb-hole",cx:r.toString(),cy:o.toString(),r:s.toString(),fill:n.drill},children:[],value:""}]:[{name:"rect",type:"element",attributes:{class:"pcb-hole",x:(r-s).toString(),y:(o-s).toString(),width:a.toString(),height:a.toString(),fill:n.drill},children:[],value:""}]}if(i.hole_shape==="oval"){const a=i.hole_width*Math.abs(t.a),s=i.hole_height*Math.abs(t.a),c=a/2,l=s/2;return[{name:"ellipse",type:"element",attributes:{class:"pcb-hole",cx:r.toString(),cy:o.toString(),rx:c.toString(),ry:l.toString(),fill:n.drill},children:[],value:""}]}return[]}var zDn=(i,e)=>{const t=Zg(e).pcb_smtpad.get(i);if(t&&"x"in t&&"y"in t)return{x:t.x,y:t.y};const n=Zg(e).pcb_plated_hole.get(i);return n&&"x"in n&&"y"in n?{x:n.x,y:n.y}:null},HDn=(i,e,t,n)=>{const r=t.getIdsConnectedToNet(e);let o=null,a=1/0;for(const s of r){const c=zDn(s,n);if(c){const l=i.x-c.x,u=i.y-c.y,d=Math.sqrt(l*l+u*u);d>0&&d<a&&(a=d,o=c)}}return o};function YDn(i,e){const{transform:t}=e,n=PH(i),r=i.filter(c=>c.type==="pcb_port"),o=i.filter(c=>c.type==="source_trace"),a=[];r.forEach((c,l)=>{const u=c.pcb_port_id;if(!u)return;const d=n.getNetConnectedToId(u);if(!d)return;let h=!1;const p=Zg(i).source_port.getWhere({pcb_port_id:u});if(p&&p.source_port_id){const _=p.source_port_id;for(const y of o)if(Array.isArray(y.connected_source_port_ids)&&y.connected_source_port_ids.includes(_)&&Array.isArray(y.connected_source_net_ids)&&y.connected_source_net_ids.length>0){h=!0;break}}const A={x:c.x,y:c.y},m=HDn(A,d,n,i);m&&a.push({key:`${u}-${l}`,startPoint:A,endPoint:m,isInNet:h})});const s=[];for(const c of a){const l=gr(t,[c.startPoint.x,c.startPoint.y]),u=gr(t,[c.endPoint.x,c.endPoint.y]),d={x1:l[0].toString(),y1:l[1].toString(),x2:u[0].toString(),y2:u[1].toString(),stroke:"white","stroke-width":"1","stroke-dasharray":"6,6"};s.push({name:"line",type:"element",attributes:d,value:"",children:[]})}return s}function VDn(i,e){const{transform:t,colorMap:n}=e;if(i.shape==="rect"){const r=i,[o,a]=gr(t,[r.center.x,r.center.y]),s=r.width*Math.abs(t.a),c=r.height*Math.abs(t.d),l=-(r.rotation??0);return[{name:"rect",type:"element",attributes:{class:"pcb-cutout pcb-cutout-rect",x:(-s/2).toString(),y:(-c/2).toString(),width:s.toString(),height:c.toString(),fill:n.drill,transform:iB(ph(ip(o,a),S2(l*Math.PI/180)))},children:[],value:""}]}if(i.shape==="circle"){const r=i,[o,a]=gr(t,[r.center.x,r.center.y]),s=r.radius*Math.abs(t.a);return[{name:"circle",type:"element",attributes:{class:"pcb-cutout pcb-cutout-circle",cx:o.toString(),cy:a.toString(),r:s.toString(),fill:n.drill},children:[],value:""}]}if(i.shape==="polygon"){const r=i;return!r.points||r.points.length===0?[]:[{name:"polygon",type:"element",attributes:{class:"pcb-cutout pcb-cutout-polygon",points:r.points.map(s=>gr(t,[s.x,s.y])).map(s=>`${s[0]},${s[1]}`).join(" "),fill:n.drill},children:[],value:""}]}return[]}function jDn(i,e){var h,p;const{transform:t}=e,{center:n,width:r,height:o,rotation:a=0}=i,[s,c]=gr(t,[n.x,n.y]),l=r*Math.abs(t.a),u=o*Math.abs(t.d),d=`translate(${s}, ${c}) rotate(${-a}) scale(1, -1)`;return!((h=e.colorMap.debugComponent)!=null&&h.fill)&&!((p=e.colorMap.debugComponent)!=null&&p.stroke)?[]:[{name:"g",type:"element",attributes:{transform:d},children:[{name:"rect",type:"element",attributes:{class:"pcb-component",x:(-l/2).toString(),y:(-u/2).toString(),width:l.toString(),height:u.toString(),fill:e.colorMap.debugComponent.fill??"transparent",stroke:e.colorMap.debugComponent.stroke??"transparent"}}],value:""}]}function tF(i){const e=i.find(t=>t.type==="project_software_metadata"||t.type==="source_project_metadata");return e==null?void 0:e.software_used_string}var KDn={version:"0.0.174"},nF=KDn.version,ypt=["pcb_trace_error","pcb_plated_hole","pcb_fabrication_note_text","pcb_fabrication_note_path","pcb_silkscreen_text","pcb_silkscreen_path","pcb_via","pcb_cutout","pcb_smtpad","pcb_trace","pcb_component","pcb_board"];function vpt(i,e){var ht,Ee,Oe,Ve,ft,xt,At,$e;const t=(e==null?void 0:e.drawPaddingOutsideBoard)??!0,n=e==null?void 0:e.layer,r=e==null?void 0:e.colorOverrides,o={copper:{top:((ht=r==null?void 0:r.copper)==null?void 0:ht.top)??kC.copper.top,bottom:((Ee=r==null?void 0:r.copper)==null?void 0:Ee.bottom)??kC.copper.bottom},drill:(r==null?void 0:r.drill)??kC.drill,silkscreen:{top:((Oe=r==null?void 0:r.silkscreen)==null?void 0:Oe.top)??kC.silkscreen.top,bottom:((Ve=r==null?void 0:r.silkscreen)==null?void 0:Ve.bottom)??kC.silkscreen.bottom},boardOutline:(r==null?void 0:r.boardOutline)??kC.boardOutline,soldermask:{top:((ft=r==null?void 0:r.soldermask)==null?void 0:ft.top)??kC.soldermask.top,bottom:((xt=r==null?void 0:r.soldermask)==null?void 0:xt.bottom)??kC.soldermask.bottom},debugComponent:{fill:((At=r==null?void 0:r.debugComponent)==null?void 0:At.fill)??kC.debugComponent.fill,stroke:(($e=r==null?void 0:r.debugComponent)==null?void 0:$e.stroke)??kC.debugComponent.stroke}};let a=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,d=Number.POSITIVE_INFINITY,h=Number.NEGATIVE_INFINITY,p=Number.NEGATIVE_INFINITY;for(const Qt of i)if(Qt.type==="pcb_board")Qt.outline&&Array.isArray(Qt.outline)&&Qt.outline.length>=3?(Ke(Qt.outline),et(Qt.outline)):"center"in Qt&&"width"in Qt&&"height"in Qt&&(be(Qt.center,Qt.width,Qt.height),Pe(Qt.center,Qt.width,Qt.height));else if("x"in Qt&&"y"in Qt)be({x:Qt.x,y:Qt.y},0,0);else if(Qt.type==="pcb_smtpad"){const Bt=Qt;Bt.shape==="rect"||Bt.shape==="rotated_rect"||Bt.shape==="pill"?be({x:Bt.x,y:Bt.y},Bt.width,Bt.height):Bt.shape==="circle"?be({x:Bt.x,y:Bt.y},Bt.radius*2,Bt.radius*2):Bt.shape==="polygon"&<(Bt.points)}else"route"in Qt?lt(Qt.route):(Qt.type==="pcb_silkscreen_text"||Qt.type==="pcb_silkscreen_rect"||Qt.type==="pcb_silkscreen_circle"||Qt.type==="pcb_silkscreen_line")&&Mt(Qt);const A=t?1:0,m=t||!isFinite(u)?a:u,_=t||!isFinite(d)?s:d,y=t||!isFinite(h)?c:h,v=t||!isFinite(p)?l:p,I=y-m+2*A,S=v-_+2*A;let U=(e==null?void 0:e.width)??800,N=(e==null?void 0:e.height)??600;if(e!=null&&e.matchBoardAspectRatio){const Qt=h-u,Bt=p-d;if(Qt>0&&Bt>0){const bt=Qt/Bt;e!=null&&e.width&&!(e!=null&&e.height)?N=e.width/bt:e!=null&&e.height&&!(e!=null&&e.width)?U=e.height*bt:N=U/bt}}const k=[];for(const Qt of i)"route"in Qt&&Qt.route!==void 0&&k.push(Qt.route);const B=U/I,P=N/S,R=Math.min(B,P),W=(U-I*R)/2,z=(N-S*R)/2,q=ph(ip(W-m*R+A*R,N-z+_*R-A*R),wb(R,-R)),re={transform:q,layer:n,shouldDrawErrors:e==null?void 0:e.shouldDrawErrors,drawPaddingOutsideBoard:t,colorMap:o};function ce(Qt){if(Qt.type==="pcb_smtpad")return Qt.layer==="top"||Qt.layer==="bottom"?Qt.layer:void 0;if(Qt.type==="pcb_trace")for(const Bt of Qt.route??[]){const bt="layer"in Bt&&Bt.layer||"from_layer"in Bt&&Bt.from_layer||"to_layer"in Bt&&Bt.to_layer||void 0;if(bt==="top"||bt==="bottom")return bt}}function oe(Qt){return Qt.type==="pcb_trace"||Qt.type==="pcb_smtpad"}let ye=i.sort((Qt,Bt)=>{const bt=ce(Qt),Yt=ce(Bt);if(oe(Qt)&&oe(Bt)&&bt!==Yt){if(bt==="top")return 1;if(Yt==="top"||bt==="bottom")return-1;if(Yt==="bottom")return 1}return(ypt.indexOf(Bt.type)??9999)-(ypt.indexOf(Qt.type)??9999)}).flatMap(Qt=>XDn({elm:Qt,circuitJson:i,ctx:re}));for(const Qt of i)if("stroke_width"in Qt){String(R*Qt.stroke_width);break}if(e!=null&&e.shouldDrawRatsNest){const Qt=YDn(i,re);ye=ye.concat(Qt)}const fe=[{name:"style",type:"element",value:"",attributes:{},children:[{type:"text",value:"",name:"",attributes:{},children:[]}]},{name:"rect",type:"element",value:"",attributes:{class:"boundary",x:"0",y:"0",fill:(e==null?void 0:e.backgroundColor)??"#000",width:U.toString(),height:N.toString()},children:[]}];t&&fe.push(WDn(q,a,s,c,l)),fe.push(...ye);const we=tF(i),Be=nF,Se={name:"svg",type:"element",attributes:{xmlns:"http://www.w3.org/2000/svg",width:U.toString(),height:N.toString(),...we&&{"data-software-used-string":we},...(e==null?void 0:e.includeVersion)&&{"data-circuit-to-svg-version":Be}},value:"",children:fe.filter(Qt=>Qt!==null)};try{return mY(Se)}catch(Qt){throw console.error("Error stringifying SVG object:",Qt),Qt}function be(Qt,Bt,bt){const Yt=Bt/2,an=bt/2;a=Math.min(a,Qt.x-Yt),s=Math.min(s,Qt.y-an),c=Math.max(c,Qt.x+Yt),l=Math.max(l,Qt.y+an)}function Pe(Qt,Bt,bt){const Yt=Bt/2,an=bt/2;u=Math.min(u,Qt.x-Yt),d=Math.min(d,Qt.y-an),h=Math.max(h,Qt.x+Yt),p=Math.max(p,Qt.y+an)}function Ke(Qt){for(const Bt of Qt)a=Math.min(a,Bt.x),s=Math.min(s,Bt.y),c=Math.max(c,Bt.x),l=Math.max(l,Bt.y)}function et(Qt){for(const Bt of Qt)u=Math.min(u,Bt.x),d=Math.min(d,Bt.y),h=Math.max(h,Bt.x),p=Math.max(p,Bt.y)}function lt(Qt){for(const Bt of Qt)a=Math.min(a,Bt.x),s=Math.min(s,Bt.y),c=Math.max(c,Bt.x),l=Math.max(l,Bt.y)}function Mt(Qt){if(Qt.type==="pcb_silkscreen_text")be(Qt.anchor_position,0,0);else if(Qt.type==="pcb_silkscreen_path")lt(Qt.route);else if(Qt.type==="pcb_silkscreen_rect")be(Qt.center,Qt.width,Qt.height);else if(Qt.type==="pcb_silkscreen_circle")be(Qt.center,Qt.radius*2,Qt.radius*2);else if(Qt.type==="pcb_silkscreen_line")be({x:Qt.x1,y:Qt.y1},0,0),be({x:Qt.x2,y:Qt.y2},0,0);else if(Qt.type==="pcb_cutout"){const Bt=Qt;Bt.shape==="rect"?be(Bt.center,Bt.width,Bt.height):Bt.shape==="circle"?be(Bt.center,Bt.radius*2,Bt.radius*2):Bt.shape==="polygon"&<(Bt.points)}}}function XDn({elm:i,circuitJson:e,ctx:t}){switch(i.type){case"pcb_trace_error":return wDn(i,e,t).filter(Boolean);case"pcb_component":return jDn(i,t).filter(Boolean);case"pcb_trace":return FDn(i,t);case"pcb_plated_hole":return RDn(i,t).filter(Boolean);case"pcb_hole":return GDn(i,t);case"pcb_smtpad":return UDn(i,t);case"pcb_silkscreen_text":return DDn(i,t);case"pcb_silkscreen_rect":return NDn(i,t);case"pcb_silkscreen_circle":return TDn(i,t);case"pcb_silkscreen_line":return kDn(i,t);case"pcb_fabrication_note_path":return BDn(i,t);case"pcb_fabrication_note_text":return MDn(i,t);case"pcb_silkscreen_path":return QDn(i,t);case"pcb_board":return t.drawPaddingOutsideBoard?_pt(i,t):[];case"pcb_via":return ODn(i,t);case"pcb_cutout":return VDn(i,t);default:return[]}}function WDn(i,e,t,n,r){const[o,a]=gr(i,[e,t]),[s,c]=gr(i,[n,r]),l=Math.abs(s-o),u=Math.abs(c-a),d=Math.min(o,s),h=Math.min(a,c);return{name:"rect",type:"element",value:"",children:[],attributes:{class:"pcb-boundary",fill:"none",stroke:"#fff","stroke-width":"0.3",x:d.toString(),y:h.toString(),width:l.toString(),height:u.toString()}}}var qDn=vpt,xq={fill:"none",stroke:"rgb(0,0,0)",strokeOpacity:"0.8",strokeWidthFactor:.2};function JDn(i,e,t={}){const{width:n,height:r,center:o,outline:a}=i;let s;if(a&&Array.isArray(a)&&a.length>=3)s=a.map((c,l)=>{const[u,d]=gr(e,[c.x,c.y]);return l===0?`M ${u} ${d}`:`L ${u} ${d}`}).join(" ");else{const c=n/2,l=r/2,u=gr(e,[o.x-c,o.y-l]),d=gr(e,[o.x+c,o.y-l]),h=gr(e,[o.x+c,o.y+l]),p=gr(e,[o.x-c,o.y+l]);s=`M ${u[0]} ${u[1]} L ${d[0]} ${d[1]} L ${h[0]} ${h[1]} L ${p[0]} ${p[1]}`}return s+=" Z",[{name:"path",type:"element",value:"",children:[],attributes:{class:"pcb-board",d:s,fill:t.fill??xq.fill,stroke:t.stroke??xq.stroke,"stroke-opacity":t.strokeOpacity??xq.strokeOpacity,"stroke-width":((t.strokeWidthFactor??xq.strokeWidthFactor)*Math.abs(e.a)).toString()}}]}var $Dn={pin_number:.15,negated_pin_number:.15*.8,reference_designator:.18,manufacturer_number:.18,net_label:.18,error:.05},mD=(i,e)=>e??$Dn[i],uS=(i,e,t)=>Math.abs(i.a)*mD(e,t);function ZDn(i,e){const{elm:t,portPosition:n,name:r,arePinsInterchangeable:o}=i,{transform:a}=e,{center:s,width:c,height:l,rotation:u=0,layer:d="top"}=t;if(!s||typeof c!="number"||typeof l!="number")return null;const[h,p]=gr(a,[s.x,s.y]),[A,m]=gr(a,[n.x,n.y]),_=c*Math.abs(a.a),y=l*Math.abs(a.d),v=m>p,I=A<h,S=[eNn(_,y,u,d),tNn(_,y,r??"")];return o||S.push(nNn(_,y,u,d,v,I)),{name:"g",type:"element",value:"",attributes:{transform:`translate(${h}, ${p}) scale(1, -1)`},children:S}}function eNn(i,e,t,n){const r=i/2,o=e/2;return{name:"path",type:"element",attributes:{class:"assembly-component",d:iNn(r,o,t),"stroke-width":.8.toFixed(2),transform:`rotate(${-t})`,"stroke-dasharray":n==="bottom"?"2,2":""},value:"",children:[]}}function tNn(i,e,t,n){const r=Math.min(i,e),c=Math.min(58,Math.max(3,r*.8)),l=e>i;return{name:"text",type:"element",attributes:{x:"0",y:"0",class:"assembly-component-label","text-anchor":"middle",dy:".10em",style:"pointer-events: none","font-size":`${c.toFixed(1)}px`,transform:l?"rotate(90) scale(1, -1)":"scale(1, -1)"},children:[{type:"text",value:t||"",name:"",attributes:{},children:[]}],value:""}}function nNn(i,e,t,n,r,o){const a=i/2,s=e/2,c=Math.min(a,s)*.5;let l;return r&&o?l=[[-a,-s],[-a+c,-s],[-a,-s+c]]:r&&!o?l=[[a,-s],[a-c,-s],[a,-s+c]]:!r&&o?l=[[-a,s],[-a+c,s],[-a,s-c]]:l=[[a,s],[a-c,s],[a,s-c]],{name:"polygon",type:"element",attributes:{class:"assembly-pin1-indicator",points:l.map(d=>d.join(",")).join(" "),fill:"#333",stroke:"none",transform:`rotate(${-t})`},value:"",children:[]}}function iNn(i,e,t){const n=(s,c,l)=>{const u=Math.PI/180*l,d=Math.cos(u),h=Math.sin(u);return[s*d-c*h,s*h+c*d]};return`${[[-i,-e],[i,-e],[i,e],[-i,e]].map(([s,c])=>n(s,c,t)).map(([s,c],l)=>l===0?`M${s},${c}`:`L${s},${c}`).join(" ")} Z`}var Fbe="rgb(190, 190, 190)";function rNn(i,e){const{transform:t}=e,[n,r]=gr(t,[i.x,i.y]);if(i.hole_shape==="circle"||i.hole_shape==="square"){const o=i.hole_diameter*Math.abs(t.a),a=o/2;return i.hole_shape==="circle"?[{name:"circle",type:"element",attributes:{class:"assembly-hole",cx:n.toString(),cy:r.toString(),r:a.toString(),fill:Fbe},children:[],value:""}]:[{name:"rect",type:"element",attributes:{class:"assembly-hole",x:(n-a).toString(),y:(r-a).toString(),width:o.toString(),height:o.toString(),fill:Fbe},children:[],value:""}]}if(i.hole_shape==="oval"){const o=i.hole_width*Math.abs(t.a),a=i.hole_height*Math.abs(t.a),s=o/2,c=a/2;return[{name:"ellipse",type:"element",attributes:{class:"assembly-hole",cx:n.toString(),cy:r.toString(),rx:s.toString(),ry:c.toString(),fill:Fbe},children:[],value:""}]}return[]}var iF="rgb(210, 210, 210)",rF="rgb(190, 190, 190)";function oNn(i,e){const{transform:t}=e,[n,r]=gr(t,[i.x,i.y]);if(i.shape==="pill"){const o=i.outer_width*Math.abs(t.a),a=i.outer_height*Math.abs(t.a),s=i.hole_width*Math.abs(t.a),c=i.hole_height*Math.abs(t.a),l=o/2,u=a-o,d=s/2;return[{name:"g",type:"element",children:[{name:"path",type:"element",attributes:{class:"assembly-hole-outer",fill:iF,d:`M${n-l},${r-u/2} v${u} a${l},${l} 0 0 0 ${o},0 v-${u} a${l},${l} 0 0 0 -${o},0 z`},value:"",children:[]},{name:"path",type:"element",attributes:{class:"assembly-hole-inner",fill:rF,d:`M${n-d},${r-(c-s)/2} v${c-s} a${d},${d} 0 0 0 ${s},0 v-${c-s} a${d},${d} 0 0 0 -${s},0 z`},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="circle"){const o=i.outer_diameter*Math.abs(t.a),a=i.outer_diameter*Math.abs(t.a),s=i.hole_diameter*Math.abs(t.a),c=i.hole_diameter*Math.abs(t.a),l=Math.min(o,a)/2,u=Math.min(s,c)/2;return[{name:"g",type:"element",children:[{name:"circle",type:"element",attributes:{class:"assembly-hole-outer",fill:iF,cx:n.toString(),cy:r.toString(),r:l.toString()},value:"",children:[]},{name:"circle",type:"element",attributes:{class:"assembly-hole-inner",fill:rF,cx:n.toString(),cy:r.toString(),r:u.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="circular_hole_with_rect_pad"){const o=i.hole_diameter*Math.abs(t.a),a=i.rect_pad_width*Math.abs(t.a),s=i.rect_pad_height*Math.abs(t.a),c=o/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"assembly-hole-outer-pad",fill:iF,x:(n-a/2).toString(),y:(r-s/2).toString(),width:a.toString(),height:s.toString()},value:"",children:[]},{name:"circle",type:"element",attributes:{class:"assembly-hole-inner",fill:rF,cx:n.toString(),cy:r.toString(),r:c.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="pill_hole_with_rect_pad"){const o=i.rect_pad_width*Math.abs(t.a),a=i.rect_pad_height*Math.abs(t.a),s=i.hole_height*Math.abs(t.a),c=i.hole_width*Math.abs(t.a),l=Math.min(s,c)/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"assembly-hole-outer-pad",fill:iF,x:(n-o/2).toString(),y:(r-a/2).toString(),width:o.toString(),height:a.toString()},value:"",children:[]},{name:"rect",type:"element",attributes:{class:"assembly-hole-inner",fill:rF,x:(n-c/2).toString(),y:(r-s/2).toString(),width:c.toString(),height:s.toString(),rx:l.toString(),ry:l.toString()},value:"",children:[]}],value:"",attributes:{}}]}if(i.shape==="rotated_pill_hole_with_rect_pad"){const o=i.rect_pad_width*Math.abs(t.a),a=i.rect_pad_height*Math.abs(t.a),s=i.hole_height*Math.abs(t.a),c=i.hole_width*Math.abs(t.a),l=Math.min(s,c)/2;return[{name:"g",type:"element",children:[{name:"rect",type:"element",attributes:{class:"assembly-hole-outer-pad",fill:iF,x:(-o/2).toString(),y:(-a/2).toString(),width:o.toString(),height:a.toString(),transform:`translate(${n} ${r}) rotate(${-i.rect_ccw_rotation})`},value:"",children:[]},{name:"rect",type:"element",attributes:{class:"assembly-hole-inner",fill:rF,x:(-c/2).toString(),y:(-s/2).toString(),width:c.toString(),height:s.toString(),rx:l.toString(),ry:l.toString(),transform:`translate(${n} ${r}) rotate(${-i.hole_ccw_rotation})`},value:"",children:[]}],value:"",attributes:{}}]}return[]}var oF="rgb(210, 210, 210)";function aNn(i,e){const{transform:t}=e;if(i.shape==="rect"||i.shape==="rotated_rect"){const n=i.width*Math.abs(t.a),r=i.height*Math.abs(t.d),[o,a]=gr(t,[i.x,i.y]);return i.shape==="rotated_rect"&&i.ccw_rotation?[{name:"rect",type:"element",attributes:{class:"assembly-pad",fill:oF,x:(-n/2).toString(),y:(-r/2).toString(),width:n.toString(),height:r.toString(),transform:`translate(${o} ${a}) rotate(${-i.ccw_rotation})`,"data-layer":i.layer},value:"",children:[]}]:[{name:"rect",type:"element",attributes:{class:"assembly-pad",fill:oF,x:(o-n/2).toString(),y:(a-r/2).toString(),width:n.toString(),height:r.toString(),"data-layer":i.layer},value:"",children:[]}]}if(i.shape==="pill"){const n=i.width*Math.abs(t.a),r=i.height*Math.abs(t.d),o=i.radius*Math.abs(t.a),[a,s]=gr(t,[i.x,i.y]);return[{name:"rect",type:"element",attributes:{class:"assembly-pad",fill:oF,x:(a-n/2).toString(),y:(s-r/2).toString(),width:n.toString(),height:r.toString(),rx:o.toString(),ry:o.toString(),"data-layer":i.layer},value:"",children:[]}]}if(i.shape==="circle"){const n=i.radius*Math.abs(t.a),[r,o]=gr(t,[i.x,i.y]);return[{name:"circle",type:"element",attributes:{class:"assembly-pad",fill:oF,cx:r.toString(),cy:o.toString(),r:n.toString(),"data-layer":i.layer},value:"",children:[]}]}if(i.shape==="polygon"){const n=(i.points??[]).map(r=>gr(t,[r.x,r.y]));return[{name:"polygon",type:"element",attributes:{class:"assembly-pad",fill:oF,points:n.map(r=>r.join(",")).join(" "),"data-layer":i.layer},value:"",children:[]}]}return[]}var Ipt=["pcb_component","pcb_smtpad","pcb_hole","pcb_plated_hole","pcb_board"];function xpt(i,e){let t=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY;for(const N of i)if(N.type==="pcb_board"){const k=N.center,B=N.width||0,P=N.height||0;t=Math.min(t,k.x-B/2),n=Math.min(n,k.y-P/2),r=Math.max(r,k.x+B/2),o=Math.max(o,k.y+P/2)}const a=1,s=r-t+2*a,c=o-n+2*a,l=(e==null?void 0:e.width)??800,u=(e==null?void 0:e.height)??600,d=l/s,h=u/c,p=Math.min(d,h),A=(l-s*p)/2,m=(u-c*p)/2,_=ph(ip(A-t*p+a*p,u-m+n*p-a*p),wb(p,-p)),y={transform:_},v=i.sort((N,k)=>(Ipt.indexOf(k.type)??9999)-(Ipt.indexOf(N.type)??9999)).flatMap(N=>sNn(N,y,i)),I=tF(i),S=nF,U={name:"svg",type:"element",attributes:{xmlns:"http://www.w3.org/2000/svg",width:l.toString(),height:u.toString(),...I&&{"data-software-used-string":I},...(e==null?void 0:e.includeVersion)&&{"data-circuit-to-svg-version":S}},value:"",children:[{name:"style",type:"element",children:[{type:"text",value:`
|
|
13378
13378
|
.assembly-component {
|
|
13379
13379
|
fill: none;
|
|
13380
13380
|
stroke: #000;
|
|
@@ -13857,7 +13857,7 @@ ${r.stack}`),n.complete=!0,"root"in this&&this.root&&this.root.emit("asyncEffect
|
|
|
13857
13857
|
* Copyright (c) 2013-2015, 2017, Jon Schlinkert.
|
|
13858
13858
|
* Released under the MIT License.
|
|
13859
13859
|
*)
|
|
13860
|
-
*/const Vci=({containerClassName:i,...e})=>{const t=ut.useRef(null),[n,r]=ut.useState(620);return ut.useLayoutEffect(()=>{const o=()=>{if(t.current){const s=t.current.clientHeight,c=window.innerHeight;r(Math.min(Math.max(s,620),c))}};o();const a=new ResizeObserver(o);return t.current&&a.observe(t.current),window.addEventListener("resize",o),()=>{a.disconnect(),window.removeEventListener("resize",o)}},[]),Ze.jsx("div",{ref:t,className:i||"rf-w-full rf-h-full",children:Ze.jsx(Yci,{...e,height:n})})},jci='*,: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}',Kci=()=>{ut.useEffect(()=>{if(document.querySelector('style[data-styles="tscircuit-runframe"]'))return;const e=document.createElement("style");e.setAttribute("data-styles","tscircuit-runframe"),e.textContent=jci,document.head.appendChild(e)},[])},Xci=i=>{ut.useEffect(()=>(i?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[i])},bxt=i=>`hsl(${lE.indexOf(i)*137.5%360}, 70%, 50%)`,Wci=({phaseTimings:i})=>{if(!i)return null;const e=Object.values(i).reduce((t,n)=>t+n,0);return Ze.jsxs("div",{className:"rf-space-y-2 rf-w-full rf-px-4",children:[Ze.jsx("div",{className:"rf-relative rf-h-8 rf-flex rf-rounded-sm",children:lE.map(t=>{const n=i[t]||0,r=n/e*100;return Ze.jsx("div",{className:"rf-group/bar rf-relative rf-overflow-visible",style:{width:`${r}%`,backgroundColor:bxt(t)},children:Ze.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)})}),Ze.jsxs("div",{className:"rf-text-xs rf-text-gray-500",children:["Total: ",e.toFixed(2),"ms"]})]})},qci=({renderLog:i})=>{const[e,t]=ut.useState("chronological");if(!i)return Ze.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,a)=>lE.indexOf(o[0])-lE.indexOf(a[0])):n.sort((o,a)=>a[1]-o[1]);const r=n.reduce((o,[a,s])=>o+s,0);return Ze.jsxs("div",{className:"rf-bg-white",children:[Ze.jsxs("div",{className:"rf-flex rf-justify-between rf-items-center",children:[Ze.jsx("div",{children:"Render Logs"}),Ze.jsxs("div",{className:"rf-mb-4 rf-pr-2 rf-flex rf-text-xs rf-items-center",children:[Ze.jsx("div",{className:"rf-mr-2",children:"Sort by:"}),Ze.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:[Ze.jsx("option",{value:"chronological",children:"Phase Order"}),Ze.jsx("option",{value:"longest",children:"Duration"})]})]})]}),Ze.jsx(Wci,{phaseTimings:i.phaseTimings}),Ze.jsxs("table",{className:"rf-w-full rf-text-xs",children:[Ze.jsx("thead",{children:Ze.jsxs("tr",{children:[Ze.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase Order"}),Ze.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase"}),Ze.jsx("th",{className:"rf-text-left rf-p-2",children:"Duration (ms)"})]})}),Ze.jsx("tbody",{children:n.map(([o,a])=>Ze.jsxs("tr",{children:[Ze.jsx("td",{className:"rf-p-2",children:lE.indexOf(o)}),Ze.jsx("td",{className:"rf-p-2",children:o}),Ze.jsx("td",{className:"rf-p-2",children:Ze.jsx("div",{className:"rf-w-8",children:Ze.jsx("div",{className:"rf-h-2 rf-rounded-sm",style:{backgroundColor:bxt(o),width:`${a/r*100}%`}})})}),Ze.jsx("td",{className:"rf-p-2",children:Ze.jsxs("div",{className:"rf-flex w-full",children:[Ze.jsxs("span",{className:"rf-flex-grow",children:[a,"ms"]}),Ze.jsxs("span",{className:"rf-text-gray-500 rf-pr-2",children:[(a/r*100).toFixed(1),"%"]})]})})]},o))})]})]})},Cxt=({errorMessage:i,errorStack:e,circuitJsonErrors:t})=>{ut.useEffect(()=>{if(i){const n=new Error(i);e&&(n.stack=e);try{kV.captureException(n)}catch{}}},[i,e]),ut.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{kV.captureException(r,{error_type:n.type})}catch{}}},[t])},Jci="0.0.772";function Ext(i,e){const[t,n]=ut.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 ut.useEffect(()=>{try{window.localStorage.setItem(i,JSON.stringify(t))}catch(r){console.error("Error writing to localStorage:",r)}},[i,t]),[t,n]}const uee=XGe()(WGe(i=>({lastRunEvalVersion:void 0,setLastRunEvalVersion:e=>{i({lastRunEvalVersion:e})}}),{name:"runframe-runner-store"})),$ci=i=>{const[e,t]=ut.useState([]),[n,r]=ut.useState(null),[o,a]=ut.useState(""),[s,c]=Ext("eval-version-selection",null),l=uee(p=>p.setLastRunEvalVersion),u=uee(p=>p.lastRunEvalVersion);return ut.useEffect(()=>{i&&fetch("https://data.jsdelivr.com/v1/package/npm/@tscircuit/eval").then(p=>p.json()).then(p=>{var A;if(Array.isArray(p==null?void 0:p.versions)){let m=[...p.versions];(A=p.tags)!=null&&A.latest&&(r(p.tags.latest),m=m.filter(_=>_!==p.tags.latest)),t(m)}}).catch(()=>{})},[i]),ut.useEffect(()=>{i&&(s?(window.TSCIRCUIT_LATEST_EVAL_VERSION=s,l(s)):n&&(window.TSCIRCUIT_LATEST_EVAL_VERSION=n,l(n)))},[i,s,n]),{versions:ut.useMemo(()=>e.filter(p=>p.includes(o)).slice(0,50),[e,o]),latestVersion:n,lastRunEvalVersion:u,search:o,setSearch:a,selectVersion:p=>{c(p),a("")}}},Zci=["assembly","bom","circuit_json","errors","render_log"],eli=({code:i,fsMap:e,onRunClicked:t=void 0,errorMessage:n,errorStack:r,circuitJson:o,autoroutingGraphics:a,showRightHeaderContent:s=!0,showCodeTab:c=!1,codeTabContent:l,showJsonTab:u=!0,showRenderLogTab:d=!0,onActiveTabChange:h,renderLog:p,showImportAndFormatButtons:A=!0,className:m,headerClassName:_,leftHeaderContent:y,readOnly:v,isStreaming:I,autoroutingLog:S,onReportAutoroutingLog:U,isRunningCode:N,hasCodeChangedSinceLastRun:k,onEditEvent:B,editEvents:P,defaultActiveTab:R,defaultTab:W,availableTabs:z,autoRotate3dViewerDisabled:q,showSchematicDebugGrid:re=!1,showToggleFullScreen:ce=!0,defaultToFullScreen:oe=!1,activeEffectName:ye,allowSelectingVersion:fe=!0})=>{var Qt,Bt;Kci();const{versions:we,latestVersion:Be,lastRunEvalVersion:Se,search:be,setSearch:Pe,selectVersion:Ke}=$ci(fe),et=ut.useMemo(()=>o?o.filter(bt=>bt&&"error_type"in bt||bt.type.includes("error")):null,[o]),lt=ut.useMemo(()=>o?o.filter(bt=>bt&&"warning_type"in bt||bt.type.includes("warning")):null,[o]);Cxt({errorMessage:n,errorStack:r,circuitJsonErrors:et});const[Mt,ht]=ut.useState(R??W??(z==null?void 0:z[0])??"pcb"),[Ee,Oe]=ut.useState(null),[Ve,ft]=ut.useState(oe);Xci(Ve);const xt=ut.useCallback(bt=>{ht(bt),h==null||h(bt)},[h]),At=()=>{ft(!Ve)};ut.useEffect(()=>{n&&(Mt!=="errors"&&Oe(Mt),xt("errors"))},[n]),ut.useEffect(()=>{(Mt==="code"||Mt==="errors")&&o&&!n&&xt(Ee??R??W??(z==null?void 0:z[0])??"pcb")},[o]);const $e=ut.useCallback(bt=>{window.TSCIRCUIT_3D_OBJECT_REF=bt===null?void 0:bt},[]);return Ze.jsx("div",{className:Cp("flex flex-col relative rf-overflow-x-hidden rf-h-full",m),children:Ze.jsx("div",{className:Cp("rf-md:sticky rf-md:top-2 rf-h-full",Ve&&"rf-fixed rf-top-0 rf-left-0 rf-w-full rf-h-full rf-bg-white rf-overflow-hidden"),children:Ze.jsxs(Lde,{value:Mt,onValueChange:xt,className:"rf-flex-grow rf-flex rf-flex-col rf-h-full",children:[Ze.jsxs("div",{className:Cp("rf-flex rf-items-center rf-gap-2 rf-p-2 rf-pb-0",_),children:[y,y&&Ze.jsx("div",{className:"rf-flex-grow"}),!y&&N&&Ze.jsx(K6,{className:"rf-w-4 rf-h-4 rf-animate-spin"}),!y&&Ze.jsx("div",{className:"rf-flex-grow"}),p&&p.progress!==1&&!n&&Ze.jsxs("div",{className:"rf-flex rf-items-center rf-gap-2 rf-min-w-0 rf-max-w-xs",children:[ye?Ze.jsx("div",{className:"rf-text-xs rf-text-gray-500 rf-truncate rf-min-w-0",title:ye,children:ye}):p.lastRenderEvent&&Ze.jsx("div",{className:"rf-text-xs rf-text-gray-500 rf-truncate rf-min-w-0",title:((Qt=p.lastRenderEvent)==null?void 0:Qt.phase)??"",children:((Bt=p.lastRenderEvent)==null?void 0:Bt.phase)??""}),Ze.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:Ze.jsx(K6,{className:"rf-w-4 rf-h-4 rf-animate-spin"})}),Ze.jsxs("div",{className:"rf-text-xs rf-font-bold rf-text-gray-700 rf-tabular-nums rf-flex-shrink-0",children:[((p.progress??0)*100).toFixed(1),"%"]})]}),s&&Ze.jsxs(LV,{children:[c&&Ze.jsx(_w,{value:"code",children:"Code"}),!z||z.includes("pcb")?Ze.jsxs(_w,{value:"pcb",className:"rf-whitespace-nowrap",children:[o&&Ze.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",k?"rf-bg-gray-500":"rf-bg-blue-500")}),"PCB"]}):null,!z||z.includes("schematic")?Ze.jsxs(_w,{value:"schematic",className:"rf-whitespace-nowrap",children:[o&&Ze.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",k?"rf-bg-gray-500":"rf-bg-blue-500")}),"Schematic"]}):null,!z||z.includes("cad")?Ze.jsxs(_w,{value:"cad",children:[o&&Ze.jsx("span",{className:Cp("inline-flex items-center justify-center w-2 h-2 mr-1 text-xs font-bold text-white rounded-full",k?"rf-bg-gray-500":"rf-bg-blue-500")}),"3D"]}):null,!["pcb","cad","schematic"].includes(Mt)&&Ze.jsx(_w,{value:Mt,children:rVe(Mt)}),Ze.jsxs(Tbe,{children:[Ze.jsx(kbe,{asChild:!0,children:Ze.jsxs("div",{className:"rf-whitespace-nowrap rf-p-2 rf-mr-1 rf-cursor-pointer rf-relative",children:[Ze.jsx(T6n,{className:"rf-w-4 rf-h-4"}),(et&&et.length>0||n)&&Ze.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"})]})}),Ze.jsxs(vq,{className:"rf-*:text-xs",children:[Zci.filter(bt=>!z||z.includes(bt)).map(bt=>Ze.jsxs(k2,{onSelect:()=>xt(bt),children:[Mt!==bt&&Ze.jsx(hht,{className:"rf-w-3 rf-h-3 rf-opacity-30"}),Mt===bt&&Ze.jsx(jW,{className:"rf-w-3 rf-h-3"}),Ze.jsx("div",{className:"rf-pr-2",children:rVe(bt)}),bt==="errors"&&(et&&et.length>0||n)&&Ze.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)),Ze.jsx(k2,{disabled:!0,className:"rf-opacity-60 rf-cursor-default rf-select-none",children:Ze.jsxs("div",{className:"rf-pr-2 rf-text-xs rf-text-gray-500",children:["@tscircuit/runframe@",Jci.split(".").map((bt,Yt)=>Yt===2?parseInt(bt)+1:bt).join(".")]})}),fe?Ze.jsxs(Lbe,{onOpenChange:bt=>!bt&&Pe(""),children:[Ze.jsx(_q,{className:"rf-text-xs rf-opacity-60",children:Ze.jsxs("div",{className:"rf-pr-2 rf-text-xs rf-text-gray-500",children:["@tscircuit/eval@",Se??Be??"latest"]})}),Ze.jsx(Pbe,{children:Ze.jsxs(yq,{className:"rf-*:text-xs rf-w-40 rf-max-h-[200px] rf-overflow-y-auto",children:[Ze.jsx("div",{className:"rf-p-1",children:Ze.jsx(Vbe,{value:be,onChange:bt=>Pe(bt.target.value),placeholder:"Search...",className:"rf-h-7 rf-text-xs"})}),Ze.jsx(gpt,{}),Ze.jsx(k2,{onSelect:()=>Ke(null),children:Be?`${Be} (latest)`:"latest"}),we.map(bt=>Ze.jsx(k2,{onSelect:()=>Ke(bt),children:bt},bt))]})})]}):Se&&Ze.jsx(k2,{disabled:!0,className:"rf-opacity-60 rf-cursor-default rf-select-none",children:Ze.jsxs("div",{className:"rf-pr-2 rf-text-xs rf-text-gray-500",children:["@tscircuit/eval@",Se]})})]})]})]}),ce&&Ze.jsx(ux,{onClick:At,variant:"ghost",children:Ve?Ze.jsx(F6n,{size:16}):Ze.jsx(P6n,{size:16})})]}),c&&Ze.jsx(M5,{value:"code",className:"rf-flex-grow rf-overflow-hidden",children:Ze.jsx("div",{className:"rf-h-full",children:l})}),(!z||z.includes("pcb"))&&Ze.jsx(M5,{value:"pcb",children:Ze.jsx("div",{className:Cp("rf-overflow-hidden",Ve?"rf-h-[calc(100vh-52px)]":"rf-h-full"),children:Ze.jsx(sD,{fallbackRender:({error:bt})=>Ze.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200",children:Ze.jsxs("div",{className:"rf-p-4",children:[Ze.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-3",children:"Error loading PCB viewer"}),Ze.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?Ze.jsx(Vci,{focusOnHover:!1,circuitJson:o,debugGraphics:a,containerClassName:Cp("rf-h-full rf-w-full",Ve?"rf-min-h-[calc(100vh-240px)]":"rf-min-h-[620px]"),onEditEventsChanged:bt=>{if(B)for(const Yt of bt)B(Yt)}}):Ze.jsx(J6,{onRunClicked:t})})})}),(!z||z.includes("assembly"))&&Ze.jsx(M5,{value:"assembly",children:Ze.jsx("div",{className:Cp("rf-overflow-auto",Ve?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Ze.jsx(sD,{fallback:Ze.jsx("div",{children:"Error loading Assembly"}),children:o?Ze.jsx(rTn,{circuitJson:o,containerStyle:{height:"100%"},editingEnabled:!0,debugGrid:!0}):Ze.jsx(J6,{onRunClicked:t})})})}),(!z||z.includes("schematic"))&&Ze.jsx(M5,{value:"schematic",children:Ze.jsx("div",{className:Cp("rf-overflow-auto rf-bg-white",Ve?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Ze.jsx(sD,{fallbackRender:({error:bt})=>Ze.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200",children:Ze.jsxs("div",{className:"rf-p-4",children:[Ze.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-3",children:"Error loading Schematic"}),Ze.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?Ze.jsx(tTn,{circuitJson:o,containerStyle:{height:"100%"},editingEnabled:!0,onEditEvent:bt=>{B==null||B(bt)},debugGrid:re}):Ze.jsx(J6,{onRunClicked:t})})})}),(!z||z.includes("cad"))&&Ze.jsx(M5,{value:"cad",children:Ze.jsx("div",{className:Cp("rf-overflow-auto",Ve?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Ze.jsx(sD,{FallbackComponent:I6n,children:o?Ze.jsx(y6n,{ref:$e,circuitJson:o,autoRotateDisabled:q}):Ze.jsx(J6,{onRunClicked:t})})})}),(!z||z.includes("bom"))&&Ze.jsx(M5,{value:"bom",children:Ze.jsx("div",{className:Cp("rf-overflow-auto",Ve?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Ze.jsx(sD,{fallbackRender:({error:bt})=>Ze.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200",children:Ze.jsxs("div",{className:"rf-p-4",children:[Ze.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-3",children:"Error loading Bill of Materials"}),Ze.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?Ze.jsx(lTn,{circuitJson:o}):Ze.jsx(J6,{onRunClicked:t})})})}),(!z||z.includes("circuit_json"))&&Ze.jsx(M5,{value:"circuit_json",children:Ze.jsx("div",{className:Cp("rf-overflow-auto",Ve?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Ze.jsx(sD,{fallback:Ze.jsx("div",{children:"Error loading JSON viewer"}),children:o?Ze.jsx(sTn,{elements:o}):Ze.jsx(J6,{onRunClicked:t})})})}),(!z||z.includes("errors"))&&Ze.jsx(M5,{value:"errors",children:Ze.jsx("div",{className:Cp("rf-overflow-auto",Ve?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:n||et&&et.length>0||o?Ze.jsx(EDn,{code:i,fsMap:e,circuitJsonErrors:et,circuitJsonWarnings:lt,errorMessage:n,errorStack:r,circuitJson:o,evalVersion:Se,autoroutingLog:S,onReportAutoroutingLog:U}):Ze.jsx(J6,{onRunClicked:t})})}),d&&(!z||z.includes("render_log"))&&Ze.jsx(M5,{value:"render_log",children:Ze.jsx(qci,{renderLog:p})})]})})})};var dee="Dialog",[wxt,Sxt]=lw(dee),[tli,N3]=wxt(dee),Bxt=i=>{const{__scopeDialog:e,children:t,open:n,defaultOpen:r,onOpenChange:o,modal:a=!0}=i,s=ut.useRef(null),c=ut.useRef(null),[l,u]=MM({prop:n,defaultProp:r??!1,onChange:o,caller:dee});return Ze.jsx(tli,{scope:e,triggerRef:s,contentRef:c,contentId:e2(),titleId:e2(),descriptionId:e2(),open:l,onOpenChange:u,onOpenToggle:ut.useCallback(()=>u(d=>!d),[u]),modal:a,children:t})};Bxt.displayName=dee;var Mxt="DialogTrigger",Rxt=ut.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=N3(Mxt,t),o=rx(e,r.triggerRef);return Ze.jsx(ay.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Uwe(r.open),...n,ref:o,onClick:uA(i.onClick,r.onOpenToggle)})});Rxt.displayName=Mxt;var Lwe="DialogPortal",[nli,Qxt]=wxt(Lwe,{forceMount:void 0}),Dxt=i=>{const{__scopeDialog:e,forceMount:t,children:n,container:r}=i,o=N3(Lwe,e);return Ze.jsx(nli,{scope:e,forceMount:t,children:ut.Children.map(n,a=>Ze.jsx(E5,{present:t||o.open,children:Ze.jsx(oq,{asChild:!0,container:r,children:a})}))})};Dxt.displayName=Lwe;var hee="DialogOverlay",Nxt=ut.forwardRef((i,e)=>{const t=Qxt(hee,i.__scopeDialog),{forceMount:n=t.forceMount,...r}=i,o=N3(hee,i.__scopeDialog);return o.modal?Ze.jsx(E5,{present:n||o.open,children:Ze.jsx(rli,{...r,ref:e})}):null});Nxt.displayName=hee;var ili=BM("DialogOverlay.RemoveScroll"),rli=ut.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=N3(hee,t);return Ze.jsx(fq,{as:ili,allowPinchZoom:!0,shards:[r.contentRef],children:Ze.jsx(ay.div,{"data-state":Uwe(r.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),yR="DialogContent",Txt=ut.forwardRef((i,e)=>{const t=Qxt(yR,i.__scopeDialog),{forceMount:n=t.forceMount,...r}=i,o=N3(yR,i.__scopeDialog);return Ze.jsx(E5,{present:n||o.open,children:o.modal?Ze.jsx(oli,{...r,ref:e}):Ze.jsx(ali,{...r,ref:e})})});Txt.displayName=yR;var oli=ut.forwardRef((i,e)=>{const t=N3(yR,i.__scopeDialog),n=ut.useRef(null),r=rx(e,t.contentRef,n);return ut.useEffect(()=>{const o=n.current;if(o)return vbe(o)},[]),Ze.jsx(kxt,{...i,ref:r,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:uA(i.onCloseAutoFocus,o=>{var a;o.preventDefault(),(a=t.triggerRef.current)==null||a.focus()}),onPointerDownOutside:uA(i.onPointerDownOutside,o=>{const a=o.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&o.preventDefault()}),onFocusOutside:uA(i.onFocusOutside,o=>o.preventDefault())})}),ali=ut.forwardRef((i,e)=>{const t=N3(yR,i.__scopeDialog),n=ut.useRef(!1),r=ut.useRef(!1);return Ze.jsx(kxt,{...i,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a,s;(a=i.onCloseAutoFocus)==null||a.call(i,o),o.defaultPrevented||(n.current||(s=t.triggerRef.current)==null||s.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 a=o.target;((l=t.triggerRef.current)==null?void 0:l.contains(a))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&r.current&&o.preventDefault()}})}),kxt=ut.forwardRef((i,e)=>{const{__scopeDialog:t,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:o,...a}=i,s=N3(yR,t),c=ut.useRef(null),l=rx(e,c);return ebe(),Ze.jsxs(Ze.Fragment,{children:[Ze.jsx(XW,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:o,children:Ze.jsx(KW,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Uwe(s.open),...a,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),Ze.jsxs(Ze.Fragment,{children:[Ze.jsx(cli,{titleId:s.titleId}),Ze.jsx(uli,{contentRef:c,descriptionId:s.descriptionId})]})]})}),Fwe="DialogTitle",Pxt=ut.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=N3(Fwe,t);return Ze.jsx(ay.h2,{id:r.titleId,...n,ref:e})});Pxt.displayName=Fwe;var Lxt="DialogDescription",Fxt=ut.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=N3(Lxt,t);return Ze.jsx(ay.p,{id:r.descriptionId,...n,ref:e})});Fxt.displayName=Lxt;var Uxt="DialogClose",Oxt=ut.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=N3(Uxt,t);return Ze.jsx(ay.button,{type:"button",...n,ref:e,onClick:uA(i.onClick,()=>r.onOpenChange(!1))})});Oxt.displayName=Uxt;function Uwe(i){return i?"open":"closed"}var Gxt="DialogTitleWarning",[sli,zxt]=Qnn(Gxt,{contentName:yR,titleName:Fwe,docsSlug:"dialog"}),cli=({titleId:i})=>{const e=zxt(Gxt),t=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
13860
|
+
*/const Vci=({containerClassName:i,...e})=>{const t=ut.useRef(null),[n,r]=ut.useState(620);return ut.useLayoutEffect(()=>{const o=()=>{if(t.current){const s=t.current.clientHeight,c=window.innerHeight;r(Math.min(Math.max(s,620),c))}};o();const a=new ResizeObserver(o);return t.current&&a.observe(t.current),window.addEventListener("resize",o),()=>{a.disconnect(),window.removeEventListener("resize",o)}},[]),Ze.jsx("div",{ref:t,className:i||"rf-w-full rf-h-full",children:Ze.jsx(Yci,{...e,height:n})})},jci='*,: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}',Kci=()=>{ut.useEffect(()=>{if(document.querySelector('style[data-styles="tscircuit-runframe"]'))return;const e=document.createElement("style");e.setAttribute("data-styles","tscircuit-runframe"),e.textContent=jci,document.head.appendChild(e)},[])},Xci=i=>{ut.useEffect(()=>(i?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[i])},bxt=i=>`hsl(${lE.indexOf(i)*137.5%360}, 70%, 50%)`,Wci=({phaseTimings:i})=>{if(!i)return null;const e=Object.values(i).reduce((t,n)=>t+n,0);return Ze.jsxs("div",{className:"rf-space-y-2 rf-w-full rf-px-4",children:[Ze.jsx("div",{className:"rf-relative rf-h-8 rf-flex rf-rounded-sm",children:lE.map(t=>{const n=i[t]||0,r=n/e*100;return Ze.jsx("div",{className:"rf-group/bar rf-relative rf-overflow-visible",style:{width:`${r}%`,backgroundColor:bxt(t)},children:Ze.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)})}),Ze.jsxs("div",{className:"rf-text-xs rf-text-gray-500",children:["Total: ",e.toFixed(2),"ms"]})]})},qci=({renderLog:i})=>{const[e,t]=ut.useState("chronological");if(!i)return Ze.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,a)=>lE.indexOf(o[0])-lE.indexOf(a[0])):n.sort((o,a)=>a[1]-o[1]);const r=n.reduce((o,[a,s])=>o+s,0);return Ze.jsxs("div",{className:"rf-bg-white",children:[Ze.jsxs("div",{className:"rf-flex rf-justify-between rf-items-center",children:[Ze.jsx("div",{children:"Render Logs"}),Ze.jsxs("div",{className:"rf-mb-4 rf-pr-2 rf-flex rf-text-xs rf-items-center",children:[Ze.jsx("div",{className:"rf-mr-2",children:"Sort by:"}),Ze.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:[Ze.jsx("option",{value:"chronological",children:"Phase Order"}),Ze.jsx("option",{value:"longest",children:"Duration"})]})]})]}),Ze.jsx(Wci,{phaseTimings:i.phaseTimings}),Ze.jsxs("table",{className:"rf-w-full rf-text-xs",children:[Ze.jsx("thead",{children:Ze.jsxs("tr",{children:[Ze.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase Order"}),Ze.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase"}),Ze.jsx("th",{className:"rf-text-left rf-p-2",children:"Duration (ms)"})]})}),Ze.jsx("tbody",{children:n.map(([o,a])=>Ze.jsxs("tr",{children:[Ze.jsx("td",{className:"rf-p-2",children:lE.indexOf(o)}),Ze.jsx("td",{className:"rf-p-2",children:o}),Ze.jsx("td",{className:"rf-p-2",children:Ze.jsx("div",{className:"rf-w-8",children:Ze.jsx("div",{className:"rf-h-2 rf-rounded-sm",style:{backgroundColor:bxt(o),width:`${a/r*100}%`}})})}),Ze.jsx("td",{className:"rf-p-2",children:Ze.jsxs("div",{className:"rf-flex w-full",children:[Ze.jsxs("span",{className:"rf-flex-grow",children:[a,"ms"]}),Ze.jsxs("span",{className:"rf-text-gray-500 rf-pr-2",children:[(a/r*100).toFixed(1),"%"]})]})})]},o))})]})]})},Cxt=({errorMessage:i,errorStack:e,circuitJsonErrors:t})=>{ut.useEffect(()=>{if(i){const n=new Error(i);e&&(n.stack=e);try{kV.captureException(n)}catch{}}},[i,e]),ut.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{kV.captureException(r,{error_type:n.type})}catch{}}},[t])},Jci="0.0.773";function Ext(i,e){const[t,n]=ut.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 ut.useEffect(()=>{try{window.localStorage.setItem(i,JSON.stringify(t))}catch(r){console.error("Error writing to localStorage:",r)}},[i,t]),[t,n]}const uee=XGe()(WGe(i=>({lastRunEvalVersion:void 0,setLastRunEvalVersion:e=>{i({lastRunEvalVersion:e})}}),{name:"runframe-runner-store"})),$ci=i=>{const[e,t]=ut.useState([]),[n,r]=ut.useState(null),[o,a]=ut.useState(""),[s,c]=Ext("eval-version-selection",null),l=uee(p=>p.setLastRunEvalVersion),u=uee(p=>p.lastRunEvalVersion);return ut.useEffect(()=>{i&&fetch("https://data.jsdelivr.com/v1/package/npm/@tscircuit/eval").then(p=>p.json()).then(p=>{var A;if(Array.isArray(p==null?void 0:p.versions)){let m=[...p.versions];(A=p.tags)!=null&&A.latest&&(r(p.tags.latest),m=m.filter(_=>_!==p.tags.latest)),t(m)}}).catch(()=>{})},[i]),ut.useEffect(()=>{i&&(s?(window.TSCIRCUIT_LATEST_EVAL_VERSION=s,l(s)):n&&(window.TSCIRCUIT_LATEST_EVAL_VERSION=n,l(n)))},[i,s,n]),{versions:ut.useMemo(()=>e.filter(p=>p.includes(o)).slice(0,50),[e,o]),latestVersion:n,lastRunEvalVersion:u,search:o,setSearch:a,selectVersion:p=>{c(p),a("")}}},Zci=["assembly","bom","circuit_json","errors","render_log"],eli=({code:i,fsMap:e,onRunClicked:t=void 0,errorMessage:n,errorStack:r,circuitJson:o,autoroutingGraphics:a,showRightHeaderContent:s=!0,showCodeTab:c=!1,codeTabContent:l,showJsonTab:u=!0,showRenderLogTab:d=!0,onActiveTabChange:h,renderLog:p,showImportAndFormatButtons:A=!0,className:m,headerClassName:_,leftHeaderContent:y,readOnly:v,isStreaming:I,autoroutingLog:S,onReportAutoroutingLog:U,isRunningCode:N,hasCodeChangedSinceLastRun:k,onEditEvent:B,editEvents:P,defaultActiveTab:R,defaultTab:W,availableTabs:z,autoRotate3dViewerDisabled:q,showSchematicDebugGrid:re=!1,showToggleFullScreen:ce=!0,defaultToFullScreen:oe=!1,activeEffectName:ye,allowSelectingVersion:fe=!0})=>{var Qt,Bt;Kci();const{versions:we,latestVersion:Be,lastRunEvalVersion:Se,search:be,setSearch:Pe,selectVersion:Ke}=$ci(fe),et=ut.useMemo(()=>o?o.filter(bt=>bt&&"error_type"in bt||bt.type.includes("error")):null,[o]),lt=ut.useMemo(()=>o?o.filter(bt=>bt&&"warning_type"in bt||bt.type.includes("warning")):null,[o]);Cxt({errorMessage:n,errorStack:r,circuitJsonErrors:et});const[Mt,ht]=ut.useState(R??W??(z==null?void 0:z[0])??"pcb"),[Ee,Oe]=ut.useState(null),[Ve,ft]=ut.useState(oe);Xci(Ve);const xt=ut.useCallback(bt=>{ht(bt),h==null||h(bt)},[h]),At=()=>{ft(!Ve)};ut.useEffect(()=>{n&&(Mt!=="errors"&&Oe(Mt),xt("errors"))},[n]),ut.useEffect(()=>{(Mt==="code"||Mt==="errors")&&o&&!n&&xt(Ee??R??W??(z==null?void 0:z[0])??"pcb")},[o]);const $e=ut.useCallback(bt=>{window.TSCIRCUIT_3D_OBJECT_REF=bt===null?void 0:bt},[]);return Ze.jsx("div",{className:Cp("flex flex-col relative rf-overflow-x-hidden rf-h-full",m),children:Ze.jsx("div",{className:Cp("rf-md:sticky rf-md:top-2 rf-h-full",Ve&&"rf-fixed rf-top-0 rf-left-0 rf-w-full rf-h-full rf-bg-white rf-overflow-hidden"),children:Ze.jsxs(Lde,{value:Mt,onValueChange:xt,className:"rf-flex-grow rf-flex rf-flex-col rf-h-full",children:[Ze.jsxs("div",{className:Cp("rf-flex rf-items-center rf-gap-2 rf-p-2 rf-pb-0",_),children:[y,y&&Ze.jsx("div",{className:"rf-flex-grow"}),!y&&N&&Ze.jsx(K6,{className:"rf-w-4 rf-h-4 rf-animate-spin"}),!y&&Ze.jsx("div",{className:"rf-flex-grow"}),p&&p.progress!==1&&!n&&Ze.jsxs("div",{className:"rf-flex rf-items-center rf-gap-2 rf-min-w-0 rf-max-w-xs",children:[ye?Ze.jsx("div",{className:"rf-text-xs rf-text-gray-500 rf-truncate rf-min-w-0",title:ye,children:ye}):p.lastRenderEvent&&Ze.jsx("div",{className:"rf-text-xs rf-text-gray-500 rf-truncate rf-min-w-0",title:((Qt=p.lastRenderEvent)==null?void 0:Qt.phase)??"",children:((Bt=p.lastRenderEvent)==null?void 0:Bt.phase)??""}),Ze.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:Ze.jsx(K6,{className:"rf-w-4 rf-h-4 rf-animate-spin"})}),Ze.jsxs("div",{className:"rf-text-xs rf-font-bold rf-text-gray-700 rf-tabular-nums rf-flex-shrink-0",children:[((p.progress??0)*100).toFixed(1),"%"]})]}),s&&Ze.jsxs(LV,{children:[c&&Ze.jsx(_w,{value:"code",children:"Code"}),!z||z.includes("pcb")?Ze.jsxs(_w,{value:"pcb",className:"rf-whitespace-nowrap",children:[o&&Ze.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",k?"rf-bg-gray-500":"rf-bg-blue-500")}),"PCB"]}):null,!z||z.includes("schematic")?Ze.jsxs(_w,{value:"schematic",className:"rf-whitespace-nowrap",children:[o&&Ze.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",k?"rf-bg-gray-500":"rf-bg-blue-500")}),"Schematic"]}):null,!z||z.includes("cad")?Ze.jsxs(_w,{value:"cad",children:[o&&Ze.jsx("span",{className:Cp("inline-flex items-center justify-center w-2 h-2 mr-1 text-xs font-bold text-white rounded-full",k?"rf-bg-gray-500":"rf-bg-blue-500")}),"3D"]}):null,!["pcb","cad","schematic"].includes(Mt)&&Ze.jsx(_w,{value:Mt,children:rVe(Mt)}),Ze.jsxs(Tbe,{children:[Ze.jsx(kbe,{asChild:!0,children:Ze.jsxs("div",{className:"rf-whitespace-nowrap rf-p-2 rf-mr-1 rf-cursor-pointer rf-relative",children:[Ze.jsx(T6n,{className:"rf-w-4 rf-h-4"}),(et&&et.length>0||n)&&Ze.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"})]})}),Ze.jsxs(vq,{className:"rf-*:text-xs",children:[Zci.filter(bt=>!z||z.includes(bt)).map(bt=>Ze.jsxs(k2,{onSelect:()=>xt(bt),children:[Mt!==bt&&Ze.jsx(hht,{className:"rf-w-3 rf-h-3 rf-opacity-30"}),Mt===bt&&Ze.jsx(jW,{className:"rf-w-3 rf-h-3"}),Ze.jsx("div",{className:"rf-pr-2",children:rVe(bt)}),bt==="errors"&&(et&&et.length>0||n)&&Ze.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)),Ze.jsx(k2,{disabled:!0,className:"rf-opacity-60 rf-cursor-default rf-select-none",children:Ze.jsxs("div",{className:"rf-pr-2 rf-text-xs rf-text-gray-500",children:["@tscircuit/runframe@",Jci.split(".").map((bt,Yt)=>Yt===2?parseInt(bt)+1:bt).join(".")]})}),fe?Ze.jsxs(Lbe,{onOpenChange:bt=>!bt&&Pe(""),children:[Ze.jsx(_q,{className:"rf-text-xs rf-opacity-60",children:Ze.jsxs("div",{className:"rf-pr-2 rf-text-xs rf-text-gray-500",children:["@tscircuit/eval@",Se??Be??"latest"]})}),Ze.jsx(Pbe,{children:Ze.jsxs(yq,{className:"rf-*:text-xs rf-w-40 rf-max-h-[200px] rf-overflow-y-auto",children:[Ze.jsx("div",{className:"rf-p-1",children:Ze.jsx(Vbe,{value:be,onChange:bt=>Pe(bt.target.value),placeholder:"Search...",className:"rf-h-7 rf-text-xs"})}),Ze.jsx(gpt,{}),Ze.jsx(k2,{onSelect:()=>Ke(null),children:Be?`${Be} (latest)`:"latest"}),we.map(bt=>Ze.jsx(k2,{onSelect:()=>Ke(bt),children:bt},bt))]})})]}):Se&&Ze.jsx(k2,{disabled:!0,className:"rf-opacity-60 rf-cursor-default rf-select-none",children:Ze.jsxs("div",{className:"rf-pr-2 rf-text-xs rf-text-gray-500",children:["@tscircuit/eval@",Se]})})]})]})]}),ce&&Ze.jsx(ux,{onClick:At,variant:"ghost",children:Ve?Ze.jsx(F6n,{size:16}):Ze.jsx(P6n,{size:16})})]}),c&&Ze.jsx(M5,{value:"code",className:"rf-flex-grow rf-overflow-hidden",children:Ze.jsx("div",{className:"rf-h-full",children:l})}),(!z||z.includes("pcb"))&&Ze.jsx(M5,{value:"pcb",children:Ze.jsx("div",{className:Cp("rf-overflow-hidden",Ve?"rf-h-[calc(100vh-52px)]":"rf-h-full"),children:Ze.jsx(sD,{fallbackRender:({error:bt})=>Ze.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200",children:Ze.jsxs("div",{className:"rf-p-4",children:[Ze.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-3",children:"Error loading PCB viewer"}),Ze.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?Ze.jsx(Vci,{focusOnHover:!1,circuitJson:o,debugGraphics:a,containerClassName:Cp("rf-h-full rf-w-full",Ve?"rf-min-h-[calc(100vh-240px)]":"rf-min-h-[620px]"),onEditEventsChanged:bt=>{if(B)for(const Yt of bt)B(Yt)}}):Ze.jsx(J6,{onRunClicked:t})})})}),(!z||z.includes("assembly"))&&Ze.jsx(M5,{value:"assembly",children:Ze.jsx("div",{className:Cp("rf-overflow-auto",Ve?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Ze.jsx(sD,{fallback:Ze.jsx("div",{children:"Error loading Assembly"}),children:o?Ze.jsx(rTn,{circuitJson:o,containerStyle:{height:"100%"},editingEnabled:!0,debugGrid:!0}):Ze.jsx(J6,{onRunClicked:t})})})}),(!z||z.includes("schematic"))&&Ze.jsx(M5,{value:"schematic",children:Ze.jsx("div",{className:Cp("rf-overflow-auto rf-bg-white",Ve?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Ze.jsx(sD,{fallbackRender:({error:bt})=>Ze.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200",children:Ze.jsxs("div",{className:"rf-p-4",children:[Ze.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-3",children:"Error loading Schematic"}),Ze.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?Ze.jsx(tTn,{circuitJson:o,containerStyle:{height:"100%"},editingEnabled:!0,onEditEvent:bt=>{B==null||B(bt)},debugGrid:re}):Ze.jsx(J6,{onRunClicked:t})})})}),(!z||z.includes("cad"))&&Ze.jsx(M5,{value:"cad",children:Ze.jsx("div",{className:Cp("rf-overflow-auto",Ve?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Ze.jsx(sD,{FallbackComponent:I6n,children:o?Ze.jsx(y6n,{ref:$e,circuitJson:o,autoRotateDisabled:q}):Ze.jsx(J6,{onRunClicked:t})})})}),(!z||z.includes("bom"))&&Ze.jsx(M5,{value:"bom",children:Ze.jsx("div",{className:Cp("rf-overflow-auto",Ve?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Ze.jsx(sD,{fallbackRender:({error:bt})=>Ze.jsx("div",{className:"rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200",children:Ze.jsxs("div",{className:"rf-p-4",children:[Ze.jsx("h3",{className:"rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-3",children:"Error loading Bill of Materials"}),Ze.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?Ze.jsx(lTn,{circuitJson:o}):Ze.jsx(J6,{onRunClicked:t})})})}),(!z||z.includes("circuit_json"))&&Ze.jsx(M5,{value:"circuit_json",children:Ze.jsx("div",{className:Cp("rf-overflow-auto",Ve?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:Ze.jsx(sD,{fallback:Ze.jsx("div",{children:"Error loading JSON viewer"}),children:o?Ze.jsx(sTn,{elements:o}):Ze.jsx(J6,{onRunClicked:t})})})}),(!z||z.includes("errors"))&&Ze.jsx(M5,{value:"errors",children:Ze.jsx("div",{className:Cp("rf-overflow-auto",Ve?"rf-h-screen":"rf-h-full rf-min-h-[620px]"),children:n||et&&et.length>0||o?Ze.jsx(EDn,{code:i,fsMap:e,circuitJsonErrors:et,circuitJsonWarnings:lt,errorMessage:n,errorStack:r,circuitJson:o,evalVersion:Se,autoroutingLog:S,onReportAutoroutingLog:U}):Ze.jsx(J6,{onRunClicked:t})})}),d&&(!z||z.includes("render_log"))&&Ze.jsx(M5,{value:"render_log",children:Ze.jsx(qci,{renderLog:p})})]})})})};var dee="Dialog",[wxt,Sxt]=lw(dee),[tli,N3]=wxt(dee),Bxt=i=>{const{__scopeDialog:e,children:t,open:n,defaultOpen:r,onOpenChange:o,modal:a=!0}=i,s=ut.useRef(null),c=ut.useRef(null),[l,u]=MM({prop:n,defaultProp:r??!1,onChange:o,caller:dee});return Ze.jsx(tli,{scope:e,triggerRef:s,contentRef:c,contentId:e2(),titleId:e2(),descriptionId:e2(),open:l,onOpenChange:u,onOpenToggle:ut.useCallback(()=>u(d=>!d),[u]),modal:a,children:t})};Bxt.displayName=dee;var Mxt="DialogTrigger",Rxt=ut.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=N3(Mxt,t),o=rx(e,r.triggerRef);return Ze.jsx(ay.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Uwe(r.open),...n,ref:o,onClick:uA(i.onClick,r.onOpenToggle)})});Rxt.displayName=Mxt;var Lwe="DialogPortal",[nli,Qxt]=wxt(Lwe,{forceMount:void 0}),Dxt=i=>{const{__scopeDialog:e,forceMount:t,children:n,container:r}=i,o=N3(Lwe,e);return Ze.jsx(nli,{scope:e,forceMount:t,children:ut.Children.map(n,a=>Ze.jsx(E5,{present:t||o.open,children:Ze.jsx(oq,{asChild:!0,container:r,children:a})}))})};Dxt.displayName=Lwe;var hee="DialogOverlay",Nxt=ut.forwardRef((i,e)=>{const t=Qxt(hee,i.__scopeDialog),{forceMount:n=t.forceMount,...r}=i,o=N3(hee,i.__scopeDialog);return o.modal?Ze.jsx(E5,{present:n||o.open,children:Ze.jsx(rli,{...r,ref:e})}):null});Nxt.displayName=hee;var ili=BM("DialogOverlay.RemoveScroll"),rli=ut.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=N3(hee,t);return Ze.jsx(fq,{as:ili,allowPinchZoom:!0,shards:[r.contentRef],children:Ze.jsx(ay.div,{"data-state":Uwe(r.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),yR="DialogContent",Txt=ut.forwardRef((i,e)=>{const t=Qxt(yR,i.__scopeDialog),{forceMount:n=t.forceMount,...r}=i,o=N3(yR,i.__scopeDialog);return Ze.jsx(E5,{present:n||o.open,children:o.modal?Ze.jsx(oli,{...r,ref:e}):Ze.jsx(ali,{...r,ref:e})})});Txt.displayName=yR;var oli=ut.forwardRef((i,e)=>{const t=N3(yR,i.__scopeDialog),n=ut.useRef(null),r=rx(e,t.contentRef,n);return ut.useEffect(()=>{const o=n.current;if(o)return vbe(o)},[]),Ze.jsx(kxt,{...i,ref:r,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:uA(i.onCloseAutoFocus,o=>{var a;o.preventDefault(),(a=t.triggerRef.current)==null||a.focus()}),onPointerDownOutside:uA(i.onPointerDownOutside,o=>{const a=o.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&o.preventDefault()}),onFocusOutside:uA(i.onFocusOutside,o=>o.preventDefault())})}),ali=ut.forwardRef((i,e)=>{const t=N3(yR,i.__scopeDialog),n=ut.useRef(!1),r=ut.useRef(!1);return Ze.jsx(kxt,{...i,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a,s;(a=i.onCloseAutoFocus)==null||a.call(i,o),o.defaultPrevented||(n.current||(s=t.triggerRef.current)==null||s.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 a=o.target;((l=t.triggerRef.current)==null?void 0:l.contains(a))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&r.current&&o.preventDefault()}})}),kxt=ut.forwardRef((i,e)=>{const{__scopeDialog:t,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:o,...a}=i,s=N3(yR,t),c=ut.useRef(null),l=rx(e,c);return ebe(),Ze.jsxs(Ze.Fragment,{children:[Ze.jsx(XW,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:o,children:Ze.jsx(KW,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Uwe(s.open),...a,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),Ze.jsxs(Ze.Fragment,{children:[Ze.jsx(cli,{titleId:s.titleId}),Ze.jsx(uli,{contentRef:c,descriptionId:s.descriptionId})]})]})}),Fwe="DialogTitle",Pxt=ut.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=N3(Fwe,t);return Ze.jsx(ay.h2,{id:r.titleId,...n,ref:e})});Pxt.displayName=Fwe;var Lxt="DialogDescription",Fxt=ut.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=N3(Lxt,t);return Ze.jsx(ay.p,{id:r.descriptionId,...n,ref:e})});Fxt.displayName=Lxt;var Uxt="DialogClose",Oxt=ut.forwardRef((i,e)=>{const{__scopeDialog:t,...n}=i,r=N3(Uxt,t);return Ze.jsx(ay.button,{type:"button",...n,ref:e,onClick:uA(i.onClick,()=>r.onOpenChange(!1))})});Oxt.displayName=Uxt;function Uwe(i){return i?"open":"closed"}var Gxt="DialogTitleWarning",[sli,zxt]=Qnn(Gxt,{contentName:yR,titleName:Fwe,docsSlug:"dialog"}),cli=({titleId:i})=>{const e=zxt(Gxt),t=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
13861
13861
|
|
|
13862
13862
|
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
13863
13863
|
|
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.
|
|
5
|
+
"version": "0.0.774",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./dist/preview.js",
|
|
8
8
|
"./preview": "./dist/preview.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"circuit-json-to-bom-csv": "^0.0.7",
|
|
66
66
|
"circuit-json-to-gerber": "^0.0.30",
|
|
67
67
|
"circuit-json-to-pnp-csv": "^0.0.7",
|
|
68
|
-
"circuit-to-svg": "^0.0.
|
|
68
|
+
"circuit-to-svg": "^0.0.175",
|
|
69
69
|
"class-variance-authority": "^0.7.1",
|
|
70
70
|
"clsx": "^2.1.1",
|
|
71
71
|
"cmdk": "^1.1.1",
|