@tscircuit/cli 0.1.148 → 0.1.150

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/main.js +930 -537
  2. package/package.json +3 -3
package/dist/main.js CHANGED
@@ -236551,10 +236551,10 @@ function getBoundsOfPrimitives(primitives2) {
236551
236551
  function defineSymbol(symbol8) {
236552
236552
  let size3 = symbol8.size;
236553
236553
  if (!size3) {
236554
- const bounds68 = getBoundsOfPrimitives(symbol8.primitives);
236554
+ const bounds73 = getBoundsOfPrimitives(symbol8.primitives);
236555
236555
  size3 = {
236556
- width: bounds68.maxX - bounds68.minX,
236557
- height: bounds68.maxY - bounds68.minY
236556
+ width: bounds73.maxX - bounds73.minX,
236557
+ height: bounds73.maxY - bounds73.minY
236558
236558
  };
236559
236559
  }
236560
236560
  return { ...symbol8, size: size3 };
@@ -236813,14 +236813,14 @@ var import_transformation_matrix2, ac_voltmeter_default, paths, bounds, refblock
236813
236813
  ...port,
236814
236814
  ...import_transformation_matrix2.applyToPoint(transform2, port)
236815
236815
  }));
236816
- const bounds68 = getBoundsOfPrimitives(rotatedPrimitives);
236816
+ const bounds73 = getBoundsOfPrimitives(rotatedPrimitives);
236817
236817
  return {
236818
236818
  primitives: rotatedPrimitives,
236819
236819
  center,
236820
236820
  ports: rotatedPorts,
236821
236821
  size: {
236822
- width: bounds68.maxX - bounds68.minX,
236823
- height: bounds68.maxY - bounds68.minY
236822
+ width: bounds73.maxX - bounds73.minX,
236823
+ height: bounds73.maxY - bounds73.minY
236824
236824
  },
236825
236825
  ...overrides
236826
236826
  };
@@ -236864,10 +236864,10 @@ var import_transformation_matrix2, ac_voltmeter_default, paths, bounds, refblock
236864
236864
  return this;
236865
236865
  }
236866
236866
  computeSize() {
236867
- const bounds68 = getBoundsOfPrimitives(this.symbol.primitives);
236867
+ const bounds73 = getBoundsOfPrimitives(this.symbol.primitives);
236868
236868
  return {
236869
- width: bounds68.maxX - bounds68.minX,
236870
- height: bounds68.maxY - bounds68.minY
236869
+ width: bounds73.maxX - bounds73.minX,
236870
+ height: bounds73.maxY - bounds73.minY
236871
236871
  };
236872
236872
  }
236873
236873
  build() {
@@ -236899,7 +236899,7 @@ var import_transformation_matrix2, ac_voltmeter_default, paths, bounds, refblock
236899
236899
  ports,
236900
236900
  center
236901
236901
  });
236902
- }, paths3, texts2, bounds3, refblocks3, circles3, backward_diode_down_default, paths4, texts3, bounds4, refblocks4, circles4, backward_diode_left_default, paths5, texts4, bounds5, refblocks5, circles5, backward_diode_right_default, rotated2, ref, val, backward_diode_up_default, battery_default, paths7, texts6, bounds7, refblocks7, circles7, battery_horz_default, battery_vert_default, boxresistor_default, paths8, texts7, bounds8, refblocks8, circles8, boxresistor_down_default, paths9, texts8, bounds9, refblocks9, circles9, boxresistor_left_default, paths10, texts9, bounds10, refblocks10, circles10, boxresistor_right_default, boxresistor_small_default, paths11, texts10, bounds11, refblocks11, circles11, boxresistor_small_down_default, paths12, texts11, bounds12, refblocks12, circles12, boxresistor_small_left_default, paths13, texts12, bounds13, refblocks13, circles13, boxresistor_small_right_default, paths14, texts13, bounds14, refblocks14, circles14, boxresistor_small_up_default, paths15, texts14, bounds15, refblocks15, circles15, boxresistor_up_default, capacitor_default, paths16, texts15, bounds16, refblocks16, circles16, capacitor_down_default, capacitor_left_default, capacitor_polarized_default, paths17, texts16, bounds17, refblocks17, circles17, capacitor_polarized_down_default, paths18, texts17, bounds18, refblocks18, circles18, capacitor_polarized_left_default, capacitor_polarized_right_default, paths19, texts18, bounds19, refblocks19, circles19, capacitor_polarized_up_default, capacitor_right_default, paths20, texts19, bounds20, refblocks20, circles20, capacitor_up_default, constant_current_diode_default, constant_current_diode_horz_default, constant_current_diode_vert_default, crystal_4pin_default, crystal_4pin_horz_default, crystal_4pin_vert_default, crystal_default, crystal_horz_default, crystal_vert_default, darlington_pair_transistor_default, darlington_pair_transistor_horz_default, darlington_pair_transistor_vert_default, dc_ammeter_default, paths21, texts20, bounds21, refblocks21, circles21, dc_ammeter_horz_default, letter, underline, rest, rotatedSymbol2, dc_ammeter_vert_default, dc_voltmeter_default, paths22, texts21, bounds22, refblocks22, circles22, dc_voltmeter_horz_default, letter2, underline2, rest2, rotatedSymbol3, dc_voltmeter_vert_default, diac_default, diac_horz_default, rotatedSymbol4, texts22, ref2, val2, diac_vert_default, diode_default, diode_right_default, diode_down_default, diode_left_default, diode_up_default, dpdt_normally_closed_switch_default, dpdt_normally_closed_switch_right_default, rotated3, ref3, val3, dpdt_normally_closed_switch_down_default, rotated4, ref4, val4, dpdt_normally_closed_switch_left_default, rotated5, ref5, val5, dpdt_normally_closed_switch_up_default, dpdt_switch_default, dpdt_switch_right_default, rotated6, ref6, val6, dpdt_switch_down_default, rotated7, ref7, val7, dpdt_switch_left_default, rotated8, ref8, val8, dpdt_switch_up_default, dpst_normally_closed_switch_default, dpst_normally_closed_switch_right_default, rotated9, ref9, val9, dpst_normally_closed_switch_down_default, rotated10, ref10, val10, dpst_normally_closed_switch_left_default, rotated11, ref11, val11, dpst_normally_closed_switch_up_default, dpst_switch_default, dpst_switch_right_default, rotated12, ref12, val12, dpst_switch_down_default, rotated13, ref13, val13, dpst_switch_left_default, rotated14, ref14, val14, dpst_switch_up_default, ferrite_bead_default, paths23, texts23, bounds23, refblocks23, circles23, ferrite_bead_up_default, symbol, ref15, val15, ferrite_bead_down_default, ferrite_bead_right_default, ferrite_bead_left_default, filled_diode_default, filled_diode_horz_default, filled_diode_vert_default, frequency_meter_default, paths24, texts24, bounds24, refblocks24, circles24, frequency_meter_horz_default, letter3, rest3, rotatedSymbol5, frequency_meter_vert_default, fuse_default, paths25, texts25, bounds25, refblocks25, fuse_horz_default, fuse_vert_default, ground_default, ground_down_default, ground_horz_default, ground_left_default, ground_right_default, ground_up_default, ground_vert_default, ground2_default, paths26, texts26, bounds26, refblocks26, ground2_down_default, paths27, texts27, bounds27, refblocks27, circles25, ground2_left_default, paths28, texts28, bounds28, refblocks28, circles26, ground2_right_default, paths29, texts29, bounds29, refblocks29, circles27, ground2_up_default, gunn_diode_default, gunn_diode_horz_default, gunn_diode_vert_default, icled_default, icled_right_default, icled_down_default, icled_left_default, symbol2, ref16, val16, icled_up_default, igbt_transistor_default, igbt_transistor_horz_default, rotated15, ref17, val17, igbt_transistor_vert_default, illuminated_push_button_normally_open_default, illuminated_push_button_normally_open_horz_default, rotatedSymbol6, texts31, val18, ref18, illuminated_push_button_normally_open_vert_default, inductor_default, paths31, texts32, bounds31, refblocks31, circles29, inductor_right_default, inductor_up_default, inductor_down_default, inductor_left_default, laser_diode_default, laser_diode_horz_default, rotatedSymbol7, texts33, ref19, laser_diode_vert_default, led_default, paths32, texts34, bounds32, refblocks32, circles30, led_right_default, symbol3, ref20, val19, led_up_default, symbol4, ref21, val20, led_down_default, led_left_default, light_dependent_resistor_default, paths33, texts35, bounds33, refblocks33, circles31, light_dependent_resistor_horz_default, rotatedSymbol8, texts36, val21, ref22, light_dependent_resistor_vert_default, mosfet_depletion_normally_on_default, paths34, texts37, bounds34, refblocks34, mosfet_depletion_normally_on_horz_default, rotated16, ref23, val22, mosfet_depletion_normally_on_vert_default, mushroom_head_normally_open_momentary_default, paths35, texts38, bounds35, refblocks35, circles32, mushroom_head_normally_open_momentary_horz_default, rotated17, ref24, val23, mushroom_head_normally_open_momentary_vert_default, n_channel_d_mosfet_transistor_default, paths36, texts39, bounds36, refblocks36, circles33, n_channel_d_mosfet_transistor_horz_default, rotatedSymbol9, texts40, val24, ref25, n_channel_d_mosfet_transistor_vert_default, n_channel_e_mosfet_transistor_default, paths37, texts41, bounds37, refblocks37, circles34, n_channel_e_mosfet_transistor_horz_default, rotatedSymbol10, texts42, val25, ref26, n_channel_e_mosfet_transistor_vert_default, njfet_transistor_default, paths38, texts43, bounds38, refblocks38, circles35, njfet_transistor_horz_default, rotatedSymbol11, texts44, val26, ref27, njfet_transistor_vert_default, npn_bipolar_transistor_default, npn_bipolar_transistor_horz_default, rotatedSymbol12, texts46, ref28, npn_bipolar_transistor_vert_default, opamp_no_power_default, opamp_no_power_right_default, opamp_no_power_down_default, opamp_no_power_left_default, opamp_no_power_up_default, opamp_with_power_default, opamp_with_power_right_default, opamp_with_power_down_default, opamp_with_power_left_default, opamp_with_power_up_default, p_channel_d_mosfet_transistor_default, paths40, texts47, bounds40, refblocks40, circles37, p_channel_d_mosfet_transistor_horz_default, rotatedSymbol13, texts48, val27, ref29, p_channel_d_mosfet_transistor_vert_default, p_channel_e_mosfet_transistor_default, paths41, texts49, bounds41, refblocks41, circles38, p_channel_e_mosfet_transistor_horz_default, rotatedSymbol14, texts50, val28, ref30, p_channel_e_mosfet_transistor_vert_default, photodiode_default, photodiode_horz_default, rotatedSymbol15, texts51, ref31, photodiode_vert_default, pjfet_transistor_default, paths42, texts52, bounds42, refblocks42, circles39, pjfet_transistor_horz_default, rotatedSymbol16, texts53, val29, ref32, pjfet_transistor_vert_default, pnp_bipolar_transistor_default, pnp_bipolar_transistor_horz_default, rotatedSymbol17, texts54, ref33, pnp_bipolar_transistor_vert_default, potentiometer_default, paths43, texts55, bounds43, refblocks43, potentiometer_horz_default, rotated18, potentiometer_vert_default, potentiometer2_default, paths44, texts56, bounds44, refblocks44, potentiometer2_right_default, symbol5, ref34, val30, potentiometer2_down_default, symbol6, ref35, val31, potentiometer2_left_default, symbol7, ref36, val32, potentiometer2_up_default, potentiometer3_default, potentiometer3_right_default, potentiometer3_down_default, potentiometer3_left_default, potentiometer3_up_default, power_factor_meter_default, paths45, texts57, bounds45, refblocks45, circles40, power_factor_meter_horz_default, rotatedSymbol18, texts58, ref37, val33, text_cos, power_factor_meter_vert_default, push_button_normally_closed_momentary_default, paths46, texts59, bounds46, refblocks46, circles41, push_button_normally_closed_momentary_horz_default, push_button_normally_closed_momentary_vert_default, push_button_normally_open_momentary_default, paths47, texts60, bounds47, refblocks47, circles42, push_button_normally_open_momentary_horz_default, push_button_normally_open_momentary_vert_default, rectifier_diode_default, paths48, texts61, bounds48, refblocks48, circles43, rectifier_diode_horz_default, rotated19, ref38, val34, rectifier_diode_vert_default, resistor_default, paths49, texts62, bounds49, refblocks49, circles44, resistor_down_default, paths50, texts63, bounds50, refblocks50, circles45, resistor_left_default, paths51, texts64, bounds51, refblocks51, circles46, resistor_right_default, paths52, texts65, bounds52, refblocks52, circles47, resistor_up_default, resonator_default, paths53, texts66, bounds53, refblocks53, circles48, resonator_horz_default, resonator_vert_default, schottky_diode_default, schottky_diode_right_default, rotated20, ref39, val35, schottky_diode_down_default, rotated21, ref40, val36, schottky_diode_left_default, rotated22, ref41, val37, schottky_diode_up_default, silicon_controlled_rectifier_default, silicon_controlled_rectifier_horz_default, rotatedSymbol19, texts68, ref42, silicon_controlled_rectifier_vert_default, solderjumper2_bridged12_default, solderjumper2_bridged12_down_default, solderjumper2_bridged12_left_default, solderjumper2_bridged12_right_default, solderjumper2_bridged12_up_default, solderjumper2_default, solderjumper2_down_default, solderjumper2_left_default, solderjumper2_right_default, solderjumper2_up_default, solderjumper3_bridged12_default, solderjumper3_bridged12_down_default, solderjumper3_bridged12_left_default, solderjumper3_bridged12_right_default, solderjumper3_bridged12_up_default, solderjumper3_bridged123_default, solderjumper3_bridged123_down_default, solderjumper3_bridged123_left_default, solderjumper3_bridged123_right_default, solderjumper3_bridged123_up_default, solderjumper3_bridged23_default, solderjumper3_bridged23_down_default, solderjumper3_bridged23_left_default, solderjumper3_bridged23_right_default, solderjumper3_bridged23_up_default, solderjumper3_default, solderjumper3_down_default, solderjumper3_left_default, solderjumper3_right_default, solderjumper3_up_default, spdt_normally_closed_switch_default, spdt_normally_closed_switch_right_default, rotated23, ref43, val38, spdt_normally_closed_switch_down_default, rotated24, ref44, val39, spdt_normally_closed_switch_left_default, rotated25, ref45, val40, spdt_normally_closed_switch_up_default, spdt_switch_default, spdt_switch_right_default, rotated26, ref46, val41, spdt_switch_down_default, rotated27, ref47, val42, spdt_switch_left_default, rotated28, ref48, val43, spdt_switch_up_default, spst_normally_closed_switch_default, spst_normally_closed_switch_right_default, rotated29, ref49, val44, spst_normally_closed_switch_down_default, rotated30, ref50, val45, spst_normally_closed_switch_left_default, rotated31, ref51, val46, spst_normally_closed_switch_up_default, spst_switch_default, spst_switch_right_default, rotated32, ref52, val47, spst_switch_down_default, rotated33, ref53, val48, spst_switch_left_default, rotated34, ref54, val49, spst_switch_up_default, step_recovery_diode_default, step_recovery_diode_horz_default, step_recovery_diode_vert_default, tachometer_default, paths56, texts70, bounds56, refblocks56, circles51, tachometer_horz_default, letter4, rest4, rotatedSymbol20, tachometer_vert_default, testpoint_right_default, rotated35, ref55, testpoint_down_default, testpoint_left_default, rotated36, ref56, testpoint_up_default, tilted_ground_default, tilted_ground_right_default, rotated37, ref57, val50, tilted_ground_up_default, rotated38, ref58, val51, tilted_ground_down_default, rotated39, ref59, val52, tilted_ground_left_default, triac_default, triac_horz_default, rotatedSymbol21, texts72, ref60, val53, triac_vert_default, tunnel_diode_default, paths58, texts73, bounds58, refblocks58, circles53, tunnel_diode_horz_default, rotated40, ref61, val54, tunnel_diode_vert_default, unijunction_transistor_default, paths59, texts74, bounds59, refblocks59, circles54, unijunction_transistor_horz_default, rotatedSymbol22, texts75, ref62, val55, unijunction_transistor_vert_default, var_meter_default, paths60, texts76, bounds60, refblocks60, circles55, var_meter_horz_default, var_meter_vert_default, varactor_diode_default, paths61, texts77, bounds61, refblocks61, circles56, varactor_diode_horz_default, rotated41, ref63, val56, varactor_diode_vert_default, varistor_default, paths62, texts78, bounds62, refblocks62, varistor_horz_default, varistor_vert_default, varmeter_default, paths63, texts79, bounds63, refblocks63, circles57, varmeter_horz_default, letter5, rest5, rotatedSymbol23, varmeter_vert_default, vcc_default, vcc_down_default, vcc_left_default, vcc_right_default, vcc_up_default, volt_meter_default, volt_meter_horz_default, volt_meter_vert_default, watt_hour_meter_default, paths65, texts81, bounds65, refblocks65, circles59, watt_hour_meter_horz_default, letter6, rest6, rotatedSymbol24, watt_hour_meter_vert_default, wattmeter_default, paths66, texts82, bounds66, refblocks66, circles60, wattmeter_horz_default, letter7, rest7, rotatedSymbol25, wattmeter_vert_default, zener_diode_default, paths67, texts83, bounds67, refblocks67, circles61, zener_diode_horz_default, rotated42, ref64, val57, zener_diode_vert_default, symbols_index_default, BASE_SYMBOLS;
236902
+ }, paths3, texts2, bounds3, refblocks3, circles3, backward_diode_down_default, paths4, texts3, bounds4, refblocks4, circles4, backward_diode_left_default, paths5, texts4, bounds5, refblocks5, circles5, backward_diode_right_default, rotated2, ref, val, backward_diode_up_default, battery_default, paths7, texts6, bounds7, refblocks7, circles7, battery_horz_default, battery_vert_default, boxresistor_default, paths8, texts7, bounds8, refblocks8, circles8, boxresistor_down_default, paths9, texts8, bounds9, refblocks9, circles9, boxresistor_left_default, paths10, texts9, bounds10, refblocks10, circles10, boxresistor_right_default, boxresistor_small_default, paths11, texts10, bounds11, refblocks11, circles11, boxresistor_small_down_default, paths12, texts11, bounds12, refblocks12, circles12, boxresistor_small_left_default, paths13, texts12, bounds13, refblocks13, circles13, boxresistor_small_right_default, paths14, texts13, bounds14, refblocks14, circles14, boxresistor_small_up_default, paths15, texts14, bounds15, refblocks15, circles15, boxresistor_up_default, bridged_ground_default, paths16, texts15, bounds16, refblocks16, circles16, bridged_ground_down_default, paths17, texts16, bounds17, refblocks17, circles17, bridged_ground_right_default, bridged_ground_left_default, paths18, texts17, bounds18, refblocks18, circles18, bridged_ground_up_default, capacitor_default, paths19, texts18, bounds19, refblocks19, circles19, capacitor_down_default, capacitor_left_default, capacitor_polarized_default, paths20, texts19, bounds20, refblocks20, circles20, capacitor_polarized_down_default, capacitor_polarized_left_default, paths21, texts20, bounds21, refblocks21, circles21, capacitor_polarized_right_default, paths22, texts21, bounds22, refblocks22, circles22, capacitor_polarized_up_default, capacitor_right_default, paths23, texts22, bounds23, refblocks23, circles23, capacitor_up_default, constant_current_diode_default, constant_current_diode_horz_default, constant_current_diode_vert_default, crystal_4pin_default, crystal_4pin_horz_default, crystal_4pin_vert_default, crystal_default, paths24, texts23, bounds24, refblocks24, circles24, crystal_down_default, crystal_left_default, crystal_right_default, paths25, texts24, bounds25, refblocks25, circles25, crystal_up_default, darlington_pair_transistor_default, darlington_pair_transistor_horz_default, darlington_pair_transistor_vert_default, dc_ammeter_default, paths26, texts25, bounds26, refblocks26, circles26, dc_ammeter_horz_default, letter, underline, rest, rotatedSymbol2, dc_ammeter_vert_default, dc_voltmeter_default, paths27, texts26, bounds27, refblocks27, circles27, dc_voltmeter_horz_default, letter2, underline2, rest2, rotatedSymbol3, dc_voltmeter_vert_default, diac_default, diac_horz_default, rotatedSymbol4, texts27, ref2, val2, diac_vert_default, diode_default, diode_right_default, diode_down_default, diode_left_default, diode_up_default, dpdt_normally_closed_switch_default, dpdt_normally_closed_switch_right_default, rotated3, ref3, val3, dpdt_normally_closed_switch_down_default, rotated4, ref4, val4, dpdt_normally_closed_switch_left_default, rotated5, ref5, val5, dpdt_normally_closed_switch_up_default, dpdt_switch_default, dpdt_switch_right_default, rotated6, ref6, val6, dpdt_switch_down_default, rotated7, ref7, val7, dpdt_switch_left_default, rotated8, ref8, val8, dpdt_switch_up_default, dpst_normally_closed_switch_default, dpst_normally_closed_switch_right_default, rotated9, ref9, val9, dpst_normally_closed_switch_down_default, rotated10, ref10, val10, dpst_normally_closed_switch_left_default, rotated11, ref11, val11, dpst_normally_closed_switch_up_default, dpst_switch_default, dpst_switch_right_default, rotated12, ref12, val12, dpst_switch_down_default, rotated13, ref13, val13, dpst_switch_left_default, rotated14, ref14, val14, dpst_switch_up_default, ferrite_bead_default, paths28, texts28, bounds28, refblocks28, circles28, ferrite_bead_up_default, symbol, ref15, val15, ferrite_bead_down_default, ferrite_bead_right_default, ferrite_bead_left_default, filled_diode_default, filled_diode_horz_default, filled_diode_vert_default, frequency_meter_default, paths29, texts29, bounds29, refblocks29, circles29, frequency_meter_horz_default, letter3, rest3, rotatedSymbol5, frequency_meter_vert_default, fuse_default, paths30, texts30, bounds30, refblocks30, fuse_horz_default, fuse_vert_default, ground_default, ground_down_default, ground_horz_default, ground_left_default, ground_right_default, ground_up_default, ground_vert_default, ground2_default, paths31, texts31, bounds31, refblocks31, ground2_down_default, paths32, texts32, bounds32, refblocks32, circles30, ground2_left_default, paths33, texts33, bounds33, refblocks33, circles31, ground2_right_default, paths34, texts34, bounds34, refblocks34, circles32, ground2_up_default, gunn_diode_default, gunn_diode_horz_default, gunn_diode_vert_default, icled_default, icled_right_default, icled_down_default, icled_left_default, symbol2, ref16, val16, icled_up_default, igbt_transistor_default, igbt_transistor_horz_default, rotated15, ref17, val17, igbt_transistor_vert_default, illuminated_push_button_normally_open_default, illuminated_push_button_normally_open_horz_default, rotatedSymbol6, texts36, val18, ref18, illuminated_push_button_normally_open_vert_default, inductor_default, paths36, texts37, bounds36, refblocks36, circles34, inductor_right_default, inductor_up_default, inductor_down_default, inductor_left_default, laser_diode_default, laser_diode_horz_default, rotatedSymbol7, texts38, ref19, laser_diode_vert_default, led_default, paths37, texts39, bounds37, refblocks37, circles35, led_right_default, symbol3, ref20, val19, led_up_default, symbol4, ref21, val20, led_down_default, led_left_default, light_dependent_resistor_default, paths38, texts40, bounds38, refblocks38, circles36, light_dependent_resistor_horz_default, rotatedSymbol8, texts41, val21, ref22, light_dependent_resistor_vert_default, mosfet_depletion_normally_on_default, paths39, texts42, bounds39, refblocks39, mosfet_depletion_normally_on_horz_default, rotated16, ref23, val22, mosfet_depletion_normally_on_vert_default, mushroom_head_normally_open_momentary_default, paths40, texts43, bounds40, refblocks40, circles37, mushroom_head_normally_open_momentary_horz_default, rotated17, ref24, val23, mushroom_head_normally_open_momentary_vert_default, n_channel_d_mosfet_transistor_default, paths41, texts44, bounds41, refblocks41, circles38, n_channel_d_mosfet_transistor_horz_default, rotatedSymbol9, texts45, val24, ref25, n_channel_d_mosfet_transistor_vert_default, n_channel_e_mosfet_transistor_default, paths42, texts46, bounds42, refblocks42, circles39, n_channel_e_mosfet_transistor_horz_default, rotatedSymbol10, texts47, val25, ref26, n_channel_e_mosfet_transistor_vert_default, njfet_transistor_default, paths43, texts48, bounds43, refblocks43, circles40, njfet_transistor_horz_default, rotatedSymbol11, texts49, val26, ref27, njfet_transistor_vert_default, npn_bipolar_transistor_default, npn_bipolar_transistor_horz_default, rotatedSymbol12, texts51, ref28, npn_bipolar_transistor_vert_default, opamp_no_power_default, opamp_no_power_right_default, opamp_no_power_down_default, opamp_no_power_left_default, opamp_no_power_up_default, opamp_with_power_default, opamp_with_power_right_default, opamp_with_power_down_default, opamp_with_power_left_default, opamp_with_power_up_default, p_channel_d_mosfet_transistor_default, paths45, texts52, bounds45, refblocks45, circles42, p_channel_d_mosfet_transistor_horz_default, rotatedSymbol13, texts53, val27, ref29, p_channel_d_mosfet_transistor_vert_default, p_channel_e_mosfet_transistor_default, paths46, texts54, bounds46, refblocks46, circles43, p_channel_e_mosfet_transistor_horz_default, rotatedSymbol14, texts55, val28, ref30, p_channel_e_mosfet_transistor_vert_default, photodiode_default, photodiode_horz_default, rotatedSymbol15, texts56, ref31, photodiode_vert_default, pjfet_transistor_default, paths47, texts57, bounds47, refblocks47, circles44, pjfet_transistor_horz_default, rotatedSymbol16, texts58, val29, ref32, pjfet_transistor_vert_default, pnp_bipolar_transistor_default, pnp_bipolar_transistor_horz_default, rotatedSymbol17, texts59, ref33, pnp_bipolar_transistor_vert_default, potentiometer_default, paths48, texts60, bounds48, refblocks48, potentiometer_horz_default, rotated18, potentiometer_vert_default, potentiometer2_default, paths49, texts61, bounds49, refblocks49, potentiometer2_right_default, symbol5, ref34, val30, potentiometer2_down_default, symbol6, ref35, val31, potentiometer2_left_default, symbol7, ref36, val32, potentiometer2_up_default, potentiometer3_default, potentiometer3_right_default, potentiometer3_down_default, potentiometer3_left_default, potentiometer3_up_default, power_factor_meter_default, paths50, texts62, bounds50, refblocks50, circles45, power_factor_meter_horz_default, rotatedSymbol18, texts63, ref37, val33, text_cos, power_factor_meter_vert_default, push_button_normally_closed_momentary_default, paths51, texts64, bounds51, refblocks51, circles46, push_button_normally_closed_momentary_horz_default, push_button_normally_closed_momentary_vert_default, push_button_normally_open_momentary_default, paths52, texts65, bounds52, refblocks52, circles47, push_button_normally_open_momentary_horz_default, push_button_normally_open_momentary_vert_default, rectifier_diode_default, paths53, texts66, bounds53, refblocks53, circles48, rectifier_diode_horz_default, rotated19, ref38, val34, rectifier_diode_vert_default, resistor_default, paths54, texts67, bounds54, refblocks54, circles49, resistor_down_default, paths55, texts68, bounds55, refblocks55, circles50, resistor_left_default, paths56, texts69, bounds56, refblocks56, circles51, resistor_right_default, paths57, texts70, bounds57, refblocks57, circles52, resistor_up_default, resonator_default, paths58, texts71, bounds58, refblocks58, circles53, resonator_horz_default, resonator_vert_default, schottky_diode_default, schottky_diode_right_default, rotated20, ref39, val35, schottky_diode_down_default, rotated21, ref40, val36, schottky_diode_left_default, rotated22, ref41, val37, schottky_diode_up_default, silicon_controlled_rectifier_default, silicon_controlled_rectifier_horz_default, rotatedSymbol19, texts73, ref42, silicon_controlled_rectifier_vert_default, solderjumper2_bridged12_default, solderjumper2_bridged12_down_default, solderjumper2_bridged12_left_default, solderjumper2_bridged12_right_default, solderjumper2_bridged12_up_default, solderjumper2_default, solderjumper2_down_default, solderjumper2_left_default, solderjumper2_right_default, solderjumper2_up_default, solderjumper3_bridged12_default, solderjumper3_bridged12_down_default, solderjumper3_bridged12_left_default, solderjumper3_bridged12_right_default, solderjumper3_bridged12_up_default, solderjumper3_bridged123_default, solderjumper3_bridged123_down_default, solderjumper3_bridged123_left_default, solderjumper3_bridged123_right_default, solderjumper3_bridged123_up_default, solderjumper3_bridged23_default, solderjumper3_bridged23_down_default, solderjumper3_bridged23_left_default, solderjumper3_bridged23_right_default, solderjumper3_bridged23_up_default, solderjumper3_default, solderjumper3_down_default, solderjumper3_left_default, solderjumper3_right_default, solderjumper3_up_default, spdt_normally_closed_switch_default, spdt_normally_closed_switch_right_default, rotated23, ref43, val38, spdt_normally_closed_switch_down_default, rotated24, ref44, val39, spdt_normally_closed_switch_left_default, rotated25, ref45, val40, spdt_normally_closed_switch_up_default, spdt_switch_default, spdt_switch_right_default, rotated26, ref46, val41, spdt_switch_down_default, rotated27, ref47, val42, spdt_switch_left_default, rotated28, ref48, val43, spdt_switch_up_default, spst_normally_closed_switch_default, spst_normally_closed_switch_right_default, rotated29, ref49, val44, spst_normally_closed_switch_down_default, rotated30, ref50, val45, spst_normally_closed_switch_left_default, rotated31, ref51, val46, spst_normally_closed_switch_up_default, spst_switch_default, spst_switch_right_default, rotated32, ref52, val47, spst_switch_down_default, rotated33, ref53, val48, spst_switch_left_default, rotated34, ref54, val49, spst_switch_up_default, step_recovery_diode_default, step_recovery_diode_horz_default, step_recovery_diode_vert_default, tachometer_default, paths61, texts75, bounds61, refblocks61, circles56, tachometer_horz_default, letter4, rest4, rotatedSymbol20, tachometer_vert_default, testpoint_right_default, rotated35, ref55, testpoint_down_default, testpoint_left_default, rotated36, ref56, testpoint_up_default, tilted_ground_default, tilted_ground_right_default, rotated37, ref57, val50, tilted_ground_up_default, rotated38, ref58, val51, tilted_ground_down_default, rotated39, ref59, val52, tilted_ground_left_default, triac_default, triac_horz_default, rotatedSymbol21, texts77, ref60, val53, triac_vert_default, tunnel_diode_default, paths63, texts78, bounds63, refblocks63, circles58, tunnel_diode_horz_default, rotated40, ref61, val54, tunnel_diode_vert_default, unijunction_transistor_default, paths64, texts79, bounds64, refblocks64, circles59, unijunction_transistor_horz_default, rotatedSymbol22, texts80, ref62, val55, unijunction_transistor_vert_default, var_meter_default, paths65, texts81, bounds65, refblocks65, circles60, var_meter_horz_default, var_meter_vert_default, varactor_diode_default, paths66, texts82, bounds66, refblocks66, circles61, varactor_diode_horz_default, rotated41, ref63, val56, varactor_diode_vert_default, varistor_default, paths67, texts83, bounds67, refblocks67, varistor_horz_default, varistor_vert_default, varmeter_default, paths68, texts84, bounds68, refblocks68, circles62, varmeter_horz_default, letter5, rest5, rotatedSymbol23, varmeter_vert_default, vcc_default, vcc_down_default, vcc_left_default, vcc_right_default, vcc_up_default, volt_meter_default, volt_meter_horz_default, volt_meter_vert_default, watt_hour_meter_default, paths70, texts86, bounds70, refblocks70, circles64, watt_hour_meter_horz_default, letter6, rest6, rotatedSymbol24, watt_hour_meter_vert_default, wattmeter_default, paths71, texts87, bounds71, refblocks71, circles65, wattmeter_horz_default, letter7, rest7, rotatedSymbol25, wattmeter_vert_default, zener_diode_default, paths72, texts88, bounds72, refblocks72, circles66, zener_diode_horz_default, rotated42, ref64, val57, zener_diode_vert_default, symbols_index_default, BASE_SYMBOLS;
236903
236903
  var init_dist5 = __esm(() => {
236904
236904
  import_transformation_matrix2 = __toESM2(require_build_commonjs(), 1);
236905
236905
  ac_voltmeter_default = {
@@ -238056,6 +238056,170 @@ var init_dist5 = __esm(() => {
238056
238056
  ],
238057
238057
  center: { x: bounds15.centerX, y: bounds15.centerY }
238058
238058
  }).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("up").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_left").build();
238059
+ bridged_ground_default = {
238060
+ paths: {
238061
+ "horizontal-bar": {
238062
+ type: "path",
238063
+ points: [
238064
+ { x: -0.4, y: 0 },
238065
+ { x: 0.4, y: 0 }
238066
+ ],
238067
+ color: "primary",
238068
+ fill: false
238069
+ },
238070
+ "middle-dash-1": {
238071
+ type: "path",
238072
+ points: [
238073
+ { x: 0, y: 0.2 },
238074
+ { x: 0, y: 0.07 }
238075
+ ],
238076
+ color: "primary",
238077
+ fill: false
238078
+ },
238079
+ "middle-dash-2": {
238080
+ type: "path",
238081
+ points: [
238082
+ { x: 0, y: 0.01 },
238083
+ { x: 0, y: -0.12 }
238084
+ ],
238085
+ color: "primary",
238086
+ fill: false
238087
+ },
238088
+ "middle-dash-3": {
238089
+ type: "path",
238090
+ points: [
238091
+ { x: 0, y: -0.18 },
238092
+ { x: 0, y: -0.31 }
238093
+ ],
238094
+ color: "primary",
238095
+ fill: false
238096
+ },
238097
+ "left-vertical": {
238098
+ type: "path",
238099
+ points: [
238100
+ { x: -0.25, y: 0 },
238101
+ { x: -0.25, y: -0.2 }
238102
+ ],
238103
+ color: "primary",
238104
+ fill: false
238105
+ },
238106
+ "right-vertical": {
238107
+ type: "path",
238108
+ points: [
238109
+ { x: 0.25, y: 0 },
238110
+ { x: 0.25, y: -0.2 }
238111
+ ],
238112
+ color: "primary",
238113
+ fill: false
238114
+ },
238115
+ "left-ground": {
238116
+ type: "path",
238117
+ points: [
238118
+ { x: -0.3, y: -0.2 },
238119
+ { x: -0.25, y: -0.3 },
238120
+ { x: -0.2, y: -0.2 },
238121
+ { x: -0.3, y: -0.2 }
238122
+ ],
238123
+ color: "primary",
238124
+ fill: false
238125
+ },
238126
+ "right-ground": {
238127
+ type: "path",
238128
+ points: [
238129
+ { x: 0.2, y: -0.2 },
238130
+ { x: 0.25, y: -0.3 },
238131
+ { x: 0.3, y: -0.2 },
238132
+ { x: 0.2, y: -0.2 }
238133
+ ],
238134
+ color: "primary",
238135
+ fill: false
238136
+ }
238137
+ },
238138
+ refblocks: {
238139
+ left1: {
238140
+ x: -0.4,
238141
+ y: 0
238142
+ },
238143
+ right1: {
238144
+ x: 0.4,
238145
+ y: 0
238146
+ }
238147
+ },
238148
+ texts: {
238149
+ ref: {
238150
+ type: "text",
238151
+ text: "{REF}",
238152
+ x: 0,
238153
+ y: 0.35
238154
+ }
238155
+ },
238156
+ bounds: {
238157
+ minX: -0.4,
238158
+ maxX: 0.4,
238159
+ minY: -0.4,
238160
+ maxY: 0.35,
238161
+ width: 0.8,
238162
+ height: 0.75,
238163
+ centerX: 0,
238164
+ centerY: -0.025
238165
+ },
238166
+ circles: {}
238167
+ };
238168
+ ({ paths: paths16, texts: texts15, bounds: bounds16, refblocks: refblocks16, circles: circles16 } = bridged_ground_default);
238169
+ bridged_ground_down_default = modifySymbol({
238170
+ primitives: [
238171
+ ...Object.values(paths16),
238172
+ ...Object.values(circles16),
238173
+ {
238174
+ type: "text",
238175
+ text: "{REF}",
238176
+ x: 0,
238177
+ y: 0.2594553499999995
238178
+ }
238179
+ ],
238180
+ ports: [
238181
+ { ...refblocks16.left1, labels: ["1"] },
238182
+ { ...refblocks16.right1, labels: ["2"] }
238183
+ ],
238184
+ center: { x: bounds16.centerX, y: bounds16.centerY }
238185
+ }).changeTextAnchor("{VAL}", "middle_bottom").rotateRightFacingSymbol("down").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_left").build();
238186
+ ({ paths: paths17, texts: texts16, bounds: bounds17, refblocks: refblocks17, circles: circles17 } = bridged_ground_default);
238187
+ bridged_ground_right_default = modifySymbol({
238188
+ primitives: [
238189
+ ...Object.values(paths17),
238190
+ ...Object.values(circles17),
238191
+ {
238192
+ type: "text",
238193
+ text: "{REF}",
238194
+ x: 0,
238195
+ y: 0.2594553499999995
238196
+ }
238197
+ ],
238198
+ ports: [
238199
+ { ...refblocks17.left1, labels: ["1"] },
238200
+ { ...refblocks17.right1, labels: ["2"] }
238201
+ ],
238202
+ center: { x: bounds17.centerX, y: bounds17.centerY }
238203
+ }).rotateRightFacingSymbol("right").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
238204
+ bridged_ground_left_default = flipSymbolOverYAxis(bridged_ground_right_default);
238205
+ ({ paths: paths18, texts: texts17, bounds: bounds18, refblocks: refblocks18, circles: circles18 } = bridged_ground_default);
238206
+ bridged_ground_up_default = modifySymbol({
238207
+ primitives: [
238208
+ ...Object.values(paths18),
238209
+ ...Object.values(circles18),
238210
+ {
238211
+ type: "text",
238212
+ text: "{REF}",
238213
+ x: 0,
238214
+ y: 0.2594553499999995
238215
+ }
238216
+ ],
238217
+ ports: [
238218
+ { ...refblocks18.left1, labels: ["1"] },
238219
+ { ...refblocks18.right1, labels: ["2"] }
238220
+ ],
238221
+ center: { x: bounds18.centerX, y: bounds18.centerY }
238222
+ }).rotateRightFacingSymbol("up").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_right").build();
238059
238223
  capacitor_default = {
238060
238224
  paths: {
238061
238225
  path27: {
@@ -238155,11 +238319,11 @@ var init_dist5 = __esm(() => {
238155
238319
  },
238156
238320
  circles: {}
238157
238321
  };
238158
- ({ paths: paths16, texts: texts15, bounds: bounds16, refblocks: refblocks16, circles: circles16 } = capacitor_default);
238322
+ ({ paths: paths19, texts: texts18, bounds: bounds19, refblocks: refblocks19, circles: circles19 } = capacitor_default);
238159
238323
  capacitor_down_default = modifySymbol({
238160
238324
  primitives: [
238161
- ...Object.values(paths16),
238162
- ...Object.values(circles16),
238325
+ ...Object.values(paths19),
238326
+ ...Object.values(circles19),
238163
238327
  {
238164
238328
  type: "text",
238165
238329
  text: "{REF}",
@@ -238174,11 +238338,11 @@ var init_dist5 = __esm(() => {
238174
238338
  }
238175
238339
  ],
238176
238340
  ports: [
238177
- { ...refblocks16.left1, labels: ["1"] },
238178
- { ...refblocks16.right1, labels: ["2"] }
238341
+ { ...refblocks19.left1, labels: ["1"] },
238342
+ { ...refblocks19.right1, labels: ["2"] }
238179
238343
  ],
238180
- size: { width: bounds16.width, height: bounds16.height },
238181
- center: { x: bounds16.centerX, y: bounds16.centerY }
238344
+ size: { width: bounds19.width, height: bounds19.height },
238345
+ center: { x: bounds19.centerX, y: bounds19.centerY }
238182
238346
  }).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("down").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "bottom_left").build();
238183
238347
  capacitor_left_default = modifySymbol(capacitor_default).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("right").labelPort("left1", ["2", "neg"]).labelPort("right1", ["1", "pos"]).changeTextAnchor("{REF}", "middle_bottom").build();
238184
238348
  capacitor_polarized_default = {
@@ -239938,36 +240102,37 @@ var init_dist5 = __esm(() => {
239938
240102
  },
239939
240103
  circles: {}
239940
240104
  };
239941
- ({ paths: paths17, texts: texts16, bounds: bounds17, refblocks: refblocks17, circles: circles17 } = capacitor_polarized_default);
240105
+ ({ paths: paths20, texts: texts19, bounds: bounds20, refblocks: refblocks20, circles: circles20 } = capacitor_polarized_default);
239942
240106
  capacitor_polarized_down_default = modifySymbol({
239943
240107
  primitives: [
239944
- ...Object.values(paths17),
239945
- ...Object.values(circles17),
240108
+ ...Object.values(paths20),
240109
+ ...Object.values(circles20),
239946
240110
  {
239947
240111
  type: "text",
239948
240112
  text: "{REF}",
239949
- x: -0.2,
239950
- y: 0.2094553499999995
240113
+ x: 0.1,
240114
+ y: -0.2094553499999995
239951
240115
  },
239952
240116
  {
239953
240117
  type: "text",
239954
240118
  text: "{VAL}",
239955
- x: 0.3,
239956
- y: 0.2094553499999995
240119
+ x: -0.2,
240120
+ y: -0.2094553499999995
239957
240121
  }
239958
240122
  ],
239959
240123
  ports: [
239960
- { ...refblocks17.left1, labels: ["1"] },
239961
- { ...refblocks17.right1, labels: ["2"] }
240124
+ { ...refblocks20.left1, labels: ["2", "neg"] },
240125
+ { ...refblocks20.right1, labels: ["1", "pos"] }
239962
240126
  ],
239963
- size: { width: bounds17.width, height: bounds17.height },
239964
- center: { x: bounds17.centerX, y: bounds17.centerY }
239965
- }).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("down").labelPort("left1", ["1", "neg"]).labelPort("right1", ["2", "pos"]).changeTextAnchor("{REF}", "bottom_left").build();
239966
- ({ paths: paths18, texts: texts17, bounds: bounds18, refblocks: refblocks18, circles: circles18 } = capacitor_polarized_default);
239967
- capacitor_polarized_left_default = modifySymbol({
240127
+ size: { width: bounds20.width, height: bounds20.height },
240128
+ center: { x: bounds20.centerX, y: bounds20.centerY }
240129
+ }).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("up").changeTextAnchor("{REF}", "bottom_left").build();
240130
+ capacitor_polarized_left_default = modifySymbol(capacitor_polarized_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["2", "neg"]).labelPort("right1", ["1", "pos"]).changeTextAnchor("{REF}", "middle_bottom").build();
240131
+ ({ paths: paths21, texts: texts20, bounds: bounds21, refblocks: refblocks21, circles: circles21 } = capacitor_polarized_default);
240132
+ capacitor_polarized_right_default = modifySymbol({
239968
240133
  primitives: [
239969
- ...Object.values(paths18),
239970
- ...Object.values(circles18),
240134
+ ...Object.values(paths21),
240135
+ ...Object.values(circles21),
239971
240136
  {
239972
240137
  type: "text",
239973
240138
  text: "{REF}",
@@ -239982,44 +240147,43 @@ var init_dist5 = __esm(() => {
239982
240147
  }
239983
240148
  ],
239984
240149
  ports: [
239985
- { ...refblocks18.left1, labels: ["1"] },
239986
- { ...refblocks18.right1, labels: ["2"] }
240150
+ { ...refblocks21.left1, labels: ["2", "neg"] },
240151
+ { ...refblocks21.right1, labels: ["1", "pos"] }
239987
240152
  ],
239988
- size: { width: bounds18.width, height: bounds18.height },
239989
- center: { x: bounds18.centerX, y: bounds18.centerY }
239990
- }).changeTextAnchor("{VAL}", "middle_bottom").rotateRightFacingSymbol("left").labelPort("left1", ["1", "neg"]).labelPort("right1", ["2", "pos"]).changeTextAnchor("{REF}", "middle_bottom").build();
239991
- capacitor_polarized_right_default = modifySymbol(capacitor_polarized_default).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("right").labelPort("left1", ["1", "neg"]).labelPort("right1", ["2", "pos"]).changeTextAnchor("{REF}", "middle_bottom").build();
239992
- ({ paths: paths19, texts: texts18, bounds: bounds19, refblocks: refblocks19, circles: circles19 } = capacitor_polarized_default);
240153
+ size: { width: bounds21.width, height: bounds21.height },
240154
+ center: { x: bounds21.centerX, y: bounds21.centerY }
240155
+ }).changeTextAnchor("{VAL}", "middle_bottom").rotateRightFacingSymbol("left").changeTextAnchor("{REF}", "middle_bottom").build();
240156
+ ({ paths: paths22, texts: texts21, bounds: bounds22, refblocks: refblocks22, circles: circles22 } = capacitor_polarized_default);
239993
240157
  capacitor_polarized_up_default = modifySymbol({
239994
240158
  primitives: [
239995
- ...Object.values(paths19),
239996
- ...Object.values(circles19),
240159
+ ...Object.values(paths22),
240160
+ ...Object.values(circles22),
239997
240161
  {
239998
240162
  type: "text",
239999
240163
  text: "{REF}",
240000
- x: 0.1,
240001
- y: -0.2094553499999995
240164
+ x: -0.2,
240165
+ y: 0.2094553499999995
240002
240166
  },
240003
240167
  {
240004
240168
  type: "text",
240005
240169
  text: "{VAL}",
240006
- x: -0.2,
240007
- y: -0.2094553499999995
240170
+ x: 0.3,
240171
+ y: 0.2094553499999995
240008
240172
  }
240009
240173
  ],
240010
240174
  ports: [
240011
- { ...refblocks19.left1, labels: ["1"] },
240012
- { ...refblocks19.right1, labels: ["2"] }
240175
+ { ...refblocks22.left1, labels: ["2", "neg"] },
240176
+ { ...refblocks22.right1, labels: ["1", "pos"] }
240013
240177
  ],
240014
- size: { width: bounds19.width, height: bounds19.height },
240015
- center: { x: bounds19.centerX, y: bounds19.centerY }
240016
- }).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("up").labelPort("left1", ["1", "neg"]).labelPort("right1", ["2", "pos"]).changeTextAnchor("{REF}", "bottom_left").build();
240178
+ size: { width: bounds22.width, height: bounds22.height },
240179
+ center: { x: bounds22.centerX, y: bounds22.centerY }
240180
+ }).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("down").changeTextAnchor("{REF}", "bottom_left").build();
240017
240181
  capacitor_right_default = modifySymbol(capacitor_default).rotateRightFacingSymbol("right").changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "middle_bottom").build();
240018
- ({ paths: paths20, texts: texts19, bounds: bounds20, refblocks: refblocks20, circles: circles20 } = capacitor_default);
240182
+ ({ paths: paths23, texts: texts22, bounds: bounds23, refblocks: refblocks23, circles: circles23 } = capacitor_default);
240019
240183
  capacitor_up_default = modifySymbol({
240020
240184
  primitives: [
240021
- ...Object.values(paths20),
240022
- ...Object.values(circles20),
240185
+ ...Object.values(paths23),
240186
+ ...Object.values(circles23),
240023
240187
  {
240024
240188
  type: "text",
240025
240189
  text: "{REF}",
@@ -240034,11 +240198,11 @@ var init_dist5 = __esm(() => {
240034
240198
  }
240035
240199
  ],
240036
240200
  ports: [
240037
- { ...refblocks20.left1, labels: ["1"] },
240038
- { ...refblocks20.right1, labels: ["2"] }
240201
+ { ...refblocks23.left1, labels: ["1"] },
240202
+ { ...refblocks23.right1, labels: ["2"] }
240039
240203
  ],
240040
- size: { width: bounds20.width, height: bounds20.height },
240041
- center: { x: bounds20.centerX, y: bounds20.centerY }
240204
+ size: { width: bounds23.width, height: bounds23.height },
240205
+ center: { x: bounds23.centerX, y: bounds23.centerY }
240042
240206
  }).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("up").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "bottom_left").build();
240043
240207
  constant_current_diode_default = {
240044
240208
  paths: {
@@ -240558,13 +240722,13 @@ var init_dist5 = __esm(() => {
240558
240722
  texts: {
240559
240723
  top1: {
240560
240724
  type: "text",
240561
- text: "{REF}",
240725
+ text: "{VAL}",
240562
240726
  x: -0.012864500000000056,
240563
240727
  y: -0.4150086999999978
240564
240728
  },
240565
240729
  bottom1: {
240566
240730
  type: "text",
240567
- text: "{VAL}",
240731
+ text: "{REF}",
240568
240732
  x: -0.003850500000000423,
240569
240733
  y: 0.4250087000000011
240570
240734
  }
@@ -240591,8 +240755,58 @@ var init_dist5 = __esm(() => {
240591
240755
  },
240592
240756
  circles: {}
240593
240757
  };
240594
- crystal_horz_default = modifySymbol(crystal_default).changeTextAnchor("{VAL}", "middle_bottom").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_top").build();
240595
- crystal_vert_default = modifySymbol(crystal_default).rotateRightFacingSymbol("down").changeTextAnchor("{VAL}", "middle_left").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_right").build();
240758
+ ({ paths: paths24, texts: texts23, bounds: bounds24, refblocks: refblocks24, circles: circles24 } = crystal_default);
240759
+ crystal_down_default = modifySymbol({
240760
+ primitives: [
240761
+ ...Object.values(paths24),
240762
+ ...Object.values(circles24),
240763
+ {
240764
+ type: "text",
240765
+ text: "{REF}",
240766
+ x: -0.3,
240767
+ y: 0.3094553499999995
240768
+ },
240769
+ {
240770
+ type: "text",
240771
+ text: "{VAL}",
240772
+ x: 0.3,
240773
+ y: 0.3094553499999995
240774
+ }
240775
+ ],
240776
+ ports: [
240777
+ { ...refblocks24.left1, labels: ["1"] },
240778
+ { ...refblocks24.right1, labels: ["2"] }
240779
+ ],
240780
+ size: { width: bounds24.width, height: bounds24.height },
240781
+ center: { x: bounds24.centerX, y: bounds24.centerY }
240782
+ }).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("down").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "bottom_left").build();
240783
+ crystal_left_default = modifySymbol(crystal_default).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("right").labelPort("left1", ["2", "neg"]).labelPort("right1", ["1", "pos"]).changeTextAnchor("{REF}", "middle_bottom").build();
240784
+ crystal_right_default = modifySymbol(crystal_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
240785
+ ({ paths: paths25, texts: texts24, bounds: bounds25, refblocks: refblocks25, circles: circles25 } = crystal_default);
240786
+ crystal_up_default = modifySymbol({
240787
+ primitives: [
240788
+ ...Object.values(paths25),
240789
+ ...Object.values(circles25),
240790
+ {
240791
+ type: "text",
240792
+ text: "{REF}",
240793
+ x: 0.3,
240794
+ y: -0.3094553499999995
240795
+ },
240796
+ {
240797
+ type: "text",
240798
+ text: "{VAL}",
240799
+ x: -0.3,
240800
+ y: -0.3094553499999995
240801
+ }
240802
+ ],
240803
+ ports: [
240804
+ { ...refblocks25.left1, labels: ["1"] },
240805
+ { ...refblocks25.right1, labels: ["2"] }
240806
+ ],
240807
+ size: { width: bounds25.width, height: bounds25.height },
240808
+ center: { x: bounds25.centerX, y: bounds25.centerY }
240809
+ }).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("up").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "bottom_left").build();
240596
240810
  darlington_pair_transistor_default = {
240597
240811
  paths: {
240598
240812
  path11: {
@@ -240958,11 +241172,11 @@ var init_dist5 = __esm(() => {
240958
241172
  }
240959
241173
  }
240960
241174
  };
240961
- ({ paths: paths21, texts: texts20, bounds: bounds21, refblocks: refblocks21, circles: circles21 } = dc_ammeter_default);
241175
+ ({ paths: paths26, texts: texts25, bounds: bounds26, refblocks: refblocks26, circles: circles26 } = dc_ammeter_default);
240962
241176
  dc_ammeter_horz_default = defineSymbol({
240963
241177
  primitives: [
240964
- ...Object.values(paths21),
240965
- ...Object.values(circles21),
241178
+ ...Object.values(paths26),
241179
+ ...Object.values(circles26),
240966
241180
  {
240967
241181
  type: "text",
240968
241182
  text: "{REF}",
@@ -240977,14 +241191,14 @@ var init_dist5 = __esm(() => {
240977
241191
  y: 0.35,
240978
241192
  anchor: "middle_bottom"
240979
241193
  },
240980
- { ...texts20.left1, x: 0, y: 0.01, anchor: "center", fontSize: 0.3 }
241194
+ { ...texts25.left1, x: 0, y: 0.01, anchor: "center", fontSize: 0.3 }
240981
241195
  ],
240982
241196
  ports: [
240983
- { ...refblocks21.left1, labels: ["1"] },
240984
- { ...refblocks21.right1, labels: ["2"] }
241197
+ { ...refblocks26.left1, labels: ["1"] },
241198
+ { ...refblocks26.right1, labels: ["2"] }
240985
241199
  ],
240986
- size: { width: bounds21.width, height: bounds21.height },
240987
- center: { x: bounds21.centerX, y: bounds21.centerY }
241200
+ size: { width: bounds26.width, height: bounds26.height },
241201
+ center: { x: bounds26.centerX, y: bounds26.centerY }
240988
241202
  });
240989
241203
  ({ 6: letter, 2: underline, ...rest } = dc_ammeter_horz_default.primitives);
240990
241204
  if (isPathPrimitive(underline)) {
@@ -241115,11 +241329,11 @@ var init_dist5 = __esm(() => {
241115
241329
  }
241116
241330
  }
241117
241331
  };
241118
- ({ paths: paths22, texts: texts21, bounds: bounds22, refblocks: refblocks22, circles: circles22 } = dc_voltmeter_default);
241332
+ ({ paths: paths27, texts: texts26, bounds: bounds27, refblocks: refblocks27, circles: circles27 } = dc_voltmeter_default);
241119
241333
  dc_voltmeter_horz_default = defineSymbol({
241120
241334
  primitives: [
241121
- ...Object.values(paths22),
241122
- ...Object.values(circles22),
241335
+ ...Object.values(paths27),
241336
+ ...Object.values(circles27),
241123
241337
  {
241124
241338
  type: "text",
241125
241339
  text: "{REF}",
@@ -241136,11 +241350,11 @@ var init_dist5 = __esm(() => {
241136
241350
  }
241137
241351
  ],
241138
241352
  ports: [
241139
- { ...refblocks22.left1, labels: ["1"] },
241140
- { ...refblocks22.right1, labels: ["2"] }
241353
+ { ...refblocks27.left1, labels: ["1"] },
241354
+ { ...refblocks27.right1, labels: ["2"] }
241141
241355
  ],
241142
- size: { width: bounds22.width, height: bounds22.height },
241143
- center: { x: bounds22.centerX, y: bounds22.centerY }
241356
+ size: { width: bounds27.width, height: bounds27.height },
241357
+ center: { x: bounds27.centerX, y: bounds27.centerY }
241144
241358
  });
241145
241359
  ({ 2: letter2, 3: underline2, ...rest2 } = dc_voltmeter_horz_default.primitives);
241146
241360
  rotatedSymbol3 = rotateSymbol({
@@ -241307,9 +241521,9 @@ var init_dist5 = __esm(() => {
241307
241521
  };
241308
241522
  diac_horz_default = modifySymbol(diac_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
241309
241523
  rotatedSymbol4 = rotateSymbol(diac_horz_default);
241310
- texts22 = rotatedSymbol4.primitives.filter((primitive) => primitive.type === "text");
241311
- ref2 = texts22.find((text) => text.text === "{REF}");
241312
- val2 = texts22.find((text) => text.text === "{VAL}");
241524
+ texts27 = rotatedSymbol4.primitives.filter((primitive) => primitive.type === "text");
241525
+ ref2 = texts27.find((text) => text.text === "{REF}");
241526
+ val2 = texts27.find((text) => text.text === "{VAL}");
241313
241527
  ref2.y = 0;
241314
241528
  val2.y = 0;
241315
241529
  diac_vert_default = rotatedSymbol4;
@@ -242484,11 +242698,11 @@ var init_dist5 = __esm(() => {
242484
242698
  },
242485
242699
  circles: {}
242486
242700
  };
242487
- ({ paths: paths23, texts: texts23, bounds: bounds23, refblocks: refblocks23, circles: circles23 } = ferrite_bead_default);
242701
+ ({ paths: paths28, texts: texts28, bounds: bounds28, refblocks: refblocks28, circles: circles28 } = ferrite_bead_default);
242488
242702
  ferrite_bead_up_default = modifySymbol({
242489
242703
  primitives: [
242490
- ...Object.values(paths23),
242491
- ...Object.values(circles23),
242704
+ ...Object.values(paths28),
242705
+ ...Object.values(circles28),
242492
242706
  {
242493
242707
  type: "text",
242494
242708
  text: "{REF}",
@@ -242503,11 +242717,11 @@ var init_dist5 = __esm(() => {
242503
242717
  }
242504
242718
  ],
242505
242719
  ports: [
242506
- { ...refblocks23.left1, labels: ["1"] },
242507
- { ...refblocks23.right1, labels: ["2"] }
242720
+ { ...refblocks28.left1, labels: ["1"] },
242721
+ { ...refblocks28.right1, labels: ["2"] }
242508
242722
  ],
242509
- size: { width: bounds23.width, height: bounds23.height },
242510
- center: { x: bounds23.centerX, y: bounds23.centerY }
242723
+ size: { width: bounds28.width, height: bounds28.height },
242724
+ center: { x: bounds28.centerX, y: bounds28.centerY }
242511
242725
  }).rotateRightFacingSymbol("up").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
242512
242726
  symbol = flipSymbolOverXAxis(ferrite_bead_up_default);
242513
242727
  ref15 = symbol.primitives.find((p) => p.type === "text" && p.text === "{REF}");
@@ -242720,11 +242934,11 @@ var init_dist5 = __esm(() => {
242720
242934
  }
242721
242935
  }
242722
242936
  };
242723
- ({ paths: paths24, texts: texts24, bounds: bounds24, refblocks: refblocks24, circles: circles24 } = frequency_meter_default);
242937
+ ({ paths: paths29, texts: texts29, bounds: bounds29, refblocks: refblocks29, circles: circles29 } = frequency_meter_default);
242724
242938
  frequency_meter_horz_default = defineSymbol({
242725
242939
  primitives: [
242726
- ...Object.values(paths24),
242727
- ...Object.values(circles24),
242940
+ ...Object.values(paths29),
242941
+ ...Object.values(circles29),
242728
242942
  {
242729
242943
  type: "text",
242730
242944
  text: "{REF}",
@@ -242739,14 +242953,14 @@ var init_dist5 = __esm(() => {
242739
242953
  y: 0.35,
242740
242954
  anchor: "middle_bottom"
242741
242955
  },
242742
- { ...texts24.left1, x: 0, y: 0.01, anchor: "center", fontSize: 0.2 }
242956
+ { ...texts29.left1, x: 0, y: 0.01, anchor: "center", fontSize: 0.2 }
242743
242957
  ],
242744
242958
  ports: [
242745
- { ...refblocks24.left1, labels: ["1"] },
242746
- { ...refblocks24.right1, labels: ["2"] }
242959
+ { ...refblocks29.left1, labels: ["1"] },
242960
+ { ...refblocks29.right1, labels: ["2"] }
242747
242961
  ],
242748
- size: { width: bounds24.width, height: bounds24.height },
242749
- center: { x: bounds24.centerX, y: bounds24.centerY }
242962
+ size: { width: bounds29.width, height: bounds29.height },
242963
+ center: { x: bounds29.centerX, y: bounds29.centerY }
242750
242964
  });
242751
242965
  ({ 5: letter3, ...rest3 } = frequency_meter_horz_default.primitives);
242752
242966
  rotatedSymbol5 = rotateSymbol({
@@ -242842,11 +243056,11 @@ var init_dist5 = __esm(() => {
242842
243056
  },
242843
243057
  circles: {}
242844
243058
  };
242845
- ({ paths: paths25, texts: texts25, bounds: bounds25, refblocks: refblocks25 } = fuse_default);
243059
+ ({ paths: paths30, texts: texts30, bounds: bounds30, refblocks: refblocks30 } = fuse_default);
242846
243060
  fuse_horz_default = defineSymbol({
242847
243061
  primitives: [
242848
- ...Object.values(paths25),
242849
- { ...texts25.top1, anchor: "middle_bottom" },
243062
+ ...Object.values(paths30),
243063
+ { ...texts30.top1, anchor: "middle_bottom" },
242850
243064
  {
242851
243065
  type: "text",
242852
243066
  text: "{VAL}",
@@ -242856,11 +243070,11 @@ var init_dist5 = __esm(() => {
242856
243070
  }
242857
243071
  ],
242858
243072
  ports: [
242859
- { ...refblocks25.left1, labels: ["1"] },
242860
- { ...refblocks25.right1, labels: ["2"] }
243073
+ { ...refblocks30.left1, labels: ["1"] },
243074
+ { ...refblocks30.right1, labels: ["2"] }
242861
243075
  ],
242862
- size: { width: bounds25.width, height: bounds25.height },
242863
- center: { x: bounds25.centerX, y: bounds25.centerY }
243076
+ size: { width: bounds30.width, height: bounds30.height },
243077
+ center: { x: bounds30.centerX, y: bounds30.centerY }
242864
243078
  });
242865
243079
  fuse_vert_default = rotateSymbol(fuse_horz_default);
242866
243080
  ground_default = {
@@ -243017,10 +243231,10 @@ var init_dist5 = __esm(() => {
243017
243231
  },
243018
243232
  circles: {}
243019
243233
  };
243020
- ({ paths: paths26, texts: texts26, bounds: bounds26, refblocks: refblocks26 } = ground2_default);
243234
+ ({ paths: paths31, texts: texts31, bounds: bounds31, refblocks: refblocks31 } = ground2_default);
243021
243235
  ground2_down_default = modifySymbol({
243022
243236
  primitives: [
243023
- ...Object.values(paths26),
243237
+ ...Object.values(paths31),
243024
243238
  {
243025
243239
  type: "text",
243026
243240
  text: "{REF}",
@@ -243029,15 +243243,15 @@ var init_dist5 = __esm(() => {
243029
243243
  }
243030
243244
  ],
243031
243245
  ports: [
243032
- { ...refblocks26.left1, labels: ["1"] }
243246
+ { ...refblocks31.left1, labels: ["1"] }
243033
243247
  ],
243034
- center: { x: bounds26.centerX, y: bounds26.centerY }
243248
+ center: { x: bounds31.centerX, y: bounds31.centerY }
243035
243249
  }).rotateRightFacingSymbol("down").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_bottom").build();
243036
- ({ paths: paths27, texts: texts27, bounds: bounds27, refblocks: refblocks27, circles: circles25 } = ground2_default);
243250
+ ({ paths: paths32, texts: texts32, bounds: bounds32, refblocks: refblocks32, circles: circles30 } = ground2_default);
243037
243251
  ground2_left_default = modifySymbol({
243038
243252
  primitives: [
243039
- ...Object.values(paths27),
243040
- ...Object.values(circles25),
243253
+ ...Object.values(paths32),
243254
+ ...Object.values(circles30),
243041
243255
  {
243042
243256
  type: "text",
243043
243257
  text: "{REF}",
@@ -243046,15 +243260,15 @@ var init_dist5 = __esm(() => {
243046
243260
  }
243047
243261
  ],
243048
243262
  ports: [
243049
- { ...refblocks27.left1, labels: ["1"] }
243263
+ { ...refblocks32.left1, labels: ["1"] }
243050
243264
  ],
243051
- center: { x: bounds27.centerX, y: bounds27.centerY }
243265
+ center: { x: bounds32.centerX, y: bounds32.centerY }
243052
243266
  }).rotateRightFacingSymbol("left").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_left").build();
243053
- ({ paths: paths28, texts: texts28, bounds: bounds28, refblocks: refblocks28, circles: circles26 } = ground2_default);
243267
+ ({ paths: paths33, texts: texts33, bounds: bounds33, refblocks: refblocks33, circles: circles31 } = ground2_default);
243054
243268
  ground2_right_default = modifySymbol({
243055
243269
  primitives: [
243056
- ...Object.values(paths28),
243057
- ...Object.values(circles26),
243270
+ ...Object.values(paths33),
243271
+ ...Object.values(circles31),
243058
243272
  {
243059
243273
  type: "text",
243060
243274
  text: "{REF}",
@@ -243063,15 +243277,15 @@ var init_dist5 = __esm(() => {
243063
243277
  }
243064
243278
  ],
243065
243279
  ports: [
243066
- { ...refblocks28.left1, labels: ["1"] }
243280
+ { ...refblocks33.left1, labels: ["1"] }
243067
243281
  ],
243068
- center: { x: bounds28.centerX, y: bounds28.centerY }
243282
+ center: { x: bounds33.centerX, y: bounds33.centerY }
243069
243283
  }).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("right").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_right").build();
243070
- ({ paths: paths29, texts: texts29, bounds: bounds29, refblocks: refblocks29, circles: circles27 } = ground2_default);
243284
+ ({ paths: paths34, texts: texts34, bounds: bounds34, refblocks: refblocks34, circles: circles32 } = ground2_default);
243071
243285
  ground2_up_default = modifySymbol({
243072
243286
  primitives: [
243073
- ...Object.values(paths29),
243074
- ...Object.values(circles27),
243287
+ ...Object.values(paths34),
243288
+ ...Object.values(circles32),
243075
243289
  {
243076
243290
  type: "text",
243077
243291
  text: "{REF}",
@@ -243080,9 +243294,9 @@ var init_dist5 = __esm(() => {
243080
243294
  }
243081
243295
  ],
243082
243296
  ports: [
243083
- { ...refblocks29.left1, labels: ["1"] }
243297
+ { ...refblocks34.left1, labels: ["1"] }
243084
243298
  ],
243085
- center: { x: bounds29.centerX, y: bounds29.centerY }
243299
+ center: { x: bounds34.centerX, y: bounds34.centerY }
243086
243300
  }).rotateRightFacingSymbol("up").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_top").build();
243087
243301
  gunn_diode_default = {
243088
243302
  paths: {
@@ -243931,12 +244145,12 @@ var init_dist5 = __esm(() => {
243931
244145
  };
243932
244146
  illuminated_push_button_normally_open_horz_default = modifySymbol(illuminated_push_button_normally_open_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
243933
244147
  rotatedSymbol6 = rotateSymbol(illuminated_push_button_normally_open_horz_default);
243934
- texts31 = rotatedSymbol6.primitives.filter((p) => p.type === "text");
243935
- val18 = texts31.find((t2) => t2.text === "{VAL}");
244148
+ texts36 = rotatedSymbol6.primitives.filter((p) => p.type === "text");
244149
+ val18 = texts36.find((t2) => t2.text === "{VAL}");
243936
244150
  val18.x = -0.35;
243937
244151
  val18.y = 0;
243938
244152
  val18.anchor = "middle_right";
243939
- ref18 = texts31.find((t2) => t2.text === "{REF}");
244153
+ ref18 = texts36.find((t2) => t2.text === "{REF}");
243940
244154
  ref18.y = 0;
243941
244155
  ref18.x = 0.35;
243942
244156
  ref18.anchor = "middle_left";
@@ -245334,20 +245548,20 @@ var init_dist5 = __esm(() => {
245334
245548
  },
245335
245549
  circles: {}
245336
245550
  };
245337
- ({ paths: paths31, texts: texts32, bounds: bounds31, refblocks: refblocks31, circles: circles29 } = inductor_default);
245551
+ ({ paths: paths36, texts: texts37, bounds: bounds36, refblocks: refblocks36, circles: circles34 } = inductor_default);
245338
245552
  inductor_right_default = defineSymbol({
245339
245553
  primitives: [
245340
- ...Object.values(paths31),
245341
- ...Object.values(circles29),
245342
- { ...texts32.top1, anchor: "middle_bottom" },
245343
- { ...texts32.bottom1, anchor: "middle_top" }
245554
+ ...Object.values(paths36),
245555
+ ...Object.values(circles34),
245556
+ { ...texts37.top1, anchor: "middle_bottom" },
245557
+ { ...texts37.bottom1, anchor: "middle_top" }
245344
245558
  ],
245345
245559
  ports: [
245346
- { ...refblocks31.left1, labels: ["1"] },
245347
- { ...refblocks31.right1, labels: ["2"] }
245560
+ { ...refblocks36.left1, labels: ["1"] },
245561
+ { ...refblocks36.right1, labels: ["2"] }
245348
245562
  ],
245349
- size: { width: bounds31.width, height: bounds31.height },
245350
- center: { x: bounds31.centerX, y: bounds31.centerY }
245563
+ size: { width: bounds36.width, height: bounds36.height },
245564
+ center: { x: bounds36.centerX, y: bounds36.centerY }
245351
245565
  });
245352
245566
  inductor_up_default = rotateSymbol(inductor_right_default, "up");
245353
245567
  inductor_down_default = flipSymbolOverXAxis(inductor_up_default);
@@ -245592,8 +245806,8 @@ var init_dist5 = __esm(() => {
245592
245806
  laser_diode_default.bounds.width += 0.2;
245593
245807
  laser_diode_horz_default = modifySymbol(laser_diode_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
245594
245808
  rotatedSymbol7 = rotateSymbol(laser_diode_horz_default);
245595
- texts33 = rotatedSymbol7.primitives.filter((p) => p.type === "text");
245596
- ref19 = texts33.find((t2) => t2.text === "{VAL}");
245809
+ texts38 = rotatedSymbol7.primitives.filter((p) => p.type === "text");
245810
+ ref19 = texts38.find((t2) => t2.text === "{VAL}");
245597
245811
  ref19.x = -0.52;
245598
245812
  ref19.anchor = "middle_right";
245599
245813
  laser_diode_vert_default = rotatedSymbol7;
@@ -245810,20 +246024,20 @@ var init_dist5 = __esm(() => {
245810
246024
  },
245811
246025
  circles: {}
245812
246026
  };
245813
- ({ paths: paths32, texts: texts34, bounds: bounds32, refblocks: refblocks32, circles: circles30 } = led_default);
246027
+ ({ paths: paths37, texts: texts39, bounds: bounds37, refblocks: refblocks37, circles: circles35 } = led_default);
245814
246028
  led_right_default = defineSymbol({
245815
246029
  primitives: [
245816
- ...Object.values(paths32),
245817
- ...Object.values(circles30),
245818
- { ...texts34.bottom1, anchor: "middle_top" },
245819
- { ...texts34.right1, anchor: "middle_bottom" }
246030
+ ...Object.values(paths37),
246031
+ ...Object.values(circles35),
246032
+ { ...texts39.bottom1, anchor: "middle_top" },
246033
+ { ...texts39.right1, anchor: "middle_bottom" }
245820
246034
  ],
245821
246035
  ports: [
245822
- { ...refblocks32.left1, labels: ["1"] },
245823
- { ...refblocks32.right1, labels: ["2"] }
246036
+ { ...refblocks37.left1, labels: ["1"] },
246037
+ { ...refblocks37.right1, labels: ["2"] }
245824
246038
  ],
245825
- size: { width: bounds32.width, height: bounds32.height },
245826
- center: { x: bounds32.centerX, y: bounds32.centerY }
246039
+ size: { width: bounds37.width, height: bounds37.height },
246040
+ center: { x: bounds37.centerX, y: bounds37.centerY }
245827
246041
  });
245828
246042
  symbol3 = rotateSymbol(led_right_default, "up");
245829
246043
  ref20 = symbol3.primitives.find((p) => p.type === "text" && p.text === "{REF}");
@@ -246068,28 +246282,28 @@ var init_dist5 = __esm(() => {
246068
246282
  }
246069
246283
  }
246070
246284
  };
246071
- ({ paths: paths33, texts: texts35, bounds: bounds33, refblocks: refblocks33, circles: circles31 } = light_dependent_resistor_default);
246285
+ ({ paths: paths38, texts: texts40, bounds: bounds38, refblocks: refblocks38, circles: circles36 } = light_dependent_resistor_default);
246072
246286
  light_dependent_resistor_horz_default = defineSymbol({
246073
246287
  primitives: [
246074
- ...Object.values(paths33),
246075
- ...Object.values(circles31),
246076
- { ...texts35.top1, anchor: "middle_left", x: 0 },
246077
- { ...texts35.bottom1, anchor: "middle_left", x: 0 }
246288
+ ...Object.values(paths38),
246289
+ ...Object.values(circles36),
246290
+ { ...texts40.top1, anchor: "middle_left", x: 0 },
246291
+ { ...texts40.bottom1, anchor: "middle_left", x: 0 }
246078
246292
  ],
246079
246293
  ports: [
246080
- { ...refblocks33.left1, labels: ["1"] },
246081
- { ...refblocks33.right1, labels: ["2"] }
246294
+ { ...refblocks38.left1, labels: ["1"] },
246295
+ { ...refblocks38.right1, labels: ["2"] }
246082
246296
  ],
246083
- size: { width: bounds33.width, height: bounds33.height },
246084
- center: { x: bounds33.centerX, y: bounds33.centerY }
246297
+ size: { width: bounds38.width, height: bounds38.height },
246298
+ center: { x: bounds38.centerX, y: bounds38.centerY }
246085
246299
  });
246086
246300
  rotatedSymbol8 = rotateSymbol(light_dependent_resistor_horz_default);
246087
- texts36 = rotatedSymbol8.primitives.filter((p) => p.type === "text");
246088
- val21 = texts36.find((t2) => t2.text === "{VAL}");
246301
+ texts41 = rotatedSymbol8.primitives.filter((p) => p.type === "text");
246302
+ val21 = texts41.find((t2) => t2.text === "{VAL}");
246089
246303
  val21.x = -0.35;
246090
246304
  val21.y = 0;
246091
246305
  val21.anchor = "middle_right";
246092
- ref22 = texts36.find((t2) => t2.text === "{REF}");
246306
+ ref22 = texts41.find((t2) => t2.text === "{REF}");
246093
246307
  ref22.y = 0;
246094
246308
  ref22.x = 0.35;
246095
246309
  ref22.anchor = "middle_left";
@@ -246362,20 +246576,20 @@ var init_dist5 = __esm(() => {
246362
246576
  },
246363
246577
  circles: {}
246364
246578
  };
246365
- ({ paths: paths34, texts: texts37, bounds: bounds34, refblocks: refblocks34 } = mosfet_depletion_normally_on_default);
246579
+ ({ paths: paths39, texts: texts42, bounds: bounds39, refblocks: refblocks39 } = mosfet_depletion_normally_on_default);
246366
246580
  mosfet_depletion_normally_on_horz_default = defineSymbol({
246367
246581
  primitives: [
246368
- ...Object.values(paths34),
246369
- { ...texts37.right1, anchor: "middle_left" },
246370
- { ...texts37.right2, anchor: "middle_left" }
246582
+ ...Object.values(paths39),
246583
+ { ...texts42.right1, anchor: "middle_left" },
246584
+ { ...texts42.right2, anchor: "middle_left" }
246371
246585
  ],
246372
246586
  ports: [
246373
- { ...refblocks34.top1, labels: ["1"] },
246374
- { ...refblocks34.bottom1, labels: ["2"] },
246375
- { ...refblocks34.left1, labels: ["3"] }
246587
+ { ...refblocks39.top1, labels: ["1"] },
246588
+ { ...refblocks39.bottom1, labels: ["2"] },
246589
+ { ...refblocks39.left1, labels: ["3"] }
246376
246590
  ],
246377
- size: { width: bounds34.width + 0.4, height: bounds34.height },
246378
- center: { x: bounds34.centerX + 0.2, y: bounds34.centerY }
246591
+ size: { width: bounds39.width + 0.4, height: bounds39.height },
246592
+ center: { x: bounds39.centerX + 0.2, y: bounds39.centerY }
246379
246593
  });
246380
246594
  rotated16 = rotateSymbol(mosfet_depletion_normally_on_horz_default);
246381
246595
  ref23 = rotated16.primitives.find((p) => p.type === "text" && p.text === "{REF}");
@@ -246991,20 +247205,20 @@ var init_dist5 = __esm(() => {
246991
247205
  },
246992
247206
  circles: {}
246993
247207
  };
246994
- ({ paths: paths35, texts: texts38, bounds: bounds35, refblocks: refblocks35, circles: circles32 } = mushroom_head_normally_open_momentary_default);
247208
+ ({ paths: paths40, texts: texts43, bounds: bounds40, refblocks: refblocks40, circles: circles37 } = mushroom_head_normally_open_momentary_default);
246995
247209
  mushroom_head_normally_open_momentary_horz_default = defineSymbol({
246996
247210
  primitives: [
246997
- ...Object.values(paths35),
246998
- ...Object.values(circles32),
246999
- { ...texts38.top1, anchor: "middle_bottom", x: 0 },
247000
- { ...texts38.bottom1, anchor: "middle_top", x: 0 }
247211
+ ...Object.values(paths40),
247212
+ ...Object.values(circles37),
247213
+ { ...texts43.top1, anchor: "middle_bottom", x: 0 },
247214
+ { ...texts43.bottom1, anchor: "middle_top", x: 0 }
247001
247215
  ],
247002
247216
  ports: [
247003
- { ...refblocks35.left1, labels: ["1"] },
247004
- { ...refblocks35.right1, labels: ["2"] }
247217
+ { ...refblocks40.left1, labels: ["1"] },
247218
+ { ...refblocks40.right1, labels: ["2"] }
247005
247219
  ],
247006
- size: { width: bounds35.width, height: bounds35.height },
247007
- center: { x: bounds35.centerX + 0.006, y: bounds35.centerY + 0.06 }
247220
+ size: { width: bounds40.width, height: bounds40.height },
247221
+ center: { x: bounds40.centerX + 0.006, y: bounds40.centerY + 0.06 }
247008
247222
  });
247009
247223
  rotated17 = rotateSymbol(mushroom_head_normally_open_momentary_horz_default);
247010
247224
  ref24 = rotated17.primitives.find((p) => p.type === "text" && p.text === "{REF}");
@@ -247211,29 +247425,29 @@ var init_dist5 = __esm(() => {
247211
247425
  }
247212
247426
  }
247213
247427
  };
247214
- ({ paths: paths36, texts: texts39, bounds: bounds36, refblocks: refblocks36, circles: circles33 } = n_channel_d_mosfet_transistor_default);
247428
+ ({ paths: paths41, texts: texts44, bounds: bounds41, refblocks: refblocks41, circles: circles38 } = n_channel_d_mosfet_transistor_default);
247215
247429
  n_channel_d_mosfet_transistor_horz_default = defineSymbol({
247216
247430
  primitives: [
247217
- ...Object.values(paths36),
247218
- ...Object.values(circles33),
247219
- { ...texts39.top1, anchor: "middle_right", x: 0 },
247220
- { ...texts39.bottom1, anchor: "middle_right", x: 0 }
247431
+ ...Object.values(paths41),
247432
+ ...Object.values(circles38),
247433
+ { ...texts44.top1, anchor: "middle_right", x: 0 },
247434
+ { ...texts44.bottom1, anchor: "middle_right", x: 0 }
247221
247435
  ],
247222
247436
  ports: [
247223
- { ...refblocks36.top1, labels: ["1", "drain"] },
247224
- { ...refblocks36.bottom1, labels: ["2", "source"] },
247225
- { ...refblocks36.left1, labels: ["3", "gate"] }
247437
+ { ...refblocks41.top1, labels: ["1", "drain"] },
247438
+ { ...refblocks41.bottom1, labels: ["2", "source"] },
247439
+ { ...refblocks41.left1, labels: ["3", "gate"] }
247226
247440
  ],
247227
- size: { width: bounds36.width, height: bounds36.height },
247228
- center: { x: bounds36.centerX, y: bounds36.centerY }
247441
+ size: { width: bounds41.width, height: bounds41.height },
247442
+ center: { x: bounds41.centerX, y: bounds41.centerY }
247229
247443
  });
247230
247444
  rotatedSymbol9 = rotateSymbol(n_channel_d_mosfet_transistor_horz_default);
247231
- texts40 = rotatedSymbol9.primitives.filter((p) => p.type === "text");
247232
- val24 = texts40.find((t2) => t2.text === "{VAL}");
247445
+ texts45 = rotatedSymbol9.primitives.filter((p) => p.type === "text");
247446
+ val24 = texts45.find((t2) => t2.text === "{VAL}");
247233
247447
  val24.x = -0.35;
247234
247448
  val24.y = 0;
247235
247449
  val24.anchor = "middle_right";
247236
- ref25 = texts40.find((t2) => t2.text === "{REF}");
247450
+ ref25 = texts45.find((t2) => t2.text === "{REF}");
247237
247451
  ref25.y = 0;
247238
247452
  ref25.x = 0.35;
247239
247453
  ref25.anchor = "middle_left";
@@ -247463,29 +247677,29 @@ var init_dist5 = __esm(() => {
247463
247677
  }
247464
247678
  }
247465
247679
  };
247466
- ({ paths: paths37, texts: texts41, bounds: bounds37, refblocks: refblocks37, circles: circles34 } = n_channel_e_mosfet_transistor_default);
247680
+ ({ paths: paths42, texts: texts46, bounds: bounds42, refblocks: refblocks42, circles: circles39 } = n_channel_e_mosfet_transistor_default);
247467
247681
  n_channel_e_mosfet_transistor_horz_default = defineSymbol({
247468
247682
  primitives: [
247469
- ...Object.values(paths37),
247470
- ...Object.values(circles34),
247471
- { ...texts41.top1, anchor: "middle_right", x: 0 },
247472
- { ...texts41.bottom1, anchor: "middle_right", x: 0 }
247683
+ ...Object.values(paths42),
247684
+ ...Object.values(circles39),
247685
+ { ...texts46.top1, anchor: "middle_right", x: 0 },
247686
+ { ...texts46.bottom1, anchor: "middle_right", x: 0 }
247473
247687
  ],
247474
247688
  ports: [
247475
- { ...refblocks37.top1, labels: ["1", "drain"] },
247476
- { ...refblocks37.bottom1, labels: ["2", "source"] },
247477
- { ...refblocks37.left1, labels: ["3", "gate"] }
247689
+ { ...refblocks42.top1, labels: ["1", "drain"] },
247690
+ { ...refblocks42.bottom1, labels: ["2", "source"] },
247691
+ { ...refblocks42.left1, labels: ["3", "gate"] }
247478
247692
  ],
247479
- size: { width: bounds37.width, height: bounds37.height },
247480
- center: { x: bounds37.centerX, y: bounds37.centerY }
247693
+ size: { width: bounds42.width, height: bounds42.height },
247694
+ center: { x: bounds42.centerX, y: bounds42.centerY }
247481
247695
  });
247482
247696
  rotatedSymbol10 = rotateSymbol(n_channel_e_mosfet_transistor_horz_default);
247483
- texts42 = rotatedSymbol10.primitives.filter((p) => p.type === "text");
247484
- val25 = texts42.find((t2) => t2.text === "{VAL}");
247697
+ texts47 = rotatedSymbol10.primitives.filter((p) => p.type === "text");
247698
+ val25 = texts47.find((t2) => t2.text === "{VAL}");
247485
247699
  val25.x = -0.35;
247486
247700
  val25.y = 0;
247487
247701
  val25.anchor = "middle_right";
247488
- ref26 = texts42.find((t2) => t2.text === "{REF}");
247702
+ ref26 = texts47.find((t2) => t2.text === "{REF}");
247489
247703
  ref26.y = 0;
247490
247704
  ref26.x = 0.35;
247491
247705
  ref26.anchor = "middle_left";
@@ -247655,29 +247869,29 @@ var init_dist5 = __esm(() => {
247655
247869
  }
247656
247870
  }
247657
247871
  };
247658
- ({ paths: paths38, texts: texts43, bounds: bounds38, refblocks: refblocks38, circles: circles35 } = njfet_transistor_default);
247872
+ ({ paths: paths43, texts: texts48, bounds: bounds43, refblocks: refblocks43, circles: circles40 } = njfet_transistor_default);
247659
247873
  njfet_transistor_horz_default = defineSymbol({
247660
247874
  primitives: [
247661
- ...Object.values(paths38),
247662
- ...Object.values(circles35),
247663
- { ...texts43.top1, anchor: "middle_right", x: 0 },
247664
- { ...texts43.bottom1, anchor: "middle_right", x: 0 }
247875
+ ...Object.values(paths43),
247876
+ ...Object.values(circles40),
247877
+ { ...texts48.top1, anchor: "middle_right", x: 0 },
247878
+ { ...texts48.bottom1, anchor: "middle_right", x: 0 }
247665
247879
  ],
247666
247880
  ports: [
247667
- { ...refblocks38.top1, labels: ["1", "drain"] },
247668
- { ...refblocks38.bottom1, labels: ["2", "source"] },
247669
- { ...refblocks38.left1, labels: ["3", "gate"] }
247881
+ { ...refblocks43.top1, labels: ["1", "drain"] },
247882
+ { ...refblocks43.bottom1, labels: ["2", "source"] },
247883
+ { ...refblocks43.left1, labels: ["3", "gate"] }
247670
247884
  ],
247671
- size: { width: bounds38.width, height: bounds38.height },
247672
- center: { x: bounds38.centerX, y: bounds38.centerY }
247885
+ size: { width: bounds43.width, height: bounds43.height },
247886
+ center: { x: bounds43.centerX, y: bounds43.centerY }
247673
247887
  });
247674
247888
  rotatedSymbol11 = rotateSymbol(njfet_transistor_horz_default);
247675
- texts44 = rotatedSymbol11.primitives.filter((p) => p.type === "text");
247676
- val26 = texts44.find((t2) => t2.text === "{VAL}");
247889
+ texts49 = rotatedSymbol11.primitives.filter((p) => p.type === "text");
247890
+ val26 = texts49.find((t2) => t2.text === "{VAL}");
247677
247891
  val26.x = -0.35;
247678
247892
  val26.y = 0;
247679
247893
  val26.anchor = "middle_right";
247680
- ref27 = texts44.find((t2) => t2.text === "{REF}");
247894
+ ref27 = texts49.find((t2) => t2.text === "{REF}");
247681
247895
  ref27.y = 0;
247682
247896
  ref27.x = 0.35;
247683
247897
  ref27.anchor = "middle_left";
@@ -247849,8 +248063,8 @@ var init_dist5 = __esm(() => {
247849
248063
  };
247850
248064
  npn_bipolar_transistor_horz_default = modifySymbol(npn_bipolar_transistor_default).changeTextAnchor("{VAL}", "middle_right").labelPort("left1", ["3"]).labelPort("top1", ["1"]).labelPort("bottom1", ["2"]).changeTextAnchor("{REF}", "middle_right").build();
247851
248065
  rotatedSymbol12 = rotateSymbol(npn_bipolar_transistor_horz_default);
247852
- texts46 = rotatedSymbol12.primitives.filter((p) => p.type === "text");
247853
- ref28 = texts46.find((t2) => t2.text === "{REF}");
248066
+ texts51 = rotatedSymbol12.primitives.filter((p) => p.type === "text");
248067
+ ref28 = texts51.find((t2) => t2.text === "{REF}");
247854
248068
  ref28.anchor = "middle_left";
247855
248069
  npn_bipolar_transistor_vert_default = modifySymbol(npn_bipolar_transistor_default).rotateRightFacingSymbol("down").changeTextAnchor("{VAL}", "middle_right").labelPort("left1", ["3"]).labelPort("top1", ["1"]).labelPort("bottom1", ["2"]).changeTextAnchor("{REF}", "middle_left").build();
247856
248070
  opamp_no_power_default = {
@@ -248450,29 +248664,29 @@ var init_dist5 = __esm(() => {
248450
248664
  }
248451
248665
  }
248452
248666
  };
248453
- ({ paths: paths40, texts: texts47, bounds: bounds40, refblocks: refblocks40, circles: circles37 } = p_channel_d_mosfet_transistor_default);
248667
+ ({ paths: paths45, texts: texts52, bounds: bounds45, refblocks: refblocks45, circles: circles42 } = p_channel_d_mosfet_transistor_default);
248454
248668
  p_channel_d_mosfet_transistor_horz_default = defineSymbol({
248455
248669
  primitives: [
248456
- ...Object.values(paths40),
248457
- ...Object.values(circles37),
248458
- { ...texts47.top1, anchor: "middle_right", x: 0 },
248459
- { ...texts47.bottom1, anchor: "middle_right", x: 0 }
248670
+ ...Object.values(paths45),
248671
+ ...Object.values(circles42),
248672
+ { ...texts52.top1, anchor: "middle_right", x: 0 },
248673
+ { ...texts52.bottom1, anchor: "middle_right", x: 0 }
248460
248674
  ],
248461
248675
  ports: [
248462
- { ...refblocks40.top1, labels: ["1", "drain"] },
248463
- { ...refblocks40.bottom1, labels: ["2", "source"] },
248464
- { ...refblocks40.left1, labels: ["3", "gate"] }
248676
+ { ...refblocks45.top1, labels: ["1", "drain"] },
248677
+ { ...refblocks45.bottom1, labels: ["2", "source"] },
248678
+ { ...refblocks45.left1, labels: ["3", "gate"] }
248465
248679
  ],
248466
- size: { width: bounds40.width, height: bounds40.height },
248467
- center: { x: bounds40.centerX, y: bounds40.centerY }
248680
+ size: { width: bounds45.width, height: bounds45.height },
248681
+ center: { x: bounds45.centerX, y: bounds45.centerY }
248468
248682
  });
248469
248683
  rotatedSymbol13 = rotateSymbol(p_channel_d_mosfet_transistor_horz_default);
248470
- texts48 = rotatedSymbol13.primitives.filter((p) => p.type === "text");
248471
- val27 = texts48.find((t2) => t2.text === "{VAL}");
248684
+ texts53 = rotatedSymbol13.primitives.filter((p) => p.type === "text");
248685
+ val27 = texts53.find((t2) => t2.text === "{VAL}");
248472
248686
  val27.x = -0.35;
248473
248687
  val27.y = 0;
248474
248688
  val27.anchor = "middle_right";
248475
- ref29 = texts48.find((t2) => t2.text === "{REF}");
248689
+ ref29 = texts53.find((t2) => t2.text === "{REF}");
248476
248690
  ref29.y = 0;
248477
248691
  ref29.x = 0.35;
248478
248692
  ref29.anchor = "middle_left";
@@ -248702,29 +248916,29 @@ var init_dist5 = __esm(() => {
248702
248916
  }
248703
248917
  }
248704
248918
  };
248705
- ({ paths: paths41, texts: texts49, bounds: bounds41, refblocks: refblocks41, circles: circles38 } = p_channel_e_mosfet_transistor_default);
248919
+ ({ paths: paths46, texts: texts54, bounds: bounds46, refblocks: refblocks46, circles: circles43 } = p_channel_e_mosfet_transistor_default);
248706
248920
  p_channel_e_mosfet_transistor_horz_default = defineSymbol({
248707
248921
  primitives: [
248708
- ...Object.values(paths41),
248709
- ...Object.values(circles38),
248710
- { ...texts49.top1, anchor: "middle_right", x: 0 },
248711
- { ...texts49.bottom1, anchor: "middle_right", x: 0 }
248922
+ ...Object.values(paths46),
248923
+ ...Object.values(circles43),
248924
+ { ...texts54.top1, anchor: "middle_right", x: 0 },
248925
+ { ...texts54.bottom1, anchor: "middle_right", x: 0 }
248712
248926
  ],
248713
248927
  ports: [
248714
- { ...refblocks41.top1, labels: ["1", "drain"] },
248715
- { ...refblocks41.bottom1, labels: ["2", "source"] },
248716
- { ...refblocks41.left1, labels: ["3", "gate"] }
248928
+ { ...refblocks46.top1, labels: ["1", "drain"] },
248929
+ { ...refblocks46.bottom1, labels: ["2", "source"] },
248930
+ { ...refblocks46.left1, labels: ["3", "gate"] }
248717
248931
  ],
248718
- size: { width: bounds41.width, height: bounds41.height },
248719
- center: { x: bounds41.centerX, y: bounds41.centerY }
248932
+ size: { width: bounds46.width, height: bounds46.height },
248933
+ center: { x: bounds46.centerX, y: bounds46.centerY }
248720
248934
  });
248721
248935
  rotatedSymbol14 = rotateSymbol(p_channel_e_mosfet_transistor_horz_default);
248722
- texts50 = rotatedSymbol14.primitives.filter((p) => p.type === "text");
248723
- val28 = texts50.find((t2) => t2.text === "{VAL}");
248936
+ texts55 = rotatedSymbol14.primitives.filter((p) => p.type === "text");
248937
+ val28 = texts55.find((t2) => t2.text === "{VAL}");
248724
248938
  val28.x = -0.35;
248725
248939
  val28.y = 0;
248726
248940
  val28.anchor = "middle_right";
248727
- ref30 = texts50.find((t2) => t2.text === "{REF}");
248941
+ ref30 = texts55.find((t2) => t2.text === "{REF}");
248728
248942
  ref30.y = 0;
248729
248943
  ref30.x = 0.35;
248730
248944
  ref30.anchor = "middle_left";
@@ -248953,8 +249167,8 @@ var init_dist5 = __esm(() => {
248953
249167
  };
248954
249168
  photodiode_horz_default = modifySymbol(photodiode_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
248955
249169
  rotatedSymbol15 = rotateSymbol(photodiode_horz_default);
248956
- texts51 = rotatedSymbol15.primitives.filter((p) => p.type === "text");
248957
- ref31 = texts51.find((t2) => t2.text === "{REF}");
249170
+ texts56 = rotatedSymbol15.primitives.filter((p) => p.type === "text");
249171
+ ref31 = texts56.find((t2) => t2.text === "{REF}");
248958
249172
  ref31.y = 0;
248959
249173
  ref31.anchor = "middle_left";
248960
249174
  photodiode_vert_default = rotatedSymbol15;
@@ -249123,29 +249337,29 @@ var init_dist5 = __esm(() => {
249123
249337
  }
249124
249338
  }
249125
249339
  };
249126
- ({ paths: paths42, texts: texts52, bounds: bounds42, refblocks: refblocks42, circles: circles39 } = pjfet_transistor_default);
249340
+ ({ paths: paths47, texts: texts57, bounds: bounds47, refblocks: refblocks47, circles: circles44 } = pjfet_transistor_default);
249127
249341
  pjfet_transistor_horz_default = defineSymbol({
249128
249342
  primitives: [
249129
- ...Object.values(paths42),
249130
- ...Object.values(circles39),
249131
- { ...texts52.top1, anchor: "middle_right", x: 0 },
249132
- { ...texts52.bottom1, anchor: "middle_right" }
249343
+ ...Object.values(paths47),
249344
+ ...Object.values(circles44),
249345
+ { ...texts57.top1, anchor: "middle_right", x: 0 },
249346
+ { ...texts57.bottom1, anchor: "middle_right" }
249133
249347
  ],
249134
249348
  ports: [
249135
- { ...refblocks42.top1, labels: ["1", "drain"] },
249136
- { ...refblocks42.bottom1, labels: ["2", "source"] },
249137
- { ...refblocks42.left1, labels: ["3", "gate"] }
249349
+ { ...refblocks47.top1, labels: ["1", "drain"] },
249350
+ { ...refblocks47.bottom1, labels: ["2", "source"] },
249351
+ { ...refblocks47.left1, labels: ["3", "gate"] }
249138
249352
  ],
249139
- size: { width: bounds42.width, height: bounds42.height },
249140
- center: { x: bounds42.centerX, y: bounds42.centerY }
249353
+ size: { width: bounds47.width, height: bounds47.height },
249354
+ center: { x: bounds47.centerX, y: bounds47.centerY }
249141
249355
  });
249142
249356
  rotatedSymbol16 = rotateSymbol(pjfet_transistor_horz_default);
249143
- texts53 = rotatedSymbol16.primitives.filter((p) => p.type === "text");
249144
- val29 = texts53.find((t2) => t2.text === "{VAL}");
249357
+ texts58 = rotatedSymbol16.primitives.filter((p) => p.type === "text");
249358
+ val29 = texts58.find((t2) => t2.text === "{VAL}");
249145
249359
  val29.x = -0.35;
249146
249360
  val29.y = 0;
249147
249361
  val29.anchor = "middle_right";
249148
- ref32 = texts53.find((t2) => t2.text === "{REF}");
249362
+ ref32 = texts58.find((t2) => t2.text === "{REF}");
249149
249363
  ref32.y = 0;
249150
249364
  ref32.x = 0.35;
249151
249365
  ref32.anchor = "middle_left";
@@ -249317,8 +249531,8 @@ var init_dist5 = __esm(() => {
249317
249531
  };
249318
249532
  pnp_bipolar_transistor_horz_default = modifySymbol(pnp_bipolar_transistor_default).changeTextAnchor("{VAL}", "middle_right").labelPort("left1", ["3"]).labelPort("bottom1", ["2"]).labelPort("top1", ["1"]).changeTextAnchor("{REF}", "middle_right").build();
249319
249533
  rotatedSymbol17 = rotateSymbol(pnp_bipolar_transistor_horz_default);
249320
- texts54 = rotatedSymbol17.primitives.filter((p) => p.type === "text");
249321
- ref33 = texts54.find((t2) => t2.text === "{REF}");
249534
+ texts59 = rotatedSymbol17.primitives.filter((p) => p.type === "text");
249535
+ ref33 = texts59.find((t2) => t2.text === "{REF}");
249322
249536
  ref33.anchor = "middle_left";
249323
249537
  pnp_bipolar_transistor_vert_default = modifySymbol(pnp_bipolar_transistor_default).rotateRightFacingSymbol("down").changeTextAnchor("{VAL}", "middle_right").labelPort("left1", ["3"]).labelPort("bottom1", ["2"]).labelPort("top1", ["1"]).changeTextAnchor("{REF}", "middle_left").build();
249324
249538
  potentiometer_default = {
@@ -249728,19 +249942,19 @@ var init_dist5 = __esm(() => {
249728
249942
  },
249729
249943
  circles: {}
249730
249944
  };
249731
- ({ paths: paths43, texts: texts55, bounds: bounds43, refblocks: refblocks43 } = potentiometer_default);
249945
+ ({ paths: paths48, texts: texts60, bounds: bounds48, refblocks: refblocks48 } = potentiometer_default);
249732
249946
  potentiometer_horz_default = defineSymbol({
249733
249947
  primitives: [
249734
- ...Object.values(paths43),
249735
- { ...texts55.bottom1, y: 0.35, anchor: "middle_top" },
249736
- { ...texts55.top1, anchor: "middle_left" }
249948
+ ...Object.values(paths48),
249949
+ { ...texts60.bottom1, y: 0.35, anchor: "middle_top" },
249950
+ { ...texts60.top1, anchor: "middle_left" }
249737
249951
  ],
249738
249952
  ports: [
249739
- { ...refblocks43.left1, labels: ["1"] },
249740
- { ...refblocks43.right1, labels: ["2"] }
249953
+ { ...refblocks48.left1, labels: ["1"] },
249954
+ { ...refblocks48.right1, labels: ["2"] }
249741
249955
  ],
249742
- size: { width: bounds43.width + 0.05, height: bounds43.height },
249743
- center: { x: bounds43.centerX, y: bounds43.centerY }
249956
+ size: { width: bounds48.width + 0.05, height: bounds48.height },
249957
+ center: { x: bounds48.centerX, y: bounds48.centerY }
249744
249958
  });
249745
249959
  rotated18 = rotateSymbol(potentiometer_horz_default);
249746
249960
  potentiometer_vert_default = rotated18;
@@ -249897,19 +250111,19 @@ var init_dist5 = __esm(() => {
249897
250111
  },
249898
250112
  circles: {}
249899
250113
  };
249900
- ({ paths: paths44, texts: texts56, bounds: bounds44, refblocks: refblocks44 } = potentiometer2_default);
250114
+ ({ paths: paths49, texts: texts61, bounds: bounds49, refblocks: refblocks49 } = potentiometer2_default);
249901
250115
  potentiometer2_right_default = defineSymbol({
249902
250116
  primitives: [
249903
- ...Object.values(paths44),
249904
- { ...texts56.bottom1, x: 0, y: -0.35, anchor: "middle_top" },
249905
- { ...texts56.top1, x: 0, y: 0.35, anchor: "middle_bottom" }
250117
+ ...Object.values(paths49),
250118
+ { ...texts61.bottom1, x: 0, y: -0.35, anchor: "middle_top" },
250119
+ { ...texts61.top1, x: 0, y: 0.35, anchor: "middle_bottom" }
249906
250120
  ],
249907
250121
  ports: [
249908
- { ...refblocks44.left1, labels: ["1"] },
249909
- { ...refblocks44.right1, labels: ["2"] }
250122
+ { ...refblocks49.left1, labels: ["1"] },
250123
+ { ...refblocks49.right1, labels: ["2"] }
249910
250124
  ],
249911
- size: { width: bounds44.width + 0.05, height: bounds44.height },
249912
- center: { x: bounds44.centerX, y: bounds44.centerY }
250125
+ size: { width: bounds49.width + 0.05, height: bounds49.height },
250126
+ center: { x: bounds49.centerX, y: bounds49.centerY }
249913
250127
  });
249914
250128
  symbol5 = rotateSymbol(potentiometer2_right_default, "down");
249915
250129
  ref34 = symbol5.primitives.find((p) => p.type === "text" && p.text === "{REF}");
@@ -250122,11 +250336,11 @@ var init_dist5 = __esm(() => {
250122
250336
  }
250123
250337
  }
250124
250338
  };
250125
- ({ paths: paths45, texts: texts57, bounds: bounds45, refblocks: refblocks45, circles: circles40 } = power_factor_meter_default);
250339
+ ({ paths: paths50, texts: texts62, bounds: bounds50, refblocks: refblocks50, circles: circles45 } = power_factor_meter_default);
250126
250340
  power_factor_meter_horz_default = defineSymbol({
250127
250341
  primitives: [
250128
- ...Object.values(paths45),
250129
- ...Object.values(circles40),
250342
+ ...Object.values(paths50),
250343
+ ...Object.values(circles45),
250130
250344
  {
250131
250345
  type: "text",
250132
250346
  text: "{REF}",
@@ -250150,17 +250364,17 @@ var init_dist5 = __esm(() => {
250150
250364
  }
250151
250365
  ],
250152
250366
  ports: [
250153
- { ...refblocks45.left1, labels: ["1"] },
250154
- { ...refblocks45.right1, labels: ["2"] }
250367
+ { ...refblocks50.left1, labels: ["1"] },
250368
+ { ...refblocks50.right1, labels: ["2"] }
250155
250369
  ],
250156
- size: { width: bounds45.width, height: bounds45.height },
250157
- center: { x: bounds45.centerX, y: bounds45.centerY }
250370
+ size: { width: bounds50.width, height: bounds50.height },
250371
+ center: { x: bounds50.centerX, y: bounds50.centerY }
250158
250372
  });
250159
250373
  rotatedSymbol18 = rotateSymbol(power_factor_meter_horz_default);
250160
- texts58 = rotatedSymbol18.primitives.filter((p) => p.type === "text");
250161
- ref37 = texts58.find((t2) => t2.text === "{REF}");
250162
- val33 = texts58.find((t2) => t2.text === "{VAL}");
250163
- text_cos = texts58.find((t2) => t2.text === "COS φ");
250374
+ texts63 = rotatedSymbol18.primitives.filter((p) => p.type === "text");
250375
+ ref37 = texts63.find((t2) => t2.text === "{REF}");
250376
+ val33 = texts63.find((t2) => t2.text === "{VAL}");
250377
+ text_cos = texts63.find((t2) => t2.text === "COS φ");
250164
250378
  ref37.x = 0.35;
250165
250379
  ref37.y = 0;
250166
250380
  ref37.anchor = "middle_left";
@@ -250287,20 +250501,20 @@ var init_dist5 = __esm(() => {
250287
250501
  }
250288
250502
  }
250289
250503
  };
250290
- ({ paths: paths46, texts: texts59, bounds: bounds46, refblocks: refblocks46, circles: circles41 } = push_button_normally_closed_momentary_default);
250504
+ ({ paths: paths51, texts: texts64, bounds: bounds51, refblocks: refblocks51, circles: circles46 } = push_button_normally_closed_momentary_default);
250291
250505
  push_button_normally_closed_momentary_horz_default = defineSymbol({
250292
250506
  primitives: [
250293
- ...Object.values(paths46),
250294
- ...Object.values(circles41),
250295
- { ...texts59.top1, anchor: "middle_left" },
250296
- { ...texts59.bottom1, anchor: "middle_left" }
250507
+ ...Object.values(paths51),
250508
+ ...Object.values(circles46),
250509
+ { ...texts64.top1, anchor: "middle_left" },
250510
+ { ...texts64.bottom1, anchor: "middle_left" }
250297
250511
  ],
250298
250512
  ports: [
250299
- { ...refblocks46.left1, labels: ["1"] },
250300
- { ...refblocks46.right1, labels: ["2"] }
250513
+ { ...refblocks51.left1, labels: ["1"] },
250514
+ { ...refblocks51.right1, labels: ["2"] }
250301
250515
  ],
250302
- size: { width: bounds46.width, height: bounds46.height },
250303
- center: { x: bounds46.centerX, y: bounds46.centerY }
250516
+ size: { width: bounds51.width, height: bounds51.height },
250517
+ center: { x: bounds51.centerX, y: bounds51.centerY }
250304
250518
  });
250305
250519
  push_button_normally_closed_momentary_vert_default = rotateSymbol(push_button_normally_closed_momentary_horz_default, "up");
250306
250520
  push_button_normally_open_momentary_default = {
@@ -250449,20 +250663,20 @@ var init_dist5 = __esm(() => {
250449
250663
  }
250450
250664
  }
250451
250665
  };
250452
- ({ paths: paths47, texts: texts60, bounds: bounds47, refblocks: refblocks47, circles: circles42 } = push_button_normally_open_momentary_default);
250666
+ ({ paths: paths52, texts: texts65, bounds: bounds52, refblocks: refblocks52, circles: circles47 } = push_button_normally_open_momentary_default);
250453
250667
  push_button_normally_open_momentary_horz_default = defineSymbol({
250454
250668
  primitives: [
250455
- ...Object.values(paths47),
250456
- ...Object.values(circles42),
250457
- { ...texts60.top1, anchor: "middle_left" },
250458
- { ...texts60.bottom1, anchor: "middle_left" }
250669
+ ...Object.values(paths52),
250670
+ ...Object.values(circles47),
250671
+ { ...texts65.top1, anchor: "middle_left" },
250672
+ { ...texts65.bottom1, anchor: "middle_left" }
250459
250673
  ],
250460
250674
  ports: [
250461
- { ...refblocks47.left1, labels: ["1"] },
250462
- { ...refblocks47.right1, labels: ["2"] }
250675
+ { ...refblocks52.left1, labels: ["1"] },
250676
+ { ...refblocks52.right1, labels: ["2"] }
250463
250677
  ],
250464
- size: { width: bounds47.width, height: bounds47.height },
250465
- center: { x: bounds47.centerX, y: bounds47.centerY }
250678
+ size: { width: bounds52.width, height: bounds52.height },
250679
+ center: { x: bounds52.centerX, y: bounds52.centerY }
250466
250680
  });
250467
250681
  push_button_normally_open_momentary_vert_default = rotateSymbol(push_button_normally_open_momentary_horz_default, "up");
250468
250682
  rectifier_diode_default = {
@@ -250872,22 +251086,22 @@ var init_dist5 = __esm(() => {
250872
251086
  },
250873
251087
  circles: {}
250874
251088
  };
250875
- ({ paths: paths48, texts: texts61, bounds: bounds48, refblocks: refblocks48, circles: circles43 } = rectifier_diode_default);
251089
+ ({ paths: paths53, texts: texts66, bounds: bounds53, refblocks: refblocks53, circles: circles48 } = rectifier_diode_default);
250876
251090
  rectifier_diode_horz_default = defineSymbol({
250877
251091
  primitives: [
250878
- ...Object.values(paths48),
250879
- ...Object.values(circles43),
250880
- { ...texts61.top1, anchor: "middle_right" },
250881
- { ...texts61.bottom1, anchor: "middle_right" }
251092
+ ...Object.values(paths53),
251093
+ ...Object.values(circles48),
251094
+ { ...texts66.top1, anchor: "middle_right" },
251095
+ { ...texts66.bottom1, anchor: "middle_right" }
250882
251096
  ],
250883
251097
  ports: [
250884
- { ...refblocks48.top1, labels: ["1"] },
250885
- { ...refblocks48.bottom1, labels: ["2"] },
250886
- { ...refblocks48.left1, labels: ["3"] },
250887
- { ...refblocks48.right1, labels: ["4"] }
251098
+ { ...refblocks53.top1, labels: ["1"] },
251099
+ { ...refblocks53.bottom1, labels: ["2"] },
251100
+ { ...refblocks53.left1, labels: ["3"] },
251101
+ { ...refblocks53.right1, labels: ["4"] }
250888
251102
  ],
250889
- size: { width: bounds48.width, height: bounds48.height },
250890
- center: { x: bounds48.centerX, y: bounds48.centerY }
251103
+ size: { width: bounds53.width, height: bounds53.height },
251104
+ center: { x: bounds53.centerX, y: bounds53.centerY }
250891
251105
  });
250892
251106
  rotated19 = rotateSymbol(rectifier_diode_horz_default);
250893
251107
  ref38 = rotated19.primitives.find((p) => p.type === "text" && p.text === "{REF}");
@@ -251099,11 +251313,11 @@ var init_dist5 = __esm(() => {
251099
251313
  },
251100
251314
  circles: {}
251101
251315
  };
251102
- ({ paths: paths49, texts: texts62, bounds: bounds49, refblocks: refblocks49, circles: circles44 } = resistor_default);
251316
+ ({ paths: paths54, texts: texts67, bounds: bounds54, refblocks: refblocks54, circles: circles49 } = resistor_default);
251103
251317
  resistor_down_default = modifySymbol({
251104
251318
  primitives: [
251105
- ...Object.values(paths49),
251106
- ...Object.values(circles44),
251319
+ ...Object.values(paths54),
251320
+ ...Object.values(circles49),
251107
251321
  {
251108
251322
  type: "text",
251109
251323
  text: "{REF}",
@@ -251118,17 +251332,17 @@ var init_dist5 = __esm(() => {
251118
251332
  }
251119
251333
  ],
251120
251334
  ports: [
251121
- { ...refblocks49.left1, labels: ["1"] },
251122
- { ...refblocks49.right1, labels: ["2"] }
251335
+ { ...refblocks54.left1, labels: ["1"] },
251336
+ { ...refblocks54.right1, labels: ["2"] }
251123
251337
  ],
251124
- size: { width: bounds49.width, height: bounds49.height },
251125
- center: { x: bounds49.centerX, y: bounds49.centerY }
251338
+ size: { width: bounds54.width, height: bounds54.height },
251339
+ center: { x: bounds54.centerX, y: bounds54.centerY }
251126
251340
  }).rotateRightFacingSymbol("down").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
251127
- ({ paths: paths50, texts: texts63, bounds: bounds50, refblocks: refblocks50, circles: circles45 } = resistor_default);
251341
+ ({ paths: paths55, texts: texts68, bounds: bounds55, refblocks: refblocks55, circles: circles50 } = resistor_default);
251128
251342
  resistor_left_default = modifySymbol({
251129
251343
  primitives: [
251130
- ...Object.values(paths50),
251131
- ...Object.values(circles45),
251344
+ ...Object.values(paths55),
251345
+ ...Object.values(circles50),
251132
251346
  {
251133
251347
  type: "text",
251134
251348
  text: "{REF}",
@@ -251143,17 +251357,17 @@ var init_dist5 = __esm(() => {
251143
251357
  }
251144
251358
  ],
251145
251359
  ports: [
251146
- { ...refblocks50.left1, labels: ["1"] },
251147
- { ...refblocks50.right1, labels: ["2"] }
251360
+ { ...refblocks55.left1, labels: ["1"] },
251361
+ { ...refblocks55.right1, labels: ["2"] }
251148
251362
  ],
251149
- size: { width: bounds50.width, height: bounds50.height },
251150
- center: { x: bounds50.centerX, y: bounds50.centerY }
251363
+ size: { width: bounds55.width, height: bounds55.height },
251364
+ center: { x: bounds55.centerX, y: bounds55.centerY }
251151
251365
  }).rotateRightFacingSymbol("left").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
251152
- ({ paths: paths51, texts: texts64, bounds: bounds51, refblocks: refblocks51, circles: circles46 } = resistor_default);
251366
+ ({ paths: paths56, texts: texts69, bounds: bounds56, refblocks: refblocks56, circles: circles51 } = resistor_default);
251153
251367
  resistor_right_default = modifySymbol({
251154
251368
  primitives: [
251155
- ...Object.values(paths51),
251156
- ...Object.values(circles46),
251369
+ ...Object.values(paths56),
251370
+ ...Object.values(circles51),
251157
251371
  {
251158
251372
  type: "text",
251159
251373
  text: "{REF}",
@@ -251168,17 +251382,17 @@ var init_dist5 = __esm(() => {
251168
251382
  }
251169
251383
  ],
251170
251384
  ports: [
251171
- { ...refblocks51.left1, labels: ["1"] },
251172
- { ...refblocks51.right1, labels: ["2"] }
251385
+ { ...refblocks56.left1, labels: ["1"] },
251386
+ { ...refblocks56.right1, labels: ["2"] }
251173
251387
  ],
251174
- size: { width: bounds51.width, height: bounds51.height },
251175
- center: { x: bounds51.centerX, y: bounds51.centerY }
251388
+ size: { width: bounds56.width, height: bounds56.height },
251389
+ center: { x: bounds56.centerX, y: bounds56.centerY }
251176
251390
  }).rotateRightFacingSymbol("right").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
251177
- ({ paths: paths52, texts: texts65, bounds: bounds52, refblocks: refblocks52, circles: circles47 } = resistor_default);
251391
+ ({ paths: paths57, texts: texts70, bounds: bounds57, refblocks: refblocks57, circles: circles52 } = resistor_default);
251178
251392
  resistor_up_default = modifySymbol({
251179
251393
  primitives: [
251180
- ...Object.values(paths52),
251181
- ...Object.values(circles47),
251394
+ ...Object.values(paths57),
251395
+ ...Object.values(circles52),
251182
251396
  {
251183
251397
  type: "text",
251184
251398
  text: "{REF}",
@@ -251193,11 +251407,11 @@ var init_dist5 = __esm(() => {
251193
251407
  }
251194
251408
  ],
251195
251409
  ports: [
251196
- { ...refblocks52.left1, labels: ["1"] },
251197
- { ...refblocks52.right1, labels: ["2"] }
251410
+ { ...refblocks57.left1, labels: ["1"] },
251411
+ { ...refblocks57.right1, labels: ["2"] }
251198
251412
  ],
251199
- size: { width: bounds52.width, height: bounds52.height },
251200
- center: { x: bounds52.centerX, y: bounds52.centerY }
251413
+ size: { width: bounds57.width, height: bounds57.height },
251414
+ center: { x: bounds57.centerX, y: bounds57.centerY }
251201
251415
  }).rotateRightFacingSymbol("up").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
251202
251416
  resonator_default = {
251203
251417
  paths: {
@@ -251542,11 +251756,11 @@ var init_dist5 = __esm(() => {
251542
251756
  },
251543
251757
  circles: {}
251544
251758
  };
251545
- ({ paths: paths53, texts: texts66, bounds: bounds53, refblocks: refblocks53, circles: circles48 } = resonator_default);
251759
+ ({ paths: paths58, texts: texts71, bounds: bounds58, refblocks: refblocks58, circles: circles53 } = resonator_default);
251546
251760
  resonator_horz_default = defineSymbol({
251547
251761
  primitives: [
251548
- ...Object.values(paths53),
251549
- ...Object.values(circles48),
251762
+ ...Object.values(paths58),
251763
+ ...Object.values(circles53),
251550
251764
  {
251551
251765
  type: "text",
251552
251766
  text: "{REF}",
@@ -251563,12 +251777,12 @@ var init_dist5 = __esm(() => {
251563
251777
  }
251564
251778
  ],
251565
251779
  ports: [
251566
- { ...refblocks53.left1, labels: ["1"] },
251567
- { ...refblocks53.right1, labels: ["2"] },
251568
- { ...refblocks53.right2, labels: ["3"] }
251780
+ { ...refblocks58.left1, labels: ["1"] },
251781
+ { ...refblocks58.right1, labels: ["2"] },
251782
+ { ...refblocks58.right2, labels: ["3"] }
251569
251783
  ],
251570
- size: { width: bounds53.width, height: bounds53.height },
251571
- center: { x: bounds53.centerX, y: bounds53.centerY }
251784
+ size: { width: bounds58.width, height: bounds58.height },
251785
+ center: { x: bounds58.centerX, y: bounds58.centerY }
251572
251786
  });
251573
251787
  resonator_vert_default = rotateSymbol(resonator_horz_default);
251574
251788
  schottky_diode_default = {
@@ -251934,8 +252148,8 @@ var init_dist5 = __esm(() => {
251934
252148
  };
251935
252149
  silicon_controlled_rectifier_horz_default = modifySymbol(silicon_controlled_rectifier_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).labelPort("bottom1", ["3"]).changeTextAnchor("{REF}", "middle_bottom").build();
251936
252150
  rotatedSymbol19 = rotateSymbol(silicon_controlled_rectifier_horz_default);
251937
- texts68 = rotatedSymbol19.primitives.filter((primitive) => primitive.type === "text");
251938
- ref42 = texts68.find((text) => text.text === "{REF}");
252151
+ texts73 = rotatedSymbol19.primitives.filter((primitive) => primitive.type === "text");
252152
+ ref42 = texts73.find((text) => text.text === "{REF}");
251939
252153
  ref42.y = 0;
251940
252154
  ref42.anchor = "middle_left";
251941
252155
  silicon_controlled_rectifier_vert_default = rotatedSymbol19;
@@ -255429,11 +255643,11 @@ var init_dist5 = __esm(() => {
255429
255643
  }
255430
255644
  }
255431
255645
  };
255432
- ({ paths: paths56, texts: texts70, bounds: bounds56, refblocks: refblocks56, circles: circles51 } = tachometer_default);
255646
+ ({ paths: paths61, texts: texts75, bounds: bounds61, refblocks: refblocks61, circles: circles56 } = tachometer_default);
255433
255647
  tachometer_horz_default = defineSymbol({
255434
255648
  primitives: [
255435
- ...Object.values(paths56),
255436
- ...Object.values(circles51),
255649
+ ...Object.values(paths61),
255650
+ ...Object.values(circles56),
255437
255651
  {
255438
255652
  type: "text",
255439
255653
  text: "{REF}",
@@ -255448,14 +255662,14 @@ var init_dist5 = __esm(() => {
255448
255662
  y: 0.35,
255449
255663
  anchor: "middle_bottom"
255450
255664
  },
255451
- { ...texts70.left1, y: 0.01, anchor: "center", fontSize: 0.2 }
255665
+ { ...texts75.left1, y: 0.01, anchor: "center", fontSize: 0.2 }
255452
255666
  ],
255453
255667
  ports: [
255454
- { ...refblocks56.left1, labels: ["1"] },
255455
- { ...refblocks56.right1, labels: ["2"] }
255668
+ { ...refblocks61.left1, labels: ["1"] },
255669
+ { ...refblocks61.right1, labels: ["2"] }
255456
255670
  ],
255457
- size: { width: bounds56.width, height: bounds56.height },
255458
- center: { x: bounds56.centerX, y: bounds56.centerY }
255671
+ size: { width: bounds61.width, height: bounds61.height },
255672
+ center: { x: bounds61.centerX, y: bounds61.centerY }
255459
255673
  });
255460
255674
  ({ 5: letter4, ...rest4 } = tachometer_horz_default.primitives);
255461
255675
  rotatedSymbol20 = rotateSymbol({
@@ -255836,9 +256050,9 @@ var init_dist5 = __esm(() => {
255836
256050
  };
255837
256051
  triac_horz_default = modifySymbol(triac_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).labelPort("bottom1", ["3"]).changeTextAnchor("{REF}", "middle_bottom").build();
255838
256052
  rotatedSymbol21 = rotateSymbol(triac_horz_default);
255839
- texts72 = rotatedSymbol21.primitives.filter((primitive) => primitive.type === "text");
255840
- ref60 = texts72.find((text) => text.text === "{REF}");
255841
- val53 = texts72.find((text) => text.text === "{VAL}");
256053
+ texts77 = rotatedSymbol21.primitives.filter((primitive) => primitive.type === "text");
256054
+ ref60 = texts77.find((text) => text.text === "{REF}");
256055
+ val53 = texts77.find((text) => text.text === "{VAL}");
255842
256056
  ref60.y = 0;
255843
256057
  val53.y = 0;
255844
256058
  triac_vert_default = rotatedSymbol21;
@@ -256001,20 +256215,20 @@ var init_dist5 = __esm(() => {
256001
256215
  },
256002
256216
  circles: {}
256003
256217
  };
256004
- ({ paths: paths58, texts: texts73, bounds: bounds58, refblocks: refblocks58, circles: circles53 } = tunnel_diode_default);
256218
+ ({ paths: paths63, texts: texts78, bounds: bounds63, refblocks: refblocks63, circles: circles58 } = tunnel_diode_default);
256005
256219
  tunnel_diode_horz_default = defineSymbol({
256006
256220
  primitives: [
256007
- ...Object.values(paths58),
256008
- ...Object.values(circles53),
256009
- { ...texts73.top1, anchor: "middle_bottom" },
256010
- { ...texts73.bottom1, anchor: "middle_top" }
256221
+ ...Object.values(paths63),
256222
+ ...Object.values(circles58),
256223
+ { ...texts78.top1, anchor: "middle_bottom" },
256224
+ { ...texts78.bottom1, anchor: "middle_top" }
256011
256225
  ],
256012
256226
  ports: [
256013
- { ...refblocks58.left1, labels: ["1"] },
256014
- { ...refblocks58.right1, labels: ["2"] }
256227
+ { ...refblocks63.left1, labels: ["1"] },
256228
+ { ...refblocks63.right1, labels: ["2"] }
256015
256229
  ],
256016
- size: { width: bounds58.width, height: bounds58.height },
256017
- center: { x: bounds58.centerX, y: bounds58.centerY }
256230
+ size: { width: bounds63.width, height: bounds63.height },
256231
+ center: { x: bounds63.centerX, y: bounds63.centerY }
256018
256232
  });
256019
256233
  rotated40 = rotateSymbol(tunnel_diode_horz_default);
256020
256234
  ref61 = rotated40.primitives.find((p) => p.type === "text" && p.text === "{REF}");
@@ -256187,27 +256401,27 @@ var init_dist5 = __esm(() => {
256187
256401
  }
256188
256402
  }
256189
256403
  };
256190
- ({ paths: paths59, texts: texts74, bounds: bounds59, refblocks: refblocks59, circles: circles54 } = unijunction_transistor_default);
256404
+ ({ paths: paths64, texts: texts79, bounds: bounds64, refblocks: refblocks64, circles: circles59 } = unijunction_transistor_default);
256191
256405
  unijunction_transistor_horz_default = defineSymbol({
256192
256406
  primitives: [
256193
- ...Object.values(paths59),
256194
- ...Object.values(circles54),
256195
- { ...texts74.top1, anchor: "middle_left" },
256196
- { ...texts74.bottom1, anchor: "middle_right" }
256407
+ ...Object.values(paths64),
256408
+ ...Object.values(circles59),
256409
+ { ...texts79.top1, anchor: "middle_left" },
256410
+ { ...texts79.bottom1, anchor: "middle_right" }
256197
256411
  ],
256198
256412
  ports: [
256199
- { ...refblocks59.top1, labels: ["1"] },
256200
- { ...refblocks59.bottom1, labels: ["2"] },
256201
- { ...refblocks59.left1, labels: ["3"] }
256413
+ { ...refblocks64.top1, labels: ["1"] },
256414
+ { ...refblocks64.bottom1, labels: ["2"] },
256415
+ { ...refblocks64.left1, labels: ["3"] }
256202
256416
  ],
256203
- size: { width: bounds59.width, height: bounds59.height },
256204
- center: { x: bounds59.centerX, y: bounds59.centerY }
256417
+ size: { width: bounds64.width, height: bounds64.height },
256418
+ center: { x: bounds64.centerX, y: bounds64.centerY }
256205
256419
  });
256206
256420
  rotatedSymbol22 = rotateSymbol(unijunction_transistor_horz_default);
256207
- texts75 = rotatedSymbol22.primitives.filter((primitive) => primitive.type === "text");
256208
- ref62 = texts75.find((text) => text.text === "{REF}");
256421
+ texts80 = rotatedSymbol22.primitives.filter((primitive) => primitive.type === "text");
256422
+ ref62 = texts80.find((text) => text.text === "{REF}");
256209
256423
  ref62.y = 0.1;
256210
- val55 = texts75.find((text) => text.text === "{VAL}");
256424
+ val55 = texts80.find((text) => text.text === "{VAL}");
256211
256425
  val55.y = 0.1;
256212
256426
  val55.x = -0.4;
256213
256427
  unijunction_transistor_vert_default = rotatedSymbol22;
@@ -256295,31 +256509,31 @@ var init_dist5 = __esm(() => {
256295
256509
  }
256296
256510
  }
256297
256511
  };
256298
- ({ paths: paths60, texts: texts76, bounds: bounds60, refblocks: refblocks60, circles: circles55 } = var_meter_default);
256512
+ ({ paths: paths65, texts: texts81, bounds: bounds65, refblocks: refblocks65, circles: circles60 } = var_meter_default);
256299
256513
  var_meter_horz_default = defineSymbol({
256300
256514
  primitives: [
256301
- ...Object.values(paths60),
256302
- ...Object.values(circles55),
256515
+ ...Object.values(paths65),
256516
+ ...Object.values(circles60),
256303
256517
  {
256304
- ...texts76.top1,
256518
+ ...texts81.top1,
256305
256519
  x: 0,
256306
256520
  y: -0.3594553499999995,
256307
256521
  anchor: "middle_top"
256308
256522
  },
256309
256523
  {
256310
- ...texts76.bottom1,
256524
+ ...texts81.bottom1,
256311
256525
  x: 0,
256312
256526
  y: 0.35,
256313
256527
  anchor: "middle_bottom"
256314
256528
  },
256315
- { ...texts76.left1, x: -0.02, y: 0.01, fontSize: 0.2, anchor: "center" }
256529
+ { ...texts81.left1, x: -0.02, y: 0.01, fontSize: 0.2, anchor: "center" }
256316
256530
  ],
256317
256531
  ports: [
256318
- { ...refblocks60.left1, labels: ["1"] },
256319
- { ...refblocks60.right1, labels: ["2"] }
256532
+ { ...refblocks65.left1, labels: ["1"] },
256533
+ { ...refblocks65.right1, labels: ["2"] }
256320
256534
  ],
256321
- size: { width: bounds60.width, height: bounds60.height },
256322
- center: { x: bounds60.centerX, y: bounds60.centerY }
256535
+ size: { width: bounds65.width, height: bounds65.height },
256536
+ center: { x: bounds65.centerX, y: bounds65.centerY }
256323
256537
  });
256324
256538
  var_meter_vert_default = rotateSymbol(var_meter_horz_default);
256325
256539
  varactor_diode_default = {
@@ -256466,20 +256680,20 @@ var init_dist5 = __esm(() => {
256466
256680
  },
256467
256681
  circles: {}
256468
256682
  };
256469
- ({ paths: paths61, texts: texts77, bounds: bounds61, refblocks: refblocks61, circles: circles56 } = varactor_diode_default);
256683
+ ({ paths: paths66, texts: texts82, bounds: bounds66, refblocks: refblocks66, circles: circles61 } = varactor_diode_default);
256470
256684
  varactor_diode_horz_default = defineSymbol({
256471
256685
  primitives: [
256472
- ...Object.values(paths61),
256473
- ...Object.values(circles56),
256474
- { ...texts77.top1, anchor: "middle_bottom" },
256475
- { ...texts77.bottom1, anchor: "middle_top" }
256686
+ ...Object.values(paths66),
256687
+ ...Object.values(circles61),
256688
+ { ...texts82.top1, anchor: "middle_bottom" },
256689
+ { ...texts82.bottom1, anchor: "middle_top" }
256476
256690
  ],
256477
256691
  ports: [
256478
- { ...refblocks61.left1, labels: ["1"] },
256479
- { ...refblocks61.right1, labels: ["2"] }
256692
+ { ...refblocks66.left1, labels: ["1"] },
256693
+ { ...refblocks66.right1, labels: ["2"] }
256480
256694
  ],
256481
- size: { width: bounds61.width, height: bounds61.height },
256482
- center: { x: bounds61.centerX, y: bounds61.centerY }
256695
+ size: { width: bounds66.width, height: bounds66.height },
256696
+ center: { x: bounds66.centerX, y: bounds66.centerY }
256483
256697
  });
256484
256698
  rotated41 = rotateSymbol(varactor_diode_horz_default);
256485
256699
  ref63 = rotated41.primitives.find((p) => p.type === "text" && p.text === "{REF}");
@@ -256617,25 +256831,25 @@ var init_dist5 = __esm(() => {
256617
256831
  },
256618
256832
  circles: {}
256619
256833
  };
256620
- ({ paths: paths62, texts: texts78, bounds: bounds62, refblocks: refblocks62 } = varistor_default);
256834
+ ({ paths: paths67, texts: texts83, bounds: bounds67, refblocks: refblocks67 } = varistor_default);
256621
256835
  varistor_horz_default = defineSymbol({
256622
256836
  primitives: [
256623
- ...Object.values(paths62),
256624
- { ...texts78.top1, anchor: "middle_left" },
256625
- { ...texts78.bottom1, anchor: "middle_right" }
256837
+ ...Object.values(paths67),
256838
+ { ...texts83.top1, anchor: "middle_left" },
256839
+ { ...texts83.bottom1, anchor: "middle_right" }
256626
256840
  ],
256627
256841
  ports: [
256628
256842
  {
256629
- ...refblocks62.left1,
256843
+ ...refblocks67.left1,
256630
256844
  labels: ["1", "-"]
256631
256845
  },
256632
256846
  {
256633
- ...refblocks62.right1,
256847
+ ...refblocks67.right1,
256634
256848
  labels: ["2", "+"]
256635
256849
  }
256636
256850
  ],
256637
- size: { width: bounds62.width, height: bounds62.height },
256638
- center: { x: bounds62.centerX, y: bounds62.centerY }
256851
+ size: { width: bounds67.width, height: bounds67.height },
256852
+ center: { x: bounds67.centerX, y: bounds67.centerY }
256639
256853
  });
256640
256854
  varistor_vert_default = rotateSymbol(varistor_horz_default);
256641
256855
  varmeter_default = {
@@ -256722,11 +256936,11 @@ var init_dist5 = __esm(() => {
256722
256936
  }
256723
256937
  }
256724
256938
  };
256725
- ({ paths: paths63, texts: texts79, bounds: bounds63, refblocks: refblocks63, circles: circles57 } = varmeter_default);
256939
+ ({ paths: paths68, texts: texts84, bounds: bounds68, refblocks: refblocks68, circles: circles62 } = varmeter_default);
256726
256940
  varmeter_horz_default = defineSymbol({
256727
256941
  primitives: [
256728
- ...Object.values(paths63),
256729
- ...Object.values(circles57),
256942
+ ...Object.values(paths68),
256943
+ ...Object.values(circles62),
256730
256944
  {
256731
256945
  type: "text",
256732
256946
  text: "{REF}",
@@ -256741,14 +256955,14 @@ var init_dist5 = __esm(() => {
256741
256955
  y: 0.35,
256742
256956
  anchor: "middle_bottom"
256743
256957
  },
256744
- { ...texts79.left1, anchor: "center", y: 0.02, fontSize: 0.2 }
256958
+ { ...texts84.left1, anchor: "center", y: 0.02, fontSize: 0.2 }
256745
256959
  ],
256746
256960
  ports: [
256747
- { ...refblocks63.left1, labels: ["1"] },
256748
- { ...refblocks63.right1, labels: ["2"] }
256961
+ { ...refblocks68.left1, labels: ["1"] },
256962
+ { ...refblocks68.right1, labels: ["2"] }
256749
256963
  ],
256750
- size: { width: bounds63.width, height: bounds63.height },
256751
- center: { x: bounds63.centerX, y: bounds63.centerY }
256964
+ size: { width: bounds68.width, height: bounds68.height },
256965
+ center: { x: bounds68.centerX, y: bounds68.centerY }
256752
256966
  });
256753
256967
  ({ 5: letter5, ...rest5 } = varmeter_horz_default.primitives);
256754
256968
  rotatedSymbol23 = rotateSymbol({
@@ -257020,11 +257234,11 @@ var init_dist5 = __esm(() => {
257020
257234
  }
257021
257235
  }
257022
257236
  };
257023
- ({ paths: paths65, texts: texts81, bounds: bounds65, refblocks: refblocks65, circles: circles59 } = watt_hour_meter_default);
257237
+ ({ paths: paths70, texts: texts86, bounds: bounds70, refblocks: refblocks70, circles: circles64 } = watt_hour_meter_default);
257024
257238
  watt_hour_meter_horz_default = defineSymbol({
257025
257239
  primitives: [
257026
- ...Object.values(paths65),
257027
- ...Object.values(circles59),
257240
+ ...Object.values(paths70),
257241
+ ...Object.values(circles64),
257028
257242
  {
257029
257243
  type: "text",
257030
257244
  text: "{REF}",
@@ -257039,14 +257253,14 @@ var init_dist5 = __esm(() => {
257039
257253
  y: 0.35,
257040
257254
  anchor: "middle_bottom"
257041
257255
  },
257042
- { ...texts81.left1, anchor: "center", y: 0.01, fontSize: 0.2 }
257256
+ { ...texts86.left1, anchor: "center", y: 0.01, fontSize: 0.2 }
257043
257257
  ],
257044
257258
  ports: [
257045
- { ...refblocks65.left1, labels: ["1"] },
257046
- { ...refblocks65.right1, labels: ["2"] }
257259
+ { ...refblocks70.left1, labels: ["1"] },
257260
+ { ...refblocks70.right1, labels: ["2"] }
257047
257261
  ],
257048
- size: { width: bounds65.width, height: bounds65.height },
257049
- center: { x: bounds65.centerX, y: bounds65.centerY }
257262
+ size: { width: bounds70.width, height: bounds70.height },
257263
+ center: { x: bounds70.centerX, y: bounds70.centerY }
257050
257264
  });
257051
257265
  ({ 5: letter6, ...rest6 } = watt_hour_meter_horz_default.primitives);
257052
257266
  rotatedSymbol24 = rotateSymbol({
@@ -257141,11 +257355,11 @@ var init_dist5 = __esm(() => {
257141
257355
  }
257142
257356
  }
257143
257357
  };
257144
- ({ paths: paths66, texts: texts82, bounds: bounds66, refblocks: refblocks66, circles: circles60 } = wattmeter_default);
257358
+ ({ paths: paths71, texts: texts87, bounds: bounds71, refblocks: refblocks71, circles: circles65 } = wattmeter_default);
257145
257359
  wattmeter_horz_default = defineSymbol({
257146
257360
  primitives: [
257147
- ...Object.values(paths66),
257148
- ...Object.values(circles60),
257361
+ ...Object.values(paths71),
257362
+ ...Object.values(circles65),
257149
257363
  {
257150
257364
  type: "text",
257151
257365
  text: "{REF}",
@@ -257160,14 +257374,14 @@ var init_dist5 = __esm(() => {
257160
257374
  y: 0.35,
257161
257375
  anchor: "middle_bottom"
257162
257376
  },
257163
- { ...texts82.left1, anchor: "center", y: 0.01, fontSize: 0.3 }
257377
+ { ...texts87.left1, anchor: "center", y: 0.01, fontSize: 0.3 }
257164
257378
  ],
257165
257379
  ports: [
257166
- { ...refblocks66.left1, labels: ["1"] },
257167
- { ...refblocks66.right1, labels: ["2"] }
257380
+ { ...refblocks71.left1, labels: ["1"] },
257381
+ { ...refblocks71.right1, labels: ["2"] }
257168
257382
  ],
257169
- size: { width: bounds66.width, height: bounds66.height },
257170
- center: { x: bounds66.centerX, y: bounds66.centerY }
257383
+ size: { width: bounds71.width, height: bounds71.height },
257384
+ center: { x: bounds71.centerX, y: bounds71.centerY }
257171
257385
  });
257172
257386
  ({ 5: letter7, ...rest7 } = wattmeter_horz_default.primitives);
257173
257387
  rotatedSymbol25 = rotateSymbol({
@@ -257322,20 +257536,20 @@ var init_dist5 = __esm(() => {
257322
257536
  },
257323
257537
  circles: {}
257324
257538
  };
257325
- ({ paths: paths67, texts: texts83, bounds: bounds67, refblocks: refblocks67, circles: circles61 } = zener_diode_default);
257539
+ ({ paths: paths72, texts: texts88, bounds: bounds72, refblocks: refblocks72, circles: circles66 } = zener_diode_default);
257326
257540
  zener_diode_horz_default = defineSymbol({
257327
257541
  primitives: [
257328
- ...Object.values(paths67),
257329
- ...Object.values(circles61),
257330
- { ...texts83.top1, anchor: "middle_bottom" },
257331
- { ...texts83.bottom1, anchor: "middle_top" }
257542
+ ...Object.values(paths72),
257543
+ ...Object.values(circles66),
257544
+ { ...texts88.top1, anchor: "middle_bottom" },
257545
+ { ...texts88.bottom1, anchor: "middle_top" }
257332
257546
  ],
257333
257547
  ports: [
257334
- { ...refblocks67.left1, labels: ["1"] },
257335
- { ...refblocks67.right1, labels: ["2"] }
257548
+ { ...refblocks72.left1, labels: ["1"] },
257549
+ { ...refblocks72.right1, labels: ["2"] }
257336
257550
  ],
257337
- size: { width: bounds67.width, height: bounds67.height },
257338
- center: { x: bounds67.centerX, y: bounds67.centerY }
257551
+ size: { width: bounds72.width, height: bounds72.height },
257552
+ center: { x: bounds72.centerX, y: bounds72.centerY }
257339
257553
  });
257340
257554
  rotated42 = rotateSymbol(zener_diode_horz_default);
257341
257555
  ref64 = rotated42.primitives.find((p) => p.type === "text" && p.text === "{REF}");
@@ -257362,6 +257576,10 @@ var init_dist5 = __esm(() => {
257362
257576
  boxresistor_small_right: boxresistor_small_right_default,
257363
257577
  boxresistor_small_up: boxresistor_small_up_default,
257364
257578
  boxresistor_up: boxresistor_up_default,
257579
+ bridged_ground_down: bridged_ground_down_default,
257580
+ bridged_ground_left: bridged_ground_left_default,
257581
+ bridged_ground_right: bridged_ground_right_default,
257582
+ bridged_ground_up: bridged_ground_up_default,
257365
257583
  capacitor_down: capacitor_down_default,
257366
257584
  capacitor_left: capacitor_left_default,
257367
257585
  capacitor_polarized_down: capacitor_polarized_down_default,
@@ -257374,8 +257592,10 @@ var init_dist5 = __esm(() => {
257374
257592
  constant_current_diode_vert: constant_current_diode_vert_default,
257375
257593
  crystal_4pin_horz: crystal_4pin_horz_default,
257376
257594
  crystal_4pin_vert: crystal_4pin_vert_default,
257377
- crystal_horz: crystal_horz_default,
257378
- crystal_vert: crystal_vert_default,
257595
+ crystal_down: crystal_down_default,
257596
+ crystal_left: crystal_left_default,
257597
+ crystal_right: crystal_right_default,
257598
+ crystal_up: crystal_up_default,
257379
257599
  darlington_pair_transistor_horz: darlington_pair_transistor_horz_default,
257380
257600
  darlington_pair_transistor_vert: darlington_pair_transistor_vert_default,
257381
257601
  dc_ammeter_horz: dc_ammeter_horz_default,
@@ -337963,7 +338183,7 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
337963
338183
  return [k, o[k]];
337964
338184
  });
337965
338185
  })(locals);_i2 < _Object$entries.length; _i2++) {
337966
- var _Object$entries$_i = _slicedToArray(_Object$entries[_i2], 2), _name = _Object$entries$_i[0], paths30 = _Object$entries$_i[1];
338186
+ var _Object$entries$_i = _slicedToArray(_Object$entries[_i2], 2), _name = _Object$entries$_i[0], paths35 = _Object$entries$_i[1];
337967
338187
  var newName = _name;
337968
338188
  if (bindingName && _name === exportName) {
337969
338189
  newName = bindingName;
@@ -337972,7 +338192,7 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
337972
338192
  newName = "_" + newName;
337973
338193
  }
337974
338194
  if (newName !== _name) {
337975
- for (var _iterator2 = _createForOfIteratorHelperLoose(paths30), _step2;!(_step2 = _iterator2()).done; ) {
338195
+ for (var _iterator2 = _createForOfIteratorHelperLoose(paths35), _step2;!(_step2 = _iterator2()).done; ) {
337976
338196
  var path22 = _step2.value;
337977
338197
  deep(ast, path22, identifier$b(newName));
337978
338198
  }
@@ -340673,10 +340893,10 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
340673
340893
  var parents = pathsCache.get((_hub2 = hub) != null ? _hub2 : nullHub);
340674
340894
  if (!parents)
340675
340895
  pathsCache.set((_hub3 = hub) != null ? _hub3 : nullHub, parents = new WeakMap);
340676
- var paths30 = parents.get(parent);
340677
- if (!paths30)
340678
- parents.set(parent, paths30 = new Map);
340679
- return paths30;
340896
+ var paths35 = parents.get(parent);
340897
+ if (!paths35)
340898
+ parents.set(parent, paths35 = new Map);
340899
+ return paths35;
340680
340900
  }
340681
340901
  var cache$1 = /* @__PURE__ */ Object.freeze({
340682
340902
  __proto__: null,
@@ -349698,8 +349918,8 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
349698
349918
  }
349699
349919
  return path22;
349700
349920
  }
349701
- function getEarliestCommonAncestorFrom(paths30) {
349702
- return this.getDeepestCommonAncestorFrom(paths30, function(deepest, i, ancestries) {
349921
+ function getEarliestCommonAncestorFrom(paths35) {
349922
+ return this.getDeepestCommonAncestorFrom(paths35, function(deepest, i, ancestries) {
349703
349923
  var earliest;
349704
349924
  var keys2 = VISITOR_KEYS$4[deepest.type];
349705
349925
  for (var _iterator2 = _createForOfIteratorHelperLoose(ancestries), _step2;!(_step2 = _iterator2()).done; ) {
@@ -349724,17 +349944,17 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
349724
349944
  return earliest;
349725
349945
  });
349726
349946
  }
349727
- function getDeepestCommonAncestorFrom(paths30, filter3) {
349947
+ function getDeepestCommonAncestorFrom(paths35, filter3) {
349728
349948
  var _this = this;
349729
- if (!paths30.length) {
349949
+ if (!paths35.length) {
349730
349950
  return this;
349731
349951
  }
349732
- if (paths30.length === 1) {
349733
- return paths30[0];
349952
+ if (paths35.length === 1) {
349953
+ return paths35[0];
349734
349954
  }
349735
349955
  var minDepth = Infinity;
349736
349956
  var lastCommonIndex, lastCommon;
349737
- var ancestries = paths30.map(function(path22) {
349957
+ var ancestries = paths35.map(function(path22) {
349738
349958
  var ancestry2 = [];
349739
349959
  do {
349740
349960
  ancestry2.unshift(path22);
@@ -349769,11 +349989,11 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
349769
349989
  }
349770
349990
  function getAncestry() {
349771
349991
  var path22 = this;
349772
- var paths30 = [];
349992
+ var paths35 = [];
349773
349993
  do {
349774
- paths30.push(path22);
349994
+ paths35.push(path22);
349775
349995
  } while (path22 = path22.parentPath);
349776
- return paths30;
349996
+ return paths35;
349777
349997
  }
349778
349998
  function isAncestor(maybeDescendant) {
349779
349999
  return maybeDescendant.isDescendant(this);
@@ -349945,14 +350165,14 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
349945
350165
  if (!ifStatement2)
349946
350166
  return;
349947
350167
  var test = ifStatement2.get("test");
349948
- var paths30 = [test];
350168
+ var paths35 = [test];
349949
350169
  var types3 = [];
349950
- for (var i = 0;i < paths30.length; i++) {
349951
- var _path = paths30[i];
350170
+ for (var i = 0;i < paths35.length; i++) {
350171
+ var _path = paths35[i];
349952
350172
  if (_path.isLogicalExpression()) {
349953
350173
  if (_path.node.operator === "&&") {
349954
- paths30.push(_path.get("left"));
349955
- paths30.push(_path.get("right"));
350174
+ paths35.push(_path.get("left"));
350175
+ paths35.push(_path.get("right"));
349956
350176
  }
349957
350177
  } else if (_path.isBinaryExpression()) {
349958
350178
  var type2 = inferAnnotationFromBinaryExpression(name2, _path);
@@ -350541,19 +350761,19 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
350541
350761
  function _containerInsert(from2, nodes2) {
350542
350762
  var _this$container;
350543
350763
  updateSiblingKeys.call(this, from2, nodes2.length);
350544
- var paths30 = [];
350764
+ var paths35 = [];
350545
350765
  (_this$container = this.container).splice.apply(_this$container, [from2, 0].concat(_toConsumableArray(nodes2)));
350546
350766
  for (var i = 0;i < nodes2.length; i++) {
350547
350767
  var _this$context;
350548
350768
  var to = from2 + i;
350549
350769
  var path22 = this.getSibling(to);
350550
- paths30.push(path22);
350770
+ paths35.push(path22);
350551
350771
  if ((_this$context = this.context) != null && _this$context.queue) {
350552
350772
  pushContext.call(path22, this.context);
350553
350773
  }
350554
350774
  }
350555
350775
  var contexts = _getQueueContexts.call(this);
350556
- for (var _i2 = 0, _paths = paths30;_i2 < _paths.length; _i2++) {
350776
+ for (var _i2 = 0, _paths = paths35;_i2 < _paths.length; _i2++) {
350557
350777
  var _path = _paths[_i2];
350558
350778
  setScope.call(_path);
350559
350779
  _path.debug("Inserted.");
@@ -350562,7 +350782,7 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
350562
350782
  context.maybeQueue(_path, true);
350563
350783
  }
350564
350784
  }
350565
- return paths30;
350785
+ return paths35;
350566
350786
  }
350567
350787
  function _containerInsertBefore(nodes2) {
350568
350788
  return _containerInsert.call(this, this.key, nodes2);
@@ -350642,8 +350862,8 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
350642
350862
  function updateSiblingKeys(fromIndex, incrementBy) {
350643
350863
  if (!this.parent)
350644
350864
  return;
350645
- var paths30 = getCachedPaths(this.hub, this.parent) || [];
350646
- for (var _iterator2 = _createForOfIteratorHelperLoose(paths30), _step2;!(_step2 = _iterator2()).done; ) {
350865
+ var paths35 = getCachedPaths(this.hub, this.parent) || [];
350866
+ for (var _iterator2 = _createForOfIteratorHelperLoose(paths35), _step2;!(_step2 = _iterator2()).done; ) {
350647
350867
  var _step2$value = _slicedToArray(_step2.value, 2), path22 = _step2$value[1];
350648
350868
  if (typeof path22.key === "number" && path22.container === this.container && path22.key >= fromIndex) {
350649
350869
  path22.key += incrementBy;
@@ -350731,13 +350951,13 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
350731
350951
  inheritTrailingComments(nodes2[nodes2.length - 1], this.node);
350732
350952
  (_getCachedPaths = getCachedPaths(this.hub, this.parent)) == null || _getCachedPaths["delete"](this.node);
350733
350953
  this.node = this.container[this.key] = null;
350734
- var paths30 = this.insertAfter(nodes2);
350954
+ var paths35 = this.insertAfter(nodes2);
350735
350955
  if (this.node) {
350736
350956
  this.requeue();
350737
350957
  } else {
350738
350958
  this.remove();
350739
350959
  }
350740
- return paths30;
350960
+ return paths35;
350741
350961
  }
350742
350962
  function replaceWithSourceString(replacement) {
350743
350963
  resync.call(this);
@@ -350943,9 +351163,9 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
350943
351163
  if (Array.isArray(nodes2)) {
350944
351164
  if (Array.isArray(this.container)) {
350945
351165
  nodes2 = _verifyNodeList.call(this, nodes2);
350946
- var paths30 = _containerInsertAfter.call(this, nodes2);
351166
+ var paths35 = _containerInsertAfter.call(this, nodes2);
350947
351167
  this.remove();
350948
- return paths30;
351168
+ return paths35;
350949
351169
  } else {
350950
351170
  return this.replaceWithMultiple(nodes2);
350951
351171
  }
@@ -352027,9 +352247,9 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
352027
352247
  return false;
352028
352248
  }
352029
352249
  }
352030
- function isExecutionUncertainInList(paths30, maxIndex) {
352250
+ function isExecutionUncertainInList(paths35, maxIndex) {
352031
352251
  for (var i = 0;i < maxIndex; i++) {
352032
- var path22 = paths30[i];
352252
+ var path22 = paths35[i];
352033
352253
  if (isExecutionUncertain(path22.parent.type, path22.parentKey)) {
352034
352254
  return true;
352035
352255
  }
@@ -352048,22 +352268,22 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
352048
352268
  if (funcParent.target.node !== funcParent["this"].node) {
352049
352269
  return _guessExecutionStatusRelativeToDifferentFunctionsCached(base, funcParent.target, cache2);
352050
352270
  }
352051
- var paths30 = {
352271
+ var paths35 = {
352052
352272
  target: target.getAncestry(),
352053
352273
  this: base.getAncestry()
352054
352274
  };
352055
- if (paths30.target.includes(base))
352275
+ if (paths35.target.includes(base))
352056
352276
  return "after";
352057
- if (paths30["this"].includes(target))
352277
+ if (paths35["this"].includes(target))
352058
352278
  return "before";
352059
352279
  var commonPath;
352060
352280
  var commonIndex = {
352061
352281
  target: 0,
352062
352282
  this: 0
352063
352283
  };
352064
- while (!commonPath && commonIndex["this"] < paths30["this"].length) {
352065
- var path22 = paths30["this"][commonIndex["this"]];
352066
- commonIndex.target = paths30.target.indexOf(path22);
352284
+ while (!commonPath && commonIndex["this"] < paths35["this"].length) {
352285
+ var path22 = paths35["this"][commonIndex["this"]];
352286
+ commonIndex.target = paths35.target.indexOf(path22);
352067
352287
  if (commonIndex.target >= 0) {
352068
352288
  commonPath = path22;
352069
352289
  } else {
@@ -352073,12 +352293,12 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
352073
352293
  if (!commonPath) {
352074
352294
  throw new Error("Internal Babel error - The two compared nodes" + " don't appear to belong to the same program.");
352075
352295
  }
352076
- if (isExecutionUncertainInList(paths30["this"], commonIndex["this"] - 1) || isExecutionUncertainInList(paths30.target, commonIndex.target - 1)) {
352296
+ if (isExecutionUncertainInList(paths35["this"], commonIndex["this"] - 1) || isExecutionUncertainInList(paths35.target, commonIndex.target - 1)) {
352077
352297
  return "unknown";
352078
352298
  }
352079
352299
  var divergence = {
352080
- this: paths30["this"][commonIndex["this"] - 1],
352081
- target: paths30.target[commonIndex.target - 1]
352300
+ this: paths35["this"][commonIndex["this"] - 1],
352301
+ target: paths35.target[commonIndex.target - 1]
352082
352302
  };
352083
352303
  if (divergence.target.listKey && divergence["this"].listKey && divergence.target.container === divergence["this"].container) {
352084
352304
  return divergence.target.key > divergence["this"].key ? "before" : "after";
@@ -352360,12 +352580,12 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
352360
352580
  }
352361
352581
  });
352362
352582
  }
352363
- function getStatementListCompletion(paths30, context) {
352583
+ function getStatementListCompletion(paths35, context) {
352364
352584
  var completions = [];
352365
352585
  if (context.canHaveBreak) {
352366
352586
  var lastNormalCompletions = [];
352367
- for (var i = 0;i < paths30.length; i++) {
352368
- var path22 = paths30[i];
352587
+ for (var i = 0;i < paths35.length; i++) {
352588
+ var path22 = paths35[i];
352369
352589
  var newContext = Object.assign({}, context, {
352370
352590
  inCaseClause: false
352371
352591
  });
@@ -352400,7 +352620,7 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
352400
352620
  }
352401
352621
  break;
352402
352622
  }
352403
- if (i === paths30.length - 1) {
352623
+ if (i === paths35.length - 1) {
352404
352624
  completions.push.apply(completions, statementCompletions);
352405
352625
  } else {
352406
352626
  lastNormalCompletions = [];
@@ -352415,9 +352635,9 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
352415
352635
  }
352416
352636
  }
352417
352637
  }
352418
- } else if (paths30.length) {
352419
- for (var _i3 = paths30.length - 1;_i3 >= 0; _i3--) {
352420
- var pathCompletions = _getCompletionRecords(paths30[_i3], context);
352638
+ } else if (paths35.length) {
352639
+ for (var _i3 = paths35.length - 1;_i3 >= 0; _i3--) {
352640
+ var pathCompletions = _getCompletionRecords(paths35[_i3], context);
352421
352641
  if (pathCompletions.length > 1 || pathCompletions.length === 1 && !pathCompletions[0].path.isVariableDeclaration()) {
352422
352642
  completions.push.apply(completions, pathCompletions);
352423
352643
  break;
@@ -352702,12 +352922,12 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
352702
352922
  throw new Error("To get a node path the parent needs to exist");
352703
352923
  }
352704
352924
  var targetNode = container[key];
352705
- var paths30 = getOrCreateCachedPaths(hub, parent);
352706
- var path22 = paths30.get(targetNode);
352925
+ var paths35 = getOrCreateCachedPaths(hub, parent);
352926
+ var path22 = paths35.get(targetNode);
352707
352927
  if (!path22) {
352708
352928
  path22 = new NodePath(hub, parent);
352709
352929
  if (targetNode)
352710
- paths30.set(targetNode, path22);
352930
+ paths35.set(targetNode, path22);
352711
352931
  }
352712
352932
  setup.call(path22, parentPath, container, listKey, key);
352713
352933
  return path22;
@@ -356307,8 +356527,8 @@ Expected ` + (val58.length + 1) + " quasis but got " + node2.quasis.length);
356307
356527
  return path22.charAt(0) === "/";
356308
356528
  }
356309
356529
  function join12() {
356310
- var paths30 = Array.prototype.slice.call(arguments, 0);
356311
- return normalize$2(filter2(paths30, function(p, index2) {
356530
+ var paths35 = Array.prototype.slice.call(arguments, 0);
356531
+ return normalize$2(filter2(paths35, function(p, index2) {
356312
356532
  if (typeof p !== "string") {
356313
356533
  throw new TypeError("Arguments to path.join must be strings");
356314
356534
  }
@@ -386727,8 +386947,8 @@ bundler handle dynamic imports.
386727
386947
  });
386728
386948
  var _transformBlockScopedFunctions = declare(function(api) {
386729
386949
  api.assertVersion("*");
386730
- function transformStatementList2(parentPath, paths30) {
386731
- for (var _iterator2 = _createForOfIteratorHelperLoose(paths30), _step2;!(_step2 = _iterator2()).done; ) {
386950
+ function transformStatementList2(parentPath, paths35) {
386951
+ for (var _iterator2 = _createForOfIteratorHelperLoose(paths35), _step2;!(_step2 = _iterator2()).done; ) {
386732
386952
  var path22 = _step2.value;
386733
386953
  if (!path22.isFunctionDeclaration())
386734
386954
  continue;
@@ -387216,9 +387436,9 @@ bundler handle dynamic imports.
387216
387436
  transformStatementList(path22.get("consequent"));
387217
387437
  }
387218
387438
  });
387219
- function transformStatementList(paths30) {
387439
+ function transformStatementList(paths35) {
387220
387440
  outer:
387221
- for (var _iterator2 = _createForOfIteratorHelperLoose(paths30), _step2;!(_step2 = _iterator2()).done; ) {
387441
+ for (var _iterator2 = _createForOfIteratorHelperLoose(paths35), _step2;!(_step2 = _iterator2()).done; ) {
387222
387442
  var path22 = _step2.value;
387223
387443
  if (!path22.isFunctionDeclaration())
387224
387444
  continue;
@@ -389488,9 +389708,9 @@ bundler handle dynamic imports.
389488
389708
  throw _decl.buildCodeFrameError("JSON modules do not support phase modifiers.");
389489
389709
  }
389490
389710
  if (attributes2.length > 1) {
389491
- var paths30 = _decl.node.attributes ? _decl.get("attributes") : _decl.get("assertions");
389711
+ var paths35 = _decl.node.attributes ? _decl.get("attributes") : _decl.get("assertions");
389492
389712
  var index2 = getAttributeKey(attributes2[0]) === "type" ? 1 : 0;
389493
- throw paths30[index2].buildCodeFrameError("Unknown attribute for JSON modules.");
389713
+ throw paths35[index2].buildCodeFrameError("Unknown attribute for JSON modules.");
389494
389714
  }
389495
389715
  var id = undefined;
389496
389716
  var needsNS = false;
@@ -429527,13 +429747,13 @@ Using targets: ` + (0, _debugUtils.stringifyTargetsMultiline)(targets));
429527
429747
  if (expr.quasis.length === 1) {
429528
429748
  return expr.quasis[0].value.cooked;
429529
429749
  }
429530
- var paths30 = path23.get("expressions");
429750
+ var paths35 = path23.get("expressions");
429531
429751
  var quasis = expr.quasis;
429532
429752
  var str = "";
429533
429753
  for (var i = 0;i < quasis.length; i++) {
429534
429754
  str += quasis[i].value.cooked;
429535
429755
  if (i + 1 < quasis.length) {
429536
- var value2 = evaluateRef(paths30[i], prevMembers, seen);
429756
+ var value2 = evaluateRef(paths35[i], prevMembers, seen);
429537
429757
  if (value2 === undefined)
429538
429758
  return;
429539
429759
  str += value2;
@@ -442424,7 +442644,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
442424
442644
  import { execSync as execSync2 } from "node:child_process";
442425
442645
  var import_semver2 = __toESM2(require_semver2(), 1);
442426
442646
  // package.json
442427
- var version = "0.1.147";
442647
+ var version = "0.1.149";
442428
442648
  var package_default = {
442429
442649
  name: "@tscircuit/cli",
442430
442650
  version,
@@ -442433,7 +442653,7 @@ var package_default = {
442433
442653
  "@babel/standalone": "^7.26.9",
442434
442654
  "@biomejs/biome": "^1.9.4",
442435
442655
  "@tscircuit/circuit-json-util": "^0.0.47",
442436
- "@tscircuit/eval": "^0.0.238",
442656
+ "@tscircuit/eval": "^0.0.240",
442437
442657
  "@tscircuit/fake-snippets": "^0.0.87",
442438
442658
  "@tscircuit/file-server": "^0.0.24",
442439
442659
  "@tscircuit/math-utils": "^0.0.18",
@@ -442473,7 +442693,7 @@ var package_default = {
442473
442693
  redaxios: "^0.5.1",
442474
442694
  semver: "^7.6.3",
442475
442695
  tempy: "^3.1.0",
442476
- tscircuit: "^0.0.505",
442696
+ tscircuit: "^0.0.510",
442477
442697
  "typed-ky": "^0.0.4"
442478
442698
  },
442479
442699
  peerDependencies: {
@@ -487144,7 +487364,7 @@ var parseRefKey = (refKey) => {
487144
487364
  var getCircuitLayoutJson = (circuitBuilder) => {
487145
487365
  const boxes3 = [];
487146
487366
  const netLabels3 = [];
487147
- const paths39 = [];
487367
+ const paths35 = [];
487148
487368
  const junctions3 = [];
487149
487369
  for (const chip of circuitBuilder.chips) {
487150
487370
  if (!chip.pinPositionsAreSet) {
@@ -487207,7 +487427,7 @@ var getCircuitLayoutJson = (circuitBuilder) => {
487207
487427
  if (getRefKey(lines[0].start.ref) === toStr) {
487208
487428
  [fromStr, toStr] = [toStr, fromStr];
487209
487429
  }
487210
- paths39.push({
487430
+ paths35.push({
487211
487431
  points: lines.flatMap((l) => [
487212
487432
  {
487213
487433
  x: l.start.x,
@@ -487232,7 +487452,7 @@ var getCircuitLayoutJson = (circuitBuilder) => {
487232
487452
  return {
487233
487453
  boxes: boxes3,
487234
487454
  netLabels: netLabels3,
487235
- paths: paths39,
487455
+ paths: paths35,
487236
487456
  junctions: junctions3
487237
487457
  };
487238
487458
  };
@@ -491537,6 +491757,9 @@ var preprocessSelector = (selector) => {
491537
491757
  if (/net\.[^\s>]*\./.test(selector)) {
491538
491758
  throw new Error('Net names cannot contain a period, try using "sel.net..." to autocomplete with conventional net names, e.g. V3_3');
491539
491759
  }
491760
+ if (/net\.[^\s>]*[+-]/.test(selector)) {
491761
+ throw new Error('Net names cannot contain "+" or "-", try using underscores instead, e.g. VCC_P');
491762
+ }
491540
491763
  if (/net\.[0-9]/.test(selector)) {
491541
491764
  const match = selector.match(/net\.([^ >]+)/);
491542
491765
  const netName = match ? match[1] : "";
@@ -492330,7 +492553,7 @@ function pairs2(arr) {
492330
492553
  return result;
492331
492554
  }
492332
492555
  var netProps2 = exports_external.object({
492333
- name: exports_external.string()
492556
+ name: exports_external.string().refine((val58) => !/[+-]/.test(val58), 'Net names cannot contain "+" or "-", try using underscores instead, e.g. VCC_P')
492334
492557
  });
492335
492558
  var Net = class extends PrimitiveComponent2 {
492336
492559
  source_net_id;
@@ -492472,6 +492695,9 @@ var createNetsFromProps = (component, props) => {
492472
492695
  if (/net\.[^\s>]*\./.test(prop)) {
492473
492696
  throw new Error('Net names cannot contain a period, try using "sel.net..." to autocomplete with conventional net names, e.g. V3_3');
492474
492697
  }
492698
+ if (/net\.[^\s>]*[+-]/.test(prop)) {
492699
+ throw new Error('Net names cannot contain "+" or "-", try using underscores instead, e.g. VCC_P');
492700
+ }
492475
492701
  if (/net\.[0-9]/.test(prop)) {
492476
492702
  const netName = prop.split("net.")[1];
492477
492703
  throw new Error(`Net name "${netName}" cannot start with a number, try using a prefix like "VBUS1"`);
@@ -494903,6 +495129,68 @@ function generateApproximatingRects2(rotatedRect, numRects = 4) {
494903
495129
  }
494904
495130
  return rects;
494905
495131
  }
495132
+ function fillPolygonWithRects(polygon, options = {}) {
495133
+ if (polygon.length < 3)
495134
+ return [];
495135
+ const { rectHeight = 0.1 } = options;
495136
+ const rects = [];
495137
+ const yCoords = polygon.map((p) => p.y);
495138
+ const minY = Math.min(...yCoords);
495139
+ const maxY = Math.max(...yCoords);
495140
+ for (let y = minY;y < maxY; y += rectHeight) {
495141
+ const scanlineY = y + rectHeight / 2;
495142
+ const intersections = [];
495143
+ for (let i = 0;i < polygon.length; i++) {
495144
+ const p1 = polygon[i];
495145
+ const p2 = polygon[(i + 1) % polygon.length];
495146
+ if (p1.y <= scanlineY && p2.y > scanlineY || p2.y <= scanlineY && p1.y > scanlineY) {
495147
+ const x = (scanlineY - p1.y) * (p2.x - p1.x) / (p2.y - p1.y) + p1.x;
495148
+ intersections.push(x);
495149
+ }
495150
+ }
495151
+ intersections.sort((a, b) => a - b);
495152
+ for (let i = 0;i < intersections.length; i += 2) {
495153
+ if (i + 1 < intersections.length) {
495154
+ const x1 = intersections[i];
495155
+ const x2 = intersections[i + 1];
495156
+ const width = x2 - x1;
495157
+ if (width > 0.000001) {
495158
+ rects.push({
495159
+ center: {
495160
+ x: x1 + width / 2,
495161
+ y: scanlineY
495162
+ },
495163
+ width,
495164
+ height: rectHeight
495165
+ });
495166
+ }
495167
+ }
495168
+ }
495169
+ }
495170
+ return rects;
495171
+ }
495172
+ function fillCircleWithRects(circle, options = {}) {
495173
+ const { center, radius } = circle;
495174
+ const { rectHeight = 0.1 } = options;
495175
+ const rects = [];
495176
+ const numSlices = Math.ceil(radius * 2 / rectHeight);
495177
+ for (let i = 0;i < numSlices; i++) {
495178
+ const y = center.y - radius + (i + 0.5) * rectHeight;
495179
+ const dy = y - center.y;
495180
+ const halfWidth = Math.sqrt(radius * radius - dy * dy);
495181
+ if (halfWidth > 0) {
495182
+ rects.push({
495183
+ center: {
495184
+ x: center.x,
495185
+ y
495186
+ },
495187
+ width: halfWidth * 2,
495188
+ height: rectHeight
495189
+ });
495190
+ }
495191
+ }
495192
+ return rects;
495193
+ }
494906
495194
  var EVERY_LAYER2 = ["top", "inner1", "inner2", "bottom"];
494907
495195
  var getObstaclesFromCircuitJson2 = (soup, connMap) => {
494908
495196
  const withNetId = (idList) => connMap ? idList.concat(idList.map((id) => connMap?.getNetConnectedToId(id)).filter(Boolean)) : idList;
@@ -494978,6 +495266,49 @@ var getObstaclesFromCircuitJson2 = (soup, connMap) => {
494978
495266
  connectedTo: []
494979
495267
  });
494980
495268
  }
495269
+ } else if (element.type === "pcb_cutout") {
495270
+ if (element.shape === "rect") {
495271
+ obstacles.push({
495272
+ type: "rect",
495273
+ layers: EVERY_LAYER2,
495274
+ center: {
495275
+ x: element.center.x,
495276
+ y: element.center.y
495277
+ },
495278
+ width: element.width,
495279
+ height: element.height,
495280
+ connectedTo: []
495281
+ });
495282
+ } else if (element.shape === "circle") {
495283
+ const approximatingRects = fillCircleWithRects({
495284
+ center: element.center,
495285
+ radius: element.radius
495286
+ }, { rectHeight: 0.6 });
495287
+ for (const rect of approximatingRects) {
495288
+ obstacles.push({
495289
+ type: "rect",
495290
+ layers: EVERY_LAYER2,
495291
+ center: rect.center,
495292
+ width: rect.width,
495293
+ height: rect.height,
495294
+ connectedTo: []
495295
+ });
495296
+ }
495297
+ } else if (element.shape === "polygon") {
495298
+ const approximatingRects = fillPolygonWithRects(element.points, {
495299
+ rectHeight: 0.6
495300
+ });
495301
+ for (const rect of approximatingRects) {
495302
+ obstacles.push({
495303
+ type: "rect",
495304
+ layers: EVERY_LAYER2,
495305
+ center: rect.center,
495306
+ width: rect.width,
495307
+ height: rect.height,
495308
+ connectedTo: []
495309
+ });
495310
+ }
495311
+ }
494981
495312
  } else if (element.type === "pcb_hole") {
494982
495313
  if (element.hole_shape === "oval") {
494983
495314
  obstacles.push({
@@ -497328,13 +497659,13 @@ function Group_doInitialSchematicLayoutMatchAdapt(group) {
497328
497659
  });
497329
497660
  return;
497330
497661
  }
497331
- const { boxes: boxes3, junctions: junctions3, netLabels: netLabels3, paths: paths30 } = solvedLayout;
497662
+ const { boxes: boxes3, junctions: junctions3, netLabels: netLabels3, paths: paths35 } = solvedLayout;
497332
497663
  const layoutConnMap = new ConnectivityMap({});
497333
- for (const path21 of paths30) {
497664
+ for (const path21 of paths35) {
497334
497665
  layoutConnMap.addConnections([[getRefKey(path21.from), getRefKey(path21.to)]]);
497335
497666
  }
497336
497667
  for (const junction of junctions3) {
497337
- for (const path21 of paths30) {
497668
+ for (const path21 of paths35) {
497338
497669
  for (const pathPoint of path21.points) {
497339
497670
  if (Math.abs(pathPoint.x - junction.x) < 0.001 && Math.abs(pathPoint.y - junction.y) < 0.001) {
497340
497671
  layoutConnMap.addConnections([
@@ -497397,7 +497728,7 @@ function Group_doInitialSchematicLayoutMatchAdapt(group) {
497397
497728
  anchor_side: nl.anchorPosition
497398
497729
  });
497399
497730
  }
497400
- for (const path21 of paths30) {
497731
+ for (const path21 of paths35) {
497401
497732
  if (!path21.points || path21.points.length < 2)
497402
497733
  continue;
497403
497734
  const sourceTraceId = deriveSourceTraceIdFromMatchAdaptPath({
@@ -497994,11 +498325,13 @@ var Group = class extends NormalComponent {
497994
498325
  const debug42 = import_debug20.default("tscircuit:core:_runLocalAutorouting");
497995
498326
  debug42(`[${this.getString()}] starting local autorouting`);
497996
498327
  const autorouterConfig2 = this._getAutorouterConfig();
497997
- const { simpleRouteJson, connMap } = getSimpleRouteJsonFromCircuitJson({
498328
+ const sourceTraceIdsToRoute = this.selectAll("trace").filter((t2) => !t2.pcb_trace_id).map((t2) => t2.source_trace_id);
498329
+ const { simpleRouteJson } = getSimpleRouteJsonFromCircuitJson({
497998
498330
  db,
497999
498331
  minTraceWidth: this.props.autorouter?.minTraceWidth ?? 0.15,
498000
498332
  subcircuit_id: this.subcircuit_id
498001
498333
  });
498334
+ simpleRouteJson.connections = simpleRouteJson.connections.filter((conn) => sourceTraceIdsToRoute.includes(conn.name));
498002
498335
  this.root?.emit("autorouting:start", {
498003
498336
  subcircuit_id: this.subcircuit_id,
498004
498337
  componentDisplayName: this.getString(),
@@ -498841,12 +499174,19 @@ var SolderJumper = class extends NormalComponent {
498841
499174
  return port?._parsedProps.pinNumber ?? null;
498842
499175
  }
498843
499176
  get defaultInternallyConnectedPinNames() {
499177
+ if (this._parsedProps.bridged) {
499178
+ const pins = this.children.filter((c) => c.componentName === "Port").map((p) => p.name);
499179
+ return pins.length > 0 ? [pins] : [];
499180
+ }
498844
499181
  return this._parsedProps.bridgedPins ?? [];
498845
499182
  }
498846
499183
  get config() {
498847
499184
  const props = this._parsedProps ?? this.props;
498848
499185
  let resolvedPinCount = props.pinCount;
498849
- if (!resolvedPinCount) {
499186
+ if (props.pinCount == null && !props.footprint) {
499187
+ resolvedPinCount = 2;
499188
+ }
499189
+ if (props.pinCount == null) {
498850
499190
  const nums = (props.bridgedPins ?? []).flat().map((p_str) => this._getPinNumberFromBridgedPinName(p_str)).filter((n2) => n2 !== null);
498851
499191
  const maxPinFromBridged = nums.length > 0 ? Math.max(...nums) : 0;
498852
499192
  const pinCountFromLabels = props.pinLabels ? Object.keys(props.pinLabels).length : 0;
@@ -498861,14 +499201,17 @@ var SolderJumper = class extends NormalComponent {
498861
499201
  } else {
498862
499202
  symbolName = "solderjumper";
498863
499203
  }
499204
+ let bridgedPinNumbers = [];
498864
499205
  if (Array.isArray(props.bridgedPins) && props.bridgedPins.length > 0) {
498865
- const pinNumbers = Array.from(new Set(props.bridgedPins.flat().map((pinName) => this._getPinNumberFromBridgedPinName(pinName)).filter((n2) => n2 !== null))).sort((a, b) => a - b);
498866
- if (pinNumbers.length > 0) {
498867
- symbolName += `_bridged${pinNumbers.join("")}`;
498868
- }
499206
+ bridgedPinNumbers = Array.from(new Set(props.bridgedPins.flat().map((pinName) => this._getPinNumberFromBridgedPinName(pinName)).filter((n2) => n2 !== null))).sort((a, b) => a - b);
499207
+ } else if (props.bridged && resolvedPinCount) {
499208
+ bridgedPinNumbers = Array.from({ length: resolvedPinCount }, (_, i) => i + 1);
499209
+ }
499210
+ if (bridgedPinNumbers.length > 0) {
499211
+ symbolName += `_bridged${bridgedPinNumbers.join("")}`;
498869
499212
  }
498870
499213
  return {
498871
- schematicSymbolName: symbolName,
499214
+ schematicSymbolName: props.symbolName ?? symbolName,
498872
499215
  componentName: "SolderJumper",
498873
499216
  zodProps: solderjumperProps,
498874
499217
  shouldRenderAsSchematicBox: true
@@ -498878,7 +499221,10 @@ var SolderJumper = class extends NormalComponent {
498878
499221
  const arrangement = super._getSchematicPortArrangement();
498879
499222
  if (arrangement && Object.keys(arrangement).length > 0)
498880
499223
  return arrangement;
498881
- const pinCount = this._parsedProps.pinCount ?? (Array.isArray(this._parsedProps.pinLabels) ? this._parsedProps.pinLabels.length : this._parsedProps.pinLabels ? Object.keys(this._parsedProps.pinLabels).length : this.getPortsFromFootprint().length);
499224
+ let pinCount = this._parsedProps.pinCount ?? (Array.isArray(this._parsedProps.pinLabels) ? this._parsedProps.pinLabels.length : this._parsedProps.pinLabels ? Object.keys(this._parsedProps.pinLabels).length : this.getPortsFromFootprint().length);
499225
+ if (pinCount == null && !this._parsedProps.footprint) {
499226
+ pinCount = 2;
499227
+ }
498882
499228
  const direction2 = this._parsedProps.schDirection ?? "right";
498883
499229
  return {
498884
499230
  leftSize: direction2 === "left" ? pinCount : 0,
@@ -499349,18 +499695,59 @@ var NetLabel = class extends PrimitiveComponent2 {
499349
499695
  zodProps: netLabelProps
499350
499696
  };
499351
499697
  }
499352
- doInitialSchematicComponentRender() {
499698
+ _getAnchorSide() {
499699
+ const { _parsedProps: props } = this;
499700
+ if (props.anchorSide)
499701
+ return props.anchorSide;
499702
+ const connectsTo = this._resolveConnectsTo();
499703
+ if (!connectsTo)
499704
+ return "right";
499705
+ const anchorPos = this._getGlobalSchematicPositionBeforeLayout();
499706
+ const connectedPorts = this._getConnectedPorts();
499707
+ if (connectedPorts.length === 0)
499708
+ return "right";
499709
+ const connectedPortPosition = connectedPorts[0]._getGlobalSchematicPositionBeforeLayout();
499710
+ const dx = connectedPortPosition.x - anchorPos.x;
499711
+ const dy = connectedPortPosition.y - anchorPos.y;
499712
+ if (Math.abs(dx) > Math.abs(dy)) {
499713
+ if (dx > 0)
499714
+ return "right";
499715
+ if (dx < 0)
499716
+ return "left";
499717
+ } else {
499718
+ if (dy > 0)
499719
+ return "top";
499720
+ if (dy < 0)
499721
+ return "bottom";
499722
+ }
499723
+ return "right";
499724
+ }
499725
+ _getConnectedPorts() {
499726
+ const connectsTo = this._resolveConnectsTo();
499727
+ if (!connectsTo)
499728
+ return [];
499729
+ const connectedPorts = [];
499730
+ for (const connection of connectsTo) {
499731
+ const port = this.getSubcircuit().selectOne(connection);
499732
+ if (port) {
499733
+ connectedPorts.push(port);
499734
+ }
499735
+ }
499736
+ return connectedPorts;
499737
+ }
499738
+ doInitialSchematicPrimitiveRender() {
499353
499739
  if (this.root?.schematicDisabled)
499354
499740
  return;
499355
499741
  const { db } = this.root;
499356
499742
  const { _parsedProps: props } = this;
499357
- const anchorPos = { x: props.schX ?? 0, y: props.schY ?? 0 };
499743
+ const anchorPos = this._getGlobalSchematicPositionBeforeLayout();
499744
+ const net2 = this.getSubcircuit().selectOne(`net.${this._getNetName()}`);
499358
499745
  const netLabel = db.schematic_net_label.insert({
499359
499746
  text: props.net,
499360
- source_net_id: props.net,
499747
+ source_net_id: net2.source_net_id,
499361
499748
  anchor_position: anchorPos,
499362
499749
  center: anchorPos,
499363
- anchor_side: props.anchorSide ?? "right"
499750
+ anchor_side: this._getAnchorSide()
499364
499751
  });
499365
499752
  this.source_net_label_id = netLabel.source_net_id;
499366
499753
  }
@@ -500435,7 +500822,7 @@ var SchematicBox = class extends PrimitiveComponent2 {
500435
500822
  var package_default3 = {
500436
500823
  name: "@tscircuit/core",
500437
500824
  type: "module",
500438
- version: "0.0.509",
500825
+ version: "0.0.525",
500439
500826
  types: "dist/index.d.ts",
500440
500827
  main: "dist/index.js",
500441
500828
  module: "dist/index.js",
@@ -500460,14 +500847,14 @@ var package_default3 = {
500460
500847
  "@biomejs/biome": "^1.8.3",
500461
500848
  "@tscircuit/capacity-autorouter": "^0.0.75",
500462
500849
  "@tscircuit/checks": "^0.0.52",
500463
- "@tscircuit/footprinter": "^0.0.182",
500464
500850
  "@tscircuit/circuit-json-util": "^0.0.49",
500851
+ "@tscircuit/footprinter": "^0.0.186",
500465
500852
  "@tscircuit/import-snippet": "^0.0.4",
500466
500853
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
500467
500854
  "@tscircuit/layout": "^0.0.28",
500468
500855
  "@tscircuit/log-soup": "^1.0.2",
500469
500856
  "@tscircuit/math-utils": "^0.0.18",
500470
- "@tscircuit/props": "^0.0.238",
500857
+ "@tscircuit/props": "^0.0.244",
500471
500858
  "@tscircuit/schematic-autolayout": "^0.0.6",
500472
500859
  "@tscircuit/schematic-match-adapt": "^0.0.16",
500473
500860
  "@tscircuit/simple-3d-svg": "^0.0.6",
@@ -500481,7 +500868,7 @@ var package_default3 = {
500481
500868
  "circuit-json": "^0.0.212",
500482
500869
  "circuit-json-to-connectivity-map": "^0.0.22",
500483
500870
  "circuit-json-to-simple-3d": "^0.0.2",
500484
- "circuit-to-svg": "^0.0.154",
500871
+ "circuit-to-svg": "^0.0.160",
500485
500872
  concurrently: "^9.1.2",
500486
500873
  debug: "^4.3.6",
500487
500874
  "graphics-debug": "^0.0.4",
@@ -500491,7 +500878,7 @@ var package_default3 = {
500491
500878
  "pkg-pr-new": "^0.0.37",
500492
500879
  react: "^19.0.0",
500493
500880
  "react-dom": "^19.0.0",
500494
- "schematic-symbols": "^0.0.163",
500881
+ "schematic-symbols": "^0.0.164",
500495
500882
  "ts-expect": "^1.3.0",
500496
500883
  tsup: "^8.2.4"
500497
500884
  },
@@ -503427,6 +503814,9 @@ jobs:
503427
503814
  runs-on: ubuntu-latest
503428
503815
  steps:
503429
503816
  - uses: actions/checkout@v4
503817
+ - uses: actions/setup-node@v3
503818
+ with:
503819
+ node-version: 22
503430
503820
  - uses: oven-sh/setup-bun@v2
503431
503821
  - run: bun install
503432
503822
  - run: bunx tsci build
@@ -503443,6 +503833,9 @@ jobs:
503443
503833
  runs-on: ubuntu-latest
503444
503834
  steps:
503445
503835
  - uses: actions/checkout@v4
503836
+ - uses: actions/setup-node@v3
503837
+ with:
503838
+ node-version: 22
503446
503839
  - uses: oven-sh/setup-bun@v2
503447
503840
  - run: bun install
503448
503841
  - run: bunx tsci snapshot