rushabhcodes/usb-audio-dac

A tscircuit package created by rushabhcodes.

Version
1.1.2
License
unset
Stars
0

dist/index.js

import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
import { Fragment as Fragment$1 } from 'react';
import { assembly, jscad } from 'tscircuit';
import { glyphAdvanceRatio, glyphLineAlphabet } from '@tscircuit/alphabet';

/** Existing optional PCB holes; the snap-fit cover does not need screws. */
const mountingPoints = [[-23.5, -12.5], [-23.5, 12.5], [23.5, -12.5], [23.5, 12.5]];
/** Millimetres in the PCB frame: board centre z=0, surfaces z=±0.8. */
const enclosureDimensions = {
    width: 58,
    length: 36,
    wall: 1.6,
    floorBottom: -3.8,
    floorTop: -2.2,
    seam: 6.7,
    lidTop: 8.3,
    skirtBottom: 1.05,
    skirtThickness: 0.8,
    fitClearance: 0.2,
};
const d = enclosureDimensions;
const innerWidth = d.width - 2 * d.wall;
const innerLength = d.length - 2 * d.wall;
const skirtWidth = innerWidth - 2 * d.fitClearance;
const skirtLength = innerLength - 2 * d.fitClearance;
const snapPositions = [-15, 15];
const sides = [-1, 1];
function Box({ width, length, bottom, top, x = 0, y = 0 }) {
    return jsx(jscad.cuboid, { size: [width, length, top - bottom], center: [x, y, (top + bottom) / 2] });
}
/** Cuts both the wall and lid skirt. Datums follow the current connector models. */
function PortOpenings({ openTop = false }) {
    return jsx(Fragment, { children: [
            { x: -28, z: 2.4255, width: 12.6, height: 7.6, radius: 3.8 },
            { x: 28, z: 3.25, width: 10, height: 6.5, radius: 0.8 },
        ].map(({ x, z, width, height, radius }) => jsxs(jscad.union, { children: [jsx(jscad.hull, { children: sides.flatMap((ySide) => sides.map((zSide) => jsx(jscad.cylinder, { radius: radius, height: 6, center: [x, ySide * (width / 2 - radius), z + zSide * (height / 2 - radius)], rotation: [0, Math.PI / 2, 0] }, `${ySide}/${zSide}`))) }), openTop && jsx(Box, { x: x, width: 6, length: width, bottom: z, top: d.seam + 0.1 })] }, x)) });
}
/** A ramp deflects each lid tongue inward; its flat shoulder catches the window. */
function SnapHook({ x, side }) {
    const points = [[16, 1.1], [16.7, 2.05], [16, 2.05]]
        .map(([y, z]) => [side * y, z]);
    if (side < 0)
        points.reverse();
    return jsx(jscad.translate, { offset: [x - 3, 0, 0], children: jsx(jscad.rotate, { angles: [Math.PI / 2, 0, Math.PI / 2], children: jsx(jscad.extrudeLinear, { height: 6, children: jsx(jscad.polygon, { points: points }) }) }) });
}
/** Two printable parts: a shallow tray with PCB ledges and a snap-on lid. */
function SnapFitEnclosure() {
    return jsxs(Fragment, { children: [jsx(assembly.printedpart, { name: "CaseBase", color: "#555555", material: "petg", jscad: jsxs(jscad.subtract, { children: [jsxs(jscad.union, { children: [jsxs(jscad.subtract, { children: [jsx(Box, { width: d.width, length: d.length, bottom: d.floorBottom, top: d.seam }), jsx(Box, { width: innerWidth, length: innerLength, bottom: d.floorTop, top: d.seam + 0.1 })] }), [-23.5, 23.5].flatMap((x) => sides.map((side) => jsx(Box, { x: x, y: side * 15.4, width: 5, length: 3, bottom: d.floorTop - 0.1, top: -0.8 }, `${x}/${side}`)))] }), jsx(PortOpenings, { openTop: true }), snapPositions.flatMap((x) => sides.map((side) => jsx(Box, { x: x, y: side * 17.1, width: 6.6, length: 2.2, bottom: 0.9, top: 2.25 }, `${x}/${side}`)))] }) }), jsx(assembly.printedpart, { name: "CaseLid", color: "#777777", material: "petg", jscad: jsxs(jscad.subtract, { children: [jsxs(jscad.union, { children: [jsx(Box, { width: d.width, length: d.length, bottom: d.seam, top: d.lidTop }), jsxs(jscad.subtract, { children: [jsx(Box, { width: skirtWidth, length: skirtLength, bottom: d.skirtBottom, top: d.seam + 0.1 }), jsx(Box, { width: skirtWidth - 2 * d.skirtThickness, length: skirtLength - 2 * d.skirtThickness, bottom: d.skirtBottom - 0.1, top: d.seam + 0.2 })] }), snapPositions.flatMap((x) => sides.map((side) => jsx(SnapHook, { x: x, side: side }, `${x}/${side}`)))] }), jsx(PortOpenings, {}), snapPositions.flatMap((x) => sides.flatMap((side) => sides.map((edge) => jsx(Box, { x: x + edge * 3.3, y: side * 16, width: 0.6, length: 2, bottom: d.skirtBottom - 0.1, top: 6.25 }, `${x}/${side}/${edge}`))))] }) })] });
}

const pinLabels$6 = {
    pin1: ["XTO"],
    pin2: ["CK"],
    pin3: ["DT"],
    pin4: ["PSEL"],
    pin5: ["DOUT"],
    pin6: ["DGND"],
    pin7: ["VDD"],
    pin8: ["D_NEG"],
    pin9: ["D_POS"],
    pin10: ["VBUS"],
    pin11: ["ZGND"],
    pin12: ["AGNDL"],
    pin13: ["VCCL"],
    pin14: ["VOUTL"],
    pin15: ["VOUTR"],
    pin16: ["VCCR"],
    pin17: ["AGNDR"],
    pin18: ["VCOM"],
    pin19: ["PGND"],
    pin20: ["VCCP"],
    pin21: ["HOST"],
    pin22: ["HID0", "MS"],
    pin23: ["HID1", "MC"],
    pin24: ["HID2", "MD"],
    pin25: ["TEST1"],
    pin26: ["TEST0"],
    pin27: ["N_SSPND"],
    pin28: ["XTI"]
};
// This project uses bus-powered mode and leaves CK/S/PDIF unused.
const pinAttributes$3 = {
    pin7: { providesPower: true, providesVoltage: "3.3V" },
    pin10: { requiresPower: true }, pin19: { requiresGround: true },
    pin13: { providesPower: true }, pin16: { providesPower: true },
    pin20: { providesPower: true }, pin2: { doNotConnect: true },
    pin5: { doNotConnect: true }, pin27: { isOutput: true },
};
const PCM2704CDBR = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$6, pinAttributes: pinAttributes$3, supplierPartNumbers: {
            "jlcpcb": [
                "C2859784"
            ]
        }, manufacturerPartNumber: "PCM2704CDBR", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-4.225036mm", pcbY: "-3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-3.57505mm", pcbY: "-3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "-2.925064mm", pcbY: "-3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "-2.275078mm", pcbY: "-3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "-1.625092mm", pcbY: "-3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "-0.975106mm", pcbY: "-3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "-0.324866mm", pcbY: "-3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "0.32512mm", pcbY: "-3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin9"], pcbX: "0.975106mm", pcbY: "-3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin10"], pcbX: "1.625092mm", pcbY: "-3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin11"], pcbX: "2.275078mm", pcbY: "-3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin12"], pcbX: "2.925064mm", pcbY: "-3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin13"], pcbX: "3.57505mm", pcbY: "-3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin14"], pcbX: "4.225036mm", pcbY: "-3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin28"], pcbX: "-4.225036mm", pcbY: "3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin27"], pcbX: "-3.57505mm", pcbY: "3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin26"], pcbX: "-2.925064mm", pcbY: "3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin25"], pcbX: "-2.275078mm", pcbY: "3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin24"], pcbX: "-1.625092mm", pcbY: "3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin23"], pcbX: "-0.975106mm", pcbY: "3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin22"], pcbX: "-0.324866mm", pcbY: "3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin21"], pcbX: "0.32512mm", pcbY: "3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin20"], pcbX: "0.975106mm", pcbY: "3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin19"], pcbX: "1.625092mm", pcbY: "3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin18"], pcbX: "2.275078mm", pcbY: "3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin17"], pcbX: "2.925064mm", pcbY: "3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin16"], pcbX: "3.57505mm", pcbY: "3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin15"], pcbX: "4.225036mm", pcbY: "3.455162mm", width: "0.3640074mm", height: "2.01549mm", radius: "0.1820037mm", shape: "pill" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 5.079999999999927, "y": 2.199868600000059 }, { "x": 5.079999999999927, "y": -2.158999999999878 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -5.080000000000041, "y": -0.6439915999999357 }, { "x": -5.080000000000041, "y": -2.1999955999999656 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -5.080000000000041, "y": 0.6349999999999909 }, { "x": -5.080000000000041, "y": 2.199868600000059 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -5.080000000000041, "y": 2.199868600000059 }, { "x": 5.079999999999927, "y": 2.199868600000059 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -5.080000000000041, "y": -2.1999955999999656 }, { "x": 5.079999999999927, "y": -2.1999955999999656 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -5.080000000000041, "y": -0.6439915999999357 }, { "x": -4.83527555227306, "y": -0.5953128807469739 }, { "x": -4.62780818327974, "y": -0.45668761672038727 }, { "x": -4.4891829192530395, "y": -0.24922024772706663 }, { "x": -4.440504200000078, "y": -0.004495800000086092 }, { "x": -4.4891829192530395, "y": 0.24022864772700814 }, { "x": -4.62780818327974, "y": 0.44769601672032877 }, { "x": -4.83527555227306, "y": 0.5863212807469154 }, { "x": -5.080000000000041, "y": 0.6349999999998772 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "0mm", pcbY: "5.2926mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -5.349989800000117, "y": 4.712906999999973 }, { "x": 5.349989800000003, "y": 4.712906999999973 }, { "x": 5.349989800000003, "y": -4.712906999999973 }, { "x": -5.349989800000117, "y": -4.712906999999973 }, { "x": -5.349989800000117, "y": 4.712906999999973 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2859784.obj?uuid=f6684975c608438e85ae4e120e588908",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2859784.step?uuid=f6684975c608438e85ae4e120e588908",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0, y: 0, z: 0 },
        }, ...props }));
};

const pinLabels$5 = {
    pin1: ["INL_NEG"],
    pin2: ["INL_POS"],
    pin3: ["INR_POS"],
    pin4: ["INR_NEG"],
    pin5: ["OUTR"],
    pin6: ["G0"],
    pin7: ["G1"],
    pin8: ["HPVSS"],
    pin9: ["CPN"],
    pin10: ["PGND"],
    pin11: ["CPP"],
    pin12: ["HPVDD"],
    pin13: ["EN"],
    pin14: ["VDD"],
    pin15: ["SGND"],
    pin16: ["OUTL"],
    pin17: ["EP"]
};
const pinAttributes$2 = { pin10: { requiresGround: true }, pin14: { requiresPower: true },
    pin13: { isInput: true }, pin12: { providesPower: true }, pin8: { providesPower: true }
};
const TPA6132A2RTER = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$5, pinAttributes: pinAttributes$2, supplierPartNumbers: {
            "jlcpcb": [
                "C69901"
            ]
        }, manufacturerPartNumber: "TPA6132A2RTER", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-1.499997mm", pcbY: "0.749173mm", width: "0.7999984mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-1.499997mm", pcbY: "0.248793mm", width: "0.7999984mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "-1.499997mm", pcbY: "-0.249047mm", width: "0.7999984mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "-1.499997mm", pcbY: "-0.749427mm", width: "0.7999984mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "-0.749173mm", pcbY: "-1.499997mm", width: "0.2800096mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "-0.248793mm", pcbY: "-1.499997mm", width: "0.2800096mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "0.249047mm", pcbY: "-1.499997mm", width: "0.2800096mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "0.749427mm", pcbY: "-1.499997mm", width: "0.2800096mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin9"], pcbX: "1.499997mm", pcbY: "-0.749427mm", width: "0.7999984mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin10"], pcbX: "1.499997mm", pcbY: "-0.249047mm", width: "0.7999984mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin11"], pcbX: "1.499997mm", pcbY: "0.248793mm", width: "0.7999984mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin12"], pcbX: "1.499997mm", pcbY: "0.749173mm", width: "0.7999984mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin13"], pcbX: "0.749427mm", pcbY: "1.499997mm", width: "0.2800096mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin14"], pcbX: "0.249047mm", pcbY: "1.499997mm", width: "0.2800096mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin15"], pcbX: "-0.248793mm", pcbY: "1.499997mm", width: "0.2800096mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin16"], pcbX: "-0.749173mm", pcbY: "1.499997mm", width: "0.2800096mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin17"], pcbX: "0.000127mm", pcbY: "-0.000127mm", width: "1.5999968mm", height: "1.5999968mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.2750291999999988, "y": -1.7249648000000022 }, { "x": -1.7248631999999944, "y": -1.7249648000000022 }, { "x": -1.7248631999999944, "y": -1.2751307999999995 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.7248631999999944, "y": 1.2750292000000059 }, { "x": -1.7248631999999944, "y": 1.7248632000000015 }, { "x": -1.2750291999999988, "y": 1.7248632000000015 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.2751307999999995, "y": 1.7248632000000015 }, { "x": 1.7249648000000093, "y": 1.7248632000000015 }, { "x": 1.7249648000000093, "y": 1.2750292000000059 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.2751307999999995, "y": -1.7249648000000022 }, { "x": 1.7249648000000093, "y": -1.7249648000000022 }, { "x": 1.7249648000000093, "y": -1.2751307999999995 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -2.0751291999999992, "y": 1.523949199999997 }, { "x": -2.2257712297039305, "y": 1.672690255997658 }, { "x": -2.3751486240147415, "y": 1.522679199999999 }, { "x": -2.2257712297039305, "y": 1.3726681440023398 }, { "x": -2.0751291999999992, "y": 1.5214092000000008 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.243713mm", pcbY: "2.894713mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -2.149996200000004, "y": 2.149996200000004 }, { "x": 2.149996200000004, "y": 2.149996200000004 }, { "x": 2.149996200000004, "y": -2.149996200000004 }, { "x": -2.149996200000004, "y": -2.149996200000004 }, { "x": -2.149996200000004, "y": 2.149996200000004 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C69901.obj?uuid=15670b08c1a4478b80e58259b300f053",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C69901.step?uuid=15670b08c1a4478b80e58259b300f053",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0, y: 0, z: -0.02 },
        }, ...props }));
};

const pinLabels$4 = {
    pin1: ["IN"],
    pin2: ["GND"],
    pin3: ["EN"],
    pin4: ["N", "C"],
    pin5: ["OUT"]
};
const pinAttributes$1 = { pin1: { requiresPower: true }, pin2: { requiresGround: true },
    pin4: { doNotConnect: true }, pin5: { providesPower: true, providesVoltage: "3.3V" }
};
const LP5907MFX_3_3_NOPB = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$4, pinAttributes: pinAttributes$1, supplierPartNumbers: {
            "jlcpcb": [
                "C80670"
            ]
        }, manufacturerPartNumber: "LP5907MFX-3.3/NOPB", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin5"], pcbX: "-1.300099mm", pcbY: "-0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "-1.300099mm", pcbY: "0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "1.300099mm", pcbY: "0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "1.300099mm", pcbY: "-0mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "1.300099mm", pcbY: "-0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.9000489999999672, "y": 1.5499587999998994 }, { "x": 0.8999728000000005, "y": 1.5499587999998994 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.9000489999999672, "y": -1.5500604000000067 }, { "x": 0.8999728000000005, "y": -1.5500604000000067 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "0.012319mm", pcbY: "2.562354mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -2.1000978999999234, "y": 1.6999843999999484 }, { "x": 2.1000978999999234, "y": 1.6999843999999484 }, { "x": 2.1000978999999234, "y": -1.7000097999999753 }, { "x": -2.1000978999999234, "y": -1.7000097999999753 }, { "x": -2.1000978999999234, "y": 1.6999843999999484 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C80670.obj?uuid=460193f9bf2d42e58cf3c2f675b07dc6",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C80670.step?uuid=460193f9bf2d42e58cf3c2f675b07dc6",
            pcbRotationOffset: 180,
            modelOriginPosition: { x: 0, y: -12700000070253736e-21, z: -0.049083 },
        }, ...props }));
};

const pinLabels$3 = {
    pin1: ["pin1"],
    pin2: ["pin2"],
    pin3: ["pin3"],
    pin4: ["pin4"],
    pin5: ["pin5"],
    pin6: ["pin6"]
};
const USBLC6_2SC6 = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$3, pinAttributes: { pin1: { isPassive: true }, pin2: { requiresGround: true },
            pin3: { isPassive: true }, pin4: { isPassive: true },
            pin5: { requiresPower: true }, pin6: { isPassive: true } }, symbol: jsxs("symbol", { children: [jsx("schematicpath", { points: [{ "x": -0.9, "y": 1 }, { "x": 0.9, "y": 1 }, { "x": 0.9, "y": -1 }, { "x": -0.9, "y": -1 }, { "x": -0.9, "y": 1 }], strokeWidth: 0.02, strokeColor: "#880000", isFilled: true, fillColor: "#FFFFFF" }), jsx("port", { name: "pin1", pinNumber: 1, aliases: ["1"], direction: "left", schX: -1.3, schY: 0.6, schStemLength: 0.4 }), jsx("port", { name: "pin2", pinNumber: 2, aliases: ["2"], direction: "left", schX: -1.3, schY: 0, schStemLength: 0.4 }), jsx("port", { name: "pin3", pinNumber: 3, aliases: ["3"], direction: "left", schX: -1.3, schY: -0.6, schStemLength: 0.4 }), jsx("port", { name: "pin4", pinNumber: 4, aliases: ["4"], direction: "right", schX: 1.3, schY: -0.6, schStemLength: 0.4 }), jsx("port", { name: "pin5", pinNumber: 5, aliases: ["5"], direction: "right", schX: 1.3, schY: 0, schStemLength: 0.4 }), jsx("port", { name: "pin6", pinNumber: 6, aliases: ["6"], direction: "right", schX: 1.3, schY: 0.6, schStemLength: 0.4 }), jsx("schematicpath", { points: [{ "x": -0.9, "y": 0.6 }, { "x": 0.9, "y": 0.6 }], strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": -0.9, "y": -0.6 }, { "x": 0.9, "y": -0.6 }], strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": -0.9, "y": 0 }, { "x": 0.9, "y": 0 }], strokeColor: "#880000" }), jsx("schematicpath", { svgPath: "M -0.14 -0.12 L 0.06 0 L -0.14 0.14 Z", strokeColor: "#880000", isFilled: true, fillColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0.1, "y": 0.16 }, { "x": 0.06, "y": 0.16 }, { "x": 0.06, "y": -0.14 }, { "x": 0, "y": -0.14 }], strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": -0.68, "y": 0 }, { "x": -0.68, "y": 0.4 }, { "x": 0.66, "y": 0.4 }, { "x": 0.66, "y": -0.4 }, { "x": -0.68, "y": -0.4 }, { "x": -0.68, "y": 0 }], strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0, "y": 0.6 }, { "x": 0, "y": 0.4 }], strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0, "y": -0.6 }, { "x": 0, "y": -0.4 }], strokeColor: "#880000" }), jsx("schematicpath", { svgPath: "M -0.46 0.28 L -0.26 0.4 L -0.46 0.54 Z", strokeColor: "#880000", isFilled: true, fillColor: "#880000" }), jsx("schematicpath", { points: [{ "x": -0.26, "y": 0.56 }, { "x": -0.26, "y": 0.56 }, { "x": -0.26, "y": 0.26 }, { "x": -0.26, "y": 0.26 }], strokeColor: "#880000" }), jsx("schematicpath", { svgPath: "M 0.22 0.28 L 0.42 0.4 L 0.22 0.54 Z", strokeColor: "#880000", isFilled: true, fillColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0.42, "y": 0.56 }, { "x": 0.42, "y": 0.56 }, { "x": 0.42, "y": 0.26 }, { "x": 0.42, "y": 0.26 }], strokeColor: "#880000" }), jsx("schematicpath", { svgPath: "M -0.48 -0.52 L -0.28 -0.4 L -0.48 -0.26 Z", strokeColor: "#880000", isFilled: true, fillColor: "#880000" }), jsx("schematicpath", { points: [{ "x": -0.28, "y": -0.24 }, { "x": -0.28, "y": -0.24 }, { "x": -0.28, "y": -0.54 }, { "x": -0.28, "y": -0.54 }], strokeColor: "#880000" }), jsx("schematicpath", { svgPath: "M 0.22 -0.52 L 0.42 -0.4 L 0.22 -0.26 Z", strokeColor: "#880000", isFilled: true, fillColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0.42, "y": -0.24 }, { "x": 0.42, "y": -0.24 }, { "x": 0.42, "y": -0.54 }, { "x": 0.42, "y": -0.54 }], strokeColor: "#880000" }), jsx("schematiccircle", { center: { x: 0, y: 0.6 }, radius: 0.02, strokeWidth: 0.02, color: "#880000" }), jsx("schematiccircle", { center: { x: 0, y: 0.4 }, radius: 0.02, strokeWidth: 0.02, color: "#880000" }), jsx("schematiccircle", { center: { x: -0.68, y: 0 }, radius: 0.02, strokeWidth: 0.02, color: "#880000" }), jsx("schematiccircle", { center: { x: 0.66, y: 0 }, radius: 0.02, strokeWidth: 0.02, color: "#880000" }), jsx("schematiccircle", { center: { x: 0, y: -0.4 }, radius: 0.02, strokeWidth: 0.02, color: "#880000" }), jsx("schematiccircle", { center: { x: 0, y: -0.6 }, radius: 0.02, strokeWidth: 0.02, color: "#880000" }), jsx("schematictext", { schX: 0, schY: 1.2, text: "{NAME}", fontSize: 0.2, anchor: "bottom_center" })] }), supplierPartNumbers: {
            "jlcpcb": [
                "C7519"
            ]
        }, manufacturerPartNumber: "USBLC6-2SC6", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.94996mm", pcbY: "-1.149096mm", width: "0.532003mm", height: "1.072007mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "0mm", pcbY: "-1.149096mm", width: "0.532003mm", height: "1.072007mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "0.94996mm", pcbY: "-1.149096mm", width: "0.532003mm", height: "1.072007mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "0.94996mm", pcbY: "1.149096mm", width: "0.532003mm", height: "1.072007mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "0mm", pcbY: "1.149096mm", width: "0.532003mm", height: "1.072007mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "-0.94996mm", pcbY: "1.149096mm", width: "0.532003mm", height: "1.072007mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.5391891999998961, "y": -0.8892031999998835 }, { "x": 1.5391891999998961, "y": 0.8892031999999972 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.5391892000000098, "y": -0.8892031999998835 }, { "x": -1.5391892000000098, "y": 0.8892031999999972 }] }), jsx("silkscreencircle", { strokeWidth: 0.15, pcbX: "-1.668272mm", pcbY: "-1.301496mm", radius: "0.150114mm" }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.1524mm", pcbY: "2.6764mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -1.6999843999999484, "y": 1.9350994999999784 }, { "x": 1.7000097999999753, "y": 1.9350994999999784 }, { "x": 1.7000097999999753, "y": -1.9350994999998647 }, { "x": -1.6999843999999484, "y": -1.9350994999998647 }, { "x": -1.6999843999999484, "y": 1.9350994999999784 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C7519.obj?uuid=229b69761e2c45dba6a83d8866dec72d",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C7519.step?uuid=229b69761e2c45dba6a83d8866dec72d",
            pcbRotationOffset: 90,
            modelOriginPosition: { x: -12700000070253736e-21, y: 0.000012700000070253736, z: -0.048939 },
        }, ...props }));
};

const pinLabels$2 = {
    pin1: ["EH2"],
    pin2: ["EH1"],
    pin3: ["EH4"],
    pin4: ["EH3"],
    pin5: ["SBU2", "B8"],
    pin6: ["CC1", "A5"],
    pin7: ["DN2", "B7"],
    pin8: ["DP1", "A6"],
    pin9: ["DN1", "A7"],
    pin10: ["DP2", "B6"],
    pin11: ["SBU1", "A8"],
    pin12: ["CC2", "B5"],
    pin13: ["GND1", "A1B12"],
    pin14: ["GND2", "B1A12"],
    pin15: ["VBUS1", "B4A9"],
    pin16: ["VBUS2", "A4B9"]
};
const pinAttributes = {
    pin5: { doNotConnect: true }, pin11: { doNotConnect: true },
    pin13: { providesGround: true }, pin14: { providesGround: true },
    pin15: { providesPower: true, providesVoltage: "5V" },
    pin16: { providesPower: true, providesVoltage: "5V" },
};
const TYPE_C_31_M_12 = (props) => {
    return (jsx("connector", { pinLabels: pinLabels$2, pinAttributes: pinAttributes, supplierPartNumbers: {
            "jlcpcb": [
                "C165948"
            ]
        }, manufacturerPartNumber: "TYPE-C-31-M-12", footprint: jsxs("footprint", { insertionDirection: "from_bottom", children: [jsx("hole", { pcbX: "-2.899918mm", pcbY: "0.9055672mm", diameter: "0.5999988mm" }), jsx("hole", { pcbX: "2.899918mm", pcbY: "0.9055672mm", diameter: "0.5999988mm" }), jsx("platedhole", { portHints: ["pin2"], pcbX: "4.325112mm", pcbY: "-2.7741308mm", holeWidth: "0.7999984mm", holeHeight: "1.1999976mm", outerWidth: "1.1999976mm", outerHeight: "1.7999964mm", shape: "pill" }), jsx("platedhole", { portHints: ["pin1"], pcbX: "4.325112mm", pcbY: "1.4056932mm", holeWidth: "0.7999984mm", holeHeight: "1.499997mm", outerWidth: "1.1999976mm", outerHeight: "1.999996mm", shape: "pill" }), jsx("platedhole", { portHints: ["pin4"], pcbX: "-4.325112mm", pcbY: "1.4056932mm", holeWidth: "0.7999984mm", holeHeight: "1.499997mm", outerWidth: "1.1999976mm", outerHeight: "1.999996mm", shape: "pill" }), jsx("platedhole", { portHints: ["pin3"], pcbX: "-4.325112mm", pcbY: "-2.7741308mm", holeWidth: "0.7999984mm", holeHeight: "1.1999976mm", outerWidth: "1.1999976mm", outerHeight: "1.7999964mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "-1.75006mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "-1.249934mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "-0.750062mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "-0.249936mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin9"], pcbX: "0.249936mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin10"], pcbX: "0.750062mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin11"], pcbX: "1.24968mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin12"], pcbX: "1.75006mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin13"], points: [{ x: "-2.8999688mm", y: "1.524108mm" }, { x: "-2.8999688mm", y: "2.8241308mm" }, { x: "-2.8999688mm", y: "2.8241308mm" }, { x: "-3.1999682mm", y: "2.8241308mm" }, { x: "-3.1999682mm", y: "2.8241308mm" }, { x: "-3.1999682mm", y: "2.8239784mm" }, { x: "-3.1999682mm", y: "2.8239784mm" }, { x: "-3.4999422mm", y: "2.8239784mm" }, { x: "-3.4999422mm", y: "2.8239784mm" }, { x: "-3.4999422mm", y: "1.5239556mm" }, { x: "-3.4999422mm", y: "1.5239556mm" }, { x: "-3.1999428mm", y: "1.5239556mm" }, { x: "-3.1999428mm", y: "1.5239556mm" }, { x: "-3.1999428mm", y: "1.524108mm" }, { x: "-3.1999428mm", y: "1.524108mm" }, { x: "-2.8999688mm", y: "1.524108mm" }], shape: "polygon" }), jsx("smtpad", { portHints: ["pin14"], points: [{ x: "2.8999942mm", y: "2.8241308mm" }, { x: "2.8999942mm", y: "1.5241588mm" }, { x: "2.8999942mm", y: "1.5241588mm" }, { x: "3.1999936mm", y: "1.5241588mm" }, { x: "3.1999936mm", y: "1.5241588mm" }, { x: "3.200019mm", y: "1.5241588mm" }, { x: "3.200019mm", y: "1.5241588mm" }, { x: "3.5000184mm", y: "1.5241588mm" }, { x: "3.5000184mm", y: "1.5241588mm" }, { x: "3.5000184mm", y: "2.8241308mm" }, { x: "3.5000184mm", y: "2.8241308mm" }, { x: "3.200019mm", y: "2.8241308mm" }, { x: "3.200019mm", y: "2.8241308mm" }, { x: "3.1999936mm", y: "2.8241308mm" }, { x: "3.1999936mm", y: "2.8241308mm" }, { x: "2.8999942mm", y: "2.8241308mm" }], shape: "polygon" }), jsx("smtpad", { portHints: ["pin15"], points: [{ x: "2.7001724mm", y: "1.5241588mm" }, { x: "2.7001724mm", y: "2.8241308mm" }, { x: "2.7001724mm", y: "2.8241308mm" }, { x: "2.400173mm", y: "2.8241308mm" }, { x: "2.400173mm", y: "2.8241308mm" }, { x: "2.4001476mm", y: "2.8241308mm" }, { x: "2.4001476mm", y: "2.8241308mm" }, { x: "2.1001482mm", y: "2.8241308mm" }, { x: "2.1001482mm", y: "2.8241308mm" }, { x: "2.1001482mm", y: "1.5241588mm" }, { x: "2.1001482mm", y: "1.5241588mm" }, { x: "2.4001476mm", y: "1.5241588mm" }, { x: "2.4001476mm", y: "1.5241588mm" }, { x: "2.400173mm", y: "1.5241588mm" }, { x: "2.400173mm", y: "1.5241588mm" }, { x: "2.7001724mm", y: "1.5241588mm" }], shape: "polygon" }), jsx("smtpad", { portHints: ["pin16"], points: [{ x: "-2.0999704mm", y: "1.5240064mm" }, { x: "-2.0999704mm", y: "2.8239784mm" }, { x: "-2.0999704mm", y: "2.8239784mm" }, { x: "-2.3999952mm", y: "2.8239784mm" }, { x: "-2.3999952mm", y: "2.8239784mm" }, { x: "-2.3999952mm", y: "2.823953mm" }, { x: "-2.3999952mm", y: "2.823953mm" }, { x: "-2.6999438mm", y: "2.823953mm" }, { x: "-2.6999438mm", y: "2.823953mm" }, { x: "-2.6999438mm", y: "1.523981mm" }, { x: "-2.6999438mm", y: "1.523981mm" }, { x: "-2.399919mm", y: "1.523981mm" }, { x: "-2.399919mm", y: "1.523981mm" }, { x: "-2.399919mm", y: "1.5240064mm" }, { x: "-2.399919mm", y: "1.5240064mm" }, { x: "-2.0999704mm", y: "1.5240064mm" }], shape: "polygon" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -4.4689776000000165, "y": -1.6257585999999946 }, { "x": -4.4689776000000165, "y": 0.13715359999987414 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 4.471009600000116, "y": -1.626114200000029 }, { "x": 4.471009600000116, "y": 0.13750920000002226 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "0.002794mm", pcbY: "3.8286012mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -5.17511079999997, "y": 3.074130799999921 }, { "x": 5.17511079999997, "y": 3.074130799999921 }, { "x": 5.17511079999997, "y": -5.60002099999997 }, { "x": -5.17511079999997, "y": -5.60002099999997 }, { "x": -5.17511079999997, "y": 3.074130799999921 }] })] }), cadModel: {
            modelBounds: { min: { x: -4.47, y: -5.3, z: -0.85 }, max: { x: 4.47, y: 2.6, z: 3.251 } },
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C165948.obj?uuid=617b05f9bba7410b96c001093d8189e4",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C165948.step?uuid=617b05f9bba7410b96c001093d8189e4",
            pcbRotationOffset: 180,
            modelOriginPosition: { x: 0, y: -2.7500289000000517, z: 0.000010999999999872223 },
        }, ...props }));
};

const pinLabels$1 = {
    pin1: ["pin1"],
    pin2: ["pin2"],
    pin3: ["pin3"],
    pin4: ["pin4"]
};
const PJ_320D = (props) => {
    return (jsx("connector", { pinLabels: pinLabels$1, symbol: jsxs("symbol", { children: [jsx("schematicpath", { points: [{ "x": 0, "y": -0.4 }, { "x": -0.46, "y": -0.4 }, { "x": -0.5, "y": -0.32 }, { "x": -0.54, "y": -0.4 }], strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0, "y": -0.2 }, { "x": -0.36, "y": -0.2 }, { "x": -0.4, "y": -0.12 }, { "x": -0.44, "y": -0.2 }], strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0.08, "y": 0 }, { "x": -0.26, "y": 0 }, { "x": -0.3, "y": -0.08 }, { "x": -0.34, "y": 0 }], strokeColor: "#880000" }), jsx("port", { name: "pin4", pinNumber: 4, aliases: ["4"], direction: "right", schX: 0.4, schY: 0, schStemLength: 0.4 }), jsx("port", { name: "pin2", pinNumber: 2, aliases: ["2"], direction: "right", schX: 0.4, schY: -0.4, schStemLength: 0.4 }), jsx("port", { name: "pin3", pinNumber: 3, aliases: ["3"], direction: "right", schX: 0.4, schY: -0.2, schStemLength: 0.4 }), jsx("port", { name: "pin1", pinNumber: 1, aliases: ["1"], direction: "right", schX: 0.4, schY: 0.2, schStemLength: 0.4 }), jsx("schematicrect", { schX: -0.8, schY: -0.18, width: 0.12, height: 0.36, strokeWidth: 0.02, color: "#880000" }), jsx("schematicpath", { points: [{ "x": 0, "y": 0.2 }, { "x": -0.8, "y": 0.2 }, { "x": -0.8, "y": 0 }], strokeColor: "#880000" }), jsx("schematictext", { schX: -0.21, schY: 0.602, text: "{NAME}", fontSize: 0.2, anchor: "bottom_center" })] }), supplierPartNumbers: {
            "jlcpcb": [
                "C431535"
            ]
        }, manufacturerPartNumber: "PJ-320D", footprint: jsxs("footprint", { insertionDirection: "from_left", children: [jsx("hole", { pcbX: "-5.07495175mm", pcbY: "-0.000127mm", diameter: "0.999998mm" }), jsx("hole", { pcbX: "1.92503425mm", pcbY: "-0.000127mm", diameter: "0.999998mm" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-3.57508175mm", pcbY: "3.499993mm", width: "1.499997mm", height: "2.999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "-0.57508775mm", pcbY: "3.499993mm", width: "1.499997mm", height: "2.999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "3.42490425mm", pcbY: "3.499993mm", width: "1.499997mm", height: "2.999994mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "4.82495225mm", pcbY: "-3.499993mm", width: "1.499997mm", height: "2.999994mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -5.85, "y": -3.0001210000000356 }, { "x": 3.843724849999944, "y": -3.0001210000000356 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 5.3250274499998795, "y": 2.9998670000001084 }, { "x": 5.3250274499998795, "y": -1.768856000000028 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 4.405928449999919, "y": 2.9998670000001084 }, { "x": 5.3250274499998795, "y": 2.9998670000001084 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.4059364499998992, "y": 2.9998670000001084 }, { "x": 2.4436514499999475, "y": 2.9998670000001084 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -2.594057550000116, "y": 2.9998670000001084 }, { "x": -1.5563405500001863, "y": 2.9998670000001084 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -5.85, "y": 2.9998670000001084 }, { "x": -4.5563345500002015, "y": 2.9998670000001084 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-1.59413575mm", pcbY: "6.005197mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -9.025045949999935, "y": 5.249990000000025 }, { "x": 5.824950749999971, "y": 5.249990000000025 }, { "x": 5.824950749999971, "y": -5.249989999999912 }, { "x": -9.025045949999935, "y": -5.249989999999912 }, { "x": -9.025045949999935, "y": 5.249990000000025 }] })] }), cadModel: {
            modelBounds: { min: { x: -1.5, y: -4, z: -3.1 }, max: { x: 12.6, y: 4, z: 2.74998 } },
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C431535.obj?uuid=7178d96b87ee4d73a30dddb4c856adc2",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C431535.step?uuid=7178d96b87ee4d73a30dddb4c856adc2",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 7.275060049999911, y: 0, z: -2.5500011000000002 },
        }, ...props }));
};

const X322512MSB4SI = (props) => {
    const { name = "X1", ...restProps } = props;
    return (jsx("crystal", { name: name, frequency: "12MHz", pinVariant: "four_pin", loadCapacitance: "20pF", supplierPartNumbers: {
            "jlcpcb": [
                "C9002"
            ]
        }, manufacturerPartNumber: "X322512MSB4SI", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-1.100074mm", pcbY: "-0.850011mm", width: "1.3999972mm", height: "1.1999976mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "1.100074mm", pcbY: "-0.850011mm", width: "1.3999972mm", height: "1.1999976mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "1.100074mm", pcbY: "0.850011mm", width: "1.3999972mm", height: "1.1999976mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "-1.100074mm", pcbY: "0.850011mm", width: "1.3999972mm", height: "1.1999976mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -2.028596400000083, "y": -1.6784827999999834 }, { "x": -2.028596400000083, "y": 1.678736800000138 }, { "x": 2.0285963999999694, "y": 1.678736800000138 }, { "x": 2.0285963999999694, "y": -1.6784827999999834 }, { "x": -2.028596400000083, "y": -1.6784827999999834 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -2.257196399999998, "y": -0.24988519999988057 }, { "x": -2.257196399999998, "y": -1.9070827999998983 }, { "x": -0.39999920000002476, "y": -1.9070827999998983 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.1143mm", pcbY: "2.676527mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -2.0500725999999077, "y": 1.7000097999999753 }, { "x": 2.0500725999999077, "y": 1.7000097999999753 }, { "x": 2.0500725999999077, "y": -1.7000097999999753 }, { "x": -2.0500725999999077, "y": -1.7000097999999753 }, { "x": -2.0500725999999077, "y": 1.7000097999999753 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C9002.obj?uuid=02485e56ba8d4732a26526d2983fc729",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C9002.step?uuid=02485e56ba8d4732a26526d2983fc729",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0, y: -12700000070253736e-21, z: 0 },
        }, ...restProps }));
};

const A_0603WAF220JT5E = (props) => {
    const { name = "R1", ...restProps } = props;
    return (jsx("resistor", { name: name, resistance: "22ohm", supplierPartNumbers: {
            "jlcpcb": [
                "C23345"
            ]
        }, manufacturerPartNumber: "0603WAF220JT5E", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin2"], pcbX: "0.753364mm", pcbY: "0mm", width: "0.8064754mm", height: "0.8640064mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.753364mm", pcbY: "0mm", width: "0.8064754mm", height: "0.8640064mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.42621199999996406, "y": -0.6606031999999686 }, { "x": 1.3850873999999749, "y": -0.6606031999999686 }, { "x": 1.3850873999999749, "y": 0.6606031999999686 }, { "x": 0.42621199999996406, "y": 0.6606031999999686 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.42621200000007775, "y": -0.6606031999999686 }, { "x": -1.3850874000000886, "y": -0.6606031999999686 }, { "x": -1.3850874000000886, "y": 0.6606031999999686 }, { "x": -0.42621200000007775, "y": 0.6606031999999686 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0127mm", pcbY: "1.6604mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -1.4066016999998965, "y": 0.6820032000000538 }, { "x": 1.4066016999997828, "y": 0.6820032000000538 }, { "x": 1.4066016999997828, "y": -0.6820032000000538 }, { "x": -1.4066016999998965, "y": -0.6820032000000538 }, { "x": -1.4066016999998965, "y": 0.6820032000000538 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C23345.obj?uuid=6bd5cd867e9542ebae21caaf5d2d4c4d",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C23345.step?uuid=6bd5cd867e9542ebae21caaf5d2d4c4d",
            pcbRotationOffset: 90,
            modelOriginPosition: { x: -0.004999999999999977, y: 0, z: -0.01 },
        }, ...restProps }));
};

const A_0603WAF1501T5E = (props) => {
    const { name = "R1", ...restProps } = props;
    return (jsx("resistor", { name: name, resistance: "1.5kohm", supplierPartNumbers: {
            "jlcpcb": [
                "C22843"
            ]
        }, manufacturerPartNumber: "0603WAF1501T5E", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin2"], pcbX: "0.753364mm", pcbY: "0mm", width: "0.8064754mm", height: "0.8640064mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.753364mm", pcbY: "0mm", width: "0.8064754mm", height: "0.8640064mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.42621199999996406, "y": -0.6606031999999686 }, { "x": 1.3850873999999749, "y": -0.6606031999999686 }, { "x": 1.3850873999999749, "y": 0.6606031999999686 }, { "x": 0.42621199999996406, "y": 0.6606031999999686 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.42621200000007775, "y": -0.6606031999999686 }, { "x": -1.3850874000000886, "y": -0.6606031999999686 }, { "x": -1.3850874000000886, "y": 0.6606031999999686 }, { "x": -0.42621200000007775, "y": 0.6606031999999686 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0127mm", pcbY: "1.6604mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -1.4066016999998965, "y": 0.6820032000000538 }, { "x": 1.4066016999997828, "y": 0.6820032000000538 }, { "x": 1.4066016999997828, "y": -0.6820032000000538 }, { "x": -1.4066016999998965, "y": -0.6820032000000538 }, { "x": -1.4066016999998965, "y": 0.6820032000000538 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C22843.obj?uuid=6bd5cd867e9542ebae21caaf5d2d4c4d",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C22843.step?uuid=6bd5cd867e9542ebae21caaf5d2d4c4d",
            pcbRotationOffset: 90,
            modelOriginPosition: { x: -0.004999999999999977, y: 0, z: -0.01 },
        }, ...restProps }));
};

const A_0603WAF5101T5E = (props) => {
    const { name = "R1", ...restProps } = props;
    return (jsx("resistor", { name: name, resistance: "5.1kohm", supplierPartNumbers: {
            "jlcpcb": [
                "C23186"
            ]
        }, manufacturerPartNumber: "0603WAF5101T5E", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin2"], pcbX: "0.753364mm", pcbY: "0mm", width: "0.8064754mm", height: "0.8640064mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.753364mm", pcbY: "0mm", width: "0.8064754mm", height: "0.8640064mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.42621199999996406, "y": -0.6606031999999686 }, { "x": 1.3850873999999749, "y": -0.6606031999999686 }, { "x": 1.3850873999999749, "y": 0.6606031999999686 }, { "x": 0.42621199999996406, "y": 0.6606031999999686 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.42621200000007775, "y": -0.6606031999999686 }, { "x": -1.3850874000000886, "y": -0.6606031999999686 }, { "x": -1.3850874000000886, "y": 0.6606031999999686 }, { "x": -0.42621200000007775, "y": 0.6606031999999686 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0127mm", pcbY: "1.6604mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -1.4066016999998965, "y": 0.6820032000000538 }, { "x": 1.4066016999997828, "y": 0.6820032000000538 }, { "x": 1.4066016999997828, "y": -0.6820032000000538 }, { "x": -1.4066016999998965, "y": -0.6820032000000538 }, { "x": -1.4066016999998965, "y": 0.6820032000000538 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C23186.obj?uuid=6bd5cd867e9542ebae21caaf5d2d4c4d",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C23186.step?uuid=6bd5cd867e9542ebae21caaf5d2d4c4d",
            pcbRotationOffset: 90,
            modelOriginPosition: { x: -0.004999999999999977, y: 0, z: -0.01 },
        }, ...restProps }));
};

const A_0603WAF1004T5E = (props) => {
    const { name = "R1", ...restProps } = props;
    return (jsx("resistor", { name: name, resistance: "1Mohm", supplierPartNumbers: {
            "jlcpcb": [
                "C22935"
            ]
        }, manufacturerPartNumber: "0603WAF1004T5E", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin2"], pcbX: "0.753364mm", pcbY: "0mm", width: "0.8064754mm", height: "0.8640064mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.753364mm", pcbY: "0mm", width: "0.8064754mm", height: "0.8640064mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.42621199999996406, "y": -0.6606031999999686 }, { "x": 1.3850873999999749, "y": -0.6606031999999686 }, { "x": 1.3850873999999749, "y": 0.6606031999999686 }, { "x": 0.42621199999996406, "y": 0.6606031999999686 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.42621200000007775, "y": -0.6606031999999686 }, { "x": -1.3850874000000886, "y": -0.6606031999999686 }, { "x": -1.3850874000000886, "y": 0.6606031999999686 }, { "x": -0.42621200000007775, "y": 0.6606031999999686 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0127mm", pcbY: "1.6604mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -1.4066016999998965, "y": 0.6820032000000538 }, { "x": 1.4066016999997828, "y": 0.6820032000000538 }, { "x": 1.4066016999997828, "y": -0.6820032000000538 }, { "x": -1.4066016999998965, "y": -0.6820032000000538 }, { "x": -1.4066016999998965, "y": 0.6820032000000538 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C22935.obj?uuid=6bd5cd867e9542ebae21caaf5d2d4c4d",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C22935.step?uuid=6bd5cd867e9542ebae21caaf5d2d4c4d",
            pcbRotationOffset: 90,
            modelOriginPosition: { x: -0.004999999999999977, y: 0, z: -0.01 },
        }, ...restProps }));
};

const A_0603WAF1003T5E = (props) => {
    const { name = "R1", ...restProps } = props;
    return (jsx("resistor", { name: name, resistance: "100kohm", supplierPartNumbers: {
            "jlcpcb": [
                "C25803"
            ]
        }, manufacturerPartNumber: "0603WAF1003T5E", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin2"], pcbX: "0.753364mm", pcbY: "0mm", width: "0.8064754mm", height: "0.8640064mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.753364mm", pcbY: "0mm", width: "0.8064754mm", height: "0.8640064mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.42621199999996406, "y": -0.6606031999999686 }, { "x": 1.3850873999999749, "y": -0.6606031999999686 }, { "x": 1.3850873999999749, "y": 0.6606031999999686 }, { "x": 0.42621199999996406, "y": 0.6606031999999686 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.42621200000007775, "y": -0.6606031999999686 }, { "x": -1.3850874000000886, "y": -0.6606031999999686 }, { "x": -1.3850874000000886, "y": 0.6606031999999686 }, { "x": -0.42621200000007775, "y": 0.6606031999999686 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0127mm", pcbY: "1.6604mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -1.4066016999998965, "y": 0.6820032000000538 }, { "x": 1.4066016999997828, "y": 0.6820032000000538 }, { "x": 1.4066016999997828, "y": -0.6820032000000538 }, { "x": -1.4066016999998965, "y": -0.6820032000000538 }, { "x": -1.4066016999998965, "y": 0.6820032000000538 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C25803.obj?uuid=6bd5cd867e9542ebae21caaf5d2d4c4d",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C25803.step?uuid=6bd5cd867e9542ebae21caaf5d2d4c4d",
            pcbRotationOffset: 90,
            modelOriginPosition: { x: -0.004999999999999977, y: 0, z: -0.01 },
        }, ...restProps }));
};

const CC0603KRX7R9BB104 = (props) => {
    const { name = "C1", ...restProps } = props;
    return (jsx("capacitor", { name: name, capacitance: "100nF", supplierPartNumbers: {
            "jlcpcb": [
                "C14663"
            ]
        }, manufacturerPartNumber: "CC0603KRX7R9BB104", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin2"], pcbX: "0.700024mm", pcbY: "0mm", width: "0.7999984mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.700024mm", pcbY: "0mm", width: "0.7999984mm", height: "0.8999982mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.2801873999999316, "y": -0.7095743999998376 }, { "x": -1.080160400000068, "y": -0.7095743999998376 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.28026359999989836, "y": -0.7100315999998656 }, { "x": 1.080236599999921, "y": -0.7100315999998656 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.2801873999999316, "y": 0.7101078000000598 }, { "x": -1.080160400000068, "y": 0.7101078000000598 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.28026359999989836, "y": 0.7096252000001186 }, { "x": 1.080236599999921, "y": 0.7096252000001186 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.3899134000000686, "y": -0.3997452000000976 }, { "x": -1.3899134000000686, "y": 0.40030400000000554 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.3900149999998348, "y": 0.39977060000001075 }, { "x": 1.3900149999998348, "y": -0.4002531999999519 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.080185799999981, "y": 0.7096252000001186 }, { "x": 1.299277109074751, "y": 0.6188693482574763 }, { "x": 1.3900149999998348, "y": 0.39977060000001075 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.3900149999998348, "y": -0.40020240000012564 }, { "x": 1.2992681283295724, "y": -0.6192847283296032 }, { "x": 1.080185799999981, "y": -0.7100315999998656 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.0801096000000143, "y": -0.7095743999998376 }, { "x": -1.2991755087698493, "y": -0.6188185485625581 }, { "x": -1.3899134000000686, "y": -0.3997452000000976 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.3899134000000686, "y": 0.40022780000003877 }, { "x": -1.2991934705021322, "y": 0.6193339880503572 }, { "x": -1.0801096000000143, "y": 0.7101078000000598 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0127mm", pcbY: "1.7112mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -1.3500232000000096, "y": 0.6999991000000136 }, { "x": 1.350023199999896, "y": 0.6999991000000136 }, { "x": 1.350023199999896, "y": -0.6999991000000136 }, { "x": -1.3500232000000096, "y": -0.6999991000000136 }, { "x": -1.3500232000000096, "y": 0.6999991000000136 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C14663.obj?uuid=ac9b32e974bc448eab36b1293f859dcb",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C14663.step?uuid=ac9b32e974bc448eab36b1293f859dcb",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0, y: 0, z: -0.4 },
        }, ...restProps }));
};

const CL10A105KB8NNNC = (props) => {
    const { name = "C1", ...restProps } = props;
    return (jsx("capacitor", { name: name, capacitance: "1uF", supplierPartNumbers: {
            "jlcpcb": [
                "C15849"
            ]
        }, manufacturerPartNumber: "CL10A105KB8NNNC", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin2"], pcbX: "0.700024mm", pcbY: "0mm", width: "0.7999984mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.700024mm", pcbY: "0mm", width: "0.7999984mm", height: "0.8999982mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.2801873999999316, "y": -0.7095743999998376 }, { "x": -1.080160400000068, "y": -0.7095743999998376 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.28026359999989836, "y": -0.7100315999998656 }, { "x": 1.080236599999921, "y": -0.7100315999998656 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.2801873999999316, "y": 0.7101078000000598 }, { "x": -1.080160400000068, "y": 0.7101078000000598 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.28026359999989836, "y": 0.7096252000001186 }, { "x": 1.080236599999921, "y": 0.7096252000001186 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.3899134000000686, "y": -0.3997452000000976 }, { "x": -1.3899134000000686, "y": 0.40030400000000554 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.3900149999998348, "y": 0.39977060000001075 }, { "x": 1.3900149999998348, "y": -0.4002531999999519 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.080185799999981, "y": 0.7096252000001186 }, { "x": 1.299277109074751, "y": 0.6188693482574763 }, { "x": 1.3900149999998348, "y": 0.39977060000001075 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.3900149999998348, "y": -0.40020240000012564 }, { "x": 1.2992681283295724, "y": -0.6192847283296032 }, { "x": 1.080185799999981, "y": -0.7100315999998656 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.0801096000000143, "y": -0.7095743999998376 }, { "x": -1.2991755087698493, "y": -0.6188185485625581 }, { "x": -1.3899134000000686, "y": -0.3997452000000976 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.3899134000000686, "y": 0.40022780000003877 }, { "x": -1.2991934705021322, "y": 0.6193339880503572 }, { "x": -1.0801096000000143, "y": 0.7101078000000598 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0127mm", pcbY: "1.7112mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -1.3500232000000096, "y": 0.6999991000000136 }, { "x": 1.350023199999896, "y": 0.6999991000000136 }, { "x": 1.350023199999896, "y": -0.6999991000000136 }, { "x": -1.3500232000000096, "y": -0.6999991000000136 }, { "x": -1.3500232000000096, "y": 0.6999991000000136 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C15849.obj?uuid=ac9b32e974bc448eab36b1293f859dcb",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C15849.step?uuid=ac9b32e974bc448eab36b1293f859dcb",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0, y: 0, z: -0.4 },
        }, ...restProps }));
};

const CL10A225KO8NNNC = (props) => {
    const { name = "C1", ...restProps } = props;
    return (jsx("capacitor", { name: name, capacitance: "2.2uF", supplierPartNumbers: {
            "jlcpcb": [
                "C23630"
            ]
        }, manufacturerPartNumber: "CL10A225KO8NNNC", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin2"], pcbX: "0.700024mm", pcbY: "0mm", width: "0.7999984mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.700024mm", pcbY: "0mm", width: "0.7999984mm", height: "0.8999982mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.2801873999999316, "y": -0.7095743999998376 }, { "x": -1.080160400000068, "y": -0.7095743999998376 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.28026359999989836, "y": -0.7100315999998656 }, { "x": 1.080236599999921, "y": -0.7100315999998656 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.2801873999999316, "y": 0.7101078000000598 }, { "x": -1.080160400000068, "y": 0.7101078000000598 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.28026359999989836, "y": 0.7096252000001186 }, { "x": 1.080236599999921, "y": 0.7096252000001186 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.3899134000000686, "y": -0.3997452000000976 }, { "x": -1.3899134000000686, "y": 0.40030400000000554 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.3900149999998348, "y": 0.39977060000001075 }, { "x": 1.3900149999998348, "y": -0.4002531999999519 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.080185799999981, "y": 0.7096252000001186 }, { "x": 1.299277109074751, "y": 0.6188693482574763 }, { "x": 1.3900149999998348, "y": 0.39977060000001075 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.3900149999998348, "y": -0.40020240000012564 }, { "x": 1.2992681283295724, "y": -0.6192847283296032 }, { "x": 1.080185799999981, "y": -0.7100315999998656 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.0801096000000143, "y": -0.7095743999998376 }, { "x": -1.2991755087698493, "y": -0.6188185485625581 }, { "x": -1.3899134000000686, "y": -0.3997452000000976 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.3899134000000686, "y": 0.40022780000003877 }, { "x": -1.2991934705021322, "y": 0.6193339880503572 }, { "x": -1.0801096000000143, "y": 0.7101078000000598 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0127mm", pcbY: "1.7112mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -1.3500232000000096, "y": 0.6999991000000136 }, { "x": 1.350023199999896, "y": 0.6999991000000136 }, { "x": 1.350023199999896, "y": -0.6999991000000136 }, { "x": -1.3500232000000096, "y": -0.6999991000000136 }, { "x": -1.3500232000000096, "y": 0.6999991000000136 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C23630.obj?uuid=ac9b32e974bc448eab36b1293f859dcb",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C23630.step?uuid=ac9b32e974bc448eab36b1293f859dcb",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0, y: 0, z: -0.4 },
        }, ...restProps }));
};

const CL21A106KAYNNNE = (props) => {
    const { name = "C1", ...restProps } = props;
    return (jsx("capacitor", { name: name, capacitance: "10uF", supplierPartNumbers: {
            "jlcpcb": [
                "C15850"
            ]
        }, manufacturerPartNumber: "CL21A106KAYNNNE", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin2"], pcbX: "0.999998mm", pcbY: "0mm", width: "1.4100048mm", height: "1.35001mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.999998mm", pcbY: "0mm", width: "1.4100048mm", height: "1.35001mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.8111977999999453, "y": 0.9036049999999705 }, { "x": 0.4011929999999211, "y": 0.9036049999999705 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.4011929999999211, "y": -0.9036049999999705 }, { "x": 1.8111977999999453, "y": -0.9036049999999705 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.9635978000000023, "y": -0.7512050000000272 }, { "x": 1.9635978000000023, "y": 0.7512050000000272 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.811197800000059, "y": 0.9036049999999705 }, { "x": -0.40119300000003477, "y": 0.9036049999999705 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.40119300000003477, "y": -0.9036049999999705 }, { "x": -1.811197800000059, "y": -0.9036049999999705 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.9635978000000023, "y": -0.7512050000000272 }, { "x": -1.9635978000000023, "y": 0.7512050000000272 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.8111977999999453, "y": -0.9036049999997431 }, { "x": 1.918960873452761, "y": -0.8589680734526155 }, { "x": 1.9635977999998886, "y": -0.7512050000000272 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.9635977999998886, "y": 0.7512050000000272 }, { "x": 1.918960873452761, "y": 0.8589680734527292 }, { "x": 1.8111977999999453, "y": 0.9036049999998568 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.811197800000059, "y": -0.9036049999997431 }, { "x": -1.9189608734528747, "y": -0.8589680734526155 }, { "x": -1.9635978000000023, "y": -0.7512050000000272 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.9635978000000023, "y": 0.7512050000000272 }, { "x": -1.9189608734528747, "y": 0.8589680734527292 }, { "x": -1.811197800000059, "y": 0.9036049999998568 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "0.0127mm", pcbY: "1.9144mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -1.9550003999999035, "y": 0.9250050000000556 }, { "x": 1.9550003999999035, "y": 0.9250050000000556 }, { "x": 1.9550003999999035, "y": -0.9250050000000556 }, { "x": -1.9550003999999035, "y": -0.9250050000000556 }, { "x": -1.9550003999999035, "y": 0.9250050000000556 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C15850.obj?uuid=b87ab0c5465a48b3a1c9a6dac8d30bc5",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C15850.step?uuid=b87ab0c5465a48b3a1c9a6dac8d30bc5",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0, y: -12700000070253736e-21, z: -0.65 },
        }, ...restProps }));
};

const CL10C330JB8NNNC = (props) => {
    const { name = "C1", ...restProps } = props;
    return (jsx("capacitor", { name: name, capacitance: "33pF", supplierPartNumbers: {
            "jlcpcb": [
                "C1663"
            ]
        }, manufacturerPartNumber: "CL10C330JB8NNNC", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin2"], pcbX: "0.700024mm", pcbY: "0mm", width: "0.7999984mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.700024mm", pcbY: "0mm", width: "0.7999984mm", height: "0.8999982mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.2801873999999316, "y": -0.7095743999998376 }, { "x": -1.080160400000068, "y": -0.7095743999998376 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.28026359999989836, "y": -0.7100315999998656 }, { "x": 1.080236599999921, "y": -0.7100315999998656 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.2801873999999316, "y": 0.7101078000000598 }, { "x": -1.080160400000068, "y": 0.7101078000000598 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.28026359999989836, "y": 0.7096252000001186 }, { "x": 1.080236599999921, "y": 0.7096252000001186 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.3899134000000686, "y": -0.3997452000000976 }, { "x": -1.3899134000000686, "y": 0.40030400000000554 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.3900149999998348, "y": 0.39977060000001075 }, { "x": 1.3900149999998348, "y": -0.4002531999999519 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.080185799999981, "y": 0.7096252000001186 }, { "x": 1.299277109074751, "y": 0.6188693482574763 }, { "x": 1.3900149999998348, "y": 0.39977060000001075 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.3900149999998348, "y": -0.40020240000012564 }, { "x": 1.2992681283295724, "y": -0.6192847283296032 }, { "x": 1.080185799999981, "y": -0.7100315999998656 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.0801096000000143, "y": -0.7095743999998376 }, { "x": -1.2991755087698493, "y": -0.6188185485625581 }, { "x": -1.3899134000000686, "y": -0.3997452000000976 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.3899134000000686, "y": 0.40022780000003877 }, { "x": -1.2991934705021322, "y": 0.6193339880503572 }, { "x": -1.0801096000000143, "y": 0.7101078000000598 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0127mm", pcbY: "1.7112mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -1.3500232000000096, "y": 0.6999991000000136 }, { "x": 1.350023199999896, "y": 0.6999991000000136 }, { "x": 1.350023199999896, "y": -0.6999991000000136 }, { "x": -1.3500232000000096, "y": -0.6999991000000136 }, { "x": -1.3500232000000096, "y": 0.6999991000000136 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C1663.obj?uuid=ac9b32e974bc448eab36b1293f859dcb",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C1663.step?uuid=ac9b32e974bc448eab36b1293f859dcb",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0, y: 0, z: -0.4 },
        }, ...restProps }));
};

const CL10B223KB8NNNC = (props) => {
    const { name = "C1", ...restProps } = props;
    return (jsx("capacitor", { name: name, capacitance: "22nF", supplierPartNumbers: {
            "jlcpcb": [
                "C21122"
            ]
        }, manufacturerPartNumber: "CL10B223KB8NNNC", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin2"], pcbX: "0.700024mm", pcbY: "0mm", width: "0.7999984mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.700024mm", pcbY: "0mm", width: "0.7999984mm", height: "0.8999982mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.2801873999999316, "y": -0.7095743999998376 }, { "x": -1.080160400000068, "y": -0.7095743999998376 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.28026359999989836, "y": -0.7100315999998656 }, { "x": 1.080236599999921, "y": -0.7100315999998656 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -0.2801873999999316, "y": 0.7101078000000598 }, { "x": -1.080160400000068, "y": 0.7101078000000598 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 0.28026359999989836, "y": 0.7096252000001186 }, { "x": 1.080236599999921, "y": 0.7096252000001186 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.3899134000000686, "y": -0.3997452000000976 }, { "x": -1.3899134000000686, "y": 0.40030400000000554 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.3900149999998348, "y": 0.39977060000001075 }, { "x": 1.3900149999998348, "y": -0.4002531999999519 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.080185799999981, "y": 0.7096252000001186 }, { "x": 1.299277109074751, "y": 0.6188693482574763 }, { "x": 1.3900149999998348, "y": 0.39977060000001075 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.3900149999998348, "y": -0.40020240000012564 }, { "x": 1.2992681283295724, "y": -0.6192847283296032 }, { "x": 1.080185799999981, "y": -0.7100315999998656 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.0801096000000143, "y": -0.7095743999998376 }, { "x": -1.2991755087698493, "y": -0.6188185485625581 }, { "x": -1.3899134000000686, "y": -0.3997452000000976 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.3899134000000686, "y": 0.40022780000003877 }, { "x": -1.2991934705021322, "y": 0.6193339880503572 }, { "x": -1.0801096000000143, "y": 0.7101078000000598 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0127mm", pcbY: "1.7112mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -1.3500232000000096, "y": 0.6999991000000136 }, { "x": 1.350023199999896, "y": 0.6999991000000136 }, { "x": 1.350023199999896, "y": -0.6999991000000136 }, { "x": -1.3500232000000096, "y": -0.6999991000000136 }, { "x": -1.3500232000000096, "y": 0.6999991000000136 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C21122.obj?uuid=ac9b32e974bc448eab36b1293f859dcb",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C21122.step?uuid=ac9b32e974bc448eab36b1293f859dcb",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0, y: 0, z: -0.4 },
        }, ...restProps }));
};

const pinLabels = {
    pin1: ["pin1"],
    pin2: ["pin2"]
};
const BLM18AG601SN1D = (props) => {
    return (jsx("chip", { pinLabels: pinLabels, pinAttributes: { pin1: { isPassive: true }, pin2: { isPassive: true } }, symbol: jsxs("symbol", { children: [jsx("port", { name: "pin2", pinNumber: 2, aliases: ["2"], direction: "right", schX: 0.4, schY: 0, schStemLength: 0.06 }), jsx("port", { name: "pin1", pinNumber: 1, aliases: ["1"], direction: "left", schX: -0.4, schY: 0, schStemLength: 0.06 }), jsx("schematicpath", { svgPath: "M -0.3376 0.0014 A 0.08 0.078 0 1 0 -0.1784 0.0012", strokeColor: "#880000" }), jsx("schematicpath", { svgPath: "M -0.168 0.0014 A 0.08 0.078 0 1 0 -0.0088 0.0014", strokeColor: "#880000" }), jsx("schematicpath", { svgPath: "M 0.0014 0.0014 A 0.08 0.078 0 1 0 0.1606 0.0014", strokeColor: "#880000" }), jsx("schematicpath", { svgPath: "M 0.174 0.0014 A 0.08 0.078 0 1 0 0.3334 0.0012", strokeColor: "#880000" }), jsx("schematictext", { schX: 0, schY: 0.288, text: "{NAME}", fontSize: 0.2, anchor: "bottom_center" })] }), supplierPartNumbers: {
            "jlcpcb": [
                "C19330"
            ]
        }, manufacturerPartNumber: "BLM18AG601SN1D", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.699897mm", pcbY: "0mm", width: "0.7999984mm", height: "0.8640064mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "0.699897mm", pcbY: "0mm", width: "0.7999984mm", height: "0.8640064mm", shape: "rect" }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.2700000000000955, "y": -0.6713575999998693 }, { "x": -1.4241018000001304, "y": -0.499008399999866 }, { "x": -1.4241018000001304, "y": 0.5174234000000979 }, { "x": -1.2700000000000955, "y": 0.6699860000001263 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.2699999999998681, "y": 0.6699860000001263 }, { "x": 1.4241525999999567, "y": 0.49898300000006657 }, { "x": 1.4241525999999567, "y": -0.5174487999998973 }, { "x": 1.2699999999998681, "y": -0.6700114000000394 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.272006600000168, "y": 0.6699860000001263 }, { "x": -0.5100066000001107, "y": 0.6699860000001263 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.2720573999999942, "y": -0.6700114000000394 }, { "x": 0.5100573999999369, "y": -0.6700114000000394 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": -1.272006600000168, "y": -0.6700114000000394 }, { "x": -0.5100066000001107, "y": -0.6700114000000394 }] }), jsx("silkscreenpath", { strokeWidth: 0.15, route: [{ "x": 1.2720573999999942, "y": 0.6699860000001263 }, { "x": 0.5100573999999369, "y": 0.6699860000001263 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "0.009525mm", pcbY: "1.63754mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -1.349896200000103, "y": 0.6820032000000538 }, { "x": 1.3498961999999892, "y": 0.6820032000000538 }, { "x": 1.3498961999999892, "y": -0.6820032000000538 }, { "x": -1.349896200000103, "y": -0.6820032000000538 }, { "x": -1.349896200000103, "y": 0.6820032000000538 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C19330.obj?uuid=a7f84688c5004aa68dbcbddc99bd5473",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C19330.step?uuid=a7f84688c5004aa68dbcbddc99bd5473",
            pcbRotationOffset: 180,
            modelOriginPosition: { x: 0.0023875999999063424, y: 0.015976600000044527, z: -0.25 },
        }, ...props }));
};

const GND = "net.GND";
const VBUS = "net.USB_5V";
const V5 = "net.FILTERED_5V";
const V3 = "net.AMP_3V3";
const DVDD = "net.DAC_DVDD";
const active = "net.USB_ACTIVE";
const referenceStyle = { pcbSx: { "& silkscreentext": { visibility: "hidden" } } };
const referenceLabels = [
    ["J1", -24, 6.7],
    ["J2", 23, 6.7],
    ["R1", -18.5, 6.1],
    ["R2", -18.5, -6.1],
    ["U1", -16, 2.7],
    ["C1", -16.15, -2.4],
    ["R3", -7.5, -10],
    ["R4", -4, -10],
    ["R5", -11, -10.3],
    ["FB1", -19, -10.8],
    ["C2", -15.5, -12],
    ["U2", -8, -14.8],
    ["C3", -1.5, -12],
    ["U3", -5.5, 1],
    ["R6", -16, -8.1],
    ["C4", -7.5, -5.5],
    ["C5", -6.6, 9],
    ["C6", 0.2, -4],
    ["C7", 0.5, 7.5],
    ["C8", -3.225, 13.6],
    ["C9", -0.5, -10.1],
    ["X1", -16, 4.5],
    ["R7", -14.5, -5.3],
    ["C10", -12.5, 6.5],
    ["C11", -11, -5.5],
    ["R9", 3, -4],
    ["R10", 4.5, 11],
    ["C18", 5, -9],
    ["C19", 10.8, 9.5],
    ["C12", 3, 3.3],
    ["C13", 3, -2.5],
    ["U4", 7, 7.2],
    ["R8", 4, 7.5],
    ["C14", 10.5, 6.5],
    ["C15", 13.8, 6],
    ["C16", 14, 0.75],
    ["C17", 9, -4.5],
];
const dacPosition = { pcbX: -5.5, pcbY: 1, pcbRotation: 0 };
const crystalPosition = { pcbX: -13, pcbY: 1, pcbRotation: 270 };
// One millimetre characters with 0.15 mm ink meet JLCPCB's legend limits.
function SilkLabel({ text, x, y }) {
    let advance = 0;
    const lines = [...text].flatMap((char) => {
        const offset = advance;
        advance += glyphAdvanceRatio[char] ?? 0.7;
        return (glyphLineAlphabet[char] ?? []).map((line) => ({
            x1: line.x1 + offset, y1: line.y1, x2: line.x2 + offset, y2: line.y2,
        }));
    });
    const left = Math.min(...lines.flatMap((p) => [p.x1, p.x2]));
    const right = Math.max(...lines.flatMap((p) => [p.x1, p.x2]));
    const bottom = Math.min(...lines.flatMap((p) => [p.y1, p.y2]));
    const top = Math.max(...lines.flatMap((p) => [p.y1, p.y2]));
    const scale = 1 / (top - bottom);
    const point = (px, py) => ({
        x: x + (px - (left + right) / 2) * scale,
        y: y + (py - (bottom + top) / 2) * scale,
    });
    return jsx(Fragment, { children: lines.map((p, i) => jsx(Fragment$1, { children: jsx("silkscreenpath", { strokeWidth: 0.15, route: [point(p.x1, p.y1), point(p.x2, p.y2)] }) }, i)) });
}
// tscircuit pcbPath points are relative to the starting component's footprint.
function relativePath(at, points) {
    const angle = -at.pcbRotation * Math.PI / 180;
    return points.map(({ x, y }) => ({
        x: (x - at.pcbX) * Math.cos(angle) - (y - at.pcbY) * Math.sin(angle),
        y: (x - at.pcbX) * Math.sin(angle) + (y - at.pcbY) * Math.cos(angle),
    }));
}
/** Svara USB revision B. See README.md for design assumptions and release checks. */
function SvaraUsb() {
    return (jsxs(assembly.device, { name: "SvaraUsb", children: [jsx("board", { name: "B1", width: "54mm", height: "32mm", layers: 2, thickness: "1.6mm", minTraceWidth: "0.15mm", autorouter: { preset: "auto_local", traceClearance: 0.2 }, schLayout: { layoutMode: "none" }, minViaHoleDiameter: 0.3, minViaPadDiameter: 0.6, minTraceToHoleEdgeClearance: 0.25, minTraceToPadEdgeClearance: 0.15, minPadEdgeToPadEdgeClearance: 0.15, children: jsxs("schematicsheet", { name: "Svara USB revision B", sheetSize: "ANSI_B", sheetWidth: 650, sheetHeight: 340, children: [jsx("net", { name: "GND", isGroundNet: true, nominalTraceWidth: "0.2mm" }), jsx("net", { name: "USB_5V", isPowerNet: true, nominalTraceWidth: "0.15mm" }), jsx("net", { name: "FILTERED_5V", isPowerNet: true, nominalTraceWidth: "0.15mm" }), jsx("net", { name: "AMP_3V3", isPowerNet: true, nominalTraceWidth: "0.2mm" }), jsx("net", { name: "DAC_DVDD", isPowerNet: true }), jsx("net", { name: "DAC_VCCP", isPowerNet: true }), jsx("net", { name: "DAC_VCCL", isPowerNet: true }), jsx("net", { name: "DAC_VCCR", isPowerNet: true }), jsx(TYPE_C_31_M_12, { ...referenceStyle, name: "J1", allowOffBoard: true, pcbX: -23.1, pcbY: 0, pcbRotation: 270, schX: -24, schY: 5, schWidth: 3, schHeight: 7, connections: {
                                EH1: GND, EH2: GND, EH3: GND, EH4: GND, GND1: GND, GND2: GND,
                                VBUS1: VBUS, VBUS2: VBUS, CC1: "net.CC1", CC2: "net.CC2",
                                DP1: "net.USB_DP", DP2: "net.USB_DP", DN1: "net.USB_DM", DN2: "net.USB_DM",
                            } }), jsx(A_0603WAF5101T5E, { ...referenceStyle, name: "R1", pcbX: -18.5, pcbY: 4, pcbRotation: 90, schX: -26, schY: -2, connections: { pin1: "net.CC1", pin2: GND } }), jsx(A_0603WAF5101T5E, { ...referenceStyle, name: "R2", pcbX: -18.5, pcbY: -4, pcbRotation: 90, schX: -22, schY: -2, connections: { pin1: "net.CC2", pin2: GND } }), jsx(USBLC6_2SC6, { ...referenceStyle, name: "U1", pcbX: -17.5, pcbY: 0, pcbRotation: 270, schX: -18, schY: 5, connections: { pin1: "net.USB_DP", pin6: "net.USB_DP",
                                pin3: "net.USB_DM", pin4: "net.USB_DM", pin2: GND, pin5: VBUS } }), jsx(CC0603KRX7R9BB104, { ...referenceStyle, name: "C1", pcbX: -16.15, pcbY: -4, schX: -18, schY: 1, schRotation: 270, connections: { pin1: VBUS, pin2: GND } }), jsx(A_0603WAF220JT5E, { ...referenceStyle, name: "R3", pcbX: -7.5, pcbY: -8, pcbRotation: 90, schX: -12, schY: 5.5, connections: { pin1: "net.USB_DM", pin2: "net.DAC_DM" } }), jsx(A_0603WAF220JT5E, { ...referenceStyle, name: "R4", pcbX: -4, pcbY: -8, pcbRotation: 90, schX: -12, schY: 4, connections: { pin1: "net.USB_DP", pin2: "net.DAC_DP" } }), jsx(A_0603WAF1501T5E, { ...referenceStyle, name: "R5", pcbX: -11, pcbY: -8, pcbRotation: 90, schX: -15, schY: 8, schRotation: 270, connections: { pin1: DVDD, pin2: "net.USB_DP" } }), jsx(BLM18AG601SN1D, { ...referenceStyle, name: "FB1", pcbX: -19, pcbY: -9, schX: -24, schY: -8, connections: { pin1: VBUS, pin2: V5 } }), jsx(CL10A105KB8NNNC, { ...referenceStyle, name: "C2", pcbX: -13, pcbY: -12, pcbRotation: 90, schX: -21, schY: -10, schRotation: 270, connections: { pin1: V5, pin2: GND } }), jsx(LP5907MFX_3_3_NOPB, { ...referenceStyle, name: "U2", pcbX: -8, pcbY: -12, pcbRotation: 180, schX: -16, schY: -8, schWidth: 3, connections: { IN: V5, EN: V5, GND, OUT: V3 } }), jsx(CL10A105KB8NNNC, { ...referenceStyle, name: "C3", pcbX: -4, pcbY: -12, pcbRotation: 90, schX: -12, schY: -10, schRotation: 270, connections: { pin1: V3, pin2: GND } }), jsx(PCM2704CDBR, { ...referenceStyle, name: "U3", ...dacPosition, schX: 0, schY: 3, schWidth: 5, schHeight: 9, schPinArrangement: {
                                leftSide: [8, 9, 28, 1, 3, 2, 4, 21, 25, 26, 22, 23, 24],
                                rightSide: [14, 15, 27, 5, 18], topSide: [10, 7, 20, 13, 16],
                                bottomSide: [6, 11, 12, 17, 19],
                            }, connections: {
                                VBUS: V5, VDD: DVDD, VCCP: "net.DAC_VCCP", VCCL: "net.DAC_VCCL",
                                VCCR: "net.DAC_VCCR", VCOM: "net.DAC_VCOM",
                                DGND: GND, ZGND: GND, AGNDL: GND, AGNDR: GND, PGND: GND,
                                D_NEG: "net.DAC_DM", D_POS: "net.DAC_DP", XTI: "net.XTI", XTO: "net.XTO",
                                DT: "net.ROM_DATA", PSEL: DVDD, HOST: GND, TEST0: DVDD, TEST1: DVDD,
                                HID0: GND, HID1: GND, HID2: GND, N_SSPND: active,
                                VOUTL: "net.DAC_L", VOUTR: "net.DAC_R",
                            } }), jsx(A_0603WAF1003T5E, { ...referenceStyle, name: "R6", pcbX: -16, pcbY: -6.5, schX: -7, schY: 7, schRotation: 270, connections: { pin1: DVDD, pin2: "net.ROM_DATA" } }), jsx(CL10A105KB8NNNC, { ...referenceStyle, name: "C4", pcbX: -5.825, pcbY: -5.5, pcbRotation: 270, schX: -6, schY: 13, schRotation: 270, connections: { pin1: DVDD, pin2: GND } }), jsx(CL10A105KB8NNNC, { ...referenceStyle, name: "C5", pcbX: -4.525, pcbY: 7.5, pcbRotation: 90, schX: -3, schY: 13, schRotation: 270, connections: { pin1: "net.DAC_VCCP", pin2: GND } }), jsx(CL10A105KB8NNNC, { ...referenceStyle, name: "C6", pcbX: -1.925, pcbY: -5.5, pcbRotation: 270, schX: 0, schY: 13, schRotation: 270, connections: { pin1: "net.DAC_VCCL", pin2: GND } }), jsx(CL10A105KB8NNNC, { ...referenceStyle, name: "C7", pcbX: -1.925, pcbY: 7.5, pcbRotation: 90, schX: 3, schY: 13, schRotation: 270, connections: { pin1: "net.DAC_VCCR", pin2: GND } }), jsx(CL21A106KAYNNNE, { ...referenceStyle, name: "C8", pcbX: -3.225, pcbY: 11, pcbRotation: 90, schX: 6, schY: 13, schRotation: 270, connections: { pin1: "net.DAC_VCOM", pin2: GND } }), jsx(CL10A105KB8NNNC, { ...referenceStyle, name: "C9", pcbX: -0.5, pcbY: -8, pcbRotation: 90, schX: -9, schY: 13, schRotation: 270, connections: { pin1: V5, pin2: GND } }), jsx(X322512MSB4SI, { ...referenceStyle, name: "X1", ...crystalPosition, schX: -1, schY: -9, connections: { pin1: "net.XTI", pin3: "net.XTO", pin2: GND, pin4: GND } }), jsx(A_0603WAF1004T5E, { ...referenceStyle, name: "R7", pcbX: -13, pcbY: -2, schX: -1, schY: -6, connections: { pin1: "net.XTI", pin2: "net.XTO" } }), jsx(CL10C330JB8NNNC, { ...referenceStyle, name: "C10", pcbX: -12.5, pcbY: 5, schX: -5, schY: -11, schRotation: 270, connections: { pin1: "net.XTI", pin2: GND } }), jsx(CL10C330JB8NNNC, { ...referenceStyle, name: "C11", pcbX: -12.5, pcbY: -3.8, schX: 3, schY: -11, schRotation: 270, connections: { pin1: "net.XTO", pin2: GND } }), jsx("trace", { name: "CLK_IN", from: "U3.XTI", to: "X1.pin1", width: 0.15, pcbPath: relativePath(dacPosition, [{ x: -9.725036, y: 4.455162 }, { x: -11, y: 4.455162 },
                                { x: -11, y: 3.6 }, { x: -13.850011, y: 3.6 }, { x: -13.850011, y: 2.100074 }]) }), jsx("trace", { name: "CLK_OUT", from: "U3.XTO", to: "X1.pin3", width: 0.15, pcbPath: relativePath(dacPosition, [{ x: -9.725036, y: -2.455162 }, { x: -11, y: -2.455162 },
                                { x: -11, y: -0.100074 }, { x: -12.149989, y: -0.100074 }]) }), jsx("trace", { name: "CLK_LOAD_IN", from: "X1.pin1", to: "C10.pin1", width: 0.15, pcbPath: relativePath(crystalPosition, [{ x: -13.850011, y: 2.100074 }, { x: -14.8, y: 3.05 },
                                { x: -14.8, y: 5 }, { x: -13.200024, y: 5 }]) }), jsx("trace", { name: "CLK_LOAD_OUT", from: "X1.pin3", to: "C11.pin1", width: 0.15, pcbPath: relativePath(crystalPosition, [{ x: -12.149989, y: -0.100074 }, { x: -12.149989, y: -2.8 }, { x: -13.200024, y: -3.8 }]) }), jsx("trace", { name: "CLK_BIAS_IN", from: "X1.pin1", to: "R7.pin1", width: 0.15, pcbPath: relativePath(crystalPosition, [{ x: -13.850011, y: 2.100074 }, { x: -15.2, y: 2.100074 }, { x: -15.2, y: -2 }, { x: -13.7, y: -2 }]) }), jsx("trace", { name: "CLK_BIAS_OUT", from: "X1.pin3", to: "R7.pin2", width: 0.15, pcbPath: relativePath(crystalPosition, [{ x: -12.149989, y: -0.100074 }, { x: -12.149989, y: -2 }, { x: -12.3, y: -2 }]) }), jsx(A_0603WAF220JT5E, { ...referenceStyle, name: "R9", pcbX: 2, pcbY: -5.5, schX: 8, schY: 7, connections: { pin1: "net.DAC_L", pin2: "net.FILTER_L" } }), jsx(A_0603WAF220JT5E, { ...referenceStyle, name: "R10", pcbX: 4.5, pcbY: 9.5, schX: 8, schY: 4, connections: { pin1: "net.DAC_R", pin2: "net.FILTER_R" } }), jsx(CL10B223KB8NNNC, { ...referenceStyle, name: "C18", pcbX: 5, pcbY: -7, pcbRotation: 90, schX: 10, schY: 5.5, schRotation: 270, connections: { pin1: "net.FILTER_L", pin2: GND } }), jsx(CL10B223KB8NNNC, { ...referenceStyle, name: "C19", pcbX: 8, pcbY: 9.5, pcbRotation: 90, schX: 10, schY: 2.5, schRotation: 270, connections: { pin1: "net.FILTER_R", pin2: GND } }), jsx(CL10A105KB8NNNC, { ...referenceStyle, name: "C12", pcbX: 3, pcbY: 1.75, schX: 12, schY: 7, connections: { pin1: "net.FILTER_L", pin2: "net.AMP_INL" } }), jsx(CL10A105KB8NNNC, { ...referenceStyle, name: "C13", pcbX: 3, pcbY: -0.75, schX: 12, schY: 4, connections: { pin1: "net.FILTER_R", pin2: "net.AMP_INR" } }), jsx(TPA6132A2RTER, { ...referenceStyle, name: "U4", pcbX: 7, pcbY: 1, schX: 19, schY: 3, schWidth: 4, schHeight: 6, schPinArrangement: { leftSide: [1, 4, 2, 3, 13, 6, 7],
                                rightSide: [16, 5, 11, 9, 8, 12], topSide: [14], bottomSide: [15, 10, 17] }, connections: {
                                INL_NEG: "net.AMP_INL", INR_NEG: "net.AMP_INR", INL_POS: GND, INR_POS: GND,
                                VDD: V3, EN: active, G0: V3, G1: GND, // G0=1, G1=0: 0 dB.
                                SGND: GND, PGND: GND, EP: GND, CPP: "net.CP_POS", CPN: "net.CP_NEG",
                                HPVDD: "net.HPVDD", HPVSS: "net.HPVSS", OUTL: "net.HP_L", OUTR: "net.HP_R",
                            } }), jsx(A_0603WAF1003T5E, { ...referenceStyle, name: "R8", pcbX: 4, pcbY: 6, schX: 12, schY: -1, schRotation: 270, connections: { pin1: active, pin2: GND } }), jsx(CL10A225KO8NNNC, { ...referenceStyle, name: "C14", pcbX: 7, pcbY: 5, pcbRotation: 90, schX: 13, schY: 12, schRotation: 270, connections: { pin1: V3, pin2: GND } }), jsx(CL10A225KO8NNNC, { ...referenceStyle, name: "C15", pcbX: 11, pcbY: 4, schX: 26, schY: -5, schRotation: 270, connections: { pin1: "net.HPVDD", pin2: GND } }), jsx(CL10A105KB8NNNC, { ...referenceStyle, name: "C16", pcbX: 11, pcbY: 0.75, pcbRotation: 90, schX: 22, schY: -5, connections: { pin1: "net.CP_NEG", pin2: "net.CP_POS" } }), jsx(CL10A105KB8NNNC, { ...referenceStyle, name: "C17", pcbX: 9, pcbY: -3, schX: 18, schY: -5, schRotation: 270, connections: { pin1: "net.HPVSS", pin2: GND } }), jsx(PJ_320D, { ...referenceStyle, name: "J2", allowOffBoard: true, pcbX: 20.9, pcbY: 0, pcbRotation: 180, schX: 29, schY: 5, connections: { pin2: "net.HP_L", pin3: "net.HP_R", pin1: GND, pin4: GND } }), mountingPoints.map(([x, y], i) => jsxs(Fragment$1, { children: [jsx("hole", { name: `H${i + 1}`, pcbX: x, pcbY: y, diameter: 2.2 }), jsx("keepout", { shape: "circle", pcbX: x, pcbY: y, radius: 2.7, layers: ["top", "bottom"] })] }, `mount-${i}`)), jsx("copperpour", { layer: "bottom", connectsTo: GND, clearance: 0.25, cutoutMargin: 0.3, boardEdgeMargin: 0.3 }), referenceLabels.map(([name, x, y]) => (jsx(Fragment$1, { children: jsx(SilkLabel, { text: name, x: x, y: y }) }, name))), jsx(SilkLabel, { text: "SVARA USB B", x: 3, y: -14 }), jsx("schematictext", { text: "USB-C / ESD / full-speed interface", schX: -20, schY: 12, fontSize: 0.6 }), jsx("schematictext", { text: "Filtered USB power / amplifier LDO", schX: -19, schY: -5, fontSize: 0.6 }), jsx("schematictext", { text: "PCM2704C / 16-bit stereo / 48 kHz max", schX: 0, schY: 17, fontSize: 0.6 }), jsx("schematictext", { text: "12 MHz crystal", schX: 0, schY: -4, fontSize: 0.6 }), jsx("schematictext", { text: "TPA6132A2 / 0 dB / ground-referenced output", schX: 21, schY: 16, fontSize: 0.6 })] }) }), jsx(SnapFitEnclosure, {})] }));
}

export { SvaraUsb as default };