PageSourceSearch

https://influence-crew-builder.vercel.app/_next/static/chunks/554-492589dd5a57fcbc.js

js influence-crew-builder.vercel.app collected 2026-10-03 07:07:01 UTC 43,685 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[554],{9365:function(){},5042:function(){},4722:function(e,t,a){Promise.resolve().then(a.t.bind(a,231,23)),Promise.resolve().then(a.bind(a,8464))},329:function(e,t,a){"use strict";a.d(t,{Fc:function(){return s}}),a(4590);var l=a(8064);(0,l.$)("a60d4f1b4115eb1ee2bcc68c61e27ab91fcdef94"),(0,l.$)("12a4d01cd7220f1bc2fa28d8b035dc3a3c102005"),(0,l.$)("b3df4eab9da384d791b977126126185ed4acef11"),(0,l.$)("a94009fbc2a6c980d93e9220acf8d7376105ab7e"),(0,l.$)("7166a0da2334ebf3f9860247add073ef4355557d");var s=(0,l.$)("1d581a8fea4abfbd01a938924466ebcbac601f13")},8464:function(e,t,a){"use strict";let l;a.d(t,{default:function(){return eP}});var s=a(7437),i=a(2265),n=a(6406);let r=e=>{var t;let{bonusClass:a}=e,l=null==a?void 0:a.classId;return(0,s.jsx)("div",{className:"flex flex-col gap-2",children:l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex flex-row gap-2",children:(0,s.jsx)("div",{children:"".concat(n.ld.CLASSES[null==a?void 0:a.classId].name," (").concat(null==a?void 0:a.matches,") ")})}),(0,s.jsxs)("div",{className:"flex flex-row",children:[(0,s.jsx)("div",{"aria-live":"polite",className:"sr-only",children:"Matches"}),(0,s.jsx)("div",{"aria-live":"polite",className:"sr-only",children:null==a?void 0:a.matches})]}),(0,s.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,s.jsx)("div",{"aria-live":"polite",className:"sr-only",children:"Multiplier"}),(0,s.jsx)("div",{className:"text-lg",children:null==a?void 0:null===(t=a.multiplier)||void 0===t?void 0:t.toFixed(4)})]})]}):"N/A"})},d=e=>{var t,a,l;let{traits:i}=e,r=Object.keys(i),d=Object.values(i)[0];return(0,s.jsx)("div",{className:"flex flex-col gap-2",children:r.length>0?(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)("div",{className:"flex flex-row gap-2",children:(0,s.jsx)("div",{children:"".concat(null===(t=n.ld.TRAITS[r])||void 0===t?void 0:t.name," (").concat(null==d?void 0:d.matches,")")})}),(0,s.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,s.jsx)("div",{"aria-live":"polite",className:"sr-only",children:"Matches"}),(0,s.jsx)("div",{"aria-live":"polite",className:"sr-only",children:null==d?void 0:d.matches})]}),(0,s.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,s.jsx)("div",{children:"Bonus Per Match"}),(0,s.jsx)("div",{children:null==d?void 0:null===(a=d.bonusPerMatch)||void 0===a?void 0:a.toFixed(4)})]}),(0,s.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,s.jsx)("div",{"aria-live":"polite",className:"sr-only",children:"Total Traits Bonus"}),(0,s.jsx)("div",{className:"text-lg",children:null==d?void 0:null===(l=d.bonus)||void 0===l?void 0:l.toFixed(4)})]})]}):"N/A"})},m=e=>{var t,a,l;let{titles:i}=e,r=Object.keys(i),d=Object.values(i)[0];return(0,s.jsx)("div",{className:"flex flex-col gap-2",children:r.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex flex-row gap-2",children:(0,s.jsx)("div",{children:null===(t=n.ld.TITLES[r])||void 0===t?void 0:t.name})}),(0,s.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,s.jsx)("div",{children:"Matches"}),(0,s.jsx)("div",{children:null==d?void 0:d.matches})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("div",{children:"Bonus per match"}),(0,s.jsx)("div",{children:null==d?void 0:null===(a=d.bonusPerMatch)||void 0===a?void 0:a.toFixed(4)})]}),(0,s.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,s.jsx)("div",{children:"Bonus"}),(0,s.jsx)("div",{children:null==d?void 0:null===(l=d.bonus)||void 0===l?void 0:l.toFixed(4)})]})]}):"N/A"})};var c=a(2079),o=a(6413),u=a(357);class p{getInstance(){return this}constructor(){if(l)throw Error("You can only create one instance!");this.api=(0,c.b7)({baseUrl:u.env.INFLUENCE_API,accessToken:u.env.INFLUENCE_API_TOKEN}),this.imageUrls=(0,o.N)({cloudfrontImageHost:"d2xo5vocah3zyk.cloudfront.net",apiImagesUrl:"https://images.influenceth.io/v1",cloudfrontBucket:"unstoppablegames"}),l=this}}var x=Object.freeze(new p),I=a(920);let h={0:{name:"Undecided",description:"Currently going through assignment..."},1:{name:"Pilot",description:"Often restless, always ready for adventure, pilots are happiest when flying. Their expertise gets them and their crew where they want to go quickly, safely, efficiently."},2:{name:"Engineer",description:"If there is a problem, an engineer will find an answer. Whether it is buildings, ships, or processes, engineers are thrilled to be the one to solve the puzzle."},3:{name:"Miner",description:"On the surface it appears that miners value their strength over their brains, but like the
1ir quarry, the reality lies underneath: they are highly skilled and erudite in their area of expertise."},4:{name:"Merchant",description:"Predicting the ebb and flow of the market is about more than just the raw data, it is about anticipating the needs and desires of humanity- this is what merchants strive to understand."},5:{name:"Scientist",description:"Motivated by a desire to expand human knowledge, scientists learn from the past, while keeping their gaze steadily on the future."}},N=1,T=2,g=3,f=4,S=5,A={1:{name:"Arvad Specialist"},2:{name:"Arvad Citizen"},3:{name:"Arvad Leadership"},4:{name:"Adalian"}},C={0:{name:"None"},1:{name:"Communications Officer",department:1,tier:1},2:{name:"Teaching Assistant",department:2,tier:1},3:{name:"Librarian",department:3,tier:1},4:{name:"Nurse",department:4,tier:1},5:{name:"Public Safety Officer",department:5,tier:1},6:{name:"Warehouse Worker",department:6,tier:1},7:{name:"Maintenance Technician",department:7,tier:1},8:{name:"Systems Administrator",department:8,tier:1},9:{name:"Structural Engineer",department:9,tier:1},10:{name:"Farmer",department:10,tier:1},11:{name:"Line Cook",department:11,tier:1},12:{name:"Artist",department:12,tier:1},13:{name:"Block Captain",department:13,tier:1},14:{name:"Observatory Technician",department:1,tier:2},15:{name:"Teacher",department:2,tier:2},16:{name:"Historian",department:3,tier:2},17:{name:"Physician Assistant",department:4,tier:2},18:{name:"Security Officer",department:5,tier:2},19:{name:"Logistics Specialist",department:6,tier:2},20:{name:"Electrician",department:7,tier:2},21:{name:"Software Engineer",department:8,tier:2},22:{name:"Life Support Engineer",department:9,tier:2},23:{name:"Field Botanist",department:10,tier:2},24:{name:"Section Cook",department:11,tier:2},25:{name:"Author",department:12,tier:2},26:{name:"Delegate",department:13,tier:2},27:{name:"Cartographer",department:1,tier:3},28:{name:"Professor",department:2,tier:3},29:{name:"Archivist",department:3,tier:3},30:{name:"Resident Physician",department:4,tier:3},31:{name:"Tactical Officer",department:5,tier:3},32:{name:"Warehouse Manager",department:6,tier:3},33:{name:"EVA Technician",department:7,tier:3},34:{name:"Embedded Engineer",department:8,tier:3},35:{name:"Propulsion Engineer",department:9,tier:3},36:{name:"Nutritionist",department:10,tier:3},37:{name:"Kitchen Manager",department:11,tier:3},38:{name:"Musician",department:12,tier:3},39:{name:"Councilor",department:13,tier:3},40:{name:"Navigator",department:1,tier:4},41:{name:"Distinguished Professor",department:2,tier:4},42:{name:"Curator",department:3,tier:4},43:{name:"Physician",department:4,tier:4},44:{name:"Intelligence Officer",department:5,tier:4},45:{name:"Logistics Manager",department:6,tier:4},46:{name:"Facilities Supervisor",department:7,tier:4},47:{name:"Systems Architect",department:8,tier:4},48:{name:"Reactor Engineer",department:9,tier:4},49:{name:"Plant Geneticist",department:10,tier:4},50:{name:"Chef",department:11,tier:4},51:{name:"Actor",department:12,tier:4},52:{name:"Justice",department:13,tier:4},53:{name:"Chief Navigator",department:1,tier:5},54:{name:"Provost",department:2,tier:5},55:{name:"Chief Archivist",department:3,tier:5},56:{name:"Chief Medical Officer",department:4,tier:5},57:{name:"Head of Security",department:5,tier:5},58:{name:"Chief Logistics Officer",department:6,tier:5},59:{name:"Chief Steward",department:7,tier:5},60:{name:"Chief Technology Officer",department:8,tier:5},61:{name:"Head of Engineering",department:9,tier:5},62:{name:"Chief Botanist",department:10,tier:5},63:{name:"Chief Cook",department:11,tier:5},64:{name:"Entertainment Director",department:12,tier:5},65:{name:"High Commander",department:13,tier:5},66:{name:"Adalian Prime Councilor"},67:{name:"First Generation"}},E=28,v=29,b=30,_=31,L=32,R=41,j=42,O=44,D=47,w=49,y=50,M={CORE_SAMPLE_TIME:1,CORE_SAMPLE_QUALITY:2,HOPPER_TRANSPORT_TIME:3,EXTRACTION_TIME:4,CONSTRUCTION_TIME:5,INVENTORY_MASS_CAPACITY:6,PROPELLANT_EXHAUST_VELOCITY:7,REFINING_TIME:8,MANUFACTURING_TIME:9,REACTION_TIME:10,FREE_TRANSPORT_DISTANCE:11,DECONSTRUCTION_YIELD:12,SECONDARY_REFINING_YIELD:13,FOOD_CONSUMPTION_TIME:14,FOOD_RATIONING_PENALTY:15,MARKETPLACE_FEE_ENFORCEMENT:16,MARKETPLACE_FEE_REDUCTION:17,PROPELLANT_FLOW_RATE:18,INVENTORY_VOLUME_CAPACITY:19,SHIP_INTEGRATION_TIME:20},P={[M.CORE_SAMPLE_TIME]:{i:M.CORE_SAMPLE_TIME,name:"Core Sample Time",class:g,departments:{13:.01},traits:{[_]:.1}},[M.CORE_SAMPLE_QUALITY]:{i:M.CORE_SAMPLE_QUALITY,name:"Core Sample Quality",class:g,traits:{[y]:.05},notFurtherModified:!0},[M.EXTRACTION_TIME]:{i:M.EXTRACTION_TIME,name:"Extraction Time",class:g,departments:{13:.01}}
1,[M.HOPPER_TRANSPORT_TIME]:{i:M.HOPPER_TRANSPORT_TIME,name:"Hopper Transport Time",departments:{6:.0125,13:.005},traits:{[D]:.05}},[M.FREE_TRANSPORT_DISTANCE]:{i:M.FREE_TRANSPORT_DISTANCE,name:"Free Transport Distance",class:f},[M.INVENTORY_MASS_CAPACITY]:{i:M.INVENTORY_MASS_CAPACITY,name:"Inventory Mass Capacity",traits:{[L]:.05},notFurtherModified:!0},[M.INVENTORY_VOLUME_CAPACITY]:{i:M.INVENTORY_VOLUME_CAPACITY,name:"Inventory Volume Capacity",departments:{6:.0125},notFurtherModified:!0},[M.PROPELLANT_EXHAUST_VELOCITY]:{i:M.PROPELLANT_EXHAUST_VELOCITY,name:"Propellant Exhaust Velocity",class:N,departments:{1:.01,13:.01},traits:{[E]:.02},notFurtherModified:!0},[M.PROPELLANT_FLOW_RATE]:{i:M.PROPELLANT_FLOW_RATE,name:"Propellant Flow Rate",class:N,departments:{1:.01},traits:{[R]:.02},notFurtherModified:!0},[M.CONSTRUCTION_TIME]:{i:M.CONSTRUCTION_TIME,name:"Construction Time",class:T,departments:{13:.01},traits:{[w]:.05}},[M.DECONSTRUCTION_YIELD]:{i:M.DECONSTRUCTION_YIELD,name:"Deconstruction Yield",traits:{[O]:.1}},[M.REFINING_TIME]:{i:M.REFINING_TIME,name:"Refining Time",class:T,departments:{9:.0125,13:.0075},traits:{[b]:.05}},[M.SECONDARY_REFINING_YIELD]:{i:M.SECONDARY_REFINING_YIELD,name:"Secondary Refining Yield",class:S,notFurtherModified:!0},[M.MANUFACTURING_TIME]:{i:M.MANUFACTURING_TIME,name:"Manufacturing Time",class:T,departments:{9:.0125,13:.0075}},[M.REACTION_TIME]:{i:M.REACTION_TIME,name:"Reaction Time",class:S,departments:{10:.025,13:.0075}},[M.FOOD_CONSUMPTION_TIME]:{i:M.FOOD_CONSUMPTION_TIME,name:"Food Consumption Time",departments:{11:.05},traits:{[v]:.1},notFurtherModified:!0},[M.FOOD_RATIONING_PENALTY]:{i:M.FOOD_RATIONING_PENALTY,name:"Food Rationing Penalty",departments:{4:.0083}},[M.MARKETPLACE_FEE_ENFORCEMENT]:{i:M.MARKETPLACE_FEE_ENFORCEMENT,name:"Marketplace Fee Enforcement",traits:{[j]:.16},notFurtherModified:!0},[M.MARKETPLACE_FEE_REDUCTION]:{i:M.MARKETPLACE_FEE_REDUCTION,name:"Marketplace Fee Reduction",class:f,departments:{12:.05,13:.025}},[M.SHIP_INTEGRATION_TIME]:{i:M.SHIP_INTEGRATION_TIME,name:"Ship Integration Time",class:T,departments:{9:.0125,13:.005}}},F={0:{name:"None"},1:{name:"Glow"},2:{name:"Drone - slate"},3:{name:"Drone - Orange"},4:{name:"Drone - Green"},5:{name:"Drone - Yellow"},6:{name:"Drone - Medical"},7:{name:"Drone - Technology"},8:{name:"Drone - Commander"}},k={0:{name:"None"},1:{name:"Scar"},2:{name:"Piercing"},3:{name:"Long Beard"},4:{name:"Full Beard"},5:{name:"Circle Beard"},6:{name:"Handlebar Mustache"},7:{name:"Mustache"}},U={1:{name:"Male"},2:{name:"Female"}},G={1:{name:"Red"},2:{name:"slate"},3:{name:"Brown"},4:{name:"Blonde"},5:{name:"Black"}},H={0:{name:"Bald"},1:{name:"Mohawk"},2:{name:"Slickback"},3:{name:"Curly"},4:{name:"Buzz"},5:{name:"Top Knot"},6:{name:"Bun"},7:{name:"Long"},8:{name:"Ponytail"},9:{name:"Pixie"},10:{name:"Double Bun"},11:{name:"Shoulder"}},B={0:{name:"None"},1:{name:"Welding Goggles"},2:{name:"AR Glasses"},3:{name:"Eyepatch"},4:{name:"Mask"},5:{name:"Helmet"},6:{name:"Navigation Goggles"},7:{name:"Spectacles"},8:{name:"Archival Glasses"},9:{name:"Medical Glasses"},10:{name:"Headset"},11:{name:"Earmuffs"},12:{name:"Technology Glasses"},13:{name:"Botany Glasses"},14:{name:"Chef Hat"},15:{name:"Eyepatch - Orange"},16:{name:"Eyepatch - Gold"}},V={1:{name:"Light Spacesuit - Blue"},2:{name:"Light Spacesuit - slate"},3:{name:"Light Spacesuit - Orange"},4:{name:"Heavy Spacesuit - Red"},5:{name:"Heavy Spacesuit - Black"},6:{name:"Heavy Spacesuit - Blue"},7:{name:"Lab Coat - White"},8:{name:"Lab Coat - Yellow"},9:{name:"Lab Coat - Green"},10:{name:"Tool Vest - Orange"},11:{name:"Tool Vest - Green"},12:{name:"Tool Vest - Yellow"},13:{name:"Jacket - Red"},14:{name:"Jacket - Green"},15:{name:"Jacket - Black"},16:{name:"Stationwear - Red"},17:{name:"Stationwear - Green"},18:{name:"Stationwear - Black"},19:{name:"Light Spacesuit - Navigation"},20:{name:"Stationwear - Education"}
1,21:{name:"Stationwear - Archival"},22:{name:"Lab Coat - Medical"},23:{name:"Heavy Spacesuit - Security"},24:{name:"Light Spacesuit - Logistics"},25:{name:"Tool Vest - Maintenance"},26:{name:"Light Spacesuit - Technology"},27:{name:"Tool Vest - Engineering"},28:{name:"Lab Coat - Botany"},29:{name:"Jacket - Cooking"},30:{name:"Jacket - Entertainment"},31:{name:"Stationwear - Commander"},32:{name:"Pilot Recruit - Primary"},33:{name:"Pilot Recruit - Variant"},34:{name:"Engineer Recruit - Primary"},35:{name:"Engineer Recruit - Variant"},36:{name:"Miner Recruit - Primary"},37:{name:"Miner Recruit - Variant"},38:{name:"Merchant Recruit - Primary"},39:{name:"Merchant Recruit - Variant"},40:{name:"Scientist Recruit - Primary"},41:{name:"Scientist Recruit - Variant"}},Y={},Z={},z=e=>A[e];Z.getCollection=e=>z(e.coll),Y.getCollection=e=>Z.getCollection(e.Crewmate);let W=e=>h[e];Z.getClass=e=>W(e.class),Y.getClass=e=>Z.getClass(e.Crewmate);let K=e=>C[e];Z.getTitle=e=>K(e.title),Y.getTitle=e=>Z.getTitle(e.Crewmate),Z.getCombinedTraits=e=>[...e.impactful||[],...e.cosmetic||[]].sort(),Y.getCombinedTraits=e=>Z.getCombinedTraits(e.Crewmate);let Q=[["gender",4],["body",16],["face",16],["hair",16],["hairColor",16],["clothes",16],["head",16],["item",8]],X=e=>{let t={};return e=BigInt(e),Q.forEach(a=>{let[l,s]=a,i=BigInt(Math.pow(2,s))-1n;t[l]=Number(e&i),e>>=BigInt(s)}),t};Z.unpackAppearance=e=>X(e.appearance),Y.unpackAppearance=e=>Z.unpackAppearance(e.Crewmate);let J=e=>F[e];Z.getItem=e=>J(X(e.appearance).item),Y.getItem=e=>Z.getItem(e.Crewmate);let $=e=>k[e];Z.getFace=e=>$(X(e.appearance).face),Y.getFace=e=>Z.getFace(e.Crewmate);let q=e=>U[e];Z.getGender=e=>q(X(e.appearance).gender),Y.getGender=e=>Z.getGender(e.Crewmate);let ee=e=>G[e];Z.getHairColor=e=>ee(X(e.appearance).hairColor),Y.getHairColor=e=>Z.getHairColor(e.Crewmate);let et=e=>H[e];Z.getHair=e=>et(X(e.appearance).hair),Y.getHair=e=>Z.getHair(e.Crewmate);let ea=e=>B[e];Z.getHead=e=>ea(X(e.appearance).head),Y.getHead=e=>Z.getHead(e.Crewmate);let el=e=>V[e];Z.getClothes=e=>el(X(e.appearance).clothes),Y.getClothes=e=>Z.getClothes(e.Crewmate);var es={ABILITY_IDS:M,COLLECTION_IDS:{ARVAD_SPECIALIST:1,ARVAD_CITIZEN:2,ARVAD_LEADERSHIP:3,ADALIAN:4},getAbility:e=>P[e],getTitle:K};let ei={1:{i:1,name:"Standard Quarters",cap:5,recruitment:!1,efficiency:1},2:{i:2,name:"Expanded Quarters",cap:15,recruitment:!1,efficiency:1},3:{i:3,name:"Habitat",cap:1e3,recruitment:!0,efficiency:1.2}},en=e=>ei[e]?{...ei[e]}:null,er={},ed=(e,t)=>{let{cap:a,efficiency:l}=en(e),s=.5*a;return l>1&&t>s?l-(l-1)*(Math.min(t,a)-s)/(a-s):l};er.getEfficiency=e=>ed(e.stationType,e.population),e=>er.getEfficiency(e.Station);var em={getEfficiency:ed};let ec=[.5,1,1.25,1.375,1.4375,1.46875],eo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=es.getAbility(e),l={name:a.name,class:{},traits:{},titles:{},crewmatesMultiplier:1};return a.class&&(l.class={classId:a.class,matches:0}),t.forEach(e=>{var t,s,i,n,r;if(!e)return;let d=e.classId||(null===(t=e.Crewmate)||void 0===t?void 0:t.class),m=e.titleId||(null===(s=e.Crewmate)||void 0===s?void 0:s.title),c=e.traitIds||(null===(i=e.Crewmate)||void 0===i?void 0:i.impactful)||[],o=e.collectionId||(null===(n=e.Crewmate)||void 0===n?void 0:n.collection)||(null===(r=e.Crewmate)||void 0===r?void 0:r.coll);if(d&&a.class&&d===a.class){let e=l.class||{matches:0};e.matches++,l.class=e}let u=m?es.getTitle(m):{};if(u.department&&a.departments&&a.departments[u.department]){let e=u.tier+(o===es.COLLECTION_IDS.ARVAD_SPECIALIST?.5:0),t=a.departments[u.department]*e,s=l.titles[m]||{matches:0,bonusPerMatch:t,bonus:0};s.matches++,s.bonus+=t,l.titles[m]=s,l.crewmatesMultiplier+=t}c.length>0&&c.forEach(e=>{if(e&&a.traits&&a.traits[e]){let t=l.traits[e]||{matches:0,bonusPerMatch:a.traits[e],bonus:0};t.matches++,t.bonus+=a.traits[e],l.traits[e]=t,l.crewmatesMultiplier+=a.traits[e]}})}),l.class.classId&&(l.class.multiplier=ec[l.class.matches],l.crewmatesMultiplier*=l.class.multiplier),l},eu=e=>{let t={stationMultiplier:1};return e.stationType&&e.population&&(t.stationMultiplier=em.getEfficiency(e.stationType,e.population)),t},ep=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a={foodMultiplier:1},{crewmatesMultiplier:l}=eo(es.ABILITY_IDS.FOOD_CONSUMPTION_TIME,t),{crewmatesMultiplier:s}=eo(es.ABILITY_IDS.FOOD_RATIONING_PENALTY,t);return a.foodMultiplier=eI(e,l,s),a},ex=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=e/31536e3/t;return Math.min(Math.max(0,1-a,.75-.5*a),1)},eI=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(1-(1-ex(e,t)/(.5/t))/a,.25),1)};var eh=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=eo(e,t),{notFurtherModified:i}=es.getAbility(e);
1return i?s.totalBonus=s.crewmatesMultiplier:(Object.assign(s,eu(a)),Object.assign(s,ep(l,t)),s.totalBonus=s.crewmatesMultiplier*s.stationMultiplier*s.foodMultiplier),s};let eN={[n.ld.CLASS_IDS.ENGINEER]:[n.ld.TRAIT_IDS.REFINER,n.ld.TRAIT_IDS.MECHANIC,n.ld.TRAIT_IDS.BUILDER],[n.ld.CLASS_IDS.MINER]:[n.ld.TRAIT_IDS.SURVEYOR,n.ld.TRAIT_IDS.RECYCLER,n.ld.TRAIT_IDS.PROSPECTOR],[n.ld.CLASS_IDS.MERCHANT]:[n.ld.TRAIT_IDS.HAULER,n.ld.TRAIT_IDS.MOGUL,n.ld.TRAIT_IDS.LOGISTICIAN],[n.ld.CLASS_IDS.SCIENTIST]:[n.ld.TRAIT_IDS.DIETITIAN,n.ld.TRAIT_IDS.SCHOLAR,n.ld.TRAIT_IDS.EXPERIMENTER],[n.ld.CLASS_IDS.PILOT]:[n.ld.TRAIT_IDS.NAVIGATOR,n.ld.TRAIT_IDS.BUSTER,n.ld.TRAIT_IDS.OPERATOR]};n.ld.CLASS_IDS.MINER,x.imageUrls.crewmate(28432),n.ld.CLASS_IDS.ENGINEER,x.imageUrls.crewmate(20709),n.ld.CLASS_IDS.SCIENTIST,x.imageUrls.crewmate(23365),n.ld.CLASS_IDS.MERCHANT,x.imageUrls.crewmate(23857),n.ld.CLASS_IDS.PILOT,x.imageUrls.crewmate(23342);let eT=[{id:(0,I.Z)(),collectionId:n.ld.COLLECTION_IDS.ADALIAN,classId:n.ld.CLASS_IDS.MINER,traitIds:[n.ld.TRAIT_IDS.PROSPECTOR],src:x.imageUrls.crewmate(28432)},{id:(0,I.Z)(),collectionId:n.ld.COLLECTION_IDS.ARVAD_SPECIALIST,classId:n.ld.CLASS_IDS.ENGINEER,traitIds:[n.ld.TRAIT_IDS.REFINER],departmentId:9,titleId:61,src:x.imageUrls.crewmate(20709)},{id:(0,I.Z)(),collectionId:n.ld.COLLECTION_IDS.ARVAD_CITIZEN,classId:n.ld.CLASS_IDS.SCIENTIST,traitIds:[n.ld.TRAIT_IDS.DIETITIAN],departmentId:2,titleId:54,src:x.imageUrls.crewmate(23365)},{id:(0,I.Z)(),collectionId:n.ld.COLLECTION_IDS.ARVAD_LEADERSHIP,classId:n.ld.CLASS_IDS.MERCHANT,traitIds:[n.ld.TRAIT_IDS.LOGISTICIAN],departmentId:13,titleId:65,src:x.imageUrls.crewmate(23857)},{id:(0,I.Z)(),collectionId:n.ld.COLLECTION_IDS.ADALIAN,classId:n.ld.CLASS_IDS.PILOT,traitIds:[n.ld.TRAIT_IDS.NAVIGATOR],src:x.imageUrls.crewmate(23342)}];(0,I.Z)(),n.ld.COLLECTION_IDS.ADALIAN,n.ld.CLASS_IDS.MERCHANT,n.ld.TRAIT_IDS.LOGISTICIAN,x.imageUrls.crewmate(23857),(0,I.Z)(),n.ld.COLLECTION_IDS.ADALIAN,n.ld.CLASS_IDS.MERCHANT,n.ld.TRAIT_IDS.LOGISTICIAN,x.imageUrls.crewmate(23857),(0,I.Z)(),n.ld.COLLECTION_IDS.ADALIAN,n.ld.CLASS_IDS.MERCHANT,n.ld.TRAIT_IDS.LOGISTICIAN,x.imageUrls.crewmate(23857),(0,I.Z)(),n.ld.COLLECTION_IDS.ADALIAN,n.ld.CLASS_IDS.MERCHANT,n.ld.TRAIT_IDS.LOGISTICIAN,x.imageUrls.crewmate(23857),(0,I.Z)(),n.ld.COLLECTION_IDS.ADALIAN,n.ld.CLASS_IDS.MERCHANT,n.ld.TRAIT_IDS.LOGISTICIAN,x.imageUrls.crewmate(23857),(0,I.Z)(),n.ld.COLLECTION_IDS.ADALIAN,n.ld.CLASS_IDS.ENGINEER,n.ld.TRAIT_IDS.REFINER,x.imageUrls.crewmate(20709),(0,I.Z)(),n.ld.COLLECTION_IDS.ADALIAN,n.ld.CLASS_IDS.ENGINEER,n.ld.TRAIT_IDS.REFINER,x.imageUrls.crewmate(20709),(0,I.Z)(),n.ld.COLLECTION_IDS.ADALIAN,n.ld.CLASS_IDS.ENGINEER,n.ld.TRAIT_IDS.REFINER,x.imageUrls.crewmate(20709),(0,I.Z)(),n.ld.COLLECTION_IDS.ADALIAN,n.ld.CLASS_IDS.SCIENTIST,n.ld.TRAIT_IDS.DIETITIAN,x.imageUrls.crewmate(23365),(0,I.Z)(),n.ld.COLLECTION_IDS.ADALIAN,n.ld.CLASS_IDS.PILOT,n.ld.TRAIT_IDS.DIETITIAN,x.imageUrls.crewmate(23365);let eg=()=>eT,ef=(e,t)=>eh(e,t),eS=e=>Object.values(n.ld.ABILITY_IDS).map(t=>ef(t,e)).sort((e,t)=>e.totalBonus>t.totalBonus?-1:e.totalBonus<t.totalBonus?1:0),eA=()=>Object.entries(n.ld.TRAITS).map(e=>{let[t,a]=e;return{traitId:t,...a}}).filter(e=>"impactful"===e.type),eC=e=>{let t={[n.ld.COLLECTION_IDS.ARVAD_SPECIALIST]:{name:"Arvad Specialist",description:"Specialists with enhanced department expertise (+0.5 tier bonus)",color:"bg-blue-500",textColor:"text-blue-700"},[n.ld.COLLECTION_IDS.ARVAD_CITIZEN]:{name:"Arvad Citizen",description:"Standard Arvadian citizens with balanced abilities",color:"bg-green-500",textColor:"text-green-700"},[n.ld.COLLECTION_IDS.ARVAD_LEADERSHIP]:{name:"Arvad Leadership",description:"Leadership-focused Arvadians with command bonuses",color:"bg-purple-500",textColor:"text-purple-700"},[n.ld.COLLECTION_IDS.ADALIAN]:{name:"Adalian",description:"Native Adalians with specialized class traits",color:"bg-orange-500",textColor:"text-orange-700"}};return t[e]||t[n.ld.COLLECTION_IDS.ADALIAN]},eE=()=>Object.values(n.ld.COLLECTION_IDS).map(e=>({id:e,...eC(e)})),ev=e=>n.ld.DEPARTMENTS[e]||{name:"Unknown Department"},eb=()=>Object.entries(n.ld.DEPARTMENTS).map(e=>
1{let[t,a]=e;return{id:Number(t),...a}}),e_=e=>Object.entries(n.ld.TITLES).filter(t=>{let[a,l]=t;return l.department===e}).map(e=>{let[t,a]=e;return{id:Number(t),...a}}).sort((e,t)=>e.tier-t.tier);function eL(e){let{simulatedCrew:t}=e,a=eS(t);return(0,s.jsxs)("div",{className:"mb-4 sm:mb-8 lg:mb-10",children:[(0,s.jsx)("div",{className:"sm:flex sm:items-center",children:(0,s.jsx)("div",{className:"sm:flex-auto",children:(0,s.jsx)("h2",{className:"mb-4 text-2xl font-semibold leading-6 text-slate-900",children:"Bonus by Abilities"})})}),(0,s.jsx)("div",{className:"flow-root overflow-auto",children:(0,s.jsx)("div",{className:"-mx-4 -my-2 sm:-mx-6 lg:-mx-8",children:(0,s.jsx)("div",{className:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8",children:(0,s.jsx)("div",{className:"shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg",children:(0,s.jsxs)("table",{className:"min-w-full divide-y divide-slate-300",children:[(0,s.jsx)("thead",{className:"bg-slate-50",children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-slate-900 sm:pl-6",children:"Ability"}),(0,s.jsx)("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-slate-900",children:"Class"}),(0,s.jsx)("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-slate-900",children:"Traits"}),(0,s.jsx)("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-slate-900",children:"Titles"}),(0,s.jsx)("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-slate-900",children:"Crewmates Multiplier"}),(0,s.jsx)("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-slate-900",children:"Station Multiplier"}),(0,s.jsx)("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-slate-900",children:"Food Multiplier"}),(0,s.jsx)("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-slate-900",children:"Total Bonus"})]})}),(0,s.jsx)("tbody",{className:"bg-white divide-y divide-slate-200",children:null==a?void 0:a.map(e=>{var t,a,l,i;return(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"py-4 pl-4 pr-3 text-sm font-medium text-slate-900 whitespace-nowrap sm:pl-6",children:null==e?void 0:e.name}),(0,s.jsx)("td",{className:"px-3 py-4 text-sm text-slate-500 whitespace-nowrap",children:(0,s.jsx)(r,{bonusClass:null==e?void 0:e.class})}),(0,s.jsx)("td",{className:"px-3 py-4 text-sm text-slate-500 whitespace-nowrap",children:(0,s.jsx)(d,{traits:null==e?void 0:e.traits})}),(0,s.jsx)("td",{className:"px-3 py-4 text-sm text-slate-500 whitespace-nowrap",children:(0,s.jsx)(m,{titles:null==e?void 0:e.titles})}),(0,s.jsx)("td",{className:"px-3 py-4 text-lg text-slate-500 whitespace-nowrap",children:null==e?void 0:null===(t=e.crewmatesMultiplier)||void 0===t?void 0:t.toFixed(4)}),(0,s.jsx)("td",{className:"px-3 py-4 text-lg text-slate-500 whitespace-nowrap",children:(null==e?void 0:null===(a=e.stationMultiplier)||void 0===a?void 0:a.toFixed(4))||(0,s.jsx)("span",{className:"text-sm",children:"N/A"})}),(0,s.jsx)("td",{className:"px-3 py-4 text-lg text-slate-500 whitespace-nowrap",children:(null==e?void 0:null===(l=e.foodMultiplier)||void 0===l?void 0:l.toFixed(4))||(0,s.jsx)("span",{className:"text-sm",children:"N/A"})}),(0,s.jsx)("td",{className:"px-3 py-4 text-lg font-semibold text-slate-500 whitespace-nowrap",children:null==e?void 0:null===(i=e.totalBonus)||void 0===i?void 0:i.toFixed(4)})]},null==e?void 0:e.name)})})]})})})})})]})}a(329);var eR=e=>{let{simulatedCrew:t}=e,[a,l]=(0,i.useState)(!0),n=eA(),r=null==t?void 0:t.map(e=>e.traitIds[0]);return(0,s.jsxs)("div",{className:"p-4 mb-4 sm:mb-8 lg:mb-10 bg-slate-300",children:[(0,s.jsxs)("div",{className:"flex flex-row items-baseline",children:[(0,s.jsx)("input",{defaultChecked:a,onChange:e=>l(e=>!e),id:"same-as-shipping",name:"same-as-shipping",type:"checkbox",className:"w-4 h-4 rounded border-slate-300 text-slate-600 checked:ring-slate-600"}),(0,s.jsx)("div",{className:"ml-2",children:(0,s.jsx)("label",{htmlFor:"same-as-shipping",className:"text-lg font-medium text-slate-900",children:"Show Crew Traits Description"})})]}),a?(0,s.jsx)("div",{className:"flex flex-col gap-3 rounded-lg sm:grid sm:grid-cols-3",children:n.filter(e=>r.includes(Number(e.traitId))).map(e=>(0,s.jsxs)("div",{className:"flex flex-col items-start gap-2 text-lg",children:[(0,s.jsx)("div",{children:e.name}),(0,s.jsx)("div",{className:"text-sm",children:e.description})]},e.name))}):""]})};function ej(){return(0,s.jsxs)("div",{className:"relative isolate flex items-center gap-x-6 overflow-hidden bg-slate-50 px-6 py-2.5 sm:px-3.5 sm:before:flex-1",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:"absolute left-[max(-7rem,calc(50%-52rem))] top-1/2 -z-10 -translate-y-1/2 transform-gpu blur-2xl",children:(0,s.jsx)("div",{style:{clipPath:"pol
1ygon(74.8% 41.9%, 97.2% 73.2%, 100% 34.9%, 92.5% 0.4%, 87.5% 0%, 75% 28.6%, 58.5% 54.6%, 50.1% 56.8%, 46.9% 44%, 48.3% 17.4%, 24.7% 53.9%, 0% 27.9%, 11.9% 74.2%, 24.9% 54.1%, 68.6% 100%, 74.8% 41.9%)"},className:"aspect-[577/310] w-[36.0625rem] bg-gradient-to-r from-[#ff80b5] to-[#9089fc] opacity-30"})}),(0,s.jsx)("div",{"aria-hidden":"true",className:"absolute left-[max(45rem,calc(50%+8rem))] top-1/2 -z-10 -translate-y-1/2 transform-gpu blur-2xl",children:(0,s.jsx)("div",{style:{clipPath:"polygon(74.8% 41.9%, 97.2% 73.2%, 100% 34.9%, 92.5% 0.4%, 87.5% 0%, 75% 28.6%, 58.5% 54.6%, 50.1% 56.8%, 46.9% 44%, 48.3% 17.4%, 24.7% 53.9%, 0% 27.9%, 11.9% 74.2%, 24.9% 54.1%, 68.6% 100%, 74.8% 41.9%)"},className:"aspect-[577/310] w-[36.0625rem] bg-gradient-to-r from-[#ff80b5] to-[#9089fc] opacity-30"})}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-2",children:[(0,s.jsxs)("p",{className:"text-sm leading-6 text-slate-900",children:[(0,s.jsx)("strong",{className:"font-semibold",children:"Adalian Crew Simulator"}),(0,s.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline h-0.5 w-0.5 fill-current",children:(0,s.jsx)("circle",{r:1,cx:1,cy:1})}),"Send your thank you to",(0,s.jsx)("strong",{className:"font-medium",children:" <Q> jpmti2016"})]}),(0,s.jsx)("div",{className:"flex-none rounded-full bg-slate-900 px-3.5 py-1 text-sm font-semibold text-slate-50 shadow-sm hover:bg-slate-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-slate-900",children:"Lot #1,514,306 | Lot #1,505,190"})]})]})}function eO(e){let{collectionId:t,size:a="sm"}=e,l=eC(t);return(0,s.jsx)("span",{className:"inline-flex items-center rounded-full font-medium ".concat(l.color," text-white ").concat({xs:"px-1.5 py-0.5 text-xs",sm:"px-2 py-1 text-xs",md:"px-3 py-1.5 text-sm",lg:"px-4 py-2 text-base"}[a]),title:l.description,children:l.name})}function eD(e){let{onAddCrewmate:t,disabled:a=!1}=e,[l,r]=(0,i.useState)(n.ld.COLLECTION_IDS.ADALIAN),[d,m]=(0,i.useState)(n.ld.CLASS_IDS.MINER),[c,o]=(0,i.useState)(n.ld.TRAIT_IDS.PROSPECTOR),[u,p]=(0,i.useState)(0),[h,N]=(0,i.useState)(0),T=eE(),g=Object.values(n.ld.CLASS_IDS).filter(e=>0!==e),f=eN[d]||[],S=l===n.ld.COLLECTION_IDS.ADALIAN,A=S?[]:eb(),C=S?[]:u>0?e_(u):[];return a?(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-3 p-3 text-base rounded-md bg-slate-100 border-2 border-dashed border-slate-200 min-h-[280px] sm:min-h-[420px] sm:h-full opacity-50",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-slate-400",children:"Crew Full"}),(0,s.jsx)("span",{className:"text-xs text-slate-400 text-center",children:"Maximum 5 crewmates reached"})]}):(0,s.jsxs)("form",{onSubmit:e=>{if(e.preventDefault(),a)return;let s={id:(0,I.Z)(),collectionId:l,classId:d,traitIds:[c],src:x.imageUrls.crewmate(Math.floor(3e4*Math.random())+1e3)};!S&&(u>0&&(s.departmentId=u),h>0&&(s.titleId=h)),t(s)},className:"flex flex-col gap-3 p-3 text-base rounded-md bg-slate-50 border-2 border-dashed border-slate-300 min-h-[280px] sm:min-h-[420px] sm:h-full",children:[(0,s.jsx)("div",{className:"flex items-center justify-center mb-2",children:(0,s.jsx)("span",{className:"text-sm font-semibold text-slate-500",children:"Add Crewmate"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs font-medium text-slate-700 mb-1",children:"Collection"}),(0,s.jsx)("select",{value:l,onChange:e=>r(Number(e.target.value)),className:"w-full text-xs rounded-md border-slate-300 shadow-sm focus:border-slate-500 focus:ring-slate-500",children:T.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name},e.id))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs font-medium text-slate-700 mb-1",children:"Class"}),(0,s.jsx)("select",{value:d,onChange:e=>{let t=Number(e.target.value);m(t);let a=eN[t];(null==a?void 0:a.length)>0&&o(a[0])},className:"w-full text-xs rounded-md border-slate-300 shadow-sm focus:border-slate-500 focus:ring-slate-500",children:g.map(e=>{var t;return(0,s.jsx)("option",{value:e,children:null===(t=n.ld.getClass(e))||void 0===t?void 0:t.name},e)})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs font-medium text-slate-700 mb-1",children:"Primary Trait"}),(0,s.jsx)("select",{value:c,onChange:e=>o(Number(e.target.value)),className:"w-full text-xs rounded-md border-slate-300 shadow-sm focus:border-slate-500 focus:ring-slate-500",children:f.map(e=>{var t;return(0,s.jsx)("option",{value:e,children:null===(t=n.ld.getTrait(e))||void 0===t?void 0:t.name},e)})})]}),!S&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs font-medium text-slate-700 mb-1",children:"Department"}),(0,s.jsxs)("select",{value:u,onChange:e=>{p(Number(e.target.value)),N(0)},className:"w-full text-xs rounded-md border-slate-300 shadow-sm focus:border-slate-500 focus:ring-slate-500",children:[(0,s.jsx)("option",{value:0,children:"No Department"}),A.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name},e.id))]})]}),u>0&&(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"block text-xs font-medium text-slate-700 mb-1",children:["Title",l===n.ld.COLLECTION_IDS.ARVAD_SPECIALIST&&(0,s.jsx)("span",{className:"text-blue-600 text-xs ml-1",children:"(+0.5)"})]}),(0,s.jsxs)("select",{value:h,onChange:e=>N(Number(e.target.value)),className:"w-full text-xs rounded-md border-slate-300 shadow-sm focus:border-slate-500 focus:ring-slate-500",children:[(0,s.jsx)("option",{value:0,children:"No Title"}),C.map(e=>(0,s.jsxs)("option",{value:e.id,children:[e.name," (Tier ",e.tier,")"]},e.id))]})]})]}),(0,s.jsxs)("button",{type:"submit",className:"mt-auto flex justify-center items-center gap-1 py-2 px-3 border border-transparent roun
1ded-md shadow-sm text-xs font-medium text-white bg-slate-600 hover:bg-slate-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6v6m0 0v6m0-6h6m-6 0H6"})}),"Add"]})]})}function ew(e){var t,a,l;let{initialCrewmate:r,setSimulatedCrew:d,onRemoveCrewmate:m}=e,[c,o]=(0,i.useState)(r),[u,p]=(0,i.useState)(null==r?void 0:r.traitIds[0]),[x,I]=(0,i.useState)(null==r?void 0:r.classId),[h,N]=(0,i.useState)(null==r?void 0:r.collectionId),[T,g]=(0,i.useState)((null==r?void 0:r.departmentId)||0),[f,S]=(0,i.useState)((null==r?void 0:r.titleId)||0),A=h===n.ld.COLLECTION_IDS.ADALIAN,C=A?[]:eb(),E=A?[]:T>0?e_(T):[];return(0,i.useEffect)(()=>{d(e=>e.map(e=>{if(e.id===c.id){let e={...c,collectionId:h,classId:x,traitIds:[Number(u)]};return!A&&(T>0&&(e.departmentId=T),f>0&&(e.titleId=f)),e}return e}))},[h,u,x,T,f,c,d,A]),(0,s.jsxs)("form",{className:"flex flex-col gap-3 p-3 text-base rounded-md bg-slate-50 border border-slate-200 sm:min-h-[420px] sm:h-full",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"text-sm font-semibold text-slate-700",children:"Crewmate"}),!A&&T>0&&(0,s.jsxs)("span",{className:"text-xs text-slate-500",children:[null===(t=n.ld.DEPARTMENTS[T])||void 0===t?void 0:t.name,f>0&&" • ".concat(null===(a=n.ld.TITLES[f])||void 0===a?void 0:a.name)]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(eO,{collectionId:h,size:"xs"}),m&&(0,s.jsx)("button",{type:"button",onClick:()=>m(c.id),className:"text-red-500 hover:text-red-700 text-xs p-1",title:"Remove crewmate",children:"✕"})]})]}),(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("label",{htmlFor:"collection-".concat(c.id),className:"block text-sm font-medium leading-6 text-slate-900",children:"Collection"}),(0,s.jsx)("select",{id:"collection-".concat(c.id),name:"collection-".concat(c.id),value:h,onChange:e=>N(Number(e.target.value)),className:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-slate-900 ring-1 ring-inset ring-slate-300 focus:ring-2 focus:ring-slate-600 sm:text-sm sm:leading-6",children:eE().map(e=>(0,s.jsx)("option",{value:e.id,children:e.name},e.id))}),(0,s.jsx)("p",{className:"mt-1 text-xs text-slate-600",children:eC(h).description})]}),(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("label",{htmlFor:"classId-".concat(null==c?void 0:c.id),className:"block text-sm font-medium leading-6 text-slate-900",children:"Class"}),(0,s.jsx)("select",{value:x,onChange:function(e){e.preventDefault(),I(Number(e.target.value)),p(Number(eN[Number(e.target.value)][0]))},id:"classId-".concat(null==c?void 0:c.id),name:"classId-".concat(null==c?void 0:c.id),className:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-slate-900 ring-1 ring-inset ring-slate-300 focus:ring-2 focus:ring-slate-600 sm:text-sm sm:leading-6",children:Object.values(n.ld.CLASS_IDS).filter(e=>0!==e).map(e=>(0,s.jsx)("option",{value:e,children:n.ld.CLASSES[e].name},n.ld.CLASSES[e].name))})]}),(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("label",{htmlFor:"traitIds-".concat(c.id),className:"block text-sm font-medium leading-6 text-slate-900",children:"Trait"}),(0,s.jsx)("select",{id:"traitIds-".concat(c.id),name:"traitIds-".concat(c.id),value:u,onChange:function(e){e.preventDefault(),p(e.target.value)},className:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-slate-900 ring-1 ring-inset ring-slate-300 focus:ring-2 focus:ring-slate-600 sm:text-sm sm:leading-6",children:null===(l=eN[x])||void 0===l?void 0:l.map(e=>{var t,a;return(0,s.jsx)("option",{value:e,children:null===(t=n.ld.TRAITS[e])||void 0===t?void 0:t.name},null===n.ld||void 0===n.ld?void 0:null===(a=n.ld.TRAITS[e])||void 0===a?void 0:a.name)})})]}),!A&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"department-".concat(c.id),className:"block text-sm font-medium leading-6 text-slate-900",children:"Department"}),(0,s.jsxs)("select",{id:"department-".concat(c.id),name:"department-".concat(c.id),value:T,onChange:e=>{g(Number(e.target.value)),S(0)},className:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-slate-900 ring-1 ring-inset ring-slate-300 focus:ring-2 focus:ring-slate-600 sm:text-sm sm:leading-6",children:[(0,s.jsx)("option",{value:0,children:"No Department"}),C.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name},e.id))]})]}),T>0&&(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{htmlFor:"title-".concat(c.id),className:"block text-sm font-medium leading-6 text-slate-900",children:["Title",h===n.ld.COLLECTION_IDS.ARVAD_SPECIALIST&&(0,s.jsx)("span",{className:"text-blue-600 text-xs ml-1",children:"(+0.5 tier bonus)"})]}),(0,s.jsxs)("select",{id:"title-".concat(c.id),name:"title-".concat(c.id),value:f,onChange:e=>S(Number(e.target.value)),className:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-slate-900 ring-1 ring-inset ring-slate-300 focus:ring-2 focus:ring-slate-600 sm:text-sm sm:leading-6",children:[(0,s.jsx)("option",{value:0,children:"No Title"}),E.map(e=>(0,s.jsxs)("option",{value:e.id,children:[e.name," (Tier ",e.tier,")"]},e.id))]})]})]})]})}function ey(e){let{simulatedCrew:t,setSimulatedCrew:a,onRemoveCrewmate:l,onAddCrewmate:i}=e,n=(null==t?void 0:t.length)||0,r=[...t.map(e=>({type:"crewmate",data:e})),...Array(Math.max(0,5-n)).fill().map((e,t)=>({type:"empty",id:"empty-".concat(t)}))];return(0,s.jsxs)("div",{className:"flex flex-col gap-2 pb-4 mb-4 sm:mb-8 lg:mb-10 sm:gap-4 lg:gap-6",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold text-slate-900",children:"Crew Composition"}),(0,s.jsxs)("span",{className:"text-sm text-slate-600",children:[n," / ",5," crewmates"]})]}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{role:"list",className:"grid max-w-2xl grid-cols-1 gap-3 mx-auto 
1sm:grid-cols-2 lg:mx-0 lg:max-w-none lg:grid-cols-5 sm:gap-4 lg:gap-8 sm:items-start",children:r.map((e,t)=>(0,s.jsx)("div",{className:"sm:h-full",children:"crewmate"===e.type?(0,s.jsx)(ew,{initialCrewmate:e.data,setSimulatedCrew:a,onRemoveCrewmate:l}):(0,s.jsx)(eD,{onAddCrewmate:i,disabled:n>=5})},"crewmate"===e.type?e.data.id:e.id))})}),(0,s.jsx)(ej,{})]})}function eM(e){let{simulatedCrew:t}=e,[a,l]=(0,i.useState)(!1),r=eE(),d=t.reduce((e,t)=>{let a=t.collectionId;return e[a]||(e[a]=[]),e[a].push(t),e},{}),m=(e,t)=>{switch(e){case n.ld.COLLECTION_IDS.ARVAD_SPECIALIST:let a=t.filter(e=>e.titleId),l=[...new Set(t.filter(e=>e.departmentId).map(e=>ev(e.departmentId).name))];return{title:"Specialist Benefits",benefits:["".concat(a.length," crewmate(s) with +0.5 tier department bonus"),l.length>0?"Departments: ".concat(l.join(", ")):"No departments assigned","Enhanced department expertise for complex operations"]};case n.ld.COLLECTION_IDS.ARVAD_CITIZEN:let s=[...new Set(t.filter(e=>e.departmentId).map(e=>ev(e.departmentId).name))];return{title:"Citizen Benefits",benefits:["Balanced abilities across all operations",s.length>0?"Departments: ".concat(s.join(", ")):"No departments assigned","Reliable foundation for any crew composition"]};case n.ld.COLLECTION_IDS.ARVAD_LEADERSHIP:let i=[...new Set(t.filter(e=>e.departmentId).map(e=>ev(e.departmentId).name))];return{title:"Leadership Benefits",benefits:["Command-focused abilities",i.length>0?"Departments: ".concat(i.join(", ")):"No departments assigned","Enhanced coordination and management capabilities"]};case n.ld.COLLECTION_IDS.ADALIAN:return{title:"Adalian Benefits",benefits:["Specialized class-based traits","Native understanding of asteroid operations"]};default:return{title:"Unknown Collection",benefits:[]}}};return(0,s.jsxs)("div",{className:"p-4 bg-slate-50 rounded-lg border border-slate-200",children:[(0,s.jsxs)("div",{className:"flex flex-row items-baseline mb-4",children:[(0,s.jsx)("input",{checked:a,onChange:e=>l(e=>!e),id:"show-collection-summary",name:"show-collection-summary",type:"checkbox",className:"w-4 h-4 rounded border-slate-300 text-slate-600 checked:ring-slate-600"}),(0,s.jsx)("div",{className:"ml-2",children:(0,s.jsx)("label",{htmlFor:"show-collection-summary",className:"text-lg font-medium text-slate-900",children:"Show Collection Summary"})})]}),a&&0===t.length&&(0,s.jsx)("p",{className:"text-slate-600",children:"Add crewmates to see collection benefits."}),a&&t.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"space-y-4",children:Object.entries(d).map(e=>{let[t,a]=e;r.find(e=>e.id===Number(t));let l=m(Number(t),a);return(0,s.jsxs)("div",{className:"border border-slate-200 rounded-lg p-3 bg-white",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,s.jsx)(eO,{collectionId:Number(t),size:"sm"}),(0,s.jsxs)("span",{className:"text-sm text-slate-600",children:[a.length," crewmate",1!==a.length?"s":""]})]}),(0,s.jsx)("h4",{className:"font-medium text-slate-900 mb-2",children:l.title}),(0,s.jsx)("ul",{className:"text-sm text-slate-600 space-y-1",children:l.benefits.map((e,t)=>(0,s.jsxs)("li",{className:"flex items-start",children:[(0,s.jsx)("span",{className:"text-slate-400 mr-2",children:"•"}),e]},t))})]},t)})}),(0,s.jsxs)("div",{className:"mt-4 p-3 bg-blue-50 rounded-lg border border-blue-200",children:[(0,s.jsx)("h4",{className:"font-medium text-blue-900 mb-2",children:"Mixed Collection Strategy"}),(0,s.jsx)("p",{className:"text-sm text-blue-700",children:"Combining different collections can provide complementary benefits. Arvad Specialists excel at specific departments, while Adalians provide solid class-based bonuses. Consider your operation's specific needs when building your crew."})]})]})]})}function eP(){let[e,t]=(0,i.useState)(eg());return(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)(ey,{simulatedCrew:e,setSimulatedCrew:t,onRemoveCrewmate:e=>{t(t=>t.filter(t=>t.id!==e))},onAddCrewmate:e=>{t(t=>t.length>=5?t:[...t,e])}}),(0,s.jsx)(eM,{simulatedCrew:e}),(0,s.jsx)(eR,{simulatedCrew:e}),(0,s.jsx)(eL,{simulatedCrew:e})]})}n.ld.CLASS_IDS.MINER,n.ld.CLASS_IDS.SCIENTIST,n.ld.CLASS_IDS.ENGINEER,n.ld.CLASS_IDS.MERCHANT,n.ld.CLASS_IDS.PILOT,n.ld.TRAIT_IDS.REFINER,n.ld.TRAIT_IDS.NAVIGATOR,n.ld.TRAIT_IDS.HAULER,n.ld.TRAIT_IDS.DIETITIAN,n.ld.TRAIT_IDS.PROSPECTOR}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.