@elite-dangerous-almanac/core 0.1.5 → 0.1.7
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.
- package/PROVENANCE/i18n/SOURCES.md +107 -51
- package/PROVENANCE/ships/SOURCES.md +43 -2
- package/README.md +11 -5
- package/THIRD_PARTY_NOTICES.md +3 -0
- package/assets/ships/Adder/gunsight.svg +17 -0
- package/assets/ships/Anaconda/gunsight.svg +32 -0
- package/assets/ships/Asp/gunsight.svg +26 -0
- package/assets/ships/Asp_Scout/gunsight.svg +20 -0
- package/assets/ships/BelugaLiner/gunsight.svg +23 -0
- package/assets/ships/CobraMkIII/gunsight.svg +20 -0
- package/assets/ships/CobraMkIV/gunsight.svg +23 -0
- package/assets/ships/CobraMkV/gunsight.svg +23 -0
- package/assets/ships/Corsair/gunsight.svg +26 -0
- package/assets/ships/Cutter/gunsight.svg +29 -0
- package/assets/ships/DiamondBack/gunsight.svg +20 -0
- package/assets/ships/DiamondBackXL/gunsight.svg +17 -0
- package/assets/ships/Dolphin/gunsight.svg +14 -0
- package/assets/ships/Eagle/gunsight.svg +17 -0
- package/assets/ships/Empire_Courier/gunsight.svg +17 -0
- package/assets/ships/Empire_Eagle/gunsight.svg +17 -0
- package/assets/ships/Empire_Trader/gunsight.svg +20 -0
- package/assets/ships/Explorer_NX/gunsight.svg +29 -0
- package/assets/ships/Federation_Corvette/gunsight.svg +29 -0
- package/assets/ships/Federation_Corvette/schematic-bottom.svg +5 -5
- package/assets/ships/Federation_Corvette/schematic-top.svg +14 -14
- package/assets/ships/Federation_Dropship/gunsight.svg +23 -0
- package/assets/ships/Federation_Dropship_MkII/gunsight.svg +20 -0
- package/assets/ships/Federation_Gunship/gunsight.svg +29 -0
- package/assets/ships/FerDeLance/gunsight.svg +23 -0
- package/assets/ships/Hauler/gunsight.svg +11 -0
- package/assets/ships/Independant_Trader/gunsight.svg +20 -0
- package/assets/ships/Krait_Light/gunsight.svg +20 -0
- package/assets/ships/Krait_MkII/gunsight.svg +23 -0
- package/assets/ships/LakonMiner/gunsight.svg +32 -0
- package/assets/ships/Mamba/gunsight.svg +23 -0
- package/assets/ships/Mandalay/gunsight.svg +26 -0
- package/assets/ships/MediumTransport01/gunsight.svg +23 -0
- package/assets/ships/Orca/gunsight.svg +17 -0
- package/assets/ships/PantherMkII/gunsight.svg +38 -0
- package/assets/ships/Python/gunsight.svg +23 -0
- package/assets/ships/Python_NX/gunsight.svg +26 -0
- package/assets/ships/SideWinder/gunsight.svg +14 -0
- package/assets/ships/SmallCombat01_NX/gunsight.svg +23 -0
- package/assets/ships/Type6/gunsight.svg +14 -0
- package/assets/ships/Type7/gunsight.svg +20 -0
- package/assets/ships/Type8/gunsight.svg +26 -0
- package/assets/ships/Type9/gunsight.svg +23 -0
- package/assets/ships/Type9_Military/gunsight.svg +35 -0
- package/assets/ships/TypeX/gunsight.svg +26 -0
- package/assets/ships/TypeX_2/gunsight.svg +26 -0
- package/assets/ships/TypeX_3/gunsight.svg +29 -0
- package/assets/ships/Viper/gunsight.svg +20 -0
- package/assets/ships/Viper_MkIV/gunsight.svg +20 -0
- package/assets/ships/Vulture/gunsight.svg +14 -0
- package/dist/chunk-2VPVZELZ.js +1 -0
- package/dist/{chunk-MTAGULIO.js.map → chunk-2VPVZELZ.js.map} +1 -1
- package/dist/{chunk-6RLMBSXE.js → chunk-4S6WB7QR.js} +1 -1
- package/dist/chunk-4TFAZX73.js +1 -0
- package/dist/{chunk-EJMNNQIS.js.map → chunk-4TFAZX73.js.map} +1 -1
- package/dist/chunk-4ZGUSHTP.js +1 -0
- package/dist/{chunk-CTJQPQRA.js.map → chunk-4ZGUSHTP.js.map} +1 -1
- package/dist/{chunk-XT6KKGSE.js → chunk-6G6TYW2D.js} +1 -1
- package/dist/chunk-AFS6HN3D.js +1 -0
- package/dist/chunk-AFS6HN3D.js.map +1 -0
- package/dist/{chunk-XN6Q7LWU.js → chunk-CJWFY6OX.js} +1 -1
- package/dist/{chunk-UBYO7VZR.js → chunk-DBGXZF7O.js} +1 -1
- package/dist/{chunk-H3HMVGEY.js → chunk-EKQCVCMK.js} +1 -1
- package/dist/chunk-ELT3FEA4.js +1 -0
- package/dist/{chunk-3IMWUYXJ.js.map → chunk-ELT3FEA4.js.map} +1 -1
- package/dist/chunk-EXVCRIDP.js +1 -0
- package/dist/chunk-EXVCRIDP.js.map +1 -0
- package/dist/{chunk-EKWLAHRG.js → chunk-GRSNX36B.js} +1 -1
- package/dist/{chunk-EKWLAHRG.js.map → chunk-GRSNX36B.js.map} +1 -1
- package/dist/chunk-GVNTKCVF.js +1 -0
- package/dist/chunk-GVNTKCVF.js.map +1 -0
- package/dist/{chunk-FEER4ERG.js → chunk-IOJXLDJN.js} +1 -1
- package/dist/chunk-J42ZXLBL.js +1 -0
- package/dist/{chunk-GKDEI2SQ.js.map → chunk-J42ZXLBL.js.map} +1 -1
- package/dist/{chunk-PHPLZEFS.js → chunk-JPBMRJFC.js} +1 -1
- package/dist/{chunk-PHPLZEFS.js.map → chunk-JPBMRJFC.js.map} +1 -1
- package/dist/chunk-KJFUNIIY.js +1 -0
- package/dist/{chunk-TFPIPIMU.js.map → chunk-KJFUNIIY.js.map} +1 -1
- package/dist/{chunk-QMFBL5XO.js → chunk-LLHGSBPI.js} +1 -1
- package/dist/{chunk-QMFBL5XO.js.map → chunk-LLHGSBPI.js.map} +1 -1
- package/dist/{chunk-FGNJ7EVM.js → chunk-LZYHBFJC.js} +1 -1
- package/dist/{chunk-FGNJ7EVM.js.map → chunk-LZYHBFJC.js.map} +1 -1
- package/dist/chunk-M6G3UDTX.js +1 -0
- package/dist/chunk-M6G3UDTX.js.map +1 -0
- package/dist/{chunk-DLLBARN5.js → chunk-MKGJPVPS.js} +1 -1
- package/dist/{chunk-QI22FKBG.js → chunk-Q3QCLNVG.js} +1 -1
- package/dist/{chunk-QI22FKBG.js.map → chunk-Q3QCLNVG.js.map} +1 -1
- package/dist/chunk-RVIYOHYF.js +1 -0
- package/dist/chunk-RVIYOHYF.js.map +1 -0
- package/dist/chunk-SD6GNFDX.js +1 -0
- package/dist/chunk-SD6GNFDX.js.map +1 -0
- package/dist/chunk-SNADUQSJ.js +1 -0
- package/dist/chunk-SNADUQSJ.js.map +1 -0
- package/dist/chunk-TEOJCBSG.js +1 -0
- package/dist/chunk-TEOJCBSG.js.map +1 -0
- package/dist/chunk-TW7LUBHD.js +1 -0
- package/dist/{chunk-HRVIHQ4A.js.map → chunk-TW7LUBHD.js.map} +1 -1
- package/dist/{chunk-O72KI7RP.js → chunk-UHSNB5SV.js} +1 -1
- package/dist/chunk-V4C6FIE2.js +1 -0
- package/dist/{chunk-TLA6LHLN.js.map → chunk-V4C6FIE2.js.map} +1 -1
- package/dist/chunk-VDVFJXX5.js +1 -0
- package/dist/{chunk-PNZCLQDJ.js.map → chunk-VDVFJXX5.js.map} +1 -1
- package/dist/chunk-Z6XMXMVI.js +1 -0
- package/dist/{chunk-2J2UV4ZX.js.map → chunk-Z6XMXMVI.js.map} +1 -1
- package/dist/{chunk-VB3XZGIB.js → chunk-ZRG35JSH.js} +1 -1
- package/dist/{chunk-77QR33ON.js → chunk-ZZT2PQZ5.js} +1 -1
- package/dist/i18n/blueprints.d.ts +2 -1
- package/dist/i18n/blueprints.js +1 -1
- package/dist/i18n/diagnostics.d.ts +2 -0
- package/dist/i18n/diagnostics.js +1 -1
- package/dist/i18n/engineering-groups.d.ts +2 -2
- package/dist/i18n/engineering-groups.js +1 -1
- package/dist/i18n/experimental-effect-descriptions.js +1 -1
- package/dist/i18n/experimental-effects.js +1 -1
- package/dist/i18n/index.d.ts +32 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/materials.d.ts +2 -3
- package/dist/i18n/materials.js +1 -1
- package/dist/i18n/micro-resources.d.ts +2 -3
- package/dist/i18n/micro-resources.js +1 -1
- package/dist/i18n/module-families.d.ts +32 -0
- package/dist/i18n/module-families.js +1 -0
- package/dist/i18n/module-families.js.map +1 -0
- package/dist/i18n/modules.d.ts +3 -4
- package/dist/i18n/modules.js +1 -1
- package/dist/i18n/pre-engineered.js +1 -1
- package/dist/i18n/ships.js +1 -1
- package/dist/i18n/slots.js +1 -1
- package/dist/materials/index.js +1 -1
- package/dist/materials/materials-all.js +1 -1
- package/dist/materials/materials.js +1 -1
- package/dist/materials/micro-resources-all.js +1 -1
- package/dist/materials/micro-resources.js +1 -1
- package/dist/ships/blueprint-costs.d.ts +3 -1
- package/dist/ships/blueprint-costs.js +1 -1
- package/dist/ships/blueprint-costs.js.map +1 -1
- package/dist/ships/blueprints.d.ts +4 -1
- package/dist/ships/blueprints.js +1 -1
- package/dist/ships/engineering.d.ts +1 -0
- package/dist/ships/experimental-effect-costs.d.ts +3 -2
- package/dist/ships/experimental-effect-costs.js +1 -1
- package/dist/ships/experimental-effect-costs.js.map +1 -1
- package/dist/ships/experimental-effects.d.ts +3 -1
- package/dist/ships/experimental-effects.js +1 -1
- package/dist/ships/gunsights.js +1 -1
- package/dist/ships/index.d.ts +7 -5
- package/dist/ships/index.js +1 -1
- package/dist/ships/loadout-validation.d.ts +1 -0
- package/dist/ships/module-capabilities.d.ts +1 -0
- package/dist/ships/module-families.d.ts +49 -0
- package/dist/ships/module-families.js +1 -0
- package/dist/ships/module-families.js.map +1 -0
- package/dist/ships/module-limits.d.ts +1 -0
- package/dist/ships/modules-all.d.ts +1 -0
- package/dist/ships/modules-all.js +1 -1
- package/dist/ships/modules-core.d.ts +1 -0
- package/dist/ships/modules-core.js +1 -1
- package/dist/ships/modules-hardpoint.d.ts +2 -0
- package/dist/ships/modules-hardpoint.js +1 -1
- package/dist/ships/modules-internal.d.ts +2 -0
- package/dist/ships/modules-internal.js +1 -1
- package/dist/ships/modules-utility.d.ts +2 -0
- package/dist/ships/modules-utility.js +1 -1
- package/dist/ships/modules.d.ts +23 -5
- package/dist/ships/modules.js +1 -1
- package/dist/ships/pre-engineered-stats.d.ts +1 -0
- package/dist/ships/pre-engineered-stats.js +1 -1
- package/dist/ships/pre-engineered.js +1 -1
- package/dist/ships/ship-loadout.d.ts +73 -32
- package/dist/ships/ship-loadout.js +1 -1
- package/dist/ships/weapons.d.ts +1 -0
- package/package.json +9 -1
- package/dist/chunk-2J2UV4ZX.js +0 -1
- package/dist/chunk-3IMWUYXJ.js +0 -1
- package/dist/chunk-CTJQPQRA.js +0 -1
- package/dist/chunk-DAQ3PJ4R.js +0 -1
- package/dist/chunk-DAQ3PJ4R.js.map +0 -1
- package/dist/chunk-E45EDCYH.js +0 -1
- package/dist/chunk-E45EDCYH.js.map +0 -1
- package/dist/chunk-EJMNNQIS.js +0 -1
- package/dist/chunk-GKDEI2SQ.js +0 -1
- package/dist/chunk-HRVIHQ4A.js +0 -1
- package/dist/chunk-M5IBENCW.js +0 -1
- package/dist/chunk-M5IBENCW.js.map +0 -1
- package/dist/chunk-MTAGULIO.js +0 -1
- package/dist/chunk-PNZCLQDJ.js +0 -1
- package/dist/chunk-TFPIPIMU.js +0 -1
- package/dist/chunk-TLA6LHLN.js +0 -1
- package/dist/chunk-XULHGGG4.js +0 -1
- package/dist/chunk-XULHGGG4.js.map +0 -1
- /package/dist/{chunk-6RLMBSXE.js.map → chunk-4S6WB7QR.js.map} +0 -0
- /package/dist/{chunk-XT6KKGSE.js.map → chunk-6G6TYW2D.js.map} +0 -0
- /package/dist/{chunk-XN6Q7LWU.js.map → chunk-CJWFY6OX.js.map} +0 -0
- /package/dist/{chunk-UBYO7VZR.js.map → chunk-DBGXZF7O.js.map} +0 -0
- /package/dist/{chunk-H3HMVGEY.js.map → chunk-EKQCVCMK.js.map} +0 -0
- /package/dist/{chunk-FEER4ERG.js.map → chunk-IOJXLDJN.js.map} +0 -0
- /package/dist/{chunk-DLLBARN5.js.map → chunk-MKGJPVPS.js.map} +0 -0
- /package/dist/{chunk-O72KI7RP.js.map → chunk-UHSNB5SV.js.map} +0 -0
- /package/dist/{chunk-VB3XZGIB.js.map → chunk-ZRG35JSH.js.map} +0 -0
- /package/dist/{chunk-77QR33ON.js.map → chunk-ZZT2PQZ5.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getLocalizedName,createLocalizedNameIndex}from"./chunk-M5IBENCW.js";var experimental_effect_names_default={special_armour_chunky:{en:"Deep Plating",de:"Tiefenüberzug",es:"Enchapado profundo",fr:"Blindage épais",pt:"Revestimento espesso",ru:"Утолщенная броня"},special_armour_explosive:{en:"Layered Plating",de:"Schichtüberzug",es:"Enchapado a capas",fr:"Blindage à couches",pt:"Revestimento em camadas",ru:"Многослойная броня"},special_armour_kinetic:{en:"Angled Plating",de:"Winkelüberzug",es:"Enchapado en ángulo",fr:"Blindage anguleux",pt:"Revestimento inclinado",ru:"Угловая броня"},special_armour_thermic:{en:"Reflective Plating",de:"Reflektorüberzug",es:"Enchapado reflectante",fr:"Blindage réfléchissant",pt:"Revestimento refletor",ru:"Отражающая броня"},special_auto_loader:{en:"Auto Loader",de:"Auto-Laden",es:"Autocargador",fr:"Rechargement automatique",pt:"Carregador Automático",ru:"Автоматическая система заряжения"},special_blinding_shell:{en:"Dazzle Shell",de:"Blendgranate",es:"Proyectil deslumbrante",fr:"Obus aveuglant",pt:"Projétil Cegante",ru:"Ослепляющие снаряды"},special_choke_canister:{en:"Ion Disruption",de:"Ionen-Disruption",es:"Disruptor de iones",fr:"Perturbation ionique",pt:"Perturbação de Íon",ru:"Ионный дестабилизатор"},special_concordant_sequence:{en:"Concordant Sequence",de:"Konkordante Sequenz",es:"Secuencia concordante",fr:"Séquence concordante",pt:"Sequência Concordante",ru:"Последовательность координации"},special_corrosive_shell:{en:"Corrosive Shell",de:"Korrosionsgranate",es:"Proyectil corrosivo",fr:"Obus corrosif",pt:"Projétil Corrosivo",ru:"Разъедающие снаряды"},special_deep_cut_payload:{en:"Penetrator Payload",de:"Durchdringungsladung",es:"Carga explosiva penetradora",fr:"Charge explosive perforante",pt:"Carga Penetrante",ru:"Бронебойные снаряды"},special_dispersal_field:{en:"Dispersal Field",de:"Streuungsfeld",es:"Campo de dispersión",fr:"Champ de dispersion",pt:"Campo de Dispersão",ru:"Рассеивающее поле"},special_distortion_field:{en:"Inertial Impact",de:"Inertialeinschlag",es:"Impacto inercial",fr:"Impact inertiel",pt:"Impacto Inercial",ru:"Инерционный удар"},special_drag_munitions:{en:"Drag Munitions",de:"Ableitungsmunition",es:"Munición lastre",fr:"Munitions à inertie",pt:"Munições de arrasto",ru:"Замедляющие боеприпасы"},special_emissive_munitions:{en:"Emissive Munitions",de:"Emissionsmunition",es:"Munición de emisiones",fr:"Munitions à émissions",pt:"Munições Emissivas",ru:"Эмиссионные боеприпасы"},special_engine_cooled:{en:"Thermal Spread",de:"Thermischer Verteiler",es:"Difusión térmica",fr:"Répartition thermique",pt:"Propagação térmica",ru:"Рассеивание тепла"},special_engine_haulage:{en:"Drive Distributors",de:"Antriebsdistributoren",es:"Distribuidores de motor",fr:"Répartiteurs de réacteur",pt:"Distribuidores do motor",ru:"Распределители тяги"},special_engine_lightweight:{en:"Stripped Down",de:"Reduktion",es:"Reducido",fr:"Désossage",pt:"Modelo leve",ru:"Урезанный вариант"},special_engine_overloaded:{en:"Drag Drives",de:"Drag-Antriebe",es:"Motores de arrastre",fr:"Débridage des réacteurs",pt:"Motores de arrasto",ru:"Ускорители"},special_engine_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"},special_feedback_cascade_cooled:{en:"Feedback Cascade",de:"Rückkopplungskaskade",es:"Retroalimentación en cascada",fr:"Réverbération énergétique",pt:"Cascata de Realimentação",ru:"Ответный залп"},special_force_shell:{en:"Force Shell",de:"Impulsgranate",es:"Proyectil de fuerza",fr:"Munition surpuissante",pt:"Projétil de Força",ru:"Усиленные снаряды"},special_fsd_cooled:{en:"Thermal Spread",de:"Thermischer Verteiler",es:"Difusión térmica",fr:"Répartition thermique",pt:"Propagação térmica",ru:"Рассеивание тепла"},special_fsd_fuelcapacity:{en:"Deep Charge",de:"Tieflader",es:"Carga intensa",fr:"Charge profonde",pt:"Carga intensa",ru:"Заряд повышенной мощности"},special_fsd_heavy:{en:"Mass Manager",de:"Massemanager",es:"Gestión de masa",fr:"Gestionnaire de masse",pt:"Gestor de massa",ru:"Распределитель гравитации"},special_fsd_interrupt:{en:"FSD Interrupt",de:"FSA-Unterbrechung",es:"Interrupción MDD",fr:"Interruption FSD",pt:"Interruptor de MDD",ru:"Помеха для FSD"},special_fsd_lightweight:{en:"Stripped Down",de:"Reduktion",es:"Reducido",fr:"Désossage",pt:"Modelo leve",ru:"Урезанный вариант"},special_fsd_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"},special_high_yield_shell:{en:"High Yield Shell",de:"Hocheffizienzgranate",es:"Proyectil de alto rendimiento",fr:"Obus à fragmentation",pt:"Projétil de Alto Rendimento",ru:"Снаряды большой мощности"},special_hullreinforcement_chunky:{en:"Deep Plating",de:"Tiefenüberzug",es:"Enchapado profundo",fr:"Blindage épais",pt:"Revestimento espesso",ru:"Утолщенная броня"},special_hullreinforcement_explosive:{en:"Layered Plating",de:"Schichtüberzug",es:"Enchapado a capas",fr:"Blindage à couches",pt:"Revestimento em camadas",ru:"Многослойная броня"},special_hullreinforcement_kinetic:{en:"Angled Plating",de:"Winkelüberzug",es:"Enchapado en ángulo",fr:"Blindage anguleux",pt:"Revestimento inclinado",ru:"Угловая броня"},special_hullreinforcement_thermic:{en:"Reflective Plating",de:"Reflektorüberzug",es:"Enchapado reflectante",fr:"Blindage réfléchissant",pt:"Revestimento refletor",ru:"Отражающая броня"},special_incendiary_rounds:{en:"Incendiary Rounds",de:"Hitzesalven",es:"Munición incendiaria",fr:"Munitions incendiaires",pt:"Munição Incendiária",ru:"Зажигательные боеприпасы"},special_lock_breaker:{en:"Target Lock Breaker",de:"Zielvisierbrecher",es:"Interruptor de selección",fr:"Interrupteur de verrouillage de cible",pt:"Quebra de Trava de Alvo",ru:"Генератор помех для системы захвата цели"},special_mass_lock:{en:"Mass Lock Munition",de:"Massesperremunition",es:"Munición de bloqueo de masa",fr:"Munitions à champ gravitationnel",pt:"Munição de Bloqueio de Massa",ru:"Боеприпасы с гравитационным захватом"},special_overload_munitions:{en:"Overload Munitions",de:"Überladungsmunition",es:"Munición sobrecargada",fr:"Munitions à surcharge",pt:"Munições de Sobrecarga",ru:"Вызывающие перегрузку боеприпасы"},special_penetrator_munitions:{en:"Penetrator Munitions",de:"Penetrationsmunition",es:"Munición penetradora",fr:"Munitions perforantes",pt:"Munições Penetrantes",ru:"Бронебойные боеголовки"},special_phasing_sequence:{en:"Phasing Sequence",de:"Phasensequenz",es:"Secuencia de fase",fr:"Séquence de phase",pt:"Sequência Faseada",ru:"Последовательность фазирования"},special_plasma_slug:{en:"Plasma Slug",de:"Plasmaprojektil",es:"Proyectil de plasma",fr:"Munitions à plasma",pt:"Projétil de Plasma",ru:"Плазменный рельсовый снаряд"},special_plasma_slug_cooled:{en:"Plasma Slug",de:"Plasmaprojektil",es:"Proyectil de plasma",fr:"Munitions à plasma",pt:"Projétil de Plasma",ru:"Плазменный рельсовый снаряд"},special_powerdistributor_capacity:{en:"Cluster Capacitors",de:"Cluster-Kondensatoren",es:"Agrupación de capacitadores",fr:"Batterie de condensateurs",pt:"Banco de capacitores",ru:"Кассетные конденсаторы"},special_powerdistributor_efficient:{en:"Flow Control",de:"Flusssteuerung",es:"Control de flujo",fr:"Contrôle du flux",pt:"Controle de fluxo",ru:"Контроль интенсивности"},special_powerdistributor_fast:{en:"Super Conduits",de:"Superleiter",es:"Superconductores",fr:"Super conduits",pt:"Supercondutores",ru:"Сверхпроводники"},special_powerdistributor_lightweight:{en:"Stripped Down",de:"Reduktion",es:"Reducido",fr:"Désossage",pt:"Modelo leve",ru:"Урезанный вариант"},special_powerdistributor_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"},special_powerplant_cooled:{en:"Thermal Spread",de:"Thermischer Verteiler",es:"Difusión térmica",fr:"Répartition thermique",pt:"Propagação térmica",ru:"Рассеивание тепла"},special_powerplant_highcharge:{en:"Monstered",de:"Monsterhaft",es:"A lo bestia",fr:"Modèle XXL",pt:"Parrudo",ru:"Монстрация"},special_powerplant_lightweight:{en:"Stripped Down",de:"Reduktion",es:"Reducido",fr:"Désossage",pt:"Modelo leve",ru:"Урезанный вариант"},special_powerplant_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"},special_radiant_canister:{en:"Radiant Canister",de:"Strahlenbehältnis",es:"Cartucho radiactivo",fr:"Cartouche irradiante",pt:"Mina Radiante",ru:"Светящаяся кассета"},special_regeneration_sequence:{en:"Regeneration Sequence",de:"Regenerierungssequenz",es:"Secuencia de regeneración",fr:"Séquence de régénération",pt:"Sequência de Regeneração",ru:"Последовательность восстановления"},special_reverberating_cascade:{en:"Reverberating Cascade",de:"Rückstrahlkaskade",es:"Reverberación en cascada",fr:"Réverbération en série",pt:"Cascata Reverberante",ru:"Отраженный залп"},special_scramble_spectrum:{en:"Scramble Spectrum",de:"Störspektrum",es:"Espectro de interferencias",fr:"Spectre de brouillage",pt:"Espectro Randômico",ru:"Отключающая сетка"},special_screening_shell:{en:"Screening Shell",de:"Sperrgranate",es:"Proyectil de pantalla",fr:"Obus de criblage",pt:"Projétil de Triagem",ru:"Заслоняющие снаряды"},special_shield_efficient:{en:"Lo-draw",de:"Leichtbedarf",es:"Consumo reducido",fr:"Consommation réduite",pt:"Baixo consumo",ru:"Пониженное потребление"},special_shield_health:{en:"Hi-Cap",de:"Hochkondensatoren",es:"Límite elevado",fr:"Puissance renforcée",pt:"Alta capacitância",ru:"Высокая емкость"},special_shield_kinetic:{en:"Force Block",de:"Kraft-Block",es:"Bloqueo de fuerza",fr:"Blocage de force",pt:"Bloqueio cinético",ru:"Усиленная блокировка"},special_shield_lightweight:{en:"Stripped Down",de:"Reduktion",es:"Reducido",fr:"Désossage",pt:"Modelo leve",ru:"Урезанный вариант"},special_shield_regenerative:{en:"Fast Charge",de:"Schnelllader",es:"Carga rápida",fr:"Chargement rapide",pt:"Carga rápida",ru:"Быстрый заряд"},special_shield_resistive:{en:"Multi-weave",de:"Multigewebe",es:"Multitejido",fr:"Filaments multiples",pt:"Rede múltipla",ru:"Мультипрошивка"},special_shield_thermic:{en:"Thermo Block",de:"Thermo-Block",es:"Bloqueo térmico",fr:"Blocage thermique",pt:"Bloqueio térmico",ru:"Блокировка тепла"},special_shield_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"},special_shieldbooster_chunky:{en:"Super Capacitors",de:"Superkondensatoren",es:"Supercapacitadores",fr:"Super condensateurs",pt:"Supercapacitores",ru:"Суперконденсаторы"},special_shieldbooster_efficient:{en:"Flow Control",de:"Flusssteuerung",es:"Control de flujo",fr:"Contrôle du flux",pt:"Controle de fluxo",ru:"Контроль интенсивности"},special_shieldbooster_explosive:{en:"Blast Block",de:"Blast-Block",es:"Bloqueo de explosivos",fr:"Blocage d'explosion",pt:"Bloqueio explosivo",ru:"Блокировка взрыва"},special_shieldbooster_kinetic:{en:"Force Block",de:"Kraft-Block",es:"Bloqueo de fuerza",fr:"Blocage de force",pt:"Bloqueio cinético",ru:"Усиленная блокировка"},special_shieldbooster_thermic:{en:"Thermo Block",de:"Thermo-Block",es:"Bloqueo térmico",fr:"Blocage thermique",pt:"Bloqueio térmico",ru:"Блокировка тепла"},special_shieldbooster_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"},special_shieldcell_efficient:{en:"Flow Control",de:"Flusssteuerung",es:"Control de flujo",fr:"Contrôle du flux",pt:"Controle de fluxo",ru:"Контроль интенсивности"},special_shieldcell_gradual:{en:"Recycling Cell",de:"Recyclingzelle",es:"Célula de reciclaje",fr:"Recyclage des cellules",pt:"Célula de reciclagem",ru:"Рециркуляционная ячейка"},special_shieldcell_lightweight:{en:"Stripped Down",de:"Reduktion",es:"Reducido",fr:"Désossage",pt:"Modelo leve",ru:"Урезанный вариант"},special_shieldcell_oversized:{en:"Boss Cells",de:"Bosszellen",es:"Células excelentes",fr:"Cellules XXL",pt:"Células resistentes",ru:"Босс-ячейки"},special_shieldcell_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"},special_shiftlock_canister:{en:"Shift-lock Canister",de:"Frameshift-Blocker",es:"Cartucho bloqueador",fr:"Cartouche de verrouillage FSD",pt:"Mina de Trava de Distorção",ru:"Рамоблокирующая кассета"},special_smart_rounds:{en:"Smart Rounds",de:"Intelligente Munition",es:"Munición inteligente",fr:"Munitions intelligentes",pt:"Projéteis Inteligentes",ru:"Умные боеприпасы"},special_super_penetrator:{en:"Super Penetrator"},special_super_penetrator_cooled:{en:"Super Penetrator",de:"Super-Durchdringer",es:"Súper penetrador",fr:"Munitions ultra perforantes",pt:"Super Penetrador",ru:"Модуль сверхпробития"},special_thermal_cascade:{en:"Thermal Cascade",de:"Thermalkaskade",es:"Cascada térmica",fr:"Réverbération thermique",pt:"Cascata Térmica",ru:"Термический залп"},special_thermal_conduit:{en:"Thermal Conduit",de:"Thermischer Verstärker",es:"Conductor térmico",fr:"Décupleur thermique",pt:"Condutor Térmico",ru:"Проводник тепла"},special_thermal_vent:{en:"Thermal Vent",de:"Thermische Entlastung",es:"Ventilación térmica",fr:"Ventilation thermique",pt:"Exaustor Térmico",ru:"Теплоотдача"},special_thermalshock:{en:"Thermal Shock",de:"Thermischer Schock",es:"Choque térmico",fr:"Choc thermique",pt:"Choque Térmico",ru:"Тепловой удар"},special_weapon_damage:{en:"Oversized",de:"Übergröße",es:"Mayor tamaño",fr:"Arme XXL",pt:"Reforçado",ru:"Сверхразмер"},special_weapon_efficient:{en:"Flow Control",de:"Flusssteuerung",es:"Control de flujo",fr:"Contrôle du flux",pt:"Controle de fluxo",ru:"Контроль интенсивности"},special_weapon_lightweight:{en:"Stripped Down",de:"Reduktion",es:"Reducido",fr:"Désossage",pt:"Modelo leve",ru:"Урезанный вариант"},special_weapon_rateoffire:{en:"Multi-servos",es:"Multiservos",fr:"Servomécanismes multiples",pt:"Servos múltiplos",ru:"Сервосистема"},special_weapon_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"}};var EXPERIMENTAL_EFFECT_NAMES=/* @__PURE__ */createLocalizedNameIndex(experimental_effect_names_default);function getExperimentalEffectName(fdname,locale){return getLocalizedName(EXPERIMENTAL_EFFECT_NAMES,fdname,locale,"getExperimentalEffectName","fdname")}export{getExperimentalEffectName};//# sourceMappingURL=chunk-XN6Q7LWU.js.map
|
|
1
|
+
import{getLocalizedName,createLocalizedNameIndex}from"./chunk-RVIYOHYF.js";var experimental_effect_names_default={special_armour_chunky:{en:"Deep Plating",de:"Tiefenüberzug",es:"Enchapado profundo",fr:"Blindage épais",pt:"Revestimento espesso",ru:"Утолщенная броня"},special_armour_explosive:{en:"Layered Plating",de:"Schichtüberzug",es:"Enchapado a capas",fr:"Blindage à couches",pt:"Revestimento em camadas",ru:"Многослойная броня"},special_armour_kinetic:{en:"Angled Plating",de:"Winkelüberzug",es:"Enchapado en ángulo",fr:"Blindage anguleux",pt:"Revestimento inclinado",ru:"Угловая броня"},special_armour_thermic:{en:"Reflective Plating",de:"Reflektorüberzug",es:"Enchapado reflectante",fr:"Blindage réfléchissant",pt:"Revestimento refletor",ru:"Отражающая броня"},special_auto_loader:{en:"Auto Loader",de:"Auto-Laden",es:"Autocargador",fr:"Rechargement automatique",pt:"Carregador Automático",ru:"Автоматическая система заряжения"},special_blinding_shell:{en:"Dazzle Shell",de:"Blendgranate",es:"Proyectil deslumbrante",fr:"Obus aveuglant",pt:"Projétil Cegante",ru:"Ослепляющие снаряды"},special_choke_canister:{en:"Ion Disruption",de:"Ionen-Disruption",es:"Disruptor de iones",fr:"Perturbation ionique",pt:"Perturbação de Íon",ru:"Ионный дестабилизатор"},special_concordant_sequence:{en:"Concordant Sequence",de:"Konkordante Sequenz",es:"Secuencia concordante",fr:"Séquence concordante",pt:"Sequência Concordante",ru:"Последовательность координации"},special_corrosive_shell:{en:"Corrosive Shell",de:"Korrosionsgranate",es:"Proyectil corrosivo",fr:"Obus corrosif",pt:"Projétil Corrosivo",ru:"Разъедающие снаряды"},special_deep_cut_payload:{en:"Penetrator Payload",de:"Durchdringungsladung",es:"Carga explosiva penetradora",fr:"Charge explosive perforante",pt:"Carga Penetrante",ru:"Бронебойные снаряды"},special_dispersal_field:{en:"Dispersal Field",de:"Streuungsfeld",es:"Campo de dispersión",fr:"Champ de dispersion",pt:"Campo de Dispersão",ru:"Рассеивающее поле"},special_distortion_field:{en:"Inertial Impact",de:"Inertialeinschlag",es:"Impacto inercial",fr:"Impact inertiel",pt:"Impacto Inercial",ru:"Инерционный удар"},special_drag_munitions:{en:"Drag Munitions",de:"Ableitungsmunition",es:"Munición lastre",fr:"Munitions à inertie",pt:"Munições de arrasto",ru:"Замедляющие боеприпасы"},special_emissive_munitions:{en:"Emissive Munitions",de:"Emissionsmunition",es:"Munición de emisiones",fr:"Munitions à émissions",pt:"Munições Emissivas",ru:"Эмиссионные боеприпасы"},special_engine_cooled:{en:"Thermal Spread",de:"Thermischer Verteiler",es:"Difusión térmica",fr:"Répartition thermique",pt:"Propagação térmica",ru:"Рассеивание тепла"},special_engine_haulage:{en:"Drive Distributors",de:"Antriebsdistributoren",es:"Distribuidores de motor",fr:"Répartiteurs de réacteur",pt:"Distribuidores do motor",ru:"Распределители тяги"},special_engine_lightweight:{en:"Stripped Down",de:"Reduktion",es:"Reducido",fr:"Désossage",pt:"Modelo leve",ru:"Урезанный вариант"},special_engine_overloaded:{en:"Drag Drives",de:"Drag-Antriebe",es:"Motores de arrastre",fr:"Débridage des réacteurs",pt:"Motores de arrasto",ru:"Ускорители"},special_engine_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"},special_feedback_cascade_cooled:{en:"Feedback Cascade",de:"Rückkopplungskaskade",es:"Retroalimentación en cascada",fr:"Réverbération énergétique",pt:"Cascata de Realimentação",ru:"Ответный залп"},special_force_shell:{en:"Force Shell",de:"Impulsgranate",es:"Proyectil de fuerza",fr:"Munition surpuissante",pt:"Projétil de Força",ru:"Усиленные снаряды"},special_fsd_cooled:{en:"Thermal Spread",de:"Thermischer Verteiler",es:"Difusión térmica",fr:"Répartition thermique",pt:"Propagação térmica",ru:"Рассеивание тепла"},special_fsd_fuelcapacity:{en:"Deep Charge",de:"Tieflader",es:"Carga intensa",fr:"Charge profonde",pt:"Carga intensa",ru:"Заряд повышенной мощности"},special_fsd_heavy:{en:"Mass Manager",de:"Massemanager",es:"Gestión de masa",fr:"Gestionnaire de masse",pt:"Gestor de massa",ru:"Распределитель гравитации"},special_fsd_interrupt:{en:"FSD Interrupt",de:"FSA-Unterbrechung",es:"Interrupción MDD",fr:"Interruption FSD",pt:"Interruptor de MDD",ru:"Помеха для FSD"},special_fsd_lightweight:{en:"Stripped Down",de:"Reduktion",es:"Reducido",fr:"Désossage",pt:"Modelo leve",ru:"Урезанный вариант"},special_fsd_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"},special_high_yield_shell:{en:"High Yield Shell",de:"Hocheffizienzgranate",es:"Proyectil de alto rendimiento",fr:"Obus à fragmentation",pt:"Projétil de Alto Rendimento",ru:"Снаряды большой мощности"},special_hullreinforcement_chunky:{en:"Deep Plating",de:"Tiefenüberzug",es:"Enchapado profundo",fr:"Blindage épais",pt:"Revestimento espesso",ru:"Утолщенная броня"},special_hullreinforcement_explosive:{en:"Layered Plating",de:"Schichtüberzug",es:"Enchapado a capas",fr:"Blindage à couches",pt:"Revestimento em camadas",ru:"Многослойная броня"},special_hullreinforcement_kinetic:{en:"Angled Plating",de:"Winkelüberzug",es:"Enchapado en ángulo",fr:"Blindage anguleux",pt:"Revestimento inclinado",ru:"Угловая броня"},special_hullreinforcement_thermic:{en:"Reflective Plating",de:"Reflektorüberzug",es:"Enchapado reflectante",fr:"Blindage réfléchissant",pt:"Revestimento refletor",ru:"Отражающая броня"},special_incendiary_rounds:{en:"Incendiary Rounds",de:"Hitzesalven",es:"Munición incendiaria",fr:"Munitions incendiaires",pt:"Munição Incendiária",ru:"Зажигательные боеприпасы"},special_lock_breaker:{en:"Target Lock Breaker",de:"Zielvisierbrecher",es:"Interruptor de selección",fr:"Interrupteur de verrouillage de cible",pt:"Quebra de Trava de Alvo",ru:"Генератор помех для системы захвата цели"},special_mass_lock:{en:"Mass Lock Munition",de:"Massesperremunition",es:"Munición de bloqueo de masa",fr:"Munitions à champ gravitationnel",pt:"Munição de Bloqueio de Massa",ru:"Боеприпасы с гравитационным захватом"},special_overload_munitions:{en:"Overload Munitions",de:"Überladungsmunition",es:"Munición sobrecargada",fr:"Munitions à surcharge",pt:"Munições de Sobrecarga",ru:"Вызывающие перегрузку боеприпасы"},special_penetrator_munitions:{en:"Penetrator Munitions",de:"Penetrationsmunition",es:"Munición penetradora",fr:"Munitions perforantes",pt:"Munições Penetrantes",ru:"Бронебойные боеголовки"},special_phasing_sequence:{en:"Phasing Sequence",de:"Phasensequenz",es:"Secuencia de fase",fr:"Séquence de phase",pt:"Sequência Faseada",ru:"Последовательность фазирования"},special_plasma_slug:{en:"Plasma Slug",de:"Plasmaprojektil",es:"Proyectil de plasma",fr:"Munitions à plasma",pt:"Projétil de Plasma",ru:"Плазменный рельсовый снаряд"},special_plasma_slug_cooled:{en:"Plasma Slug",de:"Plasmaprojektil",es:"Proyectil de plasma",fr:"Munitions à plasma",pt:"Projétil de Plasma",ru:"Плазменный рельсовый снаряд"},special_powerdistributor_capacity:{en:"Cluster Capacitors",de:"Cluster-Kondensatoren",es:"Agrupación de capacitadores",fr:"Batterie de condensateurs",pt:"Banco de capacitores",ru:"Кассетные конденсаторы"},special_powerdistributor_efficient:{en:"Flow Control",de:"Flusssteuerung",es:"Control de flujo",fr:"Contrôle du flux",pt:"Controle de fluxo",ru:"Контроль интенсивности"},special_powerdistributor_fast:{en:"Super Conduits",de:"Superleiter",es:"Superconductores",fr:"Super conduits",pt:"Supercondutores",ru:"Сверхпроводники"},special_powerdistributor_lightweight:{en:"Stripped Down",de:"Reduktion",es:"Reducido",fr:"Désossage",pt:"Modelo leve",ru:"Урезанный вариант"},special_powerdistributor_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"},special_powerplant_cooled:{en:"Thermal Spread",de:"Thermischer Verteiler",es:"Difusión térmica",fr:"Répartition thermique",pt:"Propagação térmica",ru:"Рассеивание тепла"},special_powerplant_highcharge:{en:"Monstered",de:"Monsterhaft",es:"A lo bestia",fr:"Modèle XXL",pt:"Parrudo",ru:"Монстрация"},special_powerplant_lightweight:{en:"Stripped Down",de:"Reduktion",es:"Reducido",fr:"Désossage",pt:"Modelo leve",ru:"Урезанный вариант"},special_powerplant_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"},special_radiant_canister:{en:"Radiant Canister",de:"Strahlenbehältnis",es:"Cartucho radiactivo",fr:"Cartouche irradiante",pt:"Mina Radiante",ru:"Светящаяся кассета"},special_regeneration_sequence:{en:"Regeneration Sequence",de:"Regenerierungssequenz",es:"Secuencia de regeneración",fr:"Séquence de régénération",pt:"Sequência de Regeneração",ru:"Последовательность восстановления"},special_reverberating_cascade:{en:"Reverberating Cascade",de:"Rückstrahlkaskade",es:"Reverberación en cascada",fr:"Réverbération en série",pt:"Cascata Reverberante",ru:"Отраженный залп"},special_scramble_spectrum:{en:"Scramble Spectrum",de:"Störspektrum",es:"Espectro de interferencias",fr:"Spectre de brouillage",pt:"Espectro Randômico",ru:"Отключающая сетка"},special_screening_shell:{en:"Screening Shell",de:"Sperrgranate",es:"Proyectil de pantalla",fr:"Obus de criblage",pt:"Projétil de Triagem",ru:"Заслоняющие снаряды"},special_shield_efficient:{en:"Lo-draw",de:"Leichtbedarf",es:"Consumo reducido",fr:"Consommation réduite",pt:"Baixo consumo",ru:"Пониженное потребление"},special_shield_health:{en:"Hi-Cap",de:"Hochkondensatoren",es:"Límite elevado",fr:"Puissance renforcée",pt:"Alta capacitância",ru:"Высокая емкость"},special_shield_kinetic:{en:"Force Block",de:"Kraft-Block",es:"Bloqueo de fuerza",fr:"Blocage de force",pt:"Bloqueio cinético",ru:"Усиленная блокировка"},special_shield_lightweight:{en:"Stripped Down",de:"Reduktion",es:"Reducido",fr:"Désossage",pt:"Modelo leve",ru:"Урезанный вариант"},special_shield_regenerative:{en:"Fast Charge",de:"Schnelllader",es:"Carga rápida",fr:"Chargement rapide",pt:"Carga rápida",ru:"Быстрый заряд"},special_shield_resistive:{en:"Multi-weave",de:"Multigewebe",es:"Multitejido",fr:"Filaments multiples",pt:"Rede múltipla",ru:"Мультипрошивка"},special_shield_thermic:{en:"Thermo Block",de:"Thermo-Block",es:"Bloqueo térmico",fr:"Blocage thermique",pt:"Bloqueio térmico",ru:"Блокировка тепла"},special_shield_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"},special_shieldbooster_chunky:{en:"Super Capacitors",de:"Superkondensatoren",es:"Supercapacitadores",fr:"Super condensateurs",pt:"Supercapacitores",ru:"Суперконденсаторы"},special_shieldbooster_efficient:{en:"Flow Control",de:"Flusssteuerung",es:"Control de flujo",fr:"Contrôle du flux",pt:"Controle de fluxo",ru:"Контроль интенсивности"},special_shieldbooster_explosive:{en:"Blast Block",de:"Blast-Block",es:"Bloqueo de explosivos",fr:"Blocage d'explosion",pt:"Bloqueio explosivo",ru:"Блокировка взрыва"},special_shieldbooster_kinetic:{en:"Force Block",de:"Kraft-Block",es:"Bloqueo de fuerza",fr:"Blocage de force",pt:"Bloqueio cinético",ru:"Усиленная блокировка"},special_shieldbooster_thermic:{en:"Thermo Block",de:"Thermo-Block",es:"Bloqueo térmico",fr:"Blocage thermique",pt:"Bloqueio térmico",ru:"Блокировка тепла"},special_shieldbooster_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"},special_shieldcell_efficient:{en:"Flow Control",de:"Flusssteuerung",es:"Control de flujo",fr:"Contrôle du flux",pt:"Controle de fluxo",ru:"Контроль интенсивности"},special_shieldcell_gradual:{en:"Recycling Cell",de:"Recyclingzelle",es:"Célula de reciclaje",fr:"Recyclage des cellules",pt:"Célula de reciclagem",ru:"Рециркуляционная ячейка"},special_shieldcell_lightweight:{en:"Stripped Down",de:"Reduktion",es:"Reducido",fr:"Désossage",pt:"Modelo leve",ru:"Урезанный вариант"},special_shieldcell_oversized:{en:"Boss Cells",de:"Bosszellen",es:"Células excelentes",fr:"Cellules XXL",pt:"Células resistentes",ru:"Босс-ячейки"},special_shieldcell_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"},special_shiftlock_canister:{en:"Shift-lock Canister",de:"Frameshift-Blocker",es:"Cartucho bloqueador",fr:"Cartouche de verrouillage FSD",pt:"Mina de Trava de Distorção",ru:"Рамоблокирующая кассета"},special_smart_rounds:{en:"Smart Rounds",de:"Intelligente Munition",es:"Munición inteligente",fr:"Munitions intelligentes",pt:"Projéteis Inteligentes",ru:"Умные боеприпасы"},special_super_penetrator:{en:"Super Penetrator"},special_super_penetrator_cooled:{en:"Super Penetrator",de:"Super-Durchdringer",es:"Súper penetrador",fr:"Munitions ultra perforantes",pt:"Super Penetrador",ru:"Модуль сверхпробития"},special_thermal_cascade:{en:"Thermal Cascade",de:"Thermalkaskade",es:"Cascada térmica",fr:"Réverbération thermique",pt:"Cascata Térmica",ru:"Термический залп"},special_thermal_conduit:{en:"Thermal Conduit",de:"Thermischer Verstärker",es:"Conductor térmico",fr:"Décupleur thermique",pt:"Condutor Térmico",ru:"Проводник тепла"},special_thermal_vent:{en:"Thermal Vent",de:"Thermische Entlastung",es:"Ventilación térmica",fr:"Ventilation thermique",pt:"Exaustor Térmico",ru:"Теплоотдача"},special_thermalshock:{en:"Thermal Shock",de:"Thermischer Schock",es:"Choque térmico",fr:"Choc thermique",pt:"Choque Térmico",ru:"Тепловой удар"},special_weapon_damage:{en:"Oversized",de:"Übergröße",es:"Mayor tamaño",fr:"Arme XXL",pt:"Reforçado",ru:"Сверхразмер"},special_weapon_efficient:{en:"Flow Control",de:"Flusssteuerung",es:"Control de flujo",fr:"Contrôle du flux",pt:"Controle de fluxo",ru:"Контроль интенсивности"},special_weapon_lightweight:{en:"Stripped Down",de:"Reduktion",es:"Reducido",fr:"Désossage",pt:"Modelo leve",ru:"Урезанный вариант"},special_weapon_rateoffire:{en:"Multi-servos",es:"Multiservos",fr:"Servomécanismes multiples",pt:"Servos múltiplos",ru:"Сервосистема"},special_weapon_toughened:{en:"Double Braced",de:"Doppelt versteift",es:"Doble puntal",fr:"Armature renforcée",pt:"Braçadeira dupla",ru:"Двойная прочность"}};var EXPERIMENTAL_EFFECT_NAMES=/* @__PURE__ */createLocalizedNameIndex(experimental_effect_names_default);function getExperimentalEffectName(fdname,locale){return getLocalizedName(EXPERIMENTAL_EFFECT_NAMES,fdname,locale,"getExperimentalEffectName","fdname")}export{getExperimentalEffectName};//# sourceMappingURL=chunk-CJWFY6OX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{findByRawKey}from"./chunk-BKWLI44T.js";import{deepFreeze}from"./chunk-DURKO7JU.js";var gunsights_default={SideWinder:[[-2.1956754475,-1.166162014],[2.1971644611,-1.166162014]],Eagle:[[0,1.3350000381],[-.9999989867,-4.1649398804],[1,-4.1649999619]],Hauler:[[3.1238413122,-2.5036600828]],Adder:[[7.95e-8,2.4762201309],[4.8031108992,-3.3052899837],[-4.8107191904,-3.3051600456]],Viper:[[-4.4231422022,-3.1312600374],[4.4890677854,-3.120200038],[-2.2769222334,-1.7354830503],[2.3477876112,-1.7415840626]],CobraMkIII:[[-2.7252560258,-2.2194597721],[4.3004040122,-2.2194597721],[-18.1650753617,-4.2745628506],[19.6289233565,-4.2745628506]],Type6:[[-7.0000141919,-8.5942001343],[6.9999858081,-8.5942001343]],Dolphin:[[-1.4913898188,-1.4382200241],[1.4910102409,-1.437789917]],Type7:[[-4.0687398911,-14.1802290976],[4.0687398911,-14.1802290976],[-3.1221899986,-18.4825201035],[0,5.8422994614]],Asp:[[4.0197359264,-.2208419442],[-4.0197643102,-.2208419442],[4.3934255778,-3.8522120118],[-4.3930143178,-3.8522120118],[.8882707894,-5.8057618737],[-.8607862056,-5.8057618737]],Vulture:[[-6.0744804493,2.4356280565],[6.0739994892,2.43562603]],Empire_Trader:[[-46.5126991272,-1.456389904],[46.4147987366,-1.4596400261],[-21.093000412,-10.896999836],[20.9435005188,-10.896999836]],Federation_Dropship:[[-6.975e-7,-7.1524811387],[6.4999993996,-8.3645310998],[-6.5000006004,-8.421630919],[-12.2532001777,-5.5376310945],[12.252999659,-5.5425711274]],Orca:[[23787e-10,-11.1302399635],[7.5304622596,-11.1302700043],[-7.5304575021,-11.1302499771]],Type9:[[.0158350021,-10.8171396255],[-32.9438727051,14.1377997398],[32.9561250061,14.1377997398],[-4.472344175,-1.2836203575],[4.4973962158,-1.2836203575]],Python:[[9.2650003433,1.0571099818],[-9.2650003433,1.0573539734],[-104189e-9,-5.7930601835],[6.299369812,-.4728800058],[-6.2989997864,-.4728800058]],BelugaLiner:[[-3.8678876522,19.7454404831],[3.86789211,19.7454404831],[31204e-10,-12.5654602051],[9.9565022823,-13.0313596725],[-10.0456978443,-13.0313596725]],FerDeLance:[[-.5650237321,-9.5035099983],[3.1392460465,-5.2576601505],[-4.2803038955,-5.257529974],[-8.9795841575,-6.9344000816],[7.9933162332,-6.9040498734]],Anaconda:[[-.0500994027,-20.8516497612],[-.0676546022,-16.4927697182],[-6.3956546709,-6.0129098892],[6.2604951933,-6.012919426],[-8.3323144838,-10.4250597954],[8.1973457411,-10.4252595901],[-1.5326546356,-27.17029953],[1.396265395,-27.1728992462]],Federation_Corvette:[[
|
|
1
|
+
import{findByRawKey}from"./chunk-BKWLI44T.js";import{deepFreeze}from"./chunk-DURKO7JU.js";var gunsights_default={SideWinder:[[-2.1956754475,-1.166162014],[2.1971644611,-1.166162014]],Eagle:[[0,1.3350000381],[-.9999989867,-4.1649398804],[1,-4.1649999619]],Hauler:[[3.1238413122,-2.5036600828]],Adder:[[7.95e-8,2.4762201309],[4.8031108992,-3.3052899837],[-4.8107191904,-3.3051600456]],Viper:[[-4.4231422022,-3.1312600374],[4.4890677854,-3.120200038],[-2.2769222334,-1.7354830503],[2.3477876112,-1.7415840626]],CobraMkIII:[[-2.7252560258,-2.2194597721],[4.3004040122,-2.2194597721],[-18.1650753617,-4.2745628506],[19.6289233565,-4.2745628506]],Type6:[[-7.0000141919,-8.5942001343],[6.9999858081,-8.5942001343]],Dolphin:[[-1.4913898188,-1.4382200241],[1.4910102409,-1.437789917]],Type7:[[-4.0687398911,-14.1802290976],[4.0687398911,-14.1802290976],[-3.1221899986,-18.4825201035],[0,5.8422994614]],Asp:[[4.0197359264,-.2208419442],[-4.0197643102,-.2208419442],[4.3934255778,-3.8522120118],[-4.3930143178,-3.8522120118],[.8882707894,-5.8057618737],[-.8607862056,-5.8057618737]],Vulture:[[-6.0744804493,2.4356280565],[6.0739994892,2.43562603]],Empire_Trader:[[-46.5126991272,-1.456389904],[46.4147987366,-1.4596400261],[-21.093000412,-10.896999836],[20.9435005188,-10.896999836]],Federation_Dropship:[[-6.975e-7,-7.1524811387],[6.4999993996,-8.3645310998],[-6.5000006004,-8.421630919],[-12.2532001777,-5.5376310945],[12.252999659,-5.5425711274]],Orca:[[23787e-10,-11.1302399635],[7.5304622596,-11.1302700043],[-7.5304575021,-11.1302499771]],Type9:[[.0158350021,-10.8171396255],[-32.9438727051,14.1377997398],[32.9561250061,14.1377997398],[-4.472344175,-1.2836203575],[4.4973962158,-1.2836203575]],Python:[[9.2650003433,1.0571099818],[-9.2650003433,1.0573539734],[-104189e-9,-5.7930601835],[6.299369812,-.4728800058],[-6.2989997864,-.4728800058]],BelugaLiner:[[-3.8678876522,19.7454404831],[3.86789211,19.7454404831],[31204e-10,-12.5654602051],[9.9565022823,-13.0313596725],[-10.0456978443,-13.0313596725]],FerDeLance:[[-.5650237321,-9.5035099983],[3.1392460465,-5.2576601505],[-4.2803038955,-5.257529974],[-8.9795841575,-6.9344000816],[7.9933162332,-6.9040498734]],Anaconda:[[-.0500994027,-20.8516497612],[-.0676546022,-16.4927697182],[-6.3956546709,-6.0129098892],[6.2604951933,-6.012919426],[-8.3323144838,-10.4250597954],[8.1973457411,-10.4252595901],[-1.5326546356,-27.17029953],[1.396265395,-27.1728992462]],Federation_Corvette:[[-3.9228526003,-3.9520503628],[4.2232654743,-3.9520503628],[-.0482507162,-21.622590065],[-19.0490464792,-14.0605998039],[18.952551879,-14.0605998039],[-3.5523173437,-8.1903957129],[3.4558227435,-8.1903966665]],Cutter:[[-1.0698891692,-10.5712301731],[1.9353100061,8.357470274],[-4.2942000628,8.357470274],[5.604150176,-12.578029871],[-7.8722597361,-12.578029871],[48.7663916349,6.6569497585],[-51.335411191,6.6569497585]],DiamondBack:[[-4.0515280947,-2.5390116945],[4.0515316739,-2.5390116945],[1.4018517747,-2.5665118471],[-1.4018582091,-2.5665118471]],Empire_Courier:[[11.8377540655,-3.2956299782],[-11.8383466653,-3.2953501688],[-.0002514451,-3.2983777486]],DiamondBackXL:[[-3.8e-9,-5.4903216138],[-4.0515298843,-2.5390116945],[4.0515298843,-2.5390116945]],Empire_Eagle:[[0,1.158190012],[-.9999989867,-4.1649398804],[1,-4.1649999619]],Federation_Dropship_MkII:[[-6.975e-7,-7.1524811387],[-8.388e-7,6.2918891311],[-6.5000006004,-8.421630919],[6.4999993996,-8.3645310998]],Federation_Gunship:[[-6.975e-7,-7.1524811387],[7.4685991959,-6.1059408784],[-7.5166708274,-6.1010008454],[-6.5000006004,-8.421630919],[6.4999993996,-8.3645310998],[-2.0145705982,6.9536890388],[2.0064393239,6.9536890388]],Viper_MkIV:[[-5.2282078192,-3.557543993],[5.2982223108,-3.5579299927],[-2.2769176885,-1.7354899645],[2.3477823809,-1.741590023]],CobraMkIV:[[-2.7252560258,-2.2194597721],[4.3004040122,-2.2194597721],[-2.1642358899,1.6537399292],[3.6279239058,1.6537399292],[.7319211364,1.5309801102]],Independant_Trader:[[-6.4588040173,-.3966100216],[6.4619156062,-.3966100216],[-7.0000141919,-8.5942001343],[6.9999858081,-8.5942001343]],Asp_Scout:[[4.0197359264,-.2208419442],[-4.0197643102,-.2208419442],[.8882707894,-5.8057618737],[-.8607862056,-5.8057618737]],Type9_Military:[[-45.9827164114,12.8247699738],[46.1578818858,12.8248000145],[-35.7242172658,-5.8927402496],[35.789683491,-5.8927402496],[.0158349872,-10.9025392532],[-32.9439171255,14.0823497772],[32.9560805857,14.0823497772],[-31.7180183828,14.461810112],[31.7231818736,14.4618396759]],Krait_MkII:[[-.0051161051,4.72419101],[6.5335155488,3.6496010423],[-6.5342449188,3.6496010423],[5.5368453026,.8744730204],[-5.487834835,.8744730204]],TypeX:[[.0162672093,13.6527097225],[.0074073989,8.286440134],[.0078854002,-2.0069200993],[.0039364994,6.8665499687],[-4.1265390068,10.0820600986],[4.1602909416,10.0874998569]],TypeX_2:[[.0074063987,8.2878696918],[.0161828697,13.6526801586],[.0078854002,-2.0069200993],[.0041333996,6.8272798061],[-4.1265289932,10.0600898266],[4.1603109688,10.0655200481]],TypeX_3:[[.0073715989,8.3409497738],[-4.5380389839,-3.9696199894],[.0078854002,-2.0069200993],[4.5610411018,-3.9636600018],[.0040766001,6.8395199776],[-4.1265089661,10.0326097012],[4.1603309959,10.0380399227]],Krait_Light:[[-6.5342449188,4.1638610959],[6.5335155488,4.1638610959],[5.5368453026,.652011021],[-5.487834835,.652011021]],Mamba:[[.00432313,.835559845],[-16.6398762413,-.8341600895],[16.5986224464,-.8341600895],[-10.7312773415,-1.4244301319],[10.740323191,-1.4244401455]],Python_NX:[[9.2650003433,1.0571099818],[-9.2650003433,1.0568399727],[-104189e-9,-5.7930601835],[0,3.4936000109],[6.4427800179,-.1121799946],[-6.4429998398,-.1121799946]],Type8:[[0,-12.1037597656],[-4.015999794,-7.7543688715],[4.0157799721,-7.7543688715],[0,4.098760128],[-11.9879999161,-3.7318696976],[11.9879999161,-3.7318696976]],Mandalay:[[-4.99567687,2.401819706],[5.00432313,2.401819706],[-10.5496767708,-2.8439302444],[10.5583230308,-2.8439302444],[-3.7202469059,-.0611701012],[3.7293230346,-.0611701012]],CobraMkV:[[-6.0253000259,-2.7495419383],[6.0253000259,-2.7495419383],[0,3.0864198208],[-8.1576700211,-1.0310399532],[8.1579999924,-1.0310399532]],Corsair:[[-246232e-9,1.9287400246],[-3.8475562982,-5.660593912],[3.8467536517,-5.660593912],[3.8953037806,.2843203545],[-3.8957962446,.2843203545],[-246232e-9,-12.9786396027]],PantherMkII:[[0,-16.1954603195],[0,-22.501200676],[29.7259998322,8.7797994614],[-29.7262001038,8.7797994614],[33.6498985291,-2.9535703659],[-33.6515007019,-2.9495506287],[18.0830001831,6.2904005051],[-18.0830001831,6.2904005051],[10.7854003906,-22.5706005096],[-10.7849998474,-22.5706005096]],LakonMiner:[[3.4014891237,-7.2467298508],[-5.9021710306,-8.9939498901],[-1.4037310034,-8.9939498901],[-.1419609934,-1.4792003632],[-3.6419609934,-10.8120200634],[-.1419609934,-2.0740003586],[3.3580390066,-18.2151401043],[-3.6419609934,-18.2149801254]],Explorer_NX:[[-.0009805651,7.4557856917],[22.3390128736,5.1527962089],[-22.3404877062,5.1527962089],[-4.1629874583,-4.175993979],[4.1610129003,-4.1762040257],[-14.1689875002,7.1313461661],[14.1670129423,7.1317958236]],SmallCombat01_NX:[[0,.829210043],[-4.7786197662,-4.3692798615],[4.7789998055,-4.368999958],[1.8267500401,-1.6154369712],[-1.8270000219,-1.6149999648]],MediumTransport01:[[-324325e-10,5.9589700699],[-8.1420001984,-4.0403298438],[8.1420001984,-4.0408278406],[-22.3405990601,-4.0403298438],[22.3593006134,-4.0408278406]]};var SHIP_GUNSIGHTS=deepFreeze(gunsights_default);function getShipGunsight(shipSymbol){return findByRawKey(SHIP_GUNSIGHTS,shipSymbol,"getShipGunsight: shipSymbol")}function projectGunsight(gunsight,targetRangeMetres){if(!Number.isFinite(targetRangeMetres)||targetRangeMetres<=0){throw new RangeError("projectGunsight: targetRangeMetres must be a finite positive number")}return gunsight.map(([horizontalOffsetMetres,verticalOffsetMetres])=>({horizontalTangent:horizontalOffsetMetres/targetRangeMetres,verticalTangent:verticalOffsetMetres/targetRangeMetres}))}export{SHIP_GUNSIGHTS,getShipGunsight,projectGunsight};//# sourceMappingURL=chunk-DBGXZF7O.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getLocalizedName,createLocalizedNameIndex}from"./chunk-
|
|
1
|
+
import{getLocalizedName,createLocalizedNameIndex}from"./chunk-RVIYOHYF.js";var engineering_group_names_default={powerPlants:{en:"Power Plants",pt:"Geradores de Energia",ru:"Силовые установки"},guardianPowerPlants:{en:"Guardian Power Plants"},thrusters:{en:"Thrusters",pt:"Propulsores",ru:"Маневровые двигатели"},frameShiftDrives:{en:"Frame Shift Drives",pt:"Motores de Distorção de Fase",ru:"Рамочно-сместительные двигатели"},powerDistributors:{en:"Power Distributors",pt:"Distribuidores de Energia",ru:"Распределители питания"},guardianPowerDistributors:{en:"Guardian Power Distributors"},frameShiftDrivesSCO:{en:"Frame Shift Drives (SCO)"},shieldGenerators:{en:"Shield Generators",pt:"Geradores de Escudo",ru:"Щитогенератор"},shieldCellBanks:{en:"Shield Cell Banks",pt:"Bancos de Célula de Escudo",ru:"Щитонакопитель"},hullReinforcements:{en:"Hull Reinforcements",pt:"Reforços de Casco",ru:"Наборы для усиления корпуса"},guardianHullReinforcements:{en:"Guardian Hull Reinforcements"},pulseLasers:{en:"Pulse Lasers",pt:"Lasers de Pulso",ru:"Импульсные лазеры"},burstLasers:{en:"Burst Lasers",pt:"Lasers de Rajada",ru:"Пульсирующие лазеры"},beamLasers:{en:"Beam Lasers",pt:"Lasers Contínuos",ru:"Пучковые лазеры"},cannons:{en:"Cannons",pt:"Canhões",ru:"Пушки"},fragmentCannons:{en:"Fragment Cannons",pt:"Canhões de Fragmentos",ru:"Залповые орудия"},multiCannons:{en:"Multi-Cannons",pt:"Canhões de Repetição",ru:"Многоствольные орудия"},plasmaAccelerators:{en:"Plasma Accelerators",pt:"Aceleradores de Plasma",ru:"Ускорители плазмы"},railGuns:{en:"Rail Guns",pt:"Canhões Elétricos",ru:"Рельсотроны"},missiles:{en:"Missiles",pt:"Mísseis",ru:"Ракеты"},mines:{en:"Mines",pt:"Minas",ru:"Мины"},torpedoes:{en:"Torpedoes",pt:"Torpedos",ru:"Торпеды"},shieldBoosters:{en:"Shield Boosters",pt:"Potenciadores de Escudo",ru:"Усилители щита"},bulkheads:{en:"Bulkheads",pt:"Blindagem",ru:"Переборки"},lifeSupports:{en:"Life Supports",pt:"Suportes de Vida",ru:"Системы жизнеобеспечения"},sensors:{en:"Sensors",pt:"Sensores",ru:"Сенсоры"},autoFieldMaintenanceUnits:{en:"Auto Field-Maintenance Units",pt:"Unidades de Automanutenção em Campo",ru:"Блоки АПР"},collectionLimpets:{en:"Collection Limpets",pt:"Drones Coletores",ru:"Контроллеры дронов-сборщиков"},fsdBoosters:{en:"FSD Boosters",pt:"Potenciadores de MDD",ru:"Ускорители FSD Стражей"},fsdInterdictors:{en:"FSD Interdictors",pt:"Interditores de MDD",ru:"Перехватчики FSD"},fuelScoops:{en:"Fuel Scoops",pt:"Coletores de Combustível",ru:"Топливозаборники"},fuelTransferLimpets:{en:"Fuel Transfer Limpets",pt:"Drones de Combustível",ru:"Контроллеры дронов-заправщиков"},hatchBreakerLimpets:{en:"Hatch Breaker Limpets",pt:"Drones Quebra-Escotilha",ru:"Контроллеры дронов-взломщиков трюмов"},moduleReinforcements:{en:"Module Reinforcements",pt:"Reforços de Módulo",ru:"Наборы для усиления модулей"},prospectingLimpets:{en:"Prospecting Limpets",pt:"Drones Prospectores",ru:"Контроллеры дронов-геологоразведчиков"},refineries:{en:"Refineries",pt:"Refinarias",ru:"Очистители"},shieldReinforcements:{en:"Shield Reinforcements",pt:"Reforços de Escudo",ru:"Усилители щита"},surfaceScanners:{en:"Surface Scanners",pt:"Scanners de Superfície",ru:"Подробные сканеры поверхности"},chaffLaunchers:{en:"Chaff Launchers",pt:"Lançadores de Chaff",ru:"Разбрасыватели дипольных отражателей"},ecms:{en:"ECMs",pt:"CMEs",ru:"ЭПД"},heatSinkLaunchers:{en:"Heat Sink Launchers",pt:"Lançadores de Dissapador Térmico",ru:"Теплоотводные катапульты"},killWarrantScanners:{en:"Kill Warrant Scanners",pt:"Scanners de Registro Criminal",ru:"Сканеры преступников"},manifestScanners:{en:"Manifest Scanners",pt:"Scanners de Manifesto",ru:"Сканеры содержимого"},pointDefence:{en:"Point Defence",pt:"Defesa de Ponto",ru:"Точечная оборона"},wakeScanners:{en:"Wake Scanners",pt:"Scanners de Rastro",ru:"Сканеры следа FSD"},guardianGauss:{en:"Exp - Guardian Gauss",pt:"Exp - Gauss Guardian",ru:"Экс - Пушки Гаусса Стражей"},guardianPlasma:{en:"Exp - Guardian Plasma",pt:"Exp - Plasma Guardian",ru:"Экс - Плазменные пушки Стражей"},guardianShard:{en:"Exp - Guardian Shard",pt:"Exp - Fragmentos Guardian",ru:"Экс - Осколочные орудия Стражей"}};var NAMES=/* @__PURE__ */createLocalizedNameIndex(engineering_group_names_default);function getEngineeringGroupName(groupId,locale){return getLocalizedName(NAMES,groupId,locale,"getEngineeringGroupName","groupId")}export{getEngineeringGroupName};//# sourceMappingURL=chunk-EKQCVCMK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{buildModuleCatalogue}from"./chunk-AFS6HN3D.js";var modules_utility_default=[{symbol:"Hpt_ChaffLauncher_Tiny",kind:"chaffLaunchers",familyId:"chaffLaunchers",name:"Chaff Launcher",class:0,rating:"I",mass:1.3,integrity:20,powerDraw:.2,bootTime:0,alwaysPowered:true,rateOfFire:1,burstInterval:1,clipSize:1,ammoMaximum:10,reloadTime:10,distributorDraw:4,thermalLoad:4,cost:8500},{symbol:"Hpt_ElectronicCountermeasure_Tiny",kind:"ecms",familyId:"ecms",name:"Electronic Countermeasure",class:0,rating:"F",mass:1.3,integrity:20,powerDraw:.2,bootTime:0,reloadTime:10,thermalLoad:4,maximumRange:3e3,cost:12500},{symbol:"Hpt_HeatSinkLauncher_Turret_Tiny",kind:"heatSinkLaunchers",familyId:"heatsinkLaunchers",name:"Heat Sink Launcher",class:0,rating:"I",mass:1.3,integrity:45,powerDraw:.2,bootTime:0,alwaysPowered:true,rateOfFire:.2,burstInterval:5,clipSize:1,ammoMaximum:2,reloadTime:10,distributorDraw:2,cost:3500},{symbol:"Hpt_PlasmaPointDefence_Turret_Tiny",kind:"pointDefence",familyId:"pointDefence",name:"Point Defence",class:0,rating:"I",mass:.5,integrity:30,powerDraw:.2,bootTime:0,alwaysPowered:true,damage:.2,damageDistribution:{kinetic:1},rateOfFire:10,burstInterval:.2,burstRounds:4,burstRateOfFire:15,clipSize:12,ammoMaximum:1e4,reloadTime:.4,thermalLoad:.07,maximumRange:2500,shotSpeed:1e3,jitter:1.5,cost:18550},{symbol:"Hpt_CargoScanner_Size0_Class1",kind:"manifestScanners",familyId:"manifestScanners",name:"Cargo Scanner",class:0,rating:"E",exclusionGroup:"cargoScanner",mass:1.3,integrity:32,powerDraw:.2,bootTime:3,scannerRange:2e3,scanAngle:15,scanTime:10,cost:13544},{symbol:"Hpt_CargoScanner_Size0_Class2",kind:"manifestScanners",familyId:"manifestScanners",name:"Cargo Scanner",class:0,rating:"D",exclusionGroup:"cargoScanner",mass:1.3,integrity:24,powerDraw:.4,bootTime:3,scannerRange:2500,scanAngle:15,scanTime:10,cost:40633},{symbol:"Hpt_CargoScanner_Size0_Class3",kind:"manifestScanners",familyId:"manifestScanners",name:"Cargo Scanner",class:0,rating:"C",exclusionGroup:"cargoScanner",mass:1.3,integrity:40,powerDraw:.8,bootTime:3,scannerRange:3e3,scanAngle:15,scanTime:10,cost:121899},{symbol:"Hpt_CargoScanner_Size0_Class4",kind:"manifestScanners",familyId:"manifestScanners",name:"Cargo Scanner",class:0,rating:"B",exclusionGroup:"cargoScanner",mass:1.3,integrity:56,powerDraw:1.6,bootTime:3,scannerRange:3500,scanAngle:15,scanTime:10,cost:365698},{symbol:"Hpt_CargoScanner_Size0_Class5",kind:"manifestScanners",familyId:"manifestScanners",name:"Cargo Scanner",class:0,rating:"A",exclusionGroup:"cargoScanner",mass:1.3,integrity:48,powerDraw:3.2,bootTime:3,scannerRange:4e3,scanAngle:15,scanTime:10,cost:1097095},{symbol:"Hpt_CloudScanner_Size0_Class1",kind:"wakeScanners",familyId:"wakeScanners",name:"Frame Shift Wake Scanner",class:0,rating:"E",exclusionGroup:"frameShiftWakeScanner",mass:1.3,integrity:32,powerDraw:.2,bootTime:1,scannerRange:2e3,scanAngle:15,scanTime:10,cost:13544},{symbol:"Hpt_CloudScanner_Size0_Class2",kind:"wakeScanners",familyId:"wakeScanners",name:"Frame Shift Wake Scanner",class:0,rating:"D",exclusionGroup:"frameShiftWakeScanner",mass:1.3,integrity:24,powerDraw:.4,bootTime:1,scannerRange:2500,scanAngle:15,scanTime:10,cost:40633},{symbol:"Hpt_CloudScanner_Size0_Class3",kind:"wakeScanners",familyId:"wakeScanners",name:"Frame Shift Wake Scanner",class:0,rating:"C",exclusionGroup:"frameShiftWakeScanner",mass:1.3,integrity:40,powerDraw:.8,bootTime:1,scannerRange:3e3,scanAngle:15,scanTime:10,cost:121899},{symbol:"Hpt_CloudScanner_Size0_Class4",kind:"wakeScanners",familyId:"wakeScanners",name:"Frame Shift Wake Scanner",class:0,rating:"B",exclusionGroup:"frameShiftWakeScanner",mass:1.3,integrity:56,powerDraw:1.6,bootTime:1,scannerRange:3500,scanAngle:15,scanTime:10,cost:365698},{symbol:"Hpt_CloudScanner_Size0_Class5",kind:"wakeScanners",familyId:"wakeScanners",name:"Frame Shift Wake Scanner",class:0,rating:"A",exclusionGroup:"frameShiftWakeScanner",mass:1.3,integrity:48,powerDraw:3.2,bootTime:1,scannerRange:4e3,scanAngle:15,scanTime:10,cost:1097095},{symbol:"Hpt_CrimeScanner_Size0_Class1",kind:"killWarrantScanners",familyId:"killWarrantScanners",name:"Kill Warrant Scanner",class:0,rating:"E",exclusionGroup:"killWarrantScanner",mass:1.3,integrity:32,powerDraw:.2,bootTime:2,scannerRange:2e3,scanAngle:15,scanTime:10,cost:13544},{symbol:"Hpt_CrimeScanner_Size0_Class2",kind:"killWarrantScanners",familyId:"killWarrantScanners",name:"Kill Warrant Scanner",class:0,rating:"D",exclusionGroup:"killWarrantScanner",mass:1.3,integrity:24,powerDraw:.4,bootTime:2,scannerRange:2500,scanAngle:15,scanTime:10,cost:40633},{symbol:"Hpt_CrimeScanner_Size0_Class3",kind:"killWarrantScanners",familyId:"killWarrantScanners",name:"Kill Warrant Scanner",class:0,rating:"C",exclusionGroup:"killWarrantScanner",mass:1.3,integrity:40,powerDraw:.8,bootTime:2,scannerRange:3e3,scanAngle:15,scanTime:10,cost:121899},{symbol:"Hpt_CrimeScanner_Size0_Class4",kind:"killWarrantScanners",familyId:"killWarrantScanners",name:"Kill Warrant Scanner",class:0,rating:"B",exclusionGroup:"killWarrantScanner",mass:1.3,integrity:56,powerDraw:1.6,bootTime:2,scannerRange:3500,scanAngle:15,scanTime:10,cost:365698},{symbol:"Hpt_CrimeScanner_Size0_Class5",kind:"killWarrantScanners",familyId:"killWarrantScanners",name:"Kill Warrant Scanner",class:0,rating:"A",exclusionGroup:"killWarrantScanner",mass:1.3,integrity:48,powerDraw:3.2,bootTime:2,scannerRange:4e3,scanAngle:15,scanTime:10,cost:1097095},{symbol:"Hpt_ShieldBooster_Size0_Class1",kind:"shieldBoosters",familyId:"shieldBoosters",name:"Shield Booster",class:0,rating:"E",mass:.5,integrity:25,powerDraw:.2,bootTime:0,shieldBoost:.04,kineticResistance:0,thermalResistance:0,explosiveResistance:0,alwaysPowered:true,cost:1e4},{symbol:"Hpt_ShieldBooster_Size0_Class2",kind:"shieldBoosters",familyId:"shieldBoosters",name:"Shield Booster",class:0,rating:"D",mass:1,integrity:35,powerDraw:.5,bootTime:0,shieldBoost:.08,kineticResistance:0,thermalResistance:0,explosiveResistance:0,alwaysPowered:true,cost:23e3},{symbol:"Hpt_ShieldBooster_Size0_Class3",kind:"shieldBoosters",familyId:"shieldBoosters",name:"Shield Booster",class:0,rating:"C",mass:2,integrity:40,powerDraw:.7,bootTime:0,shieldBoost:.12,kineticResistance:0,thermalResistance:0,explosiveResistance:0,alwaysPowered:true,cost:53e3},{symbol:"Hpt_ShieldBooster_Size0_Class4",kind:"shieldBoosters",familyId:"shieldBoosters",name:"Shield Booster",class:0,rating:"B",mass:3,integrity:45,powerDraw:1,bootTime:0,shieldBoost:.16,kineticResistance:0,thermalResistance:0,explosiveResistance:0,alwaysPowered:true,cost:122e3},{symbol:"Hpt_ShieldBooster_Size0_Class5",kind:"shieldBoosters",familyId:"shieldBoosters",name:"Shield Booster",class:0,rating:"A",mass:3.5,integrity:48,powerDraw:1.2,bootTime:0,shieldBoost:.2,kineticResistance:0,thermalResistance:0,explosiveResistance:0,alwaysPowered:true,cost:281e3},{symbol:"Hpt_AntiUnknownShutdown_Tiny",familyId:"shutdownFieldNeutralisers",name:"Shutdown Field Neutraliser",class:0,rating:"F",entitlement:"ELITE_HORIZONS_V_PLANETARY_LANDINGS",mass:1.3,integrity:35,powerDraw:.2,bootTime:0,alwaysPowered:true,maximumRange:3e3,cost:63e3},{symbol:"Hpt_XenoScanner_Basic_Tiny",familyId:"xenoScanners",name:"Xeno Scanner",class:0,rating:"E",exclusionGroup:"experimentalUtility",entitlement:"ELITE_HORIZONS_V_PLANETARY_LANDINGS",mass:1.3,integrity:56,powerDraw:.2,bootTime:2,scannerRange:500,scanAngle:23,scanTime:10,cost:365698},{symbol:"Hpt_XenoScannerMk2_Basic_Tiny",familyId:"xenoScanners",name:"Enhanced Xeno Scanner",class:0,rating:"C",exclusionGroup:"experimentalUtility",entitlement:"ELITE_HORIZONS_V_PLANETARY_LANDINGS",mass:1.3,integrity:56,powerDraw:.8,bootTime:2,scannerRange:2e3,scanAngle:23,scanTime:10,cost:745948},{symbol:"Hpt_MRAScanner_Size0_Class1",familyId:"pulseWaveAnalyser",name:"Pulse Wave Analyser",class:0,rating:"E",exclusionGroup:"pulseWaveAnalyser",mass:1.3,integrity:32,powerDraw:.2,bootTime:3,scannerRange:12e3,scanAngle:15,scanTime:3,cost:13544},{symbol:"Hpt_MRAScanner_Size0_Class2",familyId:"pulseWaveAnalyser",name:"Pulse Wave Analyser",class:0,rating:"D",exclusionGroup:"pulseWaveAnalyser",mass:1.3,integrity:24,powerDraw:.4,bootTime:3,scannerRange:15e3,scanAngle:15,scanTime:3,cost:40633},{symbol:"Hpt_MRAScanner_Size0_Class3",familyId:"pulseWaveAnalyser",name:"Pulse Wave Analyser",class:0,rating:"C",exclusionGroup:"pulseWaveAnalyser",mass:1.3,integrity:40,powerDraw:.8,bootTime:3,scannerRange:18e3,scanAngle:15,scanTime:3,cost:121899},{symbol:"Hpt_MRAScanner_Size0_Class4",familyId:"pulseWaveAnalyser",name:"Pulse Wave Analyser",class:0,rating:"B",exclusionGroup:"pulseWaveAnalyser",mass:1.3,integrity:56,powerDraw:1.6,bootTime:3,scannerRange:21e3,scanAngle:15,scanTime:3,cost:365698},{symbol:"Hpt_MRAScanner_Size0_Class5",familyId:"pulseWaveAnalyser",name:"Pulse Wave Analyser",class:0,rating:"A",exclusionGroup:"pulseWaveAnalyser",mass:1.3,integrity:48,powerDraw:3.2,bootTime:3,scannerRange:24e3,scanAngle:15,scanTime:3,cost:1097095},{symbol:"Hpt_CausticSinkLauncher_Turret_Tiny",kind:"heatSinkLaunchers",familyId:"causticSinkLaunchers",name:"Caustic Sink Launcher",class:0,rating:"I",mass:1.7,integrity:45,powerDraw:.6,bootTime:0,alwaysPowered:true,rateOfFire:.2,burstInterval:5,clipSize:1,ammoMaximum:5,reloadTime:10,distributorDraw:2,cost:5e4},{symbol:"Hpt_AntiUnknownShutdown_Tiny_V2",familyId:"shutdownFieldNeutralisers",name:"Thargoid Pulse Neutraliser",class:0,rating:"E",mass:3,integrity:70,powerDraw:.4,bootTime:0,alwaysPowered:true,maximumRange:0,cost:15e4},{symbol:"Hpt_XenoScanner_Advanced_Tiny",familyId:"xenoScanners",name:"Pulse Wave Xeno Scanner",class:0,rating:"C",exclusionGroup:"experimentalUtility",mass:3,integrity:100,powerDraw:1,bootTime:2,scannerRange:1e3,scanAngle:23,scanTime:10,cost:85e4}];var UTILITY_MODULES=buildModuleCatalogue(modules_utility_default,"utility");export{UTILITY_MODULES};//# sourceMappingURL=chunk-ELT3FEA4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ships/modules-utility.ts"],"names":["buildModuleCatalogue","modules_utility_default","UTILITY_MODULES"],"mappings":"O,
|
|
1
|
+
{"version":3,"sources":["../src/ships/modules-utility.ts"],"names":["buildModuleCatalogue","modules_utility_default","UTILITY_MODULES"],"mappings":"O,igTAsCO,IAAME,gBAA+CF,qBACxDC,wBACA,kBACJC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{weaponsCapacitorMetrics}from"./chunk-FMPRCYKY.js";import{shieldRecovery,cellBankSummary}from"./chunk-VZZUNSDF.js";import{shieldMetrics}from"./chunk-2FHHMYDC.js";import{getShipBySymbol,getShipByName,getShipSlots}from"./chunk-WNGQ3IAM.js";import{parseSlef,toSlef,stringifySlef,getLoadoutModifier}from"./chunk-UXFMVZAY.js";import{sourcePurchaseFromLoadout,getSourceModuleValue}from"./chunk-IYU4WLFM.js";import{powerBudget}from"./chunk-RLUS76LZ.js";import{isNonOutfittingSlot,isBuiltInHullModule,cloneLoadoutModule,identifyPreEngineeredVariant,cloneModuleStats,availableBlueprintsFor,availableExperimentalsFor,ownKeyIn,FITTED_ITEM,blueprintAvailableFor,blueprintRoutesFor,experimentalAvailableFor,primitiveEngineeringInputsFor,missingBaseLabels,journalModifiersFor,getPreEngineeredStats,getPreEngineeredJournalModifiers,getPreEngineeredModifiers,ordinaryEngineeringProof,unresolvedModifiers,orderBySlotLayout,matchingKeyIn,isCargoHatchSlot,isFinalGuardianWeaponEngineering,scaleDamageComponents}from"./chunk-ZZT2PQZ5.js";import{weaponMetrics,sumWeaponMetrics,combinedRateOfFire}from"./chunk-LJI7VXJD.js";import{builtInModuleBySymbol,getBulkheadsForShip}from"./chunk-LLHGSBPI.js";import{getPreEngineeredVariants}from"./chunk-2VPVZELZ.js";import{singleJumpRange,frameShiftDriveMassFactor,fuelPerJump,totalRange}from"./chunk-GQ5GX5TB.js";import{calculateUnladenMass,calculateCargoCapacity,calculateFuelCapacity}from"./chunk-AFVYCQWL.js";import{fixedSlotReason,validateLoadout}from"./chunk-B4ZSTOM4.js";import{mobilityMetrics}from"./chunk-24INI4U7.js";import{calculateModuleLimits}from"./chunk-KPETDYQX.js";import{ALL_MODULES}from"./chunk-VDVFJXX5.js";import{CORE_MODULES}from"./chunk-UHSNB5SV.js";import{distributorMetrics}from"./chunk-P2QOL63K.js";import{getExperimentalEffectCost}from"./chunk-SNADUQSJ.js";import{getExperimentalEffect}from"./chunk-JPBMRJFC.js";import{heatMetrics}from"./chunk-W6EPHHTS.js";import{ammunitionCapacity}from"./chunk-AA3K5XUE.js";import{armourMetrics}from"./chunk-FGXWVFN6.js";import{getBlueprintCost}from"./chunk-TEOJCBSG.js";import{baseStats,computeModifiers,labelsForDamageType,scaleForLabel,sumMaterials,fieldForLabel,labelsForField,capabilityValueForLabel,damageTypeForLabel}from"./chunk-DYPOL3CI.js";import{resolveBlueprintForModule}from"./chunk-2TW4ZBI3.js";import{getExperimentalsForModule}from"./chunk-QTZPA2FR.js";import{getBlueprintGrade}from"./chunk-Q3QCLNVG.js";import{getDefaultLoadout}from"./chunk-GRIK3EDH.js";import{loadoutSlotName}from"./chunk-KAA4VOOB.js";import{parseSlotName,enumerateSlots,SLOT_RESTRICTION_LABELS}from"./chunk-RAO35XDF.js";import{normalizeKey}from"./chunk-BKWLI44T.js";import{truncate,describeValue,requireString,requireStringIfPresent}from"./chunk-PKWVG2JY.js";import{deepFreeze}from"./chunk-DURKO7JU.js";var NO_ISSUES=Object.freeze([]);function completeResult(value){return Object.freeze({value:value,complete:true,issues:NO_ISSUES})}function incompleteResult(issues){return Object.freeze({value:null,complete:false,issues:Object.freeze(issues.map(issue=>Object.freeze({...issue,...issue.params?{params:Object.freeze({...issue.params})}:{}})))})}var PREFIX={powerPlant:["int_powerplant","int_guardianpowerplant"],thrusters:["int_engine","int_mkiiagileboost_engine"],frameShiftDrive:["int_hyperdrive"],powerDistributor:["int_powerdistributor","int_guardianpowerdistributor"],shieldGenerator:["int_shieldgenerator"],shieldCellBank:["int_shieldcellbank"],shieldBooster:["hpt_shieldbooster"],shieldReinforcement:["int_guardianshieldreinforcement"],hullReinforcement:["int_hullreinforcement","int_guardianhullreinforcement","int_metaalloyhullreinforcement"],moduleReinforcement:["int_modulereinforcement","int_guardianmodulereinforcement"]};var startsWithAny=(symbol,prefixes)=>prefixes.some(prefix=>symbol.toLowerCase().startsWith(prefix));function isPowerDistributor(module,stats){return stats?.slot?stats.slot==="powerDistributor":startsWithAny(module.Item,PREFIX.powerDistributor)}function isPowerPlant(module,stats){const parsed=parseSlotName(module.Slot);if(parsed?.kind==="core"&&parsed.core==="powerPlant")return true;return stats?.slot?stats.slot==="powerPlant":startsWithAny(module.Item,PREFIX.powerPlant)}function isThruster(module,stats){const parsed=parseSlotName(module.Slot);if(parsed?.kind==="core"&&parsed.core==="thrusters")return true;return stats?.slot?stats.slot==="thrusters":startsWithAny(module.Item,PREFIX.thrusters)}function isFrameShiftDrive(module,stats){const parsed=parseSlotName(module.Slot);if(parsed?.kind==="core"&&parsed.core==="frameShiftDrive")return true;return stats?.slot?stats.slot==="frameShiftDrive":startsWithAny(module.Item,PREFIX.frameShiftDrive)}function isEnabled(module){return module.On!==false}function priorityOf(module){return(module.Priority??0)+1}function effectiveStat(module,field,stats){const stated=statedModifier(module,field);if(stated!==void 0)return stated;const base=stats?.[field];return typeof base==="number"?base:void 0}function statedModifier(module,field){for(const label of labelsForField(field)){if(capabilityValueForLabel(label)!==null)continue;const modified=getLoadoutModifier(module,label);if(modified!==null)return modified/scaleForLabel(label)}return void 0}function effectiveCapability(module,field,stats){for(const label of labelsForField(field)){if(capabilityValueForLabel(label)===null)continue;if(module.Engineering?.Modifiers?.some(modifier=>modifier.Label.toLowerCase()===label.toLowerCase())){return true}}const base=stats[field];return typeof base==="boolean"?base:void 0}function effectiveDamageDistribution(module,stats){const fromEffect=module.Engineering?.ExperimentalEffect?getExperimentalEffect(module.Engineering.ExperimentalEffect)?.damageDistribution:void 0;const distribution={...fromEffect??stats.damageDistribution};let resolved=fromEffect!==void 0||stats.damageDistribution!==void 0;const seen=/* @__PURE__ */new Set;for(const modifier of module.Engineering?.Modifiers??[]){const type=damageTypeForLabel(modifier.Label);if(type===null||seen.has(type))continue;seen.add(type);if(modifier.Value===void 0)continue;distribution[type]=modifier.Value/scaleForLabel(modifier.Label);resolved=true}return resolved?distribution:void 0}function convertsDamage(module){if(module.Engineering?.ExperimentalEffect&&getExperimentalEffect(module.Engineering.ExperimentalEffect)?.damageDistribution){return true}return(module.Engineering?.Modifiers??[]).some(modifier=>damageTypeForLabel(modifier.Label)!==null)}function modifierRatio(module,stats,field){const base=stats?.[field];if(typeof base!=="number"||base===0)return 1;const effective=effectiveStat(module,field,stats);return effective===void 0?1:effective/base}function relatedStat(module,stats,field,ratio){const stated=statedModifier(module,field);if(stated!==void 0)return stated;const base=stats?.[field];return typeof base==="number"?base*ratio:void 0}function effectiveModule(module,stats){if(!stats||!module.Engineering)return stats;const merged={...stats};const fields=new Set(Object.keys(stats));for(const modifier of module.Engineering.Modifiers??[]){const field=fieldForLabel(modifier.Label,stats);if(field)fields.add(field)}for(const key of fields){const capability=effectiveCapability(module,key,stats);if(capability!==void 0){merged[key]=capability;continue}const value=effectiveStat(module,key,stats);if(value!==void 0)merged[key]=value}if(stats.engineeringGroup==="thrusters"){const massRatio=modifierRatio(module,stats,"optMass");const minMass=relatedStat(module,stats,"minMass",massRatio);const maxMass=relatedStat(module,stats,"maxMass",massRatio);if(minMass!==void 0)merged.minMass=minMass;if(maxMass!==void 0)merged.maxMass=maxMass}if(stats.engineeringGroup==="thrusters"||stats.engineeringGroup==="shieldGenerators"){const performanceRatio=modifierRatio(module,stats,"optMultiplier");const minMultiplier=relatedStat(module,stats,"minMultiplier",performanceRatio);const maxMultiplier=relatedStat(module,stats,"maxMultiplier",performanceRatio);if(minMultiplier!==void 0)merged.minMultiplier=minMultiplier;if(maxMultiplier!==void 0)merged.maxMultiplier=maxMultiplier;if(stats.engineeringGroup==="thrusters"){for(const field of["minSpeedMultiplier","optSpeedMultiplier","maxSpeedMultiplier","minRotationMultiplier","optRotationMultiplier","maxRotationMultiplier"]){const value=stats[field];if(value!==void 0)merged[field]=value*performanceRatio}}}const damageDistribution=effectiveDamageDistribution(module,stats);if(damageDistribution)merged.damageDistribution=damageDistribution;if(stats.category==="hardpoint")normalizeEffectiveWeapon(module,merged);if(convertsDamage(module)){delete merged.damageComponents}else if(stats.damageComponents){merged.damageComponents=scaleDamageComponents(stats.damageComponents,stats.damage,typeof merged.damage==="number"?merged.damage:void 0)}return merged}function powerConsumerFor(module,stats){const draw=effectiveStat(module,"powerDraw",stats);if(draw===void 0||draw===0)return null;const mounted=stats?.category==="hardpoint"||stats?.category==="utility";return{draw:draw,priority:priorityOf(module),enabled:isEnabled(module),deployedOnly:mounted&&stats?.alwaysPowered!==true,label:module.Slot,symbol:module.Item}}function powerAvailable(modules,statsFor){for(const module of modules){const stats=statsFor(module);if(!isPowerPlant(module,stats))continue;if(!isEnabled(module))return 0;return effectiveStat(module,"powerCapacity",stats)??0}return 0}function metricIssue(field,reason,module){const defaultSlot=field==="powerCapacity"?"PowerPlant":field==="thrusters"?"MainEngines":void 0;const slot=module?.Slot??defaultSlot;const symbol=module?.Item;const params={field:field,reason:reason,...slot===void 0?{}:{slot:slot},...symbol===void 0?{}:{symbol:symbol}};let message;if(reason==="missing"){message=field==="powerCapacity"?"PowerPlant: no power plant is fitted":field==="thrusters"?"MainEngines: no thrusters are fitted":"no shield generator is fitted"}else if(reason==="unresolved"){const unavailable=field==="thrusters"?"thruster stats":field==="shieldGenerator"?"shield-generator stats":field==="powerCapacity"?"power capacity":field;message=`${truncate(slot??field)}: ${unavailable} unavailable for ${truncate(symbol??field)}`}else if(reason==="disabled"){message=`${truncate(slot??field)}: ${truncate(symbol??field)} is switched off`}else if(reason==="invalid"){message=`${truncate(slot??field)}: ${truncate(symbol??field)} has invalid ${field}`}else{message=`${truncate(slot??field)}: ${truncate(symbol??field)} is not powered with hardpoints retracted`}return{field:field,reason:reason,...slot===void 0?{}:{slot:slot},...symbol===void 0?{}:{symbol:symbol},message:message,params:params}}function powerPlantIssueFor(modules,statsFor){for(const module of modules){const stats=statsFor(module);if(!isPowerPlant(module,stats))continue;if(!isEnabled(module))return metricIssue("powerCapacity","disabled",module);const capacity=effectiveStat(module,"powerCapacity",stats);if(capacity===void 0)return metricIssue("powerCapacity","unresolved",module);return!Number.isFinite(capacity)||capacity<=0?metricIssue("powerCapacity","invalid",module):null}return metricIssue("powerCapacity","missing")}function powerDrawIssueFor(modules,statsFor){for(const module of modules){const consumer=powerConsumerFor(module,statsFor(module));if(consumer&&(!Number.isFinite(consumer.draw)||consumer.draw<0)){return metricIssue("powerDraw","invalid",module)}}return null}function poweredMetricBudgetFor(field,module,stats,modules,getBudget,statsFor){if(!isEnabled(module))return incompleteResult([metricIssue(field,"disabled",module)]);const plantIssue=powerPlantIssueFor(modules,statsFor);if(plantIssue)return incompleteResult([plantIssue]);const drawIssue=powerDrawIssueFor(modules,statsFor);if(drawIssue)return incompleteResult([drawIssue]);const budget=getBudget();return budget.available>0&&poweredStates(module,stats,budget).retracted?completeResult(budget):incompleteResult([metricIssue(field,"shed",module)])}function poweredShieldGeneratorResultFor(modules,getBudget,statsFor){for(const module of modules){if(!startsWithAny(module.Item,PREFIX.shieldGenerator))continue;const stats=statsFor(module);const powered=poweredMetricBudgetFor("shieldGenerator",module,stats,modules,getBudget,statsFor);if(!powered.complete)return powered;return stats===null?incompleteResult([metricIssue("shieldGenerator","unresolved",module)]):completeResult({module:module,budget:powered.value})}return incompleteResult([metricIssue("shieldGenerator","missing")])}function mapResistanceFields(read){return{kineticResistance:read("kineticResistance")??0,thermalResistance:read("thermalResistance")??0,explosiveResistance:read("explosiveResistance")??0,causticResistance:read("causticResistance")??0}}function resistancesOf(module,stats){return mapResistanceFields(field=>effectiveStat(module,field,stats))}function shieldInputFor(ship,modules,budget,systemsPips,statsFor){let generator=null;const boosters=[];let reinforcement=0;for(const module of modules){if(!isEnabled(module))continue;const stats=statsFor(module);if(!(budget.available>0&&poweredStates(module,stats,budget).retracted))continue;if(!generator&&startsWithAny(module.Item,PREFIX.shieldGenerator)){const massRatio=modifierRatio(module,stats,"optMass");const strengthRatio=modifierRatio(module,stats,"optMultiplier");const optMass=effectiveStat(module,"optMass",stats);const minMass=relatedStat(module,stats,"minMass",massRatio);const maxMass=relatedStat(module,stats,"maxMass",Math.max(1,massRatio));const optMultiplier=effectiveStat(module,"optMultiplier",stats);const minMultiplier=relatedStat(module,stats,"minMultiplier",strengthRatio);const maxMultiplier=relatedStat(module,stats,"maxMultiplier",strengthRatio);generator={...optMass===void 0?{}:{optMass:optMass},...minMass===void 0?{}:{minMass:minMass},...maxMass===void 0?{}:{maxMass:maxMass},...optMultiplier===void 0?{}:{optMultiplier:optMultiplier},...minMultiplier===void 0?{}:{minMultiplier:minMultiplier},...maxMultiplier===void 0?{}:{maxMultiplier:maxMultiplier},...resistancesOf(module,stats)}}else if(startsWithAny(module.Item,PREFIX.shieldBooster)){boosters.push({shieldBoost:effectiveStat(module,"shieldBoost",stats)??0,...resistancesOf(module,stats)})}else if(startsWithAny(module.Item,PREFIX.shieldReinforcement)){reinforcement+=effectiveStat(module,"shieldAddition",stats)??0}}return{hullMass:ship.hullMass,baseShieldStrength:ship.baseShieldStrength,generator:generator,boosters:boosters,reinforcement:reinforcement,systemsPips:systemsPips}}function shieldInputResultFor(ship,modules,getBudget,systemsPips,statsFor){const fitted=poweredShieldGeneratorResultFor(modules,getBudget,statsFor);if(!fitted.complete)return fitted;const input=shieldInputFor(ship,modules,fitted.value.budget,systemsPips,statsFor);return completeResult(input)}function mobilityInputResultFor(ship,modules,getBudget,mass,enginesPips,statsFor){let thrusters=null;for(const module of modules){const stats=statsFor(module);if(!isThruster(module,stats))continue;const powered=poweredMetricBudgetFor("thrusters",module,stats,modules,getBudget,statsFor);if(!powered.complete)return powered;const effective=effectiveModule(module,stats);const minMass=effective?.minMass;const optMass=effective?.optMass;const maxMass=effective?.maxMass;const minMultiplier=effective?.minMultiplier;const optMultiplier=effective?.optMultiplier;const maxMultiplier=effective?.maxMultiplier;if(minMass===void 0||optMass===void 0||maxMass===void 0||minMultiplier===void 0||optMultiplier===void 0||maxMultiplier===void 0){return incompleteResult([metricIssue("thrusters","unresolved",module)])}thrusters={minMass:minMass,optMass:optMass,maxMass:maxMass,minMultiplier:minMultiplier,optMultiplier:optMultiplier,maxMultiplier:maxMultiplier,...effective?.optSpeedMultiplier===void 0?{}:{speedCurve:{minMass:minMass,optMass:optMass,maxMass:maxMass,minMultiplier:effective.minSpeedMultiplier??minMultiplier,optMultiplier:effective.optSpeedMultiplier,maxMultiplier:effective.maxSpeedMultiplier??maxMultiplier}},...effective?.optRotationMultiplier===void 0?{}:{rotationCurve:{minMass:minMass,optMass:optMass,maxMass:maxMass,minMultiplier:effective.minRotationMultiplier??minMultiplier,optMultiplier:effective.optRotationMultiplier,maxMultiplier:effective.maxRotationMultiplier??maxMultiplier}}};break}if(!thrusters)return incompleteResult([metricIssue("thrusters","missing")]);return completeResult({minimumSpeed:ship.minimumSpeed,maximumSpeed:ship.maximumSpeed,boost:ship.boost,minPitch:ship.minPitch,pitch:ship.pitch,minRoll:ship.minRoll,roll:ship.roll,minYaw:ship.minYaw,yaw:ship.yaw,mass:typeof mass==="function"?mass():mass,thrusters:thrusters,enginesPips:enginesPips})}function shieldRecoveryInputResultFor(ship,modules,getBudget,systemsPips,statsFor){const generator=poweredShieldGeneratorResultFor(modules,getBudget,statsFor);if(!generator.complete)return generator;const{module:generatorModule,budget:budget}=generator.value;let distributor=null;for(const module of modules){const stats=statsFor(module);if(isPowerDistributor(module,stats)&&isEnabled(module)&&budget.available>0&&poweredStates(module,stats,budget).retracted)distributor=module}const generatorStats=statsFor(generatorModule);const distributorStats=distributor?statsFor(distributor):null;const strength=shieldMetrics(shieldInputFor(ship,modules,budget,0,statsFor)).strength;return completeResult({strength:strength,regenRate:effectiveStat(generatorModule,"shieldRegenRate",generatorStats)??0,brokenRegenRate:effectiveStat(generatorModule,"shieldBrokenRegenRate",generatorStats)??0,distributorDraw:effectiveStat(generatorModule,"distributorDraw",generatorStats)??.6,systemsCapacity:distributor?effectiveStat(distributor,"systemsCapacity",distributorStats)??0:0,systemsRecharge:distributor?effectiveStat(distributor,"systemsRecharge",distributorStats)??0:0,systemsPips:systemsPips})}function weaponsCapacitorInputFor(modules,weaponsPips,budget,statsFor){let weaponsCapacity=0;let weaponsRecharge=0;let sustainedEnergyPerSecond=0;for(const module of modules){if(!isEnabled(module))continue;const stats=statsFor(module);if(!poweredStates(module,stats,budget).deployed)continue;if(isPowerDistributor(module,stats)){weaponsCapacity=effectiveStat(module,"weaponsCapacity",stats)??0;weaponsRecharge=effectiveStat(module,"weaponsRecharge",stats)??0}const weapon=weaponStatsFor(module,stats);if(weapon){sustainedEnergyPerSecond+=weaponMetrics(weapon).sustainedEnergyPerSecond}}return{weaponsCapacity:weaponsCapacity,weaponsRecharge:weaponsRecharge,sustainedEnergyPerSecond:sustainedEnergyPerSecond,weaponsPips:weaponsPips}}function distributorInputFor(modules,pips,budget,statsFor){for(const module of modules){if(!isEnabled(module))continue;const stats=statsFor(module);if(!isPowerDistributor(module,stats))continue;if(!poweredStates(module,stats,budget).retracted)return null;const systemsCapacity=effectiveStat(module,"systemsCapacity",stats);const systemsRecharge=effectiveStat(module,"systemsRecharge",stats);const enginesCapacity=effectiveStat(module,"enginesCapacity",stats);const enginesRecharge=effectiveStat(module,"enginesRecharge",stats);const weaponsCapacity=effectiveStat(module,"weaponsCapacity",stats);const weaponsRecharge=effectiveStat(module,"weaponsRecharge",stats);if(systemsCapacity===void 0||systemsRecharge===void 0||enginesCapacity===void 0||enginesRecharge===void 0||weaponsCapacity===void 0||weaponsRecharge===void 0){return null}return{systemsCapacity:systemsCapacity,systemsRecharge:systemsRecharge,enginesCapacity:enginesCapacity,enginesRecharge:enginesRecharge,weaponsCapacity:weaponsCapacity,weaponsRecharge:weaponsRecharge,...pips}}return null}function heatInputFor(ship,modules,budget,statsFor){let heatEfficiency;let thrusterHeatRate=0;let deployedThrusterHeatRate=0;let fsdHeatRate=0;let weaponsCapacity=0;const weapons=[];for(const module of modules){const stats=statsFor(module);if(isPowerPlant(module,stats)){if(!isEnabled(module))return null;heatEfficiency=effectiveStat(module,"heatEfficiency",stats);continue}if(!isEnabled(module))continue;const running=poweredStates(module,stats,budget);if(isThruster(module,stats)){const heat=effectiveStat(module,"engineHeatRate",stats)??0;if(running.retracted)thrusterHeatRate+=heat;if(running.deployed)deployedThrusterHeatRate+=heat}else if(isFrameShiftDrive(module,stats)){if(running.retracted)fsdHeatRate+=effectiveStat(module,"fsdHeatRate",stats)??0}else if(isPowerDistributor(module,stats)){if(running.deployed){weaponsCapacity=effectiveStat(module,"weaponsCapacity",stats)??0}}const weapon=weaponStatsFor(module,stats);if(!running.deployed)continue;if(!weapon)continue;weapons.push({heatPerSecond:weaponMetrics(weapon).sustainedHeatPerSecond,distributorDraw:weapon.distributorDraw??0})}if(heatEfficiency===void 0)return null;return{heatCapacity:ship.heatCapacity,heatDissipation:ship.heatDissipation,heatEfficiency:heatEfficiency,retractedPowerDraw:poweredDraw(budget,"retracted"),deployedPowerDraw:poweredDraw(budget,"deployed"),thrusterHeatRate:thrusterHeatRate,deployedThrusterHeatRate:deployedThrusterHeatRate,fsdHeatRate:fsdHeatRate,weaponsCapacity:weaponsCapacity,weapons:weapons}}function poweredDraw(budget,state){const powered=state==="retracted"?"poweredRetracted":"poweredDeployed";return budget.bands.reduce((total,band)=>band[powered]?total+band[state]:total,0)}function poweredStates(module,stats,budget){const draw=effectiveStat(module,"powerDraw",stats);if(draw===void 0||draw===0)return{retracted:true,deployed:true};const band=budget.bands[Math.min(budget.bands.length,Math.max(1,priorityOf(module)))-1];if(!band)return{retracted:true,deployed:true};return{retracted:band.poweredRetracted,deployed:band.poweredDeployed}}function cellBankInputsFor(modules,budget,statsFor){const banks=[];for(const module of modules){if(!startsWithAny(module.Item,PREFIX.shieldCellBank))continue;const stats=statsFor(module);const effective=effectiveModule(module,stats);const ammunition=effective?ammunitionCapacity(effective):null;banks.push({slot:module.Slot,symbol:module.Item,reinforcementRate:effective?.shieldBankReinforcement??0,cells:ammunition?.total??0,spinUp:effective?.shieldBankSpinUp??0,duration:effective?.shieldBankDuration??0,heat:effective?.shieldBankHeat??0,powered:budget.available>0&&isEnabled(module)&&poweredStates(module,stats,budget).deployed})}return banks}function stockBulkhead(ship){const variants=getBulkheadsForShip(ship.name,CORE_MODULES);return variants.find(v=>v.symbol.toLowerCase().endsWith("_default"))??variants.find(v=>v.mass===0)??variants[0]??null}function armourInputFor(ship,modules,statsFor){const reinforcements=[];const moduleReinforcements=[];let bulkhead=null;for(const module of modules){if(!isEnabled(module))continue;const stats=statsFor(module);if(module.Slot.toLowerCase()==="armour"){bulkhead={hullBoost:effectiveStat(module,"hullBoost",stats)??0,...resistancesOf(module,stats)}}else if(startsWithAny(module.Item,PREFIX.hullReinforcement)){const boost=getLoadoutModifier(module,"DefenceModifierHealthMultiplier");reinforcements.push({hullReinforcement:effectiveStat(module,"hullReinforcement",stats)??0,hullBoost:boost===null?0:boost/scaleForLabel("DefenceModifierHealthMultiplier"),...resistancesOf(module,stats)})}else if(startsWithAny(module.Item,PREFIX.moduleReinforcement)){moduleReinforcements.push({moduleProtection:effectiveStat(module,"moduleProtection",stats)??0,integrity:effectiveStat(module,"integrity",stats)??0})}}if(!bulkhead){const stock=stockBulkhead(ship);bulkhead=stock?{hullBoost:stock.hullBoost??0,...mapResistanceFields(field=>stock[field])}:null}return{baseArmour:ship.baseArmour,bulkhead:bulkhead,reinforcements:reinforcements,moduleReinforcements:moduleReinforcements}}var WEAPON_FIELDS=["damage","roundsPerShot","rateOfFire","burstInterval","burstRounds","burstRateOfFire","chargeTime","clipSize","ammoMaximum","reloadTime","distributorDraw","thermalLoad","powerDraw","maximumRange","falloffRange","armourPiercing"];function weaponStatsFor(module,stats){if(!stats||stats.category!=="hardpoint")return null;const weapon={};for(const field of WEAPON_FIELDS){const value=effectiveStat(module,field,stats);if(value!==void 0)weapon[field]=value}normalizeEffectiveWeapon(module,weapon);const damageDistribution=effectiveDamageDistribution(module,stats);if(damageDistribution)weapon.damageDistribution=damageDistribution;if(stats.damageComponents&&!convertsDamage(module)){weapon.damageComponents=scaleDamageComponents(stats.damageComponents,stats.damage,typeof weapon.damage==="number"?weapon.damage:void 0)}if(stats.projectileRange)weapon.projectileRange={...stats.projectileRange};return weapon}function burstAdjustedRateOfFire(module,weapon){if(getLoadoutModifier(module,"RateOfFire")!==null)return void 0;const touched=["BurstSize","BurstRateOfFire","BurstInterval"].some(label=>getLoadoutModifier(module,label)!==null);if(!touched)return void 0;return combinedRateOfFire(weapon)}function normalizeEffectiveWeapon(module,weapon){const rate=burstAdjustedRateOfFire(module,weapon);if(rate!==void 0)weapon.rateOfFire=rate;const statedDamagePerSecond=getLoadoutModifier(module,"DamagePerSecond");const firingFactor=Number(weapon.roundsPerShot??1)*Number(weapon.rateOfFire??1);if(statedDamagePerSecond!==null&&firingFactor>0){weapon.damage=statedDamagePerSecond/firingFactor}const{maximumRange:maximumRange,falloffRange:falloffRange}=weapon;if(maximumRange!==void 0&&falloffRange!==void 0&&falloffRange>maximumRange){weapon.falloffRange=maximumRange}}var MILITARY_PREFIXES=["int_hullreinforcement","int_metaalloyhullreinforcement","int_modulereinforcement","int_shieldcellbank","int_guardianhullreinforcement","int_guardianmodulereinforcement","int_guardianshieldreinforcement"];var MINING_PREFIXES=["hpt_mininglaser","hpt_mining_abrblstr","hpt_mining_seismchrgwarhd","hpt_mining_subsurfdispmisle","hpt_human_extraction","hpt_miningtoolv2"];var CARGO_PREFIXES=["int_cargorack","int_largecargorack","int_corrosionproofcargorack","int_fueltank"];var RESTRICTED_SLOT_PREFIXES={mining:MINING_PREFIXES,military:MILITARY_PREFIXES,cargo:CARGO_PREFIXES,limpetController:["int_dronecontrol","int_multidronecontrol"],vesselHangar:["int_fighterbay"],passenger:["int_passengercabin","int_mkii_passengercabin"],planetaryApproachSuite:["int_planetapproachsuite"]};var problem=(constraint,message,params)=>({constraint:constraint,message:message,...params===void 0?{}:{params:params}});function restrictionProblem(slot,symbol){const restriction=slot.restriction;if(!restriction)return null;if(RESTRICTED_SLOT_PREFIXES[restriction].some(prefix=>symbol.startsWith(prefix))){return null}return problem("restrictedMount",`slot only takes ${SLOT_RESTRICTION_LABELS[restriction]}`,{restriction:restriction})}function moduleSlotProblem(slot,module){const required=module.restrictedToSlot;if(!required||slot.restriction===required)return null;return problem("restrictedMount",`module only fits a mount that takes ${SLOT_RESTRICTION_LABELS[required]}`,{restriction:required})}function moduleFitProblem(shipSymbol,slot,module){if(slot.kind==="cargoHatch"){return problem("immutableSlot","the cargoHatch slot cannot be changed")}if(slot.kind==="armour"){const hull=getShipBySymbol(shipSymbol);if(module.slot!=="armour"||module.ship===void 0){return problem("armourRequired","not a ship armour module")}if(!hull||module.ship.toLowerCase()!==hull.name.toLowerCase()){const armourHull=getShipByName(module.ship);return problem("wrongHullArmour",`armour belongs to ${truncate(module.ship)}, not ${truncate(hull?.name??shipSymbol)}`,{armourShipName:module.ship,...armourHull===null?{}:{armourShipSymbol:armourHull.symbol},shipSymbol:shipSymbol,...hull===null?{}:{shipName:hull.name}})}return null}const restricted=module.restrictedToShips;if(restricted&&!restricted.some(symbol2=>symbol2.toLowerCase()===shipSymbol.toLowerCase())){const allowedShipNames=restricted.map(symbol2=>{const hull=getShipBySymbol(symbol2);return hull?.name??symbol2});const labels=restricted.map((symbol2,index)=>{const name=allowedShipNames[index];return name===symbol2?symbol2:`${name} (${symbol2})`});return problem("restrictedHull",`module is restricted to ${truncate(labels.join(", "))}`,{allowedShipNames:allowedShipNames,allowedShipSymbols:[...restricted],shipSymbol:shipSymbol})}const wrongMount=moduleSlotProblem(slot,module);if(wrongMount)return wrongMount;const symbol=module.symbol.toLowerCase();const moduleSlot=module.slot;switch(slot.kind){case"core":if(moduleSlot!==slot.core){return problem("wrongCoreType",`not a ${slot.core} module`,{requiredCore:slot.core,moduleSlot:moduleSlot??"none"})}break;case"hardpoint":{if(module.category!=="hardpoint"){return problem("hardpointRequired","not a hardpoint weapon")}const restricted2=restrictionProblem(slot,symbol);if(restricted2)return restricted2;break}case"utility":if(module.category!=="utility"){return problem("utilityRequired","not a utility module")}return null;case"optional":{const isFuelTank=moduleSlot==="fuelTank";if(module.category!=="internal"&&!isFuelTank){return problem("optionalInternalRequired","not an optional-internal module")}if(moduleSlot&&!isFuelTank){return problem("coreModuleInOptionalSlot","a core module only fits its core slot")}const restricted2=restrictionProblem(slot,symbol);if(restricted2)return restricted2;break}}return module.class>slot.size?problem("oversized",`module size ${truncate(module.class)} exceeds slot size ${slot.size}`,{moduleClass:module.class,slotSize:slot.size}):null}function moduleFitError(shipSymbol,slot,module){return moduleFitProblem(shipSymbol,slot,module)?.message??null}var REBUY_FRACTION=.05;function exportLoadoutEvent(input,options){const fromSource=options.credits==="source";const source=fromSource?input.sourcePurchase:null;const totals=source!==null&&!input.sourceTotalsVoided&&sourceTotalsHold(input.modules,source)?source:null;const hullValue=fromSource?source?.hullValue??null:input.retailHullValue;const modulesValue=fromSource?totals?.modulesValue??null:computedModulesValue(input.modules,input.statsFor);const rebuy=fromSource?totals?.rebuy??null:hullValue===null||modulesValue===null?null:Math.trunc((hullValue+modulesValue)*REBUY_FRACTION);return{event:"Loadout",Ship:input.shipSymbol.toLowerCase(),...input.shipName===void 0?{}:{ShipName:input.shipName},...input.shipIdent===void 0?{}:{ShipIdent:input.shipIdent},...hullValue===null?{}:{HullValue:hullValue},...modulesValue===null?{}:{ModulesValue:modulesValue},UnladenMass:input.unladenMass,CargoCapacity:input.cargoCapacity,...input.maxJumpRange===null?{}:{MaxJumpRange:input.maxJumpRange},FuelCapacity:{Main:input.fuelCapacity.main,Reserve:input.fuelCapacity.reserve},...rebuy===null?{}:{Rebuy:rebuy},Modules:exportModules(input,options,fromSource)}}function exportModules(input,options,fromSource){const ordered=options.moduleOrder==="slots"?slotOrderedModules(input.modules,input.layout):[...input.modules.values()];return ordered.map(module=>{const on=module.On??(options.explicitPower?true:void 0);const priority=module.Priority??(options.explicitPower?0:void 0);const value=fromSource?sourceModuleValue(module,input.sourcePurchase):moduleValue(module,input.statsFor);return{Slot:module.Slot,Item:module.Item.toLowerCase(),...on===void 0?{}:{On:on},...priority===void 0?{}:{Priority:priority},...module.Health===void 0?{}:{Health:module.Health},...typeof value==="number"?{Value:value}:{},...module.Engineering===void 0?{}:{Engineering:cloneLoadoutModule(module).Engineering}}})}function slotOrderedModules(modules,layout){return orderBySlotLayout([...modules.values()],layout,module=>module.Slot)}function computedModulesValue(modules,statsFor){let sum=0;for(const module of modules.values()){const value=moduleValue(module,statsFor);if(value==="unknown")return null;if(value!=="free")sum+=value}return sum}function moduleValue(module,statsFor){const stats=statsFor(module);if(stats!==null)return stats.cost??"unknown";return isNonOutfittingSlot(module.Slot)||isBuiltInHullModule(module)?"free":"unknown"}var SOURCE_ITEM="ShipLoadout: sourcePurchase moduleValues[].item";function sourceModuleValue(module,source){const entry=source===null?null:getSourceModuleValue(source,module.Slot);if(entry===null)return"unknown";return normalizeKey(entry.item,SOURCE_ITEM)===normalizeKey(module.Item,FITTED_ITEM)?entry.value:"unknown"}function sourceTotalsHold(modules,source){for(const entry of source.moduleValues){const key=matchingKeyIn(modules,entry.slot);const fitted=key===null?void 0:modules.get(key);if(!fitted)return false;if(isCargoHatchSlot(entry.slot)&&entry.value===0)continue;if(normalizeKey(fitted.Item,FITTED_ITEM)!==normalizeKey(entry.item,SOURCE_ITEM)){return false}}return true}function captureLoadoutEvent(event){const modules=event.Modules;const shipName=event.ShipName;const shipIdent=event.ShipIdent;const hullValue=event.HullValue;const modulesValue=event.ModulesValue;const rebuy=event.Rebuy;const unladenMass=event.UnladenMass;const cargoCapacity=event.CargoCapacity;const fuelCapacity=event.FuelCapacity;return{Ship:event.Ship,Modules:Array.isArray(modules)?captureEach(modules,captureModule):modules,...shipName===void 0?{}:{ShipName:shipName},...shipIdent===void 0?{}:{ShipIdent:shipIdent},...hullValue===void 0?{}:{HullValue:hullValue},...modulesValue===void 0?{}:{ModulesValue:modulesValue},...rebuy===void 0?{}:{Rebuy:rebuy},...unladenMass===void 0?{}:{UnladenMass:unladenMass},...cargoCapacity===void 0?{}:{CargoCapacity:cargoCapacity},...fuelCapacity===void 0?{}:{FuelCapacity:{...fuelCapacity}}}}function captureEach(values,capture){const captured=[];const{length:length}=values;for(let index=0;index<length;index++)captured.push(capture(values[index]));return captured}function captureModule(module){if(module===null||typeof module!=="object")return module;const on=module.On;const priority=module.Priority;const health=module.Health;const value=module.Value;const engineering=module.Engineering;return{Slot:module.Slot,Item:module.Item,...on===void 0?{}:{On:on},...priority===void 0?{}:{Priority:priority},...health===void 0?{}:{Health:health},...value===void 0?{}:{Value:value},...engineering===void 0?{}:{Engineering:captureEngineering(engineering)}}}function captureEngineering(engineering){if(engineering===null||typeof engineering!=="object")return engineering;const experimental=engineering.ExperimentalEffect;const experimentalLocalised=engineering.ExperimentalEffect_Localised;const modifiers=engineering.Modifiers;return{BlueprintName:engineering.BlueprintName,Level:engineering.Level,Quality:engineering.Quality,...experimental===void 0?{}:{ExperimentalEffect:experimental},...experimentalLocalised===void 0?{}:{ExperimentalEffect_Localised:experimentalLocalised},...modifiers===void 0?{}:{Modifiers:Array.isArray(modifiers)?captureEach(modifiers,modifier=>modifier!==null&&typeof modifier==="object"?{...modifier}:modifier):modifiers}}}function hullLayout(shipSymbol){const slots=getShipSlots(shipSymbol);return slots?enumerateSlots(slots):[]}function fixedMountRejects(shipSymbol,layout,slot,stats){const mount=layout.find(candidate=>candidate.key.toLowerCase()===slot.toLowerCase());return mount!==void 0&&moduleFitProblem(shipSymbol,mount,stats)!==null}function normalizeLoadoutEvent(rawEvent){const event=captureLoadoutEvent(rawEvent);requireString(event.Ship,"ShipLoadout.fromLoadout: event.Ship");if(!Array.isArray(event.Modules)){throw new TypeError(`ShipLoadout.fromLoadout: event.Modules must be an array, received ${describeValue(event.Modules)}`)}const modules=/* @__PURE__ */new Map;const slots=/* @__PURE__ */new Set;for(const module of event.Modules){if(module===null||typeof module!=="object"){throw new TypeError(`ShipLoadout.fromLoadout: event.Modules[] must hold module objects, received ${describeValue(module)}`)}requireString(module.Slot,"ShipLoadout.fromLoadout: module.Slot");requireString(module.Item,"ShipLoadout.fromLoadout: module.Item");if(module.Engineering!==void 0){if(module.Engineering===null||typeof module.Engineering!=="object"){throw new TypeError(`ShipLoadout.fromLoadout: module.Engineering must be an object, received ${describeValue(module.Engineering)}`)}requireStringIfPresent(module.Engineering.BlueprintName,"ShipLoadout.fromLoadout: module.Engineering.BlueprintName");requireStringIfPresent(module.Engineering.ExperimentalEffect,"ShipLoadout.fromLoadout: module.Engineering.ExperimentalEffect");if(module.Engineering.Modifiers!==void 0&&!Array.isArray(module.Engineering.Modifiers)){throw new TypeError(`ShipLoadout.fromLoadout: module.Engineering.Modifiers must be an array, received ${describeValue(module.Engineering.Modifiers)}`)}for(const[index,modifier]of(module.Engineering.Modifiers??[]).entries()){if(modifier===null||typeof modifier!=="object"){throw new TypeError(`ShipLoadout.fromLoadout: module.Engineering.Modifiers[${index}] must be an object, received ${describeValue(modifier)}`)}requireString(modifier.Label,`ShipLoadout.fromLoadout: module.Engineering.Modifiers[${index}].Label`)}}const normalizedSlot=module.Slot.toLowerCase();if(slots.has(normalizedSlot)){throw new TypeError(`ShipLoadout.fromLoadout: duplicate slot "${truncate(module.Slot)}"`)}slots.add(normalizedSlot);modules.set(module.Slot,cloneLoadoutModule(module))}const top={};if(event.ShipName!==void 0)top.ShipName=event.ShipName;if(event.ShipIdent!==void 0)top.ShipIdent=event.ShipIdent;if(event.HullValue!==void 0)top.HullValue=event.HullValue;if(event.ModulesValue!==void 0)top.ModulesValue=event.ModulesValue;if(event.Rebuy!==void 0)top.Rebuy=event.Rebuy;if(event.UnladenMass!==void 0)top.UnladenMass=event.UnladenMass;if(event.CargoCapacity!==void 0)top.CargoCapacity=event.CargoCapacity;if(event.FuelCapacity!==void 0)top.FuelCapacity={...event.FuelCapacity};let invalidatesAggregates=false;const outcomes=[];const defaults=getDefaultLoadout(event.Ship)?.modules??[];let layout;for(const[slot,module]of modules){if(isNonOutfittingSlot(slot)||isBuiltInHullModule(module))continue;const stats=builtInModuleBySymbol(module.Item,"ShipLoadout.fromLoadout: module.Item");const slotKind=parseSlotName(slot)?.kind;const fallback=slotKind==="core"||slotKind==="armour"||slotKind==="cargoHatch"?defaults.find(candidate=>candidate.slot.toLowerCase()===slot.toLowerCase()):void 0;const rejected=fallback!==void 0&&(stats===null||slotKind==="cargoHatch"||fixedMountRejects(event.Ship,layout??=hullLayout(event.Ship),slot,stats));if(stats!==null&&!rejected)continue;if(fallback){modules.set(slot,{Slot:slot,Item:fallback.symbol,...module.On===void 0?{}:{On:module.On},...module.Priority===void 0?{}:{Priority:module.Priority},...module.Health===void 0?{}:{Health:module.Health}});outcomes.push({action:"defaulted",slot:slot,sourceSymbol:module.Item,replacementSymbol:fallback.symbol})}else{modules.delete(slot);outcomes.push({action:"emptied",slot:slot,sourceSymbol:module.Item})}invalidatesAggregates=true}for(const fallback of defaults){const slotKind=parseSlotName(fallback.slot)?.kind;if(slotKind!=="core"&&slotKind!=="armour"&&slotKind!=="cargoHatch"||matchingKeyIn(modules,fallback.slot)!==null){continue}const slot=ownKeyIn(modules,fallback.slot);modules.set(slot,{Slot:slot,Item:fallback.symbol});outcomes.push({action:"defaulted",slot:slot,sourceSymbol:null,replacementSymbol:fallback.symbol});if(slotKind==="core")invalidatesAggregates=true}if(invalidatesAggregates){delete top.ModulesValue;delete top.Rebuy;delete top.UnladenMass;delete top.CargoCapacity;delete top.FuelCapacity}const moduleStats=/* @__PURE__ */new Map;const primitiveModifiers=/* @__PURE__ */new Map;for(const module of modules.values()){const engineering=module.Engineering;const variant=identifyPreEngineeredVariant(module);const catalogueVariantStats=variant?getPreEngineeredStats(variant):null;let variantStats=catalogueVariantStats;const retainsBakedExperimental=variant?.experimental!==void 0&&typeof engineering?.ExperimentalEffect==="string"&&variant.experimental.trim().toLowerCase()===engineering.ExperimentalEffect.trim().toLowerCase();if(variant&&catalogueVariantStats&&!catalogueVariantStats.engineeringLocked&&!retainsBakedExperimental){const{experimental:originalExperimental,...withoutExperimental}=variant;const currentExperimental=engineering?.ExperimentalEffect;const currentVariant=typeof currentExperimental==="string"?{...withoutExperimental,experimental:currentExperimental}:withoutExperimental;variantStats=getPreEngineeredStats(withoutExperimental);primitiveModifiers.set(module.Slot,[...engineering?.Modifiers??[],...getPreEngineeredModifiers(currentVariant)])}if(variantStats)moduleStats.set(module.Slot,cloneModuleStats(variantStats));const guardianFinal=typeof engineering?.BlueprintName==="string"&&isFinalGuardianWeaponEngineering(module.Item,engineering.BlueprintName);if(variantStats?.engineeringLocked||typeof engineering?.BlueprintName!=="string"||!guardianFinal){continue}const normalizedBlueprint=normalizeKey(engineering.BlueprintName,"ShipLoadout.fromLoadout: module.Engineering.BlueprintName");const normalizedExperimental=normalizeKey(engineering.ExperimentalEffect,"ShipLoadout.fromLoadout: module.Engineering.ExperimentalEffect");const variants=getPreEngineeredVariants(module.Item);const exact=variants.find(candidate=>candidate.engineeringLocked===true&&candidate.blueprint.toLowerCase()===normalizedBlueprint&&candidate.grade===engineering.Level&&candidate.experimental?.toLowerCase()===normalizedExperimental);const guardianBase=variants.find(candidate=>candidate.engineeringLocked===true&&candidate.blueprint.toLowerCase()===normalizedBlueprint&&candidate.grade===engineering.Level&&candidate.experimental===void 0);const stats=exact?getPreEngineeredStats(exact):guardianBase&&engineering.ExperimentalEffect!==void 0?getPreEngineeredStats({...guardianBase,experimental:engineering.ExperimentalEffect}):builtInModuleBySymbol(module.Item,"ShipLoadout.fromLoadout: module.Item");if(stats){moduleStats.set(module.Slot,cloneModuleStats({...stats,engineeringLocked:true}))}}return{shipSymbol:event.Ship,modules:modules,moduleStats:moduleStats,primitiveModifiers:primitiveModifiers,top:top,sourcePurchase:sourcePurchaseFromLoadout(event),outcomes:deepFreeze(outcomes)}}var SLOT_KEY="ShipLoadout: slotKey";var requireLoadOptions=(scope,options)=>{for(const field of["fuel","cargo"]){const value=options[field];if(value!==void 0&&(!Number.isFinite(value)||value<0)){throw new RangeError(`${scope}: ${field} must be a finite non-negative number`)}}};var requireEnginesPips=(scope,enginesPips)=>{if(!Number.isFinite(enginesPips)||enginesPips<0||enginesPips>4){throw new RangeError(`${scope}: enginesPips must be a finite number from 0 to 4`)}return enginesPips};var requireSystemsPips=(scope,systemsPips)=>{if(!Number.isFinite(systemsPips)||systemsPips<0||systemsPips>4){throw new RangeError(`${scope}: systemsPips must be a finite number from 0 to 4`)}return systemsPips};var LoadoutEditError=class extends TypeError{code;constraint;params;constructor(message,code,params,constraint){super(message);this.code=code;this.params=deepFreeze(structuredClone(params));if(constraint!==void 0)this.constraint=constraint}};var experimentalEffectUnsupported=(code,params)=>deepFreeze({kind:"unsupported",code:code,params:params});var engineeringNormalizationUnsupported=(code,params)=>deepFreeze({kind:"unsupported",code:code,params:params});var AGGREGATE_STATS=["mass","cargoCapacity","fuelCapacity"];var ShipLoadout=class _ShipLoadout{#ship;#shipSymbol;#modules;#moduleStats;#primitiveModifiers;#top;#sourcePurchase;#importOutcomes;#slotCache=/* @__PURE__ */new Map;#layoutCache;constructor(ship,shipSymbol,modules,top,sourcePurchase=null,moduleStats=/* @__PURE__ */new Map,primitiveModifiers=/* @__PURE__ */new Map,importOutcomes=deepFreeze([])){this.#ship=ship;this.#shipSymbol=shipSymbol;this.#modules=modules;this.#top=top;this.#sourcePurchase=sourcePurchase;this.#moduleStats=moduleStats;this.#primitiveModifiers=primitiveModifiers;this.#importOutcomes=importOutcomes}static fromSlef(input,index=0){const entries=parseSlef(input);const entry=entries[index];if(!entry){throw new TypeError(`ShipLoadout.fromSlef: no entry at index ${truncate(index)} (have ${entries.length})`)}const imported=normalizeLoadoutEvent(entry.data);const ship=getShipBySymbol(imported.shipSymbol);if(!ship){throw new TypeError(`ShipLoadout.fromSlef: unknown hull "${truncate(imported.shipSymbol)}"`)}return _ShipLoadout.#fromImported(imported,ship)}static fromLoadout(event){if(event===null||typeof event!=="object"){throw new TypeError(`ShipLoadout.fromLoadout: event must be a Loadout event, received ${describeValue(event)}`)}const imported=normalizeLoadoutEvent(event);const ship=getShipBySymbol(imported.shipSymbol);if(!ship){throw new TypeError(`ShipLoadout.fromLoadout: unknown hull "${truncate(imported.shipSymbol)}"`)}return _ShipLoadout.#fromImported(imported,ship)}static#fromImported(imported,ship){return new _ShipLoadout(ship,imported.shipSymbol,imported.modules,imported.top,imported.sourcePurchase,imported.moduleStats,imported.primitiveModifiers,imported.outcomes)}static empty(shipSymbol){const requested=requireString(shipSymbol,"ShipLoadout.empty: shipSymbol");const ship=getShipBySymbol(requested);if(!ship){throw new TypeError(`ShipLoadout.empty: no slot layout for hull "${truncate(shipSymbol)}"`)}const fitted=(getDefaultLoadout(ship.symbol)?.modules??[]).filter(module=>{const parsed=parseSlotName(module.slot);return parsed!==null&&fixedSlotReason(parsed)!==null});return new _ShipLoadout(ship,ship.symbol,new Map(fitted.map(module=>[module.slot,{Slot:module.slot,Item:module.symbol}])),{})}static default(shipSymbol){const requested=requireString(shipSymbol,"ShipLoadout.default: shipSymbol");const ship=getShipBySymbol(requested);if(!ship){throw new TypeError(`ShipLoadout.default: no default loadout for hull "${truncate(shipSymbol)}"`)}const loadout=getDefaultLoadout(ship.symbol);return new _ShipLoadout(ship,loadout.symbol,new Map(loadout.modules.map(module=>[module.slot,{Slot:module.slot,Item:module.symbol}])),{})}get shipSymbol(){return this.#shipSymbol}get shipName(){return this.#top.ShipName??null}get shipIdent(){return this.#top.ShipIdent??null}get unladenMass(){return this.#top.UnladenMass??this.#computedUnladenMass()}#computedUnladenMass(){return calculateUnladenMass(this.#ship.hullMass,this.#calculationModules())}get fuelCapacity(){const cap=this.#top.FuelCapacity;if(cap?.Main!==void 0&&cap.Reserve!==void 0){return Object.freeze({main:cap.Main,reserve:cap.Reserve})}const computed=this.#computedFuelCapacity();return Object.freeze({main:cap?.Main??computed.main,reserve:cap?.Reserve??computed.reserve})}get cargoCapacity(){return this.#top.CargoCapacity??this.#computedCargoCapacity()}#computedCargoCapacity(){return calculateCargoCapacity(this.#calculationModules())}#computedFuelCapacity(){return calculateFuelCapacity(this.#ship.reserveFuelCapacity,this.#calculationModules())}get hullValue(){return this.#top.HullValue??null}get modulesValue(){return this.#top.ModulesValue??null}get rebuy(){return this.#top.Rebuy??null}get sourcePurchase(){return this.#sourcePurchase}get importOutcomes(){return this.#importOutcomes}get validation(){const slots=this.#layout();const byKey=new Map(slots.map(slot=>[slot.key.toLowerCase(),slot]));const modules=[...this.#modules.values()].map(module=>{const stats=this.#statsFor(module);const slot=byKey.get(module.Slot.toLowerCase());const builtIn=stats===null&&isNonOutfittingSlot(module.Slot)||isBuiltInHullModule(module);const fitProblem=stats&&slot&&!builtIn?moduleFitProblem(this.#shipSymbol,slot,stats):null;return{slot:module.Slot,symbol:module.Item,requiresKnownSlot:!builtIn,fitError:fitProblem?.message??null,...fitProblem===null?{}:{fitConstraint:fitProblem.constraint},...fitProblem?.params===void 0?{}:{fitParams:fitProblem.params},...stats?.exclusionGroup===void 0?{}:{exclusionGroup:stats.exclusionGroup},...stats?.limitGroup===void 0?{}:{limitGroup:stats.limitGroup},...stats?.limitIncrease===void 0?{}:{limitIncrease:stats.limitIncrease}}});return validateLoadout({shipSymbol:this.#shipSymbol,slots:slots,modules:modules})}slots(kind){const cached=this.#slotCache.get(kind);if(cached!==void 0)return cached;const slots=kind===void 0?this.#layout():this.#layout().filter(slot=>slot.kind===kind);const currentLimits=this.#moduleLimits();const value=deepFreeze(slots.map(slot=>{const stats=this.#moduleStatsAt(slot.key);const fixedReason=fixedSlotReason(slot);const immovableReason=fixedReason!==null?fixedReason:stats?.limitIncrease!==void 0&&this.#moduleLimitRegression(slot.key,null,currentLimits,stats)!==null?"moduleLimit":null;return{...slot,name:loadoutSlotName(slot),module:this.fittedModuleAt(slot.key),removable:immovableReason===null,...immovableReason===null?{}:{immovableReason:immovableReason}}}));this.#slotCache.set(kind,value);return value}fittedModuleAt(slotKey){const module=this.#fittedModuleFor(slotKey);if(!module)return null;const raw=cloneLoadoutModule(module);const stats=this.#statsFor(module);const effective=effectiveModule(this.#moduleForEffectiveStats(module),stats);return deepFreeze({slot:module.Slot,symbol:raw.Item,on:raw.On,priority:raw.Priority,health:raw.Health,value:raw.Value,engineering:raw.Engineering,raw:raw,stats:stats===null?null:cloneModuleStats(stats),effectiveStats:effective===null?null:cloneModuleStats(effective),ammunition:ammunitionCapacity(effective),preEngineeredVariant:identifyPreEngineeredVariant(raw)})}fittedModules(){return deepFreeze([...this.#modules.keys()].flatMap(key=>{const fitted=this.fittedModuleAt(key);return fitted===null?[]:[fitted]}))}availableBlueprints(slotKey){const module=this.#fittedModuleFor(slotKey);return deepFreeze(module?availableBlueprintsFor(module.Item,this.#statsFor(module)):[])}availableExperimentalEffects(slotKey){const module=this.#fittedModuleFor(slotKey);return deepFreeze(module?availableExperimentalsFor(module.Item,this.#statsFor(module)):[])}modulesForSlot(slotKey){const slot=this.#requireSlot(slotKey);const occupied=new Set([...this.#modules.values()].flatMap(fitted=>{if(fitted.Slot.toLowerCase()===slot.key.toLowerCase())return[];const group=this.#statsFor(fitted)?.exclusionGroup;return group===void 0?[]:[group]}));const currentLimits=this.#moduleLimits();const currentStats=this.#moduleStatsAt(slot.key);return ALL_MODULES.filter(module=>moduleFitError(this.#shipSymbol,slot,module)===null&&(module.exclusionGroup===void 0||!occupied.has(module.exclusionGroup))&&this.#moduleLimitRegression(slot.key,module,currentLimits,currentStats)===null)}repairFixedMount(slotKey){const requested=requireString(slotKey,SLOT_KEY);const wanted=requested.toLowerCase();const slot=this.#requireSlot(requested);const fittedKey=this.#fittedKey(requested);const resultSlot=fittedKey??requested;const canonicalKey=slot.key;if(fixedSlotReason(slot)===null){return deepFreeze({status:"refused",slot:resultSlot,reason:"notFixedMount"})}const current=this.#fittedModuleFor(requested);const currentStats=current?this.#statsFor(current):null;const valid=current!==void 0&¤tStats!==null&&(slot.kind==="cargoHatch"?isBuiltInHullModule(current):moduleFitProblem(this.#shipSymbol,slot,currentStats)===null);if(valid){return deepFreeze({status:"unchanged",slot:current.Slot,symbol:current.Item})}const defaultModule=getDefaultLoadout(this.#shipSymbol)?.modules.find(module=>module.slot.toLowerCase()===wanted);if(!defaultModule){return deepFreeze({status:"defaultUnavailable",slot:resultSlot})}const ownKey=ownKeyIn(this.#modules,canonicalKey);const replacement={Slot:ownKey,Item:defaultModule.symbol,...current?.On===void 0?{}:{On:current.On},...current?.Priority===void 0?{}:{Priority:current.Priority},...current?.Health===void 0?{}:{Health:current.Health}};const replacementStats=builtInModuleBySymbol(defaultModule.symbol,"ShipLoadout.repairFixedMount")??(isBuiltInHullModule(replacement)?builtInModuleBySymbol("ModularCargoBayDoor","ShipLoadout.repairFixedMount"):null);if(!replacementStats){return deepFreeze({status:"defaultUnavailable",slot:resultSlot,symbol:defaultModule.symbol})}this.#replaceModule(ownKey,replacement,replacementStats);return deepFreeze({status:"repaired",slot:ownKey,symbol:defaultModule.symbol})}setModule(slotKey,module){const slot=this.#requireSlot(slotKey);if(module===null||module===void 0){throw new TypeError(`ShipLoadout.setModule: no module supplied for "${truncate(slotKey)}" (did the module lookup return undefined?)`)}if(typeof module.symbol!=="string"){throw new TypeError(`ShipLoadout.setModule: module for "${truncate(slotKey)}" must be an outfitting module, received ${describeValue(module)}`)}module=cloneModuleStats(module);const catalogued=builtInModuleBySymbol(module.symbol,FITTED_ITEM);if(catalogued===null){throw new TypeError(`ShipLoadout.setModule: no module is catalogued as "${truncate(module.symbol)}"`)}for(const field of AGGREGATE_STATS){const stated=module[field];if(stated===void 0){if(catalogued[field]===void 0)continue;throw new TypeError(`ShipLoadout.setModule: the supplied record for "${truncate(module.symbol)}" has no ${field}`)}if(typeof stated!=="number"||!Number.isFinite(stated)){throw new TypeError(`ShipLoadout.setModule: the supplied record for "${truncate(module.symbol)}" states a ${field} of ${describeValue(stated)}`)}}const problem2=moduleFitProblem(this.#shipSymbol,slot,module);if(problem2){if(problem2.constraint==="immutableSlot"){throw new LoadoutEditError(`ShipLoadout.setModule: ${truncate(module.symbol)} → ${truncate(slotKey)}: ${problem2.message}`,"immutableSlot",{slot:slot.key})}throw new LoadoutEditError(`ShipLoadout.setModule: ${truncate(module.symbol)} → ${truncate(slotKey)}: ${problem2.message}`,"incompatibleModule",{...problem2.params,slot:slot.key,symbol:module.symbol,constraint:problem2.constraint},problem2.constraint)}if(module.exclusionGroup!==void 0){const conflict=[...this.#modules.values()].find(fitted=>fitted.Slot.toLowerCase()!==slot.key.toLowerCase()&&this.#statsFor(fitted)?.exclusionGroup===module.exclusionGroup);if(conflict){throw new LoadoutEditError(`ShipLoadout.setModule: ${truncate(module.symbol)} → ${truncate(slotKey)}: ${module.exclusionGroup} is limited to one per ship (already fitted in ${truncate(conflict.Slot)})`,"duplicateExclusiveModule",{exclusionGroup:module.exclusionGroup,slot:slot.key,symbol:module.symbol,previousSlot:conflict.Slot,previousSymbol:conflict.Item})}}const limitProblem=this.#moduleLimitRegression(slot.key,module);if(limitProblem!==null){throw new LoadoutEditError(`ShipLoadout.setModule: ${truncate(module.symbol)} → ${truncate(slotKey)}: ${limitProblem.group} would have ${limitProblem.count} modules but the ship allows ${limitProblem.limit}`,"moduleLimitExceeded",{group:limitProblem.group,count:limitProblem.count,limit:limitProblem.limit,slot:slot.key,symbol:module.symbol})}const key=this.#fittedKey(slotKey)??slot.key;this.#replaceModule(key,{Slot:key,Item:module.symbol},module);return this}removeModule(slotKey){const wanted=requireString(slotKey,SLOT_KEY).toLowerCase();if(wanted==="cargohatch"){throw new LoadoutEditError("ShipLoadout.removeModule: the cargoHatch slot cannot be changed","immutableSlot",{slot:"CargoHatch"})}const parsed=parseSlotName(slotKey);const slot=this.#layout().find(candidate=>candidate.key.toLowerCase()===wanted);if(parsed!==null&&fixedSlotReason(parsed)==="requiredSlot"){const fittedKey=this.#fittedKey(slotKey);const key2=slot?.key??fittedKey??slotKey;throw new LoadoutEditError(`ShipLoadout.removeModule: the ${truncate(key2)} slot is required and cannot be emptied`,"requiredSlot",{slot:key2})}const key=this.#fittedKey(slotKey);if(key!==null){const limitProblem=this.#moduleLimitRegression(key,null);if(limitProblem!==null){const fitted=this.#modules.get(key);throw new LoadoutEditError(`ShipLoadout.removeModule: ${truncate(slotKey)}: ${limitProblem.group} would have ${limitProblem.count} modules but the ship allows ${limitProblem.limit}`,"moduleLimitExceeded",{group:limitProblem.group,count:limitProblem.count,limit:limitProblem.limit,slot:key,...fitted===void 0?{}:{symbol:fitted.Item}})}this.#replaceModule(key,null)}return this}applyBlueprint(slotKey,fdname,options){requireString(fdname,"ShipLoadout.applyBlueprint: fdname");if(options===null||typeof options!=="object"){throw new TypeError(`ShipLoadout.applyBlueprint: options must be an object with a grade, received ${describeValue(options)}`)}const wantedGrade=options.grade;const wantedQuality=options.quality;const wantedExperimental=options.experimental??void 0;requireStringIfPresent(wantedExperimental,"ShipLoadout.applyBlueprint: options.experimental");const module=this.#fittedModuleFor(slotKey);if(!module){throw new RangeError(`ShipLoadout.applyBlueprint: slot "${truncate(slotKey)}" is empty`)}const fittedStats=this.#statsFor(module);if(!fittedStats){throw new TypeError(`ShipLoadout.applyBlueprint: no stats for module "${truncate(module.Item)}"`)}const recipe=resolveBlueprintForModule(module.Item,fdname);const named=recipe===fdname?`"${truncate(fdname)}"`:`"${truncate(fdname)}" (${truncate(recipe)} on this module)`;const written=fdname.trim().toLowerCase();const resolved=recipe.trim().toLowerCase();if(getPreEngineeredVariants(module.Item).some(variant=>variant.acquisition==="eventReward"&&(variant.blueprint.toLowerCase()===written||variant.blueprint.toLowerCase()===resolved))){throw new TypeError(`ShipLoadout.applyBlueprint: ${named} is a fixed pre-engineered identity, not a craftable blueprint; use setPreEngineeredVariant to fit its fixed article`)}if(!Number.isInteger(wantedGrade)||wantedGrade<1||wantedGrade>5){throw new RangeError(`ShipLoadout.applyBlueprint: no blueprint ${named} grade ${truncate(wantedGrade)}`)}const grade=getBlueprintGrade(recipe,wantedGrade);if(!grade){throw new RangeError(`ShipLoadout.applyBlueprint: no blueprint ${named} grade ${truncate(wantedGrade)}`)}let experimental;if(wantedExperimental!==void 0){experimental=getExperimentalEffect(wantedExperimental);if(!experimental){throw new RangeError(`ShipLoadout.applyBlueprint: unknown experimental effect "${truncate(wantedExperimental)}"`)}}const quality=wantedQuality??1;if(!Number.isFinite(quality)||quality<0||quality>1){throw new RangeError(`ShipLoadout.applyBlueprint: quality must be a finite number in [0, 1]`)}if(fittedStats.engineeringLocked){throw new TypeError(`ShipLoadout.applyBlueprint: module "${truncate(module.Item)}" is a final pre-engineered article and accepts no further engineering`)}if(!blueprintAvailableFor(module.Item,fdname)){const offered=[...blueprintRoutesFor(module.Item)].map(([blueprint,route])=>`${blueprint} (${route})`);throw new TypeError(offered.length>0?`ShipLoadout.applyBlueprint: module "${truncate(module.Item)}" is not offered blueprint ${named}; available candidates are ${offered.join(", ")}`:`ShipLoadout.applyBlueprint: no registry lists an engineering menu for module "${truncate(module.Item)}"`)}if(wantedExperimental!==void 0&&!experimentalAvailableFor(module.Item,wantedExperimental)){const offered=getExperimentalsForModule(module.Item);throw new TypeError(`ShipLoadout.applyBlueprint: module "${truncate(module.Item)}" is not offered experimental effect "${truncate(wantedExperimental)}"; it takes ${offered.length>0?offered.join(", "):"no experimental effect"}`)}const stats=this.#engineeringBaseStats(module)??fittedStats;const base=baseStats(stats);const canonical=primitiveEngineeringInputsFor(stats,grade,experimental);const missing=missingBaseLabels(stats,base,canonical.grade.features,canonical.experimental?.modifiers);if(missing.length>0){throw new TypeError(`ShipLoadout.applyBlueprint: cannot compute ${named} for module "${truncate(module.Item)}"; missing base stats for ${missing.join(", ")}`)}const damageDistribution=experimental?.damageDistribution??grade.damageDistribution;const primitiveModifiers=computeModifiers(base,canonical.grade,quality,canonical.experimental);const modifiers=journalModifiersFor(stats,primitiveModifiers);if(damageDistribution){for(const type of["kinetic","thermal","explosive","absolute"]){const value=damageDistribution[type];if(value===void 0)continue;const label=labelsForDamageType(type)[0];if(label===void 0)continue;const damageModifier={Label:label,Value:value*scaleForLabel(label),OriginalValue:(stats.damageDistribution?.[type]??0)*scaleForLabel(label)};modifiers.push(damageModifier);primitiveModifiers.push(damageModifier)}}const engineering={BlueprintName:fdname,Level:wantedGrade,Quality:quality,...wantedExperimental!==void 0?{ExperimentalEffect:wantedExperimental}:{},Modifiers:modifiers};this.#replaceModule(module.Slot,{...module,Engineering:engineering},stats,primitiveModifiers);return this}setExperimentalEffect(slotKey,experimental){if(experimental!==null){requireString(experimental,"ShipLoadout.setExperimentalEffect: experimental")}const wanted=experimental;const module=this.#fittedModuleFor(slotKey);if(!module)return experimentalEffectUnsupported("emptySlot",{slot:slotKey});const stats=this.#statsFor(module);if(!stats){return experimentalEffectUnsupported("unsupportedEngineering",{slot:module.Slot,symbol:module.Item})}const engineering=module.Engineering;if(!engineering){return experimentalEffectUnsupported("notEngineered",{slot:module.Slot,symbol:module.Item})}if(stats.engineeringLocked){return experimentalEffectUnsupported("finalArticle",{slot:module.Slot,symbol:module.Item})}const previous=engineering.ExperimentalEffect??null;if(previous===null&&wanted===null||previous!==null&&wanted!==null&&previous.trim().toLowerCase()===wanted.trim().toLowerCase()){return deepFreeze({kind:"unchanged",experimental:previous})}const variant=identifyPreEngineeredVariant(module);let effect;if(wanted!==null){effect=getExperimentalEffect(wanted);if(!effect){return experimentalEffectUnsupported("unknownExperimentalEffect",{slot:module.Slot,symbol:module.Item,experimental:wanted})}const restoresBakedEffect=variant?.experimental!==void 0&&variant.experimental.trim().toLowerCase()===wanted.trim().toLowerCase();if(!experimentalAvailableFor(module.Item,wanted)&&!restoresBakedEffect){return experimentalEffectUnsupported("unsupportedExperimentalEffect",{slot:module.Slot,symbol:module.Item,experimental:wanted})}}if(variant&&variant.acquisition!=="mercenary"){const stock=this.#engineeringBaseStats(module);if(!stock){return experimentalEffectUnsupported("unsupportedEngineering",{slot:module.Slot,symbol:module.Item})}const missing=missingBaseLabels(stock,baseStats(stock),[],effect?.modifiers);if(missing.length>0){return experimentalEffectUnsupported("unresolvedModifiers",{slot:module.Slot,symbol:module.Item,labels:missing})}const{experimental:originalEffect,...withoutEffect}=variant;const adjusted=wanted===null?withoutEffect:{...withoutEffect,experimental:wanted};const resolved=getPreEngineeredStats(withoutEffect);if(!resolved){return experimentalEffectUnsupported("unsupportedEngineering",{slot:module.Slot,symbol:module.Item})}const replacement={BlueprintName:engineering.BlueprintName,Level:engineering.Level,Quality:engineering.Quality,...wanted===null?{}:{ExperimentalEffect:wanted},Modifiers:getPreEngineeredJournalModifiers(adjusted)};this.#replaceModule(module.Slot,{...module,Engineering:replacement},cloneModuleStats(resolved),getPreEngineeredModifiers(adjusted))}else{const blueprint=engineering.BlueprintName;const grade=engineering.Level;const quality=engineering.Quality;if(typeof blueprint!=="string"||!Number.isInteger(grade)||grade<1||grade>5){return experimentalEffectUnsupported("unsupportedEngineering",{slot:module.Slot,symbol:module.Item})}const currentEffect=previous===null?void 0:getExperimentalEffect(previous)??null;if(ordinaryEngineeringProof(module.Item,engineering,currentEffect)==="unproven"){return experimentalEffectUnsupported("unidentifiedPreEngineeredVariant",{slot:module.Slot,symbol:module.Item,blueprint:blueprint})}const recipe=resolveBlueprintForModule(module.Item,blueprint);const blueprintGrade=getBlueprintGrade(recipe,grade);if(!blueprintGrade||!blueprintAvailableFor(module.Item,blueprint)||!Number.isFinite(quality)||quality<0||quality>1){return experimentalEffectUnsupported("unsupportedEngineering",{slot:module.Slot,symbol:module.Item,blueprint:blueprint,grade:grade})}const base=this.#engineeringBaseStats(module)??stats;const canonical=primitiveEngineeringInputsFor(base,blueprintGrade,effect);const missing=missingBaseLabels(base,baseStats(base),canonical.grade.features,canonical.experimental?.modifiers);if(missing.length>0){return experimentalEffectUnsupported("unresolvedModifiers",{slot:module.Slot,symbol:module.Item,labels:missing})}this.applyBlueprint(module.Slot,blueprint,{grade:grade,quality:quality,...wanted===null?{}:{experimental:wanted}})}return deepFreeze({kind:"updated",previousExperimental:previous,experimental:wanted})}completeEngineeringGrade(slotKey){const module=this.#fittedModuleFor(slotKey);if(!module)return engineeringNormalizationUnsupported("emptySlot",{slot:slotKey});const stats=this.#statsFor(module);if(!stats){return engineeringNormalizationUnsupported("unsupportedEngineering",{slot:module.Slot,symbol:module.Item})}const engineering=module.Engineering;if(!engineering){return engineeringNormalizationUnsupported("notEngineered",{slot:module.Slot,symbol:module.Item})}if(stats.engineeringLocked){return engineeringNormalizationUnsupported("finalArticle",{slot:module.Slot,symbol:module.Item})}if(engineering.Quality===1){return deepFreeze({kind:"unchanged"})}const previousQuality=engineering.Quality;if(!Number.isFinite(previousQuality)||previousQuality<0||previousQuality>1){return engineeringNormalizationUnsupported("invalidQuality",{slot:module.Slot,symbol:module.Item})}const experimental=engineering.ExperimentalEffect??null;const effect=experimental===null?void 0:getExperimentalEffect(experimental)??void 0;if(experimental!==null&&!effect){return engineeringNormalizationUnsupported("unknownExperimentalEffect",{slot:module.Slot,symbol:module.Item,experimental:experimental})}const blueprint=engineering.BlueprintName;const grade=engineering.Level;if(typeof blueprint!=="string"||!Number.isInteger(grade)||grade<1||grade>5){return engineeringNormalizationUnsupported("unsupportedEngineering",{slot:module.Slot,symbol:module.Item})}const variant=identifyPreEngineeredVariant(module);const restoresBakedEffect=variant?.experimental!==void 0&&variant.experimental.trim().toLowerCase()===experimental?.trim().toLowerCase();if(experimental!==null&&!experimentalAvailableFor(module.Item,experimental)&&!restoresBakedEffect){return engineeringNormalizationUnsupported("unsupportedExperimentalEffect",{slot:module.Slot,symbol:module.Item,experimental:experimental})}if(variant&&variant.acquisition!=="mercenary"){const stock=this.#engineeringBaseStats(module);if(!stock){return engineeringNormalizationUnsupported("unsupportedEngineering",{slot:module.Slot,symbol:module.Item})}const missing=missingBaseLabels(stock,baseStats(stock),[],effect?.modifiers);if(missing.length>0){return engineeringNormalizationUnsupported("unresolvedModifiers",{slot:module.Slot,symbol:module.Item,labels:missing})}const{experimental:originalEffect,...withoutEffect}=variant;const adjusted=experimental===null?withoutEffect:{...withoutEffect,experimental:experimental};const resolved=getPreEngineeredStats(withoutEffect);if(!resolved){return engineeringNormalizationUnsupported("unsupportedEngineering",{slot:module.Slot,symbol:module.Item})}const replacement={BlueprintName:engineering.BlueprintName,Level:engineering.Level,Quality:1,...experimental===null?{}:{ExperimentalEffect:experimental},Modifiers:getPreEngineeredJournalModifiers(adjusted)};this.#replaceModule(module.Slot,{...module,Engineering:replacement},cloneModuleStats(resolved),getPreEngineeredModifiers(adjusted))}else{const proof=ordinaryEngineeringProof(module.Item,engineering,effect);if(proof==="unproven"||proof==="proven"&&!blueprintAvailableFor(module.Item,blueprint)){return engineeringNormalizationUnsupported("unidentifiedPreEngineeredVariant",{slot:module.Slot,symbol:module.Item,blueprint:blueprint})}const recipe=resolveBlueprintForModule(module.Item,blueprint);const blueprintGrade=getBlueprintGrade(recipe,grade);if(!blueprintGrade||!blueprintAvailableFor(module.Item,blueprint)){return engineeringNormalizationUnsupported("unsupportedEngineering",{slot:module.Slot,symbol:module.Item,blueprint:blueprint,grade:grade})}const base=this.#engineeringBaseStats(module)??stats;const canonical=primitiveEngineeringInputsFor(base,blueprintGrade,effect);const missing=missingBaseLabels(base,baseStats(base),canonical.grade.features,canonical.experimental?.modifiers);if(missing.length>0){return engineeringNormalizationUnsupported("unresolvedModifiers",{slot:module.Slot,symbol:module.Item,labels:missing})}this.applyBlueprint(module.Slot,blueprint,{grade:grade,quality:1,...experimental===null?{}:{experimental:experimental}})}return deepFreeze({kind:"normalized",previousQuality:previousQuality,quality:1})}setPreEngineeredVariant(slotKey,variant){if(variant===null||typeof variant!=="object"){throw new TypeError(`ShipLoadout.setPreEngineeredVariant: variant must be a pre-engineered variant, received ${describeValue(variant)}`)}requireString(variant.symbol,"ShipLoadout.setPreEngineeredVariant: variant.symbol");requireString(variant.blueprint,"ShipLoadout.setPreEngineeredVariant: variant.blueprint");requireString(variant.acquisition,"ShipLoadout.setPreEngineeredVariant: variant.acquisition");requireStringIfPresent(variant.experimental,"ShipLoadout.setPreEngineeredVariant: variant.experimental");const known=getPreEngineeredVariants(variant.symbol).find(candidate=>candidate.blueprint.toLowerCase()===variant.blueprint.toLowerCase()&&candidate.grade===variant.grade&&(candidate.experimental?.toLowerCase()??"")===(variant.experimental?.toLowerCase()??"")&&candidate.acquisition===variant.acquisition);if(!known){throw new RangeError(`ShipLoadout.setPreEngineeredVariant: no catalogued variant "${truncate(variant.blueprint)}" for module "${truncate(variant.symbol)}"`)}const stats=getPreEngineeredStats(known);const unresolved=unresolvedModifiers(known);if(unresolved.length>0){throw new TypeError(`ShipLoadout.setPreEngineeredVariant: cannot resolve "${truncate(variant.blueprint)}" for module "${truncate(variant.symbol)}"; missing base stats for ${unresolved.join(", ")}`)}this.setModule(slotKey,stats);const module=this.#fittedModuleFor(slotKey);const engineering={BlueprintName:known.blueprint,Level:known.grade,Quality:1,...known.experimental===void 0?{}:{ExperimentalEffect:known.experimental},...known.modifiers?.length?{Modifiers:getPreEngineeredJournalModifiers(known)}:{}};this.#replaceModule(module.Slot,{...module,Engineering:engineering},cloneModuleStats(stats),getPreEngineeredModifiers(known));return this}clearEngineering(slotKey){const module=this.#fittedModuleFor(slotKey);if(module&&this.#statsFor(module)?.engineeringLocked){throw new TypeError(`ShipLoadout.clearEngineering: module "${truncate(module.Item)}" is a final pre-engineered article and its engineering cannot be removed`)}if(module?.Engineering){const baseStats2=this.#engineeringBaseStats(module);const bare={Slot:module.Slot,Item:module.Item};if(module.On!==void 0)bare.On=module.On;if(module.Priority!==void 0){bare.Priority=module.Priority}if(module.Health!==void 0)bare.Health=module.Health;if(module.Value!==void 0)bare.Value=module.Value;this.#replaceModule(module.Slot,bare,baseStats2??void 0)}return this}setModuleEnabled(slotKey,on){this.#patchModule(slotKey,{On:on});return this}setModulePriority(slotKey,priority){if(!Number.isInteger(priority)||priority<0||priority>4){throw new RangeError(`ShipLoadout: power priority must be an integer 0-4, got ${truncate(priority)}`)}this.#patchModule(slotKey,{Priority:priority});return this}#patchModule(slotKey,patch){const module=this.#fittedModuleFor(slotKey);if(!module){throw new RangeError(`ShipLoadout: slot "${truncate(slotKey)}" is empty`)}this.#modules.set(module.Slot,cloneLoadoutModule({...module,...patch}));this.#slotCache.clear()}toLoadoutEvent(options={}){const unladenMass=this.#computedUnladenMass();const cargoCapacity=this.#computedCargoCapacity();const fuel=this.#computedFuelCapacity();const maxJumpRange=this.#exportableJumpRange(unladenMass);return exportLoadoutEvent({shipSymbol:this.#shipSymbol,...this.#top.ShipName===void 0?{}:{shipName:this.#top.ShipName},...this.#top.ShipIdent===void 0?{}:{shipIdent:this.#top.ShipIdent},modules:this.#modules,layout:this.#layout(),sourcePurchase:this.#sourcePurchase,retailHullValue:this.#ship.hullCost,unladenMass:unladenMass,cargoCapacity:cargoCapacity,fuelCapacity:fuel,maxJumpRange:maxJumpRange,sourceTotalsVoided:this.#importOutcomes.some(outcome=>outcome.sourceSymbol===null&&parseSlotName(outcome.slot)?.kind==="core"),statsFor:module=>this.#statsFor(module)},options)}toSlef(options){return toSlef(this.toLoadoutEvent(options),options.header)}toSlefString(options){return stringifySlef(this.toSlef(options),{indent:options.indent??0})}#exportableJumpRange(unladenMass){let drive;try{drive=this.#resolveDrive()}catch{return null}if(drive===null)return null;const tank=this.#computedFuelCapacity();return singleJumpRange(unladenMass,Math.min(tank.main,drive.maxFuel),drive)}get frameShiftDrive(){const drive=this.#resolveDrive();if(drive===null)throw new TypeError("ShipLoadout: build has no frame shift drive");return drive}#maxJumpFuel(fsd){return Math.min(this.fuelCapacity.main,fsd.maxFuel)}frameShiftDriveMassFactor(options={}){requireLoadOptions("ShipLoadout.frameShiftDriveMassFactor",options);const fuel=options.fuel??this.fuelCapacity.main;return frameShiftDriveMassFactor(this.#requireMass(options.cargo??0),fuel,this.frameShiftDrive)}maxJumpRange(){const fsd=this.frameShiftDrive;return singleJumpRange(this.#requireMass(0),this.#maxJumpFuel(fsd),fsd)}jumpRange(options={}){requireLoadOptions("ShipLoadout.jumpRange",options);const fsd=this.frameShiftDrive;const fuel=options.fuel??this.fuelCapacity.main;return singleJumpRange(this.#requireMass(options.cargo??0),fuel,fsd)}ladenJumpRange(){return this.jumpRange({cargo:this.cargoCapacity})}fuelPerJump(distance,options={}){requireLoadOptions("ShipLoadout.fuelPerJump",options);const fsd=this.frameShiftDrive;const fuel=options.fuel??this.fuelCapacity.main;return fuelPerJump(distance,this.#requireMass(options.cargo??0),fuel,fsd)}totalRange(options={}){requireLoadOptions("ShipLoadout.totalRange",options);return totalRange(this.#requireMass(options.cargo??0),options.fuel??this.fuelCapacity.main,this.frameShiftDrive)}standardLoadResult(load){if(load!=="maximum"&&load!=="unladen"&&load!=="laden"){throw new RangeError("ShipLoadout.standardLoadResult: load must be 'maximum', 'unladen', or 'laden'")}const fuel=this.fuelCapacity;const cargo=load==="laden"?this.cargoCapacity:0;const mass=load==="maximum"?this.unladenMass:0;const issues=[];let drive=null;let maximumFuel=null;if(load==="maximum"){const fitted=this.#frameShiftDrive()?.module;let driveError=null;try{drive=this.#resolveDrive();maximumFuel=drive?.maxFuel??null}catch(error){if(!(error instanceof Error))throw error;driveError=error}if(maximumFuel===null){issues.push({field:"frameShiftDrive",reason:fitted?"unresolved":"missing",slot:fitted?.Slot??"FrameShiftDrive",...fitted?{symbol:fitted.Item}:{},message:driveError?.message??"FrameShiftDrive: no frame shift drive is fitted",params:fitted?{field:"frameShiftDrive",reason:"unresolved",slot:fitted.Slot,symbol:fitted.Item}:{field:"frameShiftDrive",reason:"missing",slot:"FrameShiftDrive"}})}}if(issues.length>0){return incompleteResult(issues)}const value=Object.freeze({fuel:load==="maximum"?Math.min(fuel.main,maximumFuel):fuel.main,cargo:cargo});if(load==="maximum"){try{this.jumpRange(value)}catch(error){if(!(error instanceof RangeError))throw error;const fitted=this.#frameShiftDrive()?.module;const field=drive!==null&&(!Number.isFinite(drive.maxFuel)||drive.maxFuel<0)?"frameShiftDrive":!Number.isFinite(value.fuel)||value.fuel<0?"fuelCapacity":!Number.isFinite(mass)||mass<0?"mass":"frameShiftDrive";const driveParams=field==="frameShiftDrive"&&fitted?{slot:fitted.Slot,symbol:fitted.Item}:{};return incompleteResult([{field:field,reason:"invalid",...driveParams,message:error.message,params:{field:field,reason:"invalid",...driveParams}}])}}return completeResult(value)}jumpRangeSummary(){const maximum=this.#require(this.standardLoadResult("maximum"),"maximum load");const unladen=this.#require(this.standardLoadResult("unladen"),"unladen load");const laden=this.#require(this.standardLoadResult("laden"),"laden load");return{max:this.jumpRange(maximum),unladen:this.jumpRange(unladen),laden:this.jumpRange(laden),totalMax:this.totalRange(maximum),totalUnladen:this.totalRange(unladen),totalLaden:this.totalRange(laden)}}powerBudget(){const modules=[...this.#modules.values()];const consumers=[];for(const module of modules){const consumer=powerConsumerFor(module,this.#statsFor(module));if(consumer)consumers.push(consumer)}return powerBudget(powerAvailable(modules,module=>this.#statsFor(module)),consumers)}heatMetrics(){const input=heatInputFor(this.#ship,this.#modulesForEffectiveStats(),this.powerBudget(),module=>this.#statsFor(module));return input?heatMetrics(input):null}mobilityMetrics(options={}){requireEnginesPips("ShipLoadout.mobilityMetrics",options.enginesPips??4);requireLoadOptions("ShipLoadout.mobilityMetrics",options);return this.mobilityMetricsResult(options).value}mobilityMetricsResult(options={}){const enginesPips=requireEnginesPips("ShipLoadout.mobilityMetricsResult",options.enginesPips??4);requireLoadOptions("ShipLoadout.mobilityMetricsResult",options);const input=mobilityInputResultFor(this.#ship,[...this.#modules.values()],()=>this.powerBudget(),()=>{const main=options.fuel??this.#top.FuelCapacity?.Main??this.fuelCapacity.main;return this.#requireMass(options.cargo??0)+main},enginesPips,module=>this.#statsFor(module));if(!input.complete)return input;return completeResult(mobilityMetrics(input.value))}shieldMetrics(options={}){requireSystemsPips("ShipLoadout.shieldMetrics",options.systemsPips??0);return this.shieldMetricsResult(options).value}shieldMetricsResult(options={}){const systemsPips=requireSystemsPips("ShipLoadout.shieldMetricsResult",options.systemsPips??0);const input=shieldInputResultFor(this.#ship,[...this.#modules.values()],()=>this.powerBudget(),systemsPips,module=>this.#statsFor(module));if(!input.complete)return input;return completeResult(shieldMetrics(input.value))}shieldRecovery(options={}){requireSystemsPips("ShipLoadout.shieldRecovery",options.systemsPips??4);return this.shieldRecoveryResult(options).value}shieldRecoveryResult(options={}){const systemsPips=requireSystemsPips("ShipLoadout.shieldRecoveryResult",options.systemsPips??4);const input=shieldRecoveryInputResultFor(this.#ship,[...this.#modules.values()],()=>this.powerBudget(),systemsPips,module=>this.#statsFor(module));if(!input.complete)return input;return completeResult(shieldRecovery(input.value))}cellBanks(){const modules=[...this.#modules.values()];const banks=orderBySlotLayout(cellBankInputsFor(modules,this.powerBudget(),module=>this.#statsFor(module)),this.#layout(),bank=>bank.slot);return cellBankSummary(banks)}buildCost(){const hull=this.#ship.hullCost;let modules=0;let mercCoins=0;const unpriced=[];const materials=[];for(const module of this.#modules.values()){const stats=this.#statsFor(module);if(stats?.cost!==void 0){modules+=stats.cost}else if(stats!==null||!isNonOutfittingSlot(module.Slot)&&!isBuiltInHullModule(module)){unpriced.push({slot:module.Slot,symbol:module.Item})}const variant=identifyPreEngineeredVariant(module);mercCoins+=variant?.mercCoinCost??0;const engineering=module.Engineering;if(!engineering)continue;const grade=engineering.Level;const bought=variant?.grade??0;if(Number.isInteger(grade)&&grade>bought&&grade<=5){const climb=getBlueprintCost(engineering.BlueprintName,grade,bought);if(climb){materials.push(climb.materials);mercCoins+=climb.mercCoins}}const experimental=engineering.ExperimentalEffect;if(experimental!==void 0&&experimental.toLowerCase()!==variant?.experimental?.toLowerCase()){const cost=getExperimentalEffectCost(experimental);if(cost)materials.push(cost)}}return deepFreeze({credits:{total:hull+modules,hull:hull,modules:modules,rebuy:Math.trunc((hull+modules)*.05),unpriced:unpriced},mercCoins:mercCoins,materials:sumMaterials(...materials)})}armourMetrics(){return armourMetrics(armourInputFor(this.#ship,[...this.#modules.values()],module=>this.#statsFor(module)))}weaponMetrics(){const weapons=[];for(const module of this.#modules.values()){const record=this.#statsFor(module);const stats=weaponStatsFor(this.#moduleForEffectiveStats(module),record);if(!stats)continue;weapons.push({slot:module.Slot,symbol:module.Item,name:record?.name??module.Item,enabled:module.On!==false,metrics:weaponMetrics(stats),ammunition:ammunitionCapacity(stats),...stats.maximumRange===void 0?{}:{maximumRange:stats.maximumRange},...stats.falloffRange===void 0?{}:{falloffRange:stats.falloffRange},...stats.projectileRange===void 0?{}:{projectileRange:{...stats.projectileRange}},...stats.armourPiercing===void 0?{}:{armourPiercing:stats.armourPiercing}})}const orderedWeapons=orderBySlotLayout(weapons,this.#layout(),weapon=>weapon.slot);return{weapons:orderedWeapons,total:sumWeaponMetrics(orderedWeapons.filter(weapon=>weapon.enabled).map(weapon=>weapon.metrics))}}weaponsCapacitorMetrics(options={}){const weaponsPips=options.weaponsPips??4;if(!Number.isFinite(weaponsPips)||weaponsPips<0||weaponsPips>4){throw new RangeError("ShipLoadout.weaponsCapacitorMetrics: weaponsPips must be a finite number from 0 to 4")}return weaponsCapacitorMetrics(weaponsCapacitorInputFor(this.#modulesForEffectiveStats(),weaponsPips,this.powerBudget(),module=>this.#statsFor(module)))}distributorMetrics(options={}){const pips={systemsPips:options.systemsPips??4,enginesPips:options.enginesPips??4,weaponsPips:options.weaponsPips??4};for(const field of["systemsPips","enginesPips","weaponsPips"]){const value=pips[field];if(!Number.isFinite(value)||value<0||value>4){throw new RangeError(`ShipLoadout.distributorMetrics: ${field} must be a finite number from 0 to 4`)}}const input=distributorInputFor(this.#modulesForEffectiveStats(),pips,this.powerBudget(),module=>this.#statsFor(module));return input?distributorMetrics(input):null}#layout(){if(this.#layoutCache===void 0){this.#layoutCache=Object.freeze(enumerateSlots(this.#ship))}return this.#layoutCache}#requireSlot(slotKey){const wanted=requireString(slotKey,SLOT_KEY).toLowerCase();const slot=this.#layout().find(s=>s.key.toLowerCase()===wanted);if(!slot){throw new RangeError(`ShipLoadout: hull "${truncate(this.#shipSymbol)}" has no slot "${truncate(slotKey)}"`)}return slot}#fittedKey(slotKey){return matchingKeyIn(this.#modules,requireString(slotKey,SLOT_KEY))}#fittedModuleFor(slotKey){const key=this.#fittedKey(slotKey);return key===null?void 0:this.#modules.get(key)}#require(result,what){if(result.value===null){throw new TypeError(`ShipLoadout: cannot determine ${what} (${result.issues.map(i=>i.message).join("; ")})`)}return result.value}#requireMass(cargo){return this.unladenMass+cargo}#calculationModules(){return[...this.#modules.values()].map(module=>({mass:this.#moduleMass(module),cargoCapacity:this.#moduleCapacity(module,"CargoCapacity","cargoCapacity"),fuelCapacity:this.#moduleCapacity(module,"FuelCapacity","fuelCapacity")}))}#moduleLimits(){const entries=[...this.#modules.values()].flatMap(module=>{const stats=this.#statsFor(module);return stats===null?[]:[stats]});return calculateModuleLimits(entries)}#moduleStatsAt(slotKey){const fitted=this.#fittedModuleFor(slotKey);return fitted===void 0?null:this.#statsFor(fitted)}#engineeringBaseStats(module){const fitted=this.#statsFor(module);if(!module.Engineering||identifyPreEngineeredVariant(module)===null)return fitted;const stock=builtInModuleBySymbol(module.Item,FITTED_ITEM);if(!stock)return fitted;return fitted?.engineeringLocked?cloneModuleStats({...stock,engineeringLocked:true}):stock}#moduleForEffectiveStats(module){const modifiers=this.#primitiveModifiers.get(module.Slot);if(modifiers===void 0||module.Engineering===void 0)return module;return{...module,Engineering:{...module.Engineering,Modifiers:modifiers}}}#modulesForEffectiveStats(){return[...this.#modules.values()].map(module=>this.#moduleForEffectiveStats(module))}#moduleLimitRegression(slotKey,replacement,current=this.#moduleLimits(),previous=this.#moduleStatsAt(slotKey)){if(previous?.limitGroup===void 0&&previous?.limitIncrease===void 0&&replacement?.limitGroup===void 0&&replacement?.limitIncrease===void 0){return null}for(const usage of current){const count=usage.count-Number(previous?.limitGroup===usage.group)+Number(replacement?.limitGroup===usage.group);const increase=usage.increase-(previous?.limitIncrease?.group===usage.group?previous.limitIncrease.amount:0)+(replacement?.limitIncrease?.group===usage.group?replacement.limitIncrease.amount:0);const limit=usage.baseLimit+increase;const excess=Math.max(0,count-limit);if(excess>usage.excess){return{...usage,increase:increase,limit:limit,count:count,excess:excess}}}return null}#replaceModule(slotKey,replacement,replacementStats,primitiveModifiers){const previous=this.#modules.get(slotKey)??null;this.#adjustImportedFigures(previous,replacement,replacementStats);if(replacement===null){this.#modules.delete(slotKey);this.#moduleStats.delete(slotKey);this.#primitiveModifiers.delete(slotKey)}else{this.#modules.set(slotKey,cloneLoadoutModule(replacement));if(replacementStats!==void 0)this.#moduleStats.set(slotKey,replacementStats);if(primitiveModifiers===void 0)this.#primitiveModifiers.delete(slotKey);else this.#primitiveModifiers.set(slotKey,primitiveModifiers)}this.#slotCache.clear()}#adjustImportedFigures(previous,next,nextStats){if(this.#top.UnladenMass!==void 0){this.#top.UnladenMass+=this.#moduleMass(next,nextStats)-this.#moduleMass(previous)}if(this.#top.CargoCapacity!==void 0){this.#top.CargoCapacity+=this.#moduleCapacity(next,"CargoCapacity","cargoCapacity",nextStats)-this.#moduleCapacity(previous,"CargoCapacity","cargoCapacity")}if(this.#top.FuelCapacity?.Main!==void 0){const reserve=this.#top.FuelCapacity.Reserve;this.#top.FuelCapacity={Main:this.#top.FuelCapacity.Main+this.#moduleCapacity(next,"FuelCapacity","fuelCapacity",nextStats)-this.#moduleCapacity(previous,"FuelCapacity","fuelCapacity"),...reserve===void 0?{}:{Reserve:reserve}}}if(normalizeKey(previous?.Item,FITTED_ITEM)===normalizeKey(next?.Item,FITTED_ITEM)){return}if(previous!==null&&isCargoHatchSlot(previous.Slot)||next!==null&&isCargoHatchSlot(next.Slot)){return}delete this.#top.ModulesValue;delete this.#top.Rebuy}#moduleMass(module,statsOverride){if(module===null)return 0;if(isCargoHatchSlot(module.Slot))return 0;const modified=getLoadoutModifier(module,"Mass");if(modified!==null)return modified;return(statsOverride??this.#statsFor(module))?.mass??0}#moduleCapacity(module,modifierLabel,field,statsOverride){if(module===null)return 0;if(isCargoHatchSlot(module.Slot))return 0;const modified=getLoadoutModifier(module,modifierLabel);if(modified!==null)return modified;return(statsOverride??this.#statsFor(module))?.[field]??0}#frameShiftDrive(){for(const m of this.#modules.values()){const stats=this.#statsFor(m);if(stats?.slot==="frameShiftDrive")return{module:m,stats:stats}}return void 0}#resolveDrive(){const fsd=this.#frameShiftDrive();if(!fsd)return null;const{module:fsdModule,stats:base}=fsd;if(base.fuelMul===void 0||base.fuelPower===void 0){throw new TypeError(`ShipLoadout: the fitted record for frame shift drive "${truncate(fsdModule.Item)}" has no jump constants`)}const optMass=getLoadoutModifier(fsdModule,"FSDOptimalMass")??base.optMass;const maxFuel=getLoadoutModifier(fsdModule,"MaxFuelPerJump")??base.maxFuel;if(optMass===void 0||maxFuel===void 0){const missing=[...optMass===void 0?["optMass"]:[],...maxFuel===void 0?["maxFuel"]:[]];throw new TypeError(`ShipLoadout: the fitted record for frame shift drive "${truncate(fsdModule.Item)}" has no ${missing.join(" or ")}`)}return{optMass:optMass,maxFuel:maxFuel,fuelMul:base.fuelMul,fuelPower:base.fuelPower,jumpBoost:this.#resolveJumpBoost()}}#resolveJumpBoost(){for(const m of this.#modules.values()){const stats=this.#statsFor(m);if(stats?.engineeringGroup!=="fsdBoosters"&&(stats?.jumpBoost===void 0||stats.jumpBoost===0)){continue}if(m.On===false)continue;if(stats?.jumpBoost===void 0){throw new TypeError(`ShipLoadout: the fitted record for FSD booster "${truncate(m.Item)}" has no jumpBoost`)}return stats.jumpBoost}return 0}#statsFor(module){if(module===null)return null;const stats=this.#moduleStats.get(module.Slot)??builtInModuleBySymbol(module.Item,FITTED_ITEM);if(stats)return stats;return isBuiltInHullModule(module)?builtInModuleBySymbol("ModularCargoBayDoor","ShipLoadout: built-in module"):null}};export{LoadoutEditError,ShipLoadout};//# sourceMappingURL=chunk-EXVCRIDP.js.map
|