@tscircuit/cli 0.1.2004 → 0.1.2005

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.
Files changed (2) hide show
  1. package/dist/cli/main.js +79 -71
  2. package/package.json +1 -1
package/dist/cli/main.js CHANGED
@@ -35244,7 +35244,7 @@ var __create3, __defProp3, __getOwnPropDesc2, __getOwnPropNames3, __getProtoOf3,
35244
35244
  }, e = (t) => {
35245
35245
  let o = t.primitives ?? [...Object.values(t.paths ?? {}), ...Object.values(t.texts ?? {}), ...Object.values(t.circles ?? {}), ...Object.values(t.rects ?? {})], i = t.ports ?? Object.entries(t.refblocks).flatMap(([a, y]) => [{ ...y, labels: [a] }]), l = t.center ?? { x: t.bounds.centerX, y: t.bounds.centerY };
35246
35246
  return i.length === 2 && (l = { x: (i[0].x + i[1].x) / 2, y: (i[0].y + i[1].y) / 2 }), new _r({ ...t, primitives: o, ports: i, center: l });
35247
- }, w, If, o5, Ct, dp, Bf, bp, qf, a5, Nt, _p, Df, gp, Gf, m5, It, up, Uf, vp, Wf, h5, Bt, wp, Hf, Ap, Zf, g5, qt, Pp, Qf, Sp, Kf, A5, Dt, Rp, tc, Fp, A, rc, T5, Gt, Tp, oc, Ep, Yp, ic, k5, Ut, Xp, lc, Lp, Vp, pc, N5, Wt, jp, ac, kp, yc, D5, Ht, zp, xc, Op, j, mc, Z5, Zt, Jp, nc, $p, fc, eg, Qt, Mp, cc, Kt, hc, lg, te, Cp, dc, Np, gr, ur, vr, Ip, Bp, _c, qp, ee, Dp, gc, re, Gp, k, vc, Tg, Up, Wp, wc, Hp, Ac, Lg, Zp, Qp, Pc, Kp, Sc, zg, ta, ea, Rc, ra, z2, Tc, Cg, oe, oa, Ec, ia, Yc, qg, ie, la, Xc, pa, Lc, Wg, le, aa, Vc, ya, jc, Kg, pe, xa, kc, sa, zc, ou, ma, na, Oc, fa, ut, $c, yu, ca, ha, Mc, da, Cc, nu, ba, _a, Nc, ae, ga, Ic, gu, ua, va, Bc, wa, O, Dc, Pu, ye, Aa, Gc, Pa, Sa, J, Wc, Lu, xe, Ra, Hc, Fa, Ta, Zc, $u, se, Ea, Qc, Ya, Kc, Iu, me, Xa, th, La, Va, eh, Hu, ne, ja, rh, ka, P, ih, e3, fe, za, lh, Oa, Ja, ph, y3, ce, $a, ah, Ma, Ca, yh, h3, he, Na, xh, Ia, sh, g3, de, Ba, mh, qa, $2, fh, P3, be, _e, ch, Da, Ga, Ua, hh, j3, ge, ue, dh, Wa, M, _h, $3, ve, Ha, gh, Za, Qa, Ka, uh, W3, we, ty, vh, ey, St = 0.6, wr = 0.3, wh, ry, Rt = 0.6, Ar = 0.3, Ah, oy, Ft = 0.6, Pr = 0.3, Ph, iy, Tt = 0.6, Sr = 0.3, Sh, ly, S, py, ay, yy, xy, sy, my, ny, Th, Eh, Ae, fy, Yh, Et, Rr, Fr, Vh, cy, hy, R, zh, j7, Pe, dy, Oh, by, Jh, J7, Se, _y, $h, gy, Mh, N7, Re, uy, Ch, vy, Nh, D7, Fe, wy, Ih, Ay, Bh, H7, Te, Py, qh, Sy, Dh, t8, Ee, Ry, Gh, Fy, F, Ty, Ey, Yy, Xy7, Ly, Vy, C, Hh, jy, Zh, ky2, Qh, zy, Kh, Oy, td, Jy, ed, $y, rd, My, od, Cy, Ny, N, Iy, By, qy, Dy, I, Tr, Er, Yr, Gy, Xr, Lr, Vr, Uy, jr, kr, zr, Wy, Hy, B, Or, Jr, $r, Zy, Mr, Cr, Nr, Qy, Ir, Br, qr, Ky2, tx, q, Dr, Gr, Ur, ex, Wr, Hr, Zr, rx, Qr, Kr, to, ox, ix, D, eo, ro, oo, lx, io, lo, po, px, ao, yo, xo, ax, Ye, sd, Uv, Xe, yx, md, Le, so, mo, no, xx, Ve, sx, T, fd, x6, je, mx, cd, nx, hd, f6, ke, fx, dd, cx, bd, b6, ze, hx, _d, dx, gd, v6, Oe, bx, ud, _x, vd, S6, Je, gx, wd, ux, Ad, E6, $e, vx, Pd, wx, Ax, Rd, Fd, Me, Px, Td, Yt, Ed, Yd, Sx, Rx, Fx, Vd, jd, Ce, Tx, Ne, Ex, E, Yx, Xx, Lx, Vx, jx, kx, Xt, zx, Ox, Jx, G, $x, Mx, fo, co, ho, Cx, Nx, Ie, bo, _o, Ix, Bx, qx, Be, Dx, Gx, go, uo, Ux, Wx, Cd, Hx, qe, Zx, Nd, vt, De, Qx, Kx, vo, U, wo, Ao, Po, ts, So, Ro, Fo, es, To, Eo, Yo, rs, os5, qd, is, Ge, ls, Dd, wt, Xo, Lo, Vo, Ue, jo, ko, zo, ps, as, ys, Ud, xs, We, ss, Wd, He, ms, ns, Oo, Jo, fs44, cs, Zd, hs, Ze, $o, Qe, Mo, ds, Co, bs, _s, Kd, gs, Ke, us, t2, t0, No, Lt, e0, vs, ws, r2, As, r0, Io, o2, o0, Ps, Ss, Bo, qo, Rs, Fs, l2, Ts, i0, Do, p2, l0, Es, Ys, Go, Uo, Xs, Ls, y2, Vs, p0, Wo, x2, a0, js, ks, Ho, Zo, zs, Os, m2, Js, n2, W, $s, Ms, Cs, g, c2, MP, y0, Qo, h2, Ns, Is, d2, QP, x0, Ko, b2, Bs, _2, rS, s0, ti, g2, qs, u2, pS, m0, ei, v2, Ds, w2, sS, n0, ri, A2, Gs, Us, H, Ws, Hs, Zs, Qs, Z, Ks, tm, em, rm, F2, om, f0, oi, T2, c0, im, lm, ii, li, pm, am, Y2, ym, h0, pi, X2, d0, xm, sm, ai, yi, mm, nm, b0, fm, V2, cm, hm, dm, k2, bm, _0, xi, z22, g0, _m, gm, si, mi, um, u, J2, hR, u0, ni, $22, vm, wm, M2, FR, v0, fi, C2, Am, N2, XR, w0, ci, I2, Pm, B2, kR, A0, hi, q2, Sm, D2, $R, P0, di, G2, Rm, Fm, W2, Tm, S0, Em, R0, H2, Ym, Xm, Q2, Lm, F0, Vm, Q, bi, _i, gi, jm, ui, vi, wi, km, Ai, Pi, Si, zm, K2, t9, sF, T0, Ri, e9, Om, r9, cF, E0, Fi, o9, Jm, $m, i9, vF, Y0, Ti, l9, Mm, Cm, a9, RF, X0, Nm, y9, L0, Im, Ei, Yi, Xi, Li, Bm, qm, s9, Dm, V0, Gm, m9, j0, Um, k0, f9, Wm, z0, Hm, c9, X, Vi, ji, ki, Zm, h9, Qm, O0, Km, d9, tn, zi, Oi, Ji, en, $i, Mi, Ci, rn, Ni, Ii, Bi, on2, tt, _9, pT, ln, g9, u9, pn, v9, sT, an, w9, A9, yn, P9, cT, xn, S9, R9, sn, F9, _T, mn, T9, nn, fn, Y9, cn, J0, $0, X9, M0, qi, L9, V9, hn, et, k9, YT, C0, dn, z9, bn, O9, jT, N0, _n, J9, gn, $9, JT, I0, un, M9, vn, C9, NT, B0, wn, N9, An, q0, B9, Pn, D0, Di, q9, rt, Gi, Ui, Wi, Sn, D9, KT, G0, Hi, G9, U0, Zi, Qi, Ki, Rn, tl, el, rl, Fn, Tn, En, ot, ol, il, ll, Yn, pl, al, yl, Xn, xl, sl, ml, Ln, nl, W0, Vn, H9, jn, kn, it, zn, On, Jn, $n, lt, Mn, Cn, Nn, In, pt, Bn, qn, Dn, Gn, at, Un, Wn, Hn, Zn, yt, Qn, Kn, t1, e1, xt, r1, o1, i1, l1, p1, st, fl, cl, hl, a1, dl, bl, _l, y1, gl, ul, vl, x1, s1, mt, wl, Al, Pl, m1, Sl, Rl, Fl, n1, Tl, El, Yl, f1, Vt, nt, Xl, Ll, Vl, c1, jl, kl, zl, h1, Ol, Jl, $l, d1, jt, ft, Ml, Cl, Nl, b1, Il, Bl, ql, _1, Dl, Gl, Ul, g1, ct, u1, v1, w1, A1, Wl, H0, P1, S1, sb, mb, Z0, R1, nb, kt, fb, cb, F1, T1, ht, Y1, E1, X1, L1, j1, V1, k1, z1, At5, Hl, Zl, Ql, Q0, Kl, tp, ep, O1, rp, op, ip, J1, lp, K0, $1, M1, _b, gb, C1, N1, vb, I1, tr, B1, wb, er, pp, Ab, Pb, q1, D1, Rb, G1, rr, ap, Fb, or, U1, W1, Tb, H1, Z1, Q1, K1, tf, Xb, yp, ir, ef, Lb, lr, rf, of, jb, lf, pr, pf, kb, ar, xp, zb, Ob, af, yf, $b, xf, yr, sf, xr, mf, nf, Cb, Nb, sr, ff, Ib, zt, Bb, qb, cf, hf, dt, Ub, df, Wb, bf, Hb, _f, Zb, gf, sp, mr, uf, vf, t_, e_, nr, wf, r_, Ot, o_, i_, Af, Pf, Sf, a_, y_, fr, Rf, x_, Jt, s_, m_, Ff, Tf, Ef, c_, Yf, cr, Xf, h_, hr, mp, d_, b_, Lf, Vf, YC, calculateElbowBends = (p12, p22, overshootAmount) => {
35247
+ }, w, If, o5, Ct, dp, Bf, bp, qf, a5, Nt, _p, Df, gp, Gf, m5, It, up, Uf, vp, Wf, h5, Bt, wp, Hf, Ap, Zf, g5, qt, Pp, Qf, Sp, Kf, A5, Dt, Rp, tc, Fp, A, rc, T5, Gt, Tp, oc, Ep, Yp, ic, k5, Ut, Xp, lc, Lp, Vp, pc, N5, Wt, jp, ac, kp, yc, D5, Ht, zp, xc, Op, j, mc, Z5, Zt, Jp, nc, $p, fc, eg, Qt, Mp, cc, Kt, hc, lg, te, Cp, dc, Np, gr, ur, vr, Ip, Bp, _c, qp, ee, Dp, gc, re, Gp, k, vc, Tg, Up, Wp, wc, Hp, Ac, Lg, Zp, Qp, Pc, Kp, Sc, zg, ta, ea, Rc, ra, z2, Tc, Cg, oe, oa, Ec, ia, Yc, qg, ie, la, Xc, pa, Lc, Wg, le, aa, Vc, ya, jc, Kg, pe, xa, kc, sa, zc, ou, ma, na, Oc, fa, ut, $c, yu, ca, ha, Mc, da, Cc, nu, ba, _a, Nc, ae, ga, Ic, gu, ua, va, Bc, wa, O, Dc, Pu, ye, Aa, Gc, Pa, Sa, J, Wc, Lu, xe, Ra, Hc, Fa, Ta, Zc, $u, se, Ea, Qc, Ya, Kc, Iu, me, Xa, th, La, Va, eh, Hu, ne, ja, rh, ka, P, ih, e3, fe, za, lh, Oa, Ja, ph, y3, ce, $a, ah, Ma, Ca, yh, h3, he, Na, xh, Ia, sh, g3, de, Ba, mh, qa, $2, fh, P3, be, _e, ch, Da, Ga, Ua, hh, j3, ge, ue, dh, Wa, M, _h, $3, ve, Ha, gh, Za, Qa, Ka, uh, W3, we, ty, vh, ey, St = 0.6, wr = 0.3, wh, ry, Rt = 0.6, Ar = 0.3, Ah, oy, Ft = 0.6, Pr = 0.3, Ph, iy, Tt = 0.6, Sr = 0.3, Sh, ly, S, py, ay, yy, xy, sy, my, ny, Th, Eh, Ae, fy, Yh, Et, Rr, Fr, Vh, cy, hy, R, zh, j7, Pe, dy, Oh, by, Jh, J7, Se, _y, $h, gy, Mh, N7, Re, uy, Ch, vy, Nh, D7, Fe, wy, Ih, Ay, Bh, H7, Te, Py, qh, Sy, Dh, t8, Ee, Ry, Gh, Fy, F, Ty, Ey, Yy, Xy7, Ly, Vy, C, Hh, jy, Zh, ky2, Qh, zy, Kh, Oy, td, Jy, ed, $y, rd, My, od, Cy, Ny, N, Iy, By, qy, Dy, I, Tr, Er, Yr, Gy, Xr, Lr, Vr, Uy, jr, kr, zr, Wy, Hy, B, Or, Jr, $r, Zy, Mr, Cr, Nr, Qy, Ir, Br, qr, Ky2, tx, q, Dr, Gr, Ur, ex, Wr, Hr, Zr, rx, Qr, Kr, to, ox, ix, D, eo, ro, oo, lx, io, lo, po, px, ao, yo, xo, ax, Ye, sd, Uv, Xe, yx, md, Le, so, mo, no, xx, Ve, sx, T, fd, x6, je, mx, cd, nx, hd, f6, ke, fx, dd, cx, bd, b6, ze, hx, _d, dx, gd, v6, Oe, bx, ud, _x, vd, S6, Je, gx, wd, ux, Ad, E6, $e, vx, Pd, wx, Ax, Rd, Fd, Me, Px, Td, Yt, Ed, Yd, Sx, Rx, Fx, Vd, jd, Ce, Tx, Ne, Ex, E, Yx, Xx, Lx, Vx, jx, kx, Xt, zx, Ox, Jx, G, $x, Mx, fo, co, ho, Cx, Nx, Ie, bo, _o, Ix, Bx, qx, Be, Dx, Gx, go, uo, Ux, Wx, Cd, Hx, qe, Zx, Nd, vt, De, Qx, Kx, vo, U, wo, Ao, Po, ts2, So, Ro, Fo, es, To, Eo, Yo, rs, os5, qd, is, Ge, ls, Dd, wt, Xo, Lo, Vo, Ue, jo, ko, zo, ps, as, ys, Ud, xs, We, ss, Wd, He, ms, ns, Oo, Jo, fs44, cs, Zd, hs, Ze, $o, Qe, Mo, ds, Co, bs, _s, Kd, gs, Ke, us, t2, t0, No, Lt, e0, vs, ws, r2, As, r0, Io, o2, o0, Ps, Ss, Bo, qo, Rs, Fs, l2, Ts, i0, Do, p2, l0, Es, Ys, Go, Uo, Xs, Ls, y2, Vs, p0, Wo, x2, a0, js, ks, Ho, Zo, zs, Os, m2, Js, n2, W, $s, Ms, Cs, g, c2, MP, y0, Qo, h2, Ns, Is, d2, QP, x0, Ko, b2, Bs, _2, rS, s0, ti, g2, qs, u2, pS, m0, ei, v2, Ds, w2, sS, n0, ri, A2, Gs, Us, H, Ws, Hs, Zs, Qs, Z, Ks, tm, em, rm, F2, om, f0, oi, T2, c0, im, lm, ii, li, pm, am, Y2, ym, h0, pi, X2, d0, xm, sm, ai, yi, mm, nm, b0, fm, V2, cm, hm, dm, k2, bm, _0, xi, z22, g0, _m, gm, si, mi, um, u, J2, hR, u0, ni, $22, vm, wm, M2, FR, v0, fi, C2, Am, N2, XR, w0, ci, I2, Pm, B2, kR, A0, hi, q2, Sm, D2, $R, P0, di, G2, Rm, Fm, W2, Tm, S0, Em, R0, H2, Ym, Xm, Q2, Lm, F0, Vm, Q, bi, _i, gi, jm, ui, vi, wi, km, Ai, Pi, Si, zm, K2, t9, sF, T0, Ri, e9, Om, r9, cF, E0, Fi, o9, Jm, $m, i9, vF, Y0, Ti, l9, Mm, Cm, a9, RF, X0, Nm, y9, L0, Im, Ei, Yi, Xi, Li, Bm, qm, s9, Dm, V0, Gm, m9, j0, Um, k0, f9, Wm, z0, Hm, c9, X, Vi, ji, ki, Zm, h9, Qm, O0, Km, d9, tn, zi, Oi, Ji, en, $i, Mi, Ci, rn, Ni, Ii, Bi, on2, tt, _9, pT, ln, g9, u9, pn, v9, sT, an, w9, A9, yn, P9, cT, xn, S9, R9, sn, F9, _T, mn, T9, nn, fn, Y9, cn, J0, $0, X9, M0, qi, L9, V9, hn, et, k9, YT, C0, dn, z9, bn, O9, jT, N0, _n, J9, gn, $9, JT, I0, un, M9, vn, C9, NT, B0, wn, N9, An, q0, B9, Pn, D0, Di, q9, rt, Gi, Ui, Wi, Sn, D9, KT, G0, Hi, G9, U0, Zi, Qi, Ki, Rn, tl, el, rl, Fn, Tn, En, ot, ol, il, ll, Yn, pl, al, yl, Xn, xl, sl, ml, Ln, nl, W0, Vn, H9, jn, kn, it, zn, On, Jn, $n, lt, Mn, Cn, Nn, In, pt, Bn, qn, Dn, Gn, at, Un, Wn, Hn, Zn, yt, Qn, Kn, t1, e1, xt, r1, o1, i1, l1, p1, st, fl, cl, hl, a1, dl, bl, _l, y1, gl, ul, vl, x1, s1, mt, wl, Al, Pl, m1, Sl, Rl, Fl, n1, Tl, El, Yl, f1, Vt, nt, Xl, Ll, Vl, c1, jl, kl, zl, h1, Ol, Jl, $l, d1, jt, ft, Ml, Cl, Nl, b1, Il, Bl, ql, _1, Dl, Gl, Ul, g1, ct, u1, v1, w1, A1, Wl, H0, P1, S1, sb, mb, Z0, R1, nb, kt, fb, cb, F1, T1, ht, Y1, E1, X1, L1, j1, V1, k1, z1, At5, Hl, Zl, Ql, Q0, Kl, tp, ep, O1, rp, op, ip, J1, lp, K0, $1, M1, _b, gb, C1, N1, vb, I1, tr, B1, wb, er, pp, Ab, Pb, q1, D1, Rb, G1, rr, ap, Fb, or, U1, W1, Tb, H1, Z1, Q1, K1, tf, Xb, yp, ir, ef, Lb, lr, rf, of, jb, lf, pr, pf, kb, ar, xp, zb, Ob, af, yf, $b, xf, yr, sf, xr, mf, nf, Cb, Nb, sr, ff, Ib, zt, Bb, qb, cf, hf, dt, Ub, df, Wb, bf, Hb, _f, Zb, gf, sp, mr, uf, vf, t_, e_, nr, wf, r_, Ot, o_, i_, Af, Pf, Sf, a_, y_, fr, Rf, x_, Jt, s_, m_, Ff, Tf, Ef, c_, Yf, cr, Xf, h_, hr, mp, d_, b_, Lf, Vf, YC, calculateElbowBends = (p12, p22, overshootAmount) => {
35248
35248
  const result = [{
35249
35249
  x: p12.x,
35250
35250
  y: p12.y
@@ -38941,7 +38941,7 @@ var init_chunk_4ISXDEM5 = __esm(() => {
38941
38941
  Ao.x = 0.3;
38942
38942
  Po.y -= 0.1;
38943
38943
  Po.x = 0.3;
38944
- ts = wo;
38944
+ ts2 = wo;
38945
38945
  So = r(U, "left");
38946
38946
  Ro = So.primitives.find((t) => t.type === "text" && t.text === "{REF}");
38947
38947
  Fo = So.primitives.find((t) => t.type === "text" && t.text === "{VAL}");
@@ -39682,7 +39682,7 @@ var init_chunk_4ISXDEM5 = __esm(() => {
39682
39682
  d_.anchor = "middle_left";
39683
39683
  b_.anchor = "middle_right";
39684
39684
  Lf = mp;
39685
- Vf = { ac_voltmeter_down: bp, ac_voltmeter_horz: gp, ac_voltmeter_left: vp, ac_voltmeter_right: Ap, ac_voltmeter_up: Sp, ac_voltmeter_vert: Fp, avalanche_diode_down: Ep, avalanche_diode_horz: Yp, avalanche_diode_left: Lp, avalanche_diode_right: Vp, avalanche_diode_up: kp, avalanche_diode_vert: Op, backward_diode_down: $p, backward_diode_left: Kt, backward_diode_right: Np, backward_diode_up: Ip, battery_horz: re, battery_vert: Gp, boxresistor_down: Hp, boxresistor_left: Kp, boxresistor_right: ra, boxresistor_small_down: ia, boxresistor_small_left: pa, boxresistor_small_right: ya, boxresistor_small_up: sa, boxresistor_up: fa, bridged_ground_down: da, bridged_ground_left: ga, bridged_ground_right: ae, bridged_ground_up: wa, capacitor_down: Pa, capacitor_left: Sa, capacitor_polarized_down: Fa, capacitor_polarized_left: Ta, capacitor_polarized_right: Ya, capacitor_polarized_up: La, capacitor_right: Va, capacitor_up: ka, constant_current_diode_down: Oa, constant_current_diode_horz: Ja, constant_current_diode_left: Ma, constant_current_diode_right: Ca, constant_current_diode_up: Ia, constant_current_diode_vert: qa, crystal_4pin_down: Da, crystal_4pin_left: Ga, crystal_4pin_right: Ua, crystal_4pin_up: Wa, crystal_down: Za, crystal_left: Qa, crystal_right: Ka, crystal_up: ey, current_source_down: ry, current_source_left: oy, current_source_right: iy, current_source_up: ly, darlington_pair_transistor_down: py, darlington_pair_transistor_horz: ay, darlington_pair_transistor_left: yy, darlington_pair_transistor_right: xy, darlington_pair_transistor_up: sy, darlington_pair_transistor_vert: my, dc_ammeter_horz: Et, dc_ammeter_vert: hy, dc_voltmeter_down: by, dc_voltmeter_horz: gy, dc_voltmeter_left: vy, dc_voltmeter_right: Ay, dc_voltmeter_up: Sy, dc_voltmeter_vert: Fy, diac_down: Ty, diac_horz: Ey, diac_left: Yy, diac_right: Xy7, diac_up: Ly, diac_vert: Vy, digital_ground_down: ky2, digital_ground_left: Oy, digital_ground_right: $y, digital_ground_up: Cy, diode_down: Iy, diode_left: By, diode_right: N, diode_up: qy, dpdt_normally_closed_switch_down: Gy, dpdt_normally_closed_switch_left: Uy, dpdt_normally_closed_switch_right: I, dpdt_normally_closed_switch_up: Wy, dpdt_switch_down: Zy, dpdt_switch_left: Qy, dpdt_switch_right: B, dpdt_switch_up: Ky2, dpst_normally_closed_switch_down: ex, dpst_normally_closed_switch_left: rx, dpst_normally_closed_switch_right: q, dpst_normally_closed_switch_up: ox, dpst_switch_down: lx, dpst_switch_left: px, dpst_switch_right: D, dpst_switch_up: ax, ferrite_bead_down: xx, ferrite_bead_left: sx, ferrite_bead_right: Ve, ferrite_bead_up: Le, filled_diode_down: nx, filled_diode_horz: cx, filled_diode_left: dx, filled_diode_right: _x, filled_diode_up: ux, filled_diode_vert: wx, frequency_meter_horz: Yt, frequency_meter_vert: Rx, fuse_horz: Ne, fuse_vert: Ex, ground_down: Yx, ground_horz: Xx, ground_left: Lx, ground_right: Vx, ground_up: jx, ground_vert: kx, gunn_diode_horz: zx, gunn_diode_vert: Ox, icled_down: $x, icled_left: Mx, icled_right: G, icled_up: Cx, igbt_transistor_horz: Ie, igbt_transistor_vert: Bx, illuminated_push_button_normally_open_horz: Be, illuminated_push_button_normally_open_vert: Ux, inductor_down: Qx, inductor_left: Kx, inductor_right: vt, inductor_up: De, laser_diode_down: ts, laser_diode_left: es, laser_diode_right: U, laser_diode_up: rs, led_down: ps, led_left: as, led_right: wt, led_up: Ue, light_dependent_resistor_horz: He, light_dependent_resistor_vert: fs44, mosfet_depletion_normally_on_horz: Qe, mosfet_depletion_normally_on_vert: bs, mushroom_head_normally_open_momentary_horz: t0, mushroom_head_normally_open_momentary_vert: vs, n_channel_d_mosfet_transistor_horz: o0, n_channel_d_mosfet_transistor_vert: Rs, n_channel_e_mosfet_transistor_horz: l0, n_channel_e_mosfet_transistor_vert: Xs, njfet_transistor_horz: a0, njfet_transistor_vert: zs, not_connected_down: $s, not_connected_left: Ms, not_connected_right: W, not_connected_up: Cs, npn_bipolar_transistor_down: Ns, npn_bipolar_transistor_horz: Is, npn_bipolar_transistor_left: Bs, npn_bipolar_transistor_right: qs, npn_bipolar_transistor_up: Ds, npn_bipolar_transistor_vert: Gs, opamp_no_power_down: Ws, opamp_no_power_left: Hs, opamp_no_power_right: H, opamp_no_power_up: Zs, opamp_with_power_down: Ks, opamp_with_power_left: tm, opamp_with_power_right: Z, opamp_with_power_up: em, p_channel_d_mosfet_transistor_horz: c0, p_channel_d_mosfet_transistor_vert: pm, p_channel_e_mosfet_transistor_horz: d0, p_channel_e_mosfet_transistor_vert: mm, photodiode_horz: b0, photodiode_vert: hm, pjfet_transistor_horz: g0, pjfet_transistor_vert: um, pnp_bipolar_transistor_down: vm, pnp_bipolar_transistor_horz: wm, pnp_bipolar_transistor_left: Am, pnp_bipolar_transistor_right: Pm, pnp_bipolar_transistor_up: Sm, pnp_bipolar_transistor_vert: Rm, potentiometer_horz: R0, potentiometer_vert: Ym, potentiometer2_down: jm, potentiometer2_left: km, potentiometer2_right: Q, potentiometer2_up: zm, potentiometer3_down: Om, potentiometer3_left: Jm, potentiometer3_right: $m, potentiometer3_up: Mm, power_factor_meter_horz: L0, power_factor_meter_vert: Bm, push_button_normally_closed_momentary_horz: j0, push_button_normally_closed_momentary_vert: Um, push_button_normally_open_momentary_down: Zm, push_button_normally_open_momentary_horz: tn, push_button_normally_open_momentary_left: en, push_button_normally_open_momentary_right: X, push_button_normally_open_momentary_up: rn, push_button_normally_open_momentary_vert: on2, rail_down: pn, rail_left: yn, rail_right: sn, rail_up: nn, rectifier_diode_horz: M0, rectifier_diode_vert: hn, resistor_down: bn, resistor_left: gn, resistor_right: vn, resistor_up: An, resonator_down: Sn, resonator_horz: U0, resonator_left: Rn, resonator_right: rt, resonator_up: Fn, resonator_vert: Tn, schottky_diode_down: Yn, schottky_diode_left: Xn, schottky_diode_right: ot, schottky_diode_up: Ln, silicon_controlled_rectifier_horz: W0, silicon_controlled_rectifier_vert: kn, solderjumper2_bridged12_down: zn, solderjumper2_bridged12_left: On, solderjumper2_bridged12_right: Jn, solderjumper2_bridged12_up: $n, solderjumper2_down: Mn, solderjumper2_left: Cn, solderjumper2_right: Nn, solderjumper2_up: In, solderjumper3_bridged12_down: Bn, solderjumper3_bridged12_left: qn, solderjumper3_bridged12_right: Dn, solderjumper3_bridged12_up: Gn, solderjumper3_bridged123_down: Un, solderjumper3_bridged123_left: Wn, solderjumper3_bridged123_right: Hn, solderjumper3_bridged123_up: Zn, solderjumper3_bridged23_down: Qn, solderjumper3_bridged23_left: Kn, solderjumper3_bridged23_right: t1, solderjumper3_bridged23_up: e1, solderjumper3_down: r1, solderjumper3_left: o1, solderjumper3_right: i1, solderjumper3_up: l1, spdt_normally_closed_switch_down: a1, spdt_normally_closed_switch_left: y1, spdt_normally_closed_switch_right: st, spdt_normally_closed_switch_up: x1, spdt_switch_down: m1, spdt_switch_left: n1, spdt_switch_right: mt, spdt_switch_up: f1, spst_normally_closed_switch_down: c1, spst_normally_closed_switch_left: h1, spst_normally_closed_switch_right: nt, spst_normally_closed_switch_up: d1, spst_switch_down: b1, spst_switch_left: _1, spst_switch_right: ft, spst_switch_up: g1, square_wave_down: u1, square_wave_left: v1, square_wave_right: w1, square_wave_up: A1, step_recovery_diode_horz: H0, step_recovery_diode_vert: P1, tachometer_horz: kt, tachometer_vert: T1, testpoint_down: X1, testpoint_left: L1, testpoint_right: ht, testpoint_up: k1, tilted_ground_down: O1, tilted_ground_left: J1, tilted_ground_right: At5, tilted_ground_up: Q0, triac_horz: K0, triac_vert: C1, tunnel_diode_horz: er, tunnel_diode_vert: q1, unijunction_transistor_horz: or, unijunction_transistor_vert: Z1, usbc: K1, var_meter_horz: lr, var_meter_vert: rf, varactor_diode_horz: ar, varactor_diode_vert: af, varistor_horz: xr, varistor_vert: mf, varmeter_horz: zt, varmeter_vert: hf, vcc_down: df, vcc_left: bf, vcc_right: _f, vcc_up: gf, volt_meter_horz: mr, volt_meter_vert: uf, watt_hour_meter_horz: Ot, watt_hour_meter_vert: Pf, wattmeter_horz: Jt, wattmeter_vert: Tf, zener_diode_horz: hr, zener_diode_vert: Lf };
39685
+ Vf = { ac_voltmeter_down: bp, ac_voltmeter_horz: gp, ac_voltmeter_left: vp, ac_voltmeter_right: Ap, ac_voltmeter_up: Sp, ac_voltmeter_vert: Fp, avalanche_diode_down: Ep, avalanche_diode_horz: Yp, avalanche_diode_left: Lp, avalanche_diode_right: Vp, avalanche_diode_up: kp, avalanche_diode_vert: Op, backward_diode_down: $p, backward_diode_left: Kt, backward_diode_right: Np, backward_diode_up: Ip, battery_horz: re, battery_vert: Gp, boxresistor_down: Hp, boxresistor_left: Kp, boxresistor_right: ra, boxresistor_small_down: ia, boxresistor_small_left: pa, boxresistor_small_right: ya, boxresistor_small_up: sa, boxresistor_up: fa, bridged_ground_down: da, bridged_ground_left: ga, bridged_ground_right: ae, bridged_ground_up: wa, capacitor_down: Pa, capacitor_left: Sa, capacitor_polarized_down: Fa, capacitor_polarized_left: Ta, capacitor_polarized_right: Ya, capacitor_polarized_up: La, capacitor_right: Va, capacitor_up: ka, constant_current_diode_down: Oa, constant_current_diode_horz: Ja, constant_current_diode_left: Ma, constant_current_diode_right: Ca, constant_current_diode_up: Ia, constant_current_diode_vert: qa, crystal_4pin_down: Da, crystal_4pin_left: Ga, crystal_4pin_right: Ua, crystal_4pin_up: Wa, crystal_down: Za, crystal_left: Qa, crystal_right: Ka, crystal_up: ey, current_source_down: ry, current_source_left: oy, current_source_right: iy, current_source_up: ly, darlington_pair_transistor_down: py, darlington_pair_transistor_horz: ay, darlington_pair_transistor_left: yy, darlington_pair_transistor_right: xy, darlington_pair_transistor_up: sy, darlington_pair_transistor_vert: my, dc_ammeter_horz: Et, dc_ammeter_vert: hy, dc_voltmeter_down: by, dc_voltmeter_horz: gy, dc_voltmeter_left: vy, dc_voltmeter_right: Ay, dc_voltmeter_up: Sy, dc_voltmeter_vert: Fy, diac_down: Ty, diac_horz: Ey, diac_left: Yy, diac_right: Xy7, diac_up: Ly, diac_vert: Vy, digital_ground_down: ky2, digital_ground_left: Oy, digital_ground_right: $y, digital_ground_up: Cy, diode_down: Iy, diode_left: By, diode_right: N, diode_up: qy, dpdt_normally_closed_switch_down: Gy, dpdt_normally_closed_switch_left: Uy, dpdt_normally_closed_switch_right: I, dpdt_normally_closed_switch_up: Wy, dpdt_switch_down: Zy, dpdt_switch_left: Qy, dpdt_switch_right: B, dpdt_switch_up: Ky2, dpst_normally_closed_switch_down: ex, dpst_normally_closed_switch_left: rx, dpst_normally_closed_switch_right: q, dpst_normally_closed_switch_up: ox, dpst_switch_down: lx, dpst_switch_left: px, dpst_switch_right: D, dpst_switch_up: ax, ferrite_bead_down: xx, ferrite_bead_left: sx, ferrite_bead_right: Ve, ferrite_bead_up: Le, filled_diode_down: nx, filled_diode_horz: cx, filled_diode_left: dx, filled_diode_right: _x, filled_diode_up: ux, filled_diode_vert: wx, frequency_meter_horz: Yt, frequency_meter_vert: Rx, fuse_horz: Ne, fuse_vert: Ex, ground_down: Yx, ground_horz: Xx, ground_left: Lx, ground_right: Vx, ground_up: jx, ground_vert: kx, gunn_diode_horz: zx, gunn_diode_vert: Ox, icled_down: $x, icled_left: Mx, icled_right: G, icled_up: Cx, igbt_transistor_horz: Ie, igbt_transistor_vert: Bx, illuminated_push_button_normally_open_horz: Be, illuminated_push_button_normally_open_vert: Ux, inductor_down: Qx, inductor_left: Kx, inductor_right: vt, inductor_up: De, laser_diode_down: ts2, laser_diode_left: es, laser_diode_right: U, laser_diode_up: rs, led_down: ps, led_left: as, led_right: wt, led_up: Ue, light_dependent_resistor_horz: He, light_dependent_resistor_vert: fs44, mosfet_depletion_normally_on_horz: Qe, mosfet_depletion_normally_on_vert: bs, mushroom_head_normally_open_momentary_horz: t0, mushroom_head_normally_open_momentary_vert: vs, n_channel_d_mosfet_transistor_horz: o0, n_channel_d_mosfet_transistor_vert: Rs, n_channel_e_mosfet_transistor_horz: l0, n_channel_e_mosfet_transistor_vert: Xs, njfet_transistor_horz: a0, njfet_transistor_vert: zs, not_connected_down: $s, not_connected_left: Ms, not_connected_right: W, not_connected_up: Cs, npn_bipolar_transistor_down: Ns, npn_bipolar_transistor_horz: Is, npn_bipolar_transistor_left: Bs, npn_bipolar_transistor_right: qs, npn_bipolar_transistor_up: Ds, npn_bipolar_transistor_vert: Gs, opamp_no_power_down: Ws, opamp_no_power_left: Hs, opamp_no_power_right: H, opamp_no_power_up: Zs, opamp_with_power_down: Ks, opamp_with_power_left: tm, opamp_with_power_right: Z, opamp_with_power_up: em, p_channel_d_mosfet_transistor_horz: c0, p_channel_d_mosfet_transistor_vert: pm, p_channel_e_mosfet_transistor_horz: d0, p_channel_e_mosfet_transistor_vert: mm, photodiode_horz: b0, photodiode_vert: hm, pjfet_transistor_horz: g0, pjfet_transistor_vert: um, pnp_bipolar_transistor_down: vm, pnp_bipolar_transistor_horz: wm, pnp_bipolar_transistor_left: Am, pnp_bipolar_transistor_right: Pm, pnp_bipolar_transistor_up: Sm, pnp_bipolar_transistor_vert: Rm, potentiometer_horz: R0, potentiometer_vert: Ym, potentiometer2_down: jm, potentiometer2_left: km, potentiometer2_right: Q, potentiometer2_up: zm, potentiometer3_down: Om, potentiometer3_left: Jm, potentiometer3_right: $m, potentiometer3_up: Mm, power_factor_meter_horz: L0, power_factor_meter_vert: Bm, push_button_normally_closed_momentary_horz: j0, push_button_normally_closed_momentary_vert: Um, push_button_normally_open_momentary_down: Zm, push_button_normally_open_momentary_horz: tn, push_button_normally_open_momentary_left: en, push_button_normally_open_momentary_right: X, push_button_normally_open_momentary_up: rn, push_button_normally_open_momentary_vert: on2, rail_down: pn, rail_left: yn, rail_right: sn, rail_up: nn, rectifier_diode_horz: M0, rectifier_diode_vert: hn, resistor_down: bn, resistor_left: gn, resistor_right: vn, resistor_up: An, resonator_down: Sn, resonator_horz: U0, resonator_left: Rn, resonator_right: rt, resonator_up: Fn, resonator_vert: Tn, schottky_diode_down: Yn, schottky_diode_left: Xn, schottky_diode_right: ot, schottky_diode_up: Ln, silicon_controlled_rectifier_horz: W0, silicon_controlled_rectifier_vert: kn, solderjumper2_bridged12_down: zn, solderjumper2_bridged12_left: On, solderjumper2_bridged12_right: Jn, solderjumper2_bridged12_up: $n, solderjumper2_down: Mn, solderjumper2_left: Cn, solderjumper2_right: Nn, solderjumper2_up: In, solderjumper3_bridged12_down: Bn, solderjumper3_bridged12_left: qn, solderjumper3_bridged12_right: Dn, solderjumper3_bridged12_up: Gn, solderjumper3_bridged123_down: Un, solderjumper3_bridged123_left: Wn, solderjumper3_bridged123_right: Hn, solderjumper3_bridged123_up: Zn, solderjumper3_bridged23_down: Qn, solderjumper3_bridged23_left: Kn, solderjumper3_bridged23_right: t1, solderjumper3_bridged23_up: e1, solderjumper3_down: r1, solderjumper3_left: o1, solderjumper3_right: i1, solderjumper3_up: l1, spdt_normally_closed_switch_down: a1, spdt_normally_closed_switch_left: y1, spdt_normally_closed_switch_right: st, spdt_normally_closed_switch_up: x1, spdt_switch_down: m1, spdt_switch_left: n1, spdt_switch_right: mt, spdt_switch_up: f1, spst_normally_closed_switch_down: c1, spst_normally_closed_switch_left: h1, spst_normally_closed_switch_right: nt, spst_normally_closed_switch_up: d1, spst_switch_down: b1, spst_switch_left: _1, spst_switch_right: ft, spst_switch_up: g1, square_wave_down: u1, square_wave_left: v1, square_wave_right: w1, square_wave_up: A1, step_recovery_diode_horz: H0, step_recovery_diode_vert: P1, tachometer_horz: kt, tachometer_vert: T1, testpoint_down: X1, testpoint_left: L1, testpoint_right: ht, testpoint_up: k1, tilted_ground_down: O1, tilted_ground_left: J1, tilted_ground_right: At5, tilted_ground_up: Q0, triac_horz: K0, triac_vert: C1, tunnel_diode_horz: er, tunnel_diode_vert: q1, unijunction_transistor_horz: or, unijunction_transistor_vert: Z1, usbc: K1, var_meter_horz: lr, var_meter_vert: rf, varactor_diode_horz: ar, varactor_diode_vert: af, varistor_horz: xr, varistor_vert: mf, varmeter_horz: zt, varmeter_vert: hf, vcc_down: df, vcc_left: bf, vcc_right: _f, vcc_up: gf, volt_meter_horz: mr, volt_meter_vert: uf, watt_hour_meter_horz: Ot, watt_hour_meter_vert: Pf, wattmeter_horz: Jt, wattmeter_vert: Tf, zener_diode_horz: hr, zener_diode_vert: Lf };
39686
39686
  YC = Object.fromEntries(Object.keys(Vf).map((t) => [t, t]));
39687
39687
  cju5.unparsed = cju5;
39688
39688
  su4 = cju5;
@@ -61793,14 +61793,14 @@ var require__stream_transform2 = __commonJS(function(exports2, module2) {
61793
61793
  var Duplex = require__stream_duplex2();
61794
61794
  require_inherits()(Transform, Duplex);
61795
61795
  function afterTransform(er3, data) {
61796
- var ts3 = this._transformState;
61797
- ts3.transforming = false;
61798
- var cb3 = ts3.writecb;
61796
+ var ts4 = this._transformState;
61797
+ ts4.transforming = false;
61798
+ var cb3 = ts4.writecb;
61799
61799
  if (cb3 === null) {
61800
61800
  return this.emit("error", new ERR_MULTIPLE_CALLBACK);
61801
61801
  }
61802
- ts3.writechunk = null;
61803
- ts3.writecb = null;
61802
+ ts4.writechunk = null;
61803
+ ts4.writecb = null;
61804
61804
  if (data != null)
61805
61805
  this.push(data);
61806
61806
  cb3(er3);
@@ -61850,23 +61850,23 @@ var require__stream_transform2 = __commonJS(function(exports2, module2) {
61850
61850
  cb3(new ERR_METHOD_NOT_IMPLEMENTED("_transform()"));
61851
61851
  };
61852
61852
  Transform.prototype._write = function(chunk, encoding, cb3) {
61853
- var ts3 = this._transformState;
61854
- ts3.writecb = cb3;
61855
- ts3.writechunk = chunk;
61856
- ts3.writeencoding = encoding;
61857
- if (!ts3.transforming) {
61853
+ var ts4 = this._transformState;
61854
+ ts4.writecb = cb3;
61855
+ ts4.writechunk = chunk;
61856
+ ts4.writeencoding = encoding;
61857
+ if (!ts4.transforming) {
61858
61858
  var rs3 = this._readableState;
61859
- if (ts3.needTransform || rs3.needReadable || rs3.length < rs3.highWaterMark)
61859
+ if (ts4.needTransform || rs3.needReadable || rs3.length < rs3.highWaterMark)
61860
61860
  this._read(rs3.highWaterMark);
61861
61861
  }
61862
61862
  };
61863
61863
  Transform.prototype._read = function(n3) {
61864
- var ts3 = this._transformState;
61865
- if (ts3.writechunk !== null && !ts3.transforming) {
61866
- ts3.transforming = true;
61867
- this._transform(ts3.writechunk, ts3.writeencoding, ts3.afterTransform);
61864
+ var ts4 = this._transformState;
61865
+ if (ts4.writechunk !== null && !ts4.transforming) {
61866
+ ts4.transforming = true;
61867
+ this._transform(ts4.writechunk, ts4.writeencoding, ts4.afterTransform);
61868
61868
  } else {
61869
- ts3.needTransform = true;
61869
+ ts4.needTransform = true;
61870
61870
  }
61871
61871
  };
61872
61872
  Transform.prototype._destroy = function(err, cb3) {
@@ -65821,14 +65821,14 @@ var require__stream_transform3 = __commonJS(function(exports2, module2) {
65821
65821
  var Duplex = require__stream_duplex3();
65822
65822
  require_inherits()(Transform, Duplex);
65823
65823
  function afterTransform(er3, data) {
65824
- var ts3 = this._transformState;
65825
- ts3.transforming = false;
65826
- var cb3 = ts3.writecb;
65824
+ var ts4 = this._transformState;
65825
+ ts4.transforming = false;
65826
+ var cb3 = ts4.writecb;
65827
65827
  if (cb3 === null) {
65828
65828
  return this.emit("error", new ERR_MULTIPLE_CALLBACK);
65829
65829
  }
65830
- ts3.writechunk = null;
65831
- ts3.writecb = null;
65830
+ ts4.writechunk = null;
65831
+ ts4.writecb = null;
65832
65832
  if (data != null)
65833
65833
  this.push(data);
65834
65834
  cb3(er3);
@@ -65878,23 +65878,23 @@ var require__stream_transform3 = __commonJS(function(exports2, module2) {
65878
65878
  cb3(new ERR_METHOD_NOT_IMPLEMENTED("_transform()"));
65879
65879
  };
65880
65880
  Transform.prototype._write = function(chunk, encoding, cb3) {
65881
- var ts3 = this._transformState;
65882
- ts3.writecb = cb3;
65883
- ts3.writechunk = chunk;
65884
- ts3.writeencoding = encoding;
65885
- if (!ts3.transforming) {
65881
+ var ts4 = this._transformState;
65882
+ ts4.writecb = cb3;
65883
+ ts4.writechunk = chunk;
65884
+ ts4.writeencoding = encoding;
65885
+ if (!ts4.transforming) {
65886
65886
  var rs3 = this._readableState;
65887
- if (ts3.needTransform || rs3.needReadable || rs3.length < rs3.highWaterMark)
65887
+ if (ts4.needTransform || rs3.needReadable || rs3.length < rs3.highWaterMark)
65888
65888
  this._read(rs3.highWaterMark);
65889
65889
  }
65890
65890
  };
65891
65891
  Transform.prototype._read = function(n3) {
65892
- var ts3 = this._transformState;
65893
- if (ts3.writechunk !== null && !ts3.transforming) {
65894
- ts3.transforming = true;
65895
- this._transform(ts3.writechunk, ts3.writeencoding, ts3.afterTransform);
65892
+ var ts4 = this._transformState;
65893
+ if (ts4.writechunk !== null && !ts4.transforming) {
65894
+ ts4.transforming = true;
65895
+ this._transform(ts4.writechunk, ts4.writeencoding, ts4.afterTransform);
65896
65896
  } else {
65897
- ts3.needTransform = true;
65897
+ ts4.needTransform = true;
65898
65898
  }
65899
65899
  };
65900
65900
  Transform.prototype._destroy = function(err, cb3) {
@@ -69836,14 +69836,14 @@ var require__stream_transform4 = __commonJS(function(exports2, module2) {
69836
69836
  var Duplex = require__stream_duplex4();
69837
69837
  require_inherits()(Transform, Duplex);
69838
69838
  function afterTransform(er3, data) {
69839
- var ts3 = this._transformState;
69840
- ts3.transforming = false;
69841
- var cb3 = ts3.writecb;
69839
+ var ts4 = this._transformState;
69840
+ ts4.transforming = false;
69841
+ var cb3 = ts4.writecb;
69842
69842
  if (cb3 === null) {
69843
69843
  return this.emit("error", new ERR_MULTIPLE_CALLBACK);
69844
69844
  }
69845
- ts3.writechunk = null;
69846
- ts3.writecb = null;
69845
+ ts4.writechunk = null;
69846
+ ts4.writecb = null;
69847
69847
  if (data != null)
69848
69848
  this.push(data);
69849
69849
  cb3(er3);
@@ -69893,23 +69893,23 @@ var require__stream_transform4 = __commonJS(function(exports2, module2) {
69893
69893
  cb3(new ERR_METHOD_NOT_IMPLEMENTED("_transform()"));
69894
69894
  };
69895
69895
  Transform.prototype._write = function(chunk, encoding, cb3) {
69896
- var ts3 = this._transformState;
69897
- ts3.writecb = cb3;
69898
- ts3.writechunk = chunk;
69899
- ts3.writeencoding = encoding;
69900
- if (!ts3.transforming) {
69896
+ var ts4 = this._transformState;
69897
+ ts4.writecb = cb3;
69898
+ ts4.writechunk = chunk;
69899
+ ts4.writeencoding = encoding;
69900
+ if (!ts4.transforming) {
69901
69901
  var rs3 = this._readableState;
69902
- if (ts3.needTransform || rs3.needReadable || rs3.length < rs3.highWaterMark)
69902
+ if (ts4.needTransform || rs3.needReadable || rs3.length < rs3.highWaterMark)
69903
69903
  this._read(rs3.highWaterMark);
69904
69904
  }
69905
69905
  };
69906
69906
  Transform.prototype._read = function(n3) {
69907
- var ts3 = this._transformState;
69908
- if (ts3.writechunk !== null && !ts3.transforming) {
69909
- ts3.transforming = true;
69910
- this._transform(ts3.writechunk, ts3.writeencoding, ts3.afterTransform);
69907
+ var ts4 = this._transformState;
69908
+ if (ts4.writechunk !== null && !ts4.transforming) {
69909
+ ts4.transforming = true;
69910
+ this._transform(ts4.writechunk, ts4.writeencoding, ts4.afterTransform);
69911
69911
  } else {
69912
- ts3.needTransform = true;
69912
+ ts4.needTransform = true;
69913
69913
  }
69914
69914
  };
69915
69915
  Transform.prototype._destroy = function(err, cb3) {
@@ -122416,8 +122416,8 @@ var require_UPNG = __commonJS(function(exports2) {
122416
122416
  bf3[i3] = data[i3 << 1];
122417
122417
  }
122418
122418
  } else if (ctype == 2) {
122419
- var ts4 = out.tabs["tRNS"];
122420
- if (ts4 == null) {
122419
+ var ts5 = out.tabs["tRNS"];
122420
+ if (ts5 == null) {
122421
122421
  if (depth == 8)
122422
122422
  for (var i3 = 0;i3 < area2; i3++) {
122423
122423
  var ti3 = i3 * 3;
@@ -122429,7 +122429,7 @@ var require_UPNG = __commonJS(function(exports2) {
122429
122429
  bf32[i3] = 255 << 24 | data[ti3 + 4] << 16 | data[ti3 + 2] << 8 | data[ti3];
122430
122430
  }
122431
122431
  } else {
122432
- var tr3 = ts4[0], tg2 = ts4[1], tb2 = ts4[2];
122432
+ var tr3 = ts5[0], tg2 = ts5[1], tb2 = ts5[2];
122433
122433
  if (depth == 8)
122434
122434
  for (var i3 = 0;i3 < area2; i3++) {
122435
122435
  var qi3 = i3 << 2, ti3 = i3 * 3;
@@ -152553,6 +152553,7 @@ import resolve3 from "@rollup/plugin-node-resolve";
152553
152553
  import commonjs from "@rollup/plugin-commonjs";
152554
152554
  import json from "@rollup/plugin-json";
152555
152555
  import dts from "rollup-plugin-dts";
152556
+ import ts from "typescript";
152556
152557
 
152557
152558
  // cli/build/transpile/static-asset-plugin.ts
152558
152559
  import fs39 from "node:fs";
@@ -152681,6 +152682,12 @@ function escapeRegExp(string) {
152681
152682
  }
152682
152683
 
152683
152684
  // cli/build/transpile/index.ts
152685
+ var [typescriptMajor, typescriptMinor] = ts.versionMajorMinor.split(".").map(Number);
152686
+ var supportsRewriteRelativeImportExtensions = typescriptMajor > 5 || typescriptMajor === 5 && typescriptMinor >= 7;
152687
+ var typescriptExtensionEmitOptions = supportsRewriteRelativeImportExtensions ? {
152688
+ allowImportingTsExtensions: true,
152689
+ rewriteRelativeImportExtensions: true
152690
+ } : { allowImportingTsExtensions: false };
152684
152691
  var createExternalFunction = (projectDir, tsconfigPath) => (id) => {
152685
152692
  if (id.startsWith(".") || id.startsWith("/") || path43.isAbsolute(id)) {
152686
152693
  return false;
@@ -152772,7 +152779,7 @@ var transpileFile = async ({
152772
152779
  sourceMap: false,
152773
152780
  noEmit: false,
152774
152781
  emitDeclarationOnly: false,
152775
- allowImportingTsExtensions: false
152782
+ ...typescriptExtensionEmitOptions
152776
152783
  } : {
152777
152784
  target: "ES2020",
152778
152785
  module: "ESNext",
@@ -152783,7 +152790,8 @@ var transpileFile = async ({
152783
152790
  resolveJsonModule: true,
152784
152791
  allowSyntheticDefaultImports: true,
152785
152792
  allowArbitraryExtensions: true,
152786
- baseUrl: projectDir
152793
+ baseUrl: projectDir,
152794
+ ...typescriptExtensionEmitOptions
152787
152795
  }
152788
152796
  })
152789
152797
  ];
@@ -187018,7 +187026,7 @@ function Ki2(t49, e22, n22 = 0.000000001) {
187018
187026
  function Qi2(t49, e22, n22, o22) {
187019
187027
  return t49 * o22 - e22 * n22;
187020
187028
  }
187021
- function ts2(t49, e22, n22, o22) {
187029
+ function ts3(t49, e22, n22, o22) {
187022
187030
  const i2 = { x: e22.x - t49.x, y: e22.y - t49.y }, s2 = { x: o22.x - n22.x, y: o22.y - n22.y }, r22 = Qi2(i2.x, i2.y, s2.x, s2.y);
187023
187031
  if (Ki2(r22, 0))
187024
187032
  return null;
@@ -187068,7 +187076,7 @@ function ss2(t49, e22) {
187068
187076
  }
187069
187077
  for (let t50 = 0;t50 < n22.length; ++t50)
187070
187078
  for (let e32 = t50 + 1;e32 < n22.length; ++e32) {
187071
- const i3 = ts2(n22[t50].start, n22[t50].end, n22[e32].start, n22[e32].end);
187079
+ const i3 = ts3(n22[t50].start, n22[t50].end, n22[e32].start, n22[e32].end);
187072
187080
  i3 && (o22[t50].push(i3), o22[e32].push(i3));
187073
187081
  }
187074
187082
  const i2 = /* @__PURE__ */ new Map, s2 = [];
@@ -313324,7 +313332,7 @@ function watch(paths, options = {}) {
313324
313332
  import Debug3 from "debug";
313325
313333
 
313326
313334
  // lib/dependency-analysis/getNodeModuleDependencies.ts
313327
- import * as ts3 from "typescript";
313335
+ import * as ts4 from "typescript";
313328
313336
  import * as path60 from "path";
313329
313337
  import * as fs54 from "fs";
313330
313338
  function getAllDependencyPackages(projectDir) {
@@ -313354,37 +313362,37 @@ function getNodeModuleImports(filePath) {
313354
313362
  return [];
313355
313363
  }
313356
313364
  const content = fs54.readFileSync(absolutePath, "utf-8");
313357
- const sourceFile = ts3.createSourceFile(absolutePath, content, ts3.ScriptTarget.Latest, true);
313365
+ const sourceFile = ts4.createSourceFile(absolutePath, content, ts4.ScriptTarget.Latest, true);
313358
313366
  const imports = new Set;
313359
313367
  function visit(node) {
313360
- if (ts3.isImportDeclaration(node) || ts3.isExportDeclaration(node)) {
313368
+ if (ts4.isImportDeclaration(node) || ts4.isExportDeclaration(node)) {
313361
313369
  const moduleSpecifier = node.moduleSpecifier;
313362
- if (moduleSpecifier && ts3.isStringLiteral(moduleSpecifier)) {
313370
+ if (moduleSpecifier && ts4.isStringLiteral(moduleSpecifier)) {
313363
313371
  const importPath = moduleSpecifier.text;
313364
313372
  if (!importPath.startsWith(".") && !importPath.startsWith("/")) {
313365
313373
  imports.add(importPath);
313366
313374
  }
313367
313375
  }
313368
313376
  }
313369
- if (ts3.isCallExpression(node) && node.expression.kind === ts3.SyntaxKind.ImportKeyword) {
313377
+ if (ts4.isCallExpression(node) && node.expression.kind === ts4.SyntaxKind.ImportKeyword) {
313370
313378
  const argument = node.arguments[0];
313371
- if (argument && ts3.isStringLiteral(argument)) {
313379
+ if (argument && ts4.isStringLiteral(argument)) {
313372
313380
  const importPath = argument.text;
313373
313381
  if (!importPath.startsWith(".") && !importPath.startsWith("/")) {
313374
313382
  imports.add(importPath);
313375
313383
  }
313376
313384
  }
313377
313385
  }
313378
- if (ts3.isCallExpression(node) && ts3.isIdentifier(node.expression) && node.expression.text === "require") {
313386
+ if (ts4.isCallExpression(node) && ts4.isIdentifier(node.expression) && node.expression.text === "require") {
313379
313387
  const argument = node.arguments[0];
313380
- if (argument && ts3.isStringLiteral(argument)) {
313388
+ if (argument && ts4.isStringLiteral(argument)) {
313381
313389
  const importPath = argument.text;
313382
313390
  if (!importPath.startsWith(".") && !importPath.startsWith("/")) {
313383
313391
  imports.add(importPath);
313384
313392
  }
313385
313393
  }
313386
313394
  }
313387
- ts3.forEachChild(node, visit);
313395
+ ts4.forEachChild(node, visit);
313388
313396
  }
313389
313397
  visit(sourceFile);
313390
313398
  return Array.from(imports);
@@ -313541,12 +313549,12 @@ function collectAllNodeModuleDependencies(entryFilePath, projectDir, maxDepth =
313541
313549
  return [];
313542
313550
  }
313543
313551
  const content = fs54.readFileSync(absolutePath, "utf-8");
313544
- const sourceFile = ts3.createSourceFile(absolutePath, content, ts3.ScriptTarget.Latest, true);
313552
+ const sourceFile = ts4.createSourceFile(absolutePath, content, ts4.ScriptTarget.Latest, true);
313545
313553
  const dependencies = [];
313546
313554
  function visit(node) {
313547
- if (ts3.isImportDeclaration(node) || ts3.isExportDeclaration(node)) {
313555
+ if (ts4.isImportDeclaration(node) || ts4.isExportDeclaration(node)) {
313548
313556
  const moduleSpecifier = node.moduleSpecifier;
313549
- if (moduleSpecifier && ts3.isStringLiteral(moduleSpecifier)) {
313557
+ if (moduleSpecifier && ts4.isStringLiteral(moduleSpecifier)) {
313550
313558
  const importPath = moduleSpecifier.text;
313551
313559
  if (importPath.startsWith(".")) {
313552
313560
  const resolved = resolveLocalImport(importPath, baseDir);
@@ -313555,7 +313563,7 @@ function collectAllNodeModuleDependencies(entryFilePath, projectDir, maxDepth =
313555
313563
  }
313556
313564
  }
313557
313565
  }
313558
- ts3.forEachChild(node, visit);
313566
+ ts4.forEachChild(node, visit);
313559
313567
  }
313560
313568
  visit(sourceFile);
313561
313569
  return dependencies;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.2004",
3
+ "version": "0.1.2005",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/tscircuit/cli"