mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-03 10:21:33 +01:00
60f7e6fbcd
* Bump the npm_and_yarn group across 1 directory with 3 updates Bumps the npm_and_yarn group with 3 updates in the /tgui directory: [dompurify](https://github.com/cure53/DOMPurify), [fast-uri](https://github.com/fastify/fast-uri) and [immutable](https://github.com/immutable-js/immutable-js). Updates `dompurify` from 3.4.11 to 3.4.12 - [Release notes](https://github.com/cure53/DOMPurify/releases) - [Commits](https://github.com/cure53/DOMPurify/compare/3.4.11...3.4.12) Updates `fast-uri` from 3.1.2 to 3.1.4 - [Release notes](https://github.com/fastify/fast-uri/releases) - [Commits](https://github.com/fastify/fast-uri/compare/v3.1.2...v3.1.4) Updates `immutable` from 5.1.5 to 5.1.9 - [Release notes](https://github.com/immutable-js/immutable-js/releases) - [Changelog](https://github.com/immutable-js/immutable-js/blob/main/CHANGELOG.md) - [Commits](https://github.com/immutable-js/immutable-js/compare/v5.1.5...v5.1.9) --- updated-dependencies: - dependency-name: dompurify dependency-version: 3.4.12 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: fast-uri dependency-version: 3.1.4 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: immutable dependency-version: 5.1.9 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com> * bundle and mm --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zephyr <zephyr@talongrip.dev>
1 line
1.4 MiB
Plaintext
1 line
1.4 MiB
Plaintext
(()=>{var e,n,t={222:function(e,n,t){var r={"./pai_atmosphere.jsx":"2817","./pai_bioscan.jsx":"7716","./pai_directives.jsx":"1091","./pai_doorjack.jsx":"9316","./pai_main_menu.jsx":"5042","./pai_manifest.jsx":"702","./pai_medrecords.jsx":"9513","./pai_messenger.jsx":"984","./pai_radio.jsx":"9028","./pai_secrecords.jsx":"6838","./pai_signaler.jsx":"4244"};function i(e){return t(o(e))}function o(e){if(!t.o(r,e)){var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=222},2721:function(e,n,t){var r={"./pda_atmos_scan.jsx":"8539","./pda_cookbook.jsx":"5246","./pda_games.jsx":"2336","./pda_janitor.jsx":"3606","./pda_main_menu.jsx":"2526","./pda_manifest.jsx":"4642","./pda_medical.jsx":"1212","./pda_messenger.jsx":"3260","./pda_minesweeper.jsx":"3067","./pda_mule.jsx":"5030","./pda_nanobank.jsx":"9749","./pda_notes.jsx":"3194","./pda_power.jsx":"4702","./pda_secbot.jsx":"6651","./pda_security.jsx":"7155","./pda_signaler.jsx":"7024","./pda_status_display.jsx":"7148","./pda_supplyrecords.jsx":"7632"};function i(e){return t(o(e))}function o(e){if(!t.o(r,e)){var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=2721},4808:function(e,n,t){var r={"./AICard":"9609","./AICard.jsx":"9609","./AIControllerDebugger":"1664","./AIControllerDebugger.tsx":"1664","./AIFixer":"8679","./AIFixer.jsx":"8679","./AIProgramPicker":"5233","./AIProgramPicker.jsx":"5233","./AIResourceManagementConsole":"9991","./AIResourceManagementConsole.jsx":"9991","./APC":"731","./APC.jsx":"731","./ATM":"6181","./ATM.jsx":"6181","./AccountsUplinkTerminal":"4558","./AccountsUplinkTerminal.jsx":"4558","./AdminAntagMenu":"3840","./AdminAntagMenu.jsx":"3840","./AgentCard":"2794","./AgentCard.tsx":"2794","./AiAirlock":"8706","./AiAirlock.jsx":"8706","./AirAlarm":"5486","./AirAlarm.jsx":"5486","./AirlockAccessController":"6962","./AirlockAccessController.jsx":"6962","./AirlockElectronics":"9281","./AirlockElectronics.tsx":"9281","./AlertModal":"934","./AlertModal.tsx":"934","./AntagInfoHeretic":"2712","./AntagInfoHeretic.tsx":"2712","./AppearanceChanger":"6473","./AppearanceChanger.jsx":"6473","./ArcadeBattle":"6085","./ArcadeBattle.tsx":"6085","./AtmosAlertConsole":"3438","./AtmosAlertConsole.jsx":"3438","./AtmosControl":"4788","./AtmosControl.jsx":"4788","./AtmosFilter":"1937","./AtmosFilter.jsx":"1937","./AtmosMixer":"7440","./AtmosMixer.jsx":"7440","./AtmosPump":"7897","./AtmosPump.jsx":"7897","./AtmosTankControl":"1164","./AtmosTankControl.jsx":"1164","./AtmosTemperatureGate":"8340","./AtmosTemperatureGate.jsx":"8340","./AugmentMenu":"6561","./AugmentMenu.jsx":"6561","./Autolathe":"8762","./Autolathe.tsx":"8762","./BioChipPad":"9766","./BioChipPad.jsx":"9766","./Biogenerator":"9968","./Biogenerator.jsx":"9968","./BloomEdit":"3764","./BloomEdit.jsx":"3764","./BlueSpaceArtilleryControl":"7166","./BlueSpaceArtilleryControl.jsx":"7166","./BluespaceTap":"8128","./BluespaceTap.jsx":"8128","./BodyScanner":"6807","./BodyScanner.jsx":"6807","./BookBinder":"2790","./BookBinder.jsx":"2790","./BotCall":"1326","./BotCall.jsx":"1326","./BotClean":"9091","./BotClean.jsx":"9091","./BotFloor":"3578","./BotFloor.jsx":"3578","./BotHonk":"5144","./BotHonk.jsx":"5144","./BotMed":"2078","./BotMed.jsx":"2078","./BotMule":"881","./BotMule.jsx":"881","./BotSecurity":"752","./BotSecurity.jsx":"752","./BrigCells":"2850","./BrigCells.jsx":"2850","./BrigTimer":"9478","./BrigTimer.jsx":"9478","./BugReportForm":"6993","./BugReportForm.tsx":"6993","./CameraConsole":"9835","./CameraConsole.tsx":"9835","./Canister":"2094","./Canister.jsx":"2094","./CardComputer":"991","./CardComputer/":"991","./CardComputer/auth_block":"1487","./CardComputer/auth_block.tsx":"1487","./CardComputer/card_details":"7542","./CardComputer/card_details.tsx":"7542","./CardComputer/index":"991","./CardComputer/index.tsx":"991","./CardComputer/job_priority":"4287","./CardComputer/job_priority.tsx":"4287","./CardComputer/job_transfer":"6530","./CardComputer/job_transfer.tsx":"6530","./CardComputer/records_log":"9490","./CardComputer/records_log.tsx":"9490","./CardComputer/types":"1488","./CardComputer/types.tsx":"1488","./CargoConsole":"6466","./CargoConsole.jsx":"6466","./Chameleon":"6205","./Chameleon.tsx":"6205","./ChangelogView":"9072","./ChangelogView.jsx":"9072","./CheckboxListInputModal":"6707","./CheckboxListInputModal.tsx":"6707","./ChemDispenser":"8573","./ChemDispenser.jsx":"8573","./ChemHeater":"6277","./ChemHeater.jsx":"6277","./ChemMaster":"9306","./ChemMaster.tsx":"9306","./CloningConsole":"2636","./CloningConsole.jsx":"2636","./CloningPod":"1558","./CloningPod.jsx":"1558","./CoinMint":"1276","./CoinMint.tsx":"1276","./ColorPickerModal":"1572","./ColorPickerModal.tsx":"1572","./ColourMatrixTester":"6851","./ColourMatrixTester.jsx":"6851","./CommunicationsComputer":"5325","./CommunicationsComputer.jsx":"5325","./CompostBin":"6185","./CompostBin.jsx":"6185","./Contractor":"4868","./Contractor.jsx":"4868","./ConveyorSwitch":"3510","./ConveyorSwitch.jsx":"3510","./CrewMonitor":"6714","./CrewMonitor.jsx":"6714","./Cryo":"2306","./Cryo.jsx":"2306","./CryopodConsole":"2394","./CryopodConsole.jsx":"2394","./DNAModifier":"3372","./DNAModifier.tsx":"3372","./DanceMachine":"4283","./DanceMachine.tsx":"4283","./DecalPainter":"5391","./DecalPainter.tsx":"5391","./DestinationTagger":"3883","./DestinationTagger.jsx":"3883","./DisposalBin":"6381","./DisposalBin.jsx":"6381","./DnaVault":"2908","./DnaVault.jsx":"2908","./DroneConsole":"2480","./DroneConsole.jsx":"2480","./EFTPOS":"1654","./EFTPOS.jsx":"1654","./ERTManager":"3991","./ERTManager.tsx":"3991","./EconomyManager":"9644","./EconomyManager.jsx":"9644","./Electropack":"6426","./Electropack.jsx":"6426","./Emojipedia":"9480","./Emojipedia.tsx":"9480","./EvolutionMenu":"9219","./EvolutionMenu.jsx":"9219","./ExosuitFabricator":"6251","./ExosuitFabricator.jsx":"6251","./ExperimentConsole":"9621","./ExperimentConsole.jsx":"9621","./ExternalAirlockController":"5091","./ExternalAirlockController.jsx":"5091","./FaxMachine":"6325","./FaxMachine.jsx":"6325","./FilingCabinet":"9788","./FilingCabinet.jsx":"9788","./FlockPanel":"2920","./FlockPanel.tsx":"2920","./FloorPainter":"26","./FloorPainter.jsx":"26","./GPS":"1561","./GPS.jsx":"1561","./GeneModder":"1259","./GeneModder.jsx":"1259","./GenericCrewManifest":"6954","./GenericCrewManifest.jsx":"6954","./GhostHudPanel":"9031","./GhostHudPanel.jsx":"9031","./GlandDispenser":"3396","./GlandDispenser.jsx":"3396","./GravityGen":"1009","./GravityGen.jsx":"1009","./GuestPass":"6294","./GuestPass.jsx":"6294","./HandheldChemDispenser":"9511","./HandheldChemDispenser.jsx":"9511","./HealthSensor":"3365","./HealthSensor.jsx":"3365","./Holodeck":"5880","./Holodeck.tsx":"5880","./IdCardModifier":"9721","./IdCardModifier.tsx":"9721","./Instrument":"6126","./Instrument.jsx":"6126","./KeyComboModal":"1783","./KeyComboModal.tsx":"1783","./KeycardAuth":"3928","./KeycardAuth.jsx":"3928","./KitchenMachine":"6706","./KitchenMachine.jsx":"6706","./LawManager":"9846","./LawManager.tsx":"9846","./LawyerSim":"3788","./LawyerSim.jsx":"3788","./LibraryComputer":"3023","./LibraryComputer.jsx":"3023","./LibraryManager":"183","./LibraryManager.jsx":"183","./ListInputModal":"1536","./ListInputModal.tsx":"1536","./Loadout":"7239","./Loadout.tsx":"7239","./LoreConsole":"4151","./LoreConsole.tsx":"4151","./MODsuit":"5531","./MODsuit.tsx":"5531","./MagnetController":"5247","./MagnetController.jsx":"5247","./MaterialContainer":"9587","./MaterialContainer.tsx":"9587","./MechBayConsole":"2433","./MechBayConsole.jsx":"2433","./MechaControlConsole":"3763","./MechaControlConsole.jsx":"3763","./MedicalRecords":"9548","./MedicalRecords.jsx":"9548","./MerchVendor":"2666","./MerchVendor.jsx":"2666","./MiningVendor":"6231","./MiningVendor.jsx":"6231","./NTRecruiter":"1972","./NTRecruiter.jsx":"1972","./Newscaster":"452","./Newscaster.jsx":"452","./Noticeboard":"6563","./Noticeboard.tsx":"6563","./NuclearBomb":"5867","./NuclearBomb.jsx":"5867","./NuclearRodFabricator":"7579","./NuclearRodFabricator.jsx":"7579","./NumberInputModal":"8007","./NumberInputModal.tsx":"8007","./ObjAccessModifier":"4965","./ObjAccessModifier.tsx":"4965","./OperatingComputer":"6499","./OperatingComputer.jsx":"6499","./Orbit":"7701","./Orbit.jsx":"7701","./OreRedemption":"5802","./OreRedemption.jsx":"5802","./PAI":"4235","./PAI.jsx":"4235","./PDA":"2740","./PDA.jsx":"2740","./Pacman":"377","./Pacman.jsx":"377","./PanDEMIC":"9454","./PanDEMIC.tsx":"9454","./ParticleAccelerator":"3566","./ParticleAccelerator.jsx":"3566","./PdaPainter":"3371","./PdaPainter.jsx":"3371","./PersonalCrafting":"6144","./PersonalCrafting.jsx":"6144","./Photocopier":"2327","./Photocopier.jsx":"2327","./PoolController":"7331","./PoolController.jsx":"7331","./PortablePump":"5562","./PortablePump.jsx":"5562","./PortableScrubber":"7920","./PortableScrubber.jsx":"7920","./PortableTurret":"2854","./PortableTurret.jsx":"2854","./PowerMonitor":"1784","./PowerMonitor.tsx":"1784","./PrisonerImplantManager":"8011","./PrisonerImplantManager.jsx":"8011","./PrisonerShuttleConsole":"2479","./PrisonerShuttleConsole.jsx":"2479","./PrizeCounter":"9083","./PrizeCounter.tsx":"9083","./QuirkMenu":"7692","./QuirkMenu.tsx":"7692","./RCD":"7076","./RCD.tsx":"7076","./RPD":"1703","./RPD.jsx":"1703","./Radio":"8930","./Radio.tsx":"8930","./RankedListInputModal":"4097","./RankedListInputModal.tsx":"4097","./ReactorMonitor":"4087","./ReactorMonitor.tsx":"4087","./ReagentGrinder":"1876","./ReagentGrinder.jsx":"1876","./ReagentsEditor":"1569","./ReagentsEditor.tsx":"1569","./RemoteSignaler":"9510","./RemoteSignaler.jsx":"9510","./RequestConsole":"5297","./RequestConsole.tsx":"5297","./RndBackupConsole":"4384","./RndBackupConsole.jsx":"4384","./RndConsole":"2247","./RndConsole/":"2247","./RndConsole/AnalyzerMenu":"4080","./RndConsole/AnalyzerMenu.jsx":"4080","./RndConsole/DataDiskMenu":"9529","./RndConsole/DataDiskMenu.jsx":"9529","./RndConsole/LatheCategory":"1465","./RndConsole/LatheCategory.jsx":"1465","./RndConsole/LatheChemicalStorage":"4154","./RndConsole/LatheChemicalStorage.jsx":"4154","./RndConsole/LatheMainMenu":"8563","./RndConsole/LatheMainMenu.jsx":"8563","./RndConsole/LatheMaterialStorage":"7635","./RndConsole/LatheMaterialStorage.jsx":"7635","./RndConsole/LatheMaterials":"5887","./RndConsole/LatheMaterials.jsx":"5887","./RndConsole/LatheMenu":"9760","./RndConsole/LatheMenu.jsx":"9760","./RndConsole/LatheSearch":"6013","./RndConsole/LatheSearch.jsx":"6013","./RndConsole/LinkMenu":"7726","./RndConsole/LinkMenu.jsx":"7726","./RndConsole/SettingsMenu":"3321","./RndConsole/SettingsMenu.jsx":"3321","./RndConsole/index":"2247","./RndConsole/index.jsx":"2247","./RndNetController":"7280","./RndNetController.jsx":"7280","./RndServer":"5156","./RndServer.jsx":"5156","./RobotSelfDiagnosis":"7868","./RobotSelfDiagnosis.jsx":"7868","./RoboticsControlConsole":"1696","./RoboticsControlConsole.jsx":"1696","./Safe":"5826","./Safe.jsx":"5826","./SatelliteControl":"1892","./SatelliteControl.jsx":"1892","./SecureStorage":"7943","./SecureStorage.jsx":"7943","./SecurityRecords":"8589","./SecurityRecords.jsx":"8589","./SeedExtractor":"6906","./SeedExtractor.tsx":"6906","./ShuttleConsole":"631","./ShuttleConsole.jsx":"631","./ShuttleManipulator":"5060","./ShuttleManipulator.jsx":"5060","./SingularityMonitor":"6448","./SingularityMonitor.jsx":"6448","./Sleeper":"1495","./Sleeper.tsx":"1495","./SlotMachine":"6526","./SlotMachine.jsx":"6526","./Smartfridge":"1645","./Smartfridge.jsx":"1645","./Smes":"1399","./Smes.tsx":"1399","./SolarControl":"1343","./SolarControl.jsx":"1343","./SpawnersMenu":"4263","./SpawnersMenu.jsx":"4263","./SpecMenu":"8729","./SpecMenu.jsx":"8729","./StackCraft":"9469","./StackCraft.tsx":"9469","./StationAlertConsole":"5592","./StationAlertConsole.jsx":"5592","./StationTraitsPanel":"5651","./StationTraitsPanel.tsx":"5651","./StripMenu":"5724","./StripMenu.tsx":"5724","./SuitStorage":"2975","./SuitStorage.jsx":"2975","./SupermatterMonitor":"4835","./SupermatterMonitor.tsx":"4835","./SyndicateComputerSimple":"2266","./SyndicateComputerSimple.jsx":"2266","./TEG":"8073","./TEG.jsx":"8073","./TachyonArray":"5808","./TachyonArray.jsx":"5808","./Tank":"5125","./Tank.jsx":"5125","./TankDispenser":"7112","./TankDispenser.jsx":"7112","./TcommsCore":"3283","./TcommsCore.jsx":"3283","./TcommsRelay":"431","./TcommsRelay.jsx":"431","./Teleporter":"5605","./Teleporter.jsx":"5605","./TelescienceConsole":"8336","./TelescienceConsole.jsx":"8336","./TempGun":"1745","./TempGun.jsx":"1745","./TextInputModal":"4273","./TextInputModal.tsx":"4273","./ThermoMachine":"9449","./ThermoMachine.jsx":"9449","./TransferValve":"1760","./TransferValve.jsx":"1760","./TurbineComputer":"6971","./TurbineComputer.jsx":"6971","./Uplink":"8380","./Uplink.tsx":"8380","./Vending":"1638","./Vending.jsx":"1638","./VolumeMixer":"2144","./VolumeMixer.jsx":"2144","./VotePanel":"7063","./VotePanel.jsx":"7063","./Wires":"7983","./Wires.jsx":"7983","./WizardApprenticeContract":"8167","./WizardApprenticeContract.jsx":"8167","./ZLevelManager":"234","./ZLevelManager.tsx":"234","./common/AccessList":"2723","./common/AccessList.tsx":"2723","./common/AtmosScan":"7276","./common/AtmosScan.tsx":"7276","./common/BeakerContents":"3013","./common/BeakerContents.tsx":"3013","./common/BotStatus":"9226","./common/BotStatus.jsx":"9226","./common/ComplexModal":"4744","./common/ComplexModal.jsx":"4744","./common/CrewManifest":"2639","./common/CrewManifest.jsx":"2639","./common/InputButtons":"1942","./common/InputButtons.tsx":"1942","./common/InterfaceLockNoticeBox":"1992","./common/InterfaceLockNoticeBox.jsx":"1992","./common/Loader":"9472","./common/Loader.tsx":"9472","./common/LoginInfo":"7352","./common/LoginInfo.jsx":"7352","./common/LoginScreen":"736","./common/LoginScreen.jsx":"736","./common/Operating":"6696","./common/Operating.tsx":"6696","./common/SearchableTableContext":"6888","./common/SearchableTableContext.tsx":"6888","./common/Signaler":"9298","./common/Signaler.jsx":"9298","./common/SimpleRecords":"4455","./common/SimpleRecords.jsx":"4455","./common/SortableTableContext":"2264","./common/SortableTableContext.tsx":"2264","./common/TabsContext":"4900","./common/TabsContext.tsx":"4900","./common/TemporaryNotice":"7482","./common/TemporaryNotice.jsx":"7482","./goonstation_PTL":"162","./goonstation_PTL/":"162","./goonstation_PTL/index":"162","./goonstation_PTL/index.jsx":"162","./pai/pai_atmosphere":"2817","./pai/pai_atmosphere.jsx":"2817","./pai/pai_bioscan":"7716","./pai/pai_bioscan.jsx":"7716","./pai/pai_directives":"1091","./pai/pai_directives.jsx":"1091","./pai/pai_doorjack":"9316","./pai/pai_doorjack.jsx":"9316","./pai/pai_main_menu":"5042","./pai/pai_main_menu.jsx":"5042","./pai/pai_manifest":"702","./pai/pai_manifest.jsx":"702","./pai/pai_medrecords":"9513","./pai/pai_medrecords.jsx":"9513","./pai/pai_messenger":"984","./pai/pai_messenger.jsx":"984","./pai/pai_radio":"9028","./pai/pai_radio.jsx":"9028","./pai/pai_secrecords":"6838","./pai/pai_secrecords.jsx":"6838","./pai/pai_signaler":"4244","./pai/pai_signaler.jsx":"4244","./pda/pda_atmos_scan":"8539","./pda/pda_atmos_scan.jsx":"8539","./pda/pda_cookbook":"5246","./pda/pda_cookbook.jsx":"5246","./pda/pda_games":"2336","./pda/pda_games.jsx":"2336","./pda/pda_janitor":"3606","./pda/pda_janitor.jsx":"3606","./pda/pda_main_menu":"2526","./pda/pda_main_menu.jsx":"2526","./pda/pda_manifest":"4642","./pda/pda_manifest.jsx":"4642","./pda/pda_medical":"1212","./pda/pda_medical.jsx":"1212","./pda/pda_messenger":"3260","./pda/pda_messenger.jsx":"3260","./pda/pda_minesweeper":"3067","./pda/pda_minesweeper.jsx":"3067","./pda/pda_mule":"5030","./pda/pda_mule.jsx":"5030","./pda/pda_nanobank":"9749","./pda/pda_nanobank.jsx":"9749","./pda/pda_notes":"3194","./pda/pda_notes.jsx":"3194","./pda/pda_power":"4702","./pda/pda_power.jsx":"4702","./pda/pda_secbot":"6651","./pda/pda_secbot.jsx":"6651","./pda/pda_security":"7155","./pda/pda_security.jsx":"7155","./pda/pda_signaler":"7024","./pda/pda_signaler.jsx":"7024","./pda/pda_status_display":"7148","./pda/pda_status_display.jsx":"7148","./pda/pda_supplyrecords":"7632","./pda/pda_supplyrecords.jsx":"7632"};function i(e){return t(o(e))}function o(e){if(!t.o(r,e)){var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=4808},937:function(e,n,t){var r={"./ByondUi.stories.js":"7997","./Storage.stories.js":"6498","./Themes.stories.js":"9615"};function i(e){return t(o(e))}function o(e){if(!t.o(r,e)){var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=937},7912:function(e,n,t){"use strict";function r(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var i,o=t(8014),l=t(4530),a=t(6634);function c(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do 0!=(4098&(n=e).flags)&&(t=n.return),e=n.return;while(e)}return 3===n.tag?t:null}function u(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&null!==(e=e.alternate)&&(n=e.memoizedState),null!==n)return n.dehydrated}return null}function d(e){if(31===e.tag){var n=e.memoizedState;if(null===n&&null!==(e=e.alternate)&&(n=e.memoizedState),null!==n)return n.dehydrated}return null}function f(e){if(s(e)!==e)throw Error(c(188))}var h=Object.assign,m=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),v=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope");var S=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var O=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var A=Symbol.iterator;function P(e){return null===e||"object"!==(void 0===e?"undefined":r(e))?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var B=Symbol.for("react.client.reference"),E=Array.isArray,z=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N={pending:!1,data:null,method:null,action:null},R=[],$=-1;function D(e){return{current:e}}function M(e){0>$||(e.current=R[$],R[$]=null,$--)}function L(e,n){R[++$]=e.current,e.current=n}var K=D(null),J=D(null),X=D(null),U=D(null);function F(e,n){switch(L(X,n),L(J,e),L(K,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?sj(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)e=sb(n=sj(n),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(K),L(K,e)}function V(){M(K),M(J),M(X)}function H(e){null!==e.memoizedState&&L(U,e);var n=K.current,t=sb(n,e.type);n!==t&&(L(J,e),L(K,t))}function W(e){J.current===e&&(M(K),M(J)),U.current===e&&(M(U),un._currentValue=N)}function q(e){if(void 0===n$)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);n$=n&&n[1]||"",nD=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+n$+e+nD}var G=!1;function Y(e,n){if(!e||G)return"";G=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(n){var t=function(){throw Error()};if(Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var i=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){i=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){i=e}(t=e())&&"function"==typeof t.catch&&t.catch(function(){})}}catch(e){if(e&&i&&"string"==typeof e.stack)return[e.stack,i.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=i.DetermineComponentFrameRoot(),a=l[0],c=l[1];if(a&&c){var s=a.split("\n"),u=c.split("\n");for(o=i=0;i<s.length&&!s[i].includes("DetermineComponentFrameRoot");)i++;for(;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;if(i===s.length||o===u.length)for(i=s.length-1,o=u.length-1;1<=i&&0<=o&&s[i]!==u[o];)o--;for(;1<=i&&0<=o;i--,o--)if(s[i]!==u[o]){if(1!==i||1!==o)do if(i--,o--,0>o||s[i]!==u[o]){var d="\n"+s[i].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=i&&0<=o);break}}}finally{G=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?q(t):""}function Q(e){try{var n="",t=null;do n+=function(e,n){switch(e.tag){case 26:case 27:case 5:return q(e.type);case 16:return q("Lazy");case 13:return e.child!==n&&null!==n?q("Suspense Fallback"):q("Suspense");case 19:return q("SuspenseList");case 0:case 15:return Y(e.type,!1);case 11:return Y(e.type.render,!1);case 1:return Y(e.type,!0);case 31:return q("Activity");default:return""}}(e,t),t=e,e=e.return;while(e);return n}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var Z=Object.prototype.hasOwnProperty,ee=o.unstable_scheduleCallback,en=o.unstable_cancelCallback,et=o.unstable_shouldYield,er=o.unstable_requestPaint,ei=o.unstable_now,eo=o.unstable_getCurrentPriorityLevel,el=o.unstable_ImmediatePriority,ea=o.unstable_UserBlockingPriority,ec=o.unstable_NormalPriority,es=o.unstable_LowPriority,eu=o.unstable_IdlePriority,ed=o.log,ef=o.unstable_setDisableYieldValue,eh=null,em=null;function ep(e){if("function"==typeof ed&&ef(e),em&&"function"==typeof em.setStrictMode)try{em.setStrictMode(eh,e)}catch(e){}}var ex=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(eg(e)/ej|0)|0},eg=Math.log,ej=Math.LN2,eb=256,ey=262144,ev=4194304;function ew(e){var n=42&e;if(0!==n)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function ek(e,n,t){var r=e.pendingLanes;if(0===r)return 0;var i=0,o=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var a=0x7ffffff&r;return 0!==a?0!=(r=a&~o)?i=ew(r):0!=(l&=a)?i=ew(l):t||0!=(t=a&~e)&&(i=ew(t)):0!=(a=r&~o)?i=ew(a):0!==l?i=ew(l):t||0!=(t=r&~e)&&(i=ew(t)),0===i?0:0!==n&&n!==i&&0==(n&o)&&((o=i&-i)>=(t=n&-n)||32===o&&0!=(4194048&t))?n:i}function e_(e,n){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)}function eC(){var e=ev;return 0==(0x3c00000&(ev<<=1))&&(ev=4194304),e}function eI(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function eS(e,n){e.pendingLanes|=n,0x10000000!==n&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eO(e,n,t){e.pendingLanes|=n,e.suspendedLanes&=~n;var r=31-ex(n);e.entangledLanes|=n,e.entanglements[r]=0x40000000|e.entanglements[r]|261930&t}function eA(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-ex(t),i=1<<r;i&n|e[r]&n&&(e[r]|=n),t&=~i}}function eP(e,n){var t=n&-n;return 0!=((t=0!=(42&t)?1:eB(t))&(e.suspendedLanes|n))?0:t}function eB(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 0x1000000:case 0x2000000:e=128;break;case 0x10000000:e=0x8000000;break;default:e=0}return e}function eE(e){return 2<(e&=-e)?8<e?0!=(0x7ffffff&e)?32:0x10000000:8:2}function ez(){var e=T.p;return 0!==e?e:void 0===(e=window.event)?32:up(e.type)}function eT(e,n){var t=T.p;try{return T.p=e,n()}finally{T.p=t}}var eN=Math.random().toString(36).slice(2),eR="__reactFiber$"+eN,e$="__reactProps$"+eN,eD="__reactContainer$"+eN,eM="__reactEvents$"+eN,eL="__reactListeners$"+eN,eK="__reactHandles$"+eN,eJ="__reactResources$"+eN,eX="__reactMarker$"+eN;function eU(e){delete e[eR],delete e[e$],delete e[eM],delete e[eL],delete e[eK]}function eF(e){var n=e[eR];if(n)return n;for(var t=e.parentNode;t;){if(n=t[eD]||t[eR]){if(t=n.alternate,null!==n.child||null!==t&&null!==t.child)for(e=s$(e);null!==e;){if(t=e[eR])return t;e=s$(e)}return n}t=(e=t).parentNode}return null}function eV(e){if(e=e[eR]||e[eD]){var n=e.tag;if(5===n||6===n||13===n||31===n||26===n||27===n||3===n)return e}return null}function eH(e){var n=e.tag;if(5===n||26===n||27===n||6===n)return e.stateNode;throw Error(c(33))}function eW(e){var n=e[eJ];return n||(n=e[eJ]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function eq(e){e[eX]=!0}var eG=new Set,eY={};function eQ(e,n){eZ(e,n),eZ(e+"Capture",n)}function eZ(e,n){for(eY[e]=n,e=0;e<n.length;e++)eG.add(n[e])}var e0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),e1={},e2={};function e8(e,n,t){if(Z.call(e2,n)||!Z.call(e1,n)&&(e0.test(n)?e2[n]=!0:(e1[n]=!0,!1)))if(null===t)e.removeAttribute(n);else{switch(void 0===t?"undefined":r(t)){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var i=n.toLowerCase().slice(0,5);if("data-"!==i&&"aria-"!==i)return void e.removeAttribute(n)}e.setAttribute(n,""+t)}}function e3(e,n,t){if(null===t)e.removeAttribute(n);else{switch(void 0===t?"undefined":r(t)){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+t)}}function e5(e,n,t,i){if(null===i)e.removeAttribute(t);else{switch(void 0===i?"undefined":r(i)){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttributeNS(n,t,""+i)}}function e4(e){switch(void 0===e?"undefined":r(e)){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function e6(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function e7(e){if(!e._valueTracker){var n=e6(e)?"checked":"value";e._valueTracker=function(e,n,t){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return i.call(this)},set:function(e){t=""+e,o.call(this,e)}}),Object.defineProperty(e,n,{enumerable:r.enumerable}),{getValue:function(){return t},setValue:function(e){t=""+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}(e,n,""+e[n])}}function e9(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=e6(e)?e.checked?"true":"false":e.value),(e=r)!==t&&(n.setValue(e),!0)}function ne(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}var nn=/[\n"\\]/g;function nt(e){return e.replace(nn,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function nr(e,n,t,i,o,l,a,c){e.name="",null!=a&&"function"!=typeof a&&"symbol"!==(void 0===a?"undefined":r(a))&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=n?"number"===a?(0===n&&""===e.value||e.value!=n)&&(e.value=""+e4(n)):e.value!==""+e4(n)&&(e.value=""+e4(n)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=n?no(e,a,e4(n)):null!=t?no(e,a,e4(t)):null!=i&&e.removeAttribute("value"),null==o&&null!=l&&(e.defaultChecked=!!l),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!==(void 0===o?"undefined":r(o))),null!=c&&"function"!=typeof c&&"symbol"!==(void 0===c?"undefined":r(c))&&"boolean"!=typeof c?e.name=""+e4(c):e.removeAttribute("name")}function ni(e,n,t,i,o,l,a,c){if(null!=l&&"function"!=typeof l&&"symbol"!==(void 0===l?"undefined":r(l))&&"boolean"!=typeof l&&(e.type=l),null!=n||null!=t){if(("submit"===l||"reset"===l)&&null==n)return void e7(e);t=null!=t?""+e4(t):"",n=null!=n?""+e4(n):t,c||n===e.value||(e.value=n),e.defaultValue=n}i="function"!=typeof(i=null!=i?i:o)&&"symbol"!==(void 0===i?"undefined":r(i))&&!!i,e.checked=c?e.checked:!!i,e.defaultChecked=!!i,null!=a&&"function"!=typeof a&&"symbol"!==(void 0===a?"undefined":r(a))&&"boolean"!=typeof a&&(e.name=a),e7(e)}function no(e,n,t){"number"===n&&ne(e.ownerDocument)===e||e.defaultValue===""+t||(e.defaultValue=""+t)}function nl(e,n,t,r){if(e=e.options,n){n={};for(var i=0;i<t.length;i++)n["$"+t[i]]=!0;for(t=0;t<e.length;t++)i=n.hasOwnProperty("$"+e[t].value),e[t].selected!==i&&(e[t].selected=i),i&&r&&(e[t].defaultSelected=!0)}else{for(i=0,t=""+e4(t),n=null;i<e.length;i++){if(e[i].value===t){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}null!==n||e[i].disabled||(n=e[i])}null!==n&&(n.selected=!0)}}function na(e,n,t){if(null!=n&&((n=""+e4(n))!==e.value&&(e.value=n),null==t)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=null!=t?""+e4(t):""}function nc(e,n,t,r){if(null==n){if(null!=r){if(null!=t)throw Error(c(92));if(E(r)){if(1<r.length)throw Error(c(93));r=r[0]}t=r}null==t&&(t=""),n=t}e.defaultValue=t=e4(n),(r=e.textContent)===t&&""!==r&&null!==r&&(e.value=r),e7(e)}function ns(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType){t.nodeValue=n;return}}e.textContent=n}var nu=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function nd(e,n,t){var r=0===n.indexOf("--");null==t||"boolean"==typeof t||""===t?r?e.setProperty(n,""):"float"===n?e.cssFloat="":e[n]="":r?e.setProperty(n,t):"number"!=typeof t||0===t||nu.has(n)?"float"===n?e.cssFloat=t:e[n]=(""+t).trim():e[n]=t+"px"}function nf(e,n,t){if(null!=n&&"object"!==(void 0===n?"undefined":r(n)))throw Error(c(62));if(e=e.style,null!=t){for(var i in t)!t.hasOwnProperty(i)||null!=n&&n.hasOwnProperty(i)||(0===i.indexOf("--")?e.setProperty(i,""):"float"===i?e.cssFloat="":e[i]="");for(var o in n)i=n[o],n.hasOwnProperty(o)&&t[o]!==i&&nd(e,o,i)}else for(var l in n)n.hasOwnProperty(l)&&nd(e,l,n[l])}function nh(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nm=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),np=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function nx(e){return np.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ng(){}var nj=null;function nb(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ny=null,nv=null;function nw(e){var n=eV(e);if(n&&(e=n.stateNode)){var t=e[e$]||null;switch(e=n.stateNode,n.type){case"input":if(nr(e,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name),n=t.name,"radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll('input[name="'+nt(""+n)+'"][type="radio"]'),n=0;n<t.length;n++){var r=t[n];if(r!==e&&r.form===e.form){var i=r[e$]||null;if(!i)throw Error(c(90));nr(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(n=0;n<t.length;n++)(r=t[n]).form===e.form&&e9(r)}break;case"textarea":na(e,t.value,t.defaultValue);break;case"select":null!=(n=t.value)&&nl(e,!!t.multiple,n,!1)}}}var nk=!1;function n_(e,n,t){if(nk)return e(n,t);nk=!0;try{return e(n)}finally{if(nk=!1,(null!==ny||null!==nv)&&(cf(),ny&&(n=ny,e=nv,nv=ny=null,nw(n),e)))for(n=0;n<e.length;n++)nw(e[n])}}function nC(e,n){var t=e.stateNode;if(null===t)return null;var i=t[e$]||null;if(null===i)return null;switch(t=i[n],n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i="button"!==(e=e.type)&&"input"!==e&&"select"!==e&&"textarea"!==e),e=!i;break;default:e=!1}if(e)return null;if(t&&"function"!=typeof t)throw Error(c(231,n,void 0===t?"undefined":r(t)));return t}var nI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,nS=!1;if(nI)try{var nO={};Object.defineProperty(nO,"passive",{get:function(){nS=!0}}),window.addEventListener("test",nO,nO),window.removeEventListener("test",nO,nO)}catch(e){nS=!1}var nA=null,nP=null,nB=null;function nE(){if(nB)return nB;var e,n,t=nP,r=t.length,i="value"in nA?nA.value:nA.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var l=r-e;for(n=1;n<=l&&t[r-n]===i[o-n];n++);return nB=i.slice(e,1<n?1-n:void 0)}function nz(e){var n=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===n&&(e=13):e=n,10===e&&(e=13),32<=e||13===e?e:0}function nT(){return!0}function nN(){return!1}function nR(e){function n(n,t,r,i,o){for(var l in this._reactName=n,this._targetInst=r,this.type=t,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nT:nN,this.isPropagationStopped=nN,this}return h(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==r(e.returnValue)&&(e.returnValue=!1),this.isDefaultPrevented=nT)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==r(e.cancelBubble)&&(e.cancelBubble=!0),this.isPropagationStopped=nT)},persist:function(){},isPersistent:nT}),n}var n$,nD,nM,nL,nK,nJ={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nX=nR(nJ),nU=h({},nJ,{view:0,detail:0}),nF=nR(nU),nV=h({},nU,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:n8,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nK&&(nK&&"mousemove"===e.type?(nM=e.screenX-nK.screenX,nL=e.screenY-nK.screenY):nL=nM=0,nK=e),nM)},movementY:function(e){return"movementY"in e?e.movementY:nL}}),nH=nR(nV),nW=nR(h({},nV,{dataTransfer:0})),nq=nR(h({},nU,{relatedTarget:0})),nG=nR(h({},nJ,{animationName:0,elapsedTime:0,pseudoElement:0})),nY=nR(h({},nJ,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),nQ=nR(h({},nJ,{data:0})),nZ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},n0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},n1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n2(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):!!(e=n1[e])&&!!n[e]}function n8(){return n2}var n3=nR(h({},nU,{key:function(e){if(e.key){var n=nZ[e.key]||e.key;if("Unidentified"!==n)return n}return"keypress"===e.type?13===(e=nz(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?n0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:n8,charCode:function(e){return"keypress"===e.type?nz(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nz(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),n5=nR(h({},nV,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),n4=nR(h({},nU,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:n8})),n6=nR(h({},nJ,{propertyName:0,elapsedTime:0,pseudoElement:0})),n7=nR(h({},nV,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),n9=nR(h({},nJ,{newState:0,oldState:0})),te=[9,13,27,32],tn=nI&&"CompositionEvent"in window,tt=null;nI&&"documentMode"in document&&(tt=document.documentMode);var tr=nI&&"TextEvent"in window&&!tt,ti=nI&&(!tn||tt&&8<tt&&11>=tt),to=!1;function tl(e,n){switch(e){case"keyup":return -1!==te.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ta(e){return"object"===(void 0===(e=e.detail)?"undefined":r(e))&&"data"in e?e.data:null}var tc=!1,ts={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!ts[e.type]:"textarea"===n}function td(e,n,t,r){ny?nv?nv.push(r):nv=[r]:ny=r,0<(n=si(n,"onChange")).length&&(t=new nX("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var tf=null,th=null;function tm(e){c4(e,0)}function tp(e){if(e9(eH(e)))return e}function tx(e,n){if("change"===e)return n}var tg=!1;if(nI){if(nI){var tj="oninput"in document;if(!tj){var tb=document.createElement("div");tb.setAttribute("oninput","return;"),tj="function"==typeof tb.oninput}i=tj}else i=!1;tg=i&&(!document.documentMode||9<document.documentMode)}function ty(){tf&&(tf.detachEvent("onpropertychange",tv),th=tf=null)}function tv(e){if("value"===e.propertyName&&tp(th)){var n=[];td(n,th,e,nb(e)),n_(tm,n)}}function tw(e,n,t){"focusin"===e?(ty(),tf=n,th=t,tf.attachEvent("onpropertychange",tv)):"focusout"===e&&ty()}function tk(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return tp(th)}function t_(e,n){if("click"===e)return tp(n)}function tC(e,n){if("input"===e||"change"===e)return tp(n)}var tI="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n};function tS(e,n){if(tI(e,n))return!0;if("object"!==(void 0===e?"undefined":r(e))||null===e||"object"!==(void 0===n?"undefined":r(n))||null===n)return!1;var t=Object.keys(e),i=Object.keys(n);if(t.length!==i.length)return!1;for(i=0;i<t.length;i++){var o=t[i];if(!Z.call(n,o)||!tI(e[o],n[o]))return!1}return!0}function tO(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tA(e,n){var t,r=tO(e);for(e=0;r;){if(3===r.nodeType){if(t=e+r.textContent.length,e<=n&&t>=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=tO(r)}}function tP(e){var n,t;e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var r=ne(e.document);n=r,null!=(t=e.HTMLIFrameElement)&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](n):n instanceof t;){try{var i="string"==typeof r.contentWindow.location.href}catch(e){i=!1}if(i)e=r.contentWindow;else break;r=ne(e.document)}return r}function tB(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}var tE=nI&&"documentMode"in document&&11>=document.documentMode,tz=null,tT=null,tN=null,tR=!1;function t$(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;tR||null==tz||tz!==ne(r)||(r="selectionStart"in(r=tz)&&tB(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},tN&&tS(tN,r)||(tN=r,0<(r=si(tT,"onSelect")).length&&(n=new nX("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=tz)))}function tD(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var tM={animationend:tD("Animation","AnimationEnd"),animationiteration:tD("Animation","AnimationIteration"),animationstart:tD("Animation","AnimationStart"),transitionrun:tD("Transition","TransitionRun"),transitionstart:tD("Transition","TransitionStart"),transitioncancel:tD("Transition","TransitionCancel"),transitionend:tD("Transition","TransitionEnd")},tL={},tK={};function tJ(e){if(tL[e])return tL[e];if(!tM[e])return e;var n,t=tM[e];for(n in t)if(t.hasOwnProperty(n)&&n in tK)return tL[e]=t[n];return e}nI&&(tK=document.createElement("div").style,"AnimationEvent"in window||(delete tM.animationend.animation,delete tM.animationiteration.animation,delete tM.animationstart.animation),"TransitionEvent"in window||delete tM.transitionend.transition);var tX=tJ("animationend"),tU=tJ("animationiteration"),tF=tJ("animationstart"),tV=tJ("transitionrun"),tH=tJ("transitionstart"),tW=tJ("transitioncancel"),tq=tJ("transitionend"),tG=new Map,tY="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function tQ(e,n){tG.set(e,n),eQ(n,[e])}tY.push("scrollEnd");var tZ="function"==typeof reportError?reportError:function(e){if("object"===("undefined"==typeof window?"undefined":r(window))&&"function"==typeof window.ErrorEvent){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===(void 0===e?"undefined":r(e))&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if("object"===("undefined"==typeof process?"undefined":r(process))&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},t0=[],t1=0,t2=0;function t8(){for(var e=t1,n=t2=t1=0;n<e;){var t=t0[n];t0[n++]=null;var r=t0[n];t0[n++]=null;var i=t0[n];t0[n++]=null;var o=t0[n];if(t0[n++]=null,null!==r&&null!==i){var l=r.pending;null===l?i.next=i:(i.next=l.next,l.next=i),r.pending=i}0!==o&&t6(t,i,o)}}function t3(e,n,t,r){t0[t1++]=e,t0[t1++]=n,t0[t1++]=t,t0[t1++]=r,t2|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function t5(e,n,t,r){return t3(e,n,t,r),t7(e)}function t4(e,n){return t3(e,null,null,n),t7(e)}function t6(e,n,t){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t);for(var i=!1,o=e.return;null!==o;)o.childLanes|=t,null!==(r=o.alternate)&&(r.childLanes|=t),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(i=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,i&&null!==n&&(i=31-ex(t),null===(r=(e=o.hiddenUpdates)[i])?e[i]=[n]:r.push(n),n.lane=0x20000000|t),o):null}function t7(e){if(50<ci)throw ci=0,co=null,Error(c(185));for(var n=e.return;null!==n;)n=(e=n).return;return 3===e.tag?e.stateNode:null}var t9={};function re(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(e,n,t,r){return new re(e,n,t,r)}function rt(e){return!(!(e=e.prototype)||!e.isReactComponent)}function rr(e,n){var t=e.alternate;return null===t?((t=rn(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=0x3e00000&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function ri(e,n){e.flags&=0x3e00002;var t=e.alternate;return null===t?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,e.dependencies=null===(n=t.dependencies)?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function ro(e,n,t,i,o,l){var a=0;if(i=e,"function"==typeof e)rt(e)&&(a=1);else if("string"==typeof e)a=!function(e,n,t){if(1===t||null!=n.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof n.precedence||"string"!=typeof n.href||""===n.href)break;return!0;case"link":if("string"!=typeof n.rel||"string"!=typeof n.href||""===n.href||n.onLoad||n.onError)break;if("stylesheet"===n.rel)return e=n.disabled,"string"==typeof n.precedence&&null==e;return!0;case"script":if(n.async&&"function"!=typeof n.async&&"symbol"!==r(n.async)&&!n.onLoad&&!n.onError&&n.src&&"string"==typeof n.src)return!0}return!1}(e,t,K.current)?"html"===e||"head"===e||"body"===e?27:5:26;else e:switch(e){case S:return(e=rn(31,t,n,o)).elementType=S,e.lanes=l,e;case g:return rl(t.children,o,l,n);case j:a=8,o|=24;break;case b:return(e=rn(12,t,n,2|o)).elementType=b,e.lanes=l,e;case k:return(e=rn(13,t,n,o)).elementType=k,e.lanes=l,e;case _:return(e=rn(19,t,n,o)).elementType=_,e.lanes=l,e;default:if("object"===(void 0===e?"undefined":r(e))&&null!==e)switch(e.$$typeof){case v:a=10;break e;case y:a=9;break e;case w:a=11;break e;case C:a=14;break e;case I:a=16,i=null;break e}a=29,t=Error(c(130,null===e?"null":void 0===e?"undefined":r(e),"")),i=null}return(n=rn(a,t,n,o)).elementType=e,n.type=i,n.lanes=l,n}function rl(e,n,t,r){return(e=rn(7,e,r,n)).lanes=t,e}function ra(e,n,t){return(e=rn(6,e,null,n)).lanes=t,e}function rc(e){var n=rn(18,null,null,0);return n.stateNode=e,n}function rs(e,n,t){return(n=rn(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var ru=new WeakMap;function rd(e,n){if("object"===(void 0===e?"undefined":r(e))&&null!==e){var t=ru.get(e);return void 0!==t?t:(n={value:e,source:n,stack:Q(n)},ru.set(e,n),n)}return{value:e,source:n,stack:Q(n)}}var rf=[],rh=0,rm=null,rp=0,rx=[],rg=0,rj=null,rb=1,ry="";function rv(e,n){rf[rh++]=rp,rf[rh++]=rm,rm=e,rp=n}function rw(e,n,t){rx[rg++]=rb,rx[rg++]=ry,rx[rg++]=rj,rj=e;var r=rb;e=ry;var i=32-ex(r)-1;r&=~(1<<i),t+=1;var o=32-ex(n)+i;if(30<o){var l=i-i%5;o=(r&(1<<l)-1).toString(32),r>>=l,i-=l,rb=1<<32-ex(n)+i|t<<i|r,ry=o+e}else rb=1<<o|t<<i|r,ry=e}function rk(e){null!==e.return&&(rv(e,1),rw(e,1,0))}function r_(e){for(;e===rm;)rm=rf[--rh],rf[rh]=null,rp=rf[--rh],rf[rh]=null;for(;e===rj;)rj=rx[--rg],rx[rg]=null,ry=rx[--rg],rx[rg]=null,rb=rx[--rg],rx[rg]=null}function rC(e,n){rx[rg++]=rb,rx[rg++]=ry,rx[rg++]=rj,rb=n.id,ry=n.overflow,rj=e}var rI=null,rS=null,rO=!1,rA=null,rP=!1,rB=Error(c(519));function rE(e){var n=Error(c(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML",""));throw rD(rd(n,e)),rB}function rz(e){var n=e.stateNode,t=e.type,i=e.memoizedProps;switch(n[eR]=e,n[e$]=i,t){case"dialog":c6("cancel",n),c6("close",n);break;case"iframe":case"object":case"embed":c6("load",n);break;case"video":case"audio":for(t=0;t<c3.length;t++)c6(c3[t],n);break;case"source":c6("error",n);break;case"img":case"image":case"link":c6("error",n),c6("load",n);break;case"details":c6("toggle",n);break;case"input":c6("invalid",n),ni(n,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":c6("invalid",n);break;case"textarea":c6("invalid",n),nc(n,i.value,i.defaultValue,i.children)}"string"!=typeof(t=i.children)&&"number"!=typeof t&&"bigint"!==(void 0===t?"undefined":r(t))||n.textContent===""+t||!0===i.suppressHydrationWarning||su(n.textContent,t)?(null!=i.popover&&(c6("beforetoggle",n),c6("toggle",n)),null!=i.onScroll&&c6("scroll",n),null!=i.onScrollEnd&&c6("scrollend",n),null!=i.onClick&&(n.onclick=ng),n=!0):n=!1,n||rE(e,!0)}function rT(e){for(rI=e.return;rI;)switch(rI.tag){case 5:case 31:case 13:rP=!1;return;case 27:case 3:rP=!0;return;default:rI=rI.return}}function rN(e){if(e!==rI)return!1;if(!rO)return rT(e),rO=!0,!1;var n,t=e.tag;if((n=3!==t&&27!==t)&&((n=5===t)&&(n="form"===(n=e.type)||"button"===n||sy(e.type,e.memoizedProps)),n=!n),n&&rS&&rE(e),rT(e),13===t){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(c(317));rS=sR(e)}else if(31===t){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(c(317));rS=sR(e)}else 27===t?(t=rS,sS(e.type)?(e=sN,sN=null,rS=e):rS=t):rS=rI?sT(e.stateNode.nextSibling):null;return!0}function rR(){rS=rI=null,rO=!1}function r$(){var e=rA;return null!==e&&(null===a0?a0=e:a0.push.apply(a0,e),rA=null),e}function rD(e){null===rA?rA=[e]:rA.push(e)}var rM=D(null),rL=null,rK=null;function rJ(e,n,t){L(rM,n._currentValue),n._currentValue=t}function rX(e){e._currentValue=rM.current,M(rM)}function rU(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function rF(e,n,t,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var o=i.dependencies;if(null!==o){var l=i.child;o=o.firstContext;e:for(;null!==o;){var a=o;o=i;for(var s=0;s<n.length;s++)if(a.context===n[s]){o.lanes|=t,null!==(a=o.alternate)&&(a.lanes|=t),rU(o.return,t,e),r||(l=null);break e}o=a.next}}else if(18===i.tag){if(null===(l=i.return))throw Error(c(341));l.lanes|=t,null!==(o=l.alternate)&&(o.lanes|=t),rU(l,t,e),l=null}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===e){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}}function rV(e,n,t,r){e=null;for(var i=n,o=!1;null!==i;){if(!o){if(0!=(524288&i.flags))o=!0;else if(0!=(262144&i.flags))break}if(10===i.tag){var l=i.alternate;if(null===l)throw Error(c(387));if(null!==(l=l.memoizedProps)){var a=i.type;tI(i.pendingProps.value,l.value)||(null!==e?e.push(a):e=[a])}}else if(i===U.current){if(null===(l=i.alternate))throw Error(c(387));l.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(un):e=[un])}i=i.return}null!==e&&rF(n,e,t,r),n.flags|=262144}function rH(e){for(e=e.firstContext;null!==e;){if(!tI(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function rW(e){rL=e,rK=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function rq(e){return rY(rL,e)}function rG(e,n){return null===rL&&rW(e),rY(e,n)}function rY(e,n){var t=n._currentValue;if(n={context:n,memoizedValue:t,next:null},null===rK){if(null===e)throw Error(c(308));rK=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else rK=rK.next=n;return t}var rQ="undefined"!=typeof AbortController?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(n,t){e.push(t)}};this.abort=function(){n.aborted=!0,e.forEach(function(e){return e()})}},rZ=o.unstable_scheduleCallback,r0=o.unstable_NormalPriority,r1={$$typeof:v,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function r2(){return{controller:new rQ,data:new Map,refCount:0}}function r8(e){e.refCount--,0===e.refCount&&rZ(r0,function(){e.controller.abort()})}var r3=null,r5=0,r4=0,r6=null;function r7(){if(0==--r5&&null!==r3){null!==r6&&(r6.status="fulfilled");var e=r3;r3=null,r4=0,r6=null;for(var n=0;n<e.length;n++)(0,e[n])()}}var r9=z.S;z.S=function(e,n){a8=ei(),"object"===(void 0===n?"undefined":r(n))&&null!==n&&"function"==typeof n.then&&function(e,n){if(null===r3){var t=r3=[];r5=0,r4=cZ(),r6={status:"pending",value:void 0,then:function(e){t.push(e)}}}r5++,n.then(r7,r7)}(0,n),null!==r9&&r9(e,n)};var ie=D(null);function it(){var e=ie.current;return null!==e?e:aD.pooledCache}function ir(e,n){null===n?L(ie,ie.current):L(ie,n.pool)}function ii(){var e=it();return null===e?null:{parent:r1._currentValue,pool:e}}var io=Error(c(460)),il=Error(c(474)),ia=Error(c(542)),ic={then:function(){}};function is(e){return"fulfilled"===(e=e.status)||"rejected"===e}function iu(e,n,t){switch(void 0===(t=e[t])?e.push(n):t!==n&&(n.then(ng,ng),n=t),n.status){case"fulfilled":return n.value;case"rejected":throw ip(e=n.reason),e;default:if("string"==typeof n.status)n.then(ng,ng);else{if(null!==(e=aD)&&100<e.shellSuspendCounter)throw Error(c(482));(e=n).status="pending",e.then(function(e){if("pending"===n.status){var t=n;t.status="fulfilled",t.value=e}},function(e){if("pending"===n.status){var t=n;t.status="rejected",t.reason=e}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw ip(e=n.reason),e}throw ih=n,io}}function id(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"===(void 0===e?"undefined":r(e))&&"function"==typeof e.then)throw ih=e,io;throw e}}var ih=null;function im(){if(null===ih)throw Error(c(459));var e=ih;return ih=null,e}function ip(e){if(e===io||e===ia)throw Error(c(483))}var ix=null,ig=0;function ij(e){var n=ig;return ig+=1,null===ix&&(ix=[]),iu(ix,e,n)}function ib(e,n){e.ref=void 0!==(n=n.props.ref)?n:null}function iy(e,n){if(n.$$typeof===m)throw Error(c(525));throw Error(c(31,"[object Object]"===(e=Object.prototype.toString.call(n))?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function iv(e){function n(n,t){if(e){var r=n.deletions;null===r?(n.deletions=[t],n.flags|=16):r.push(t)}}function t(t,r){if(!e)return null;for(;null!==r;)n(t,r),r=r.sibling;return null}function i(e){for(var n=new Map;null!==e;)null!==e.key?n.set(e.key,e):n.set(e.index,e),e=e.sibling;return n}function o(e,n){return(e=rr(e,n)).index=0,e.sibling=null,e}function l(n,t,r){return(n.index=r,e)?null!==(r=n.alternate)?(r=r.index)<t?(n.flags|=0x4000002,t):r:(n.flags|=0x4000002,t):(n.flags|=1048576,t)}function a(n){return e&&null===n.alternate&&(n.flags|=0x4000002),n}function s(e,n,t,r){return null===n||6!==n.tag?(n=ra(t,e.mode,r)).return=e:(n=o(n,t)).return=e,n}function u(e,n,t,i){var l=t.type;return l===g?f(e,n,t.props.children,i,t.key):(null!==n&&(n.elementType===l||"object"===(void 0===l?"undefined":r(l))&&null!==l&&l.$$typeof===I&&id(l)===n.type)?ib(n=o(n,t.props),t):ib(n=ro(t.type,t.key,t.props,null,e.mode,i),t),n.return=e,n)}function d(e,n,t,r){return null===n||4!==n.tag||n.stateNode.containerInfo!==t.containerInfo||n.stateNode.implementation!==t.implementation?(n=rs(t,e.mode,r)).return=e:(n=o(n,t.children||[])).return=e,n}function f(e,n,t,r,i){return null===n||7!==n.tag?(n=rl(t,e.mode,r,i)).return=e:(n=o(n,t)).return=e,n}function h(e,n,t){if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"===(void 0===n?"undefined":r(n)))return(n=ra(""+n,e.mode,t)).return=e,n;if("object"===(void 0===n?"undefined":r(n))&&null!==n){switch(n.$$typeof){case p:return ib(t=ro(n.type,n.key,n.props,null,e.mode,t),n),t.return=e,t;case x:return(n=rs(n,e.mode,t)).return=e,n;case I:return h(e,n=id(n),t)}if(E(n)||P(n))return(n=rl(n,e.mode,t,null)).return=e,n;if("function"==typeof n.then)return h(e,ij(n),t);if(n.$$typeof===v)return h(e,rG(e,n),t);iy(e,n)}return null}function m(e,n,t,i){var o=null!==n?n.key:null;if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"===(void 0===t?"undefined":r(t)))return null!==o?null:s(e,n,""+t,i);if("object"===(void 0===t?"undefined":r(t))&&null!==t){switch(t.$$typeof){case p:return t.key===o?u(e,n,t,i):null;case x:return t.key===o?d(e,n,t,i):null;case I:return m(e,n,t=id(t),i)}if(E(t)||P(t))return null!==o?null:f(e,n,t,i,null);if("function"==typeof t.then)return m(e,n,ij(t),i);if(t.$$typeof===v)return m(e,n,rG(e,t),i);iy(e,t)}return null}function j(e,n,t,i,o){if("string"==typeof i&&""!==i||"number"==typeof i||"bigint"===(void 0===i?"undefined":r(i)))return s(n,e=e.get(t)||null,""+i,o);if("object"===(void 0===i?"undefined":r(i))&&null!==i){switch(i.$$typeof){case p:return u(n,e=e.get(null===i.key?t:i.key)||null,i,o);case x:return d(n,e=e.get(null===i.key?t:i.key)||null,i,o);case I:return j(e,n,t,i=id(i),o)}if(E(i)||P(i))return f(n,e=e.get(t)||null,i,o,null);if("function"==typeof i.then)return j(e,n,t,ij(i),o);if(i.$$typeof===v)return j(e,n,t,rG(n,i),o);iy(n,i)}return null}return function(s,u,d,f){try{ig=0;var b=function s(u,d,f,b){if("object"===(void 0===f?"undefined":r(f))&&null!==f&&f.type===g&&null===f.key&&(f=f.props.children),"object"===(void 0===f?"undefined":r(f))&&null!==f){switch(f.$$typeof){case p:e:{for(var y=f.key;null!==d;){if(d.key===y){if((y=f.type)===g){if(7===d.tag){t(u,d.sibling),(b=o(d,f.props.children)).return=u,u=b;break e}}else if(d.elementType===y||"object"===(void 0===y?"undefined":r(y))&&null!==y&&y.$$typeof===I&&id(y)===d.type){t(u,d.sibling),ib(b=o(d,f.props),f),b.return=u,u=b;break e}t(u,d);break}n(u,d),d=d.sibling}f.type===g?(b=rl(f.props.children,u.mode,b,f.key)).return=u:(ib(b=ro(f.type,f.key,f.props,null,u.mode,b),f),b.return=u),u=b}return a(u);case x:e:{for(y=f.key;null!==d;){if(d.key===y)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){t(u,d.sibling),(b=o(d,f.children||[])).return=u,u=b;break e}else{t(u,d);break}n(u,d),d=d.sibling}(b=rs(f,u.mode,b)).return=u,u=b}return a(u);case I:return s(u,d,f=id(f),b)}if(E(f))return function(r,o,a,c){for(var s=null,u=null,d=o,f=o=0,p=null;null!==d&&f<a.length;f++){d.index>f?(p=d,d=null):p=d.sibling;var x=m(r,d,a[f],c);if(null===x){null===d&&(d=p);break}e&&d&&null===x.alternate&&n(r,d),o=l(x,o,f),null===u?s=x:u.sibling=x,u=x,d=p}if(f===a.length)return t(r,d),rO&&rv(r,f),s;if(null===d){for(;f<a.length;f++)null!==(d=h(r,a[f],c))&&(o=l(d,o,f),null===u?s=d:u.sibling=d,u=d);return rO&&rv(r,f),s}for(d=i(d);f<a.length;f++)null!==(p=j(d,r,f,a[f],c))&&(e&&null!==p.alternate&&d.delete(null===p.key?f:p.key),o=l(p,o,f),null===u?s=p:u.sibling=p,u=p);return e&&d.forEach(function(e){return n(r,e)}),rO&&rv(r,f),s}(u,d,f,b);if(P(f)){if("function"!=typeof(y=P(f)))throw Error(c(150));return function(r,o,a,s){if(null==a)throw Error(c(151));for(var u=null,d=null,f=o,p=o=0,x=null,g=a.next();null!==f&&!g.done;p++,g=a.next()){f.index>p?(x=f,f=null):x=f.sibling;var b=m(r,f,g.value,s);if(null===b){null===f&&(f=x);break}e&&f&&null===b.alternate&&n(r,f),o=l(b,o,p),null===d?u=b:d.sibling=b,d=b,f=x}if(g.done)return t(r,f),rO&&rv(r,p),u;if(null===f){for(;!g.done;p++,g=a.next())null!==(g=h(r,g.value,s))&&(o=l(g,o,p),null===d?u=g:d.sibling=g,d=g);return rO&&rv(r,p),u}for(f=i(f);!g.done;p++,g=a.next())null!==(g=j(f,r,p,g.value,s))&&(e&&null!==g.alternate&&f.delete(null===g.key?p:g.key),o=l(g,o,p),null===d?u=g:d.sibling=g,d=g);return e&&f.forEach(function(e){return n(r,e)}),rO&&rv(r,p),u}(u,d,f=y.call(f),b)}if("function"==typeof f.then)return s(u,d,ij(f),b);if(f.$$typeof===v)return s(u,d,rG(u,f),b);iy(u,f)}return"string"==typeof f&&""!==f||"number"==typeof f||"bigint"===(void 0===f?"undefined":r(f))?(f=""+f,null!==d&&6===d.tag?(t(u,d.sibling),(b=o(d,f)).return=u):(t(u,d),(b=ra(f,u.mode,b)).return=u),a(u=b)):t(u,d)}(s,u,d,f);return ix=null,b}catch(e){if(e===io||e===ia)throw e;var y=rn(29,e,null,s.mode);return y.lanes=f,y.return=s,y}finally{}}}var iw=iv(!0),ik=iv(!1),i_=!1;function iC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function iI(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function iS(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function iO(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&a$)){var i=r.pending;return null===i?n.next=n:(n.next=i.next,i.next=n),r.pending=n,n=t7(e),t6(e,null,t),n}return t3(e,r,n,t),t7(e)}function iA(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,0!=(4194048&t))){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,eA(e,t)}}function iP(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var i=null,o=null;if(null!==(t=t.firstBaseUpdate)){do{var l={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};null===o?i=o=l:o=o.next=l,t=t.next}while(null!==t);null===o?i=o=n:o=o.next=n}else i=o=n;t={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},e.updateQueue=t;return}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}var iB=!1;function iE(){if(iB){var e=r6;if(null!==e)throw e}}function iz(e,n,t,r){iB=!1;var i=e.updateQueue;i_=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,a=i.shared.pending;if(null!==a){i.shared.pending=null;var c=a,s=c.next;c.next=null,null===l?o=s:l.next=s,l=c;var u=e.alternate;null!==u&&(a=(u=u.updateQueue).lastBaseUpdate)!==l&&(null===a?u.firstBaseUpdate=s:a.next=s,u.lastBaseUpdate=c)}if(null!==o){var d=i.baseState;for(l=0,u=s=c=null,a=o;;){var f=-0x20000001&a.lane,m=f!==a.lane;if(m?(aL&f)===f:(r&f)===f){0!==f&&f===r4&&(iB=!0),null!==u&&(u=u.next={lane:0,tag:a.tag,payload:a.payload,callback:null,next:null});e:{var p=e,x=a;switch(f=n,x.tag){case 1:if("function"==typeof(p=x.payload)){d=p.call(t,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=x.payload)?p.call(t,d,f):p))break e;d=h({},d,f);break e;case 2:i_=!0}}null!==(f=a.callback)&&(e.flags|=64,m&&(e.flags|=8192),null===(m=i.callbacks)?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===u?(s=u=m,c=d):u=u.next=m,l|=f;if(null===(a=a.next))if(null===(a=i.shared.pending))break;else a=(m=a).next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}null===u&&(c=d),i.baseState=c,i.firstBaseUpdate=s,i.lastBaseUpdate=u,null===o&&(i.shared.lanes=0),aW|=l,e.lanes=l,e.memoizedState=d}}function iT(e,n){if("function"!=typeof e)throw Error(c(191,e));e.call(n)}function iN(e,n){var t=e.callbacks;if(null!==t)for(e.callbacks=null,e=0;e<t.length;e++)iT(t[e],n)}var iR=D(null),i$=D(0);function iD(e,n){L(i$,e=aV),L(iR,n),aV=e|n.baseLanes}function iM(){L(i$,aV),L(iR,iR.current)}function iL(){aV=i$.current,M(iR),M(i$)}var iK=D(null),iJ=null;function iX(e){var n=e.alternate;L(iW,1&iW.current),L(iK,e),null===iJ&&(null===n||null!==iR.current?iJ=e:null!==n.memoizedState&&(iJ=e))}function iU(e){L(iW,iW.current),L(iK,e),null===iJ&&(iJ=e)}function iF(e){22===e.tag?(L(iW,iW.current),L(iK,e),null===iJ&&(iJ=e)):iV(e)}function iV(){L(iW,iW.current),L(iK,iK.current)}function iH(e){M(iK),iJ===e&&(iJ=null),M(iW)}var iW=D(0);function iq(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||sE(t)||sz(t)))return n}else if(19===n.tag&&("forwards"===n.memoizedProps.revealOrder||"backwards"===n.memoizedProps.revealOrder||"unstable_legacy-backwards"===n.memoizedProps.revealOrder||"together"===n.memoizedProps.revealOrder)){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var iG=0,iY=null,iQ=null,iZ=null,i0=!1,i1=!1,i2=!1,i8=0,i3=0,i5=null,i4=0;function i6(){throw Error(c(321))}function i7(e,n){if(null===n)return!1;for(var t=0;t<n.length&&t<e.length;t++)if(!tI(e[t],n[t]))return!1;return!0}function i9(e,n,t,r,i,o){return iG=o,iY=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,z.H=null===e||null===e.memoizedState?lo:ll,i2=!1,o=t(r,i),i2=!1,i1&&(o=on(n,t,r,i)),oe(e),o}function oe(e){z.H=li;var n=null!==iQ&&null!==iQ.next;if(iG=0,iZ=iQ=iY=null,i0=!1,i3=0,i5=null,n)throw Error(c(300));null===e||lw||null!==(e=e.dependencies)&&rH(e)&&(lw=!0)}function on(e,n,t,r){iY=e;var i=0;do{if(i1&&(i5=null),i3=0,i1=!1,25<=i)throw Error(c(301));if(i+=1,iZ=iQ=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}z.H=la,o=n(t,r)}while(i1);return o}function ot(){var e=z.H,n=e.useState()[0];return n="function"==typeof n.then?os(n):n,e=e.useState()[0],(null!==iQ?iQ.memoizedState:null)!==e&&(iY.flags|=1024),n}function or(){var e=0!==i8;return i8=0,e}function oi(e,n,t){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~t}function oo(e){if(i0){for(e=e.memoizedState;null!==e;){var n=e.queue;null!==n&&(n.pending=null),e=e.next}i0=!1}iG=0,iZ=iQ=iY=null,i1=!1,i3=i8=0,i5=null}function ol(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===iZ?iY.memoizedState=iZ=e:iZ=iZ.next=e,iZ}function oa(){if(null===iQ){var e=iY.alternate;e=null!==e?e.memoizedState:null}else e=iQ.next;var n=null===iZ?iY.memoizedState:iZ.next;if(null!==n)iZ=n,iQ=e;else{if(null===e){if(null===iY.alternate)throw Error(c(467));throw Error(c(310))}e={memoizedState:(iQ=e).memoizedState,baseState:iQ.baseState,baseQueue:iQ.baseQueue,queue:iQ.queue,next:null},null===iZ?iY.memoizedState=iZ=e:iZ=iZ.next=e}return iZ}function oc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var n=i3;return i3+=1,null===i5&&(i5=[]),e=iu(i5,e,n),n=iY,null===(null===iZ?n.memoizedState:iZ.next)&&(z.H=null===(n=n.alternate)||null===n.memoizedState?lo:ll),e}function ou(e){if(null!==e&&"object"===(void 0===e?"undefined":r(e))){if("function"==typeof e.then)return os(e);if(e.$$typeof===v)return rq(e)}throw Error(c(438,String(e)))}function od(e){var n=null,t=iY.updateQueue;if(null!==t&&(n=t.memoCache),null==n){var r=iY.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(n={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==n&&(n={data:[],index:0}),null===t&&(t=oc(),iY.updateQueue=t),t.memoCache=n,void 0===(t=n.data[n.index]))for(t=n.data[n.index]=Array(e),r=0;r<e;r++)t[r]=O;return n.index++,t}function of(e,n){return"function"==typeof n?n(e):n}function oh(e){return om(oa(),iQ,e)}function om(e,n,t){var r=e.queue;if(null===r)throw Error(c(311));r.lastRenderedReducer=t;var i=e.baseQueue,o=r.pending;if(null!==o){if(null!==i){var l=i.next;i.next=o.next,o.next=l}n.baseQueue=i=o,r.pending=null}if(o=e.baseState,null===i)e.memoizedState=o;else{n=i.next;var a=l=null,s=null,u=n,d=!1;do{var f=-0x20000001&u.lane;if(f!==u.lane?(aL&f)===f:(iG&f)===f){var h=u.revertLane;if(0===h)null!==s&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===r4&&(d=!0);else if((iG&h)===h){u=u.next,h===r4&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===s?(a=s=f,l=o):s=s.next=f,iY.lanes|=h,aW|=h;f=u.action,i2&&t(o,f),o=u.hasEagerState?u.eagerState:t(o,f)}else h={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===s?(a=s=h,l=o):s=s.next=h,iY.lanes|=f,aW|=f;u=u.next}while(null!==u&&u!==n);if(null===s?l=o:s.next=a,!tI(o,e.memoizedState)&&(lw=!0,d&&null!==(t=r6)))throw t;e.memoizedState=o,e.baseState=l,e.baseQueue=s,r.lastRenderedState=o}return null===i&&(r.lanes=0),[e.memoizedState,r.dispatch]}function op(e){var n=oa(),t=n.queue;if(null===t)throw Error(c(311));t.lastRenderedReducer=e;var r=t.dispatch,i=t.pending,o=n.memoizedState;if(null!==i){t.pending=null;var l=i=i.next;do o=e(o,l.action),l=l.next;while(l!==i);tI(o,n.memoizedState)||(lw=!0),n.memoizedState=o,null===n.baseQueue&&(n.baseState=o),t.lastRenderedState=o}return[o,r]}function ox(e,n,t){var r=iY,i=oa(),o=rO;if(o){if(void 0===t)throw Error(c(407));t=t()}else t=n();var l=!tI((iQ||i).memoizedState,t);if(l&&(i.memoizedState=t,lw=!0),i=i.queue,oK(ob.bind(null,r,i,e),[e]),i.getSnapshot!==n||l||null!==iZ&&1&iZ.memoizedState.tag){if(r.flags|=2048,oR(9,{destroy:void 0},oj.bind(null,r,i,t,n),null),null===aD)throw Error(c(349));o||0!=(127&iG)||og(r,n,t)}return t}function og(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},null===(n=iY.updateQueue)?(n=oc(),iY.updateQueue=n,n.stores=[e]):null===(t=n.stores)?n.stores=[e]:t.push(e)}function oj(e,n,t,r){n.value=t,n.getSnapshot=r,oy(n)&&ov(e)}function ob(e,n,t){return t(function(){oy(n)&&ov(e)})}function oy(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!tI(e,t)}catch(e){return!0}}function ov(e){var n=t4(e,2);null!==n&&cc(n,e,2)}function ow(e){var n=ol();if("function"==typeof e){var t=e;if(e=t(),i2){ep(!0);try{t()}finally{ep(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:of,lastRenderedState:e},n}function ok(e,n,t,r){return e.baseState=t,om(e,iQ,"function"==typeof r?r:of)}function o_(e,n,t,r,i){if(ln(e))throw Error(c(485));if(null!==(e=n.action)){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==z.T?t(!0):o.isTransition=!1,r(o),null===(t=n.pending)?(o.next=n.pending=o,oC(n,o)):(o.next=t.next,n.pending=t.next=o)}}function oC(e,n){var t=n.action,r=n.payload,i=e.state;if(n.isTransition){var o=z.T,l={};z.T=l;try{var a=t(i,r),c=z.S;null!==c&&c(l,a),oI(e,n,a)}catch(t){oO(e,n,t)}finally{null!==o&&null!==l.types&&(o.types=l.types),z.T=o}}else try{o=t(i,r),oI(e,n,o)}catch(t){oO(e,n,t)}}function oI(e,n,t){null!==t&&"object"===(void 0===t?"undefined":r(t))&&"function"==typeof t.then?t.then(function(t){oS(e,n,t)},function(t){return oO(e,n,t)}):oS(e,n,t)}function oS(e,n,t){n.status="fulfilled",n.value=t,oA(n),e.state=t,null!==(n=e.pending)&&((t=n.next)===n?e.pending=null:(t=t.next,n.next=t,oC(e,t)))}function oO(e,n,t){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do n.status="rejected",n.reason=t,oA(n),n=n.next;while(n!==r)}e.action=null}function oA(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function oP(e,n){return n}function oB(e,n){if(rO){var t=aD.formState;if(null!==t){e:{var r=iY;if(rO){if(rS){n:{for(var i=rS,o=rP;8!==i.nodeType;)if(!o||null===(i=sT(i.nextSibling))){i=null;break n}i="F!"===(o=i.data)||"F"===o?i:null}if(i){rS=sT(i.nextSibling),r="F!"===i.data;break e}}rE(r)}r=!1}r&&(n=t[0])}}return(t=ol()).memoizedState=t.baseState=n,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oP,lastRenderedState:n},t.queue=r,t=o7.bind(null,iY,r),r.dispatch=t,r=ow(!1),o=le.bind(null,iY,!1,r.queue),r=ol(),i={state:n,dispatch:null,action:e,pending:null},r.queue=i,t=o_.bind(null,iY,i,o,t),i.dispatch=t,r.memoizedState=e,[n,t,!1]}function oE(e){return oz(oa(),iQ,e)}function oz(e,n,t){if(n=om(e,n,oP)[0],e=oh(of)[0],"object"===(void 0===n?"undefined":r(n))&&null!==n&&"function"==typeof n.then)try{var i=os(n)}catch(e){if(e===io)throw ia;throw e}else i=n;var o=(n=oa()).queue,l=o.dispatch;return t!==n.memoizedState&&(iY.flags|=2048,oR(9,{destroy:void 0},oT.bind(null,o,t),null)),[i,l,e]}function oT(e,n){e.action=n}function oN(e){var n=oa(),t=iQ;if(null!==t)return oz(n,t,e);oa(),n=n.memoizedState;var r=(t=oa()).queue.dispatch;return t.memoizedState=e,[n,r,!1]}function oR(e,n,t,r){return e={tag:e,create:t,deps:r,inst:n,next:null},null===(n=iY.updateQueue)&&(n=oc(),iY.updateQueue=n),null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function o$(){return oa().memoizedState}function oD(e,n,t,r){var i=ol();iY.flags|=e,i.memoizedState=oR(1|n,{destroy:void 0},t,void 0===r?null:r)}function oM(e,n,t,r){var i=oa();r=void 0===r?null:r;var o=i.memoizedState.inst;null!==iQ&&null!==r&&i7(r,iQ.memoizedState.deps)?i.memoizedState=oR(n,o,t,r):(iY.flags|=e,i.memoizedState=oR(1|n,o,t,r))}function oL(e,n){oD(8390656,8,e,n)}function oK(e,n){oM(2048,8,e,n)}function oJ(e){var n=oa().memoizedState,t={ref:n,nextImpl:e};iY.flags|=4;var r=iY.updateQueue;if(null===r)r=oc(),iY.updateQueue=r,r.events=[t];else{var i=r.events;null===i?r.events=[t]:i.push(t)}return function(){if(0!=(2&a$))throw Error(c(440));return n.impl.apply(void 0,arguments)}}function oX(e,n){return oM(4,2,e,n)}function oU(e,n){return oM(4,4,e,n)}function oF(e,n){if("function"==typeof n){var t=n(e=e());return function(){"function"==typeof t?t():n(null)}}if(null!=n)return n.current=e=e(),function(){n.current=null}}function oV(e,n,t){t=null!=t?t.concat([e]):null,oM(4,4,oF.bind(null,n,e),t)}function oH(){}function oW(e,n){var t=oa();n=void 0===n?null:n;var r=t.memoizedState;return null!==n&&i7(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function oq(e,n){var t=oa();n=void 0===n?null:n;var r=t.memoizedState;if(null!==n&&i7(n,r[1]))return r[0];if(r=e(),i2){ep(!0);try{e()}finally{ep(!1)}}return t.memoizedState=[r,n],r}function oG(e,n,t){return void 0===t||0!=(0x40000000&iG)&&0==(261930&aL)?e.memoizedState=n:(e.memoizedState=t,e=ca(),iY.lanes|=e,aW|=e,t)}function oY(e,n,t,r){return tI(t,n)?t:null!==iR.current?(tI(e=oG(e,t,r),n)||(lw=!0),e):0==(42&iG)||0!=(0x40000000&iG)&&0==(261930&aL)?(lw=!0,e.memoizedState=t):(e=ca(),iY.lanes|=e,aW|=e,n)}function oQ(e,n,t,i,o){var l=T.p;T.p=0!==l&&8>l?l:8;var a=z.T,c={};z.T=c,le(e,!1,n,t);try{var s=o(),u=z.S;if(null!==u&&u(c,s),null!==s&&"object"===(void 0===s?"undefined":r(s))&&"function"==typeof s.then){var d,f,h=(d=[],f={status:"pending",value:null,reason:null,then:function(e){d.push(e)}},s.then(function(){f.status="fulfilled",f.value=i;for(var e=0;e<d.length;e++)(0,d[e])(i)},function(e){for(f.status="rejected",f.reason=e,e=0;e<d.length;e++)(0,d[e])(void 0)}),f);o9(e,n,h,cl(e))}else o9(e,n,i,cl(e))}catch(t){o9(e,n,{then:function(){},status:"rejected",reason:t},cl())}finally{T.p=l,null!==a&&null!==c.types&&(a.types=c.types),z.T=a}}function oZ(){}function o0(e,n,t,r){if(5!==e.tag)throw Error(c(476));var i=o1(e).queue;oQ(e,i,n,N,null===t?oZ:function(){return o2(e),t(r)})}function o1(e){var n=e.memoizedState;if(null!==n)return n;var t={};return(n={memoizedState:N,baseState:N,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:of,lastRenderedState:N},next:null}).next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:of,lastRenderedState:t},next:null},e.memoizedState=n,null!==(e=e.alternate)&&(e.memoizedState=n),n}function o2(e){var n=o1(e);null===n.next&&(n=e.alternate.memoizedState),o9(e,n.next.queue,{},cl())}function o8(){return rq(un)}function o3(){return oa().memoizedState}function o5(){return oa().memoizedState}function o4(e){for(var n=e.return;null!==n;){switch(n.tag){case 24:case 3:var t=cl(),r=iO(n,e=iS(t),t);null!==r&&(cc(r,n,t),iA(r,n,t)),n={cache:r2()},e.payload=n;return}n=n.return}}function o6(e,n,t){var r=cl();t={lane:r,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null},ln(e)?lt(n,t):null!==(t=t5(e,n,t,r))&&(cc(t,e,r),lr(t,n,r))}function o7(e,n,t){o9(e,n,t,cl())}function o9(e,n,t,r){var i={lane:r,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};if(ln(e))lt(n,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=n.lastRenderedReducer))try{var l=n.lastRenderedState,a=o(l,t);if(i.hasEagerState=!0,i.eagerState=a,tI(a,l))return t3(e,n,i,0),null===aD&&t8(),!1}catch(e){}finally{}if(null!==(t=t5(e,n,i,r)))return cc(t,e,r),lr(t,n,r),!0}return!1}function le(e,n,t,r){if(r={lane:2,revertLane:cZ(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ln(e)){if(n)throw Error(c(479))}else null!==(n=t5(e,t,r,2))&&cc(n,e,2)}function ln(e){var n=e.alternate;return e===iY||null!==n&&n===iY}function lt(e,n){i1=i0=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function lr(e,n,t){if(0!=(4194048&t)){var r=n.lanes;r&=e.pendingLanes,n.lanes=t|=r,eA(e,t)}}var li={readContext:rq,use:ou,useCallback:i6,useContext:i6,useEffect:i6,useImperativeHandle:i6,useLayoutEffect:i6,useInsertionEffect:i6,useMemo:i6,useReducer:i6,useRef:i6,useState:i6,useDebugValue:i6,useDeferredValue:i6,useTransition:i6,useSyncExternalStore:i6,useId:i6,useHostTransitionStatus:i6,useFormState:i6,useActionState:i6,useOptimistic:i6,useMemoCache:i6,useCacheRefresh:i6};li.useEffectEvent=i6;var lo={readContext:rq,use:ou,useCallback:function(e,n){return ol().memoizedState=[e,void 0===n?null:n],e},useContext:rq,useEffect:oL,useImperativeHandle:function(e,n,t){t=null!=t?t.concat([e]):null,oD(4194308,4,oF.bind(null,n,e),t)},useLayoutEffect:function(e,n){return oD(4194308,4,e,n)},useInsertionEffect:function(e,n){oD(4,2,e,n)},useMemo:function(e,n){var t=ol();n=void 0===n?null:n;var r=e();if(i2){ep(!0);try{e()}finally{ep(!1)}}return t.memoizedState=[r,n],r},useReducer:function(e,n,t){var r=ol();if(void 0!==t){var i=t(n);if(i2){ep(!0);try{t(n)}finally{ep(!1)}}}else i=n;return r.memoizedState=r.baseState=i,r.queue=e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},e=e.dispatch=o6.bind(null,iY,e),[r.memoizedState,e]},useRef:function(e){return ol().memoizedState={current:e}},useState:function(e){var n=(e=ow(e)).queue,t=o7.bind(null,iY,n);return n.dispatch=t,[e.memoizedState,t]},useDebugValue:oH,useDeferredValue:function(e,n){return oG(ol(),e,n)},useTransition:function(){var e=ow(!1);return e=oQ.bind(null,iY,e.queue,!0,!1),ol().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,t){var r=iY,i=ol();if(rO){if(void 0===t)throw Error(c(407));t=t()}else{if(t=n(),null===aD)throw Error(c(349));0!=(127&aL)||og(r,n,t)}i.memoizedState=t;var o={value:t,getSnapshot:n};return i.queue=o,oL(ob.bind(null,r,o,e),[e]),r.flags|=2048,oR(9,{destroy:void 0},oj.bind(null,r,o,t,n),null),t},useId:function(){var e=ol(),n=aD.identifierPrefix;if(rO){var t=ry,r=rb;n="_"+n+"R_"+(t=(r&~(1<<32-ex(r)-1)).toString(32)+t),0<(t=i8++)&&(n+="H"+t.toString(32)),n+="_"}else n="_"+n+"r_"+(t=i4++).toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:o8,useFormState:oB,useActionState:oB,useOptimistic:function(e){var n=ol();n.memoizedState=n.baseState=e;var t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=t,n=le.bind(null,iY,!0,t),t.dispatch=n,[e,n]},useMemoCache:od,useCacheRefresh:function(){return ol().memoizedState=o4.bind(null,iY)},useEffectEvent:function(e){var n=ol(),t={impl:e};return n.memoizedState=t,function(){if(0!=(2&a$))throw Error(c(440));return t.impl.apply(void 0,arguments)}}},ll={readContext:rq,use:ou,useCallback:oW,useContext:rq,useEffect:oK,useImperativeHandle:oV,useInsertionEffect:oX,useLayoutEffect:oU,useMemo:oq,useReducer:oh,useRef:o$,useState:function(){return oh(of)},useDebugValue:oH,useDeferredValue:function(e,n){return oY(oa(),iQ.memoizedState,e,n)},useTransition:function(){var e=oh(of)[0],n=oa().memoizedState;return["boolean"==typeof e?e:os(e),n]},useSyncExternalStore:ox,useId:o3,useHostTransitionStatus:o8,useFormState:oE,useActionState:oE,useOptimistic:function(e,n){return ok(oa(),iQ,e,n)},useMemoCache:od,useCacheRefresh:o5};ll.useEffectEvent=oJ;var la={readContext:rq,use:ou,useCallback:oW,useContext:rq,useEffect:oK,useImperativeHandle:oV,useInsertionEffect:oX,useLayoutEffect:oU,useMemo:oq,useReducer:op,useRef:o$,useState:function(){return op(of)},useDebugValue:oH,useDeferredValue:function(e,n){var t=oa();return null===iQ?oG(t,e,n):oY(t,iQ.memoizedState,e,n)},useTransition:function(){var e=op(of)[0],n=oa().memoizedState;return["boolean"==typeof e?e:os(e),n]},useSyncExternalStore:ox,useId:o3,useHostTransitionStatus:o8,useFormState:oN,useActionState:oN,useOptimistic:function(e,n){var t=oa();return null!==iQ?ok(t,iQ,e,n):(t.baseState=e,[e,t.queue.dispatch])},useMemoCache:od,useCacheRefresh:o5};function lc(e,n,t,r){t=null==(t=t(r,n=e.memoizedState))?n:h({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}la.useEffectEvent=oJ;var ls={enqueueSetState:function(e,n,t){e=e._reactInternals;var r=cl(),i=iS(r);i.payload=n,null!=t&&(i.callback=t),null!==(n=iO(e,i,r))&&(cc(n,e,r),iA(n,e,r))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=cl(),i=iS(r);i.tag=1,i.payload=n,null!=t&&(i.callback=t),null!==(n=iO(e,i,r))&&(cc(n,e,r),iA(n,e,r))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=cl(),r=iS(t);r.tag=2,null!=n&&(r.callback=n),null!==(n=iO(e,r,t))&&(cc(n,e,t),iA(n,e,t))}};function lu(e,n,t,r,i,o,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,l):!n.prototype||!n.prototype.isPureReactComponent||!tS(t,r)||!tS(i,o)}function ld(e,n,t,r){e=n.state,"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&ls.enqueueReplaceState(n,n.state,null)}function lf(e,n){var t=n;if("ref"in n)for(var r in t={},n)"ref"!==r&&(t[r]=n[r]);if(e=e.defaultProps)for(var i in t===n&&(t=h({},t)),e)void 0===t[i]&&(t[i]=e[i]);return t}function lh(e){tZ(e)}function lm(e){console.error(e)}function lp(e){tZ(e)}function lx(e,n){try{(0,e.onUncaughtError)(n.value,{componentStack:n.stack})}catch(e){setTimeout(function(){throw e})}}function lg(e,n,t){try{(0,e.onCaughtError)(t.value,{componentStack:t.stack,errorBoundary:1===n.tag?n.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function lj(e,n,t){return(t=iS(t)).tag=3,t.payload={element:null},t.callback=function(){lx(e,n)},t}function lb(e){return(e=iS(e)).tag=3,e}function ly(e,n,t,r){var i=t.type.getDerivedStateFromError;if("function"==typeof i){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){lg(n,t,r)}}var l=t.stateNode;null!==l&&"function"==typeof l.componentDidCatch&&(e.callback=function(){lg(n,t,r),"function"!=typeof i&&(null===a4?a4=new Set([this]):a4.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var lv=Error(c(461)),lw=!1;function lk(e,n,t,r){n.child=null===e?ik(n,null,t,r):iw(n,e.child,t,r)}function l_(e,n,t,r,i){t=t.render;var o=n.ref;if("ref"in r){var l={};for(var a in r)"ref"!==a&&(l[a]=r[a])}else l=r;return(rW(n),r=i9(e,n,t,l,o,i),a=or(),null===e||lw)?(rO&&a&&rk(n),n.flags|=1,lk(e,n,r,i),n.child):(oi(e,n,i),lH(e,n,i))}function lC(e,n,t,r,i){if(null===e){var o=t.type;return"function"!=typeof o||rt(o)||void 0!==o.defaultProps||null!==t.compare?((e=ro(t.type,null,r,n,n.mode,i)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=o,lI(e,n,o,r,i))}if(o=e.child,!lW(e,i)){var l=o.memoizedProps;if((t=null!==(t=t.compare)?t:tS)(l,r)&&e.ref===n.ref)return lH(e,n,i)}return n.flags|=1,(e=rr(o,r)).ref=n.ref,e.return=n,n.child=e}function lI(e,n,t,r,i){if(null!==e){var o=e.memoizedProps;if(tS(o,r)&&e.ref===n.ref)if(lw=!1,n.pendingProps=r=o,!lW(e,i))return n.lanes=e.lanes,lH(e,n,i);else 0!=(131072&e.flags)&&(lw=!0)}return lz(e,n,t,r,i)}function lS(e,n,t,r){var i=r.children,o=null!==e?e.memoizedState:null;if(null===e&&null===n.stateNode&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(0!=(128&n.flags)){if(o=null!==o?o.baseLanes|t:t,null!==e){for(i=0,r=n.child=e.child;null!==r;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,n.child=null;return lA(e,n,o,t,r)}if(0==(0x20000000&t))return r=n.lanes=0x20000000,lA(e,n,null!==o?o.baseLanes|t:t,t,r);n.memoizedState={baseLanes:0,cachePool:null},null!==e&&ir(n,null!==o?o.cachePool:null),null!==o?iD(n,o):iM(),iF(n)}else null!==o?(ir(n,o.cachePool),iD(n,o),iV(n),n.memoizedState=null):(null!==e&&ir(n,null),iM(),iV(n));return lk(e,n,i,t),n.child}function lO(e,n){return null!==e&&22===e.tag||null!==n.stateNode||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function lA(e,n,t,r,i){var o=it();return n.memoizedState={baseLanes:t,cachePool:o=null===o?null:{parent:r1._currentValue,pool:o}},null!==e&&ir(n,null),iM(),iF(n),null!==e&&rV(e,n,r,!0),n.childLanes=i,null}function lP(e,n){return(n=lJ({mode:n.mode,children:n.children},e.mode)).ref=e.ref,e.child=n,n.return=e,n}function lB(e,n,t){return iw(n,e.child,null,t),e=lP(n,n.pendingProps),e.flags|=2,iH(n),n.memoizedState=null,e}function lE(e,n){var t=n.ref;if(null===t)null!==e&&null!==e.ref&&(n.flags|=4194816);else{if("function"!=typeof t&&"object"!==(void 0===t?"undefined":r(t)))throw Error(c(284));(null===e||e.ref!==t)&&(n.flags|=4194816)}}function lz(e,n,t,r,i){return(rW(n),t=i9(e,n,t,r,void 0,i),r=or(),null===e||lw)?(rO&&r&&rk(n),n.flags|=1,lk(e,n,t,i),n.child):(oi(e,n,i),lH(e,n,i))}function lT(e,n,t,r,i,o){return(rW(n),n.updateQueue=null,t=on(n,r,t,i),oe(e),r=or(),null===e||lw)?(rO&&r&&rk(n),n.flags|=1,lk(e,n,t,o),n.child):(oi(e,n,o),lH(e,n,o))}function lN(e,n,t,i,o){if(rW(n),null===n.stateNode){var l=t9,a=t.contextType;"object"===(void 0===a?"undefined":r(a))&&null!==a&&(l=rq(a)),n.memoizedState=null!==(l=new t(i,l)).state&&void 0!==l.state?l.state:null,l.updater=ls,n.stateNode=l,l._reactInternals=n,(l=n.stateNode).props=i,l.state=n.memoizedState,l.refs={},iC(n),a=t.contextType,l.context="object"===(void 0===a?"undefined":r(a))&&null!==a?rq(a):t9,l.state=n.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(lc(n,t,a,i),l.state=n.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(a=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),a!==l.state&&ls.enqueueReplaceState(l,l.state,null),iz(n,i,l,o),iE(),l.state=n.memoizedState),"function"==typeof l.componentDidMount&&(n.flags|=4194308),i=!0}else if(null===e){l=n.stateNode;var c=n.memoizedProps,s=lf(t,c);l.props=s;var u=l.context,d=t.contextType;a=t9,"object"===(void 0===d?"undefined":r(d))&&null!==d&&(a=rq(d));var f=t.getDerivedStateFromProps;d="function"==typeof f||"function"==typeof l.getSnapshotBeforeUpdate,c=n.pendingProps!==c,d||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(c||u!==a)&&ld(n,l,i,a),i_=!1;var h=n.memoizedState;l.state=h,iz(n,i,l,o),iE(),u=n.memoizedState,c||h!==u||i_?("function"==typeof f&&(lc(n,t,f,i),u=n.memoizedState),(s=i_||lu(n,t,s,i,h,u,a))?(d||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||("function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),"function"==typeof l.componentDidMount&&(n.flags|=4194308)):("function"==typeof l.componentDidMount&&(n.flags|=4194308),n.memoizedProps=i,n.memoizedState=u),l.props=i,l.state=u,l.context=a,i=s):("function"==typeof l.componentDidMount&&(n.flags|=4194308),i=!1)}else{l=n.stateNode,iI(e,n),d=lf(t,a=n.memoizedProps),l.props=d,f=n.pendingProps,h=l.context,u=t.contextType,s=t9,"object"===(void 0===u?"undefined":r(u))&&null!==u&&(s=rq(u)),(u="function"==typeof(c=t.getDerivedStateFromProps)||"function"==typeof l.getSnapshotBeforeUpdate)||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(a!==f||h!==s)&&ld(n,l,i,s),i_=!1,h=n.memoizedState,l.state=h,iz(n,i,l,o),iE();var m=n.memoizedState;a!==f||h!==m||i_||null!==e&&null!==e.dependencies&&rH(e.dependencies)?("function"==typeof c&&(lc(n,t,c,i),m=n.memoizedState),(d=i_||lu(n,t,d,i,h,m,s)||null!==e&&null!==e.dependencies&&rH(e.dependencies))?(u||"function"!=typeof l.UNSAFE_componentWillUpdate&&"function"!=typeof l.componentWillUpdate||("function"==typeof l.componentWillUpdate&&l.componentWillUpdate(i,m,s),"function"==typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(i,m,s)),"function"==typeof l.componentDidUpdate&&(n.flags|=4),"function"==typeof l.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof l.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(n.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(n.flags|=1024),n.memoizedProps=i,n.memoizedState=m),l.props=i,l.state=m,l.context=s,i=d):("function"!=typeof l.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(n.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(n.flags|=1024),i=!1)}return l=i,lE(e,n),i=0!=(128&n.flags),l||i?(l=n.stateNode,t=i&&"function"!=typeof t.getDerivedStateFromError?null:l.render(),n.flags|=1,null!==e&&i?(n.child=iw(n,e.child,null,o),n.child=iw(n,null,t,o)):lk(e,n,t,o),n.memoizedState=l.state,e=n.child):e=lH(e,n,o),e}function lR(e,n,t,r){return rR(),n.flags|=256,lk(e,n,t,r),n.child}var l$={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lD(e){return{baseLanes:e,cachePool:ii()}}function lM(e,n,t){return e=null!==e?e.childLanes&~t:0,n&&(e|=aY),e}function lL(e,n,t){var r,i=n.pendingProps,o=!1,l=0!=(128&n.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&iW.current)),r&&(o=!0,n.flags&=-129),r=0!=(32&n.flags),n.flags&=-33,null===e){if(rO){if(o?iX(n):iV(n),(e=rS)?null!==(e=null!==(e=sB(e,rP))&&"&"!==e.data?e:null)&&(n.memoizedState={dehydrated:e,treeContext:null!==rj?{id:rb,overflow:ry}:null,retryLane:0x20000000,hydrationErrors:null},(t=rc(e)).return=n,n.child=t,rI=n,rS=null):e=null,null===e)throw rE(n);return sz(e)?n.lanes=32:n.lanes=0x20000000,null}var a=i.children;return(i=i.fallback,o)?(iV(n),a=lJ({mode:"hidden",children:a},o=n.mode),i=rl(i,o,t,null),a.return=n,i.return=n,a.sibling=i,n.child=a,(i=n.child).memoizedState=lD(t),i.childLanes=lM(e,r,t),n.memoizedState=l$,lO(null,i)):(iX(n),lK(n,a))}var s=e.memoizedState;if(null!==s&&null!==(a=s.dehydrated)){if(l)256&n.flags?(iX(n),n.flags&=-257,n=lX(e,n,t)):null!==n.memoizedState?(iV(n),n.child=e.child,n.flags|=128,n=null):(iV(n),a=i.fallback,o=n.mode,i=lJ({mode:"visible",children:i.children},o),a=rl(a,o,t,null),a.flags|=2,i.return=n,a.return=n,i.sibling=a,n.child=i,iw(n,e.child,null,t),(i=n.child).memoizedState=lD(t),i.childLanes=lM(e,r,t),n.memoizedState=l$,n=lO(null,i));else if(iX(n),sz(a)){if(r=a.nextSibling&&a.nextSibling.dataset)var u=r.dgst;r=u,(i=Error(c(419))).stack="",i.digest=r,rD({value:i,source:null,stack:null}),n=lX(e,n,t)}else if(lw||rV(e,n,t,!1),r=0!=(t&e.childLanes),lw||r){if(null!==(r=aD)&&0!==(i=eP(r,t))&&i!==s.retryLane)throw s.retryLane=i,t4(e,i),cc(r,e,i),lv;sE(a)||cb(),n=lX(e,n,t)}else sE(a)?(n.flags|=192,n.child=e.child,n=null):(e=s.treeContext,rS=sT(a.nextSibling),rI=n,rO=!0,rA=null,rP=!1,null!==e&&rC(n,e),n=lK(n,i.children),n.flags|=4096);return n}return o?(iV(n),a=i.fallback,o=n.mode,u=(s=e.child).sibling,(i=rr(s,{mode:"hidden",children:i.children})).subtreeFlags=0x3e00000&s.subtreeFlags,null!==u?a=rr(u,a):(a=rl(a,o,t,null),a.flags|=2),a.return=n,i.return=n,i.sibling=a,n.child=i,lO(null,i),i=n.child,null===(a=e.child.memoizedState)?a=lD(t):(null!==(o=a.cachePool)?(s=r1._currentValue,o=o.parent!==s?{parent:s,pool:s}:o):o=ii(),a={baseLanes:a.baseLanes|t,cachePool:o}),i.memoizedState=a,i.childLanes=lM(e,r,t),n.memoizedState=l$,lO(e.child,i)):(iX(n),e=(t=e.child).sibling,(t=rr(t,{mode:"visible",children:i.children})).return=n,t.sibling=null,null!==e&&(null===(r=n.deletions)?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=t,n.memoizedState=null,t)}function lK(e,n){return(n=lJ({mode:"visible",children:n},e.mode)).return=e,e.child=n}function lJ(e,n){return(e=rn(22,e,null,n)).lanes=0,e}function lX(e,n,t){return iw(n,e.child,null,t),e=lK(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function lU(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),rU(e.return,n,t)}function lF(e,n,t,r,i,o){var l=e.memoizedState;null===l?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:i,treeForkCount:o}:(l.isBackwards=n,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=t,l.tailMode=i,l.treeForkCount=o)}function lV(e,n,t){var r=n.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var l=iW.current,a=0!=(2&l);if(a?(l=1&l|2,n.flags|=128):l&=1,L(iW,l),lk(e,n,r,t),r=rO?rp:0,!a&&null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&lU(e,t,n);else if(19===e.tag)lU(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(i=null,t=n.child;null!==t;)null!==(e=t.alternate)&&null===iq(e)&&(i=t),t=t.sibling;null===(t=i)?(i=n.child,n.child=null):(i=t.sibling,t.sibling=null),lF(n,!1,i,t,o,r);break;case"backwards":case"unstable_legacy-backwards":for(t=null,i=n.child,n.child=null;null!==i;){if(null!==(e=i.alternate)&&null===iq(e)){n.child=i;break}e=i.sibling,i.sibling=t,t=i,i=e}lF(n,!0,t,null,o,r);break;case"together":lF(n,!1,null,null,void 0,r);break;default:n.memoizedState=null}return n.child}function lH(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),aW|=n.lanes,0==(t&n.childLanes)){if(null===e)return null;else if(rV(e,n,t,!1),0==(t&n.childLanes))return null}if(null!==e&&n.child!==e.child)throw Error(c(153));if(null!==n.child){for(t=rr(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=rr(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function lW(e,n){return 0!=(e.lanes&n)||!!(null!==(e=e.dependencies)&&rH(e))}function lq(e,n,t){if(null!==e)if(e.memoizedProps!==n.pendingProps)lw=!0;else{if(!lW(e,t)&&0==(128&n.flags))return lw=!1,function(e,n,t){switch(n.tag){case 3:F(n,n.stateNode.containerInfo),rJ(n,r1,e.memoizedState.cache),rR();break;case 27:case 5:H(n);break;case 4:F(n,n.stateNode.containerInfo);break;case 10:rJ(n,n.type,n.memoizedProps.value);break;case 31:if(null!==n.memoizedState)return n.flags|=128,iU(n),null;break;case 13:var r=n.memoizedState;if(null!==r){if(null!==r.dehydrated)return iX(n),n.flags|=128,null;if(0!=(t&n.child.childLanes))return lL(e,n,t);return iX(n),null!==(e=lH(e,n,t))?e.sibling:null}iX(n);break;case 19:var i=0!=(128&e.flags);if((r=0!=(t&n.childLanes))||(rV(e,n,t,!1),r=0!=(t&n.childLanes)),i){if(r)return lV(e,n,t);n.flags|=128}if(null!==(i=n.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),L(iW,iW.current),!r)return null;break;case 22:return n.lanes=0,lS(e,n,t,n.pendingProps);case 24:rJ(n,r1,e.memoizedState.cache)}return lH(e,n,t)}(e,n,t);lw=0!=(131072&e.flags)}else lw=!1,rO&&0!=(1048576&n.flags)&&rw(n,rp,n.index);switch(n.lanes=0,n.tag){case 16:e:{var i=n.pendingProps;if(e=id(n.elementType),n.type=e,"function"==typeof e)rt(e)?(i=lf(e,i),n.tag=1,n=lN(null,n,e,i,t)):(n.tag=0,n=lz(null,n,e,i,t));else{if(null!=e){var o=e.$$typeof;if(o===w){n.tag=11,n=l_(null,n,e,i,t);break e}if(o===C){n.tag=14,n=lC(null,n,e,i,t);break e}}throw Error(c(306,n=function e(n){if(null==n)return null;if("function"==typeof n)return n.$$typeof===B?null:n.displayName||n.name||null;if("string"==typeof n)return n;switch(n){case g:return"Fragment";case b:return"Profiler";case j:return"StrictMode";case k:return"Suspense";case _:return"SuspenseList";case S:return"Activity"}if("object"===(void 0===n?"undefined":r(n)))switch(n.$$typeof){case x:return"Portal";case v:return n.displayName||"Context";case y:return(n._context.displayName||"Context")+".Consumer";case w:var t=n.render;return(n=n.displayName)||(n=""!==(n=t.displayName||t.name||"")?"ForwardRef("+n+")":"ForwardRef"),n;case C:return null!==(t=n.displayName||null)?t:e(n.type)||"Memo";case I:t=n._payload,n=n._init;try{return e(n(t))}catch(e){}}return null}(e)||e,""))}}return n;case 0:return lz(e,n,n.type,n.pendingProps,t);case 1:return o=lf(i=n.type,n.pendingProps),lN(e,n,i,o,t);case 3:e:{if(F(n,n.stateNode.containerInfo),null===e)throw Error(c(387));i=n.pendingProps;var l=n.memoizedState;o=l.element,iI(e,n),iz(n,i,null,t);var a=n.memoizedState;if(rJ(n,r1,i=a.cache),i!==l.cache&&rF(n,[r1],t,!0),iE(),i=a.element,l.isDehydrated)if(l={element:i,isDehydrated:!1,cache:a.cache},n.updateQueue.baseState=l,n.memoizedState=l,256&n.flags){n=lR(e,n,i,t);break e}else if(i!==o){rD(o=rd(Error(c(424)),n)),n=lR(e,n,i,t);break e}else for(rS=sT((e=9===(e=n.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).firstChild),rI=n,rO=!0,rA=null,rP=!0,t=ik(n,null,i,t),n.child=t;t;)t.flags=-3&t.flags|4096,t=t.sibling;else{if(rR(),i===o){n=lH(e,n,t);break e}lk(e,n,i,t)}n=n.child}return n;case 26:return lE(e,n),null===e?(t=sV(n.type,null,n.pendingProps,null))?n.memoizedState=t:rO||(t=n.type,e=n.pendingProps,(i=sg(X.current).createElement(t))[eR]=n,i[e$]=e,sh(i,t,e),eq(i),n.stateNode=i):n.memoizedState=sV(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return H(n),null===e&&rO&&(i=n.stateNode=sD(n.type,n.pendingProps,X.current),rI=n,rP=!0,o=rS,sS(n.type)?(sN=o,rS=sT(i.firstChild)):rS=o),lk(e,n,n.pendingProps.children,t),lE(e,n),null===e&&(n.flags|=4194304),n.child;case 5:return null===e&&rO&&((o=i=rS)&&(null!==(i=function(e,n,t,r){for(;1===e.nodeType;){if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[eX])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence")||i!==t.rel||e.getAttribute("href")!==(null==t.href||""===t.href?null:t.href)||e.getAttribute("crossorigin")!==(null==t.crossOrigin?null:t.crossOrigin)||e.getAttribute("title")!==(null==t.title?null:t.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==t.src?null:t.src)||e.getAttribute("type")!==(null==t.type?null:t.type)||e.getAttribute("crossorigin")!==(null==t.crossOrigin?null:t.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==n||"hidden"!==e.type)return e;var i=null==t.name?null:""+t.name;if("hidden"===t.type&&e.getAttribute("name")===i)return e}if(null===(e=sT(e.nextSibling)))break}return null}(i,n.type,n.pendingProps,rP))?(n.stateNode=i,rI=n,rS=sT(i.firstChild),rP=!1,o=!0):o=!1),o||rE(n)),H(n),o=n.type,l=n.pendingProps,a=null!==e?e.memoizedProps:null,i=l.children,sy(o,l)?i=null:null!==a&&sy(o,a)&&(n.flags|=32),null!==n.memoizedState&&(un._currentValue=o=i9(e,n,ot,null,null,t)),lE(e,n),lk(e,n,i,t),n.child;case 6:return null===e&&rO&&((e=t=rS)&&(null!==(t=function(e,n,t){if(""===n)return null;for(;3!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t||null===(e=sT(e.nextSibling)))return null;return e}(t,n.pendingProps,rP))?(n.stateNode=t,rI=n,rS=null,e=!0):e=!1),e||rE(n)),null;case 13:return lL(e,n,t);case 4:return F(n,n.stateNode.containerInfo),i=n.pendingProps,null===e?n.child=iw(n,null,i,t):lk(e,n,i,t),n.child;case 11:return l_(e,n,n.type,n.pendingProps,t);case 7:return lk(e,n,n.pendingProps,t),n.child;case 8:case 12:return lk(e,n,n.pendingProps.children,t),n.child;case 10:return i=n.pendingProps,rJ(n,n.type,i.value),lk(e,n,i.children,t),n.child;case 9:return o=n.type._context,i=n.pendingProps.children,rW(n),i=i(o=rq(o)),n.flags|=1,lk(e,n,i,t),n.child;case 14:return lC(e,n,n.type,n.pendingProps,t);case 15:return lI(e,n,n.type,n.pendingProps,t);case 19:return lV(e,n,t);case 31:var s=e,u=n,d=t,f=u.pendingProps,h=0!=(128&u.flags);if(u.flags&=-129,null===s){if(rO){if("hidden"===f.mode)return s=lP(u,f),u.lanes=0x20000000,lO(null,s);if(iU(u),(s=rS)?null!==(s=null!==(s=sB(s,rP))&&"&"===s.data?s:null)&&(u.memoizedState={dehydrated:s,treeContext:null!==rj?{id:rb,overflow:ry}:null,retryLane:0x20000000,hydrationErrors:null},(d=rc(s)).return=u,u.child=d,rI=u,rS=null):s=null,null===s)throw rE(u);return u.lanes=0x20000000,null}return lP(u,f)}var m=s.memoizedState;if(null!==m){var p=m.dehydrated;if(iU(u),h)if(256&u.flags)u.flags&=-257,u=lB(s,u,d);else if(null!==u.memoizedState)u.child=s.child,u.flags|=128,u=null;else throw Error(c(558));else if(lw||rV(s,u,d,!1),h=0!=(d&s.childLanes),lw||h){if(null!==(f=aD)&&0!==(p=eP(f,d))&&p!==m.retryLane)throw m.retryLane=p,t4(s,p),cc(f,s,p),lv;cb(),u=lB(s,u,d)}else s=m.treeContext,rS=sT(p.nextSibling),rI=u,rO=!0,rA=null,rP=!1,null!==s&&rC(u,s),u=lP(u,f),u.flags|=4096;return u}return(s=rr(s.child,{mode:f.mode,children:f.children})).ref=u.ref,u.child=s,s.return=u,s;case 22:return lS(e,n,t,n.pendingProps);case 24:return rW(n),i=rq(r1),null===e?(null===(o=it())&&(o=aD,l=r2(),o.pooledCache=l,l.refCount++,null!==l&&(o.pooledCacheLanes|=t),o=l),n.memoizedState={parent:i,cache:o},iC(n),rJ(n,r1,o)):(0!=(e.lanes&t)&&(iI(e,n),iz(n,null,null,t),iE()),o=e.memoizedState,l=n.memoizedState,o.parent!==i?(o={parent:i,cache:i},n.memoizedState=o,0===n.lanes&&(n.memoizedState=n.updateQueue.baseState=o),rJ(n,r1,i)):(rJ(n,r1,i=l.cache),i!==o.cache&&rF(n,[r1],t,!0))),lk(e,n,n.pendingProps.children,t),n.child;case 29:throw n.pendingProps}throw Error(c(156,n.tag))}function lG(e){e.flags|=4}function lY(e,n,t,r,i){if((n=0!=(32&e.mode))&&(n=!1),n){if(e.flags|=0x1000000,(0x13ffff40&i)===i)if(e.stateNode.complete)e.flags|=8192;else if(cx())e.flags|=8192;else throw ih=ic,il}else e.flags&=-0x1000001}function lQ(e,n){if("stylesheet"!==n.type||0!=(4&n.state.loading))e.flags&=-0x1000001;else if(e.flags|=0x1000000,!s5(n))if(cx())e.flags|=8192;else throw ih=ic,il}function lZ(e,n){null!==n&&(e.flags|=4),16384&e.flags&&(n=22!==e.tag?eC():0x20000000,e.lanes|=n,aQ|=n)}function l0(e,n){if(!rO)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function l1(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var i=e.child;null!==i;)t|=i.lanes|i.childLanes,r|=0x3e00000&i.subtreeFlags,r|=0x3e00000&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)t|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function l2(e,n){switch(r_(n),n.tag){case 3:rX(r1),V();break;case 26:case 27:case 5:W(n);break;case 4:V();break;case 31:null!==n.memoizedState&&iH(n);break;case 13:iH(n);break;case 19:M(iW);break;case 10:rX(n.type);break;case 22:case 23:iH(n),iL(),null!==e&&M(ie);break;case 24:rX(r1)}}function l8(e,n){try{var t=n.updateQueue,r=null!==t?t.lastEffect:null;if(null!==r){var i=r.next;t=i;do{if((t.tag&e)===e){r=void 0;var o=t.create;t.inst.destroy=r=o()}t=t.next}while(t!==i)}}catch(e){cT(n,n.return,e)}}function l3(e,n,t){try{var r=n.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next;r=o;do{if((r.tag&e)===e){var l=r.inst,a=l.destroy;if(void 0!==a){l.destroy=void 0,i=n;try{a()}catch(e){cT(i,t,e)}}}r=r.next}while(r!==o)}}catch(e){cT(n,n.return,e)}}function l5(e){var n=e.updateQueue;if(null!==n){var t=e.stateNode;try{iN(n,t)}catch(n){cT(e,e.return,n)}}}function l4(e,n,t){t.props=lf(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(t){cT(e,n,t)}}function l6(e,n){try{var t=e.ref;if(null!==t){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof t?e.refCleanup=t(r):t.current=r}}catch(t){cT(e,n,t)}}function l7(e,n){var t=e.ref,r=e.refCleanup;if(null!==t)if("function"==typeof r)try{r()}catch(t){cT(e,n,t)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof t)try{t(null)}catch(t){cT(e,n,t)}else t.current=null}function l9(e){var n=e.type,t=e.memoizedProps,r=e.stateNode;try{switch(n){case"button":case"input":case"select":case"textarea":t.autoFocus&&r.focus();break;case"img":t.src?r.src=t.src:t.srcSet&&(r.srcset=t.srcSet)}}catch(n){cT(e,e.return,n)}}function ae(e,n,t){try{var i=e.stateNode;(function(e,n,t,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,l=null,a=null,s=null,u=null,d=null,f=null;for(p in t){var h=t[p];if(t.hasOwnProperty(p)&&null!=h)switch(p){case"checked":case"value":break;case"defaultValue":u=h;default:i.hasOwnProperty(p)||sd(e,n,p,null,i,h)}}for(var m in i){var p=i[m];if(h=t[m],i.hasOwnProperty(m)&&(null!=p||null!=h))switch(m){case"type":l=p;break;case"name":o=p;break;case"checked":d=p;break;case"defaultChecked":f=p;break;case"value":a=p;break;case"defaultValue":s=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(c(137,n));break;default:p!==h&&sd(e,n,m,p,i,h)}}nr(e,a,s,u,d,f,l,o);return;case"select":for(l in p=a=s=m=null,t)if(u=t[l],t.hasOwnProperty(l)&&null!=u)switch(l){case"value":break;case"multiple":p=u;default:i.hasOwnProperty(l)||sd(e,n,l,null,i,u)}for(o in i)if(l=i[o],u=t[o],i.hasOwnProperty(o)&&(null!=l||null!=u))switch(o){case"value":m=l;break;case"defaultValue":s=l;break;case"multiple":a=l;default:l!==u&&sd(e,n,o,l,i,u)}n=s,t=a,i=p,null!=m?nl(e,!!t,m,!1):!!i!=!!t&&(null!=n?nl(e,!!t,n,!0):nl(e,!!t,t?[]:"",!1));return;case"textarea":for(s in p=m=null,t)if(o=t[s],t.hasOwnProperty(s)&&null!=o&&!i.hasOwnProperty(s))switch(s){case"value":case"children":break;default:sd(e,n,s,null,i,o)}for(a in i)if(o=i[a],l=t[a],i.hasOwnProperty(a)&&(null!=o||null!=l))switch(a){case"value":m=o;break;case"defaultValue":p=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(c(91));break;default:o!==l&&sd(e,n,a,o,i,l)}na(e,m,p);return;case"option":for(var x in t)m=t[x],t.hasOwnProperty(x)&&null!=m&&!i.hasOwnProperty(x)&&("selected"===x?e.selected=!1:sd(e,n,x,null,i,m));for(u in i)m=i[u],p=t[u],i.hasOwnProperty(u)&&m!==p&&(null!=m||null!=p)&&("selected"===u?e.selected=m&&"function"!=typeof m&&"symbol"!==(void 0===m?"undefined":r(m)):sd(e,n,u,m,i,p));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in t)m=t[g],t.hasOwnProperty(g)&&null!=m&&!i.hasOwnProperty(g)&&sd(e,n,g,null,i,m);for(d in i)if(m=i[d],p=t[d],i.hasOwnProperty(d)&&m!==p&&(null!=m||null!=p))switch(d){case"children":case"dangerouslySetInnerHTML":if(null!=m)throw Error(c(137,n));break;default:sd(e,n,d,m,i,p)}return;default:if(nh(n)){for(var j in t)m=t[j],t.hasOwnProperty(j)&&void 0!==m&&!i.hasOwnProperty(j)&&sf(e,n,j,void 0,i,m);for(f in i)m=i[f],p=t[f],i.hasOwnProperty(f)&&m!==p&&(void 0!==m||void 0!==p)&&sf(e,n,f,m,i,p);return}}for(var b in t)m=t[b],t.hasOwnProperty(b)&&null!=m&&!i.hasOwnProperty(b)&&sd(e,n,b,null,i,m);for(h in i)m=i[h],p=t[h],i.hasOwnProperty(h)&&m!==p&&(null!=m||null!=p)&&sd(e,n,h,m,i,p)})(i,e.type,t,n),i[e$]=n}catch(n){cT(e,e.return,n)}}function an(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&sS(e.type)||4===e.tag}function at(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||an(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&sS(e.type)||2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ar(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&(27===r&&sS(e.type)&&(t=e.stateNode),null!==(e=e.child)))for(ar(e,n,t),e=e.sibling;null!==e;)ar(e,n,t),e=e.sibling}function ai(e){var n=e.stateNode,t=e.memoizedProps;try{for(var r=e.type,i=n.attributes;i.length;)n.removeAttributeNode(i[0]);sh(n,r,t),n[eR]=e,n[e$]=t}catch(n){cT(e,e.return,n)}}var ao=!1,al=!1,aa=!1,ac="function"==typeof WeakSet?WeakSet:Set,as=null;function au(e,n,t){var r=t.flags;switch(t.tag){case 0:case 11:case 15:aw(e,t),4&r&&l8(5,t);break;case 1:if(aw(e,t),4&r)if(e=t.stateNode,null===n)try{e.componentDidMount()}catch(e){cT(t,t.return,e)}else{var i=lf(t.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(i,n,e.__reactInternalSnapshotBeforeUpdate)}catch(e){cT(t,t.return,e)}}64&r&&l5(t),512&r&&l6(t,t.return);break;case 3:if(aw(e,t),64&r&&null!==(e=t.updateQueue)){if(n=null,null!==t.child)switch(t.child.tag){case 27:case 5:case 1:n=t.child.stateNode}try{iN(e,n)}catch(e){cT(t,t.return,e)}}break;case 27:null===n&&4&r&&ai(t);case 26:case 5:aw(e,t),null===n&&4&r&&l9(t),512&r&&l6(t,t.return);break;case 12:default:aw(e,t);break;case 31:aw(e,t),4&r&&ap(e,t);break;case 13:aw(e,t),4&r&&ax(e,t),64&r&&null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)&&function(e,n){var t=e.ownerDocument;if("$~"===e.data)e._reactRetry=n;else if("$?"!==e.data||"loading"!==t.readyState)n();else{var r=function(){n(),t.removeEventListener("DOMContentLoaded",r)};t.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,t=cD.bind(null,t));break;case 22:if(!(r=null!==t.memoizedState||ao)){n=null!==n&&null!==n.memoizedState||al,i=ao;var o=al;ao=r,(al=n)&&!o?function e(n,t,r){for(r=r&&0!=(8772&t.subtreeFlags),t=t.child;null!==t;){var i=t.alternate,o=n,l=t,a=l.flags;switch(l.tag){case 0:case 11:case 15:e(o,l,r),l8(4,l);break;case 1:if(e(o,l,r),"function"==typeof(o=(i=l).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){cT(i,i.return,e)}if(null!==(o=(i=l).updateQueue)){var c=i.stateNode;try{var s=o.shared.hiddenCallbacks;if(null!==s)for(o.shared.hiddenCallbacks=null,o=0;o<s.length;o++)iT(s[o],c)}catch(e){cT(i,i.return,e)}}r&&64&a&&l5(l),l6(l,l.return);break;case 27:ai(l);case 26:case 5:e(o,l,r),r&&null===i&&4&a&&l9(l),l6(l,l.return);break;case 12:default:e(o,l,r);break;case 31:e(o,l,r),r&&4&a&&ap(o,l);break;case 13:e(o,l,r),r&&4&a&&ax(o,l);break;case 22:null===l.memoizedState&&e(o,l,r),l6(l,l.return);case 30:}t=t.sibling}}(e,t,0!=(8772&t.subtreeFlags)):aw(e,t),ao=i,al=o}case 30:}}var ad=null,af=!1;function ah(e,n,t){for(t=t.child;null!==t;)am(e,n,t),t=t.sibling}function am(e,n,t){if(em&&"function"==typeof em.onCommitFiberUnmount)try{em.onCommitFiberUnmount(eh,t)}catch(e){}switch(t.tag){case 26:al||l7(t,n),ah(e,n,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&(t=t.stateNode).parentNode.removeChild(t);break;case 27:al||l7(t,n);var r=ad,i=af;sS(t.type)&&(ad=t.stateNode,af=!1),ah(e,n,t),sM(t.stateNode),ad=r,af=i;break;case 5:al||l7(t,n);case 6:if(r=ad,i=af,ad=null,ah(e,n,t),ad=r,af=i,null!==ad)if(af)try{(9===ad.nodeType?ad.body:"HTML"===ad.nodeName?ad.ownerDocument.body:ad).removeChild(t.stateNode)}catch(e){cT(t,n,e)}else try{ad.removeChild(t.stateNode)}catch(e){cT(t,n,e)}break;case 18:null!==ad&&(af?(sO(9===(e=ad).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,t.stateNode),uz(e)):sO(ad,t.stateNode));break;case 4:r=ad,i=af,ad=t.stateNode.containerInfo,af=!0,ah(e,n,t),ad=r,af=i;break;case 0:case 11:case 14:case 15:l3(2,t,n),al||l3(4,t,n),ah(e,n,t);break;case 1:al||(l7(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount&&l4(t,n,r)),ah(e,n,t);break;case 21:default:ah(e,n,t);break;case 22:al=(r=al)||null!==t.memoizedState,ah(e,n,t),al=r}}function ap(e,n){if(null===n.memoizedState&&null!==(e=n.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{uz(e)}catch(e){cT(n,n.return,e)}}}function ax(e,n){if(null===n.memoizedState&&null!==(e=n.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{uz(e)}catch(e){cT(n,n.return,e)}}function ag(e,n){var t=function(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return null===n&&(n=e.stateNode=new ac),n;case 22:return null===(n=(e=e.stateNode)._retryCache)&&(n=e._retryCache=new ac),n;default:throw Error(c(435,e.tag))}}(e);n.forEach(function(n){if(!t.has(n)){t.add(n);var r=cM.bind(null,e,n);n.then(r,r)}})}function aj(e,n){var t=n.deletions;if(null!==t)for(var r=0;r<t.length;r++){var i=t[r],o=e,l=n,a=l;e:for(;null!==a;){switch(a.tag){case 27:if(sS(a.type)){ad=a.stateNode,af=!1;break e}break;case 5:ad=a.stateNode,af=!1;break e;case 3:case 4:ad=a.stateNode.containerInfo,af=!0;break e}a=a.return}if(null===ad)throw Error(c(160));am(o,l,i),ad=null,af=!1,null!==(o=i.alternate)&&(o.return=null),i.return=null}if(13886&n.subtreeFlags)for(n=n.child;null!==n;)ay(n,e),n=n.sibling}var ab=null;function ay(e,n){var t=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:aj(n,e),av(e),4&r&&(l3(3,e,e.return),l8(3,e),l3(5,e,e.return));break;case 1:aj(n,e),av(e),512&r&&(al||null===t||l7(t,t.return)),64&r&&ao&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(t=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===t?r:t.concat(r));break;case 26:var i=ab;if(aj(n,e),av(e),512&r&&(al||null===t||l7(t,t.return)),4&r){var o=null!==t?t.memoizedState:null;if(r=e.memoizedState,null===t)if(null===r)if(null===e.stateNode){e:{r=e.type,t=e.memoizedProps,i=i.ownerDocument||i;n:switch(r){case"title":(!(o=i.getElementsByTagName("title")[0])||o[eX]||o[eR]||"http://www.w3.org/2000/svg"===o.namespaceURI||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),sh(o,r,t),o[eR]=e,eq(o),r=o;break e;case"link":var l=s8("link","href",i).get(r+(t.href||""));if(l){for(var a=0;a<l.length;a++)if((o=l[a]).getAttribute("href")===(null==t.href||""===t.href?null:t.href)&&o.getAttribute("rel")===(null==t.rel?null:t.rel)&&o.getAttribute("title")===(null==t.title?null:t.title)&&o.getAttribute("crossorigin")===(null==t.crossOrigin?null:t.crossOrigin)){l.splice(a,1);break n}}sh(o=i.createElement(r),r,t),i.head.appendChild(o);break;case"meta":if(l=s8("meta","content",i).get(r+(t.content||""))){for(a=0;a<l.length;a++)if((o=l[a]).getAttribute("content")===(null==t.content?null:""+t.content)&&o.getAttribute("name")===(null==t.name?null:t.name)&&o.getAttribute("property")===(null==t.property?null:t.property)&&o.getAttribute("http-equiv")===(null==t.httpEquiv?null:t.httpEquiv)&&o.getAttribute("charset")===(null==t.charSet?null:t.charSet)){l.splice(a,1);break n}}sh(o=i.createElement(r),r,t),i.head.appendChild(o);break;default:throw Error(c(468,r))}o[eR]=e,eq(o),r=o}e.stateNode=r}else s3(i,e.type,e.stateNode);else e.stateNode=sQ(i,r,e.memoizedProps);else o!==r?(null===o?null!==t.stateNode&&(t=t.stateNode).parentNode.removeChild(t):o.count--,null===r?s3(i,e.type,e.stateNode):sQ(i,r,e.memoizedProps)):null===r&&null!==e.stateNode&&ae(e,e.memoizedProps,t.memoizedProps)}break;case 27:aj(n,e),av(e),512&r&&(al||null===t||l7(t,t.return)),null!==t&&4&r&&ae(e,e.memoizedProps,t.memoizedProps);break;case 5:if(aj(n,e),av(e),512&r&&(al||null===t||l7(t,t.return)),32&e.flags){i=e.stateNode;try{ns(i,"")}catch(n){cT(e,e.return,n)}}4&r&&null!=e.stateNode&&(i=e.memoizedProps,ae(e,i,null!==t?t.memoizedProps:i)),1024&r&&(aa=!0);break;case 6:if(aj(n,e),av(e),4&r){if(null===e.stateNode)throw Error(c(162));r=e.memoizedProps,t=e.stateNode;try{t.nodeValue=r}catch(n){cT(e,e.return,n)}}break;case 3:if(s2=null,i=ab,ab=sJ(n.containerInfo),aj(n,e),ab=i,av(e),4&r&&null!==t&&t.memoizedState.isDehydrated)try{uz(n.containerInfo)}catch(n){cT(e,e.return,n)}aa&&(aa=!1,function e(n){if(1024&n.subtreeFlags)for(n=n.child;null!==n;){var t=n;e(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),n=n.sibling}}(e));break;case 4:r=ab,ab=sJ(e.stateNode.containerInfo),aj(n,e),av(e),ab=r;break;case 12:default:aj(n,e),av(e);break;case 31:case 19:aj(n,e),av(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,ag(e,r));break;case 13:aj(n,e),av(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==t&&null!==t.memoizedState)&&(a2=ei()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,ag(e,r));break;case 22:i=null!==e.memoizedState;var s=null!==t&&null!==t.memoizedState,u=ao,d=al;if(ao=u||i,al=d||s,aj(n,e),al=d,ao=u,av(e),8192&r)e:for((n=e.stateNode)._visibility=i?-2&n._visibility:1|n._visibility,i&&(null===t||s||ao||al||function e(n){for(n=n.child;null!==n;){var t=n;switch(t.tag){case 0:case 11:case 14:case 15:l3(4,t,t.return),e(t);break;case 1:l7(t,t.return);var r=t.stateNode;"function"==typeof r.componentWillUnmount&&l4(t,t.return,r),e(t);break;case 27:sM(t.stateNode);case 26:case 5:l7(t,t.return),e(t);break;case 22:null===t.memoizedState&&e(t);break;default:e(t)}n=n.sibling}}(e)),t=null,n=e;;){if(5===n.tag||26===n.tag){if(null===t){s=t=n;try{if(o=s.stateNode,i)l=o.style,"function"==typeof l.setProperty?l.setProperty("display","none","important"):l.display="none";else{a=s.stateNode;var f=s.memoizedProps.style,h=null!=f&&f.hasOwnProperty("display")?f.display:null;a.style.display=null==h||"boolean"==typeof h?"":(""+h).trim()}}catch(e){cT(s,s.return,e)}}}else if(6===n.tag){if(null===t){s=n;try{s.stateNode.nodeValue=i?"":s.memoizedProps}catch(e){cT(s,s.return,e)}}}else if(18===n.tag){if(null===t){s=n;try{var m=s.stateNode;i?sA(m,!0):sA(s.stateNode,!1)}catch(e){cT(s,s.return,e)}}}else if((22!==n.tag&&23!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)break e;t===n&&(t=null),n=n.return}t===n&&(t=null),n.sibling.return=n.return,n=n.sibling}4&r&&null!==(r=e.updateQueue)&&null!==(t=r.retryQueue)&&(r.retryQueue=null,ag(e,t));case 30:case 21:}}function av(e){var n=e.flags;if(2&n){try{for(var t,r=e.return;null!==r;){if(an(r)){t=r;break}r=r.return}if(null==t)throw Error(c(160));switch(t.tag){case 27:var i=t.stateNode,o=at(e);ar(e,o,i);break;case 5:var l=t.stateNode;32&t.flags&&(ns(l,""),t.flags&=-33);var a=at(e);ar(e,a,l);break;case 3:case 4:var s=t.stateNode.containerInfo,u=at(e);!function e(n,t,r){var i=n.tag;if(5===i||6===i)n=n.stateNode,t?(9===r.nodeType?r.body:"HTML"===r.nodeName?r.ownerDocument.body:r).insertBefore(n,t):((t=9===r.nodeType?r.body:"HTML"===r.nodeName?r.ownerDocument.body:r).appendChild(n),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=ng));else if(4!==i&&(27===i&&sS(n.type)&&(r=n.stateNode,t=null),null!==(n=n.child)))for(e(n,t,r),n=n.sibling;null!==n;)e(n,t,r),n=n.sibling}(e,u,s);break;default:throw Error(c(161))}}catch(n){cT(e,e.return,n)}e.flags&=-3}4096&n&&(e.flags&=-4097)}function aw(e,n){if(8772&n.subtreeFlags)for(n=n.child;null!==n;)au(e,n.alternate,n),n=n.sibling}function ak(e,n){var t=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),e=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(e=n.memoizedState.cachePool.pool),e!==t&&(null!=e&&e.refCount++,null!=t&&r8(t))}function a_(e,n){e=null,null!==n.alternate&&(e=n.alternate.memoizedState.cache),(n=n.memoizedState.cache)!==e&&(n.refCount++,null!=e&&r8(e))}function aC(e,n,t,r){if(10256&n.subtreeFlags)for(n=n.child;null!==n;)aI(e,n,t,r),n=n.sibling}function aI(e,n,t,r){var i=n.flags;switch(n.tag){case 0:case 11:case 15:aC(e,n,t,r),2048&i&&l8(9,n);break;case 1:case 31:case 13:default:aC(e,n,t,r);break;case 3:aC(e,n,t,r),2048&i&&(e=null,null!==n.alternate&&(e=n.alternate.memoizedState.cache),(n=n.memoizedState.cache)!==e&&(n.refCount++,null!=e&&r8(e)));break;case 12:if(2048&i){aC(e,n,t,r),e=n.stateNode;try{var o=n.memoizedProps,l=o.id,a=o.onPostCommit;"function"==typeof a&&a(l,null===n.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){cT(n,n.return,e)}}else aC(e,n,t,r);break;case 23:break;case 22:o=n.stateNode,l=n.alternate,null!==n.memoizedState?2&o._visibility?aC(e,n,t,r):aS(e,n):2&o._visibility?aC(e,n,t,r):(o._visibility|=2,function e(n,t,r,i,o){for(o=o&&0!=(10256&t.subtreeFlags),t=t.child;null!==t;){var l=t,a=l.flags;switch(l.tag){case 0:case 11:case 15:e(n,l,r,i,o),l8(8,l);break;case 23:break;case 22:var c=l.stateNode;null!==l.memoizedState?2&c._visibility?e(n,l,r,i,o):aS(n,l):(c._visibility|=2,e(n,l,r,i,o)),o&&2048&a&&ak(l.alternate,l);break;case 24:e(n,l,r,i,o),o&&2048&a&&a_(l.alternate,l);break;default:e(n,l,r,i,o)}t=t.sibling}}(e,n,t,r,0!=(10256&n.subtreeFlags))),2048&i&&ak(l,n);break;case 24:aC(e,n,t,r),2048&i&&a_(n.alternate,n)}}function aS(e,n){if(10256&n.subtreeFlags)for(n=n.child;null!==n;){var t=n,r=t.flags;switch(t.tag){case 22:aS(e,t),2048&r&&ak(t.alternate,t);break;case 24:aS(e,t),2048&r&&a_(t.alternate,t);break;default:aS(e,t)}n=n.sibling}}var aO=8192;function aA(e,n,t){if(e.subtreeFlags&aO)for(e=e.child;null!==e;)aP(e,n,t),e=e.sibling}function aP(e,n,t){switch(e.tag){case 26:aA(e,n,t),e.flags&aO&&null!==e.memoizedState&&function(e,n,t,i){if("stylesheet"===t.type&&("string"!=typeof i.media||!1!==matchMedia(i.media).matches)&&0==(4&t.state.loading)){if(null===t.instance){var o=sH(i.href),l=n.querySelector(sW(o));if(l){null!==(n=l._p)&&"object"===(void 0===n?"undefined":r(n))&&"function"==typeof n.then&&(e.count++,e=s6.bind(e),n.then(e,e)),t.state.loading|=4,t.instance=l,eq(l);return}l=n.ownerDocument||n,i=sq(i),(o=sL.get(o))&&s0(i,o),eq(l=l.createElement("link"));var a=l;a._p=new Promise(function(e,n){a.onload=e,a.onerror=n}),sh(l,"link",i),t.instance=l}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(t,n),(n=t.state.preload)&&0==(3&t.state.loading)&&(e.count++,t=s6.bind(e),n.addEventListener("load",t),n.addEventListener("error",t))}}(t,ab,e.memoizedState,e.memoizedProps);break;case 5:default:aA(e,n,t);break;case 3:case 4:var i=ab;ab=sJ(e.stateNode.containerInfo),aA(e,n,t),ab=i;break;case 22:null===e.memoizedState&&(null!==(i=e.alternate)&&null!==i.memoizedState?(i=aO,aO=0x1000000,aA(e,n,t),aO=i):aA(e,n,t))}}function aB(e){var n=e.alternate;if(null!==n&&null!==(e=n.child)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(null!==e)}}function aE(e){var n=e.deletions;if(0!=(16&e.flags)){if(null!==n)for(var t=0;t<n.length;t++){var r=n[t];as=r,aT(r,e)}aB(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)az(e),e=e.sibling}function az(e){switch(e.tag){case 0:case 11:case 15:aE(e),2048&e.flags&&l3(9,e,e.return);break;case 3:case 12:default:aE(e);break;case 22:var n=e.stateNode;null!==e.memoizedState&&2&n._visibility&&(null===e.return||13!==e.return.tag)?(n._visibility&=-3,function e(n){var t=n.deletions;if(0!=(16&n.flags)){if(null!==t)for(var r=0;r<t.length;r++){var i=t[r];as=i,aT(i,n)}aB(n)}for(n=n.child;null!==n;){switch((t=n).tag){case 0:case 11:case 15:l3(8,t,t.return),e(t);break;case 22:2&(r=t.stateNode)._visibility&&(r._visibility&=-3,e(t));break;default:e(t)}n=n.sibling}}(e)):aE(e)}}function aT(e,n){for(;null!==as;){var t=as;switch(t.tag){case 0:case 11:case 15:l3(8,t,n);break;case 23:case 22:if(null!==t.memoizedState&&null!==t.memoizedState.cachePool){var r=t.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:r8(t.memoizedState.cache)}if(null!==(r=t.child))r.return=t,as=r;else for(t=e;null!==as;){var i=(r=as).sibling,o=r.return;if(!function e(n){var t=n.alternate;null!==t&&(n.alternate=null,e(t)),n.child=null,n.deletions=null,n.sibling=null,5===n.tag&&null!==(t=n.stateNode)&&eU(t),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}(r),r===t){as=null;break}if(null!==i){i.return=o,as=i;break}as=o}}}var aN={getCacheForType:function(e){var n=rq(r1),t=n.data.get(e);return void 0===t&&(t=e(),n.data.set(e,t)),t},cacheSignal:function(){return rq(r1).controller.signal}},aR="function"==typeof WeakMap?WeakMap:Map,a$=0,aD=null,aM=null,aL=0,aK=0,aJ=null,aX=!1,aU=!1,aF=!1,aV=0,aH=0,aW=0,aq=0,aG=0,aY=0,aQ=0,aZ=null,a0=null,a1=!1,a2=0,a8=0,a3=1/0,a5=null,a4=null,a6=0,a7=null,a9=null,ce=0,cn=0,ct=null,cr=null,ci=0,co=null;function cl(){return 0!=(2&a$)&&0!==aL?aL&-aL:null!==z.T?cZ():ez()}function ca(){if(0===aY)if(0==(0x20000000&aL)||rO){var e=ey;0==(3932160&(ey<<=1))&&(ey=262144),aY=e}else aY=0x20000000;return null!==(e=iK.current)&&(e.flags|=32),aY}function cc(e,n,t){(e===aD&&(2===aK||9===aK)||null!==e.cancelPendingCommit)&&(cm(e,0),cd(e,aL,aY,!1)),eS(e,t),(0==(2&a$)||e!==aD)&&(e===aD&&(0==(2&a$)&&(aq|=t),4===aH&&cd(e,aL,aY,!1)),cV(e))}function cs(e,n,t){if(0!=(6&a$))throw Error(c(327));for(var r=!t&&0==(127&n)&&0==(n&e.expiredLanes)||e_(e,n),i=r?function(e,n){var t=a$;a$|=2;var r=cg(),i=cj();aD!==e||aL!==n?(a5=null,a3=ei()+500,cm(e,n)):aU=e_(e,n);e:for(;;)try{if(0!==aK&&null!==aM){n=aM;var o=aJ;n:switch(aK){case 1:aK=0,aJ=null,ck(e,n,o,1);break;case 2:case 9:if(is(o)){aK=0,aJ=null,cw(n);break}n=function(){2!==aK&&9!==aK||aD!==e||(aK=7),cV(e)},o.then(n,n);break e;case 3:aK=7;break e;case 4:aK=5;break e;case 7:is(o)?(aK=0,aJ=null,cw(n)):(aK=0,aJ=null,ck(e,n,o,7));break;case 5:var l=null;switch(aM.tag){case 26:l=aM.memoizedState;case 5:case 27:var a=aM;if(l?s5(l):a.stateNode.complete){aK=0,aJ=null;var s=a.sibling;if(null!==s)aM=s;else{var u=a.return;null!==u?(aM=u,c_(u)):aM=null}break n}}aK=0,aJ=null,ck(e,n,o,5);break;case 6:aK=0,aJ=null,ck(e,n,o,6);break;case 8:ch(),aH=6;break e;default:throw Error(c(462))}}for(;null!==aM&&!et();)cv(aM);break}catch(n){cp(e,n)}return(rK=rL=null,z.H=r,z.A=i,a$=t,null!==aM)?0:(aD=null,aL=0,t8(),aH)}(e,n):cy(e,n,!0),o=r;;){if(0===i)aU&&!r&&cd(e,n,0,!1);else{if(t=e.current.alternate,o&&!function(e){for(var n=e;;){var t=n.tag;if((0===t||11===t||15===t)&&16384&n.flags&&null!==(t=n.updateQueue)&&null!==(t=t.stores))for(var r=0;r<t.length;r++){var i=t[r],o=i.getSnapshot;i=i.value;try{if(!tI(o(),i))return!1}catch(e){return!1}}if(t=n.child,16384&n.subtreeFlags&&null!==t)t.return=n,n=t;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}(t)){i=cy(e,n,!1),o=!1;continue}if(2===i){if(o=n,e.errorRecoveryDisabledLanes&o)var l=0;else l=0!=(l=-0x20000001&e.pendingLanes)?l:0x20000000&l?0x20000000:0;if(0!==l){n=l;e:{i=aZ;var a=e.current.memoizedState.isDehydrated;if(a&&(cm(e,l).flags|=256),2!==(l=cy(e,l,!1))){if(aF&&!a){e.errorRecoveryDisabledLanes|=o,aq|=o,i=4;break e}o=a0,a0=i,null!==o&&(null===a0?a0=o:a0.push.apply(a0,o))}i=l}if(o=!1,2!==i)continue}}if(1===i){cm(e,0),cd(e,n,0,!0);break}e:{switch(r=e,o=i){case 0:case 1:throw Error(c(345));case 4:if((4194048&n)!==n)break;case 6:cd(r,n,aY,!aX);break e;case 2:a0=null;break;case 3:case 5:break;default:throw Error(c(329))}if((0x3c00000&n)===n&&10<(i=a2+300-ei())){if(cd(r,n,aY,!aX),0!==ek(r,0,!0))break e;ce=n,r.timeoutHandle=sw(cu.bind(null,r,t,a0,a5,a1,n,aY,aq,aQ,aX,o,"Throttled",-0,0),i);break e}cu(r,t,a0,a5,a1,n,aY,aq,aQ,aX,o,null,-0,0)}}break}cV(e)}function cu(e,n,t,r,i,o,l,a,c,s,u,d,f,h){if(e.timeoutHandle=-1,8192&(d=n.subtreeFlags)||0x1002000==(0x1002000&d)){aP(n,o,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ng});var m,p,x=(0x3c00000&o)===o?a2-ei():(4194048&o)===o?a8-ei():0;if(null!==(m=d,p=x,m.stylesheets&&0===m.count&&s9(m,m.stylesheets),x=0<m.count||0<m.imgCount?function(e){var n=setTimeout(function(){if(m.stylesheets&&s9(m,m.stylesheets),m.unsuspend){var e=m.unsuspend;m.unsuspend=null,e()}},6e4+p);0<m.imgBytes&&0===s4&&(s4=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,n=0,t=performance.getEntriesByType("resource"),r=0;r<t.length;r++){var i=t[r],o=i.transferSize,l=i.initiatorType,a=i.duration;if(o&&a&&sm(l)){for(l=0,a=i.responseEnd,r+=1;r<t.length;r++){var c=t[r],s=c.startTime;if(s>a)break;var u=c.transferSize,d=c.initiatorType;u&&sm(d)&&(l+=u*((c=c.responseEnd)<a?1:(a-s)/(c-s)))}if(--r,n+=8*(o+l)/(i.duration/1e3),10<++e)break}}if(0<e)return n/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var t=setTimeout(function(){if(m.waitingForImages=!1,0===m.count&&(m.stylesheets&&s9(m,m.stylesheets),m.unsuspend)){var e=m.unsuspend;m.unsuspend=null,e()}},(m.imgBytes>s4?50:800)+p);return m.unsuspend=e,function(){m.unsuspend=null,clearTimeout(n),clearTimeout(t)}}:null)){ce=o,e.cancelPendingCommit=x(cI.bind(null,e,n,o,t,r,i,l,a,c,u,d,null,f,h)),cd(e,o,l,!s);return}}cI(e,n,o,t,r,i,l,a,c)}function cd(e,n,t,r){n&=~aG,n&=~aq,e.suspendedLanes|=n,e.pingedLanes&=~n,r&&(e.warmLanes|=n),r=e.expirationTimes;for(var i=n;0<i;){var o=31-ex(i),l=1<<o;r[o]=-1,i&=~l}0!==t&&eO(e,t,n)}function cf(){return 0!=(6&a$)||(cH(0,!1),!1)}function ch(){if(null!==aM){if(0===aK)var e=aM.return;else e=aM,rK=rL=null,oo(e),ix=null,ig=0,e=aM;for(;null!==e;)l2(e.alternate,e),e=e.return;aM=null}}function cm(e,n){var t=e.timeoutHandle;-1!==t&&(e.timeoutHandle=-1,sk(t)),null!==(t=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,t()),ce=0,ch(),aD=e,aM=t=rr(e.current,null),aL=n,aK=0,aJ=null,aX=!1,aU=e_(e,n),aF=!1,aQ=aY=aG=aq=aW=aH=0,a0=aZ=null,a1=!1,0!=(8&n)&&(n|=32&n);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=n;0<r;){var i=31-ex(r),o=1<<i;n|=e[i],r&=~o}return aV=n,t8(),t}function cp(e,n){iY=null,z.H=li,n===io||n===ia?(n=im(),aK=3):n===il?(n=im(),aK=4):aK=n===lv?8:null!==n&&"object"===(void 0===n?"undefined":r(n))&&"function"==typeof n.then?6:1,aJ=n,null===aM&&(aH=1,lx(e,rd(n,e.current)))}function cx(){var e=iK.current;return null===e||((4194048&aL)===aL?null===iJ:((0x3c00000&aL)===aL||0!=(0x20000000&aL))&&e===iJ)}function cg(){var e=z.H;return z.H=li,null===e?li:e}function cj(){var e=z.A;return z.A=aN,e}function cb(){aH=4,aX||(4194048&aL)!==aL&&null!==iK.current||(aU=!0),0==(0x7ffffff&aW)&&0==(0x7ffffff&aq)||null===aD||cd(aD,aL,aY,!1)}function cy(e,n,t){var r=a$;a$|=2;var i=cg(),o=cj();(aD!==e||aL!==n)&&(a5=null,cm(e,n)),n=!1;var l=aH;e:for(;;)try{if(0!==aK&&null!==aM){var a=aM,c=aJ;switch(aK){case 8:ch(),l=6;break e;case 3:case 2:case 9:case 6:null===iK.current&&(n=!0);var s=aK;if(aK=0,aJ=null,ck(e,a,c,s),t&&aU){l=0;break e}break;default:s=aK,aK=0,aJ=null,ck(e,a,c,s)}}(function(){for(;null!==aM;)cv(aM)})(),l=aH;break}catch(n){cp(e,n)}return n&&e.shellSuspendCounter++,rK=rL=null,a$=r,z.H=i,z.A=o,null===aM&&(aD=null,aL=0,t8()),l}function cv(e){var n=lq(e.alternate,e,aV);e.memoizedProps=e.pendingProps,null===n?c_(e):aM=n}function cw(e){var n=e,t=n.alternate;switch(n.tag){case 15:case 0:n=lT(t,n,n.pendingProps,n.type,void 0,aL);break;case 11:n=lT(t,n,n.pendingProps,n.type.render,n.ref,aL);break;case 5:oo(n);default:l2(t,n),n=lq(t,n=aM=ri(n,aV),aV)}e.memoizedProps=e.pendingProps,null===n?c_(e):aM=n}function ck(e,n,t,i){rK=rL=null,oo(n),ix=null,ig=0;var o=n.return;try{if(function(e,n,t,i,o){if(t.flags|=32768,null!==i&&"object"===(void 0===i?"undefined":r(i))&&"function"==typeof i.then){if(null!==(n=t.alternate)&&rV(n,t,o,!0),null!==(t=iK.current)){switch(t.tag){case 31:case 13:return null===iJ?cb():null===t.alternate&&0===aH&&(aH=3),t.flags&=-257,t.flags|=65536,t.lanes=o,i===ic?t.flags|=16384:(null===(n=t.updateQueue)?t.updateQueue=new Set([i]):n.add(i),cN(e,i,o)),!1;case 22:return t.flags|=65536,i===ic?t.flags|=16384:(null===(n=t.updateQueue)?(n={transitions:null,markerInstances:null,retryQueue:new Set([i])},t.updateQueue=n):null===(t=n.retryQueue)?n.retryQueue=new Set([i]):t.add(i),cN(e,i,o)),!1}throw Error(c(435,t.tag))}return cN(e,i,o),cb(),!1}if(rO)return null!==(n=iK.current)?(0==(65536&n.flags)&&(n.flags|=256),n.flags|=65536,n.lanes=o,i!==rB&&rD(rd(e=Error(c(422),{cause:i}),t))):(i!==rB&&rD(rd(n=Error(c(423),{cause:i}),t)),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=rd(i,t),o=lj(e.stateNode,i,o),iP(e,o),4!==aH&&(aH=2)),!1;var l=Error(c(520),{cause:i});if(l=rd(l,t),null===aZ?aZ=[l]:aZ.push(l),4!==aH&&(aH=2),null===n)return!0;i=rd(i,t),t=n;do{switch(t.tag){case 3:return t.flags|=65536,e=o&-o,t.lanes|=e,e=lj(t.stateNode,i,e),iP(t,e),!1;case 1:if(n=t.type,l=t.stateNode,0==(128&t.flags)&&("function"==typeof n.getDerivedStateFromError||null!==l&&"function"==typeof l.componentDidCatch&&(null===a4||!a4.has(l))))return t.flags|=65536,o&=-o,t.lanes|=o,ly(o=lb(o),e,t,i),iP(t,o),!1}t=t.return}while(null!==t);return!1}(e,o,n,t,aL)){aH=1,lx(e,rd(t,e.current)),aM=null;return}}catch(n){if(null!==o)throw aM=o,n;aH=1,lx(e,rd(t,e.current)),aM=null;return}32768&n.flags?(rO||1===i?e=!0:aU||0!=(0x20000000&aL)?e=!1:(aX=e=!0,(2===i||9===i||3===i||6===i)&&null!==(i=iK.current)&&13===i.tag&&(i.flags|=16384)),cC(n,e)):c_(n)}function c_(e){var n=e;do{if(0!=(32768&n.flags))return void cC(n,aX);e=n.return;var t=function(e,n,t){var r=n.pendingProps;switch(r_(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return l1(n),null;case 3:return t=n.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),rX(r1),V(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),(null===e||null===e.child)&&(rN(n)?lG(n):null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,r$())),l1(n),null;case 26:var i=n.type,o=n.memoizedState;return null===e?(lG(n),null!==o?(l1(n),lQ(n,o)):(l1(n),lY(n,i,null,r,t))):o?o!==e.memoizedState?(lG(n),l1(n),lQ(n,o)):(l1(n),n.flags&=-0x1000001):((e=e.memoizedProps)!==r&&lG(n),l1(n),lY(n,i,e,r,t)),null;case 27:if(W(n),t=X.current,i=n.type,null!==e&&null!=n.stateNode)e.memoizedProps!==r&&lG(n);else{if(!r){if(null===n.stateNode)throw Error(c(166));return l1(n),null}e=K.current,rN(n)?rz(n,e):(n.stateNode=e=sD(i,r,t),lG(n))}return l1(n),null;case 5:if(W(n),i=n.type,null!==e&&null!=n.stateNode)e.memoizedProps!==r&&lG(n);else{if(!r){if(null===n.stateNode)throw Error(c(166));return l1(n),null}if(o=K.current,rN(n))rz(n,o);else{var l=sg(X.current);switch(o){case 1:o=l.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=l.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=l.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=l.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(o=l.createElement("div")).innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o="string"==typeof r.is?l.createElement(i,{is:r.is}):l.createElement(i)}}o[eR]=n,o[e$]=r;e:for(l=n.child;null!==l;){if(5===l.tag||6===l.tag)o.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(n.stateNode=o,sh(o,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break;case"img":r=!0;break;default:r=!1}r&&lG(n)}}return l1(n),lY(n,n.type,null===e?null:e.memoizedProps,n.pendingProps,t),null;case 6:if(e&&null!=n.stateNode)e.memoizedProps!==r&&lG(n);else{if("string"!=typeof r&&null===n.stateNode)throw Error(c(166));if(e=X.current,rN(n)){if(e=n.stateNode,t=n.memoizedProps,r=null,null!==(i=rI))switch(i.tag){case 27:case 5:r=i.memoizedProps}e[eR]=n,(e=!!(e.nodeValue===t||null!==r&&!0===r.suppressHydrationWarning||su(e.nodeValue,t)))||rE(n,!0)}else(e=sg(e).createTextNode(r))[eR]=n,n.stateNode=e}return l1(n),null;case 31:if(t=n.memoizedState,null===e||null!==e.memoizedState){if(r=rN(n),null!==t){if(null===e){if(!r)throw Error(c(318));if(!(e=null!==(e=n.memoizedState)?e.dehydrated:null))throw Error(c(557));e[eR]=n}else rR(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;l1(n),e=!1}else t=r$(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=t),e=!0;if(!e){if(256&n.flags)return iH(n),n;return iH(n),null}if(0!=(128&n.flags))throw Error(c(558))}return l1(n),null;case 13:if(r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=rN(n),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(c(318));if(!(i=null!==(i=n.memoizedState)?i.dehydrated:null))throw Error(c(317));i[eR]=n}else rR(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;l1(n),i=!1}else i=r$(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i){if(256&n.flags)return iH(n),n;return iH(n),null}}if(iH(n),0!=(128&n.flags))return n.lanes=t,n;return t=null!==r,e=null!==e&&null!==e.memoizedState,t&&(r=n.child,i=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(i=r.alternate.memoizedState.cachePool.pool),o=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),t!==e&&t&&(n.child.flags|=8192),lZ(n,n.updateQueue),l1(n),null;case 4:return V(),null===e&&se(n.stateNode.containerInfo),l1(n),null;case 10:return rX(n.type),l1(n),null;case 19:if(M(iW),null===(r=n.memoizedState))return l1(n),null;if(i=0!=(128&n.flags),null===(o=r.rendering))if(i)l0(r,!1);else{if(0!==aH||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(o=iq(e))){for(n.flags|=128,l0(r,!1),n.updateQueue=e=o.updateQueue,lZ(n,e),n.subtreeFlags=0,e=t,t=n.child;null!==t;)ri(t,e),t=t.sibling;return L(iW,1&iW.current|2),rO&&rv(n,r.treeForkCount),n.child}e=e.sibling}null!==r.tail&&ei()>a3&&(n.flags|=128,i=!0,l0(r,!1),n.lanes=4194304)}else{if(!i)if(null!==(e=iq(o))){if(n.flags|=128,i=!0,n.updateQueue=e=e.updateQueue,lZ(n,e),l0(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!rO)return l1(n),null}else 2*ei()-r.renderingStartTime>a3&&0x20000000!==t&&(n.flags|=128,i=!0,l0(r,!1),n.lanes=4194304);r.isBackwards?(o.sibling=n.child,n.child=o):(null!==(e=r.last)?e.sibling=o:n.child=o,r.last=o)}if(null!==r.tail)return e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ei(),e.sibling=null,t=iW.current,L(iW,i?1&t|2:1&t),rO&&rv(n,r.treeForkCount),e;return l1(n),null;case 22:case 23:return iH(n),iL(),r=null!==n.memoizedState,null!==e?null!==e.memoizedState!==r&&(n.flags|=8192):r&&(n.flags|=8192),r?0!=(0x20000000&t)&&0==(128&n.flags)&&(l1(n),6&n.subtreeFlags&&(n.flags|=8192)):l1(n),null!==(t=n.updateQueue)&&lZ(n,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),r=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(r=n.memoizedState.cachePool.pool),r!==t&&(n.flags|=2048),null!==e&&M(ie),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),n.memoizedState.cache!==t&&(n.flags|=2048),rX(r1),l1(n),null;case 25:case 30:return null}throw Error(c(156,n.tag))}(n.alternate,n,aV);if(null!==t){aM=t;return}if(null!==(n=n.sibling)){aM=n;return}aM=n=e}while(null!==n);0===aH&&(aH=5)}function cC(e,n){do{var t=function(e,n){switch(r_(n),n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return rX(r1),V(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 26:case 27:case 5:return W(n),null;case 31:if(null!==n.memoizedState){if(iH(n),null===n.alternate)throw Error(c(340));rR()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 13:if(iH(n),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(c(340));rR()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return M(iW),null;case 4:return V(),null;case 10:return rX(n.type),null;case 22:case 23:return iH(n),iL(),null!==e&&M(ie),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 24:return rX(r1),null;default:return null}}(e.alternate,e);if(null!==t){t.flags&=32767,aM=t;return}if(null!==(t=e.return)&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!n&&null!==(e=e.sibling)){aM=e;return}aM=e=t}while(null!==e);aH=6,aM=null}function cI(e,n,t,r,i,o,l,a,s){e.cancelPendingCommit=null;do cB();while(0!==a6);if(0!=(6&a$))throw Error(c(327));if(null!==n){if(n===e.current)throw Error(c(177));if(!function(e,n,t,r,i,o){var l=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var a=e.entanglements,c=e.expirationTimes,s=e.hiddenUpdates;for(t=l&~t;0<t;){var u=31-ex(t),d=1<<u;a[u]=0,c[u]=-1;var f=s[u];if(null!==f)for(s[u]=null,u=0;u<f.length;u++){var h=f[u];null!==h&&(h.lane&=-0x20000001)}t&=~d}0!==r&&eO(e,r,0),0!==o&&0===i&&0!==e.tag&&(e.suspendedLanes|=o&~(l&~n))}(e,t,o=n.lanes|n.childLanes|t2,l,a,s),e===aD&&(aM=aD=null,aL=0),a9=n,a7=e,ce=t,cn=o,ct=i,cr=r,0!=(10256&n.subtreeFlags)||0!=(10256&n.flags)?(e.callbackNode=null,e.callbackPriority=0,ee(ec,function(){return cE(),null})):(e.callbackNode=null,e.callbackPriority=0),r=0!=(13878&n.flags),0!=(13878&n.subtreeFlags)||r){r=z.T,z.T=null,i=T.p,T.p=2,l=a$,a$|=4;try{!function(e,n){if(e=e.containerInfo,sp=uc,tB(e=tP(e))){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(r&&0!==r.rangeCount){t=r.anchorNode;var i,o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{t.nodeType,l.nodeType}catch(e){t=null;break e}var a=0,s=-1,u=-1,d=0,f=0,h=e,m=null;n:for(;;){for(;h!==t||0!==o&&3!==h.nodeType||(s=a+o),h!==l||0!==r&&3!==h.nodeType||(u=a+r),3===h.nodeType&&(a+=h.nodeValue.length),null!==(i=h.firstChild);)m=h,h=i;for(;;){if(h===e)break n;if(m===t&&++d===o&&(s=a),m===l&&++f===r&&(u=a),null!==(i=h.nextSibling))break;m=(h=m).parentNode}h=i}t=-1===s||-1===u?null:{start:s,end:u}}else t=null}t=t||{start:0,end:0}}else t=null;for(sx={focusedElem:e,selectionRange:t},uc=!1,as=n;null!==as;)if(e=(n=as).child,0!=(1028&n.subtreeFlags)&&null!==e)e.return=n,as=e;else for(;null!==as;){switch(l=(n=as).alternate,e=n.flags,n.tag){case 0:if(0!=(4&e)&&null!==(e=null!==(e=n.updateQueue)?e.events:null))for(t=0;t<e.length;t++)(o=e[t]).ref.impl=o.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!=(1024&e)&&null!==l){e=void 0,t=n,o=l.memoizedProps,l=l.memoizedState,r=t.stateNode;try{var p=lf(t.type,o);e=r.getSnapshotBeforeUpdate(p,l),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){cT(t,t.return,e)}}break;case 3:if(0!=(1024&e)){if(9===(t=(e=n.stateNode.containerInfo).nodeType))sP(e);else if(1===t)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sP(e);break;default:e.textContent=""}}break;default:if(0!=(1024&e))throw Error(c(163))}if(null!==(e=n.sibling)){e.return=n.return,as=e;break}as=n.return}}(e,n,t)}finally{a$=l,T.p=i,z.T=r}}a6=1,cS(),cO(),cA()}}function cS(){if(1===a6){a6=0;var e=a7,n=a9,t=0!=(13878&n.flags);if(0!=(13878&n.subtreeFlags)||t){t=z.T,z.T=null;var r=T.p;T.p=2;var i=a$;a$|=4;try{ay(n,e);var o=sx,l=tP(e.containerInfo),a=o.focusedElem,c=o.selectionRange;if(l!==a&&a&&a.ownerDocument&&function e(n,t){return!!n&&!!t&&(n===t||(!n||3!==n.nodeType)&&(t&&3===t.nodeType?e(n,t.parentNode):"contains"in n?n.contains(t):!!n.compareDocumentPosition&&!!(16&n.compareDocumentPosition(t))))}(a.ownerDocument.documentElement,a)){if(null!==c&&tB(a)){var s=c.start,u=c.end;if(void 0===u&&(u=s),"selectionStart"in a)a.selectionStart=s,a.selectionEnd=Math.min(u,a.value.length);else{var d=a.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var h=f.getSelection(),m=a.textContent.length,p=Math.min(c.start,m),x=void 0===c.end?p:Math.min(c.end,m);!h.extend&&p>x&&(l=x,x=p,p=l);var g=tA(a,p),j=tA(a,x);if(g&&j&&(1!==h.rangeCount||h.anchorNode!==g.node||h.anchorOffset!==g.offset||h.focusNode!==j.node||h.focusOffset!==j.offset)){var b=d.createRange();b.setStart(g.node,g.offset),h.removeAllRanges(),p>x?(h.addRange(b),h.extend(j.node,j.offset)):(b.setEnd(j.node,j.offset),h.addRange(b))}}}}for(d=[],h=a;h=h.parentNode;)1===h.nodeType&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for("function"==typeof a.focus&&a.focus(),a=0;a<d.length;a++){var y=d[a];y.element.scrollLeft=y.left,y.element.scrollTop=y.top}}uc=!!sp,sx=sp=null}finally{a$=i,T.p=r,z.T=t}}e.current=n,a6=2}}function cO(){if(2===a6){a6=0;var e=a7,n=a9,t=0!=(8772&n.flags);if(0!=(8772&n.subtreeFlags)||t){t=z.T,z.T=null;var r=T.p;T.p=2;var i=a$;a$|=4;try{au(e,n.alternate,n)}finally{a$=i,T.p=r,z.T=t}}a6=3}}function cA(){if(4===a6||3===a6){a6=0,er();var e=a7,n=a9,t=ce,r=cr;0!=(10256&n.subtreeFlags)||0!=(10256&n.flags)?a6=5:(a6=0,a9=a7=null,cP(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(a4=null),eE(t),n=n.stateNode,em&&"function"==typeof em.onCommitFiberRoot)try{em.onCommitFiberRoot(eh,n,void 0,128==(128&n.current.flags))}catch(e){}if(null!==r){n=z.T,i=T.p,T.p=2,z.T=null;try{for(var o=e.onRecoverableError,l=0;l<r.length;l++){var a=r[l];o(a.value,{componentStack:a.stack})}}finally{z.T=n,T.p=i}}0!=(3&ce)&&cB(),cV(e),i=e.pendingLanes,0!=(261930&t)&&0!=(42&i)?e===co?ci++:(ci=0,co=e):ci=0,cH(0,!1)}}function cP(e,n){0==(e.pooledCacheLanes&=n)&&null!=(n=e.pooledCache)&&(e.pooledCache=null,r8(n))}function cB(){return cS(),cO(),cA(),cE()}function cE(){if(5!==a6)return!1;var e=a7,n=cn;cn=0;var t=eE(ce),r=z.T,i=T.p;try{T.p=32>t?32:t,z.T=null,t=ct,ct=null;var o=a7,l=ce;if(a6=0,a9=a7=null,ce=0,0!=(6&a$))throw Error(c(331));var a=a$;if(a$|=4,az(o.current),aI(o,o.current,l,t),a$=a,cH(0,!1),em&&"function"==typeof em.onPostCommitFiberRoot)try{em.onPostCommitFiberRoot(eh,o)}catch(e){}return!0}finally{T.p=i,z.T=r,cP(e,n)}}function cz(e,n,t){n=rd(t,n),n=lj(e.stateNode,n,2),null!==(e=iO(e,n,2))&&(eS(e,2),cV(e))}function cT(e,n,t){if(3===e.tag)cz(e,e,t);else for(;null!==n;){if(3===n.tag){cz(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===a4||!a4.has(r))){e=rd(t,e),null!==(r=iO(n,t=lb(2),2))&&(ly(t,r,n,e),eS(r,2),cV(r));break}}n=n.return}}function cN(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new aR;var i=new Set;r.set(n,i)}else void 0===(i=r.get(n))&&(i=new Set,r.set(n,i));i.has(t)||(aF=!0,i.add(t),e=cR.bind(null,e,n,t),n.then(e,e))}function cR(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,aD===e&&(aL&t)===t&&(4===aH||3===aH&&(0x3c00000&aL)===aL&&300>ei()-a2?0==(2&a$)&&cm(e,0):aG|=t,aQ===aL&&(aQ=0)),cV(e)}function c$(e,n){0===n&&(n=eC()),null!==(e=t4(e,n))&&(eS(e,n),cV(e))}function cD(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),c$(e,t)}function cM(e,n){var t=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(t=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(c(314))}null!==r&&r.delete(n),c$(e,t)}var cL=null,cK=null,cJ=!1,cX=!1,cU=!1,cF=0;function cV(e){e!==cK&&null===e.next&&(null===cK?cL=cK=e:cK=cK.next=e),cX=!0,cJ||(cJ=!0,sC(function(){0!=(6&a$)?ee(el,cW):cq()}))}function cH(e,n){if(!cU&&cX){cU=!0;do for(var t=!1,r=cL;null!==r;){if(!n)if(0!==e){var i=r.pendingLanes;if(0===i)var o=0;else{var l=r.suspendedLanes,a=r.pingedLanes;o=0xc000095&(o=(1<<31-ex(42|e)+1)-1&(i&~(l&~a)))?0xc000095&o|1:o?2|o:0}0!==o&&(t=!0,cQ(r,o))}else o=aL,0==(3&(o=ek(r,r===aD?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||e_(r,o)||(t=!0,cQ(r,o));r=r.next}while(t);cU=!1}}function cW(){cq()}function cq(){cX=cJ=!1;var e,n=0;0===cF||((e=window.event)&&"popstate"===e.type?e===sv||(sv=e,0):(sv=null,1))||(n=cF);for(var t=ei(),r=null,i=cL;null!==i;){var o=i.next,l=cG(i,t);0===l?(i.next=null,null===r?cL=o:r.next=o,null===o&&(cK=r)):(r=i,(0!==n||0!=(3&l))&&(cX=!0)),i=o}0!==a6&&5!==a6||cH(n,!1),0!==cF&&(cF=0)}function cG(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=-0x3c00001&e.pendingLanes;0<o;){var l=31-ex(o),a=1<<l,c=i[l];-1===c?(0==(a&t)||0!=(a&r))&&(i[l]=function(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;default:return -1}}(a,n)):c<=n&&(e.expiredLanes|=a),o&=~a}if(n=aD,t=aL,t=ek(e,e===n?t:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===t||e===n&&(2===aK||9===aK)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&en(r),e.callbackNode=null,e.callbackPriority=0;if(0==(3&t)||e_(e,t)){if((n=t&-t)===e.callbackPriority)return n;switch(null!==r&&en(r),eE(t)){case 2:case 8:t=ea;break;case 32:default:t=ec;break;case 0x10000000:t=eu}return t=ee(t,r=cY.bind(null,e)),e.callbackPriority=n,e.callbackNode=t,n}return null!==r&&null!==r&&en(r),e.callbackPriority=2,e.callbackNode=null,2}function cY(e,n){if(0!==a6&&5!==a6)return e.callbackNode=null,e.callbackPriority=0,null;var t=e.callbackNode;if(cB()&&e.callbackNode!==t)return null;var r=aL;return 0===(r=ek(e,e===aD?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(cs(e,r,n),cG(e,ei()),null!=e.callbackNode&&e.callbackNode===t?cY.bind(null,e):null)}function cQ(e,n){if(cB())return null;cs(e,n,!0)}function cZ(){if(0===cF){var e=r4;0===e&&(e=eb,0==(261888&(eb<<=1))&&(eb=256)),cF=e}return cF}function c0(e){return null==e||"symbol"===(void 0===e?"undefined":r(e))||"boolean"==typeof e?null:"function"==typeof e?e:nx(""+e)}function c1(e,n){var t=n.ownerDocument.createElement("input");return t.name=n.name,t.value=n.value,e.id&&t.setAttribute("form",e.id),n.parentNode.insertBefore(t,n),e=new FormData(e),t.parentNode.removeChild(t),e}for(var c2=0;c2<tY.length;c2++){var c8=tY[c2];tQ(c8.toLowerCase(),"on"+(c8[0].toUpperCase()+c8.slice(1)))}tQ(tX,"onAnimationEnd"),tQ(tU,"onAnimationIteration"),tQ(tF,"onAnimationStart"),tQ("dblclick","onDoubleClick"),tQ("focusin","onFocus"),tQ("focusout","onBlur"),tQ(tV,"onTransitionRun"),tQ(tH,"onTransitionStart"),tQ(tW,"onTransitionCancel"),tQ(tq,"onTransitionEnd"),eZ("onMouseEnter",["mouseout","mouseover"]),eZ("onMouseLeave",["mouseout","mouseover"]),eZ("onPointerEnter",["pointerout","pointerover"]),eZ("onPointerLeave",["pointerout","pointerover"]),eQ("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),eQ("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),eQ("onBeforeInput",["compositionend","keypress","textInput","paste"]),eQ("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),eQ("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),eQ("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var c3="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),c5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(c3));function c4(e,n){n=0!=(4&n);for(var t=0;t<e.length;t++){var r=e[t],i=r.event;r=r.listeners;e:{var o=void 0;if(n)for(var l=r.length-1;0<=l;l--){var a=r[l],c=a.instance,s=a.currentTarget;if(a=a.listener,c!==o&&i.isPropagationStopped())break e;o=a,i.currentTarget=s;try{o(i)}catch(e){tZ(e)}i.currentTarget=null,o=c}else for(l=0;l<r.length;l++){if(c=(a=r[l]).instance,s=a.currentTarget,a=a.listener,c!==o&&i.isPropagationStopped())break e;o=a,i.currentTarget=s;try{o(i)}catch(e){tZ(e)}i.currentTarget=null,o=c}}}}function c6(e,n){var t=n[eM];void 0===t&&(t=n[eM]=new Set);var r=e+"__bubble";t.has(r)||(sn(n,e,2,!1),t.add(r))}function c7(e,n,t){var r=0;n&&(r|=4),sn(t,e,r,n)}var c9="_reactListening"+Math.random().toString(36).slice(2);function se(e){if(!e[c9]){e[c9]=!0,eG.forEach(function(n){"selectionchange"!==n&&(c5.has(n)||c7(n,!1,e),c7(n,!0,e))});var n=9===e.nodeType?e:e.ownerDocument;null===n||n[c9]||(n[c9]=!0,c7("selectionchange",!1,n))}}function sn(e,n,t,r){switch(up(n)){case 2:var i=us;break;case 8:i=uu;break;default:i=ud}t=i.bind(null,n,t,e),i=void 0,nS&&("touchstart"===n||"touchmove"===n||"wheel"===n)&&(i=!0),r?void 0!==i?e.addEventListener(n,t,{capture:!0,passive:i}):e.addEventListener(n,t,!0):void 0!==i?e.addEventListener(n,t,{passive:i}):e.addEventListener(n,t,!1)}function st(e,n,t,r,i){var o=r;if(0==(1&n)&&0==(2&n)&&null!==r)e:for(;;){if(null===r)return;var l=r.tag;if(3===l||4===l){var a=r.stateNode.containerInfo;if(a===i)break;if(4===l)for(l=r.return;null!==l;){var c=l.tag;if((3===c||4===c)&&l.stateNode.containerInfo===i)return;l=l.return}for(;null!==a;){if(null===(l=eF(a)))return;if(5===(c=l.tag)||6===c||26===c||27===c){r=o=l;continue e}a=a.parentNode}}r=r.return}n_(function(){var r=o,i=nb(t),l=[];e:{var a=tG.get(e);if(void 0!==a){var c=nX,u=e;switch(e){case"keypress":if(0===nz(t))break e;case"keydown":case"keyup":c=n3;break;case"focusin":u="focus",c=nq;break;case"focusout":u="blur",c=nq;break;case"beforeblur":case"afterblur":c=nq;break;case"click":if(2===t.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=nH;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=nW;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=n4;break;case tX:case tU:case tF:c=nG;break;case tq:c=n6;break;case"scroll":case"scrollend":c=nF;break;case"wheel":c=n7;break;case"copy":case"cut":case"paste":c=nY;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=n5;break;case"toggle":case"beforetoggle":c=n9}var d=0!=(4&n),f=!d&&("scroll"===e||"scrollend"===e),h=d?null!==a?a+"Capture":null:a;d=[];for(var m,p=r;null!==p;){var x=p;if(m=x.stateNode,5!==(x=x.tag)&&26!==x&&27!==x||null===m||null===h||null!=(x=nC(p,h))&&d.push(sr(p,x,m)),f)break;p=p.return}0<d.length&&(a=new c(a,u,null,t,i),l.push({event:a,listeners:d}))}}if(0==(7&n)){if((a="mouseover"===e||"pointerover"===e,c="mouseout"===e||"pointerout"===e,!(a&&t!==nj&&(u=t.relatedTarget||t.fromElement)&&(eF(u)||u[eD])))&&(c||a)&&(a=i.window===i?i:(a=i.ownerDocument)?a.defaultView||a.parentWindow:window,c?(u=t.relatedTarget||t.toElement,c=r,null!==(u=u?eF(u):null)&&(f=s(u),d=u.tag,u!==f||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=nH,x="onMouseLeave",h="onMouseEnter",p="mouse",("pointerout"===e||"pointerover"===e)&&(d=n5,x="onPointerLeave",h="onPointerEnter",p="pointer"),f=null==c?a:eH(c),m=null==u?a:eH(u),(a=new d(x,p+"leave",c,t,i)).target=f,a.relatedTarget=m,x=null,eF(i)===r&&((d=new d(h,p+"enter",u,t,i)).target=m,d.relatedTarget=f,x=d),f=x,c&&u)n:{for(d=so,h=c,p=u,m=0,x=h;x;x=d(x))m++;x=0;for(var g,j=p;j;j=d(j))x++;for(;0<m-x;)h=d(h),m--;for(;0<x-m;)p=d(p),x--;for(;m--;){if(h===p||null!==p&&h===p.alternate){d=h;break n}h=d(h),p=d(p)}d=null}else d=null;null!==c&&sl(l,a,c,d,!1),null!==u&&null!==f&&sl(l,f,u,d,!0)}e:{if("select"===(c=(a=r?eH(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===c&&"file"===a.type)var b=tx;else if(tu(a))if(tg)b=tC;else{b=tk;var y=tw}else(c=a.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)?b=t_:r&&nh(r.elementType)&&(b=tx);if(b&&(b=b(e,r))){td(l,b,t,i);break e}y&&y(e,a,r),"focusout"===e&&r&&"number"===a.type&&null!=r.memoizedProps.value&&no(a,"number",a.value)}switch(y=r?eH(r):window,e){case"focusin":(tu(y)||"true"===y.contentEditable)&&(tz=y,tT=r,tN=null);break;case"focusout":tN=tT=tz=null;break;case"mousedown":tR=!0;break;case"contextmenu":case"mouseup":case"dragend":tR=!1,t$(l,t,i);break;case"selectionchange":if(tE)break;case"keydown":case"keyup":t$(l,t,i)}if(tn)n:{switch(e){case"compositionstart":var v="onCompositionStart";break n;case"compositionend":v="onCompositionEnd";break n;case"compositionupdate":v="onCompositionUpdate";break n}v=void 0}else tc?tl(e,t)&&(v="onCompositionEnd"):"keydown"===e&&229===t.keyCode&&(v="onCompositionStart");v&&(ti&&"ko"!==t.locale&&(tc||"onCompositionStart"!==v?"onCompositionEnd"===v&&tc&&(g=nE()):(nP="value"in(nA=i)?nA.value:nA.textContent,tc=!0)),0<(y=si(r,v)).length&&(v=new nQ(v,e,null,t,i),l.push({event:v,listeners:y}),g?v.data=g:null!==(g=ta(t))&&(v.data=g))),(g=tr?function(e,n){switch(e){case"compositionend":return ta(n);case"keypress":if(32!==n.which)return null;return to=!0," ";case"textInput":return" "===(e=n.data)&&to?null:e;default:return null}}(e,t):function(e,n){if(tc)return"compositionend"===e||!tn&&tl(e,n)?(e=nE(),nB=nP=nA=null,tc=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return ti&&"ko"!==n.locale?null:n.data}}(e,t))&&0<(v=si(r,"onBeforeInput")).length&&(y=new nQ("onBeforeInput","beforeinput",null,t,i),l.push({event:y,listeners:v}),y.data=g);var w=e;if("submit"===w&&r&&r.stateNode===i){var k=c0((i[e$]||null).action),_=t.submitter;_&&null!==(w=(w=_[e$]||null)?c0(w.formAction):_.getAttribute("formAction"))&&(k=w,_=null);var C=new nX("action","action",null,t,i);l.push({event:C,listeners:[{instance:null,listener:function(){if(t.defaultPrevented){if(0!==cF){var e=_?c1(i,_):new FormData(i);o0(r,{pending:!0,data:e,method:i.method,action:k},null,e)}}else"function"==typeof k&&(C.preventDefault(),o0(r,{pending:!0,data:e=_?c1(i,_):new FormData(i),method:i.method,action:k},k,e))},currentTarget:i}]})}}c4(l,n)})}function sr(e,n,t){return{instance:e,listener:n,currentTarget:t}}function si(e,n){for(var t=n+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===o||(null!=(i=nC(e,t))&&r.unshift(sr(e,i,o)),null!=(i=nC(e,n))&&r.push(sr(e,i,o))),3===e.tag)return r;e=e.return}return[]}function so(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag&&27!==e.tag);return e||null}function sl(e,n,t,r,i){for(var o=n._reactName,l=[];null!==t&&t!==r;){var a=t,c=a.alternate,s=a.stateNode;if(a=a.tag,null!==c&&c===r)break;5!==a&&26!==a&&27!==a||null===s||(c=s,i?null!=(s=nC(t,o))&&l.unshift(sr(t,s,c)):i||null!=(s=nC(t,o))&&l.push(sr(t,s,c))),t=t.return}0!==l.length&&e.push({event:n,listeners:l})}var sa=/\r\n?/g,sc=/\u0000|\uFFFD/g;function ss(e){return("string"==typeof e?e:""+e).replace(sa,"\n").replace(sc,"")}function su(e,n){return n=ss(n),ss(e)===n}function sd(e,n,t,i,o,l){switch(t){case"children":"string"==typeof i?"body"===n||"textarea"===n&&""===i||ns(e,i):("number"==typeof i||"bigint"===(void 0===i?"undefined":r(i)))&&"body"!==n&&ns(e,""+i);break;case"className":e3(e,"class",i);break;case"tabIndex":e3(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":e3(e,t,i);break;case"style":nf(e,i,l);break;case"data":if("object"!==n){e3(e,"data",i);break}case"src":case"href":if(""===i&&("a"!==n||"href"!==t)||null==i||"function"==typeof i||"symbol"===(void 0===i?"undefined":r(i))||"boolean"==typeof i){e.removeAttribute(t);break}i=nx(""+i),e.setAttribute(t,i);break;case"action":case"formAction":if("function"==typeof i){e.setAttribute(t,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof l&&("formAction"===t?("input"!==n&&sd(e,n,"name",o.name,o,null),sd(e,n,"formEncType",o.formEncType,o,null),sd(e,n,"formMethod",o.formMethod,o,null),sd(e,n,"formTarget",o.formTarget,o,null)):(sd(e,n,"encType",o.encType,o,null),sd(e,n,"method",o.method,o,null),sd(e,n,"target",o.target,o,null))),null==i||"symbol"===(void 0===i?"undefined":r(i))||"boolean"==typeof i){e.removeAttribute(t);break}i=nx(""+i),e.setAttribute(t,i);break;case"onClick":null!=i&&(e.onclick=ng);break;case"onScroll":null!=i&&c6("scroll",e);break;case"onScrollEnd":null!=i&&c6("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=i){if("object"!==(void 0===i?"undefined":r(i))||!("__html"in i))throw Error(c(61));if(null!=(t=i.__html)){if(null!=o.children)throw Error(c(60));e.innerHTML=t}}break;case"multiple":e.multiple=i&&"function"!=typeof i&&"symbol"!==(void 0===i?"undefined":r(i));break;case"muted":e.muted=i&&"function"!=typeof i&&"symbol"!==(void 0===i?"undefined":r(i));break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":case"innerText":case"textContent":break;case"xlinkHref":if(null==i||"function"==typeof i||"boolean"==typeof i||"symbol"===(void 0===i?"undefined":r(i))){e.removeAttribute("xlink:href");break}t=nx(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=i&&"function"!=typeof i&&"symbol"!==(void 0===i?"undefined":r(i))?e.setAttribute(t,""+i):e.removeAttribute(t);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&"function"!=typeof i&&"symbol"!==(void 0===i?"undefined":r(i))?e.setAttribute(t,""):e.removeAttribute(t);break;case"capture":case"download":!0===i?e.setAttribute(t,""):!1!==i&&null!=i&&"function"!=typeof i&&"symbol"!==(void 0===i?"undefined":r(i))?e.setAttribute(t,i):e.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":null!=i&&"function"!=typeof i&&"symbol"!==(void 0===i?"undefined":r(i))&&!isNaN(i)&&1<=i?e.setAttribute(t,i):e.removeAttribute(t);break;case"rowSpan":case"start":null==i||"function"==typeof i||"symbol"===(void 0===i?"undefined":r(i))||isNaN(i)?e.removeAttribute(t):e.setAttribute(t,i);break;case"popover":c6("beforetoggle",e),c6("toggle",e),e8(e,"popover",i);break;case"xlinkActuate":e5(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":e5(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":e5(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":e5(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":e5(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":e5(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":e5(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":e5(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":e5(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":e8(e,"is",i);break;default:2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])||e8(e,t=nm.get(t)||t,i)}}function sf(e,n,t,i,o,l){switch(t){case"style":nf(e,i,l);break;case"dangerouslySetInnerHTML":if(null!=i){if("object"!==(void 0===i?"undefined":r(i))||!("__html"in i))throw Error(c(61));if(null!=(t=i.__html)){if(null!=o.children)throw Error(c(60));e.innerHTML=t}}break;case"children":"string"==typeof i?ns(e,i):("number"==typeof i||"bigint"===(void 0===i?"undefined":r(i)))&&ns(e,""+i);break;case"onScroll":null!=i&&c6("scroll",e);break;case"onScrollEnd":null!=i&&c6("scrollend",e);break;case"onClick":null!=i&&(e.onclick=ng);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:if(!eY.hasOwnProperty(t))e:{if("o"===t[0]&&"n"===t[1]&&(o=t.endsWith("Capture"),n=t.slice(2,o?t.length-7:void 0),"function"==typeof(l=null!=(l=e[e$]||null)?l[t]:null)&&e.removeEventListener(n,l,o),"function"==typeof i)){"function"!=typeof l&&null!==l&&(t in e?e[t]=null:e.hasAttribute(t)&&e.removeAttribute(t)),e.addEventListener(n,i,o);break e}t in e?e[t]=i:!0===i?e.setAttribute(t,""):e8(e,t,i)}}}function sh(e,n,t){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":c6("error",e),c6("load",e);var i,o=!1,l=!1;for(i in t)if(t.hasOwnProperty(i)){var a=t[i];if(null!=a)switch(i){case"src":o=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,n));default:sd(e,n,i,a,t,null)}}l&&sd(e,n,"srcSet",t.srcSet,t,null),o&&sd(e,n,"src",t.src,t,null);return;case"input":c6("invalid",e);var s=i=a=l=null,u=null,d=null;for(o in t)if(t.hasOwnProperty(o)){var f=t[o];if(null!=f)switch(o){case"name":l=f;break;case"type":a=f;break;case"checked":u=f;break;case"defaultChecked":d=f;break;case"value":i=f;break;case"defaultValue":s=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(c(137,n));break;default:sd(e,n,o,f,t,null)}}ni(e,i,s,u,d,a,l,!1);return;case"select":for(l in c6("invalid",e),o=a=i=null,t)if(t.hasOwnProperty(l)&&null!=(s=t[l]))switch(l){case"value":i=s;break;case"defaultValue":a=s;break;case"multiple":o=s;default:sd(e,n,l,s,t,null)}n=i,t=a,e.multiple=!!o,null!=n?nl(e,!!o,n,!1):null!=t&&nl(e,!!o,t,!0);return;case"textarea":for(a in c6("invalid",e),i=l=o=null,t)if(t.hasOwnProperty(a)&&null!=(s=t[a]))switch(a){case"value":o=s;break;case"defaultValue":l=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(c(91));break;default:sd(e,n,a,s,t,null)}nc(e,o,l,i);return;case"option":for(u in t)t.hasOwnProperty(u)&&null!=(o=t[u])&&("selected"===u?e.selected=o&&"function"!=typeof o&&"symbol"!==(void 0===o?"undefined":r(o)):sd(e,n,u,o,t,null));return;case"dialog":c6("beforetoggle",e),c6("toggle",e),c6("cancel",e),c6("close",e);break;case"iframe":case"object":c6("load",e);break;case"video":case"audio":for(o=0;o<c3.length;o++)c6(c3[o],e);break;case"image":c6("error",e),c6("load",e);break;case"details":c6("toggle",e);break;case"embed":case"source":case"link":c6("error",e),c6("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(d in t)if(t.hasOwnProperty(d)&&null!=(o=t[d]))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,n));default:sd(e,n,d,o,t,null)}return;default:if(nh(n)){for(f in t)t.hasOwnProperty(f)&&void 0!==(o=t[f])&&sf(e,n,f,o,t,void 0);return}}for(s in t)t.hasOwnProperty(s)&&null!=(o=t[s])&&sd(e,n,s,o,t,null)}function sm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var sp=null,sx=null;function sg(e){return 9===e.nodeType?e:e.ownerDocument}function sj(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sb(e,n){if(0===e)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===n?0:e}function sy(e,n){return"textarea"===e||"noscript"===e||"string"==typeof n.children||"number"==typeof n.children||"bigint"===r(n.children)||"object"===r(n.dangerouslySetInnerHTML)&&null!==n.dangerouslySetInnerHTML&&null!=n.dangerouslySetInnerHTML.__html}var sv=null,sw="function"==typeof setTimeout?setTimeout:void 0,sk="function"==typeof clearTimeout?clearTimeout:void 0,s_="function"==typeof Promise?Promise:void 0,sC="function"==typeof queueMicrotask?queueMicrotask:void 0!==s_?function(e){return s_.resolve(null).then(e).catch(sI)}:sw;function sI(e){setTimeout(function(){throw e})}function sS(e){return"head"===e}function sO(e,n){var t=n,r=0;do{var i=t.nextSibling;if(e.removeChild(t),i&&8===i.nodeType)if("/$"===(t=i.data)||"/&"===t){if(0===r){e.removeChild(i),uz(n);return}r--}else if("$"===t||"$?"===t||"$~"===t||"$!"===t||"&"===t)r++;else if("html"===t)sM(e.ownerDocument.documentElement);else if("head"===t){sM(t=e.ownerDocument.head);for(var o=t.firstChild;o;){var l=o.nextSibling,a=o.nodeName;o[eX]||"SCRIPT"===a||"STYLE"===a||"LINK"===a&&"stylesheet"===o.rel.toLowerCase()||t.removeChild(o),o=l}}else"body"===t&&sM(e.ownerDocument.body);t=i}while(t);uz(n)}function sA(e,n){var t=e;e=0;do{var r=t.nextSibling;if(1===t.nodeType?n?(t._stashedDisplay=t.style.display,t.style.display="none"):(t.style.display=t._stashedDisplay||"",""===t.getAttribute("style")&&t.removeAttribute("style")):3===t.nodeType&&(n?(t._stashedText=t.nodeValue,t.nodeValue=""):t.nodeValue=t._stashedText||""),r&&8===r.nodeType)if("/$"===(t=r.data))if(0===e)break;else e--;else"$"!==t&&"$?"!==t&&"$~"!==t&&"$!"!==t||e++;t=r}while(t)}function sP(e){var n=e.firstChild;for(n&&10===n.nodeType&&(n=n.nextSibling);n;){var t=n;switch(n=n.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":sP(t),eU(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===t.rel.toLowerCase())continue}e.removeChild(t)}}function sB(e,n){for(;8!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n||null===(e=sT(e.nextSibling)))return null;return e}function sE(e){return"$?"===e.data||"$~"===e.data}function sz(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function sT(e){for(;null!=e;e=e.nextSibling){var n=e.nodeType;if(1===n||3===n)break;if(8===n){if("$"===(n=e.data)||"$!"===n||"$?"===n||"$~"===n||"&"===n||"F!"===n||"F"===n)break;if("/$"===n||"/&"===n)return null}}return e}var sN=null;function sR(e){e=e.nextSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if("/$"===t||"/&"===t){if(0===n)return sT(e.nextSibling);n--}else"$"!==t&&"$!"!==t&&"$?"!==t&&"$~"!==t&&"&"!==t||n++}e=e.nextSibling}return null}function s$(e){e=e.previousSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if("$"===t||"$!"===t||"$?"===t||"$~"===t||"&"===t){if(0===n)return e;n--}else"/$"!==t&&"/&"!==t||n++}e=e.previousSibling}return null}function sD(e,n,t){switch(n=sg(t),e){case"html":if(!(e=n.documentElement))throw Error(c(452));return e;case"head":if(!(e=n.head))throw Error(c(453));return e;case"body":if(!(e=n.body))throw Error(c(454));return e;default:throw Error(c(451))}}function sM(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);eU(e)}var sL=new Map,sK=new Set;function sJ(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var sX=T.d;T.d={f:function(){var e=sX.f(),n=cf();return e||n},r:function(e){var n=eV(e);null!==n&&5===n.tag&&"form"===n.type?o2(n):sX.r(e)},D:function(e){sX.D(e),sF("dns-prefetch",e,null)},C:function(e,n){sX.C(e,n),sF("preconnect",e,n)},L:function(e,n,t){if(sX.L(e,n,t),sU&&e&&n){var r='link[rel="preload"][as="'+nt(n)+'"]';"image"===n&&t&&t.imageSrcSet?(r+='[imagesrcset="'+nt(t.imageSrcSet)+'"]',"string"==typeof t.imageSizes&&(r+='[imagesizes="'+nt(t.imageSizes)+'"]')):r+='[href="'+nt(e)+'"]';var i=r;switch(n){case"style":i=sH(e);break;case"script":i=sG(e)}sL.has(i)||(e=h({rel:"preload",href:"image"===n&&t&&t.imageSrcSet?void 0:e,as:n},t),sL.set(i,e),null!==sU.querySelector(r)||"style"===n&&sU.querySelector(sW(i))||"script"===n&&sU.querySelector(sY(i))||(sh(n=sU.createElement("link"),"link",e),eq(n),sU.head.appendChild(n)))}},m:function(e,n){if(sX.m(e,n),sU&&e){var t=n&&"string"==typeof n.as?n.as:"script",r='link[rel="modulepreload"][as="'+nt(t)+'"][href="'+nt(e)+'"]',i=r;switch(t){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=sG(e)}if(!sL.has(i)&&(e=h({rel:"modulepreload",href:e},n),sL.set(i,e),null===sU.querySelector(r))){switch(t){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(sU.querySelector(sY(i)))return}sh(t=sU.createElement("link"),"link",e),eq(t),sU.head.appendChild(t)}}},X:function(e,n){if(sX.X(e,n),sU&&e){var t=eW(sU).hoistableScripts,r=sG(e),i=t.get(r);i||((i=sU.querySelector(sY(r)))||(e=h({src:e,async:!0},n),(n=sL.get(r))&&s1(e,n),eq(i=sU.createElement("script")),sh(i,"link",e),sU.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},t.set(r,i))}},S:function(e,n,t){if(sX.S(e,n,t),sU&&e){var r=eW(sU).hoistableStyles,i=sH(e);n=n||"default";var o=r.get(i);if(!o){var l={loading:0,preload:null};if(o=sU.querySelector(sW(i)))l.loading=5;else{e=h({rel:"stylesheet",href:e,"data-precedence":n},t),(t=sL.get(i))&&s0(e,t);var a=o=sU.createElement("link");eq(a),sh(a,"link",e),a._p=new Promise(function(e,n){a.onload=e,a.onerror=n}),a.addEventListener("load",function(){l.loading|=1}),a.addEventListener("error",function(){l.loading|=2}),l.loading|=4,sZ(o,n,sU)}o={type:"stylesheet",instance:o,count:1,state:l},r.set(i,o)}}},M:function(e,n){if(sX.M(e,n),sU&&e){var t=eW(sU).hoistableScripts,r=sG(e),i=t.get(r);i||((i=sU.querySelector(sY(r)))||(e=h({src:e,async:!0,type:"module"},n),(n=sL.get(r))&&s1(e,n),eq(i=sU.createElement("script")),sh(i,"link",e),sU.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},t.set(r,i))}}};var sU="undefined"==typeof document?null:document;function sF(e,n,t){if(sU&&"string"==typeof n&&n){var r=nt(n);r='link[rel="'+e+'"][href="'+r+'"]',"string"==typeof t&&(r+='[crossorigin="'+t+'"]'),sK.has(r)||(sK.add(r),e={rel:e,crossOrigin:t,href:n},null===sU.querySelector(r)&&(sh(n=sU.createElement("link"),"link",e),eq(n),sU.head.appendChild(n)))}}function sV(e,n,t,i){var o=(o=X.current)?sJ(o):null;if(!o)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof t.precedence&&"string"==typeof t.href?(n=sH(t.href),(i=(t=eW(o).hoistableStyles).get(n))||(i={type:"style",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===t.rel&&"string"==typeof t.href&&"string"==typeof t.precedence){e=sH(t.href);var l,a,s,u,d=eW(o).hoistableStyles,f=d.get(e);if(f||(o=o.ownerDocument||o,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,f),(d=o.querySelector(sW(e)))&&!d._p&&(f.instance=d,f.state.loading=5),sL.has(e)||(t={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy},sL.set(e,t),d||(l=o,a=e,s=t,u=f.state,l.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(u.preload=a=l.createElement("link"),a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),sh(a,"link",s),eq(a),l.head.appendChild(a))))),n&&null===i)throw Error(c(528,""));return f}if(n&&null!==i)throw Error(c(529,""));return null;case"script":return n=t.async,"string"==typeof(t=t.src)&&n&&"function"!=typeof n&&"symbol"!==(void 0===n?"undefined":r(n))?(n=sG(t),(i=(t=eW(o).hoistableScripts).get(n))||(i={type:"script",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function sH(e){return'href="'+nt(e)+'"'}function sW(e){return'link[rel="stylesheet"]['+e+"]"}function sq(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function sG(e){return'[src="'+nt(e)+'"]'}function sY(e){return"script[async]"+e}function sQ(e,n,t){if(n.count++,null===n.instance)switch(n.type){case"style":var r=e.querySelector('style[data-href~="'+nt(t.href)+'"]');if(r)return n.instance=r,eq(r),r;var i=h({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return eq(r=(e.ownerDocument||e).createElement("style")),sh(r,"style",i),sZ(r,t.precedence,e),n.instance=r;case"stylesheet":i=sH(t.href);var o=e.querySelector(sW(i));if(o)return n.state.loading|=4,n.instance=o,eq(o),o;r=sq(t),(i=sL.get(i))&&s0(r,i),eq(o=(e.ownerDocument||e).createElement("link"));var l=o;return l._p=new Promise(function(e,n){l.onload=e,l.onerror=n}),sh(o,"link",r),n.state.loading|=4,sZ(o,t.precedence,e),n.instance=o;case"script":if(o=sG(t.src),i=e.querySelector(sY(o)))return n.instance=i,eq(i),i;return r=t,(i=sL.get(o))&&s1(r=h({},t),i),eq(i=(e=e.ownerDocument||e).createElement("script")),sh(i,"link",r),e.head.appendChild(i),n.instance=i;case"void":return null;default:throw Error(c(443,n.type))}return"stylesheet"===n.type&&0==(4&n.state.loading)&&(r=n.instance,n.state.loading|=4,sZ(r,t.precedence,e)),n.instance}function sZ(e,n,t){for(var r=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,l=0;l<r.length;l++){var a=r[l];if(a.dataset.precedence===n)o=a;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(n=9===t.nodeType?t.head:t).insertBefore(e,n.firstChild)}function s0(e,n){null==e.crossOrigin&&(e.crossOrigin=n.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=n.referrerPolicy),null==e.title&&(e.title=n.title)}function s1(e,n){null==e.crossOrigin&&(e.crossOrigin=n.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=n.referrerPolicy),null==e.integrity&&(e.integrity=n.integrity)}var s2=null;function s8(e,n,t){if(null===s2){var r=new Map,i=s2=new Map;i.set(t,r)}else(r=(i=s2).get(t))||(r=new Map,i.set(t,r));if(r.has(e))return r;for(r.set(e,null),t=t.getElementsByTagName(e),i=0;i<t.length;i++){var o=t[i];if(!(o[eX]||o[eR]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var l=o.getAttribute(n)||"";l=e+l;var a=r.get(l);a?a.push(o):r.set(l,[o])}}return r}function s3(e,n,t){(e=e.ownerDocument||e).head.insertBefore(t,"title"===n?e.querySelector("head > title"):null)}function s5(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}var s4=0;function s6(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages)){if(this.stylesheets)s9(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var s7=null;function s9(e,n){e.stylesheets=null,null!==e.unsuspend&&(e.count++,s7=new Map,n.forEach(ue,e),s7=null,s6.call(e))}function ue(e,n){if(!(4&n.state.loading)){var t=s7.get(e);if(t)var r=t.get(null);else{t=new Map,s7.set(e,t);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var l=i[o];("LINK"===l.nodeName||"not all"!==l.getAttribute("media"))&&(t.set(l.dataset.precedence,l),r=l)}r&&t.set(null,r)}l=(i=n.instance).getAttribute("data-precedence"),(o=t.get(l)||r)===r&&t.set(null,i),t.set(l,i),this.count++,r=s6.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),n.state.loading|=4}}var un={$$typeof:v,Provider:null,Consumer:null,_currentValue:N,_currentValue2:N,_threadCount:0};function ut(e,n,t,r,i,o,l,a,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=eI(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eI(0),this.hiddenUpdates=eI(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ur(e,n,t,r,i,o){i=i?t9:t9,null===r.context?r.context=i:r.pendingContext=i,(r=iS(n)).payload={element:t},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(t=iO(e,r,n))&&(cc(t,e,n),iA(t,e,n))}function ui(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t<n?t:n}}function uo(e,n){ui(e,n),(e=e.alternate)&&ui(e,n)}function ul(e){if(13===e.tag||31===e.tag){var n=t4(e,0x4000000);null!==n&&cc(n,e,0x4000000),uo(e,0x4000000)}}function ua(e){if(13===e.tag||31===e.tag){var n=cl(),t=t4(e,n=eB(n));null!==t&&cc(t,e,n),uo(e,n)}}var uc=!0;function us(e,n,t,r){var i=z.T;z.T=null;var o=T.p;try{T.p=2,ud(e,n,t,r)}finally{T.p=o,z.T=i}}function uu(e,n,t,r){var i=z.T;z.T=null;var o=T.p;try{T.p=8,ud(e,n,t,r)}finally{T.p=o,z.T=i}}function ud(e,n,t,r){if(uc){var i=uf(r);if(null===i)st(e,n,r,uh,t),u_(e,r);else if(function(e,n,t,r,i){switch(n){case"focusin":return ug=uC(ug,e,n,t,r,i),!0;case"dragenter":return uj=uC(uj,e,n,t,r,i),!0;case"mouseover":return ub=uC(ub,e,n,t,r,i),!0;case"pointerover":var o=i.pointerId;return uy.set(o,uC(uy.get(o)||null,e,n,t,r,i)),!0;case"gotpointercapture":return o=i.pointerId,uv.set(o,uC(uv.get(o)||null,e,n,t,r,i)),!0}return!1}(i,e,n,t,r))r.stopPropagation();else if(u_(e,r),4&n&&-1<uk.indexOf(e)){for(;null!==i;){var o=eV(i);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var l=ew(o.pendingLanes);if(0!==l){var a=o;for(a.pendingLanes|=2,a.entangledLanes|=2;l;){var c=1<<31-ex(l);a.entanglements[1]|=c,l&=~c}cV(o),0==(6&a$)&&(a3=ei()+500,cH(0,!1))}}break;case 31:case 13:null!==(a=t4(o,2))&&cc(a,o,2),cf(),uo(o,2)}if(null===(o=uf(r))&&st(e,n,r,uh,t),o===i)break;i=o}null!==i&&r.stopPropagation()}else st(e,n,r,null,t)}}function uf(e){return um(e=nb(e))}var uh=null;function um(e){if(uh=null,null!==(e=eF(e))){var n=s(e);if(null===n)e=null;else{var t=n.tag;if(13===t){if(null!==(e=u(n)))return e;e=null}else if(31===t){if(null!==(e=d(n)))return e;e=null}else if(3===t){if(n.stateNode.current.memoizedState.isDehydrated)return 3===n.tag?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return uh=e,null}function up(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(eo()){case el:return 2;case ea:return 8;case ec:case es:return 32;case eu:return 0x10000000;default:return 32}default:return 32}}var ux=!1,ug=null,uj=null,ub=null,uy=new Map,uv=new Map,uw=[],uk="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function u_(e,n){switch(e){case"focusin":case"focusout":ug=null;break;case"dragenter":case"dragleave":uj=null;break;case"mouseover":case"mouseout":ub=null;break;case"pointerover":case"pointerout":uy.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":uv.delete(n.pointerId)}}function uC(e,n,t,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==n&&null!==(n=eV(n))&&ul(n)):(e.eventSystemFlags|=r,n=e.targetContainers,null!==i&&-1===n.indexOf(i)&&n.push(i)),e}function uI(e){var n=eF(e.target);if(null!==n){var t=s(n);if(null!==t){if(13===(n=t.tag)){if(null!==(n=u(t))){e.blockedOn=n,eT(e.priority,function(){ua(t)});return}}else if(31===n){if(null!==(n=d(t))){e.blockedOn=n,eT(e.priority,function(){ua(t)});return}}else if(3===n&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===t.tag?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function uS(e){if(null!==e.blockedOn)return!1;for(var n=e.targetContainers;0<n.length;){var t=uf(e.nativeEvent);if(null!==t)return null!==(n=eV(t))&&ul(n),e.blockedOn=t,!1;var r=new(t=e.nativeEvent).constructor(t.type,t);nj=r,t.target.dispatchEvent(r),nj=null,n.shift()}return!0}function uO(e,n,t){uS(e)&&t.delete(n)}function uA(){ux=!1,null!==ug&&uS(ug)&&(ug=null),null!==uj&&uS(uj)&&(uj=null),null!==ub&&uS(ub)&&(ub=null),uy.forEach(uO),uv.forEach(uO)}function uP(e,n){e.blockedOn===n&&(e.blockedOn=null,ux||(ux=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,uA)))}var uB=null;function uE(e){uB!==e&&(uB=e,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){uB===e&&(uB=null);for(var n=0;n<e.length;n+=3){var t=e[n],r=e[n+1],i=e[n+2];if("function"!=typeof r)if(null===um(r||t))continue;else break;var o=eV(t);null!==o&&(e.splice(n,3),n-=3,o0(o,{pending:!0,data:i,method:t.method,action:r},r,i))}}))}function uz(e){function n(n){return uP(n,e)}null!==ug&&uP(ug,e),null!==uj&&uP(uj,e),null!==ub&&uP(ub,e),uy.forEach(n),uv.forEach(n);for(var t=0;t<uw.length;t++){var r=uw[t];r.blockedOn===e&&(r.blockedOn=null)}for(;0<uw.length&&null===(t=uw[0]).blockedOn;)uI(t),null===t.blockedOn&&uw.shift();if(null!=(t=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<t.length;r+=3){var i=t[r],o=t[r+1],l=i[e$]||null;if("function"==typeof o)l||uE(t);else if(l){var a=null;if(o&&o.hasAttribute("formAction")){if(i=o,l=o[e$]||null)a=l.formAction;else if(null!==um(i))continue}else a=l.action;"function"==typeof a?t[r+1]=a:(t.splice(r,3),r-=3),uE(t)}}}function uT(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return o=e})},focusReset:"manual",scroll:"manual"})}function n(){null!==o&&(o(),o=null),i||setTimeout(t,20)}function t(){if(!i&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"===("undefined"==typeof navigation?"undefined":r(navigation))){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(t,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),null!==o&&(o(),o=null)}}}function uN(e){this._internalRoot=e}function uR(e){this._internalRoot=e}uR.prototype.render=uN.prototype.render=function(e){var n=this._internalRoot;if(null===n)throw Error(c(409));ur(n.current,cl(),e,n,null,null)},uR.prototype.unmount=uN.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var n=e.containerInfo;ur(e.current,2,null,e,null,null),cf(),n[eD]=null}},uR.prototype.unstable_scheduleHydration=function(e){if(e){var n=ez();e={blockedOn:null,target:e,priority:n};for(var t=0;t<uw.length&&0!==n&&n<uw[t].priority;t++);uw.splice(t,0,e),0===t&&uI(e)}};var u$=l.version;if("19.2.0"!==u$)throw Error(c(527,u$,"19.2.0"));if(T.findDOMNode=function(e){var n=e._reactInternals;if(void 0===n){if("function"==typeof e.render)throw Error(c(188));throw Error(c(268,e=Object.keys(e).join(",")))}return null===(e=null!==(e=function(e){var n=e.alternate;if(!n){if(null===(n=s(e)))throw Error(c(188));return n!==e?null:e}for(var t=e,r=n;;){var i=t.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){t=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===t)return f(i),e;if(o===r)return f(i),n;o=o.sibling}throw Error(c(188))}if(t.return!==r.return)t=i,r=o;else{for(var l=!1,a=i.child;a;){if(a===t){l=!0,t=i,r=o;break}if(a===r){l=!0,r=i,t=o;break}a=a.sibling}if(!l){for(a=o.child;a;){if(a===t){l=!0,t=o,r=i;break}if(a===r){l=!0,r=o,t=i;break}a=a.sibling}if(!l)throw Error(c(189))}}if(t.alternate!==r)throw Error(c(190))}if(3!==t.tag)throw Error(c(188));return t.stateNode.current===t?e:n}(n))?function e(n){var t=n.tag;if(5===t||26===t||27===t||6===t)return n;for(n=n.child;null!==n;){if(null!==(t=e(n)))return t;n=n.sibling}return null}(e):null)?null:e.stateNode},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var uD=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uD.isDisabled&&uD.supportsFiber)try{eh=uD.inject({bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.0"}),em=uD}catch(e){}}n.createRoot=function(e,n){if(!(t=e)||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(c(299));var t,r,i,o,l,a,s,u,d=!1,f="",h=lh,m=lm,p=lp;return null!=n&&(!0===n.unstable_strictMode&&(d=!0),void 0!==n.identifierPrefix&&(f=n.identifierPrefix),void 0!==n.onUncaughtError&&(h=n.onUncaughtError),void 0!==n.onCaughtError&&(m=n.onCaughtError),void 0!==n.onRecoverableError&&(p=n.onRecoverableError)),r=e,i=1,o=!1,l=null,a=0,s=d,u=null,r=new ut(r,i,o,f,h,m,p,uT,null),i=1,!0===s&&(i|=24),s=rn(3,null,null,i),r.current=s,s.stateNode=r,i=r2(),i.refCount++,r.pooledCache=i,i.refCount++,s.memoizedState={element:null,isDehydrated:o,cache:i},iC(s),n=r,e[eD]=n.current,se(e),new uN(n)}},3228:function(e,n,t){"use strict";function r(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var i=t(4530);function o(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var a={d:{f:l,r:function(){throw Error(o(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal"),s=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,n){return"font"===e?"":"string"==typeof n?"use-credentials"===n?n:"":void 0}n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,n.createPortal=function(e,n){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(o(299));return function(e,n,t){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:c,key:null==r?null:""+r,children:e,containerInfo:n,implementation:t}}(e,n,null,t)},n.flushSync=function(e){var n=s.T,t=a.p;try{if(s.T=null,a.p=2,e)return e()}finally{s.T=n,a.p=t,a.d.f()}},n.preconnect=function(e,n){"string"==typeof e&&(n=n?"string"==typeof(n=n.crossOrigin)?"use-credentials"===n?n:"":void 0:null,a.d.C(e,n))},n.prefetchDNS=function(e){"string"==typeof e&&a.d.D(e)},n.preinit=function(e,n){if("string"==typeof e&&n&&"string"==typeof n.as){var t=n.as,r=u(t,n.crossOrigin),i="string"==typeof n.integrity?n.integrity:void 0,o="string"==typeof n.fetchPriority?n.fetchPriority:void 0;"style"===t?a.d.S(e,"string"==typeof n.precedence?n.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):"script"===t&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:"string"==typeof n.nonce?n.nonce:void 0})}},n.preinitModule=function(e,n){if("string"==typeof e)if("object"===(void 0===n?"undefined":r(n))&&null!==n){if(null==n.as||"script"===n.as){var t=u(n.as,n.crossOrigin);a.d.M(e,{crossOrigin:t,integrity:"string"==typeof n.integrity?n.integrity:void 0,nonce:"string"==typeof n.nonce?n.nonce:void 0})}}else null==n&&a.d.M(e)},n.preload=function(e,n){if("string"==typeof e&&"object"===(void 0===n?"undefined":r(n))&&null!==n&&"string"==typeof n.as){var t=n.as,i=u(t,n.crossOrigin);a.d.L(e,t,{crossOrigin:i,integrity:"string"==typeof n.integrity?n.integrity:void 0,nonce:"string"==typeof n.nonce?n.nonce:void 0,type:"string"==typeof n.type?n.type:void 0,fetchPriority:"string"==typeof n.fetchPriority?n.fetchPriority:void 0,referrerPolicy:"string"==typeof n.referrerPolicy?n.referrerPolicy:void 0,imageSrcSet:"string"==typeof n.imageSrcSet?n.imageSrcSet:void 0,imageSizes:"string"==typeof n.imageSizes?n.imageSizes:void 0,media:"string"==typeof n.media?n.media:void 0})}},n.preloadModule=function(e,n){if("string"==typeof e)if(n){var t=u(n.as,n.crossOrigin);a.d.m(e,{as:"string"==typeof n.as&&"script"!==n.as?n.as:void 0,crossOrigin:t,integrity:"string"==typeof n.integrity?n.integrity:void 0})}else a.d.m(e)},n.requestFormReset=function(e){a.d.r(e)},n.unstable_batchedUpdates=function(e,n){return e(n)},n.useFormState=function(e,n,t){return s.H.useFormState(e,n,t)},n.useFormStatus=function(){return s.H.useHostTransitionStatus()},n.version="19.2.0"},1843:function(e,n,t){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=t(7912)},6634:function(e,n,t){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=t(3228)},2476:function(e,n,t){"use strict";function r(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function i(){for(var e,n,t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];return Array((n=Math).max.apply(n,function(e){if(Array.isArray(e))return r(e)}(e=i.map(function(e){return e.length}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return r(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).fill(void 0).map(function(e,n){return i.map(function(e){return e[n]})})}t.d(n,{y:()=>i})},2316:function(e,n,t){"use strict";t.d(n,{KA:()=>r,KS:()=>o,NE:()=>l,bz:()=>i});var r=2,i=1,o=0,l=["average","bad","black","blue","brown","good","green","grey","label","olive","orange","pink","purple","red","teal","transparent","violet","white","yellow"]},1128:function(e,n,t){"use strict";t.d(n,{Nh:()=>u,WK:()=>w,tk:()=>v,y4:()=>f});var r,i=t(7686);function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function l(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}function a(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,n,t){return n&&a(e.prototype,n),t&&a(e,t),e}function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var u=new(function(){function e(){l(this,e),s(this,"listeners",void 0),this.listeners={}}return c(e,[{key:"on",value:function(e,n){this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(n)}},{key:"off",value:function(e,n){var t=this.listeners[e];if(!t)throw Error('There is no listeners for "'.concat(e,'"'));this.listeners[e]=t.filter(function(e){return e!==n})}},{key:"emit",value:function(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var i=this.listeners[e];if(i)for(var l=0,a=i.length;l<a;l+=1)i[l].apply(this,function(e){if(Array.isArray(e))return o(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,n){if(e){if("string"==typeof e)return o(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}},{key:"clear",value:function(){this.listeners={}}}]),e}()),d=!1,f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d=!!e.ignoreWindowFocus},h=!0;function m(e,n){if(d){h=!0;return}if(r&&(clearTimeout(r),r=null),n){r=setTimeout(function(){return m(e)});return}h!==e&&(h=e,u.emit(e?"window-focus":"window-blur"),u.emit("window-focus-change",e))}var p=null;function x(e){var n=String(e.tagName).toLowerCase();return"input"===n||"textarea"===n}function g(){p&&(p.removeEventListener("blur",g),p=null,u.emit("input-blur"))}var j=null,b=null,y=[];function v(e){y.push(e)}function w(e){var n=y.indexOf(e);n>=0&&y.splice(n,1)}window.addEventListener("mousemove",function(e){var n=e.target;n!==b&&(b=n,function(e){if(!p&&h)for(var n=document.body;e&&e!==n;){if(y.includes(e)){if(e.contains(j))return;j=e,e.focus();return}e=e.parentElement}}(n))}),document.addEventListener("focus",function(e){var n,t,r;if(t=e.target,null!=(r=Element)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?!r[Symbol.hasInstance](t):!(t instanceof r)){b=null,j=null;return}b=null,j=e.target,x(e.target)&&(n=e.target,g(),(p=n).addEventListener("blur",g),u.emit("input-focus"))},!0),document.addEventListener("blur",function(){b=null},!0),window.addEventListener("focus",function(){m(!0)}),window.addEventListener("blur",function(){b=null,m(!1,!0)}),window.addEventListener("close",function(){m(!1)});var k={},_=function(){function e(n,t,r){l(this,e),s(this,"event",void 0),s(this,"type",void 0),s(this,"code",void 0),s(this,"ctrl",void 0),s(this,"shift",void 0),s(this,"alt",void 0),s(this,"repeat",void 0),s(this,"_str",void 0),this.event=n,this.type=t,this.code=n.keyCode,this.ctrl=n.ctrlKey,this.shift=n.shiftKey,this.alt=n.altKey,this.repeat=!!r}return c(e,[{key:"hasModifierKeys",value:function(){return this.ctrl||this.alt||this.shift}},{key:"isModifierKey",value:function(){return this.code===i.Ss||this.code===i.re||this.code===i.cH}},{key:"isDown",value:function(){return"keydown"===this.type}},{key:"isUp",value:function(){return"keyup"===this.type}},{key:"toString",value:function(){return this._str||(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=i.sV&&this.code<=i.Yw?this._str+="F".concat(this.code-111):this._str+="[".concat(this.code,"]")),this._str}}]),e}();document.addEventListener("keydown",function(e){if(!x(e.target)){var n=e.keyCode,t=new _(e,"keydown",k[n]);u.emit("keydown",t),u.emit("key",t),k[n]=!0}}),document.addEventListener("keyup",function(e){if(!x(e.target)){var n=e.keyCode,t=new _(e,"keyup");u.emit("keyup",t),u.emit("key",t),k[n]=!1}})},9582:function(e,n,t){"use strict";t.d(n,{QL:()=>o,d5:()=>l,fU:()=>c,up:()=>a});var r=["f","p","n","μ","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],i=r.indexOf(" ");function o(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-i,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!Number.isFinite(e))return e.toString();var o=Math.floor(Math.max(3*n,Math.floor(Math.log10(Math.abs(e))))/3),l=r[Math.min(o+i,r.length-1)],a=(e/Math.pow(1e3,o)).toFixed(2);return a.endsWith(".00")?a=a.slice(0,-3):a.endsWith(".0")&&(a=a.slice(0,-2)),"".concat(a," ").concat(l.trim()).concat(t).trim()}function l(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(e,n,"W")}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Number.isFinite(e))return String(e);var t=Number(e.toFixed(n)),r=Math.abs(t).toString().split(".");r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g," ");var i=r.join(".");return t<0?"-".concat(i):i}function c(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",t=Math.floor(e/10),r=Math.floor(t/3600),i=Math.floor(t%3600/60),o=t%60;if("short"===n)return"".concat(r>0?"".concat(r,"h"):"").concat(i>0?"".concat(i,"m"):"").concat(o>0?"".concat(o,"s"):"");var l=String(r).padStart(2,"0"),a=String(i).padStart(2,"0"),c=String(o).padStart(2,"0");return"".concat(l,":").concat(a,":").concat(c)}},1874:function(e,n,t){"use strict";t.d(n,{Bm:()=>d,ao:()=>f,sc:()=>h,zr:()=>s});var r=t(1128),i=t(7686),o={},l=[i.s6,i.Ri,i.iy,i.aW,i.Ss,i.re,i.gf,i.R,i.iU,i.zh,i.sP],a={},c=[];function s(){for(var e in a)a[e]&&(a[e]=!1,Byond.command(u.verbParamsFn(u.keyUpVerb,e)))}var u={keyDownVerb:"KeyDown",keyUpVerb:"KeyUp",verbParamsFn:function(e,n){return"".concat(e,' "').concat(n,'"')}};function d(e){e&&(u=e),Byond.winget("default.*").then(function(e){var n=function(e){return e.substring(1,e.length-1).replace(c,'"')},t={};for(var r in e){var i=r.split("."),l=i[1],a=i[2];l&&a&&(t[l]||(t[l]={}),t[l][a]=e[r])}var c=/\\"/g;for(var s in t){var u=t[s];o[n(u.name)]=n(u.command)}}),r.Nh.on("window-blur",function(){s()}),r.Nh.on("input-focus",function(){s()}),f()}function f(){r.Nh.on("key",m)}function h(){r.Nh.off("key",m)}function m(e){var n=!0,t=!1,r=void 0;try{for(var i,s=c[Symbol.iterator]();!(n=(i=s.next()).done);n=!0)(0,i.value)(e)}catch(e){t=!0,r=e}finally{try{n||null==s.return||s.return()}finally{if(t)throw r}}!function(e){var n,t=String(e);if("Ctrl+F5"===t||"Ctrl+R"===t)return location.reload();if(!("Ctrl+F"===t||e.event.defaultPrevented||e.isModifierKey()||l.includes(e.code))){var r=16===(n=e.code)?"Shift":17===n?"Ctrl":18===n?"Alt":33===n?"Northeast":34===n?"Southeast":35===n?"Southwest":36===n?"Northwest":37===n?"West":38===n?"North":39===n?"East":40===n?"South":45===n?"Insert":46===n?"Delete":n>=48&&n<=57||n>=65&&n<=90?String.fromCharCode(n):n>=96&&n<=105?"Numpad".concat(n-96):n>=112&&n<=123?"F".concat(n-111):188===n?",":189===n?"-":190===n?".":void 0;if(r){var i=o[r];if(i)return Byond.command(i);if(e.isDown()&&!a[r]){a[r]=!0;var c=u.verbParamsFn(u.keyDownVerb,r);return Byond.command(c)}if(e.isUp()&&a[r]){a[r]=!1;var s=u.verbParamsFn(u.keyUpVerb,r);Byond.command(s)}}}}(e)}},7686:function(e,n,t){"use strict";t.d(n,{C:()=>y,Pm:()=>p,R:()=>m,Ri:()=>o,Ss:()=>a,W8:()=>g,Wy:()=>x,Yw:()=>k,aW:()=>i,bh:()=>j,cH:()=>c,gf:()=>f,hr:()=>b,iU:()=>d,iy:()=>u,re:()=>l,s6:()=>s,sP:()=>w,sV:()=>v,ye:()=>r,zh:()=>h});var r=8,i=9,o=13,l=16,a=17,c=18,s=27,u=32,d=37,f=38,h=39,m=40,p=48,x=57,g=65,j=90,b=96,y=105,v=112,w=116,k=123},925:function(e,n,t){"use strict";t.d(n,{KL:()=>o,_:()=>i});var r,i=((r={}).A="a",r.Alt="Alt",r.Backspace="Backspace",r.Control="Control",r.D="d",r.Delete="Delete",r.Down="ArrowDown",r.E="e",r.End="End",r.Enter="Enter",r.Esc="Esc",r.Escape="Escape",r.Home="Home",r.Insert="Insert",r.Left="ArrowLeft",r.Minus="-",r.N="n",r.PageDown="PageDown",r.PageUp="PageUp",r.Plus="+",r.Right="ArrowRight",r.S="s",r.Shift="Shift",r.Space=" ",r.Tab="Tab",r.Up="ArrowUp",r.W="w",r.Z="z",r);function o(e){return"Esc"===e||"Escape"===e}},6859:function(e,n,t){"use strict";function r(e,n,t){return e<n?n:e>t?t:e}function i(e){return e<0?0:e>1?1:e}function o(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return(e-n)/(t-n)}function l(e,n){return Number.parseFloat((Math.round(e*Math.pow(10,n)+1e-4*(e>=0?1:-1))/Math.pow(10,n)).toFixed(n))}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Number(e).toFixed(Math.max(n,0))}function c(e,n){var t=!0,r=!1,i=void 0;try{for(var o,l=Object.keys(n)[Symbol.iterator]();!(t=(o=l.next()).done);t=!0){var a,c=o.value;if((a=n[c])&&e>=a[0]&&e<=a[1])return c}}catch(e){r=!0,i=e}finally{try{t||null==l.return||l.return()}finally{if(r)throw i}}}function s(e){return"number"==typeof e&&Number.isFinite(e)&&!Number.isNaN(e)}function u(e){return 180/Math.PI*e}t.d(n,{J$:()=>i,KJ:()=>u,LI:()=>l,Lz:()=>s,Mg:()=>a,TG:()=>c,hs:()=>o,qE:()=>r})},5490:function(e,n,t){"use strict";function r(e){for(var n="",t=0;t<e.length;t++){var r=e[t];"string"==typeof r&&(n+="".concat(r," "))}return n}function i(e){return null!=e&&"boolean"!=typeof e}t.d(n,{Ly:()=>r,b5:()=>i})},3268:function(e,n,t){"use strict";function r(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return JSON.stringify(e)},t=e.toLowerCase().trim();return function(e){if(!t)return!0;var r=n(e);return!!r&&r.toLowerCase().includes(t)}}function i(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}t.d(n,{Sn:()=>a,XZ:()=>r,ZH:()=>i,jT:()=>u});var o=["Id","Tv"],l=["A","An","And","As","At","But","By","For","For","From","In","Into","Near","Nor","Of","On","Onto","Or","The","To","With"];function a(e){if(!e)return e;var n=e.replace(/([^\W_]+[^\s-]*) */g,function(e){return i(e)}),t=!0,r=!1,a=void 0;try{for(var c,s=l[Symbol.iterator]();!(t=(c=s.next()).done);t=!0){var u=c.value,d=RegExp("\\s".concat(u,"\\s"),"g");n=n.replace(d,function(e){return e.toLowerCase()})}}catch(e){r=!0,a=e}finally{try{t||null==s.return||s.return()}finally{if(r)throw a}}var f=!0,h=!1,m=void 0;try{for(var p,x=o[Symbol.iterator]();!(f=(p=x.next()).done);f=!0){var g=p.value,j=RegExp("\\b".concat(g,"\\b"),"g");n=n.replace(j,function(e){return e.toLowerCase()})}}catch(e){h=!0,m=e}finally{try{f||null==x.return||x.return()}finally{if(h)throw m}}return n}var c=/&(nbsp|amp|quot|lt|gt|apos|trade|copy);/g,s={amp:"&",apos:"'",cops:"\xa9",gt:">",lt:"<",nbsp:" ",quot:'"',trade:"™"};function u(e){return e?e.replace(/<br>/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(e,n){return s[n]}).replace(/&#?([0-9]+);/gi,function(e,n){return String.fromCharCode(Number.parseInt(n,10))}).replace(/&#x?([0-9a-f]+);/gi,function(e,n){return String.fromCharCode(Number.parseInt(n,16))}):e}},3375:function(e,n,t){"use strict";t.d(n,{Fl:()=>x,WP:()=>g,lO:()=>j,zA:()=>l});var r=t(2316),i=t(5490);function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var l=function(e){return"string"==typeof e?e.endsWith("px")?"".concat(Number.parseFloat(e)/12,"rem"):e:"number"==typeof e?"".concat(e,"rem"):void 0},a=function(e){return"string"==typeof e?l(e):"number"==typeof e?l(.5*e):void 0};function c(e){return"string"==typeof e&&r.NE.includes(e)}var s=function(e){return function(n,t){("number"==typeof t||"string"==typeof t)&&(n[e]=t)}},u=function(e,n){return function(t,r){("number"==typeof r||"string"==typeof r)&&(t[e]=n(r))}},d=function(e,n){return function(t,r){r&&(t[e]=n)}},f=function(e,n,t){return function(r,i){if("number"==typeof i||"string"==typeof i)for(var o=0;o<t.length;o++)r[e+t[o]]=n(i)}},h=function(e){return function(n,t){c(t)||(n[e]=t)}},m={align:s("textAlign"),backgroundColor:h("backgroundColor"),bottom:u("bottom",l),color:h("color"),fontFamily:s("fontFamily"),fontSize:u("fontSize",l),fontWeight:s("fontWeight"),g:u("gap",a),gc:u("columnGap",a),gr:u("rowGap",a),height:u("height",l),left:u("left",l),lineHeight:function(e,n){"number"==typeof n?e.lineHeight=n:"string"==typeof n&&(e.lineHeight=l(n))},m:f("margin",a,["Top","Bottom","Left","Right"]),maxHeight:u("maxHeight",l),maxWidth:u("maxWidth",l),mb:u("marginBottom",a),minHeight:u("minHeight",l),minWidth:u("minWidth",l),ml:u("marginLeft",a),mr:u("marginRight",a),mt:u("marginTop",a),mx:f("margin",a,["Left","Right"]),my:f("margin",a,["Top","Bottom"]),opacity:s("opacity"),overflow:s("overflow"),overflowX:s("overflowX"),overflowY:s("overflowY"),p:f("padding",a,["Top","Bottom","Left","Right"]),pb:u("paddingBottom",a),pl:u("paddingLeft",a),position:s("position"),pr:u("paddingRight",a),pt:u("paddingTop",a),px:f("padding",a,["Left","Right"]),py:f("padding",a,["Top","Bottom"]),right:u("right",l),textAlign:s("textAlign"),textColor:h("color"),top:u("top",l),verticalAlign:s("verticalAlign"),width:u("width",l)},p={bold:d("fontWeight","bold"),fillPositionedParent:function(e,n){n&&(e.position="absolute",e.top=0,e.bottom=0,e.left=0,e.right=0)},inline:d("display","inline-block"),italic:d("fontStyle","italic"),nowrap:d("whiteSpace","nowrap"),preserveWhitespace:d("whiteSpace","pre-wrap")};function x(e){var n={},t={};for(var r in e)if("style"!==r){var i=e[r],o=m[r]||p[r];o?o(t,i):n[r]=i}return n.style=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({},t,e.style),n}function g(e){var n=e.textColor||e.color,t=e.backgroundColor;return(0,i.Ly)([c(n)&&"color-".concat(n),c(t)&&"color-bg-".concat(t)])}function j(e){var n={};if(!e)return n;var t=!0,r=!1,i=void 0;try{for(var l,a=e.split(" ")[Symbol.iterator]();!(t=(l=a.next()).done);t=!0){var c,s=(c=l.value.split("-"),function(e){if(Array.isArray(e))return e}(c)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(c,2)||function(e,n){if(e){if("string"==typeof e)return o(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,2)}}(c,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];if(u)if(u in m){if(""===d)continue;var f=Number(d);!Number.isNaN(f)&&Number.isFinite(f)?n[u]=f:n[u]=d}else u in p?n[u]=!0:console.warn("Unknown prop ".concat(u))}}catch(e){r=!0,i=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw i}}return n}},7790:function(e,n,t){"use strict";t.d(n,{BJ:()=>tJ,z2:()=>tM,wn:()=>rr,Z8:()=>x,y5:()=>m,Rr:()=>tp,aF:()=>t1,IC:()=>t2,XI:()=>ra,zv:()=>h,ms:()=>tI,_V:()=>tj,Y0:()=>v,$n:()=>n6,cG:()=>tx,m_:()=>nQ,t1:()=>td,Nt:()=>th,so:()=>tE,Q7:()=>t6,SM:()=>rn,Ap:()=>ri,Ki:()=>tQ,pd:()=>tF,N6:()=>tH,tU:()=>rh,Wx:()=>tY,fs:()=>rg,D1:()=>ti,In:()=>I,c_:()=>tT,Hg:()=>tb,az:()=>y,BK:()=>tm,qT:()=>rv});var r,i,o,l,a=t(8138),c=t(6859),s=t(4530),u=t.t(s,2);function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var f=1e3/60;function h(e){var n,t,r=e.format,i=e.initial,o=e.value,l=(0,s.useRef)(null),u=(n=(0,s.useState)(void 0!==i&&(0,c.Lz)(i)?i:(0,c.Lz)(o)?o:0),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return d(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=u[0],m=u[1];function p(){null!==l.current&&(clearInterval(l.current),l.current=null)}function x(){(0,c.Lz)(o)?m(function(e){var n=.8333*e+.16669999999999996*o;return Math.abs(o-n)<Math.max(.001,.001*o)?(p(),o):n}):p()}return(0,s.useEffect)(function(){return h!==o&&null===l.current&&(l.current=setInterval(x,f)),function(){return p()}},[o]),(0,s.useEffect)(function(){return function(){return p()}},[]),(0,a.jsx)("span",{children:(0,c.Lz)(o)?r?r(h):(t=String(o).split(".")[1],(0,c.Mg)(h,(0,c.qE)(t?t.length:0,0,8))):String(o)})}function m(e){var n=e.children,t=(0,s.useRef)(null);return(0,s.useEffect)(function(){var e=setTimeout(function(){var e;null==(e=t.current)||e.focus()},1);return function(){clearTimeout(e)}},[]),(0,a.jsx)("div",{ref:t,tabIndex:-1,children:n})}function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function x(e){var n,t=e.children,r=e.interval,i=void 0===r?1e3:r,o=e.time,l=void 0===o?1e3:o,c=(n=(0,s.useState)(!1),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return p(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],d=c[1];return(0,s.useEffect)(function(){var e=setInterval(function(){d(!0),setTimeout(function(){d(!1)},l)},i+l);return function(){clearInterval(e)}},[i,l]),(0,a.jsx)("span",{style:{visibility:u?"hidden":"visible"},children:t})}var g=t(5490),j=t(3375);function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function y(e){var n,t,r=e.as,i=e.className,o=e.children,l=e.tw,a=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["as","className","children","tw"]),c=i?"".concat(i," ").concat((0,j.WP)(a)):(0,j.WP)(a);return(0,s.createElement)(void 0===r?"div":r,(n=b({},(0,j.Fl)(b({},a,(0,j.lO)(l)))),t=t={className:c},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n),o)}function v(e){var n=e.className,t=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["className"]);return(0,a.jsx)(y,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({className:(0,g.Ly)(["BlockQuote",n])},t))}var w=t(925);function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function _(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var C=/-o$/;function I(e){var n=e.name,t=void 0===n?"":n,r=e.size,i=e.spin,o=e.className,l=e.rotation,c=_(e,["name","size","spin","className","rotation"]),s=c.style||{};r&&(s.fontSize="".concat(100*r,"%")),l&&(s.transform="rotate(".concat(l,"deg)")),c.style=s;var u=(0,j.Fl)(c),d="";if(t.startsWith("tg-"))d=t;else{var f=C.test(t),h=t.replace(C,""),m=!h.startsWith("fa-");d=f?"far ":"fas ",m&&(d+="fa-"),d+=h,i&&(d+=" fa-spin")}return(0,a.jsx)("i",k({className:(0,g.Ly)(["Icon",d,o,(0,j.WP)(c)])},u))}function S(){return"undefined"!=typeof window}function O(e){return B(e)?(e.nodeName||"").toLowerCase():"#document"}function A(e){var n;return(null==e||null==(n=e.ownerDocument)?void 0:n.defaultView)||window}function P(e){var n;return null==(n=(B(e)?e.ownerDocument:e.document)||window.document)?void 0:n.documentElement}function B(e){return!!S()&&(e instanceof Node||e instanceof A(e).Node)}function E(e){return!!S()&&(e instanceof Element||e instanceof A(e).Element)}function z(e){return!!S()&&(e instanceof HTMLElement||e instanceof A(e).HTMLElement)}function T(e){return!!S()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof A(e).ShadowRoot)}(I||(I={})).Stack=function(e){var n,t,r=e.className,i=e.children,o=e.size,l=_(e,["className","children","size"]),c=l.style||{};return o&&(c.fontSize="".concat(100*o,"%")),l.style=c,(0,a.jsx)("span",(n=k({className:(0,g.Ly)(["IconStack",r,(0,j.WP)(l)])},(0,j.Fl)(l)),t=t={children:i},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))};let N=new Set(["inline","contents"]);function R(e){let{overflow:n,overflowX:t,overflowY:r,display:i}=H(e);return/auto|scroll|overlay|hidden|clip/.test(n+r+t)&&!N.has(i)}let $=new Set(["table","td","th"]),D=[":popover-open",":modal"];function M(e){return D.some(n=>{try{return e.matches(n)}catch(e){return!1}})}let L=["transform","translate","scale","rotate","perspective"],K=["transform","translate","scale","rotate","perspective","filter"],J=["paint","layout","strict","content"];function X(e){let n=U(),t=E(e)?H(e):e;return L.some(e=>!!t[e]&&"none"!==t[e])||!!t.containerType&&"normal"!==t.containerType||!n&&!!t.backdropFilter&&"none"!==t.backdropFilter||!n&&!!t.filter&&"none"!==t.filter||K.some(e=>(t.willChange||"").includes(e))||J.some(e=>(t.contain||"").includes(e))}function U(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let F=new Set(["html","body","#document"]);function V(e){return F.has(O(e))}function H(e){return A(e).getComputedStyle(e)}function W(e){return E(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function q(e){if("html"===O(e))return e;let n=e.assignedSlot||e.parentNode||T(e)&&e.host||P(e);return T(n)?n.host:n}function G(e,n,t){var r;void 0===n&&(n=[]),void 0===t&&(t=!0);let i=function e(n){let t=q(n);return V(t)?n.ownerDocument?n.ownerDocument.body:n.body:z(t)&&R(t)?t:e(t)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=A(i);if(o){let e=Y(l);return n.concat(l,l.visualViewport||[],R(i)?i:[],e&&t?G(e):[])}return n.concat(i,G(i,[],t))}function Y(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Q='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',Z="undefined"==typeof Element,ee=Z?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,en=!Z&&Element.prototype.getRootNode?function(e){var n;return null==e||null==(n=e.getRootNode)?void 0:n.call(e)}:function(e){return null==e?void 0:e.ownerDocument},et=function e(n,t){void 0===t&&(t=!0);var r,i=null==n||null==(r=n.getAttribute)?void 0:r.call(n,"inert");return""===i||"true"===i||t&&n&&e(n.parentNode)},er=function(e){var n,t=null==e||null==(n=e.getAttribute)?void 0:n.call(e,"contenteditable");return""===t||"true"===t},ei=function(e,n,t){if(et(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Q));return n&&ee.call(e,Q)&&r.unshift(e),r=r.filter(t)},eo=function e(n,t,r){for(var i=[],o=Array.from(n);o.length;){var l=o.shift();if(!et(l,!1))if("SLOT"===l.tagName){var a=l.assignedElements(),c=e(a.length?a:l.children,!0,r);r.flatten?i.push.apply(i,c):i.push({scopeParent:l,candidates:c})}else{ee.call(l,Q)&&r.filter(l)&&(t||!n.includes(l))&&i.push(l);var s=l.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(l),u=!et(s,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(s&&u){var d=e(!0===s?l.children:s.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:l,candidates:d})}else o.unshift.apply(o,l.children)}}return i},el=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ea=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||er(e))&&!el(e)?0:e.tabIndex},ec=function(e,n){var t=ea(e);return t<0&&n&&!el(e)?0:t},es=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},eu=function(e){return"INPUT"===e.tagName},ed=function(e,n){for(var t=0;t<e.length;t++)if(e[t].checked&&e[t].form===n)return e[t]},ef=function(e){if(!e.name)return!0;var n,t=e.form||en(e),r=function(e){return t.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)n=r(window.CSS.escape(e.name));else try{n=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=ed(n,e.form);return!i||i===e},eh=function(e){return eu(e)&&"radio"===e.type&&!ef(e)},em=function(e){var n,t,r,i,o,l,a,c=e&&en(e),s=null==(n=c)?void 0:n.host,u=!1;if(c&&c!==e)for(u=!!(null!=(t=s)&&null!=(r=t.ownerDocument)&&r.contains(s)||null!=e&&null!=(i=e.ownerDocument)&&i.contains(e));!u&&s;)u=!!(null!=(l=s=null==(o=c=en(s))?void 0:o.host)&&null!=(a=l.ownerDocument)&&a.contains(s));return u},ep=function(e){var n=e.getBoundingClientRect(),t=n.width,r=n.height;return 0===t&&0===r},ex=function(e,n){var t=n.displayCheck,r=n.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=ee.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ee.call(i,"details:not([open]) *"))return!0;if(t&&"full"!==t&&"legacy-full"!==t){if("non-zero-area"===t)return ep(e)}else{if("function"==typeof r){for(var o=e;e;){var l=e.parentElement,a=en(e);if(l&&!l.shadowRoot&&!0===r(l))return ep(e);e=e.assignedSlot?e.assignedSlot:l||a===e.ownerDocument?l:a.host}e=o}if(em(e))return!e.getClientRects().length;if("legacy-full"!==t)return!0}return!1},eg=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if("FIELDSET"===n.tagName&&n.disabled){for(var t=0;t<n.children.length;t++){var r=n.children.item(t);if("LEGEND"===r.tagName)return!!ee.call(n,"fieldset[disabled] *")||!r.contains(e)}return!0}n=n.parentElement}return!1},ej=function(e,n){return!(n.disabled||et(n)||eu(n)&&"hidden"===n.type||ex(n,e)||"DETAILS"===n.tagName&&Array.prototype.slice.apply(n.children).some(function(e){return"SUMMARY"===e.tagName})||eg(n))},eb=function(e,n){return!(eh(n)||0>ea(n))&&!!ej(e,n)},ey=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(n)||!!(n>=0)},ev=function e(n){var t=[],r=[];return n.forEach(function(n,i){var o=!!n.scopeParent,l=o?n.scopeParent:n,a=ec(l,o),c=o?e(n.candidates):l;0===a?o?t.push.apply(t,c):t.push(l):r.push({documentOrder:i,tabIndex:a,item:n,isScope:o,content:c})}),r.sort(es).reduce(function(e,n){return n.isScope?e.push.apply(e,n.content):e.push(n.content),e},[]).concat(t)},ew=function(e,n){return ev((n=n||{}).getShadowRoot?eo([e],n.includeContainer,{filter:eb.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:ey}):ei(e,n.includeContainer,eb.bind(null,n)))};function ek(e,n){if(!e||!n)return!1;let t=null==n.getRootNode?void 0:n.getRootNode();if(e.contains(n))return!0;if(t&&T(t)){let t=n;for(;t;){if(e===t)return!0;t=t.parentNode||t.host}}return!1}function e_(e){return"composedPath"in e?e.composedPath()[0]:e.target}function eC(e,n){return null!=n&&("composedPath"in e?e.composedPath().includes(n):null!=e.target&&n.contains(e.target))}function eI(e){return(null==e?void 0:e.ownerDocument)||document}function eS(e,n,t){return void 0===t&&(t=!0),e.filter(e=>{var r;return e.parentId===n&&(!t||(null==(r=e.context)?void 0:r.open))}).flatMap(n=>[n,...eS(e,n.id,t)])}function eO(e,n){let t=["mouse","pen"];return n||t.push("",void 0),t.includes(e)}var eA="undefined"!=typeof document?s.useLayoutEffect:function(){};function eP(e){let n=s.useRef(e);return eA(()=>{n.current=e}),n}let eB={...u}.useInsertionEffect||(e=>e());function eE(e){let n=s.useRef(()=>{});return eB(()=>{n.current=e}),s.useCallback(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)},[])}let ez=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function eT(e,n){let t=ew(e,ez()),r=t.length;if(0===r)return;let i=function(e){let n=e.activeElement;for(;(null==(t=n)||null==(t=t.shadowRoot)?void 0:t.activeElement)!=null;){var t;n=n.shadowRoot.activeElement}return n}(eI(e)),o=t.indexOf(i);return t[-1===o?1===n?0:r-1:o+n]}function eN(e,n){let t=n||e.currentTarget,r=e.relatedTarget;return!r||!ek(t,r)}function eR(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let n=e.dataset.tabindex;delete e.dataset.tabindex,n?e.setAttribute("tabindex",n):e.removeAttribute("tabindex")})}var e$=t(6634);let eD=Math.min,eM=Math.max,eL=Math.round,eK=Math.floor,eJ=e=>({x:e,y:e}),eX={left:"right",right:"left",bottom:"top",top:"bottom"},eU={start:"end",end:"start"};function eF(e,n){return"function"==typeof e?e(n):e}function eV(e){return e.split("-")[0]}function eH(e){return e.split("-")[1]}function eW(e){return"x"===e?"y":"x"}function eq(e){return"y"===e?"height":"width"}let eG=new Set(["top","bottom"]);function eY(e){return eG.has(eV(e))?"y":"x"}function eQ(e){return e.replace(/start|end/g,e=>eU[e])}let eZ=["left","right"],e0=["right","left"],e1=["top","bottom"],e2=["bottom","top"];function e8(e){return e.replace(/left|right|bottom|top/g,e=>eX[e])}function e3(e){let{x:n,y:t,width:r,height:i}=e;return{width:r,height:i,top:t,left:n,right:n+r,bottom:t+i,x:n,y:t}}function e5(e,n,t){let r,{reference:i,floating:o}=e,l=eY(n),a=eW(eY(n)),c=eq(a),s=eV(n),u="y"===l,d=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[c]/2-o[c]/2;switch(s){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-o.width,y:f};break;default:r={x:i.x,y:i.y}}switch(eH(n)){case"start":r[a]-=h*(t&&u?-1:1);break;case"end":r[a]+=h*(t&&u?-1:1)}return r}let e4=async(e,n,t)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=t,a=o.filter(Boolean),c=await (null==l.isRTL?void 0:l.isRTL(n)),s=await l.getElementRects({reference:e,floating:n,strategy:i}),{x:u,y:d}=e5(s,r,c),f=r,h={},m=0;for(let t=0;t<a.length;t++){let{name:o,fn:p}=a[t],{x:x,y:g,data:j,reset:b}=await p({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:s,platform:l,elements:{reference:e,floating:n}});u=null!=x?x:u,d=null!=g?g:d,h={...h,[o]:{...h[o],...j}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(s=!0===b.rects?await l.getElementRects({reference:e,floating:n,strategy:i}):b.rects),{x:u,y:d}=e5(s,f,c)),t=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:h}};async function e6(e,n){var t,r;void 0===n&&(n={});let{x:i,y:o,platform:l,rects:a,elements:c,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=eF(n,e),p="number"!=typeof(r=m)?{top:0,right:0,bottom:0,left:0,...r}:{top:r,right:r,bottom:r,left:r},x=c[h?"floating"===f?"reference":"floating":f],g=e3(await l.getClippingRect({element:null==(t=await (null==l.isElement?void 0:l.isElement(x)))||t?x:x.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(c.floating)),boundary:u,rootBoundary:d,strategy:s})),j="floating"===f?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c.floating)),y=await (null==l.isElement?void 0:l.isElement(b))&&await (null==l.getScale?void 0:l.getScale(b))||{x:1,y:1},v=e3(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:j,offsetParent:b,strategy:s}):j);return{top:(g.top-v.top+p.top)/y.y,bottom:(v.bottom-g.bottom+p.bottom)/y.y,left:(g.left-v.left+p.left)/y.x,right:(v.right-g.right+p.right)/y.x}}let e7=new Set(["left","top"]);async function e9(e,n){let{placement:t,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=eV(t),a=eH(t),c="y"===eY(t),s=e7.has(l)?-1:1,u=o&&c?-1:1,d=eF(n,e),{mainAxis:f,crossAxis:h,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof m&&(h="end"===a?-1*m:m),c?{x:h*u,y:f*s}:{x:f*s,y:h*u}}function ne(e){let n=H(e),t=parseFloat(n.width)||0,r=parseFloat(n.height)||0,i=z(e),o=i?e.offsetWidth:t,l=i?e.offsetHeight:r,a=eL(t)!==o||eL(r)!==l;return a&&(t=o,r=l),{width:t,height:r,$:a}}function nn(e){return E(e)?e:e.contextElement}function nt(e){let n=nn(e);if(!z(n))return eJ(1);let t=n.getBoundingClientRect(),{width:r,height:i,$:o}=ne(n),l=(o?eL(t.width):t.width)/r,a=(o?eL(t.height):t.height)/i;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let nr=eJ(0);function ni(e){let n=A(e);return U()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:nr}function no(e,n,t,r){var i;void 0===n&&(n=!1),void 0===t&&(t=!1);let o=e.getBoundingClientRect(),l=nn(e),a=eJ(1);n&&(r?E(r)&&(a=nt(r)):a=nt(e));let c=(void 0===(i=t)&&(i=!1),r&&(!i||r===A(l))&&i)?ni(l):eJ(0),s=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(l){let e=A(l),n=r&&E(r)?A(r):r,t=e,i=Y(t);for(;i&&r&&n!==t;){let e=nt(i),n=i.getBoundingClientRect(),r=H(i),o=n.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=n.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,d*=e.x,f*=e.y,s+=o,u+=l,i=Y(t=A(i))}}return e3({width:d,height:f,x:s,y:u})}function nl(e,n){let t=W(e).scrollLeft;return n?n.left+t:no(P(e)).left+t}function na(e,n){let t=e.getBoundingClientRect();return{x:t.left+n.scrollLeft-nl(e,t),y:t.top+n.scrollTop}}let nc=new Set(["absolute","fixed"]);function ns(e,n,t){var r;let i;if("viewport"===n)i=function(e,n){let t=A(e),r=P(e),i=t.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,c=0;if(i){o=i.width,l=i.height;let e=U();(!e||e&&"fixed"===n)&&(a=i.offsetLeft,c=i.offsetTop)}let s=nl(r);if(s<=0){let e=r.ownerDocument,n=e.body,t=getComputedStyle(n),i="CSS1Compat"===e.compatMode&&parseFloat(t.marginLeft)+parseFloat(t.marginRight)||0,l=Math.abs(r.clientWidth-n.clientWidth-i);l<=25&&(o-=l)}else s<=25&&(o+=s);return{width:o,height:l,x:a,y:c}}(e,t);else if("document"===n){let n,t,o,l,a,c,s;r=P(e),n=P(r),t=W(r),o=r.ownerDocument.body,l=eM(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),a=eM(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight),c=-t.scrollLeft+nl(r),s=-t.scrollTop,"rtl"===H(o).direction&&(c+=eM(n.clientWidth,o.clientWidth)-l),i={width:l,height:a,x:c,y:s}}else if(E(n)){let e,r,o,l,a,c;r=(e=no(n,!0,"fixed"===t)).top+n.clientTop,o=e.left+n.clientLeft,l=z(n)?nt(n):eJ(1),a=n.clientWidth*l.x,c=n.clientHeight*l.y,i={width:a,height:c,x:o*l.x,y:r*l.y}}else{let t=ni(e);i={x:n.x-t.x,y:n.y-t.y,width:n.width,height:n.height}}return e3(i)}function nu(e){return"static"===H(e).position}function nd(e,n){if(!z(e)||"fixed"===H(e).position)return null;if(n)return n(e);let t=e.offsetParent;return P(e)===t&&(t=t.ownerDocument.body),t}function nf(e,n){var t;let r=A(e);if(M(e))return r;if(!z(e)){let n=q(e);for(;n&&!V(n);){if(E(n)&&!nu(n))return n;n=q(n)}return r}let i=nd(e,n);for(;i&&(t=i,$.has(O(t)))&&nu(i);)i=nd(i,n);return i&&V(i)&&nu(i)&&!X(i)?r:i||function(e){let n=q(e);for(;z(n)&&!V(n);){if(X(n))return n;if(M(n))break;n=q(n)}return null}(e)||r}let nh=async function(e){let n=this.getOffsetParent||nf,t=this.getDimensions,r=await t(e.floating);return{reference:function(e,n,t){let r=z(n),i=P(n),o="fixed"===t,l=no(e,!0,o,n),a={scrollLeft:0,scrollTop:0},c=eJ(0);if(r||!r&&!o)if(("body"!==O(n)||R(i))&&(a=W(n)),r){let e=no(n,!0,o,n);c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}else i&&(c.x=nl(i));o&&!r&&i&&(c.x=nl(i));let s=!i||r||o?eJ(0):na(i,a);return{x:l.left+a.scrollLeft-c.x-s.x,y:l.top+a.scrollTop-c.y-s.y,width:l.width,height:l.height}}(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},nm={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:n,rect:t,offsetParent:r,strategy:i}=e,o="fixed"===i,l=P(r),a=!!n&&M(n.floating);if(r===l||a&&o)return t;let c={scrollLeft:0,scrollTop:0},s=eJ(1),u=eJ(0),d=z(r);if((d||!d&&!o)&&(("body"!==O(r)||R(l))&&(c=W(r)),z(r))){let e=no(r);s=nt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=!l||d||o?eJ(0):na(l,c);return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-c.scrollLeft*s.x+u.x+f.x,y:t.y*s.y-c.scrollTop*s.y+u.y+f.y}},getDocumentElement:P,getClippingRect:function(e){let{element:n,boundary:t,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===t?M(n)?[]:function(e,n){let t=n.get(e);if(t)return t;let r=G(e,[],!1).filter(e=>E(e)&&"body"!==O(e)),i=null,o="fixed"===H(e).position,l=o?q(e):e;for(;E(l)&&!V(l);){let n=H(l),t=X(l);t||"fixed"!==n.position||(i=null),(o?!t&&!i:!t&&"static"===n.position&&!!i&&nc.has(i.position)||R(l)&&!t&&function e(n,t){let r=q(n);return!(r===t||!E(r)||V(r))&&("fixed"===H(r).position||e(r,t))}(e,l))?r=r.filter(e=>e!==l):i=n,l=q(l)}return n.set(e,r),r}(n,this._c):[].concat(t),r],l=o[0],a=o.reduce((e,t)=>{let r=ns(n,t,i);return e.top=eM(r.top,e.top),e.right=eD(r.right,e.right),e.bottom=eD(r.bottom,e.bottom),e.left=eM(r.left,e.left),e},ns(n,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:nf,getElementRects:nh,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:n,height:t}=ne(e);return{width:n,height:t}},getScale:nt,isElement:E,isRTL:function(e){return"rtl"===H(e).direction}};function np(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}var nx="undefined"!=typeof document?s.useLayoutEffect:function(){};function ng(e,n){let t,r,i;if(e===n)return!0;if(typeof e!=typeof n)return!1;if("function"==typeof e&&e.toString()===n.toString())return!0;if(e&&n&&"object"==typeof e){if(Array.isArray(e)){if((t=e.length)!==n.length)return!1;for(r=t;0!=r--;)if(!ng(e[r],n[r]))return!1;return!0}if((t=(i=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(r=t;0!=r--;)if(!({}).hasOwnProperty.call(n,i[r]))return!1;for(r=t;0!=r--;){let t=i[r];if(("_owner"!==t||!e.$$typeof)&&!ng(e[t],n[t]))return!1}return!0}return e!=e&&n!=n}function nj(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nb(e,n){let t=nj(e);return Math.round(n*t)/t}function ny(e){let n=s.useRef(e);return nx(()=>{n.current=e}),n}let nv="active",nw="selected",nk={...u},n_=!1,nC=0,nI=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+nC++,nS=nk.useId||function(){let[e,n]=s.useState(()=>n_?nI():void 0);return eA(()=>{null==e&&n(nI())},[]),s.useEffect(()=>{n_=!0},[]),e},nO=s.createContext(null),nA=s.createContext(null),nP=()=>{var e;return(null==(e=s.useContext(nO))?void 0:e.id)||null};function nB(e){return"data-floating-ui-"+e}function nE(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}let nz=nB("safe-polygon");function nT(e,n,t){if(t&&!eO(t))return 0;if("number"==typeof e)return e;if("function"==typeof e){let t=e();return"number"==typeof t?t:null==t?void 0:t[n]}return null==e?void 0:e[n]}function nN(e){return"function"==typeof e?e():e}let nR={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},n$=s.forwardRef(function(e,n){let[t,r]=s.useState();eA(()=>{/apple/i.test(navigator.vendor)&&r("button")},[]);let i={ref:n,tabIndex:0,role:t,"aria-hidden":!t||void 0,[nB("focus-guard")]:"",style:nR};return(0,a.jsx)("span",{...e,...i})}),nD=s.createContext(null),nM=nB("portal");function nL(e){let{children:n,id:t,root:r,preserveTabOrder:i=!0}=e,o=function(e){void 0===e&&(e={});let{id:n,root:t}=e,r=nS(),i=nK(),[o,l]=s.useState(null),a=s.useRef(null);return eA(()=>()=>{null==o||o.remove(),queueMicrotask(()=>{a.current=null})},[o]),eA(()=>{if(!r||a.current)return;let e=n?document.getElementById(n):null;if(!e)return;let t=document.createElement("div");t.id=r,t.setAttribute(nM,""),e.appendChild(t),a.current=t,l(t)},[n,r]),eA(()=>{if(null===t||!r||a.current)return;let e=t||(null==i?void 0:i.portalNode);e&&!B(e)&&(e=e.current),e=e||document.body;let o=null;n&&((o=document.createElement("div")).id=n,e.appendChild(o));let c=document.createElement("div");c.id=r,c.setAttribute(nM,""),(e=o||e).appendChild(c),a.current=c,l(c)},[n,t,r,i]),o}({id:t,root:r}),[l,c]=s.useState(null),u=s.useRef(null),d=s.useRef(null),f=s.useRef(null),h=s.useRef(null),m=null==l?void 0:l.modal,p=null==l?void 0:l.open,x=!!l&&!l.modal&&l.open&&i&&!!(r||o);return s.useEffect(()=>{if(o&&i&&!m)return o.addEventListener("focusin",e,!0),o.addEventListener("focusout",e,!0),()=>{o.removeEventListener("focusin",e,!0),o.removeEventListener("focusout",e,!0)};function e(e){o&&eN(e)&&("focusin"===e.type?eR:function(e){ew(e,ez()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(o)}},[o,i,m]),s.useEffect(()=>{!o||p||eR(o)},[p,o]),(0,a.jsxs)(nD.Provider,{value:s.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:u,afterOutsideRef:d,beforeInsideRef:f,afterInsideRef:h,portalNode:o,setFocusManagerState:c}),[i,o]),children:[x&&o&&(0,a.jsx)(n$,{"data-type":"outside",ref:u,onFocus:e=>{var n,t;if(eN(e,o))null==(n=f.current)||n.focus();else{let e=eT(eI(t=l?l.domReference:null).body,-1)||t;null==e||e.focus()}}}),x&&o&&(0,a.jsx)("span",{"aria-owns":o.id,style:nR}),o&&e$.createPortal(n,o),x&&o&&(0,a.jsx)(n$,{"data-type":"outside",ref:d,onFocus:e=>{var n,t;if(eN(e,o))null==(n=h.current)||n.focus();else{let n=eT(eI(t=l?l.domReference:null).body,1)||t;null==n||n.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}let nK=()=>s.useContext(nD);function nJ(e){return z(e.target)&&"BUTTON"===e.target.tagName}function nX(e){return z(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}let nU={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},nF={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},nV=e=>{var n,t;return{escapeKey:"boolean"==typeof e?e:null!=(n=null==e?void 0:e.escapeKey)&&n,outsidePress:"boolean"==typeof e?e:null==(t=null==e?void 0:e.outsidePress)||t}};function nH(e,n,t){let r=new Map,i="item"===t,o=e;if(i&&e){let{[nv]:n,[nw]:t,...r}=e;o=r}return{..."floating"===t&&{tabIndex:-1,"data-floating-ui-focusable":""},...o,...n.map(n=>{let r=n?n[t]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,n)=>(n&&Object.entries(n).forEach(n=>{let[t,o]=n;if(!(i&&[nv,nw].includes(t)))if(0===t.indexOf("on")){if(r.has(t)||r.set(t,[]),"function"==typeof o){var l;null==(l=r.get(t))||l.push(o),e[t]=function(){for(var e,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return null==(e=r.get(t))?void 0:e.map(e=>e(...i)).find(e=>void 0!==e)}}}else e[t]=o}),e),{})}}function nW(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function nq(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function nG(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function nY(e){let n,t,r,i,o,l;var c,u,d,f,h,m,p,x,j,b,y,v,w,k,_,C=e.allowedOutsideClasses,I=e.animationDuration,S=e.children,O=e.closeAfterInteract,A=e.content,B=e.contentAutoWidth,T=e.contentClasses,N=e.contentOffset,R=e.contentStyles,$=e.disabled,D=e.hoverDelay,M=e.hoverOpen,L=e.handleOpen,K=e.onMounted,J=e.placement,X=e.preventPortal,F=e.stopChildPropagation,W=e.onOpenChange,Y=(c=(0,s.useState)(!1),function(e){if(Array.isArray(e))return e}(c)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(c,2)||function(e,n){if(e){if("string"==typeof e)return nW(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return nW(e,2)}}(c,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),Q=Y[0],Z=Y[1],ee=function(e){void 0===e&&(e={});let{nodeId:n}=e,t=function(e){let{open:n=!1,onOpenChange:t,elements:r}=e,i=nS(),o=s.useRef({}),[l]=s.useState(()=>{let e;return e=new Map,{emit(n,t){var r;null==(r=e.get(n))||r.forEach(e=>e(t))},on(n,t){e.has(n)||e.set(n,new Set),e.get(n).add(t)},off(n,t){var r;null==(r=e.get(n))||r.delete(t)}}}),a=null!=nP(),[c,u]=s.useState(r.reference),d=eE((e,n,r)=>{o.current.openEvent=e?n:void 0,l.emit("openchange",{open:e,event:n,reason:r,nested:a}),null==t||t(e,n,r)}),f=s.useMemo(()=>({setPositionReference:u}),[]),h=s.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return s.useMemo(()=>({dataRef:o,open:n,onOpenChange:d,elements:h,events:l,floatingId:i,refs:f}),[n,d,h,l,i,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||t,i=r.elements,[o,l]=s.useState(null),[a,c]=s.useState(null),u=(null==i?void 0:i.domReference)||o,d=s.useRef(null),f=s.useContext(nA);eA(()=>{u&&(d.current=u)},[u]);let h=function(e){void 0===e&&(e={});let{placement:n="bottom",strategy:t="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,f]=s.useState({x:0,y:0,strategy:t,placement:n,middlewareData:{},isPositioned:!1}),[h,m]=s.useState(r);ng(h,r)||m(r);let[p,x]=s.useState(null),[g,j]=s.useState(null),b=s.useCallback(e=>{e!==k.current&&(k.current=e,x(e))},[]),y=s.useCallback(e=>{e!==_.current&&(_.current=e,j(e))},[]),v=o||p,w=l||g,k=s.useRef(null),_=s.useRef(null),C=s.useRef(d),I=null!=c,S=ny(c),O=ny(i),A=ny(u),P=s.useCallback(()=>{var e,r;let i,o,l;if(!k.current||!_.current)return;let a={placement:n,strategy:t,middleware:h};O.current&&(a.platform=O.current),(e=k.current,r=_.current,i=new Map,l={...(o={platform:nm,...a}).platform,_c:i},e4(e,r,{...o,platform:l})).then(e=>{let n={...e,isPositioned:!1!==A.current};B.current&&!ng(C.current,n)&&(C.current=n,e$.flushSync(()=>{f(n)}))})},[h,n,t,O,A]);nx(()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let B=s.useRef(!1);nx(()=>(B.current=!0,()=>{B.current=!1}),[]),nx(()=>{if(v&&(k.current=v),w&&(_.current=w),v&&w){if(S.current)return S.current(v,w,P);P()}},[v,w,P,S,I]);let E=s.useMemo(()=>({reference:k,floating:_,setReference:b,setFloating:y}),[b,y]),z=s.useMemo(()=>({reference:v,floating:w}),[v,w]),T=s.useMemo(()=>{let e={position:t,left:0,top:0};if(!z.floating)return e;let n=nb(z.floating,d.x),r=nb(z.floating,d.y);return a?{...e,transform:"translate("+n+"px, "+r+"px)",...nj(z.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:n,top:r}},[t,a,z.floating,d.x,d.y]);return s.useMemo(()=>({...d,update:P,refs:E,elements:z,floatingStyles:T}),[d,P,E,z,T])}({...e,elements:{...i,...a&&{reference:a}}}),m=s.useCallback(e=>{let n=E(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;c(n),h.refs.setReference(n)},[h.refs]),p=s.useCallback(e=>{(E(e)||null===e)&&(d.current=e,l(e)),(E(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!E(e))&&h.refs.setReference(e)},[h.refs]),x=s.useMemo(()=>({...h.refs,setReference:p,setPositionReference:m,domReference:d}),[h.refs,p,m]),g=s.useMemo(()=>({...h.elements,domReference:u}),[h.elements,u]),j=s.useMemo(()=>({...h,...r,refs:x,elements:g,nodeId:n}),[h,x,g,n,r]);return eA(()=>{r.dataRef.current.floatingContext=j;let e=null==f?void 0:f.nodesRef.current.find(e=>e.id===n);e&&(e.context=j)}),s.useMemo(()=>({...h,context:j,refs:x,elements:g}),[h,x,g,j])}({middleware:[{...(void 0===(f=u=void 0===N?6:N)&&(f=0),{name:"offset",options:f,async fn(e){var n,t;let{x:r,y:i,placement:o,middlewareData:l}=e,a=await e9(e,f);return o===(null==(n=l.offset)?void 0:n.placement)&&null!=(t=l.arrow)&&t.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:o}}}}),options:[u,d]},{...{name:"flip",options:p=h={padding:6},async fn(e){var n,t,r,i,o,l,a,c;let s,u,d,{placement:f,middlewareData:h,rects:m,initialPlacement:x,platform:g,elements:j}=e,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:v,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:_=!0,...C}=eF(p,e);if(null!=(n=h.arrow)&&n.alignmentOffset)return{};let I=eV(f),S=eY(x),O=eV(x)===x,A=await (null==g.isRTL?void 0:g.isRTL(j.floating)),P=v||(O||!_?[e8(x)]:(s=e8(x),[eQ(x),s,eQ(s)])),B="none"!==k;!v&&B&&P.push(...(u=eH(x),d=function(e,n,t){switch(e){case"top":case"bottom":if(t)return n?e0:eZ;return n?eZ:e0;case"left":case"right":return n?e1:e2;default:return[]}}(eV(x),"start"===k,A),u&&(d=d.map(e=>e+"-"+u),_&&(d=d.concat(d.map(eQ)))),d));let E=[x,...P],z=await e6(e,C),T=[],N=(null==(t=h.flip)?void 0:t.overflows)||[];if(b&&T.push(z[I]),y){let e,n,t,r,i=(l=f,a=m,void 0===(c=A)&&(c=!1),e=eH(l),t=eq(n=eW(eY(l))),r="x"===n?e===(c?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[t]>a.floating[t]&&(r=e8(r)),[r,e8(r)]);T.push(z[i[0]],z[i[1]])}if(N=[...N,{placement:f,overflows:T}],!T.every(e=>e<=0)){let e=((null==(r=h.flip)?void 0:r.index)||0)+1,n=E[e];if(n&&("alignment"!==y||S===eY(n)||N.every(e=>eY(e.placement)!==S||e.overflows[0]>0)))return{data:{index:e,overflows:N},reset:{placement:n}};let t=null==(i=N.filter(e=>e.overflows[0]<=0).sort((e,n)=>e.overflows[1]-n.overflows[1])[0])?void 0:i.placement;if(!t)switch(w){case"bestFit":{let e=null==(o=N.filter(e=>{if(B){let n=eY(e.placement);return n===S||"y"===n}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,n)=>e+n,0)]).sort((e,n)=>e[1]-n[1])[0])?void 0:o[0];e&&(t=e);break}case"initialPlacement":t=x}if(f!==t)return{reset:{placement:t}}}return{}}},options:[h,m]},{...(void 0===(b=x)&&(b={}),{name:"shift",options:b,async fn(e){let{x:n,y:t,placement:r}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:e=>{let{x:n,y:t}=e;return{x:n,y:t}}},...a}=eF(b,e),c={x:n,y:t},s=await e6(e,a),u=eY(eV(r)),d=eW(u),f=c[d],h=c[u];if(i){let e="y"===d?"top":"left",n="y"===d?"bottom":"right",t=f+s[e],r=f-s[n];f=eM(t,eD(f,r))}if(o){let e="y"===u?"top":"left",n="y"===u?"bottom":"right",t=h+s[e],r=h-s[n];h=eM(t,eD(h,r))}let m=l.fn({...e,[d]:f,[u]:h});return{...m,data:{x:m.x-n,y:m.y-t,enabled:{[d]:i,[u]:o}}}}}),options:[x,j]},B&&{...{name:"size",options:w=y={apply:function(e){var n=e.rects;e.elements.floating.style.width="".concat(n.reference.width,"px")}},async fn(e){var n,t;let r,i,{placement:o,rects:l,platform:a,elements:c}=e,{apply:s=()=>{},...u}=eF(w,e),d=await e6(e,u),f=eV(o),h=eH(o),m="y"===eY(o),{width:p,height:x}=l.floating;"top"===f||"bottom"===f?(r=f,i=h===(await (null==a.isRTL?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(i=f,r="end"===h?"top":"bottom");let g=x-d.top-d.bottom,j=p-d.left-d.right,b=eD(x-d[r],g),y=eD(p-d[i],j),v=!e.middlewareData.shift,k=b,_=y;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(_=j),null!=(t=e.middlewareData.shift)&&t.enabled.y&&(k=g),v&&!h){let e=eM(d.left,0),n=eM(d.right,0),t=eM(d.top,0),r=eM(d.bottom,0);m?_=p-2*(0!==e||0!==n?e+n:eM(d.left,d.right)):k=x-2*(0!==t||0!==r?t+r:eM(d.top,d.bottom))}await s({...e,availableWidth:_,availableHeight:k});let C=await a.getDimensions(c.floating);return p!==C.width||x!==C.height?{reset:{rects:!0}}:{}}},options:[y,v]}],onOpenChange:function(e){Z(e),null==W||W(e)},open:Q,placement:J||"bottom",transform:!1,whileElementsMounted:function(e,n,t){return void 0!==K&&K(),function(e,n,t,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,u=nn(e),d=o||l?[...u?G(u):[],...G(n)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",t,{passive:!0}),l&&e.addEventListener("resize",t)});let f=u&&c?function(e,n){let t,r=null,i=P(e);function o(){var e;clearTimeout(t),null==(e=r)||e.disconnect(),r=null}return!function l(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),o();let s=e.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=s;if(a||n(),!f||!h)return;let m={rootMargin:-eK(d)+"px "+-eK(i.clientWidth-(u+f))+"px "+-eK(i.clientHeight-(d+h))+"px "+-eK(u)+"px",threshold:eM(0,eD(1,c))||1},p=!0;function x(n){let r=n[0].intersectionRatio;if(r!==c){if(!p)return l();r?l(!1,r):t=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||np(s,e.getBoundingClientRect())||l(),p=!1}try{r=new IntersectionObserver(x,{...m,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(x,m)}r.observe(e)}(!0),o}(u,t):null,h=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&m&&(m.unobserve(n),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(n)})),t()}),u&&!s&&m.observe(u),m.observe(n));let p=s?no(e):null;return s&&function n(){let r=no(e);p&&!np(p,r)&&t(),p=r,i=requestAnimationFrame(n)}(),t(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",t),l&&e.removeEventListener("resize",t)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(i)}}(e,n,t,{ancestorResize:!1,ancestorScroll:!1,elementResize:!1})}}),en=ee.refs,et=ee.floatingStyles,er=ee.context,ei=function(e,n){void 0===n&&(n={});let{open:t,elements:{floating:r}}=e,{duration:i=250}=n,o=("number"==typeof i?i:i.close)||0,[l,a]=s.useState("unmounted"),c=function(e,n){let[t,r]=s.useState(e);return e&&!t&&r(!0),s.useEffect(()=>{if(!e&&t){let e=setTimeout(()=>r(!1),n);return()=>clearTimeout(e)}},[e,t,n]),t}(t,o);return c||"close"!==l||a("unmounted"),eA(()=>{if(r){if(t){a("initial");let e=requestAnimationFrame(()=>{e$.flushSync(()=>{a("open")})});return()=>{cancelAnimationFrame(e)}}a("close")}},[t,r]),{isMounted:c,status:l}}(er,{duration:I||200}),eo=ei.isMounted,el=ei.status,ea=function(e,n){void 0===n&&(n={});let{open:t,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:l=!0,escapeKey:a=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:f="pointerdown",ancestorScroll:h=!1,bubbles:m,capture:p}=n,x=s.useContext(nA),g=eE("function"==typeof c?c:()=>!1),j="function"==typeof c?g:c,b=s.useRef(!1),{escapeKey:y,outsidePress:v}=nV(m),{escapeKey:w,outsidePress:k}=nV(p),_=s.useRef(!1),C=eE(e=>{var n;if(!t||!l||!a||"Escape"!==e.key||_.current)return;let i=null==(n=o.current.floatingContext)?void 0:n.nodeId,c=x?eS(x.nodesRef.current,i):[];if(!y&&(e.stopPropagation(),c.length>0)){let e=!0;if(c.forEach(n=>{var t;if(null!=(t=n.context)&&t.open&&!n.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),I=eE(e=>{var n;let t=()=>{var n;C(e),null==(n=e_(e))||n.removeEventListener("keydown",t)};null==(n=e_(e))||n.addEventListener("keydown",t)}),S=eE(e=>{var n;let t=o.current.insideReactTree;o.current.insideReactTree=!1;let l=b.current;if(b.current=!1,"click"===u&&l||t||"function"==typeof j&&!j(e))return;let a=e_(e),c="["+nB("inert")+"]",s=eI(i.floating).querySelectorAll(c),d=E(a)?a:null;for(;d&&!V(d);){let e=q(d);if(V(e)||!E(e))break;d=e}if(s.length&&E(a)&&!a.matches("html,body")&&!ek(a,i.floating)&&Array.from(s).every(e=>!ek(d,e)))return;if(z(a)&&P){let n=V(a),t=H(a),r=/auto|scroll/,i=n||r.test(t.overflowX),o=n||r.test(t.overflowY),l=i&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,c=o&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,s="rtl"===t.direction,u=c&&(s?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),d=l&&e.offsetY>a.clientHeight;if(u||d)return}let f=null==(n=o.current.floatingContext)?void 0:n.nodeId,h=x&&eS(x.nodesRef.current,f).some(n=>{var t;return eC(e,null==(t=n.context)?void 0:t.elements.floating)});if(eC(e,i.floating)||eC(e,i.domReference)||h)return;let m=x?eS(x.nodesRef.current,f):[];if(m.length>0){let e=!0;if(m.forEach(n=>{var t;if(null!=(t=n.context)&&t.open&&!n.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,"outside-press")}),O=eE(e=>{var n;let t=()=>{var n;S(e),null==(n=e_(e))||n.removeEventListener(u,t)};null==(n=e_(e))||n.addEventListener(u,t)});s.useEffect(()=>{if(!t||!l)return;o.current.__escapeKeyBubbles=y,o.current.__outsidePressBubbles=v;let e=-1;function n(e){r(!1,e,"ancestor-scroll")}function c(){window.clearTimeout(e),_.current=!0}function s(){e=window.setTimeout(()=>{_.current=!1},5*!!U())}let d=eI(i.floating);a&&(d.addEventListener("keydown",w?I:C,w),d.addEventListener("compositionstart",c),d.addEventListener("compositionend",s)),j&&d.addEventListener(u,k?O:S,k);let f=[];return h&&(E(i.domReference)&&(f=G(i.domReference)),E(i.floating)&&(f=f.concat(G(i.floating))),!E(i.reference)&&i.reference&&i.reference.contextElement&&(f=f.concat(G(i.reference.contextElement)))),(f=f.filter(e=>{var n;return e!==(null==(n=d.defaultView)?void 0:n.visualViewport)})).forEach(e=>{e.addEventListener("scroll",n,{passive:!0})}),()=>{a&&(d.removeEventListener("keydown",w?I:C,w),d.removeEventListener("compositionstart",c),d.removeEventListener("compositionend",s)),j&&d.removeEventListener(u,k?O:S,k),f.forEach(e=>{e.removeEventListener("scroll",n)}),window.clearTimeout(e)}},[o,i,a,j,u,t,r,h,l,y,v,C,w,I,S,k,O]),s.useEffect(()=>{o.current.insideReactTree=!1},[o,j,u]);let A=s.useMemo(()=>({onKeyDown:C,...d&&{[nU[f]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==f&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[C,r,d,f]),P=s.useMemo(()=>({onKeyDown:C,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[nF[u]]:()=>{o.current.insideReactTree=!0}}),[C,u,o]);return s.useMemo(()=>l?{reference:A,floating:P}:{},[l,A,P])}(er,{ancestorScroll:!0,outsidePress:function(e){var n,t;return!C||(n=e.target,(null!=(t=Element)&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](n):n instanceof t)&&!e.target.closest(C))}}),ec=function(e,n){void 0===n&&(n={});let{open:t,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:l=!0,event:a="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0,stickIfOpen:f=!0}=n,h=s.useRef(),m=s.useRef(!1),p=s.useMemo(()=>({onPointerDown(e){h.current=e.pointerType},onMouseDown(e){let n=h.current;0!==e.button||"click"===a||eO(n,!0)&&u||(t&&c&&(!i.current.openEvent||!f||"mousedown"===i.current.openEvent.type)?r(!1,e.nativeEvent,"click"):(e.preventDefault(),r(!0,e.nativeEvent,"click")))},onClick(e){let n=h.current;if("mousedown"===a&&h.current){h.current=void 0;return}eO(n,!0)&&u||(t&&c&&(!i.current.openEvent||!f||"click"===i.current.openEvent.type)?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))},onKeyDown(e){h.current=void 0,!(e.defaultPrevented||!d||nJ(e))&&(" "!==e.key||nX(o)||(e.preventDefault(),m.current=!0),z(e.target)&&"A"===e.target.tagName||"Enter"!==e.key||(t&&c?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click")))},onKeyUp(e){!(e.defaultPrevented||!d||nJ(e)||nX(o))&&" "===e.key&&m.current&&(m.current=!1,t&&c?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))}}),[i,o,a,u,d,r,t,f,c]);return s.useMemo(()=>l?{reference:p}:{},[l,p])}(er,{enabled:!$}),es=function(e,n){void 0===n&&(n={});let{open:t,onOpenChange:r,dataRef:i,events:o,elements:l}=e,{enabled:a=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:f=0,move:h=!0}=n,m=s.useContext(nA),p=nP(),x=eP(u),g=eP(c),j=eP(t),b=eP(f),y=s.useRef(),v=s.useRef(-1),w=s.useRef(),k=s.useRef(-1),_=s.useRef(!0),C=s.useRef(!1),I=s.useRef(()=>{}),S=s.useRef(!1),O=eE(()=>{var e;let n=null==(e=i.current.openEvent)?void 0:e.type;return(null==n?void 0:n.includes("mouse"))&&"mousedown"!==n});s.useEffect(()=>{if(a)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{open:n}=e;n||(nE(v),nE(k),_.current=!0,S.current=!1)}},[a,o]),s.useEffect(()=>{if(!a||!x.current||!t)return;function e(e){O()&&r(!1,e,"hover")}let n=eI(l.floating).documentElement;return n.addEventListener("mouseleave",e),()=>{n.removeEventListener("mouseleave",e)}},[l.floating,t,r,a,x,O]);let A=s.useCallback(function(e,n,t){void 0===n&&(n=!0),void 0===t&&(t="hover");let i=nT(g.current,"close",y.current);i&&!w.current?(nE(v),v.current=window.setTimeout(()=>r(!1,e,t),i)):n&&(nE(v),r(!1,e,t))},[g,r]),P=eE(()=>{I.current(),w.current=void 0}),B=eE(()=>{if(C.current){let e=eI(l.floating).body;e.style.pointerEvents="",e.removeAttribute(nz),C.current=!1}}),z=eE(()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type));s.useEffect(()=>{if(a&&E(l.domReference)){let r=l.domReference,i=l.floating;return t&&r.addEventListener("mouseleave",o),h&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",n),i&&(i.addEventListener("mouseleave",o),i.addEventListener("mouseenter",c),i.addEventListener("mouseleave",s)),()=>{t&&r.removeEventListener("mouseleave",o),h&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",n),i&&(i.removeEventListener("mouseleave",o),i.removeEventListener("mouseenter",c),i.removeEventListener("mouseleave",s))}}function e(e){if(nE(v),_.current=!1,d&&!eO(y.current)||nN(b.current)>0&&!nT(g.current,"open"))return;let n=nT(g.current,"open",y.current);n?v.current=window.setTimeout(()=>{j.current||r(!0,e,"hover")},n):t||r(!0,e,"hover")}function n(e){if(z())return void B();I.current();let n=eI(l.floating);if(nE(k),S.current=!1,x.current&&i.current.floatingContext){t||nE(v),w.current=x.current({...i.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){B(),P(),z()||A(e,!0,"safe-polygon")}});let r=w.current;n.addEventListener("mousemove",r),I.current=()=>{n.removeEventListener("mousemove",r)};return}"touch"===y.current&&ek(l.floating,e.relatedTarget)||A(e)}function o(e){z()||i.current.floatingContext&&(null==x.current||x.current({...i.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){B(),P(),z()||A(e)}})(e))}function c(){nE(v)}function s(e){z()||A(e,!1)}},[l,a,e,d,h,A,P,B,r,t,j,m,g,x,i,z,b]),eA(()=>{var e,n;if(a&&t&&null!=(e=x.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&O()){C.current=!0;let e=l.floating;if(E(l.domReference)&&e){let t=eI(l.floating).body;t.setAttribute(nz,"");let r=l.domReference,i=null==m||null==(n=m.nodesRef.current.find(e=>e.id===p))||null==(n=n.context)?void 0:n.elements.floating;return i&&(i.style.pointerEvents=""),t.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{t.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[a,t,p,l,m,x,O]),eA(()=>{t||(y.current=void 0,S.current=!1,P(),B())},[t,P,B]),s.useEffect(()=>()=>{P(),nE(v),nE(k),B()},[a,l.domReference,P,B]);let T=s.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:n}=e;function i(){_.current||j.current||r(!0,n,"hover")}d&&!eO(y.current)||t||0===nN(b.current)||S.current&&e.movementX**2+e.movementY**2<2||(nE(k),"touch"===y.current?i():(S.current=!0,k.current=window.setTimeout(i,nN(b.current))))}}},[d,r,t,j,b]);return s.useMemo(()=>a?{reference:T}:{},[a,T])}(er,{enabled:!$,restMs:D||200}),eu=void 0!==L,ed=(n=(k=eu?[]:[ea,M?es:ec]).map(e=>null==e?void 0:e.reference),t=k.map(e=>null==e?void 0:e.floating),r=k.map(e=>null==e?void 0:e.item),i=s.useCallback(e=>nH(e,k,"reference"),n),o=s.useCallback(e=>nH(e,k,"floating"),t),l=s.useCallback(e=>nH(e,k,"item"),r),s.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:l}),[i,o,l])),ef=ed.getReferenceProps,eh=ed.getFloatingProps,em=ef(nq({ref:en.setReference},F&&{onClick:function(e){return e.stopPropagation()}})),ep=eh({onClick:function(){O&&er.onOpenChange(!1)},ref:en.setFloating});(0,s.useEffect)(function(){eu&&er.onOpenChange(L)},[L]),_=(0,s.isValidElement)(S)?(0,s.cloneElement)(S,em):(0,a.jsx)("div",nG(nq({},em),{children:S}));var ex=(0,a.jsx)("div",nG(nq({className:(0,g.Ly)(["Floating",!I&&"Floating--animated",T]),"data-position":er.placement,"data-transition":el,style:nq({},et,R)},ep),{children:A}));return(0,a.jsxs)(a.Fragment,{children:[_,eo&&!!A&&(X?ex:(0,a.jsx)(nL,{id:"tgui-root",children:ex}))]})}function nQ(e){var n=e.content,t=e.children,r=e.position;return(0,a.jsx)(nY,{content:n,contentClasses:"Tooltip",hoverOpen:!0,placement:r,children:t})}function nZ(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function n0(e,n,t,r,i,o,l){try{var a=e[o](l),c=a.value}catch(e){t(e);return}a.done?n(c):Promise.resolve(c).then(r,i)}function n1(e){return function(){var n=this,t=arguments;return new Promise(function(r,i){var o=e.apply(n,t);function l(e){n0(o,r,i,l,a,"next",e)}function a(e){n0(o,r,i,l,a,"throw",e)}l(void 0)})}}function n2(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function n8(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function n3(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function n5(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return nZ(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return nZ(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n4(e,n){var t,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=a(0),l.throw=a(1),l.return=a(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(c){var s=[a,c];if(t)throw TypeError("Generator is already executing.");for(;l&&(l=0,s[0]&&(o=0)),o;)try{if(t=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],r=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}function n6(e){var n=e.captureKeys,t=void 0===n||n,r=e.children,i=e.circular,o=e.className,l=e.color,c=e.compact,s=e.content,u=e.disabled,d=e.ellipsis,f=e.fluid,h=e.icon,m=e.iconColor,p=e.iconPosition,x=e.iconRotation,b=e.iconSize,y=e.iconSpin,v=e.onClick,k=e.selected,_=e.tooltip,C=e.tooltipPosition,S=e.verticalAlignContent,O=n3(e,["captureKeys","children","circular","className","color","compact","content","disabled","ellipsis","fluid","icon","iconColor","iconPosition","iconRotation","iconSize","iconSpin","onClick","selected","tooltip","tooltipPosition","verticalAlignContent"]),A=s||r,P=(0,a.jsx)(I,{className:"Button--icon",color:m,name:h||"",rotation:x,size:b,spin:y}),B=(0,a.jsx)("div",n8(n2({className:(0,g.Ly)(["Button",f&&"Button--fluid",u&&"Button--disabled",k&&"Button--selected",i&&"Button--circular",c&&"Button--compact",!A&&"Button--empty",h&&"Button--hasIcon",p&&"Button--icon-".concat(p),S&&"Button--flex",S&&f&&"Button--flex--fluid",S&&"Button--verticalAlignContent--".concat(S),"Button--color--".concat(l||"default"),o,(0,j.WP)(O)]),onClick:function(e){!u&&v&&v(e)},onKeyDown:function(e){if(t){if(e.key===w._.Space||e.key===w._.Enter){e.preventDefault(),!u&&v&&v(e);return}(0,w.KL)(e.key)&&e.preventDefault()}},tabIndex:u?void 0:0},(0,j.Fl)(O)),{children:(0,a.jsxs)("div",{className:(0,g.Ly)(["Button__content",d&&"Button__content--ellipsis"]),children:[h&&"right"!==p&&P,d?(0,a.jsx)("span",{className:"Button--ellipsis",children:A}):A,h&&"right"===p&&P]})}));return _&&(B=(0,a.jsx)(nQ,{content:_,position:C,children:B})),B}function n7(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function n9(e){return function(e){if(Array.isArray(e))return n7(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return n7(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n7(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){for(var i=arguments.length,o=Array(i),l=0;l<i;l++)o[l]=arguments[l];var a=r&&!t;clearTimeout(t),t=setTimeout(function(){t=null,r||e.apply(void 0,n9(o))},n),a&&e.apply(void 0,n9(o))}}function tn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function tt(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}(r=n6||(n6={})).Checkbox=function(e){var n=e.checked,t=n3(e,["checked"]);return(0,a.jsx)(n6,n2({color:"transparent",icon:n?"check-square-o":"square-o",selected:n},t))},r.Confirm=function(e){var n=e.children,t=e.color,r=e.confirmColor,i=e.confirmContent,o=e.confirmIcon,l=(e.ellipsis,e.icon),c=e.onBlur,u=e.onClick,d=n3(e,["children","color","confirmColor","confirmContent","confirmIcon","ellipsis","icon","onBlur","onClick"]),f=n5((0,s.useState)(!1),2),h=f[0],m=f[1];return(0,a.jsx)(n6,n8(n2({color:h?void 0===r?"bad":r:t,icon:h?o:l,onBlur:function(e){m(!1),null==c||c(e)},onClick:function(e){h?(null==u||u(e),m(!1)):m(!0)}},d),{children:h?void 0===i?"Confirm?":i:n}))},r.Input=function(e){var n=e.buttonText,t=(e.children,e.color),r=e.disabled,i=e.fluid,o=e.icon,l=e.iconRotation,c=e.iconSpin,u=e.maxLength,d=e.onCommit,f=e.ref,h=e.value,m=void 0===h?"":h,p=n3(e,["buttonText","children","color","disabled","fluid","icon","iconRotation","iconSpin","maxLength","onCommit","ref","value"]),x=n5((0,s.useState)(m),2),j=x[0],b=x[1],v=n5((0,s.useState)(!1),2),k=v[0],_=v[1],C=(0,s.useRef)(!1),S=(0,s.createRef)(),O=null!=f?f:S;return(0,s.useEffect)(function(){var e,n;k&&(null==(e=O.current)||e.focus(),null==(n=O.current)||n.select())},[k]),(0,s.useEffect)(function(){k||m===j||b(m)},[k,m]),(0,a.jsxs)(y,n8(n2({className:(0,g.Ly)(["Button",i&&"Button--fluid",r&&"Button--disabled","Button--color--".concat(void 0===t?"default":t)]),onClick:function(){r||_(!0)}},p),{children:[o&&(0,a.jsx)(I,{name:o,rotation:l,spin:c}),null!=n?n:j,(0,a.jsx)("input",{className:"NumberInput__input",disabled:!!r,maxLength:u,onBlur:function(){C.current||m===j||(null==d||d(j),C.current=!1),_(!1)},onChange:function(e){b(e.currentTarget.value)},onKeyDown:function(e){if(e.key===w._.Enter){e.preventDefault(),e.currentTarget.blur();return}if((0,w.KL)(e.key)){e.preventDefault(),C.current=!0,e.currentTarget.blur();return}},ref:O,spellCheck:"false",style:{display:k?"":"none",textAlign:"left"},type:"text",value:j})]}))},r.File=function(e){var n=e.accept,t=e.multiple,r=e.onSelectFiles,i=n3(e,["accept","multiple","onSelectFiles"]),o=(0,s.useRef)(null);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n6,n2({onClick:function(){var e;return null==(e=o.current)?void 0:e.click()}},i)),(0,a.jsx)("input",{accept:n,hidden:!0,multiple:t,onChange:function(e){return n1(function(){var n,i;return n4(this,function(o){switch(o.label){case 0:if(!(null==(n=e.target.files)?void 0:n.length))return[3,2];return[4,n1(function(){return n4(this,function(e){switch(e.label){case 0:return[4,Promise.all(Array.from(n).map(function(e){var n=new FileReader;return new Promise(function(t){n.onload=function(){return t(n.result)},n.readAsText(e)})}))];case 1:return[2,e.sent()]}})})()];case 1:i=o.sent(),r(t?i:i[0]),o.label=2;case 2:return[2]}})})()},ref:o,type:"file"})]})};var tr=[];function ti(e){var n=e.params,t=e.phonehome,r=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["params","phonehome"]),i=(0,s.useRef)(null),o=(0,s.useRef)(function(e){var n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=tr.length;tr.push(null);var r=e||"byondui_".concat(t);return{render:function(e){n&&Byond.sendMessage("renderByondUi",{renderByondUi:r}),tr[t]=r,Byond.winset(r,e)},unmount:function(){n&&Byond.sendMessage("unmountByondUi",{renderByondUi:r}),tr[t]=null,Byond.winset(r,{parent:""})}}}(null==n?void 0:n.id,t));function l(){var e=i.current;if(e){var t,r,l,a=(r=null!=(t=window.devicePixelRatio)?t:1,{pos:[(l=e.getBoundingClientRect()).left*r,l.top*r],size:[(l.right-l.left)*r,(l.bottom-l.top)*r]});o.current.render(tt(tn({parent:Byond.windowId},n),{pos:"".concat(a.pos[0],",").concat(a.pos[1]),size:"".concat(a.size[0],"x").concat(a.size[1])}))}}var c=te(function(){l()},100);return(0,s.useEffect)(function(){return window.addEventListener("resize",c),l(),function(){window.removeEventListener("resize",c),o.current.unmount()}},[]),(0,a.jsx)("div",tt(tn({ref:i},(0,j.Fl)(r)),{children:(0,a.jsx)("div",{style:{minHeight:"22px"}})}))}window.addEventListener("beforeunload",function(){for(var e=0;e<tr.length;e++){var n=tr[e];"string"==typeof n&&(tr[e]=null,Byond.winset(n,{parent:""}))}});var to=t(2476);function tl(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function ta(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||ts(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tc(e){return function(e){if(Array.isArray(e))return tl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ts(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ts(e,n){if(e){if("string"==typeof e)return tl(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tl(e,n)}}var tu={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0};function td(e){var n,t,r=e.data,i=e.rangeX,o=e.rangeY,l=e.fillColor,c=e.strokeColor,u=e.strokeWidth,d=void 0===u?2:u,f=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"]),h=(0,s.useRef)(null),m=ta((0,s.useState)([600,200]),2),p=m[0],x=m[1],g=function(e,n,t,r){if(0===e.length)return[];var i,o,l=to.y.apply(void 0,tc(e)),a=l.map(function(e){return(i=Math).min.apply(i,tc(e))}),c=l.map(function(e){return(o=Math).max.apply(o,tc(e))});return void 0!==t&&(a[0]=t[0],c[0]=t[1]),void 0!==r&&(a[1]=r[0],c[1]=r[1]),e.map(function(e){return(0,to.y)(e,a,c,n).map(function(e){var n=ta(e,4),t=n[0],r=n[1];return(t-r)/(n[2]-r)*n[3]})})}(void 0===r?[]:r,p,i,o);if(g.length>0){var j=g[0],b=g[g.length-1];g.push([p[0]+d,b[1]]),g.push([p[0]+d,-d]),g.push([-d,-d]),g.push([-d,j[1]])}var v=function(e){for(var n="",t=0;t<e.length;t++){var r=e[t];n+="".concat(r[0],",").concat(r[1]," ")}return n}(g);function w(){var e=h.current;if(e){var n=e.getBoundingClientRect();x([n.width,n.height])}}return(0,s.useEffect)(function(){return window.addEventListener("resize",w),w(),function(){window.removeEventListener("resize",w)}},[]),(0,a.jsx)(y,(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({position:"relative"},f),t=t={children:(0,a.jsx)("div",{ref:h,style:tu,children:(0,a.jsxs)("svg",{preserveAspectRatio:"none",style:tu,viewBox:"0 0 ".concat(p[0]," ").concat(p[1]),children:[(0,a.jsx)("title",{children:"chart"}),(0,a.jsx)("polyline",{fill:void 0===l?"none":l,points:v,stroke:void 0===c?"#ffffff":c,strokeWidth:d,transform:"scale(1, -1) translate(0, -".concat(p[1],")")})]})})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))}function tf(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function th(e){var n,t,r,i=e.children,o=e.child_mt,l=e.childStyles,c=e.color,u=e.title,d=e.buttons,f=e.icon,h=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["children","child_mt","childStyles","color","title","buttons","icon"]),m=(n=(0,s.useState)(e.open),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return tf(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tf(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=m[0],x=m[1];return(0,a.jsxs)(y,{mb:1,children:[(0,a.jsxs)("div",{className:"Table",children:[(0,a.jsx)("div",{className:"Table__cell",children:(0,a.jsx)(n6,(t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({color:c,fluid:!0,icon:f||(p?"chevron-down":"chevron-right"),onClick:function(){return x(!p)}},h),r=r={children:u},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}),d&&(0,a.jsx)("div",{className:"Table__cell Table__cell--collapsing",children:d})]}),p&&(0,a.jsx)(y,{mt:void 0===o?1:o,style:l,children:i})]})}function tm(e){var n,t,r=e.content,i=(e.children,e.className),o=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["content","children","className"]);return o.color=r?null:"default",o.backgroundColor=e.color||"default",(0,a.jsx)("div",(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({className:(0,g.Ly)(["ColorBox",i,(0,j.WP)(o)])},(0,j.Fl)(o)),t=t={children:r||""},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))}function tp(e){var n,t,r=e.className,i=e.children,o=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["className","children"]);return(0,a.jsx)(y,(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({className:(0,g.Ly)(["Dimmer",r])},o),t=t={children:(0,a.jsx)("div",{className:"Dimmer__inner",children:i})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))}function tx(e){var n=e.hidden,t=e.vertical;return(0,a.jsx)("div",{className:(0,g.Ly)(["Divider",n&&"Divider--hidden",t?"Divider--vertical":"Divider--horizontal"])})}function tg(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function tj(e){var n,t,r=e.fixBlur,i=e.fixErrors,o=e.objectFit,l=e.src,c=void 0===l?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=":l,u=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["fixBlur","fixErrors","objectFit","src"]),d=(0,s.useRef)(0),f=(0,s.useRef)(null),h=(0,j.Fl)(u);return n=tg({},h.style),t=t={imageRendering:void 0===r||r?"pixelated":"auto",objectFit:void 0===o?"fill":o},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),h.style=n,(0,s.useEffect)(function(){return function(){f.current&&clearTimeout(f.current)}},[]),(0,a.jsx)("img",tg({alt:"dm icon",onError:function(e){if(!i||d.current>=5){f.current&&clearTimeout(f.current);return}var n=e.currentTarget;f.current=setTimeout(function(){n.src="".concat(c,"?attempt=").concat(d.current),d.current++},1e3)},src:c},h))}function tb(e){var n,t=e.direction,r=e.fallback,i=e.frame,o=e.icon_state,l=e.icon,c=e.movement,s=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["direction","fallback","frame","icon_state","icon","movement"]),u=null==(n=Byond.iconRefMap)?void 0:n[l];return u?(0,a.jsx)(tj,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({fixErrors:!0,src:"".concat(u,"?state=").concat(o,"&dir=").concat(void 0===t?2:t,"&movement=").concat(!!(void 0!==c&&c),"&frame=").concat(void 0===i?1:i)},s)):r}function ty(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function tv(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return ty(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ty(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tw(e,n){return e.screenX*n[0]+e.screenY*n[1]}function tk(e){var n=e.animated,t=e.children,r=e.dragMatrix,i=void 0===r?[1,0]:r,o=e.tickWhileDragging,l=e.format,u=e.maxValue,d=void 0===u?1/0:u,f=e.minValue,m=void 0===f?-1/0:f,p=e.onChange,x=e.step,g=void 0===x?1:x,j=e.stepPixelSize,b=e.unclamped,y=e.unit,v=e.updateRate,k=void 0===v?400:v,_=e.fontSize,C=e.height,I=e.lineHeight,S=tv((0,s.useState)(e.value),2),O=(S[0],S[1]),A=tv((0,s.useState)(!1),2),P=A[0],B=A[1],E=(0,s.useRef)(!1),z=(0,s.useRef)(e.value),T=(0,s.useRef)(0),N=(0,s.useRef)(0),R=(0,s.useRef)(null),$=(0,s.useRef)(null),D=(0,s.useRef)(null),M=(0,s.useRef)(null);function L(e){var n=N.current;if(null===n)throw Error("Origin is unset.");var t=tw(e,i),r=R.current;if(null===r)throw Error("Final step pixel size has not been computed.");var o=T.current;if(null===o)throw Error("Original value is unset.");var l=(0,c.qE)(Math.floor(o/g)*g+Math.trunc((t-n)/r)*g,m,d);z.current=l,O(l)}function K(e){document.body.style["pointer-events"]="auto",D.current&&clearInterval(D.current),N.current=null,R.current=null,T.current=null,document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",K),E.current&&(null==p||p(e,z.current),E.current=!1)}(0,s.useEffect)(function(){e.value!==z.current&&(z.current=e.value,O(e.value))},[e.value]);var J=e.value;E.current&&(J=z.current);var X=(0,a.jsxs)(a.Fragment,{children:[n&&!E.current?(0,a.jsx)(h,{format:l,value:J}):l?l(J):J,y?" ".concat(y):""]}),U=(0,a.jsx)("input",{className:"NumberInput__input",onBlur:function(e){var n=Number.parseFloat(e.currentTarget.value);(b||(n=(0,c.qE)(n,m,d)),Number.isNaN(n))?B(!1):(z.current=n,O(n),null==p||p(e.nativeEvent,n),P&&B(!1))},onKeyDown:function(e){(e.key===w._.Enter||(0,w.KL)(e.key))&&B(!1)},ref:$,style:{display:P?void 0:"none",fontSize:_,height:C,lineHeight:I}});return t({displayElement:X,displayValue:J,dragging:E.current,editing:P,handleDragStart:function(n){if(!P){if("number"!=typeof j){var t=n.currentTarget.offsetWidth/((d-m)/g);if(void 0===j)R.current=t;else if("function"==typeof j)R.current=j(t);else throw Error("Unsupported value for stepPixelSize of type ".concat(void 0===j?"undefined":j&&"undefined"!=typeof Symbol&&j.constructor===Symbol?"symbol":typeof j))}else R.current=j;document.body.style["pointer-events"]="none",N.current=tw(n.nativeEvent,i),T.current=e.value,E.current=!0,document.addEventListener("mouseup",K),M.current=setTimeout(function(){var e=n.nativeEvent;if(E.current)document.addEventListener("mousemove",L),D.current=setInterval(function(){E.current&&o&&(null==p||p(e,z.current))},k);else if(B(!0),$.current){var t=$.current;t.value=z.current.toString(),setTimeout(function(){t.focus(),t.select()},10)}M.current&&clearTimeout(M.current)},100)}},inputElement:U})}function t_(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function tC(e){return"string"==typeof e?e:e.value}function tI(e){var n,t=e.autoScroll,r=void 0===t||t,i=e.buttons,o=e.className,l=e.color,c=e.disabled,u=e.displayText,d=e.icon,f=e.iconRotation,h=e.iconSpin,m=e.iconOnly,p=e.menuWidth,x=e.noChevron,b=e.onClick,y=e.onSelected,v=e.options,k=void 0===v?[]:v,_=e.over,C=e.placeholder,S=e.selected,O=e.fluid,A=e.width,P=(n=(0,s.useState)(!1),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return t_(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return t_(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),B=P[0],E=P[1],z=(0,s.useRef)(null),T=k.findIndex(function(e){return tC(e)===S})||0;function N(e){var n=e;n=e<T?e<2?0:e-2:e>k.length-3?k.length-1:e-2;var t=z.current,r=null==t?void 0:t.children[n];t&&r&&(t.scrollTop=r.offsetTop)}function R(e){if(!(k.length<1)&&!c){var n,t=k.length-1;n=T<0?"next"===e?t:0:"next"===e?T===t?0:T+1:0===T?t:T-1,B&&r&&N(n),null==y||y(tC(k[n]))}}var $=_?"top":"bottom";return m&&($="".concat($,"-start")),(0,a.jsxs)("div",{className:(0,g.Ly)(["Dropdown",O&&"Dropdown--fluid"]),children:[(0,a.jsx)(nY,{allowedOutsideClasses:".Dropdown__button",closeAfterInteract:!0,content:(0,a.jsx)("div",{className:"Dropdown__menu",ref:z,children:0===k.length?(0,a.jsx)("div",{className:"Dropdown__menu--entry",children:"No options"}):k.map(function(e){var n=tC(e);return(0,a.jsx)("div",{className:(0,g.Ly)(["Dropdown__menu--entry",S===n&&"selected"]),onClick:function(){null==y||y(n)},onKeyDown:function(e){e.key===w._.Enter&&(null==y||y(n))},children:"string"==typeof e?e:e.displayText},n)})}),contentAutoWidth:!p,contentClasses:"Dropdown__menu--wrapper",contentStyles:{width:p?(0,j.zA)(p):void 0},disabled:c,onMounted:function(){B&&r&&-1!==T&&N(T)},onOpenChange:E,placement:$,children:(0,a.jsxs)("div",{className:(0,g.Ly)(["Dropdown__control","Button--color--".concat(void 0===l?"default":l),c&&"Button--disabled",m&&"Dropdown__control--icon-only",o]),onClick:function(e){(!c||B)&&(null==b||b(e))},onKeyDown:function(e){e.key!==w._.Enter||c||null==b||b(e)},style:{width:(0,j.zA)(void 0===A?15:A)},children:[d&&(0,a.jsx)(I,{className:"Dropdown__icon",name:d,rotation:f,spin:h}),!m&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"Dropdown__selected-text",children:u||S&&tC(S)||(void 0===C?"Select...":C)}),!x&&(0,a.jsx)(I,{className:(0,g.Ly)(["Dropdown__icon","Dropdown__icon--arrow",_&&"over",B&&"open"]),name:"chevron-down"})]})]})}),i&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n6,{className:"Dropdown__button",disabled:c,icon:"chevron-left",onClick:function(){R("previous")}}),(0,a.jsx)(n6,{className:"Dropdown__button",disabled:c,icon:"chevron-right",onClick:function(){R("next")}})]})]})}function tS(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function tO(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function tA(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function tP(e){return(0,g.Ly)(["Flex",e.inlineFlex&&"Flex--inline",(0,j.WP)(e)])}function tB(e){var n=e.direction,t=e.wrap,r=e.align,i=e.justify,o=tA(e,["direction","wrap","align","justify"]);return(0,j.Fl)(tS({style:tO(tS({},o.style),{alignItems:r,flexDirection:n,flexWrap:!0===t?"wrap":t,justifyContent:i})},o))}function tE(e){var n=e.className,t=tA(e,["className"]);return(0,a.jsx)("div",tS({className:(0,g.Ly)([n,tP(t)])},tB(t)))}function tz(e){var n,t=e.style,r=e.grow,i=e.order,o=e.shrink,l=e.basis,a=e.align,c=tA(e,["style","grow","order","shrink","basis","align"]),s=null!=(n=null!=l?l:e.width)?n:void 0!==r?0:void 0;return(0,j.Fl)(tS({style:tO(tS({},t),{alignSelf:a,flexBasis:(0,j.zA)(s),flexGrow:void 0!==r&&Number(r),flexShrink:void 0!==o&&Number(o),order:i})},c))}function tT(e){var n,t,r=e.asset,i=e.assetSize,o=e.base64,l=e.buttons,c=e.buttonsAlt,s=e.children,u=e.className,d=e.color,f=e.disabled,h=e.dmFallback,m=e.dmIcon,p=e.dmIconState,x=e.fluid,b=e.fallbackIcon,y=e.imageSize,v=void 0===y?64:y,w=e.imageSrc,k=e.onClick,_=e.onRightClick,C=e.selected,I=e.title,S=e.tooltip,O=e.tooltipPosition,A=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["asset","assetSize","base64","buttons","buttonsAlt","children","className","color","disabled","dmFallback","dmIcon","dmIconState","fluid","fallbackIcon","imageSize","imageSrc","onClick","onRightClick","selected","title","tooltip","tooltipPosition"]),P=(0,a.jsxs)("div",{className:"ImageButton__container",onClick:function(e){!f&&k&&k(e)},onContextMenu:function(e){e.preventDefault(),!f&&_&&_(e)},onKeyDown:function(e){"Enter"===e.key&&!f&&k&&k(e)},style:{width:x?"auto":"calc(".concat(v,"px + 0.5em + 2px)")},tabIndex:f?void 0:0,children:[(0,a.jsx)("div",{className:"ImageButton__image",children:o||w?(0,a.jsx)(tj,{height:"".concat(v,"px"),src:o?"data:image/png;base64,".concat(o):w,width:"".concat(v,"px")}):m&&p?(0,a.jsx)(tb,{fallback:h||(0,a.jsx)(tN,{icon:"spinner",size:v,spin:!0}),height:"".concat(v,"px"),icon:m,icon_state:p,width:"".concat(v,"px")}):r?(0,a.jsx)(tj,{className:(0,g.Ly)(r||[]),height:"".concat(v,"px"),style:{transform:"scale(".concat(v/(void 0===i?32:i),")"),transformOrigin:"top left"},width:"".concat(v,"px")}):(0,a.jsx)(tN,{icon:b||"question",size:v})}),x&&(I||s)?(0,a.jsxs)("div",{className:"ImageButton__content",children:[I&&(0,a.jsx)("span",{className:(0,g.Ly)(["ImageButton__content--title",!!s&&"ImageButton__content--divider"]),children:I}),s&&(0,a.jsx)("span",{className:"ImageButton__content--text",children:s})]}):s&&(0,a.jsx)("span",{className:"ImageButton__content",children:s})]});return S&&(P=(0,a.jsx)(nQ,{content:S,position:O,children:P})),(0,a.jsxs)("div",(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({className:(0,g.Ly)(["ImageButton",x&&"ImageButton--fluid",C&&"ImageButton--selected",f&&"ImageButton--disabled",!s&&"ImageButton--empty",!(k||_)&&"ImageButton--noAction",d&&"string"==typeof d?"ImageButton__color--".concat(d):"ImageButton__color--default",u])},(0,j.Fl)(A)),t=t={children:[P,l&&(0,a.jsx)("div",{className:(0,g.Ly)(["ImageButton__buttons",!s&&"ImageButton__buttons--empty"]),style:{width:"auto"},children:l}),c&&(0,a.jsx)("div",{className:(0,g.Ly)(["ImageButton__buttons","ImageButton__buttons--alt",!s&&"ImageButton__buttons--empty"]),style:{maxWidth:x?"auto":"calc(".concat(v,"px + 0.5em)"),width:"calc(".concat(v,"px + ").concat(.5*!x,"em)")},children:c})]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))}function tN(e){var n=e.icon,t=e.spin,r=e.size,i=void 0===r?64:r;return(0,a.jsx)(I,{className:"ImageButton__image--fallback",height:"".concat(i,"px"),name:n,spin:t,style:{fontSize:"".concat(i,"px")},width:"".concat(i,"px")})}td.Line=td,(i={})[i.NORTH=1]="NORTH",i[i.SOUTH=2]="SOUTH",i[i.EAST=4]="EAST",i[i.WEST=8]="WEST",i[i.NORTHEAST=5]="NORTHEAST",i[i.NORTHWEST=9]="NORTHWEST",i[i.SOUTHEAST=6]="SOUTHEAST",i[i.SOUTHWEST=10]="SOUTHWEST",tE.Item=function(e){var n=e.className,t=tA(e,["className"]);return(0,a.jsx)("div",tS({className:(0,g.Ly)([n,(0,g.Ly)(["Flex__item",(0,j.WP)(e)])])},tz(t)))};var tR=t(2316);function t$(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function tD(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function tM(e){var n=e.className,t=e.value,r=e.minValue,i=e.maxValue,o=e.color,l=e.ranges,s=e.empty,u=e.children,d=e.fractionDigits,f=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["className","value","minValue","maxValue","color","ranges","empty","children","fractionDigits"]),h=(0,c.hs)(t,void 0===r?0:r,void 0===i?1:i),m=void 0!==u,p=o||(0,c.TG)(t,void 0===l?{}:l)||"default",x=(0,j.Fl)(f),b=["ProgressBar",n,(0,j.WP)(f)],y={width:"".concat(100*(0,c.J$)(h),"%")};return tR.NE.includes(p)||"default"===p?b.push("ProgressBar--color--".concat(p)):(x.style=tD(t$({},x.style),{borderColor:p}),y.backgroundColor=p),(0,a.jsxs)("div",tD(t$({className:(0,g.Ly)(b)},x),{children:[(0,a.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:y}),(0,a.jsx)("div",{className:"ProgressBar__content",children:m?u:!s&&"".concat((100*h).toFixed(void 0===d?0:d),"%")})]}))}function tL(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function tK(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function tJ(e){var n=e.className,t=e.vertical,r=e.fill,i=e.reverse,o=e.zebra,l=tK(e,["className","vertical","fill","reverse","zebra"]);return(0,a.jsx)("div",tL({className:(0,g.Ly)(["Stack",r&&"Stack--fill",t?"Stack--vertical":"Stack--horizontal",o&&"Stack--zebra",i&&"Stack--reverse".concat(t?"--vertical":""),n,tP(e)])},tB(tL({direction:"".concat(t?"column":"row").concat(i?"-reverse":"")},l))))}function tX(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}tJ.Item=function(e){var n,t=e.className,r=e.innerRef,i=tK(e,["className","innerRef"]),o=(0,s.useRef)(null!=(n=null==r?void 0:r.current)?n:null);return(0,a.jsx)("div",tL({className:(0,g.Ly)(["Stack__item",t,(0,j.WP)(i)]),ref:o},tz(i)))},tJ.Divider=function(e){var n=e.className,t=e.hidden,r=tK(e,["className","hidden"]);return(0,a.jsx)("div",tL({className:(0,g.Ly)(["Stack__item","Stack__divider",t&&"Stack__divider--hidden",n,(0,j.WP)(r)])},tz(r)))};var tU=te(function(e){return e()},250);function tF(e){var n,t,r,i=e.autoFocus,o=e.autoSelect,l=e.className,c=e.disabled,u=e.expensive,d=e.fluid,f=e.maxLength,h=e.monospace,m=e.onBlur,p=e.onChange,x=e.onEnter,b=e.onEscape,y=e.onKeyDown,v=e.placeholder,k=e.ref,_=e.selfClear,C=e.spellcheck,I=e.value,S=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["autoFocus","autoSelect","className","disabled","expensive","fluid","maxLength","monospace","onBlur","onChange","onEnter","onEscape","onKeyDown","placeholder","ref","selfClear","spellcheck","value"]),O=(0,s.useRef)(null),A=null!=k?k:O,P=(n=(0,s.useState)(null!=I?I:""),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return tX(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tX(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),B=P[0],E=P[1];(0,s.useEffect)(function(){var e;return(i||o)&&(e=setTimeout(function(){var e,n;null==(e=A.current)||e.focus(),o&&(null==(n=A.current)||n.select())},1)),function(){return clearTimeout(e)}},[]),(0,s.useEffect)(function(){A.current&&document.activeElement!==A.current&&I!==B&&E(null!=I?I:"")},[I]);var z=(0,j.Fl)(S),T=(0,g.Ly)(["Input",c&&"Input--disabled",d&&"Input--fluid",h&&"Input--monospace",(0,j.WP)(S),l]);return(0,a.jsx)("input",(t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({},z),r=r={autoComplete:"off",className:T,disabled:c,maxLength:f,onBlur:function(){return null==m?void 0:m(B)},onChange:function(e){var n=e.currentTarget.value;E(n),u?tU(function(){return null==p?void 0:p(n)}):null==p||p(n)},onKeyDown:function(e){if(null==y||y(e),e.key===w._.Enter){e.preventDefault(),null==x||x(e.currentTarget.value),_&&E(""),e.currentTarget.blur();return}(0,w.KL)(e.key)&&(e.preventDefault(),null==b||b(e.currentTarget.value),e.currentTarget.blur())},placeholder:v,ref:A,spellCheck:void 0!==C&&C,type:"text",value:B},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}function tV(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function tH(e){var n=e.animated,t=e.tickWhileDragging,r=e.format,i=e.maxValue,o=e.minValue,l=e.onChange,s=e.step,u=e.stepPixelSize,d=e.unclamped,f=e.unit,h=e.value,m=e.bipolar,p=e.popupPosition,x=e.className,b=e.color,y=e.fillValue,v=e.ranges,w=void 0===v?{}:v,k=e.size,_=void 0===k?1:k,C=e.style,I=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["animated","tickWhileDragging","format","maxValue","minValue","onChange","step","stepPixelSize","unclamped","unit","value","bipolar","popupPosition","className","color","fillValue","ranges","size","style"]);return(0,a.jsx)(tk,{dragMatrix:[0,-1],animated:n,tickWhileDragging:t,format:r,maxValue:i,minValue:o,onChange:l,step:s,stepPixelSize:u,unclamped:d,unit:f,value:h,children:function(e){var n,t,r=e.displayElement,l=e.displayValue,s=e.dragging,u=e.handleDragStart,d=e.inputElement,f=(0,c.hs)(null!=y?y:l,o,i),v=(0,c.hs)(l,o,i),k=b||(0,c.TG)(null!=y?y:h,w)||"default",S=Math.min((v-.5)*270,225);return(0,a.jsx)(nY,{content:r,contentClasses:"Knob__popupValue",handleOpen:s,placement:p||"top",preventPortal:!0,children:(0,a.jsxs)("div",(n=tV({className:(0,g.Ly)(["Knob","Knob--color--".concat(k),m&&"Knob--bipolar",x,(0,j.WP)(I)])},(0,j.Fl)(tV({style:tV({fontSize:"".concat(_,"em")},C)},I))),t=t={onMouseDown:u,children:[(0,a.jsx)("div",{className:"Knob__circle",children:(0,a.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate(".concat(S,"deg)")},children:(0,a.jsx)("div",{className:"Knob__cursor"})})}),(0,a.jsxs)("svg",{className:"Knob__ring Knob__ringTrackPivot",viewBox:"0 0 100 100",children:[(0,a.jsx)("circle",{className:"Knob__ringTrack",cx:"50",cy:"50",r:"50"}),(0,a.jsx)("title",{children:"track"})]}),(0,a.jsxs)("svg",{className:"Knob__ring Knob__ringFillPivot",viewBox:"0 0 100 100",children:[(0,a.jsx)("title",{children:"fill"}),(0,a.jsx)("circle",{className:"Knob__ringFill",cx:"50",cy:"50",r:"50",style:{strokeDashoffset:Math.max(((m?2.75:2)-1.5*f)*Math.PI*50,0)}})]}),d]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))})}})}function tW(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function tq(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function tG(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function tY(e){var n=e.children,t=e.wrap,r=tG(e,["children","wrap"]);return(0,a.jsx)(tE,tq(tW({align:"stretch",justify:"space-between",mx:-.5,wrap:t},r),{children:n}))}function tQ(e){var n=e.children;return(0,a.jsx)("table",{className:"LabeledList",children:(0,a.jsx)("tbody",{children:n})})}function tZ(e){var n,t,r=e.children,i=e.className,o=e.disabled,l=e.display,c=e.onClick,u=e.onMouseOver,d=(e.open,e.openWidth),f=(e.onOutsideClick,function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["children","className","disabled","display","onClick","onMouseOver","open","openWidth","onOutsideClick"])),h=(0,s.useRef)(null);return(0,a.jsx)(nY,{allowedOutsideClasses:".Menubar_inner",content:(0,a.jsx)("div",{className:"MenuBar__menu",style:{width:d},children:r}),children:(0,a.jsx)("div",{className:"Menubar_inner",ref:h,children:(0,a.jsx)(y,(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({className:(0,g.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",i])},f),t=t={onClick:o?function(){return null}:c,onMouseOver:u,children:(0,a.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:l})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))})})}function t0(e){var n=e.entry,t=e.children,r=e.openWidth,i=e.display,o=e.setOpenMenuBar,l=e.openMenuBar,c=e.setOpenOnHover,s=e.openOnHover,u=e.disabled,d=e.className;return(0,a.jsx)(tZ,{className:d,disabled:u,display:i,onClick:function(){o(l===n?null:n),c(!s)},onMouseOver:function(){s&&o(n)},onOutsideClick:function(){o(null),c(!1)},open:l===n,openWidth:r,children:t})}function t1(e){var n,t,r=e.className,i=e.children,o=e.onEnter,l=e.onEscape,c=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["className","children","onEnter","onEscape"]);return(0,a.jsx)(tp,{className:"Modal__dimmer",onKeyDown:function(e){e.key===w._.Enter&&(null==o||o(e)),(0,w.KL)(e.key)&&(null==l||l(e))},children:(0,a.jsx)("div",(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({className:(0,g.Ly)(["Modal",r,(0,j.WP)(c)])},(0,j.Fl)(c)),t=t={children:i},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))})}function t2(e){var n=e.className,t=e.color,r=e.info,i=e.success,o=e.danger,l=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["className","color","info","success","danger"]);return(0,a.jsx)(y,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({className:(0,g.Ly)(["NoticeBox",t&&"NoticeBox--color--".concat(t),r&&"NoticeBox--type--info",i&&"NoticeBox--type--success",o&&"NoticeBox--type--danger",n])},l))}t(1874),tY.Item=function(e){var n=e.label,t=e.children,r=e.mx,i=tG(e,["label","children","mx"]);return(0,a.jsx)(tE.Item,{mx:void 0===r?1:r,children:(0,a.jsxs)(tE,tq(tW({align:"center",direction:"column",height:"100%",justify:"space-between",textAlign:"center"},i),{children:[(0,a.jsx)(tE.Item,{}),(0,a.jsx)(tE.Item,{children:t}),(0,a.jsx)(tE.Item,{color:"label",children:n})]}))})},(o=tQ||(tQ={})).Divider=function(e){var n=e.size?(0,j.zA)(Math.max(0,e.size-1)):0;return(0,a.jsx)("tr",{className:"LabeledList__row",children:(0,a.jsx)("td",{colSpan:3,style:{paddingBottom:n,paddingTop:n},children:(0,a.jsx)(tx,{})})})},o.Item=function(e){var n,t=e.className,r=e.label,i=e.labelColor,o=e.labelWrap,l=e.color,c=e.textAlign,s=e.buttons,u=e.content,d=e.children,f=e.verticalAlign,h=void 0===f?"baseline":f,m=e.preserveWhitespace,p=e.tooltip,x=e.tooltipPosition;r&&(n=r,"string"==typeof r&&(n+=":")),void 0!==p&&(n=(0,a.jsx)(nQ,{content:p,position:x,children:(0,a.jsx)(y,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:n})}));var j=(0,a.jsx)(y,{as:"td",className:(0,g.Ly)(["LabeledList__cell",!o&&"LabeledList__label--nowrap"]),color:void 0===i?"label":i,preserveWhitespace:m,verticalAlign:h,children:n});return(0,a.jsxs)("tr",{className:(0,g.Ly)(["LabeledList__row",t]),children:[j,(0,a.jsxs)(y,{as:"td",className:"LabeledList__cell",color:l,colSpan:s?void 0:2,textAlign:c,verticalAlign:h,children:[u,d]}),s&&(0,a.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:s})]})},t0.MenuItemToggle=function(e){var n=e.value,t=e.displayText,r=e.onClick,i=e.checked;return(0,a.jsxs)(y,{className:(0,g.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return r(n)},children:[(0,a.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:(0,a.jsx)(I,{name:i?"check":"",size:1.3})}),t]})},t0.MenuItem=function(e){var n=e.value,t=e.displayText,r=e.onClick;return(0,a.jsx)(y,{className:(0,g.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return null==r?void 0:r(n)},children:t})},t0.Separator=function(){return(0,a.jsx)("div",{className:"MenuBar__Separator"})};function t8(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function t3(e){return(t3=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function t5(e,n){return(t5=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function t4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(t4=function(){return!!e})()}var t6=function(e){var n;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(){var e,n,r;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return n=t,r=arguments,n=t3(n),t8(e=function(e,n){var t;if(n&&("object"==((t=n)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)||"function"==typeof n))return n;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,t4()?Reflect.construct(n,r||[],t3(this).constructor):n.apply(this,r)),"inputRef",(0,s.createRef)()),t8(e,"dragTimeout",void 0),t8(e,"dragInterval",void 0),t8(e,"state",{currentValue:0,dragging:!1,editing:!1,origin:0,previousValue:0}),t8(e,"handleDragStart",function(n){var t=e.props,r=t.value,i=t.disabled,o=e.state.editing;if(!i&&!o){document.body.style["pointer-events"]="none";var l=Number.parseFloat(r.toString());e.setState({currentValue:l,dragging:!1,origin:n.screenY,previousValue:l}),e.dragTimeout=setTimeout(function(){e.setState({dragging:!0})},250),e.dragInterval=setInterval(function(){var n=e.state,t=n.dragging,r=n.currentValue,i=n.previousValue,o=e.props,l=o.onChange,a=o.tickWhileDragging;t&&a&&r!==i&&(e.setState({previousValue:r}),null==l||l(r))},400),document.addEventListener("mousemove",e.handleDragMove),document.addEventListener("mouseup",e.handleDragEnd)}}),t8(e,"handleDragMove",function(n){var t=e.props,r=t.minValue,i=t.maxValue,o=t.step,l=t.stepPixelSize;t.disabled||e.setState(function(e){var t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){t8(e,n,t[n])})}return e}({},e),a=t.origin-n.screenY;if(e.dragging){var s=l||1,u=(0,c.qE)(t.currentValue+a*o/s,r-o,i+o);Math.abs(u-t.currentValue)>=o?(t.currentValue=(0,c.qE)((0,c.LI)(u/o,0)*o,r,i),t.origin=n.screenY):Math.abs(a)>s&&(t.origin=n.screenY)}else Math.abs(a)>4&&(t.dragging=!0);return t})}),t8(e,"handleDragEnd",function(n){var t=e.state,r=t.dragging,i=t.currentValue,o=e.props,l=o.onChange;if(!o.disabled){if(document.body.style["pointer-events"]="auto",clearInterval(e.dragInterval),clearTimeout(e.dragTimeout),e.setState({dragging:!1,editing:!r,previousValue:i}),r)null==l||l(i);else if(e.inputRef){var a=e.inputRef.current;a&&(a.value="".concat(i),setTimeout(function(){a.focus(),a.select()},10))}document.removeEventListener("mousemove",e.handleDragMove),document.removeEventListener("mouseup",e.handleDragEnd)}}),t8(e,"handleBlur",function(n){var t=e.state,r=t.editing,i=t.previousValue,o=e.props,l=o.minValue,a=o.maxValue,s=o.onChange;if(!o.disabled&&r){var u=(0,c.qE)(Number.parseFloat(n.target.value),l,a);if(Number.isNaN(u))return void e.setState({editing:!1});e.setState({currentValue:u,editing:!1,previousValue:u}),i!==u&&(null==s||s(u))}}),t8(e,"handleKeyDown",function(n){var t=e.props,r=t.minValue,i=t.maxValue,o=t.onChange;if(!t.disabled){var l=e.state.previousValue;if(n.key===w._.Enter){var a=(0,c.qE)(Number.parseFloat(n.currentTarget.value),r,i);if(Number.isNaN(a))return void e.setState({editing:!1});e.setState({currentValue:a,editing:!1,previousValue:a}),l!==a&&(null==o||o(a))}else(0,w.KL)(n.key)&&e.setState({editing:!1})}}),e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&t5(t,e),n=[{key:"componentDidMount",value:function(){var e=Number.parseFloat(this.props.value.toString());this.setState({currentValue:e,previousValue:e})}},{key:"render",value:function(){var e=this.state,n=e.dragging,t=e.editing,r=e.currentValue,i=this.props,o=i.className,l=i.fluid,s=i.animated,u=i.unit,d=i.value,f=i.minValue,m=i.maxValue,p=i.height,x=i.width,j=i.lineHeight,b=i.fontSize,v=i.format,w=Number.parseFloat(d.toString());n&&(w=r);var k=(0,a.jsxs)("div",{className:"NumberInput__content",children:[s&&!n?(0,a.jsx)(h,{format:v,value:w}):v?v(w):w,u?" ".concat(u):""]});return(0,a.jsxs)(y,{className:(0,g.Ly)(["NumberInput",l&&"NumberInput--fluid",o]),fontSize:b,lineHeight:j,minHeight:p,minWidth:x,onMouseDown:this.handleDragStart,children:[(0,a.jsx)("div",{className:"NumberInput__barContainer",children:(0,a.jsx)("div",{className:"NumberInput__bar",style:{height:"".concat((0,c.qE)((w-f)/(m-f)*100,0,100),"%")}})}),k,(0,a.jsx)("input",{className:"NumberInput__input",onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:this.inputRef,style:{display:t?"inline":"none",fontSize:b,height:p,lineHeight:j}})]})}}],function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(s.Component);function t7(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function t9(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t7(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return t7(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var re=te(function(e){return e()},250);function rn(e){var n,t,r=e.allowFloats,i=e.autoFocus,o=e.autoSelect,l=e.className,c=e.disabled,u=e.expensive,d=e.fluid,f=e.maxValue,h=e.minValue,m=void 0===h?0:h,p=e.monospace,x=e.onBlur,b=e.onChange,y=e.onEnter,v=e.onEscape,k=e.onKeyDown,_=e.onValidationChange,C=e.value,I=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["allowFloats","autoFocus","autoSelect","className","disabled","expensive","fluid","maxValue","minValue","monospace","onBlur","onChange","onEnter","onEscape","onKeyDown","onValidationChange","value"]),S=(0,s.useRef)(null),O=t9((0,s.useState)(null!=C?C:m),2),A=O[0],P=O[1],B=t9((0,s.useState)(!0),2),E=B[0],z=B[1];function T(e){b&&(u?re(function(){return b(e)}):b(e))}(0,s.useEffect)(function(){var e;return(i||o)&&(e=setTimeout(function(){var e,n;null==(e=S.current)||e.focus(),o&&(null==(n=S.current)||n.select())},1)),function(){return clearTimeout(e)}},[]),(0,s.useEffect)(function(){if(S.current){var e=S.current.validity.valid;E!==e&&(z(e),null==_||_(e))}},[A]),(0,s.useEffect)(function(){S.current&&document.activeElement!==S.current&&C!==A&&P(null!=C?C:m)},[C]);var N=(0,j.Fl)(I),R=(0,g.Ly)(["Input","RestrictedInput",c&&"Input--disabled",d&&"Input--fluid",p&&"Input--monospace",(0,j.WP)(I),l,!E&&"RestrictedInput--invalid"]);return(0,a.jsx)("input",(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({},N),t=t={autoComplete:"off",className:R,disabled:c,max:void 0===f?1e4:f,min:m,onBlur:function(e){null==x||x(A)},onChange:function(e){var n=Number(e.target.value);P(n),T(n)},onKeyDown:function(e){if(null==k||k(e),e.key===w._.Enter){e.preventDefault(),null==y||y(A),null==(n=S.current)||n.blur();return}if((0,w.KL)(e.key)){e.preventDefault(),null==v||v(A),null==(t=S.current)||t.blur();return}if(e.key===w._.Minus){e.preventDefault();var n,t,r=-1*A;P(r),T(r);return}},ref:S,spellCheck:!1,step:r?"any":"1",type:"number",value:A},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))}var rt=t(1128);function rr(e){var n,t,r=e.buttons,i=e.children,o=e.className,l=e.container_id,c=e.fill,u=e.fitted,d=e.flexGrow,f=e.noTopPadding,h=e.onScroll,m=e.ref,p=e.scrollable,x=e.scrollableHorizontal,b=e.stretchContents,y=e.title,v=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["buttons","children","className","container_id","fill","fitted","flexGrow","noTopPadding","onScroll","ref","scrollable","scrollableHorizontal","stretchContents","title"]),w=(0,g.b5)(y)||(0,g.b5)(r),k=(0,s.useRef)(null),_=null!=m?m:k;return(0,s.useEffect)(function(){return _.current&&(p||x)&&(0,rt.tk)(_.current),function(){_.current&&(0,rt.WK)(_.current)}},[]),(0,a.jsxs)("div",(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({className:(0,g.Ly)(["Section",c&&"Section--fill",u&&"Section--fitted",p&&"Section--scrollable",x&&"Section--scrollableHorizontal",d&&"Section--flex",o,(0,j.WP)(v)]),id:void 0===l?"":l},(0,j.Fl)(v)),t=t={children:[w&&(0,a.jsxs)("div",{className:"Section__title",children:[(0,a.jsx)("span",{className:"Section__titleText",children:y}),(0,a.jsx)("div",{className:"Section__buttons",children:r})]}),(0,a.jsx)("div",{className:"Section__rest",children:(0,a.jsx)("div",{className:(0,g.Ly)(["Section__content",b&&"Section__content--stretchContents",f&&"Section__content--noTopPadding"]),onScroll:h,ref:_,children:i})})]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))}function ri(e){var n=e.animated,t=e.tickWhileDragging,r=e.format,i=e.maxValue,o=e.minValue,l=e.onChange,s=e.step,u=e.stepPixelSize,d=e.unit,f=e.value,h=e.className,m=e.fillValue,p=e.color,x=e.ranges,b=void 0===x?{}:x,y=e.children,v=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["animated","tickWhileDragging","format","maxValue","minValue","onChange","step","stepPixelSize","unit","value","className","fillValue","color","ranges","children"]),w=void 0!==y;return(0,a.jsx)(tk,{dragMatrix:[1,0],animated:n,tickWhileDragging:t,format:r,maxValue:i,minValue:o,onChange:l,step:s,stepPixelSize:u,unit:d,value:f,children:function(e){var n,t,r=e.displayElement,l=e.displayValue,s=e.dragging,u=e.editing,d=e.handleDragStart,x=e.inputElement,k=(0,c.J$)((0,c.hs)(null!=m?m:l,o,i)),_=(0,c.J$)((0,c.hs)(l,o,i)),C=p||(0,c.TG)(null!=m?m:f,b)||"default";return(0,a.jsxs)("div",(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({className:(0,g.Ly)(["Slider",u&&"Slider--editing","ProgressBar","ProgressBar--color--".concat(C),h,(0,j.WP)(v)])},(0,j.Fl)(v)),t=t={onMouseDown:d,children:[(0,a.jsx)("div",{className:(0,g.Ly)(["ProgressBar__fill",null!=m&&!s&&"ProgressBar__fill--animated"]),style:{opacity:.4,width:"".concat(100*Math.max(k,_),"%")}}),(0,a.jsx)("div",{className:(0,g.Ly)(["ProgressBar__fill",!s&&"ProgressBar__fill--animated"]),style:{width:"".concat(100*Math.min(k,_),"%")}}),(0,a.jsx)("div",{className:"Slider__cursorOffset",style:{width:"".concat(100*_,"%")},children:(0,a.jsx)("div",{className:"Slider__cursor",children:s&&(0,a.jsx)("div",{className:"Slider__popupValue",children:r})})}),(0,a.jsx)("div",{className:"ProgressBar__content",children:w?y:r}),x]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))}})}function ro(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function rl(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function ra(e){var n,t,r=e.className,i=e.collapsing,o=e.children,l=rl(e,["className","collapsing","children"]);return(0,a.jsx)("table",(n=ro({className:(0,g.Ly)(["Table",i&&"Table--collapsing",r,(0,j.WP)(l)])},(0,j.Fl)(l)),t=t={children:(0,a.jsx)("tbody",{children:o})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))}function rc(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function rs(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function ru(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function rd(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function rf(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return rc(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return rc(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rh(e){var n=e.className,t=e.vertical,r=e.scrollable,i=e.fill,o=e.fluid,l=e.children,c=rd(e,["className","vertical","scrollable","fill","fluid","children"]),u=(0,s.useRef)(!0),d=(0,s.useRef)(null),f=(0,s.useRef)(null),h=rf((0,s.useState)(!1),2),m=h[0],p=h[1],x=rf((0,s.useState)(!1),2),b=x[0],y=x[1];function v(e){if(d.current){var n=d.current,t=.5*n.clientWidth;n.scrollBy({left:"left"===e?-t:t,behavior:"smooth"})}}(0,s.useEffect)(function(){var e=function(){p(i.scrollLeft>0),y(i.scrollLeft+i.clientWidth<i.scrollWidth)},n=function(e){Math.abs(e.deltaY)>Math.abs(e.deltaX)&&(i.scrollLeft+=e.deltaY)};if(r&&!t&&d.current){var i=d.current;if(!(i.scrollWidth<i.clientWidth)){var o=i.querySelector(".Tab--selected");if(o)return f.current!==o&&(f.current=o,o.scrollIntoView({behavior:u.current?"auto":"smooth",inline:"center"})),u.current=!1,i.addEventListener("wheel",n,{passive:!0}),i.addEventListener("scroll",e),window.addEventListener("resize",e),e(),function(){i.removeEventListener("wheel",n),i.removeEventListener("scroll",e),window.removeEventListener("resize",e)}}}},[r,t,l]);var w=l;return r&&!t&&(w=(0,a.jsxs)(a.Fragment,{children:[m&&(0,a.jsx)(rm,{direction:"left",makeScroll:v}),(0,a.jsx)("div",{ref:d,className:(0,g.Ly)(["Tabs--scrollable-content",m&&"scrollable-left",b&&"scrollable-right"]),children:l}),b&&(0,a.jsx)(rm,{direction:"right",makeScroll:v})]})),(0,a.jsx)("div",ru(rs({className:(0,g.Ly)(["Tabs",t?"Tabs--vertical":"Tabs--horizontal",i&&"Tabs--fill",o&&"Tabs--fluid",!t&&r&&"Tabs--scrollable",n,(0,j.WP)(c)])},(0,j.Fl)(c)),{children:w}))}function rm(e){var n=e.direction,t=e.makeScroll;return(0,a.jsx)(n6,{className:"scroll-".concat(n),color:"transparent",icon:"angle-".concat(n),onClick:function(){return t(n)}})}function rp(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}(l=ra||(ra={})).Cell=function(e){var n=e.className,t=e.collapsing,r=e.colSpan,i=e.header,o=rl(e,["className","collapsing","colSpan","header"]);return(0,a.jsx)("td",ro({className:(0,g.Ly)(["Table__cell",t&&"Table__cell--collapsing",i&&"Table__cell--header",n,(0,j.WP)(e)]),colSpan:r},(0,j.Fl)(o)))},l.Row=function(e){var n=e.className,t=e.header,r=rl(e,["className","header"]);return(0,a.jsx)("tr",ro({className:(0,g.Ly)(["Table__row",t&&"Table__row--header",n,(0,j.WP)(e)])},(0,j.Fl)(r)))},(rh||(rh={})).Tab=function(e){var n=e.className,t=e.selected,r=e.color,i=e.icon,o=e.iconSpin,l=e.leftSlot,c=e.rightSlot,s=e.children,u=e.onClick,d=rd(e,["className","selected","color","icon","iconSpin","leftSlot","rightSlot","children","onClick"]);return(0,a.jsxs)("div",ru(rs({className:(0,g.Ly)(["Tab","Tabs__Tab","Tab--color--".concat(r),t&&"Tab--selected",n,(0,j.WP)(d)]),onClick:function(e){return null==u?void 0:u(e)}},(0,j.Fl)(d)),{children:[(0,g.b5)(l)&&(0,a.jsx)("div",{className:"Tab__left",children:l})||!!i&&(0,a.jsx)("div",{className:"Tab__left",children:(0,a.jsx)(I,{name:i,spin:o})}),(0,a.jsx)("div",{className:"Tab__text",children:s}),(0,g.b5)(c)&&(0,a.jsx)("div",{className:"Tab__right",children:c})]}))};var rx=te(function(e){return e()},250);function rg(e){var n,t,r,i=e.autoFocus,o=e.autoSelect,l=e.className,c=e.disabled,u=e.dontUseTabForIndent,d=e.expensive,f=e.fluid,h=e.maxLength,m=e.monospace,p=e.onBlur,x=e.onChange,b=e.onEnter,y=e.onEscape,v=e.onKeyDown,k=e.placeholder,_=e.ref,C=e.selfClear,I=e.spellcheck,S=e.userMarkup,O=e.value,A=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["autoFocus","autoSelect","className","disabled","dontUseTabForIndent","expensive","fluid","maxLength","monospace","onBlur","onChange","onEnter","onEscape","onKeyDown","placeholder","ref","selfClear","spellcheck","userMarkup","value"]),P=(0,s.useRef)(null),B=null!=_?_:P,E=(n=(0,s.useState)(null!=O?O:""),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return rp(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return rp(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),z=E[0],T=E[1];(0,s.useEffect)(function(){(i||o)&&setTimeout(function(){var e,n;null==(e=B.current)||e.focus(),o&&(null==(n=B.current)||n.select())},1)},[]),(0,s.useEffect)(function(){B.current&&document.activeElement!==B.current&&O!==z&&T(null!=O?O:"")},[O]);var N=(0,j.Fl)(A),R=(0,g.Ly)(["Input","TextArea",f&&"Input--fluid",m&&"Input--monospace",c&&"Input--disabled",(0,j.WP)(A),l]);return(0,a.jsx)("textarea",(t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({},N),r=r={autoComplete:"off",className:R,maxLength:h,onBlur:function(e){null==p||p(z)},onChange:function(e){var n=e.currentTarget.value;T(n),x&&(d?rx(function(){return x(n)}):x(n))},onKeyDown:function(e){if(null==v||v(e),e.key===w._.Enter&&!e.shiftKey){e.preventDefault(),null==b||b(e.currentTarget.value),C&&T(""),e.currentTarget.blur();return}if((0,w.KL)(e.key)){null==y||y(e.currentTarget.value),e.currentTarget.blur();return}if(!u&&e.key===w._.Tab){e.preventDefault();var n=e.currentTarget,t=n.value,r=n.selectionStart,i=n.selectionEnd;T("".concat(t.substring(0,r)," ").concat(t.substring(i))),e.currentTarget.selectionEnd=r+1,null==x||x(e.currentTarget.value);return}if(S&&(e.ctrlKey||e.metaKey)&&S[e.key]){e.preventDefault();var o=e.currentTarget,l=o.selectionStart,a=o.selectionEnd,c=o.value,s=S[e.key];T("".concat(c.substring(0,l)).concat(s).concat(c.substring(l,a)).concat(s).concat(c.substring(a))),e.currentTarget.selectionEnd=a+2*s.length,null==x||x(e.currentTarget.value);return}},placeholder:k,ref:B,spellCheck:void 0!==I&&I,value:z},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}var rj=t(9582);function rb(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function ry(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return rb(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return rb(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rv(e){var n=e.value,t=void 0===n?0:n,r=e.auto,i=e.format,o=ry((0,s.useState)(function(){return(0,c.Lz)(t)?t:0}),2),l=o[0],a=o[1],u=ry((0,s.useState)((0,c.Lz)(t)?t:void 0),2),d=u[0],f=u[1],h=(0,s.useRef)(null);return((0,s.useEffect)(function(){return void 0!==r&&(h.current=setInterval(function(){var e="up"===r?10:-10;a(function(n){return Math.max(0,n+e)})},1e3)),function(){h.current&&clearInterval(h.current)}},[r]),(0,s.useEffect)(function(){t!==d&&(f(t),a(t))},[t,d]),(0,c.Lz)(t))?i?i(l):(0,rj.fU)(l):t||null}},9856:function(e,n,t){function r(e,n){return null!=n&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n}function i(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}e=t.nmd(e),(function(){var o,l="Expected a function",a="__lodash_hash_undefined__",c="__lodash_placeholder__",s=1/0,u=0/0,d=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],f="[object Arguments]",h="[object Array]",m="[object Boolean]",p="[object Date]",x="[object Error]",g="[object Function]",j="[object GeneratorFunction]",b="[object Map]",y="[object Number]",v="[object Object]",w="[object Promise]",k="[object RegExp]",_="[object Set]",C="[object String]",I="[object Symbol]",S="[object WeakMap]",O="[object ArrayBuffer]",A="[object DataView]",P="[object Float32Array]",B="[object Float64Array]",E="[object Int8Array]",z="[object Int16Array]",T="[object Int32Array]",N="[object Uint8Array]",R="[object Uint8ClampedArray]",$="[object Uint16Array]",D="[object Uint32Array]",M=/\b__p \+= '';/g,L=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,J=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>"']/g,U=RegExp(J.source),F=RegExp(X.source),V=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,W=/<%=([\s\S]+?)%>/g,q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q=/[\\^$.*+?()[\]{}|]/g,Z=RegExp(Q.source),ee=/^\s+/,en=/\s/,et=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,er=/\{\n\/\* \[wrapped with (.+)\] \*/,ei=/,? & /,eo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,el=/[()=,{}\[\]\/\s]/,ea=/\\(\\)?/g,ec=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,es=/\w*$/,eu=/^[-+]0x[0-9a-f]+$/i,ed=/^0b[01]+$/i,ef=/^\[object .+?Constructor\]$/,eh=/^0o[0-7]+$/i,em=/^(?:0|[1-9]\d*)$/,ep=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ex=/($^)/,eg=/['\n\r\u2028\u2029\\]/g,ej="\ud800-\udfff",eb="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ey="\\u2700-\\u27bf",ev="a-z\\xdf-\\xf6\\xf8-\\xff",ew="A-Z\\xc0-\\xd6\\xd8-\\xde",ek="\\ufe0e\\ufe0f",e_="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",eC="['’]",eI="["+e_+"]",eS="["+eb+"]",eO="["+ev+"]",eA="[^"+ej+e_+"\\d+"+ey+ev+ew+"]",eP="\ud83c[\udffb-\udfff]",eB="[^"+ej+"]",eE="(?:\ud83c[\udde6-\uddff]){2}",ez="[\ud800-\udbff][\udc00-\udfff]",eT="["+ew+"]",eN="\\u200d",eR="(?:"+eO+"|"+eA+")",e$="(?:"+eT+"|"+eA+")",eD="(?:"+eC+"(?:d|ll|m|re|s|t|ve))?",eM="(?:"+eC+"(?:D|LL|M|RE|S|T|VE))?",eL="(?:"+eS+"|"+eP+")?",eK="["+ek+"]?",eJ="(?:"+eN+"(?:"+[eB,eE,ez].join("|")+")"+eK+eL+")*",eX=eK+eL+eJ,eU="(?:"+["["+ey+"]",eE,ez].join("|")+")"+eX,eF="(?:"+[eB+eS+"?",eS,eE,ez,"["+ej+"]"].join("|")+")",eV=RegExp(eC,"g"),eH=RegExp(eS,"g"),eW=RegExp(eP+"(?="+eP+")|"+eF+eX,"g"),eq=RegExp([eT+"?"+eO+"+"+eD+"(?="+[eI,eT,"$"].join("|")+")",e$+"+"+eM+"(?="+[eI,eT+eR,"$"].join("|")+")",eT+"?"+eR+"+"+eD,eT+"+"+eM,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",eU].join("|"),"g"),eG=RegExp("["+eN+ej+eb+ek+"]"),eY=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eQ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eZ=-1,e0={};e0[P]=e0[B]=e0[E]=e0[z]=e0[T]=e0[N]=e0[R]=e0[$]=e0[D]=!0,e0[f]=e0[h]=e0[O]=e0[m]=e0[A]=e0[p]=e0[x]=e0[g]=e0[b]=e0[y]=e0[v]=e0[k]=e0[_]=e0[C]=e0[S]=!1;var e1={};e1[f]=e1[h]=e1[O]=e1[A]=e1[m]=e1[p]=e1[P]=e1[B]=e1[E]=e1[z]=e1[T]=e1[b]=e1[y]=e1[v]=e1[k]=e1[_]=e1[C]=e1[I]=e1[N]=e1[R]=e1[$]=e1[D]=!0,e1[x]=e1[g]=e1[S]=!1;var e2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},e8=parseFloat,e3=parseInt,e5=(void 0===t.g?"undefined":i(t.g))=="object"&&t.g&&t.g.Object===Object&&t.g,e4=("undefined"==typeof self?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,e6=e5||e4||Function("return this")(),e7="object"==i(n)&&n&&!n.nodeType&&n,e9=e7&&"object"==i(e)&&e&&!e.nodeType&&e,ne=e9&&e9.exports===e7,nn=ne&&e5.process,nt=function(){try{var e=e9&&e9.require&&e9.require("util").types;if(e)return e;return nn&&nn.binding&&nn.binding("util")}catch(e){}}(),nr=nt&&nt.isArrayBuffer,ni=nt&&nt.isDate,no=nt&&nt.isMap,nl=nt&&nt.isRegExp,na=nt&&nt.isSet,nc=nt&&nt.isTypedArray;function ns(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}function nu(e,n,t,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var l=e[i];n(r,l,t(l),e)}return r}function nd(e,n){for(var t=-1,r=null==e?0:e.length;++t<r&&!1!==n(e[t],t,e););return e}function nf(e,n){for(var t=-1,r=null==e?0:e.length;++t<r;)if(!n(e[t],t,e))return!1;return!0}function nh(e,n){for(var t=-1,r=null==e?0:e.length,i=0,o=[];++t<r;){var l=e[t];n(l,t,e)&&(o[i++]=l)}return o}function nm(e,n){return!!(null==e?0:e.length)&&n_(e,n,0)>-1}function np(e,n,t){for(var r=-1,i=null==e?0:e.length;++r<i;)if(t(n,e[r]))return!0;return!1}function nx(e,n){for(var t=-1,r=null==e?0:e.length,i=Array(r);++t<r;)i[t]=n(e[t],t,e);return i}function ng(e,n){for(var t=-1,r=n.length,i=e.length;++t<r;)e[i+t]=n[t];return e}function nj(e,n,t,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(t=e[++i]);++i<o;)t=n(t,e[i],i,e);return t}function nb(e,n,t,r){var i=null==e?0:e.length;for(r&&i&&(t=e[--i]);i--;)t=n(t,e[i],i,e);return t}function ny(e,n){for(var t=-1,r=null==e?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}var nv=nO("length");function nw(e,n,t){var r;return t(e,function(e,t,i){if(n(e,t,i))return r=t,!1}),r}function nk(e,n,t,r){for(var i=e.length,o=t+(r?1:-1);r?o--:++o<i;)if(n(e[o],o,e))return o;return -1}function n_(e,n,t){return n==n?function(e,n,t){for(var r=t-1,i=e.length;++r<i;)if(e[r]===n)return r;return -1}(e,n,t):nk(e,nI,t)}function nC(e,n,t,r){for(var i=t-1,o=e.length;++i<o;)if(r(e[i],n))return i;return -1}function nI(e){return e!=e}function nS(e,n){var t=null==e?0:e.length;return t?nB(e,n)/t:u}function nO(e){return function(n){return null==n?o:n[e]}}function nA(e){return function(n){return null==e?o:e[n]}}function nP(e,n,t,r,i){return i(e,function(e,i,o){t=r?(r=!1,e):n(t,e,i,o)}),t}function nB(e,n){for(var t,r=-1,i=e.length;++r<i;){var l=n(e[r]);o!==l&&(t=o===t?l:t+l)}return t}function nE(e,n){for(var t=-1,r=Array(e);++t<e;)r[t]=n(t);return r}function nz(e){return e?e.slice(0,nq(e)+1).replace(ee,""):e}function nT(e){return function(n){return e(n)}}function nN(e,n){return nx(n,function(n){return e[n]})}function nR(e,n){return e.has(n)}function n$(e,n){for(var t=-1,r=e.length;++t<r&&n_(n,e[t],0)>-1;);return t}function nD(e,n){for(var t=e.length;t--&&n_(n,e[t],0)>-1;);return t}var nM=nA({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),nL=nA({"&":"&","<":"<",">":">",'"':""","'":"'"});function nK(e){return"\\"+e2[e]}function nJ(e){return eG.test(e)}function nX(e){var n=-1,t=Array(e.size);return e.forEach(function(e,r){t[++n]=[r,e]}),t}function nU(e,n){return function(t){return e(n(t))}}function nF(e,n){for(var t=-1,r=e.length,i=0,o=[];++t<r;){var l=e[t];(l===n||l===c)&&(e[t]=c,o[i++]=t)}return o}function nV(e){var n=-1,t=Array(e.size);return e.forEach(function(e){t[++n]=e}),t}function nH(e){return nJ(e)?function(e){for(var n=eW.lastIndex=0;eW.test(e);)++n;return n}(e):nv(e)}function nW(e){return nJ(e)?e.match(eW)||[]:e.split("")}function nq(e){for(var n=e.length;n--&&en.test(e.charAt(n)););return n}var nG=nA({"&":"&","<":"<",">":">",""":'"',"'":"'"}),nY=function e(n){var t,en,ej,eb,ey=(n=null==n?e6:nY.defaults(e6.Object(),n,nY.pick(e6,eQ))).Array,ev=n.Date,ew=n.Error,ek=n.Function,e_=n.Math,eC=n.Object,eI=n.RegExp,eS=n.String,eO=n.TypeError,eA=ey.prototype,eP=ek.prototype,eB=eC.prototype,eE=n["__core-js_shared__"],ez=eP.toString,eT=eB.hasOwnProperty,eN=0,eR=(t=/[^.]+$/.exec(eE&&eE.keys&&eE.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"",e$=eB.toString,eD=ez.call(eC),eM=e6._,eL=eI("^"+ez.call(eT).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eK=ne?n.Buffer:o,eJ=n.Symbol,eX=n.Uint8Array,eU=eK?eK.allocUnsafe:o,eF=nU(eC.getPrototypeOf,eC),eW=eC.create,eG=eB.propertyIsEnumerable,e2=eA.splice,e5=eJ?eJ.isConcatSpreadable:o,e4=eJ?eJ.iterator:o,e7=eJ?eJ.toStringTag:o,e9=function(){try{var e=ix(eC,"defineProperty");return e({},"",{}),e}catch(e){}}(),nn=n.clearTimeout!==e6.clearTimeout&&n.clearTimeout,nt=ev&&ev.now!==e6.Date.now&&ev.now,nv=n.setTimeout!==e6.setTimeout&&n.setTimeout,nA=e_.ceil,nQ=e_.floor,nZ=eC.getOwnPropertySymbols,n0=eK?eK.isBuffer:o,n1=n.isFinite,n2=eA.join,n8=nU(eC.keys,eC),n3=e_.max,n5=e_.min,n4=ev.now,n6=n.parseInt,n7=e_.random,n9=eA.reverse,te=ix(n,"DataView"),tn=ix(n,"Map"),tt=ix(n,"Promise"),tr=ix(n,"Set"),ti=ix(n,"WeakMap"),to=ix(eC,"create"),tl=ti&&new ti,ta={},tc=iK(te),ts=iK(tn),tu=iK(tt),td=iK(tr),tf=iK(ti),th=eJ?eJ.prototype:o,tm=th?th.valueOf:o,tp=th?th.toString:o;function tx(e){if(oG(e)&&!oM(e)&&!r(e,ty)){if(r(e,tb))return e;if(eT.call(e,"__wrapped__"))return iJ(e)}return new tb(e)}var tg=function(){function e(){}return function(n){if(!oq(n))return{};if(eW)return eW(n);e.prototype=n;var t=new e;return e.prototype=o,t}}();function tj(){}function tb(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=o}function ty(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function tv(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function tw(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function tk(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function t_(e){var n=-1,t=null==e?0:e.length;for(this.__data__=new tk;++n<t;)this.add(e[n])}function tC(e){var n=this.__data__=new tw(e);this.size=n.size}function tI(e,n){var t=oM(e),r=!t&&oD(e),i=!t&&!r&&oX(e),o=!t&&!r&&!i&&o3(e),l=t||r||i||o,a=l?nE(e.length,eS):[],c=a.length;for(var s in e)(n||eT.call(e,s))&&!(l&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ik(s,c)))&&a.push(s);return a}function tS(e){var n=e.length;return n?e[rd(0,n-1)]:o}tx.templateSettings={escape:V,evaluate:H,interpolate:W,variable:"",imports:{_:tx}},tx.prototype=tj.prototype,tx.prototype.constructor=tx,tb.prototype=tg(tj.prototype),tb.prototype.constructor=tb,ty.prototype=tg(tj.prototype),ty.prototype.constructor=ty,tv.prototype.clear=function(){this.__data__=to?to(null):{},this.size=0},tv.prototype.delete=function(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=!!n,n},tv.prototype.get=function(e){var n=this.__data__;if(to){var t=n[e];return t===a?o:t}return eT.call(n,e)?n[e]:o},tv.prototype.has=function(e){var n=this.__data__;return to?n[e]!==o:eT.call(n,e)},tv.prototype.set=function(e,n){var t=this.__data__;return this.size+=+!this.has(e),t[e]=to&&o===n?a:n,this},tw.prototype.clear=function(){this.__data__=[],this.size=0},tw.prototype.delete=function(e){var n=this.__data__,t=tP(n,e);return!(t<0)&&(t==n.length-1?n.pop():e2.call(n,t,1),--this.size,!0)},tw.prototype.get=function(e){var n=this.__data__,t=tP(n,e);return t<0?o:n[t][1]},tw.prototype.has=function(e){return tP(this.__data__,e)>-1},tw.prototype.set=function(e,n){var t=this.__data__,r=tP(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this},tk.prototype.clear=function(){this.size=0,this.__data__={hash:new tv,map:new(tn||tw),string:new tv}},tk.prototype.delete=function(e){var n=im(this,e).delete(e);return this.size-=!!n,n},tk.prototype.get=function(e){return im(this,e).get(e)},tk.prototype.has=function(e){return im(this,e).has(e)},tk.prototype.set=function(e,n){var t=im(this,e),r=t.size;return t.set(e,n),this.size+=+(t.size!=r),this},t_.prototype.add=t_.prototype.push=function(e){return this.__data__.set(e,a),this},t_.prototype.has=function(e){return this.__data__.has(e)};function tO(e,n,t){(o===t||oN(e[n],t))&&(o!==t||n in e)||tz(e,n,t)}function tA(e,n,t){var r=e[n];eT.call(e,n)&&oN(r,t)&&(o!==t||n in e)||tz(e,n,t)}function tP(e,n){for(var t=e.length;t--;)if(oN(e[t][0],n))return t;return -1}function tB(e,n,t,r){return tL(e,function(e,i,o){n(r,e,t(e),o)}),r}function tE(e,n){return e&&rX(n,lx(n),e)}function tz(e,n,t){"__proto__"==n&&e9?e9(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}function tT(e,n){for(var t=-1,r=n.length,i=ey(r),l=null==e;++t<r;)i[t]=l?o:ld(e,n[t]);return i}function tN(e,n,t){return e==e&&(o!==t&&(e=e<=t?e:t),o!==n&&(e=e>=n?e:n)),e}function tR(e,n,t,r,i,l){var a,c=1&n,s=2&n,u=4&n;if(t&&(a=i?t(e,r,i,l):t(e)),o!==a)return a;if(!oq(e))return e;var d=oM(e);if(d){if(x=(h=e).length,w=new h.constructor(x),x&&"string"==typeof h[0]&&eT.call(h,"index")&&(w.index=h.index,w.input=h.input),a=w,!c)return rJ(e,a)}else{var h,x,w,S,M,L,K,J,X=ib(e),U=X==g||X==j;if(oX(e))return rR(e,c);if(X==v||X==f||U&&!i){if(a=s||U?{}:iv(e),!c){return s?(S=e,M=(J=a)&&rX(e,lg(e),J),rX(S,ij(S),M)):(L=e,K=tE(a,e),rX(L,ig(L),K))}}else{if(!e1[X])return i?e:{};a=function(e,n,t){var r,i,o=e.constructor;switch(n){case O:return r$(e);case m:case p:return new o(+e);case A:return r=t?r$(e.buffer):e.buffer,new e.constructor(r,e.byteOffset,e.byteLength);case P:case B:case E:case z:case T:case N:case R:case $:case D:return rD(e,t);case b:return new o;case y:case C:return new o(e);case k:return(i=new e.constructor(e.source,es.exec(e))).lastIndex=e.lastIndex,i;case _:return new o;case I:return tm?eC(tm.call(e)):{}}}(e,X,c)}}l||(l=new tC);var F=l.get(e);if(F)return F;l.set(e,a),o1(e)?e.forEach(function(r){a.add(tR(r,n,t,r,e,l))}):oY(e)&&e.forEach(function(r,i){a.set(i,tR(r,n,t,i,e,l))});var V=u?s?ic:ia:s?lg:lx,H=d?o:V(e);return nd(H||e,function(r,i){H&&(r=e[i=r]),tA(a,i,tR(r,n,t,i,e,l))}),a}function t$(e,n,t){var r=t.length;if(null==e)return!r;for(e=eC(e);r--;){var i=t[r],l=n[i],a=e[i];if(o===a&&!(i in e)||!l(a))return!1}return!0}function tD(e,n,t){if("function"!=typeof e)throw new eO(l);return iT(function(){e.apply(o,t)},n)}function tM(e,n,t,r){var i=-1,o=nm,l=!0,a=e.length,c=[],s=n.length;if(!a)return c;t&&(n=nx(n,nT(t))),r?(o=np,l=!1):n.length>=200&&(o=nR,l=!1,n=new t_(n));t:for(;++i<a;){var u=e[i],d=null==t?u:t(u);if(u=r||0!==u?u:0,l&&d==d){for(var f=s;f--;)if(n[f]===d)continue t;c.push(u)}else o(n,d,r)||c.push(u)}return c}tC.prototype.clear=function(){this.__data__=new tw,this.size=0},tC.prototype.delete=function(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t},tC.prototype.get=function(e){return this.__data__.get(e)},tC.prototype.has=function(e){return this.__data__.has(e)},tC.prototype.set=function(e,n){var t=this.__data__;if(r(t,tw)){var i=t.__data__;if(!tn||i.length<199)return i.push([e,n]),this.size=++t.size,this;t=this.__data__=new tk(i)}return t.set(e,n),this.size=t.size,this};var tL=rV(tW),tK=rV(tq,!0);function tJ(e,n){var t=!0;return tL(e,function(e,r,i){return t=!!n(e,r,i)}),t}function tX(e,n,t){for(var r=-1,i=e.length;++r<i;){var l=e[r],a=n(l);if(null!=a&&(o===c?a==a&&!o8(a):t(a,c)))var c=a,s=l}return s}function tU(e,n){var t=[];return tL(e,function(e,r,i){n(e,r,i)&&t.push(e)}),t}function tF(e,n,t,r,i){var o=-1,l=e.length;for(t||(t=iw),i||(i=[]);++o<l;){var a=e[o];n>0&&t(a)?n>1?tF(a,n-1,t,r,i):ng(i,a):r||(i[i.length]=a)}return i}var tV=rH(),tH=rH(!0);function tW(e,n){return e&&tV(e,n,lx)}function tq(e,n){return e&&tH(e,n,lx)}function tG(e,n){return nh(n,function(n){return oV(e[n])})}function tY(e,n){n=rz(n,e);for(var t=0,r=n.length;null!=e&&t<r;)e=e[iL(n[t++])];return t&&t==r?e:o}function tQ(e,n,t){var r=n(e);return oM(e)?r:ng(r,t(e))}function tZ(e){var n;return null==e?o===e?"[object Undefined]":"[object Null]":e7&&e7 in eC(e)?function(e){var n=eT.call(e,e7),t=e[e7];try{e[e7]=o;var r=!0}catch(e){}var i=e$.call(e);return r&&(n?e[e7]=t:delete e[e7]),i}(e):(n=e,e$.call(n))}function t0(e,n){return e>n}function t1(e,n){return null!=e&&eT.call(e,n)}function t2(e,n){return null!=e&&n in eC(e)}function t8(e,n,t){for(var r=t?np:nm,i=e[0].length,l=e.length,a=l,c=ey(l),s=1/0,u=[];a--;){var d=e[a];a&&n&&(d=nx(d,nT(n))),s=n5(d.length,s),c[a]=!t&&(n||i>=120&&d.length>=120)?new t_(a&&d):o}d=e[0];var f=-1,h=c[0];t:for(;++f<i&&u.length<s;){var m=d[f],p=n?n(m):m;if(m=t||0!==m?m:0,!(h?nR(h,p):r(u,p,t))){for(a=l;--a;){var x=c[a];if(!(x?nR(x,p):r(e[a],p,t)))continue t}h&&h.push(p),u.push(m)}}return u}function t3(e,n,t){n=rz(n,e);var r=null==(e=iB(e,n))?e:e[iL(iZ(n))];return null==r?o:ns(r,e,t)}function t5(e){return oG(e)&&tZ(e)==f}function t4(e,n,t,i,l){return e===n||(null!=e&&null!=n&&(oG(e)||oG(n))?function(e,n,t,i,l,a){var c=oM(e),s=oM(n),u=c?h:ib(e),d=s?h:ib(n);u=u==f?v:u,d=d==f?v:d;var g=u==v,j=d==v,w=u==d;if(w&&oX(e)){if(!oX(n))return!1;c=!0,g=!1}if(w&&!g)return a||(a=new tC),c||o3(e)?io(e,n,t,i,l,a):function(e,n,t,r,i,o,l){switch(t){case A:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)break;e=e.buffer,n=n.buffer;case O:if(e.byteLength!=n.byteLength||!o(new eX(e),new eX(n)))break;return!0;case m:case p:case y:return oN(+e,+n);case x:return e.name==n.name&&e.message==n.message;case k:case C:return e==n+"";case b:var a=nX;case _:var c=1&r;if(a||(a=nV),e.size!=n.size&&!c)break;var s=l.get(e);if(s)return s==n;r|=2,l.set(e,n);var u=io(a(e),a(n),r,i,o,l);return l.delete(e),u;case I:if(tm)return tm.call(e)==tm.call(n)}return!1}(e,n,u,t,i,l,a);if(!(1&t)){var S=g&&eT.call(e,"__wrapped__"),P=j&&eT.call(n,"__wrapped__");if(S||P){var B=S?e.value():e,E=P?n.value():n;return a||(a=new tC),l(B,E,t,i,a)}}return!!w&&(a||(a=new tC),function(e,n,t,i,l,a){var c=1&t,s=ia(e),u=s.length;if(u!=ia(n).length&&!c)return!1;for(var d=u;d--;){var f=s[d];if(!(c?f in n:eT.call(n,f)))return!1}var h=a.get(e),m=a.get(n);if(h&&m)return h==n&&m==e;var p=!0;a.set(e,n),a.set(n,e);for(var x=c;++d<u;){var g=e[f=s[d]],j=n[f];if(i)var b=c?i(j,g,f,n,e,a):i(g,j,f,e,n,a);if(!(o===b?g===j||l(g,j,t,i,a):b)){p=!1;break}x||(x="constructor"==f)}if(p&&!x){var y=e.constructor,v=n.constructor;y!=v&&"constructor"in e&&"constructor"in n&&!("function"==typeof y&&r(y,y)&&"function"==typeof v&&r(v,v))&&(p=!1)}return a.delete(e),a.delete(n),p}(e,n,t,i,l,a))}(e,n,t,i,t4,l):e!=e&&n!=n)}function t6(e,n,t,r){var i=t.length,l=i,a=!r;if(null==e)return!l;for(e=eC(e);i--;){var c=t[i];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<l;){var s=(c=t[i])[0],u=e[s],d=c[1];if(a&&c[2]){if(o===u&&!(s in e))return!1}else{var f=new tC;if(r)var h=r(u,d,s,e,n,f);if(!(o===h?t4(d,u,3,r,f):h))return!1}}return!0}function t7(e){var n;return!(!oq(e)||(n=e,eR&&eR in n))&&(oV(e)?eL:ef).test(iK(e))}function t9(e){return"function"==typeof e?e:null==e?lJ:(void 0===e?"undefined":i(e))=="object"?oM(e)?ri(e[0],e[1]):rr(e):lY(e)}function re(e){if(!iO(e))return n8(e);var n=[];for(var t in eC(e))eT.call(e,t)&&"constructor"!=t&&n.push(t);return n}function rn(e,n){return e<n}function rt(e,n){var t=-1,r=oK(e)?ey(e.length):[];return tL(e,function(e,i,o){r[++t]=n(e,i,o)}),r}function rr(e){var n=ip(e);return 1==n.length&&n[0][2]?iA(n[0][0],n[0][1]):function(t){return t===e||t6(t,e,n)}}function ri(e,n){var t;return iC(e)&&(t=n)==t&&!oq(t)?iA(iL(e),n):function(t){var r=ld(t,e);return o===r&&r===n?lf(t,e):t4(n,r,3)}}function ro(e,n,t,r,i){e!==n&&tV(n,function(l,a){if(i||(i=new tC),oq(l))!function(e,n,t,r,i,l,a){var c=iE(e,t),s=iE(n,t),u=a.get(s);if(u)return tO(e,t,u);var d=l?l(c,s,t+"",e,n,a):o,f=o===d;if(f){var h=oM(s),m=!h&&oX(s),p=!h&&!m&&o3(s);d=s,h||m||p?oM(c)?d=c:oJ(c)?d=rJ(c):m?(f=!1,d=rR(s,!0)):p?(f=!1,d=rD(s,!0)):d=[]:oZ(s)||oD(s)?(d=c,oD(c)?d=lt(c):(!oq(c)||oV(c))&&(d=iv(s))):f=!1}f&&(a.set(s,d),i(d,s,r,l,a),a.delete(s)),tO(e,t,d)}(e,n,a,t,ro,r,i);else{var c=r?r(iE(e,a),l,a+"",e,n,i):o;o===c&&(c=l),tO(e,a,c)}},lg)}function rl(e,n){var t=e.length;if(t)return ik(n+=n<0?t:0,t)?e[n]:o}function ra(e,n,t){n=n.length?nx(n,function(e){return oM(e)?function(n){return tY(n,1===e.length?e[0]:e)}:e}):[lJ];var r=-1;n=nx(n,nT(ih()));var i=rt(e,function(e,t,i){return{criteria:nx(n,function(n){return n(e)}),index:++r,value:e}}),o=i.length;for(i.sort(function(e,n){return function(e,n,t){for(var r=-1,i=e.criteria,o=n.criteria,l=i.length,a=t.length;++r<l;){var c=rM(i[r],o[r]);if(c){if(r>=a)return c;return c*("desc"==t[r]?-1:1)}}return e.index-n.index}(e,n,t)});o--;)i[o]=i[o].value;return i}function rc(e,n,t){for(var r=-1,i=n.length,o={};++r<i;){var l=n[r],a=tY(e,l);t(a,l)&&rm(o,rz(l,e),a)}return o}function rs(e,n,t,r){var i=r?nC:n_,o=-1,l=n.length,a=e;for(e===n&&(n=rJ(n)),t&&(a=nx(e,nT(t)));++o<l;)for(var c=0,s=n[o],u=t?t(s):s;(c=i(a,u,c,r))>-1;)a!==e&&e2.call(a,c,1),e2.call(e,c,1);return e}function ru(e,n){for(var t=e?n.length:0,r=t-1;t--;){var i=n[t];if(t==r||i!==o){var o=i;ik(i)?e2.call(e,i,1):rC(e,i)}}return e}function rd(e,n){return e+nQ(n7()*(n-e+1))}function rf(e,n){var t="";if(!e||n<1||n>0x1fffffffffffff)return t;do n%2&&(t+=e),(n=nQ(n/2))&&(e+=e);while(n);return t}function rh(e,n){return iN(iP(e,n,lJ),e+"")}function rm(e,n,t,r){if(!oq(e))return e;n=rz(n,e);for(var i=-1,l=n.length,a=l-1,c=e;null!=c&&++i<l;){var s=iL(n[i]),u=t;if("__proto__"===s||"constructor"===s||"prototype"===s)break;if(i!=a){var d=c[s];u=r?r(d,s,c):o,o===u&&(u=oq(d)?d:ik(n[i+1])?[]:{})}tA(c,s,u),c=c[s]}return e}var rp=tl?function(e,n){return tl.set(e,n),e}:lJ,rx=e9?function(e,n){return e9(e,"toString",{configurable:!0,enumerable:!1,value:lM(n),writable:!0})}:lJ;function rg(e,n,t){var r=-1,i=e.length;n<0&&(n=-n>i?0:i+n),(t=t>i?i:t)<0&&(t+=i),i=n>t?0:t-n>>>0,n>>>=0;for(var o=ey(i);++r<i;)o[r]=e[r+n];return o}function rj(e,n){var t;return tL(e,function(e,r,i){return!(t=n(e,r,i))}),!!t}function rb(e,n,t){var r=0,i=null==e?r:e.length;if("number"==typeof n&&n==n&&i<=0x7fffffff){for(;r<i;){var o=r+i>>>1,l=e[o];null!==l&&!o8(l)&&(t?l<=n:l<n)?r=o+1:i=o}return i}return ry(e,n,lJ,t)}function ry(e,n,t,r){var i=0,l=null==e?0:e.length;if(0===l)return 0;for(var a=(n=t(n))!=n,c=null===n,s=o8(n),u=o===n;i<l;){var d=nQ((i+l)/2),f=t(e[d]),h=o!==f,m=null===f,p=f==f,x=o8(f);if(a)var g=r||p;else g=u?p&&(r||h):c?p&&h&&(r||!m):s?p&&h&&!m&&(r||!x):!m&&!x&&(r?f<=n:f<n);g?i=d+1:l=d}return n5(l,0xfffffffe)}function rv(e,n){for(var t=-1,r=e.length,i=0,o=[];++t<r;){var l=e[t],a=n?n(l):l;if(!t||!oN(a,c)){var c=a;o[i++]=0===l?0:l}}return o}function rw(e){return"number"==typeof e?e:o8(e)?u:+e}function rk(e){if("string"==typeof e)return e;if(oM(e))return nx(e,rk)+"";if(o8(e))return tp?tp.call(e):"";var n=e+"";return"0"==n&&1/e==-s?"-0":n}function r_(e,n,t){var r=-1,i=nm,o=e.length,l=!0,a=[],c=a;if(t)l=!1,i=np;else if(o>=200){var s=n?null:r7(e);if(s)return nV(s);l=!1,i=nR,c=new t_}else c=n?[]:a;t:for(;++r<o;){var u=e[r],d=n?n(u):u;if(u=t||0!==u?u:0,l&&d==d){for(var f=c.length;f--;)if(c[f]===d)continue t;n&&c.push(d),a.push(u)}else i(c,d,t)||(c!==a&&c.push(d),a.push(u))}return a}function rC(e,n){n=rz(n,e);var t=-1,r=n.length;if(!r)return!0;for(;++t<r;){var i=iL(n[t]);if("__proto__"===i&&!eT.call(e,"__proto__")||("constructor"===i||"prototype"===i)&&t<r-1)return!1}var o=iB(e,n);return null==o||delete o[iL(iZ(n))]}function rI(e,n,t,r){return rm(e,n,t(tY(e,n)),r)}function rS(e,n,t,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&n(e[o],o,e););return t?rg(e,r?0:o,r?o+1:i):rg(e,r?o+1:0,r?i:o)}function rO(e,n){var t=e;return r(t,ty)&&(t=t.value()),nj(n,function(e,n){return n.func.apply(n.thisArg,ng([e],n.args))},t)}function rA(e,n,t){var r=e.length;if(r<2)return r?r_(e[0]):[];for(var i=-1,o=ey(r);++i<r;)for(var l=e[i],a=-1;++a<r;)a!=i&&(o[i]=tM(o[i]||l,e[a],n,t));return r_(tF(o,1),n,t)}function rP(e,n,t){for(var r=-1,i=e.length,l=n.length,a={};++r<i;){var c=r<l?n[r]:o;t(a,e[r],c)}return a}function rB(e){return oJ(e)?e:[]}function rE(e){return"function"==typeof e?e:lJ}function rz(e,n){return oM(e)?e:iC(e,n)?[e]:iM(lr(e))}function rT(e,n,t){var r=e.length;return t=o===t?r:t,!n&&t>=r?e:rg(e,n,t)}var rN=nn||function(e){return e6.clearTimeout(e)};function rR(e,n){if(n)return e.slice();var t=e.length,r=eU?eU(t):new e.constructor(t);return e.copy(r),r}function r$(e){var n=new e.constructor(e.byteLength);return new eX(n).set(new eX(e)),n}function rD(e,n){var t=n?r$(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function rM(e,n){if(e!==n){var t=o!==e,r=null===e,i=e==e,l=o8(e),a=o!==n,c=null===n,s=n==n,u=o8(n);if(!c&&!u&&!l&&e>n||l&&a&&s&&!c&&!u||r&&a&&s||!t&&s||!i)return 1;if(!r&&!l&&!u&&e<n||u&&t&&i&&!r&&!l||c&&t&&i||!a&&i||!s)return -1}return 0}function rL(e,n,t,r){for(var i=-1,o=e.length,l=t.length,a=-1,c=n.length,s=n3(o-l,0),u=ey(c+s),d=!r;++a<c;)u[a]=n[a];for(;++i<l;)(d||i<o)&&(u[t[i]]=e[i]);for(;s--;)u[a++]=e[i++];return u}function rK(e,n,t,r){for(var i=-1,o=e.length,l=-1,a=t.length,c=-1,s=n.length,u=n3(o-a,0),d=ey(u+s),f=!r;++i<u;)d[i]=e[i];for(var h=i;++c<s;)d[h+c]=n[c];for(;++l<a;)(f||i<o)&&(d[h+t[l]]=e[i++]);return d}function rJ(e,n){var t=-1,r=e.length;for(n||(n=ey(r));++t<r;)n[t]=e[t];return n}function rX(e,n,t,r){var i=!t;t||(t={});for(var l=-1,a=n.length;++l<a;){var c=n[l],s=r?r(t[c],e[c],c,t,e):o;o===s&&(s=e[c]),i?tz(t,c,s):tA(t,c,s)}return t}function rU(e,n){return function(t,r){var i=oM(t)?nu:tB,o=n?n():{};return i(t,e,ih(r,2),o)}}function rF(e){return rh(function(n,t){var r=-1,i=t.length,l=i>1?t[i-1]:o,a=i>2?t[2]:o;for(l=e.length>3&&"function"==typeof l?(i--,l):o,a&&i_(t[0],t[1],a)&&(l=i<3?o:l,i=1),n=eC(n);++r<i;){var c=t[r];c&&e(n,c,r,l)}return n})}function rV(e,n){return function(t,r){if(null==t)return t;if(!oK(t))return e(t,r);for(var i=t.length,o=n?i:-1,l=eC(t);(n?o--:++o<i)&&!1!==r(l[o],o,l););return t}}function rH(e){return function(n,t,r){for(var i=-1,o=eC(n),l=r(n),a=l.length;a--;){var c=l[e?a:++i];if(!1===t(o[c],c,o))break}return n}}function rW(e){return function(n){var t=nJ(n=lr(n))?nW(n):o,r=t?t[0]:n.charAt(0),i=t?rT(t,1).join(""):n.slice(1);return r[e]()+i}}function rq(e){return function(n){return nj(lR(lO(n).replace(eV,"")),e,"")}}function rG(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var t=tg(e.prototype),r=e.apply(t,n);return oq(r)?r:t}}function rY(e){return function(n,t,r){var i=eC(n);if(!oK(n)){var l=ih(t,3);n=lx(n),t=function(e){return l(i[e],e,i)}}var a=e(n,t,r);return a>-1?i[l?n[a]:a]:o}}function rQ(e){return il(function(n){var t=n.length,r=t,i=tb.prototype.thru;for(e&&n.reverse();r--;){var a=n[r];if("function"!=typeof a)throw new eO(l);if(i&&!c&&"wrapper"==iu(a))var c=new tb([],!0)}for(r=c?r:t;++r<t;){var s=iu(a=n[r]),u="wrapper"==s?is(a):o;c=u&&iI(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[iu(u[0])].apply(c,u[3]):1==a.length&&iI(a)?c[s]():c.thru(a)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&oM(r))return c.plant(r).value();for(var i=0,o=t?n[i].apply(this,e):r;++i<t;)o=n[i].call(this,o);return o}})}function rZ(e,n,t,i,l,a,c,s,u,d){var f=128&n,h=1&n,m=2&n,p=24&n,x=512&n,g=m?o:rG(e);function j(){for(var b=arguments.length,y=ey(b),v=b;v--;)y[v]=arguments[v];if(p)var w=id(j),k=function(e,n){for(var t=e.length,r=0;t--;)e[t]===n&&++r;return r}(y,w);if(i&&(y=rL(y,i,l,p)),a&&(y=rK(y,a,c,p)),b-=k,p&&b<d){var _=nF(y,w);return r4(e,n,rZ,j.placeholder,t,y,_,s,u,d-b)}var C=h?t:this,I=m?C[e]:e;return b=y.length,s?y=function(e,n){for(var t=e.length,r=n5(n.length,t),i=rJ(e);r--;){var l=n[r];e[r]=ik(l,t)?i[l]:o}return e}(y,s):x&&b>1&&y.reverse(),f&&u<b&&(y.length=u),this&&this!==e6&&r(this,j)&&(I=g||rG(I)),I.apply(C,y)}return j}function r0(e,n){return function(t,r){var i,o;return i=n(r),o={},tW(t,function(n,t,r){e(o,i(n),t,r)}),o}}function r1(e,n){return function(t,r){var i;if(o===t&&o===r)return n;if(o!==t&&(i=t),o!==r){if(o===i)return r;"string"==typeof t||"string"==typeof r?(t=rk(t),r=rk(r)):(t=rw(t),r=rw(r)),i=e(t,r)}return i}}function r2(e){return il(function(n){return n=nx(n,nT(ih())),rh(function(t){var r=this;return e(n,function(e){return ns(e,r,t)})})})}function r8(e,n){var t=(n=o===n?" ":rk(n)).length;if(t<2)return t?rf(n,e):n;var r=rf(n,nA(e/nH(n)));return nJ(n)?rT(nW(r),0,e).join(""):r.slice(0,e)}function r3(e){return function(n,t,r){r&&"number"!=typeof r&&i_(n,t,r)&&(t=r=o),n=o7(n),o===t?(t=n,n=0):t=o7(t),r=o===r?n<t?1:-1:o7(r);for(var i=n,l=t,a=r,c=-1,s=n3(nA((l-i)/(a||1)),0),u=ey(s);s--;)u[e?s:++c]=i,i+=a;return u}}function r5(e){return function(n,t){return("string"!=typeof n||"string"!=typeof t)&&(n=ln(n),t=ln(t)),e(n,t)}}function r4(e,n,t,r,i,l,a,c,s,u){var d=8&n,f=d?a:o,h=d?o:a,m=d?l:o,p=d?o:l;n|=d?32:64,4&(n&=~(d?64:32))||(n&=-4);var x=[e,n,i,m,f,p,h,c,s,u],g=t.apply(o,x);return iI(e)&&iz(g,x),g.placeholder=r,iR(g,e,n)}function r6(e){var n=e_[e];return function(e,t){if(e=ln(e),(t=null==t?0:n5(o9(t),292))&&n1(e)){var r=(lr(e)+"e").split("e");return+((r=(lr(n(r[0]+"e"+(+r[1]+t)))+"e").split("e"))[0]+"e"+(r[1]-t))}return n(e)}}var r7=tr&&1/nV(new tr([,-0]))[1]==s?function(e){return new tr(e)}:lH;function r9(e){return function(n){var t,r,i=ib(n);return i==b?nX(n):i==_?(t=-1,r=Array(n.size),n.forEach(function(e){r[++t]=[e,e]}),r):nx(e(n),function(e){return[e,n[e]]})}}function ie(e,n,t,i,a,s,u,d){var f=2&n;if(!f&&"function"!=typeof e)throw new eO(l);var h=i?i.length:0;if(h||(n&=-97,i=a=o),u=o===u?u:n3(o9(u),0),d=o===d?d:o9(d),h-=a?a.length:0,64&n){var m=i,p=a;i=a=o}var x=f?o:is(e),g=[e,n,t,i,a,m,p,s,u,d];if(x&&function(e,n){var t=e[1],r=n[1],i=t|r,o=i<131,l=128==r&&8==t||128==r&&256==t&&e[7].length<=n[8]||384==r&&n[7].length<=n[8]&&8==t;if(o||l){1&r&&(e[2]=n[2],i|=1&t?0:4);var a=n[3];if(a){var s=e[3];e[3]=s?rL(s,a,n[4]):a,e[4]=s?nF(e[3],c):n[4]}(a=n[5])&&(s=e[5],e[5]=s?rK(s,a,n[6]):a,e[6]=s?nF(e[5],c):n[6]),(a=n[7])&&(e[7]=a),128&r&&(e[8]=null==e[8]?n[8]:n5(e[8],n[8])),null==e[9]&&(e[9]=n[9]),e[0]=n[0],e[1]=i}}(g,x),e=g[0],n=g[1],t=g[2],i=g[3],a=g[4],(d=g[9]=g[9]===o?f?0:e.length:n3(g[9]-h,0))||!(24&n)||(n&=-25),n&&1!=n)8==n||16==n?A=function(e,n,t){var i=rG(e);function l(){for(var a=arguments.length,c=ey(a),s=a,u=id(l);s--;)c[s]=arguments[s];var d=a<3&&c[0]!==u&&c[a-1]!==u?[]:nF(c,u);return(a-=d.length)<t?r4(e,n,rZ,l.placeholder,o,c,d,o,o,t-a):ns(this&&this!==e6&&r(this,l)?i:e,this,c)}return l}(e,n,d):32!=n&&33!=n||a.length?A=rZ.apply(o,g):(j=e,b=n,y=t,v=i,w=1&b,k=rG(j),A=function e(){for(var n=-1,t=arguments.length,i=-1,o=v.length,l=ey(o+t),a=this&&this!==e6&&r(this,e)?k:j;++i<o;)l[i]=v[i];for(;t--;)l[i++]=arguments[++n];return ns(a,w?y:this,l)});else var j,b,y,v,w,k,_,C,I,S,O,A=(_=e,C=n,I=t,S=1&C,O=rG(_),function e(){return(this&&this!==e6&&r(this,e)?O:_).apply(S?I:this,arguments)});return iR((x?rp:iz)(A,g),e,n)}function it(e,n,t,r){return o===e||oN(e,eB[t])&&!eT.call(r,t)?n:e}function ir(e,n,t,r,i,l){return oq(e)&&oq(n)&&(l.set(n,e),ro(e,n,o,ir,l),l.delete(n)),e}function ii(e){return oZ(e)?o:e}function io(e,n,t,r,i,l){var a=1&t,c=e.length,s=n.length;if(c!=s&&!(a&&s>c))return!1;var u=l.get(e),d=l.get(n);if(u&&d)return u==n&&d==e;var f=-1,h=!0,m=2&t?new t_:o;for(l.set(e,n),l.set(n,e);++f<c;){var p=e[f],x=n[f];if(r)var g=a?r(x,p,f,n,e,l):r(p,x,f,e,n,l);if(o!==g){if(g)continue;h=!1;break}if(m){if(!ny(n,function(e,n){if(!nR(m,n)&&(p===e||i(p,e,t,r,l)))return m.push(n)})){h=!1;break}}else if(!(p===x||i(p,x,t,r,l))){h=!1;break}}return l.delete(e),l.delete(n),h}function il(e){return iN(iP(e,o,iW),e+"")}function ia(e){return tQ(e,lx,ig)}function ic(e){return tQ(e,lg,ij)}var is=tl?function(e){return tl.get(e)}:lH;function iu(e){for(var n=e.name+"",t=ta[n],r=eT.call(ta,n)?t.length:0;r--;){var i=t[r],o=i.func;if(null==o||o==e)return i.name}return n}function id(e){return(eT.call(tx,"placeholder")?tx:e).placeholder}function ih(){var e=tx.iteratee||lX;return e=e===lX?t9:e,arguments.length?e(arguments[0],arguments[1]):e}function im(e,n){var t,r,o=e.__data__;return("string"==(r=void 0===(t=n)?"undefined":i(t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?o["string"==typeof n?"string":"hash"]:o.map}function ip(e){for(var n=lx(e),t=n.length;t--;){var r,i=n[t],o=e[i];n[t]=[i,o,(r=o)==r&&!oq(r)]}return n}function ix(e,n){var t=null==e?o:e[n];return t7(t)?t:o}var ig=nZ?function(e){return null==e?[]:nh(nZ(e=eC(e)),function(n){return eG.call(e,n)})}:l0,ij=nZ?function(e){for(var n=[];e;)ng(n,ig(e)),e=eF(e);return n}:l0,ib=tZ;function iy(e,n,t){n=rz(n,e);for(var r=-1,i=n.length,o=!1;++r<i;){var l=iL(n[r]);if(!(o=null!=e&&t(e,l)))break;e=e[l]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&oW(i)&&ik(l,i)&&(oM(e)||oD(e))}function iv(e){return"function"!=typeof e.constructor||iO(e)?{}:tg(eF(e))}function iw(e){return oM(e)||oD(e)||!!(e5&&e&&e[e5])}function ik(e,n){var t=void 0===e?"undefined":i(e);return!!(n=null==n?0x1fffffffffffff:n)&&("number"==t||"symbol"!=t&&em.test(e))&&e>-1&&e%1==0&&e<n}function i_(e,n,t){if(!oq(t))return!1;var r=void 0===n?"undefined":i(n);return("number"==r?!!(oK(t)&&ik(n,t.length)):"string"==r&&n in t)&&oN(t[n],e)}function iC(e,n){if(oM(e))return!1;var t=void 0===e?"undefined":i(e);return!!("number"==t||"symbol"==t||"boolean"==t||null==e||o8(e))||G.test(e)||!q.test(e)||null!=n&&e in eC(n)}function iI(e){var n=iu(e),t=tx[n];if("function"!=typeof t||!(n in ty.prototype))return!1;if(e===t)return!0;var r=is(t);return!!r&&e===r[0]}(te&&ib(new te(new ArrayBuffer(1)))!=A||tn&&ib(new tn)!=b||tt&&ib(tt.resolve())!=w||tr&&ib(new tr)!=_||ti&&ib(new ti)!=S)&&(ib=function(e){var n=tZ(e),t=n==v?e.constructor:o,r=t?iK(t):"";if(r)switch(r){case tc:return A;case ts:return b;case tu:return w;case td:return _;case tf:return S}return n});var iS=eE?oV:l1;function iO(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||eB)}function iA(e,n){return function(t){return null!=t&&t[e]===n&&(o!==n||e in eC(t))}}function iP(e,n,t){return n=n3(o===n?e.length-1:n,0),function(){for(var r=arguments,i=-1,o=n3(r.length-n,0),l=ey(o);++i<o;)l[i]=r[n+i];i=-1;for(var a=ey(n+1);++i<n;)a[i]=r[i];return a[n]=t(l),ns(e,this,a)}}function iB(e,n){return n.length<2?e:tY(e,rg(n,0,-1))}function iE(e,n){if(("constructor"!==n||"function"!=typeof e[n])&&"__proto__"!=n)return e[n]}var iz=i$(rp),iT=nv||function(e,n){return e6.setTimeout(e,n)},iN=i$(rx);function iR(e,n,t){var r,i,o,l=n+"";return iN(e,function(e,n){var t=n.length;if(!t)return e;var r=t-1;return n[r]=(t>1?"& ":"")+n[r],n=n.join(t>2?", ":" "),e.replace(et,"{\n/* [wrapped with "+n+"] */\n")}(l,(r=(o=l.match(er))?o[1].split(ei):[],i=t,nd(d,function(e){var n="_."+e[0];i&e[1]&&!nm(r,n)&&r.push(n)}),r.sort())))}function i$(e){var n=0,t=0;return function(){var r=n4(),i=16-(r-t);if(t=r,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(o,arguments)}}function iD(e,n){var t=-1,r=e.length,i=r-1;for(n=o===n?r:n;++t<n;){var l=rd(t,i),a=e[l];e[l]=e[t],e[t]=a}return e.length=n,e}var iM=(ej=(en=oA(function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(Y,function(e,t,r,i){n.push(r?i.replace(ea,"$1"):t||e)}),n},function(e){return 500===ej.size&&ej.clear(),e})).cache,en);function iL(e){if("string"==typeof e||o8(e))return e;var n=e+"";return"0"==n&&1/e==-s?"-0":n}function iK(e){if(null!=e){try{return ez.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function iJ(e){if(r(e,ty))return e.clone();var n=new tb(e.__wrapped__,e.__chain__);return n.__actions__=rJ(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}var iX=rh(function(e,n){return oJ(e)?tM(e,tF(n,1,oJ,!0)):[]}),iU=rh(function(e,n){var t=iZ(n);return oJ(t)&&(t=o),oJ(e)?tM(e,tF(n,1,oJ,!0),ih(t,2)):[]}),iF=rh(function(e,n){var t=iZ(n);return oJ(t)&&(t=o),oJ(e)?tM(e,tF(n,1,oJ,!0),o,t):[]});function iV(e,n,t){var r=null==e?0:e.length;if(!r)return -1;var i=null==t?0:o9(t);return i<0&&(i=n3(r+i,0)),nk(e,ih(n,3),i)}function iH(e,n,t){var r=null==e?0:e.length;if(!r)return -1;var i=r-1;return o!==t&&(i=o9(t),i=t<0?n3(r+i,0):n5(i,r-1)),nk(e,ih(n,3),i,!0)}function iW(e){return(null==e?0:e.length)?tF(e,1):[]}function iq(e){return e&&e.length?e[0]:o}var iG=rh(function(e){var n=nx(e,rB);return n.length&&n[0]===e[0]?t8(n):[]}),iY=rh(function(e){var n=iZ(e),t=nx(e,rB);return n===iZ(t)?n=o:t.pop(),t.length&&t[0]===e[0]?t8(t,ih(n,2)):[]}),iQ=rh(function(e){var n=iZ(e),t=nx(e,rB);return(n="function"==typeof n?n:o)&&t.pop(),t.length&&t[0]===e[0]?t8(t,o,n):[]});function iZ(e){var n=null==e?0:e.length;return n?e[n-1]:o}var i0=rh(i1);function i1(e,n){return e&&e.length&&n&&n.length?rs(e,n):e}var i2=il(function(e,n){var t=null==e?0:e.length,r=tT(e,n);return ru(e,nx(n,function(e){return ik(e,t)?+e:e}).sort(rM)),r});function i8(e){return null==e?e:n9.call(e)}var i3=rh(function(e){return r_(tF(e,1,oJ,!0))}),i5=rh(function(e){var n=iZ(e);return oJ(n)&&(n=o),r_(tF(e,1,oJ,!0),ih(n,2))}),i4=rh(function(e){var n=iZ(e);return n="function"==typeof n?n:o,r_(tF(e,1,oJ,!0),o,n)});function i6(e){if(!(e&&e.length))return[];var n=0;return e=nh(e,function(e){if(oJ(e))return n=n3(e.length,n),!0}),nE(n,function(n){return nx(e,nO(n))})}function i7(e,n){if(!(e&&e.length))return[];var t=i6(e);return null==n?t:nx(t,function(e){return ns(n,o,e)})}var i9=rh(function(e,n){return oJ(e)?tM(e,n):[]}),oe=rh(function(e){return rA(nh(e,oJ))}),on=rh(function(e){var n=iZ(e);return oJ(n)&&(n=o),rA(nh(e,oJ),ih(n,2))}),ot=rh(function(e){var n=iZ(e);return n="function"==typeof n?n:o,rA(nh(e,oJ),o,n)}),or=rh(i6),oi=rh(function(e){var n=e.length,t=n>1?e[n-1]:o;return t="function"==typeof t?(e.pop(),t):o,i7(e,t)});function oo(e){var n=tx(e);return n.__chain__=!0,n}function ol(e,n){return n(e)}var oa=il(function(e){var n=e.length,t=n?e[0]:0,i=this.__wrapped__,l=function(n){return tT(n,e)};return n>1||this.__actions__.length||!r(i,ty)||!ik(t)?this.thru(l):((i=i.slice(t,+t+ +!!n)).__actions__.push({func:ol,args:[l],thisArg:o}),new tb(i,this.__chain__).thru(function(e){return n&&!e.length&&e.push(o),e}))}),oc=rU(function(e,n,t){eT.call(e,t)?++e[t]:tz(e,t,1)}),os=rY(iV),ou=rY(iH);function od(e,n){return(oM(e)?nd:tL)(e,ih(n,3))}function of(e,n){return(oM(e)?function(e,n){for(var t=null==e?0:e.length;t--&&!1!==n(e[t],t,e););return e}:tK)(e,ih(n,3))}var oh=rU(function(e,n,t){eT.call(e,t)?e[t].push(n):tz(e,t,[n])}),om=rh(function(e,n,t){var r=-1,i="function"==typeof n,o=oK(e)?ey(e.length):[];return tL(e,function(e){o[++r]=i?ns(n,e,t):t3(e,n,t)}),o}),op=rU(function(e,n,t){tz(e,t,n)});function ox(e,n){return(oM(e)?nx:rt)(e,ih(n,3))}var og=rU(function(e,n,t){e[+!t].push(n)},function(){return[[],[]]}),oj=rh(function(e,n){if(null==e)return[];var t=n.length;return t>1&&i_(e,n[0],n[1])?n=[]:t>2&&i_(n[0],n[1],n[2])&&(n=[n[0]]),ra(e,tF(n,1),[])}),ob=nt||function(){return e6.Date.now()};function oy(e,n,t){return n=t?o:n,n=e&&null==n?e.length:n,ie(e,128,o,o,o,o,n)}function ov(e,n){var t;if("function"!=typeof n)throw new eO(l);return e=o9(e),function(){return--e>0&&(t=n.apply(this,arguments)),e<=1&&(n=o),t}}var ow=rh(function(e,n,t){var r=1;if(t.length){var i=nF(t,id(ow));r|=32}return ie(e,r,n,t,i)}),ok=rh(function(e,n,t){var r=3;if(t.length){var i=nF(t,id(ok));r|=32}return ie(n,r,e,t,i)});function o_(e,n,t){n=t?o:n;var r=ie(e,8,o,o,o,o,o,n);return r.placeholder=o_.placeholder,r}function oC(e,n,t){n=t?o:n;var r=ie(e,16,o,o,o,o,o,n);return r.placeholder=oC.placeholder,r}function oI(e,n,t){var r,i,a,c,s,u,d=0,f=!1,h=!1,m=!0;if("function"!=typeof e)throw new eO(l);function p(n){var t=r,l=i;return r=i=o,d=n,c=e.apply(l,t)}function x(e){var t=e-u,r=e-d;return o===u||t>=n||t<0||h&&r>=a}function g(){var e,t,r,i=ob();if(x(i))return j(i);s=iT(g,(e=i-u,t=i-d,r=n-e,h?n5(r,a-t):r))}function j(e){return(s=o,m&&r)?p(e):(r=i=o,c)}function b(){var e,t=ob(),l=x(t);if(r=arguments,i=this,u=t,l){if(o===s)return d=e=u,s=iT(g,n),f?p(e):c;if(h)return rN(s),s=iT(g,n),p(u)}return o===s&&(s=iT(g,n)),c}return n=ln(n)||0,oq(t)&&(f=!!t.leading,a=(h="maxWait"in t)?n3(ln(t.maxWait)||0,n):a,m="trailing"in t?!!t.trailing:m),b.cancel=function(){o!==s&&rN(s),d=0,r=u=i=s=o},b.flush=function(){return o===s?c:j(ob())},b}var oS=rh(function(e,n){return tD(e,1,n)}),oO=rh(function(e,n,t){return tD(e,ln(n)||0,t)});function oA(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new eO(l);var t=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var l=e.apply(this,r);return t.cache=o.set(i,l)||o,l};return t.cache=new(oA.Cache||tk),t}function oP(e){if("function"!=typeof e)throw new eO(l);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}oA.Cache=tk;var oB=rh(function(e,n){var t=(n=1==n.length&&oM(n[0])?nx(n[0],nT(ih())):nx(tF(n,1),nT(ih()))).length;return rh(function(r){for(var i=-1,o=n5(r.length,t);++i<o;)r[i]=n[i].call(this,r[i]);return ns(e,this,r)})}),oE=rh(function(e,n){var t=nF(n,id(oE));return ie(e,32,o,n,t)}),oz=rh(function(e,n){var t=nF(n,id(oz));return ie(e,64,o,n,t)}),oT=il(function(e,n){return ie(e,256,o,o,o,n)});function oN(e,n){return e===n||e!=e&&n!=n}var oR=r5(t0),o$=r5(function(e,n){return e>=n}),oD=t5(function(){return arguments}())?t5:function(e){return oG(e)&&eT.call(e,"callee")&&!eG.call(e,"callee")},oM=ey.isArray,oL=nr?nT(nr):function(e){return oG(e)&&tZ(e)==O};function oK(e){return null!=e&&oW(e.length)&&!oV(e)}function oJ(e){return oG(e)&&oK(e)}var oX=n0||l1,oU=ni?nT(ni):function(e){return oG(e)&&tZ(e)==p};function oF(e){if(!oG(e))return!1;var n=tZ(e);return n==x||"[object DOMException]"==n||"string"==typeof e.message&&"string"==typeof e.name&&!oZ(e)}function oV(e){if(!oq(e))return!1;var n=tZ(e);return n==g||n==j||"[object AsyncFunction]"==n||"[object Proxy]"==n}function oH(e){return"number"==typeof e&&e==o9(e)}function oW(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function oq(e){var n=void 0===e?"undefined":i(e);return null!=e&&("object"==n||"function"==n)}function oG(e){return null!=e&&(void 0===e?"undefined":i(e))=="object"}var oY=no?nT(no):function(e){return oG(e)&&ib(e)==b};function oQ(e){return"number"==typeof e||oG(e)&&tZ(e)==y}function oZ(e){if(!oG(e)||tZ(e)!=v)return!1;var n=eF(e);if(null===n)return!0;var t=eT.call(n,"constructor")&&n.constructor;return"function"==typeof t&&r(t,t)&&ez.call(t)==eD}var o0=nl?nT(nl):function(e){return oG(e)&&tZ(e)==k},o1=na?nT(na):function(e){return oG(e)&&ib(e)==_};function o2(e){return"string"==typeof e||!oM(e)&&oG(e)&&tZ(e)==C}function o8(e){return(void 0===e?"undefined":i(e))=="symbol"||oG(e)&&tZ(e)==I}var o3=nc?nT(nc):function(e){return oG(e)&&oW(e.length)&&!!e0[tZ(e)]},o5=r5(rn),o4=r5(function(e,n){return e<=n});function o6(e){if(!e)return[];if(oK(e))return o2(e)?nW(e):rJ(e);if(e4&&e[e4]){for(var n,t=e[e4](),r=[];!(n=t.next()).done;)r.push(n.value);return r}var i=ib(e);return(i==b?nX:i==_?nV:lC)(e)}function o7(e){return e?(e=ln(e))===s||e===-s?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}function o9(e){var n=o7(e),t=n%1;return n==n?t?n-t:n:0}function le(e){return e?tN(o9(e),0,0xffffffff):0}function ln(e){if("number"==typeof e)return e;if(o8(e))return u;if(oq(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=oq(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=nz(e);var t=ed.test(e);return t||eh.test(e)?e3(e.slice(2),t?2:8):eu.test(e)?u:+e}function lt(e){return rX(e,lg(e))}function lr(e){return null==e?"":rk(e)}var li=rF(function(e,n){if(iO(n)||oK(n))return void rX(n,lx(n),e);for(var t in n)eT.call(n,t)&&tA(e,t,n[t])}),lo=rF(function(e,n){rX(n,lg(n),e)}),ll=rF(function(e,n,t,r){rX(n,lg(n),e,r)}),la=rF(function(e,n,t,r){rX(n,lx(n),e,r)}),lc=il(tT),ls=rh(function(e,n){e=eC(e);var t=-1,r=n.length,i=r>2?n[2]:o;for(i&&i_(n[0],n[1],i)&&(r=1);++t<r;)for(var l=n[t],a=lg(l),c=-1,s=a.length;++c<s;){var u=a[c],d=e[u];(o===d||oN(d,eB[u])&&!eT.call(e,u))&&(e[u]=l[u])}return e}),lu=rh(function(e){return e.push(o,ir),ns(lb,o,e)});function ld(e,n,t){var r=null==e?o:tY(e,n);return o===r?t:r}function lf(e,n){return null!=e&&iy(e,n,t2)}var lh=r0(function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=e$.call(n)),e[n]=t},lM(lJ)),lm=r0(function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=e$.call(n)),eT.call(e,n)?e[n].push(t):e[n]=[t]},ih),lp=rh(t3);function lx(e){return oK(e)?tI(e):re(e)}function lg(e){return oK(e)?tI(e,!0):function(e){if(!oq(e)){var n=e,t=[];if(null!=n)for(var r in eC(n))t.push(r);return t}var i=iO(e),o=[];for(var l in e)"constructor"==l&&(i||!eT.call(e,l))||o.push(l);return o}(e)}var lj=rF(function(e,n,t){ro(e,n,t)}),lb=rF(function(e,n,t,r){ro(e,n,t,r)}),ly=il(function(e,n){var t={};if(null==e)return t;var r=!1;n=nx(n,function(n){return n=rz(n,e),r||(r=n.length>1),n}),rX(e,ic(e),t),r&&(t=tR(t,7,ii));for(var i=n.length;i--;)rC(t,n[i]);return t}),lv=il(function(e,n){return null==e?{}:rc(e,n,function(n,t){return lf(e,t)})});function lw(e,n){if(null==e)return{};var t=nx(ic(e),function(e){return[e]});return n=ih(n),rc(e,t,function(e,t){return n(e,t[0])})}var lk=r9(lx),l_=r9(lg);function lC(e){return null==e?[]:nN(e,lx(e))}var lI=rq(function(e,n,t){return n=n.toLowerCase(),e+(t?lS(n):n)});function lS(e){return lN(lr(e).toLowerCase())}function lO(e){return(e=lr(e))&&e.replace(ep,nM).replace(eH,"")}var lA=rq(function(e,n,t){return e+(t?"-":"")+n.toLowerCase()}),lP=rq(function(e,n,t){return e+(t?" ":"")+n.toLowerCase()}),lB=rW("toLowerCase"),lE=rq(function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}),lz=rq(function(e,n,t){return e+(t?" ":"")+lN(n)}),lT=rq(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),lN=rW("toUpperCase");function lR(e,n,t){if(e=lr(e),n=t?o:n,o===n){var r;return(r=e,eY.test(r))?e.match(eq)||[]:e.match(eo)||[]}return e.match(n)||[]}var l$=rh(function(e,n){try{return ns(e,o,n)}catch(e){return oF(e)?e:new ew(e)}}),lD=il(function(e,n){return nd(n,function(n){tz(e,n=iL(n),ow(e[n],e))}),e});function lM(e){return function(){return e}}var lL=rQ(),lK=rQ(!0);function lJ(e){return e}function lX(e){return t9("function"==typeof e?e:tR(e,1))}var lU=rh(function(e,n){return function(t){return t3(t,e,n)}}),lF=rh(function(e,n){return function(t){return t3(e,t,n)}});function lV(e,n,t){var r=lx(n),i=tG(n,r);null!=t||oq(n)&&(i.length||!r.length)||(t=n,n=e,e=this,i=tG(n,lx(n)));var o=!(oq(t)&&"chain"in t)||!!t.chain,l=oV(e);return nd(i,function(t){var r=n[t];e[t]=r,l&&(e.prototype[t]=function(){var n=this.__chain__;if(o||n){var t=e(this.__wrapped__);return(t.__actions__=rJ(this.__actions__)).push({func:r,args:arguments,thisArg:e}),t.__chain__=n,t}return r.apply(e,ng([this.value()],arguments))})}),e}function lH(){}var lW=r2(nx),lq=r2(nf),lG=r2(ny);function lY(e){return iC(e)?nO(iL(e)):function(n){return tY(n,e)}}var lQ=r3(),lZ=r3(!0);function l0(){return[]}function l1(){return!1}var l2=r1(function(e,n){return e+n},0),l8=r6("ceil"),l3=r1(function(e,n){return e/n},1),l5=r6("floor"),l4=r1(function(e,n){return e*n},1),l6=r6("round"),l7=r1(function(e,n){return e-n},0);return tx.after=function(e,n){if("function"!=typeof n)throw new eO(l);return e=o9(e),function(){if(--e<1)return n.apply(this,arguments)}},tx.ary=oy,tx.assign=li,tx.assignIn=lo,tx.assignInWith=ll,tx.assignWith=la,tx.at=lc,tx.before=ov,tx.bind=ow,tx.bindAll=lD,tx.bindKey=ok,tx.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return oM(e)?e:[e]},tx.chain=oo,tx.chunk=function(e,n,t){n=(t?i_(e,n,t):o===n)?1:n3(o9(n),0);var r=null==e?0:e.length;if(!r||n<1)return[];for(var i=0,l=0,a=ey(nA(r/n));i<r;)a[l++]=rg(e,i,i+=n);return a},tx.compact=function(e){for(var n=-1,t=null==e?0:e.length,r=0,i=[];++n<t;){var o=e[n];o&&(i[r++]=o)}return i},tx.concat=function(){var e=arguments.length;if(!e)return[];for(var n=ey(e-1),t=arguments[0],r=e;r--;)n[r-1]=arguments[r];return ng(oM(t)?rJ(t):[t],tF(n,1))},tx.cond=function(e){var n=null==e?0:e.length,t=ih();return e=n?nx(e,function(e){if("function"!=typeof e[1])throw new eO(l);return[t(e[0]),e[1]]}):[],rh(function(t){for(var r=-1;++r<n;){var i=e[r];if(ns(i[0],this,t))return ns(i[1],this,t)}})},tx.conforms=function(e){var n,t;return t=lx(n=tR(e,1)),function(e){return t$(e,n,t)}},tx.constant=lM,tx.countBy=oc,tx.create=function(e,n){var t=tg(e);return null==n?t:tE(t,n)},tx.curry=o_,tx.curryRight=oC,tx.debounce=oI,tx.defaults=ls,tx.defaultsDeep=lu,tx.defer=oS,tx.delay=oO,tx.difference=iX,tx.differenceBy=iU,tx.differenceWith=iF,tx.drop=function(e,n,t){var r=null==e?0:e.length;return r?rg(e,(n=t||o===n?1:o9(n))<0?0:n,r):[]},tx.dropRight=function(e,n,t){var r=null==e?0:e.length;return r?rg(e,0,(n=r-(n=t||o===n?1:o9(n)))<0?0:n):[]},tx.dropRightWhile=function(e,n){return e&&e.length?rS(e,ih(n,3),!0,!0):[]},tx.dropWhile=function(e,n){return e&&e.length?rS(e,ih(n,3),!0):[]},tx.fill=function(e,n,t,r){var i=null==e?0:e.length;if(!i)return[];t&&"number"!=typeof t&&i_(e,n,t)&&(t=0,r=i);var l=t,a=r,c=e.length;for((l=o9(l))<0&&(l=-l>c?0:c+l),(a=o===a||a>c?c:o9(a))<0&&(a+=c),a=l>a?0:le(a);l<a;)e[l++]=n;return e},tx.filter=function(e,n){return(oM(e)?nh:tU)(e,ih(n,3))},tx.flatMap=function(e,n){return tF(ox(e,n),1)},tx.flatMapDeep=function(e,n){return tF(ox(e,n),s)},tx.flatMapDepth=function(e,n,t){return t=o===t?1:o9(t),tF(ox(e,n),t)},tx.flatten=iW,tx.flattenDeep=function(e){return(null==e?0:e.length)?tF(e,s):[]},tx.flattenDepth=function(e,n){return(null==e?0:e.length)?tF(e,n=o===n?1:o9(n)):[]},tx.flip=function(e){return ie(e,512)},tx.flow=lL,tx.flowRight=lK,tx.fromPairs=function(e){for(var n=-1,t=null==e?0:e.length,r={};++n<t;){var i=e[n];tz(r,i[0],i[1])}return r},tx.functions=function(e){return null==e?[]:tG(e,lx(e))},tx.functionsIn=function(e){return null==e?[]:tG(e,lg(e))},tx.groupBy=oh,tx.initial=function(e){return(null==e?0:e.length)?rg(e,0,-1):[]},tx.intersection=iG,tx.intersectionBy=iY,tx.intersectionWith=iQ,tx.invert=lh,tx.invertBy=lm,tx.invokeMap=om,tx.iteratee=lX,tx.keyBy=op,tx.keys=lx,tx.keysIn=lg,tx.map=ox,tx.mapKeys=function(e,n){var t={};return n=ih(n,3),tW(e,function(e,r,i){tz(t,n(e,r,i),e)}),t},tx.mapValues=function(e,n){var t={};return n=ih(n,3),tW(e,function(e,r,i){tz(t,r,n(e,r,i))}),t},tx.matches=function(e){return rr(tR(e,1))},tx.matchesProperty=function(e,n){return ri(e,tR(n,1))},tx.memoize=oA,tx.merge=lj,tx.mergeWith=lb,tx.method=lU,tx.methodOf=lF,tx.mixin=lV,tx.negate=oP,tx.nthArg=function(e){return e=o9(e),rh(function(n){return rl(n,e)})},tx.omit=ly,tx.omitBy=function(e,n){return lw(e,oP(ih(n)))},tx.once=function(e){return ov(2,e)},tx.orderBy=function(e,n,t,r){return null==e?[]:(oM(n)||(n=null==n?[]:[n]),oM(t=r?o:t)||(t=null==t?[]:[t]),ra(e,n,t))},tx.over=lW,tx.overArgs=oB,tx.overEvery=lq,tx.overSome=lG,tx.partial=oE,tx.partialRight=oz,tx.partition=og,tx.pick=lv,tx.pickBy=lw,tx.property=lY,tx.propertyOf=function(e){return function(n){return null==e?o:tY(e,n)}},tx.pull=i0,tx.pullAll=i1,tx.pullAllBy=function(e,n,t){return e&&e.length&&n&&n.length?rs(e,n,ih(t,2)):e},tx.pullAllWith=function(e,n,t){return e&&e.length&&n&&n.length?rs(e,n,o,t):e},tx.pullAt=i2,tx.range=lQ,tx.rangeRight=lZ,tx.rearg=oT,tx.reject=function(e,n){return(oM(e)?nh:tU)(e,oP(ih(n,3)))},tx.remove=function(e,n){var t=[];if(!(e&&e.length))return t;var r=-1,i=[],o=e.length;for(n=ih(n,3);++r<o;){var l=e[r];n(l,r,e)&&(t.push(l),i.push(r))}return ru(e,i),t},tx.rest=function(e,n){if("function"!=typeof e)throw new eO(l);return rh(e,n=o===n?n:o9(n))},tx.reverse=i8,tx.sampleSize=function(e,n,t){return n=(t?i_(e,n,t):o===n)?1:o9(n),(oM(e)?function(e,n){return iD(rJ(e),tN(n,0,e.length))}:function(e,n){var t=lC(e);return iD(t,tN(n,0,t.length))})(e,n)},tx.set=function(e,n,t){return null==e?e:rm(e,n,t)},tx.setWith=function(e,n,t,r){return r="function"==typeof r?r:o,null==e?e:rm(e,n,t,r)},tx.shuffle=function(e){return(oM(e)?function(e){return iD(rJ(e))}:function(e){return iD(lC(e))})(e)},tx.slice=function(e,n,t){var r=null==e?0:e.length;return r?(t&&"number"!=typeof t&&i_(e,n,t)?(n=0,t=r):(n=null==n?0:o9(n),t=o===t?r:o9(t)),rg(e,n,t)):[]},tx.sortBy=oj,tx.sortedUniq=function(e){return e&&e.length?rv(e):[]},tx.sortedUniqBy=function(e,n){return e&&e.length?rv(e,ih(n,2)):[]},tx.split=function(e,n,t){return(t&&"number"!=typeof t&&i_(e,n,t)&&(n=t=o),t=o===t?0xffffffff:t>>>0)?(e=lr(e))&&("string"==typeof n||null!=n&&!o0(n))&&!(n=rk(n))&&nJ(e)?rT(nW(e),0,t):e.split(n,t):[]},tx.spread=function(e,n){if("function"!=typeof e)throw new eO(l);return n=null==n?0:n3(o9(n),0),rh(function(t){var r=t[n],i=rT(t,0,n);return r&&ng(i,r),ns(e,this,i)})},tx.tail=function(e){var n=null==e?0:e.length;return n?rg(e,1,n):[]},tx.take=function(e,n,t){return e&&e.length?rg(e,0,(n=t||o===n?1:o9(n))<0?0:n):[]},tx.takeRight=function(e,n,t){var r=null==e?0:e.length;return r?rg(e,(n=r-(n=t||o===n?1:o9(n)))<0?0:n,r):[]},tx.takeRightWhile=function(e,n){return e&&e.length?rS(e,ih(n,3),!1,!0):[]},tx.takeWhile=function(e,n){return e&&e.length?rS(e,ih(n,3)):[]},tx.tap=function(e,n){return n(e),e},tx.throttle=function(e,n,t){var r=!0,i=!0;if("function"!=typeof e)throw new eO(l);return oq(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),oI(e,n,{leading:r,maxWait:n,trailing:i})},tx.thru=ol,tx.toArray=o6,tx.toPairs=lk,tx.toPairsIn=l_,tx.toPath=function(e){return oM(e)?nx(e,iL):o8(e)?[e]:rJ(iM(lr(e)))},tx.toPlainObject=lt,tx.transform=function(e,n,t){var r=oM(e),i=r||oX(e)||o3(e);if(n=ih(n,4),null==t){var o=e&&e.constructor;t=i?r?new o:[]:oq(e)&&oV(o)?tg(eF(e)):{}}return(i?nd:tW)(e,function(e,r,i){return n(t,e,r,i)}),t},tx.unary=function(e){return oy(e,1)},tx.union=i3,tx.unionBy=i5,tx.unionWith=i4,tx.uniq=function(e){return e&&e.length?r_(e):[]},tx.uniqBy=function(e,n){return e&&e.length?r_(e,ih(n,2)):[]},tx.uniqWith=function(e,n){return n="function"==typeof n?n:o,e&&e.length?r_(e,o,n):[]},tx.unset=function(e,n){return null==e||rC(e,n)},tx.unzip=i6,tx.unzipWith=i7,tx.update=function(e,n,t){return null==e?e:rI(e,n,rE(t))},tx.updateWith=function(e,n,t,r){return r="function"==typeof r?r:o,null==e?e:rI(e,n,rE(t),r)},tx.values=lC,tx.valuesIn=function(e){return null==e?[]:nN(e,lg(e))},tx.without=i9,tx.words=lR,tx.wrap=function(e,n){return oE(rE(n),e)},tx.xor=oe,tx.xorBy=on,tx.xorWith=ot,tx.zip=or,tx.zipObject=function(e,n){return rP(e||[],n||[],tA)},tx.zipObjectDeep=function(e,n){return rP(e||[],n||[],rm)},tx.zipWith=oi,tx.entries=lk,tx.entriesIn=l_,tx.extend=lo,tx.extendWith=ll,lV(tx,tx),tx.add=l2,tx.attempt=l$,tx.camelCase=lI,tx.capitalize=lS,tx.ceil=l8,tx.clamp=function(e,n,t){return o===t&&(t=n,n=o),o!==t&&(t=(t=ln(t))==t?t:0),o!==n&&(n=(n=ln(n))==n?n:0),tN(ln(e),n,t)},tx.clone=function(e){return tR(e,4)},tx.cloneDeep=function(e){return tR(e,5)},tx.cloneDeepWith=function(e,n){return tR(e,5,n="function"==typeof n?n:o)},tx.cloneWith=function(e,n){return tR(e,4,n="function"==typeof n?n:o)},tx.conformsTo=function(e,n){return null==n||t$(e,n,lx(n))},tx.deburr=lO,tx.defaultTo=function(e,n){return null==e||e!=e?n:e},tx.divide=l3,tx.endsWith=function(e,n,t){e=lr(e),n=rk(n);var r=e.length,i=t=o===t?r:tN(o9(t),0,r);return(t-=n.length)>=0&&e.slice(t,i)==n},tx.eq=oN,tx.escape=function(e){return(e=lr(e))&&F.test(e)?e.replace(X,nL):e},tx.escapeRegExp=function(e){return(e=lr(e))&&Z.test(e)?e.replace(Q,"\\$&"):e},tx.every=function(e,n,t){var r=oM(e)?nf:tJ;return t&&i_(e,n,t)&&(n=o),r(e,ih(n,3))},tx.find=os,tx.findIndex=iV,tx.findKey=function(e,n){return nw(e,ih(n,3),tW)},tx.findLast=ou,tx.findLastIndex=iH,tx.findLastKey=function(e,n){return nw(e,ih(n,3),tq)},tx.floor=l5,tx.forEach=od,tx.forEachRight=of,tx.forIn=function(e,n){return null==e?e:tV(e,ih(n,3),lg)},tx.forInRight=function(e,n){return null==e?e:tH(e,ih(n,3),lg)},tx.forOwn=function(e,n){return e&&tW(e,ih(n,3))},tx.forOwnRight=function(e,n){return e&&tq(e,ih(n,3))},tx.get=ld,tx.gt=oR,tx.gte=o$,tx.has=function(e,n){return null!=e&&iy(e,n,t1)},tx.hasIn=lf,tx.head=iq,tx.identity=lJ,tx.includes=function(e,n,t,r){e=oK(e)?e:lC(e),t=t&&!r?o9(t):0;var i=e.length;return t<0&&(t=n3(i+t,0)),o2(e)?t<=i&&e.indexOf(n,t)>-1:!!i&&n_(e,n,t)>-1},tx.indexOf=function(e,n,t){var r=null==e?0:e.length;if(!r)return -1;var i=null==t?0:o9(t);return i<0&&(i=n3(r+i,0)),n_(e,n,i)},tx.inRange=function(e,n,t){var r,i,l;return n=o7(n),o===t?(t=n,n=0):t=o7(t),(r=e=ln(e))>=n5(i=n,l=t)&&r<n3(i,l)},tx.invoke=lp,tx.isArguments=oD,tx.isArray=oM,tx.isArrayBuffer=oL,tx.isArrayLike=oK,tx.isArrayLikeObject=oJ,tx.isBoolean=function(e){return!0===e||!1===e||oG(e)&&tZ(e)==m},tx.isBuffer=oX,tx.isDate=oU,tx.isElement=function(e){return oG(e)&&1===e.nodeType&&!oZ(e)},tx.isEmpty=function(e){if(null==e)return!0;if(oK(e)&&(oM(e)||"string"==typeof e||"function"==typeof e.splice||oX(e)||o3(e)||oD(e)))return!e.length;var n=ib(e);if(n==b||n==_)return!e.size;if(iO(e))return!re(e).length;for(var t in e)if(eT.call(e,t))return!1;return!0},tx.isEqual=function(e,n){return t4(e,n)},tx.isEqualWith=function(e,n,t){var r=(t="function"==typeof t?t:o)?t(e,n):o;return o===r?t4(e,n,o,t):!!r},tx.isError=oF,tx.isFinite=function(e){return"number"==typeof e&&n1(e)},tx.isFunction=oV,tx.isInteger=oH,tx.isLength=oW,tx.isMap=oY,tx.isMatch=function(e,n){return e===n||t6(e,n,ip(n))},tx.isMatchWith=function(e,n,t){return t="function"==typeof t?t:o,t6(e,n,ip(n),t)},tx.isNaN=function(e){return oQ(e)&&e!=+e},tx.isNative=function(e){if(iS(e))throw new ew("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return t7(e)},tx.isNil=function(e){return null==e},tx.isNull=function(e){return null===e},tx.isNumber=oQ,tx.isObject=oq,tx.isObjectLike=oG,tx.isPlainObject=oZ,tx.isRegExp=o0,tx.isSafeInteger=function(e){return oH(e)&&e>=-0x1fffffffffffff&&e<=0x1fffffffffffff},tx.isSet=o1,tx.isString=o2,tx.isSymbol=o8,tx.isTypedArray=o3,tx.isUndefined=function(e){return o===e},tx.isWeakMap=function(e){return oG(e)&&ib(e)==S},tx.isWeakSet=function(e){return oG(e)&&"[object WeakSet]"==tZ(e)},tx.join=function(e,n){return null==e?"":n2.call(e,n)},tx.kebabCase=lA,tx.last=iZ,tx.lastIndexOf=function(e,n,t){var r=null==e?0:e.length;if(!r)return -1;var i=r;return o!==t&&(i=(i=o9(t))<0?n3(r+i,0):n5(i,r-1)),n==n?function(e,n,t){for(var r=t+1;r--&&e[r]!==n;);return r}(e,n,i):nk(e,nI,i,!0)},tx.lowerCase=lP,tx.lowerFirst=lB,tx.lt=o5,tx.lte=o4,tx.max=function(e){return e&&e.length?tX(e,lJ,t0):o},tx.maxBy=function(e,n){return e&&e.length?tX(e,ih(n,2),t0):o},tx.mean=function(e){return nS(e,lJ)},tx.meanBy=function(e,n){return nS(e,ih(n,2))},tx.min=function(e){return e&&e.length?tX(e,lJ,rn):o},tx.minBy=function(e,n){return e&&e.length?tX(e,ih(n,2),rn):o},tx.stubArray=l0,tx.stubFalse=l1,tx.stubObject=function(){return{}},tx.stubString=function(){return""},tx.stubTrue=function(){return!0},tx.multiply=l4,tx.nth=function(e,n){return e&&e.length?rl(e,o9(n)):o},tx.noConflict=function(){return e6._===this&&(e6._=eM),this},tx.noop=lH,tx.now=ob,tx.pad=function(e,n,t){e=lr(e);var r=(n=o9(n))?nH(e):0;if(!n||r>=n)return e;var i=(n-r)/2;return r8(nQ(i),t)+e+r8(nA(i),t)},tx.padEnd=function(e,n,t){e=lr(e);var r=(n=o9(n))?nH(e):0;return n&&r<n?e+r8(n-r,t):e},tx.padStart=function(e,n,t){e=lr(e);var r=(n=o9(n))?nH(e):0;return n&&r<n?r8(n-r,t)+e:e},tx.parseInt=function(e,n,t){return t||null==n?n=0:n&&(n*=1),n6(lr(e).replace(ee,""),n||0)},tx.random=function(e,n,t){if(t&&"boolean"!=typeof t&&i_(e,n,t)&&(n=t=o),o===t&&("boolean"==typeof n?(t=n,n=o):"boolean"==typeof e&&(t=e,e=o)),o===e&&o===n?(e=0,n=1):(e=o7(e),o===n?(n=e,e=0):n=o7(n)),e>n){var r=e;e=n,n=r}if(t||e%1||n%1){var i=n7();return n5(e+i*(n-e+e8("1e-"+((i+"").length-1))),n)}return rd(e,n)},tx.reduce=function(e,n,t){var r=oM(e)?nj:nP,i=arguments.length<3;return r(e,ih(n,4),t,i,tL)},tx.reduceRight=function(e,n,t){var r=oM(e)?nb:nP,i=arguments.length<3;return r(e,ih(n,4),t,i,tK)},tx.repeat=function(e,n,t){return n=(t?i_(e,n,t):o===n)?1:o9(n),rf(lr(e),n)},tx.replace=function(){var e=arguments,n=lr(e[0]);return e.length<3?n:n.replace(e[1],e[2])},tx.result=function(e,n,t){n=rz(n,e);var r=-1,i=n.length;for(i||(i=1,e=o);++r<i;){var l=null==e?o:e[iL(n[r])];o===l&&(r=i,l=t),e=oV(l)?l.call(e):l}return e},tx.round=l6,tx.runInContext=e,tx.sample=function(e){return(oM(e)?tS:function(e){return tS(lC(e))})(e)},tx.size=function(e){if(null==e)return 0;if(oK(e))return o2(e)?nH(e):e.length;var n=ib(e);return n==b||n==_?e.size:re(e).length},tx.snakeCase=lE,tx.some=function(e,n,t){var r=oM(e)?ny:rj;return t&&i_(e,n,t)&&(n=o),r(e,ih(n,3))},tx.sortedIndex=function(e,n){return rb(e,n)},tx.sortedIndexBy=function(e,n,t){return ry(e,n,ih(t,2))},tx.sortedIndexOf=function(e,n){var t=null==e?0:e.length;if(t){var r=rb(e,n);if(r<t&&oN(e[r],n))return r}return -1},tx.sortedLastIndex=function(e,n){return rb(e,n,!0)},tx.sortedLastIndexBy=function(e,n,t){return ry(e,n,ih(t,2),!0)},tx.sortedLastIndexOf=function(e,n){if(null==e?0:e.length){var t=rb(e,n,!0)-1;if(oN(e[t],n))return t}return -1},tx.startCase=lz,tx.startsWith=function(e,n,t){return e=lr(e),t=null==t?0:tN(o9(t),0,e.length),n=rk(n),e.slice(t,t+n.length)==n},tx.subtract=l7,tx.sum=function(e){return e&&e.length?nB(e,lJ):0},tx.sumBy=function(e,n){return e&&e.length?nB(e,ih(n,2)):0},tx.template=function(e,n,t){var r=tx.templateSettings;t&&i_(e,n,t)&&(n=o),e=lr(e),n=la({},n,r,it);var i=la({},n.imports,r.imports,it),l=lx(i),a=nN(i,l);nd(l,function(e){if(el.test(e))throw new ew("Invalid `imports` option passed into `_.template`")});var c,s,u=0,d=n.interpolate||ex,f="__p += '",h=eI((n.escape||ex).source+"|"+d.source+"|"+(d===W?ec:ex).source+"|"+(n.evaluate||ex).source+"|$","g"),m="//# sourceURL="+(eT.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eZ+"]")+"\n";e.replace(h,function(n,t,r,i,o,l){return r||(r=i),f+=e.slice(u,l).replace(eg,nK),t&&(c=!0,f+="' +\n__e("+t+") +\n'"),o&&(s=!0,f+="';\n"+o+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+n.length,n}),f+="';\n";var p=eT.call(n,"variable")&&n.variable;if(p){if(el.test(p))throw new ew("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(M,""):f).replace(L,"$1").replace(K,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(c?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var x=l$(function(){return ek(l,m+"return "+f).apply(o,a)});if(x.source=f,oF(x))throw x;return x},tx.times=function(e,n){if((e=o9(e))<1||e>0x1fffffffffffff)return[];var t=0xffffffff,r=n5(e,0xffffffff);n=ih(n),e-=0xffffffff;for(var i=nE(r,n);++t<e;)n(t);return i},tx.toFinite=o7,tx.toInteger=o9,tx.toLength=le,tx.toLower=function(e){return lr(e).toLowerCase()},tx.toNumber=ln,tx.toSafeInteger=function(e){return e?tN(o9(e),-0x1fffffffffffff,0x1fffffffffffff):0===e?e:0},tx.toString=lr,tx.toUpper=function(e){return lr(e).toUpperCase()},tx.trim=function(e,n,t){if((e=lr(e))&&(t||o===n))return nz(e);if(!e||!(n=rk(n)))return e;var r=nW(e),i=nW(n),l=n$(r,i),a=nD(r,i)+1;return rT(r,l,a).join("")},tx.trimEnd=function(e,n,t){if((e=lr(e))&&(t||o===n))return e.slice(0,nq(e)+1);if(!e||!(n=rk(n)))return e;var r=nW(e),i=nD(r,nW(n))+1;return rT(r,0,i).join("")},tx.trimStart=function(e,n,t){if((e=lr(e))&&(t||o===n))return e.replace(ee,"");if(!e||!(n=rk(n)))return e;var r=nW(e),i=n$(r,nW(n));return rT(r,i).join("")},tx.truncate=function(e,n){var t=30,r="...";if(oq(n)){var i="separator"in n?n.separator:i;t="length"in n?o9(n.length):t,r="omission"in n?rk(n.omission):r}var l=(e=lr(e)).length;if(nJ(e)){var a=nW(e);l=a.length}if(t>=l)return e;var c=t-nH(r);if(c<1)return r;var s=a?rT(a,0,c).join(""):e.slice(0,c);if(o===i)return s+r;if(a&&(c+=s.length-c),o0(i)){if(e.slice(c).search(i)){var u,d=s;for(i.global||(i=eI(i.source,lr(es.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var f=u.index;s=s.slice(0,o===f?c:f)}}else if(e.indexOf(rk(i),c)!=c){var h=s.lastIndexOf(i);h>-1&&(s=s.slice(0,h))}return s+r},tx.unescape=function(e){return(e=lr(e))&&U.test(e)?e.replace(J,nG):e},tx.uniqueId=function(e){var n=++eN;return lr(e)+n},tx.upperCase=lT,tx.upperFirst=lN,tx.each=od,tx.eachRight=of,tx.first=iq,lV(tx,(eb={},tW(tx,function(e,n){eT.call(tx.prototype,n)||(eb[n]=e)}),eb),{chain:!1}),tx.VERSION="4.18.1",nd(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){tx[e].placeholder=tx}),nd(["drop","take"],function(e,n){ty.prototype[e]=function(t){t=o===t?1:n3(o9(t),0);var r=this.__filtered__&&!n?new ty(this):this.clone();return r.__filtered__?r.__takeCount__=n5(t,r.__takeCount__):r.__views__.push({size:n5(t,0xffffffff),type:e+(r.__dir__<0?"Right":"")}),r},ty.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),nd(["filter","map","takeWhile"],function(e,n){var t=n+1,r=1==t||3==t;ty.prototype[e]=function(e){var n=this.clone();return n.__iteratees__.push({iteratee:ih(e,3),type:t}),n.__filtered__=n.__filtered__||r,n}}),nd(["head","last"],function(e,n){var t="take"+(n?"Right":"");ty.prototype[e]=function(){return this[t](1).value()[0]}}),nd(["initial","tail"],function(e,n){var t="drop"+(n?"":"Right");ty.prototype[e]=function(){return this.__filtered__?new ty(this):this[t](1)}}),ty.prototype.compact=function(){return this.filter(lJ)},ty.prototype.find=function(e){return this.filter(e).head()},ty.prototype.findLast=function(e){return this.reverse().find(e)},ty.prototype.invokeMap=rh(function(e,n){return"function"==typeof e?new ty(this):this.map(function(t){return t3(t,e,n)})}),ty.prototype.reject=function(e){return this.filter(oP(ih(e)))},ty.prototype.slice=function(e,n){e=o9(e);var t=this;return t.__filtered__&&(e>0||n<0)?new ty(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),o!==n&&(t=(n=o9(n))<0?t.dropRight(-n):t.take(n-e)),t)},ty.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ty.prototype.toArray=function(){return this.take(0xffffffff)},tW(ty.prototype,function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),l=tx[i?"take"+("last"==n?"Right":""):n],a=i||/^find/.test(n);l&&(tx.prototype[n]=function(){var n=this.__wrapped__,c=i?[1]:arguments,s=r(n,ty),u=c[0],d=s||oM(n),f=function(e){var n=l.apply(tx,ng([e],c));return i&&h?n[0]:n};d&&t&&"function"==typeof u&&1!=u.length&&(s=d=!1);var h=this.__chain__,m=!!this.__actions__.length,p=a&&!h,x=s&&!m;if(!a&&d){n=x?n:new ty(this);var g=e.apply(n,c);return g.__actions__.push({func:ol,args:[f],thisArg:o}),new tb(g,h)}return p&&x?e.apply(this,c):(g=this.thru(f),p?i?g.value()[0]:g.value():g)})}),nd(["pop","push","shift","sort","splice","unshift"],function(e){var n=eA[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);tx.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(oM(i)?i:[],e)}return this[t](function(t){return n.apply(oM(t)?t:[],e)})}}),tW(ty.prototype,function(e,n){var t=tx[n];if(t){var r=t.name+"";eT.call(ta,r)||(ta[r]=[]),ta[r].push({name:n,func:t})}}),ta[rZ(o,2).name]=[{name:"wrapper",func:o}],ty.prototype.clone=function(){var e=new ty(this.__wrapped__);return e.__actions__=rJ(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=rJ(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=rJ(this.__views__),e},ty.prototype.reverse=function(){if(this.__filtered__){var e=new ty(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e},ty.prototype.value=function(){var e=this.__wrapped__.value(),n=this.__dir__,t=oM(e),r=n<0,i=t?e.length:0,o=function(e,n,t){for(var r=-1,i=t.length;++r<i;){var o=t[r],l=o.size;switch(o.type){case"drop":e+=l;break;case"dropRight":n-=l;break;case"take":n=n5(n,e+l);break;case"takeRight":e=n3(e,n-l)}}return{start:e,end:n}}(0,i,this.__views__),l=o.start,a=o.end,c=a-l,s=r?a:l-1,u=this.__iteratees__,d=u.length,f=0,h=n5(c,this.__takeCount__);if(!t||!r&&i==c&&h==c)return rO(e,this.__actions__);var m=[];t:for(;c--&&f<h;){for(var p=-1,x=e[s+=n];++p<d;){var g=u[p],j=g.iteratee,b=g.type,y=j(x);if(2==b)x=y;else if(!y)if(1==b)continue t;else break t}m[f++]=x}return m},tx.prototype.at=oa,tx.prototype.chain=function(){return oo(this)},tx.prototype.commit=function(){return new tb(this.value(),this.__chain__)},tx.prototype.next=function(){this.__values__===o&&(this.__values__=o6(this.value()));var e=this.__index__>=this.__values__.length,n=e?o:this.__values__[this.__index__++];return{done:e,value:n}},tx.prototype.plant=function(e){for(var n,t=this;r(t,tj);){var i=iJ(t);i.__index__=0,i.__values__=o,n?l.__wrapped__=i:n=i;var l=i;t=t.__wrapped__}return l.__wrapped__=e,n},tx.prototype.reverse=function(){var e=this.__wrapped__;if(r(e,ty)){var n=e;return this.__actions__.length&&(n=new ty(this)),(n=n.reverse()).__actions__.push({func:ol,args:[i8],thisArg:o}),new tb(n,this.__chain__)}return this.thru(i8)},tx.prototype.toJSON=tx.prototype.valueOf=tx.prototype.value=function(){return rO(this.__wrapped__,this.__actions__)},tx.prototype.first=tx.prototype.head,e4&&(tx.prototype[e4]=function(){return this}),tx}();"function"==typeof define&&"object"==i(define.amd)&&define.amd?(e6._=nY,define(function(){return nY})):e9?((e9.exports=nY)._=nY,e7._=nY):e6._=nY}).call(this)},6312:function(e,n){"use strict";var t=Symbol.for("react.transitional.element");function r(e,n,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==n.key&&(i=""+n.key),"key"in n)for(var o in r={},n)"key"!==o&&(r[o]=n[o]);else r=n;return{$$typeof:t,type:e,key:i,ref:void 0!==(n=r.ref)?n:null,props:r}}n.Fragment=Symbol.for("react.fragment"),n.jsx=r,n.jsxs=r},5059:function(e,n){"use strict";function t(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),p=Symbol.iterator,x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,j={};function b(e,n,t){this.props=e,this.context=n,this.refs=j,this.updater=t||x}function y(){}function v(e,n,t){this.props=e,this.context=n,this.refs=j,this.updater=t||x}b.prototype.isReactComponent={},b.prototype.setState=function(e,n){if("object"!==(void 0===e?"undefined":t(e))&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var w=v.prototype=new y;w.constructor=v,g(w,b.prototype),w.isPureReactComponent=!0;var k=Array.isArray;function _(){}var C={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function S(e,n,t){var i=t.ref;return{$$typeof:r,type:e,key:n,ref:void 0!==i?i:null,props:t}}function O(e){return"object"===(void 0===e?"undefined":t(e))&&null!==e&&e.$$typeof===r}var A=/\/+/g;function P(e,n){var r,i;return"object"===(void 0===e?"undefined":t(e))&&null!==e&&null!=e.key?(r=""+e.key,i={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return i[e]})):n.toString(36)}function B(e,n,o){if(null==e)return e;var l=[],a=0;return!function e(n,o,l,a,c){var s,u,d,f=void 0===n?"undefined":t(n);("undefined"===f||"boolean"===f)&&(n=null);var m=!1;if(null===n)m=!0;else switch(f){case"bigint":case"string":case"number":m=!0;break;case"object":switch(n.$$typeof){case r:case i:m=!0;break;case h:return e((m=n._init)(n._payload),o,l,a,c)}}if(m)return c=c(n),m=""===a?"."+P(n,0):a,k(c)?(l="",null!=m&&(l=m.replace(A,"$&/")+"/"),e(c,o,l,"",function(e){return e})):null!=c&&(O(c)&&(s=c,u=l+(null==c.key||n&&n.key===c.key?"":(""+c.key).replace(A,"$&/")+"/")+m,c=S(s.type,u,s.props)),o.push(c)),1;m=0;var x=""===a?".":a+":";if(k(n))for(var g=0;g<n.length;g++)f=x+P(a=n[g],g),m+=e(a,o,l,f,c);else if("function"==typeof(g=null===(d=n)||"object"!==(void 0===d?"undefined":t(d))?null:"function"==typeof(d=p&&d[p]||d["@@iterator"])?d:null))for(n=g.call(n),g=0;!(a=n.next()).done;)f=x+P(a=a.value,g++),m+=e(a,o,l,f,c);else if("object"===f){if("function"==typeof n.then)return e(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(_,_):(e.status="pending",e.then(function(n){"pending"===e.status&&(e.status="fulfilled",e.value=n)},function(n){"pending"===e.status&&(e.status="rejected",e.reason=n)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),o,l,a,c);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(o=String(n))?"object with keys {"+Object.keys(n).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}return m}(e,l,"","",function(e){return n.call(o,e,a++)}),l}function E(e){if(-1===e._status){var n=e._result;(n=n()).then(function(n){(0===e._status||-1===e._status)&&(e._status=1,e._result=n)},function(n){(0===e._status||-1===e._status)&&(e._status=2,e._result=n)}),-1===e._status&&(e._status=0,e._result=n)}if(1===e._status)return e._result.default;throw e._result}var z="function"==typeof reportError?reportError:function(e){if("object"===("undefined"==typeof window?"undefined":t(window))&&"function"==typeof window.ErrorEvent){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===(void 0===e?"undefined":t(e))&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if("object"===("undefined"==typeof process?"undefined":t(process))&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};n.Activity=m,n.Children={map:B,forEach:function(e,n,t){B(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return B(e,function(){n++}),n},toArray:function(e){return B(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},n.Component=b,n.Fragment=o,n.Profiler=a,n.PureComponent=v,n.StrictMode=l,n.Suspense=d,n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,n.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}},n.cache=function(e){return function(){return e.apply(null,arguments)}},n.cacheSignal=function(){return null},n.cloneElement=function(e,n,t){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),i=e.key;if(null!=n)for(o in void 0!==n.key&&(i=""+n.key),n)I.call(n,o)&&"key"!==o&&"__self"!==o&&"__source"!==o&&("ref"!==o||void 0!==n.ref)&&(r[o]=n[o]);var o=arguments.length-2;if(1===o)r.children=t;else if(1<o){for(var l=Array(o),a=0;a<o;a++)l[a]=arguments[a+2];r.children=l}return S(e.type,i,r)},n.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:c,_context:e},e},n.createElement=function(e,n,t){var r,i={},o=null;if(null!=n)for(r in void 0!==n.key&&(o=""+n.key),n)I.call(n,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=n[r]);var l=arguments.length-2;if(1===l)i.children=t;else if(1<l){for(var a=Array(l),c=0;c<l;c++)a[c]=arguments[c+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return S(e,o,i)},n.createRef=function(){return{current:null}},n.forwardRef=function(e){return{$$typeof:u,render:e}},n.isValidElement=O,n.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:E}},n.memo=function(e,n){return{$$typeof:f,type:e,compare:void 0===n?null:n}},n.startTransition=function(e){var n=C.T,r={};C.T=r;try{var i=e(),o=C.S;null!==o&&o(r,i),"object"===(void 0===i?"undefined":t(i))&&null!==i&&"function"==typeof i.then&&i.then(_,z)}catch(e){z(e)}finally{null!==n&&null!==r.types&&(n.types=r.types),C.T=n}},n.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},n.use=function(e){return C.H.use(e)},n.useActionState=function(e,n,t){return C.H.useActionState(e,n,t)},n.useCallback=function(e,n){return C.H.useCallback(e,n)},n.useContext=function(e){return C.H.useContext(e)},n.useDebugValue=function(){},n.useDeferredValue=function(e,n){return C.H.useDeferredValue(e,n)},n.useEffect=function(e,n){return C.H.useEffect(e,n)},n.useEffectEvent=function(e){return C.H.useEffectEvent(e)},n.useId=function(){return C.H.useId()},n.useImperativeHandle=function(e,n,t){return C.H.useImperativeHandle(e,n,t)},n.useInsertionEffect=function(e,n){return C.H.useInsertionEffect(e,n)},n.useLayoutEffect=function(e,n){return C.H.useLayoutEffect(e,n)},n.useMemo=function(e,n){return C.H.useMemo(e,n)},n.useOptimistic=function(e,n){return C.H.useOptimistic(e,n)},n.useReducer=function(e,n,t){return C.H.useReducer(e,n,t)},n.useRef=function(e){return C.H.useRef(e)},n.useState=function(e){return C.H.useState(e)},n.useSyncExternalStore=function(e,n,t){return C.H.useSyncExternalStore(e,n,t)},n.useTransition=function(){return C.H.useTransition()},n.version="19.2.0"},4530:function(e,n,t){"use strict";e.exports=t(5059)},8138:function(e,n,t){"use strict";e.exports=t(6312)},2685:function(e,n){"use strict";function t(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function r(e,n){var t=e.length;for(e.push(n);0<t;){var r=t-1>>>1,i=e[r];if(0<l(i,n))e[r]=n,e[t]=i,t=r;else break}}function i(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var n=e[0],t=e.pop();if(t!==n){e[0]=t;for(var r=0,i=e.length,o=i>>>1;r<o;){var a=2*(r+1)-1,c=e[a],s=a+1,u=e[s];if(0>l(c,t))s<i&&0>l(u,c)?(e[r]=u,e[s]=t,r=s):(e[r]=c,e[a]=t,r=a);else if(s<i&&0>l(u,t))e[r]=u,e[s]=t,r=s;else break}}return n}function l(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}if(n.unstable_now=void 0,"object"===("undefined"==typeof performance?"undefined":t(performance))&&"function"==typeof performance.now){var a,c=performance;n.unstable_now=function(){return c.now()}}else{var s=Date,u=s.now();n.unstable_now=function(){return s.now()-u}}var d=[],f=[],h=1,m=null,p=3,x=!1,g=!1,j=!1,b=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function k(e){for(var n=i(f);null!==n;){if(null===n.callback)o(f);else if(n.startTime<=e)o(f),n.sortIndex=n.expirationTime,r(d,n);else break;n=i(f)}}function _(e){if(j=!1,k(e),!g)if(null!==i(d))g=!0,C||(C=!0,a());else{var n=i(f);null!==n&&z(_,n.startTime-e)}}var C=!1,I=-1,S=5,O=-1;function A(){return!!b||!(n.unstable_now()-O<S)}function P(){if(b=!1,C){var e=n.unstable_now();O=e;var t=!0;try{e:{g=!1,j&&(j=!1,v(I),I=-1),x=!0;var r=p;try{n:{for(k(e),m=i(d);null!==m&&!(m.expirationTime>e&&A());){var l=m.callback;if("function"==typeof l){m.callback=null,p=m.priorityLevel;var c=l(m.expirationTime<=e);if(e=n.unstable_now(),"function"==typeof c){m.callback=c,k(e),t=!0;break n}m===i(d)&&o(d),k(e)}else o(d);m=i(d)}if(null!==m)t=!0;else{var s=i(f);null!==s&&z(_,s.startTime-e),t=!1}}break e}finally{m=null,p=r,x=!1}}}finally{t?a():C=!1}}}if("function"==typeof w)a=function(){w(P)};else if("undefined"!=typeof MessageChannel){var B=new MessageChannel,E=B.port2;B.port1.onmessage=P,a=function(){E.postMessage(null)}}else a=function(){y(P,0)};function z(e,t){I=y(function(){e(n.unstable_now())},t)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(e){e.callback=null},n.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<e?Math.floor(1e3/e):5},n.unstable_getCurrentPriorityLevel=function(){return p},n.unstable_next=function(e){switch(p){case 1:case 2:case 3:var n=3;break;default:n=p}var t=p;p=n;try{return e()}finally{p=t}},n.unstable_requestPaint=function(){b=!0},n.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=p;p=e;try{return n()}finally{p=t}},n.unstable_scheduleCallback=function(e,o,l){var c=n.unstable_now();switch(l="object"===(void 0===l?"undefined":t(l))&&null!==l&&"number"==typeof(l=l.delay)&&0<l?c+l:c,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=0x3fffffff;break;case 4:s=1e4;break;default:s=5e3}return s=l+s,e={id:h++,callback:o,priorityLevel:e,startTime:l,expirationTime:s,sortIndex:-1},l>c?(e.sortIndex=l,r(f,e),null===i(d)&&e===i(f)&&(j?(v(I),I=-1):j=!0,z(_,l-c))):(e.sortIndex=s,r(d,e),g||x||(g=!0,C||(C=!0,a()))),e},n.unstable_shouldYield=A,n.unstable_wrapCallback=function(e){var n=p;return function(){var t=p;p=n;try{return e.apply(this,arguments)}finally{p=t}}}},8014:function(e,n,t){"use strict";e.exports=t(2685)},8587:function(e,n,t){"use strict";t.d(n,{TS:()=>s,Tj:()=>o,Ul:()=>a,pb:()=>i,y1:()=>c,yU:()=>u});function r(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var i=function(e,n){if(null==e)return e;if(Array.isArray(e)){for(var t=[],i=0;i<e.length;i++){var o=e[i];n(o,i,e)&&t.push(o)}return t}throw Error("filter() can't iterate on type ".concat(void 0===e?"undefined":r(e)))},o=function(e,n){if(null==e)return e;if(Array.isArray(e)){for(var t=[],i=0;i<e.length;i++)t.push(n(e[i],i,e));return t}if((void 0===e?"undefined":r(e))==="object"){var o=[];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&o.push(n(e[l],l,e));return o}throw Error("map() can't iterate on type ".concat(void 0===e?"undefined":r(e)))},l=function(e,n){for(var t=e.criteria,r=n.criteria,i=t.length,o=0;o<i;o++){var l=t[o],a=r[o];if(l<a)return -1;if(l>a)return 1}return 0},a=function(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];if(!Array.isArray(e))return e;for(var i=e.length,o=[],a=0;a<i;a++)!function(n){var r=e[n];o.push({criteria:t.map(function(e){return e(r)}),value:r})}(a);o.sort(l);for(var c=[];i--;)c[i]=o[i].value;return c},c=function(e,n){return Array(n-e).fill(null).map(function(n,t){return t+e})},s=function(e,n,t){var r,i,o=e.length;for(void 0===t?(r=1,i=e[0]):(r=0,i=t);r<o;r++)i=n(i,e[r],r,e);return i},u=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];if(0===n.length)return[];for(var r=n.length,i=n[0].length,o=[],l=0;l<i;l++){for(var a=[],c=0;c<r;c++)a.push(n[c][l]);o.push(a)}return o}},9227:function(e,n,t){"use strict";t.d(n,{k:()=>i}),null==(r=window.performance)||r.now;var r,i={mark:function(e,n){},measure:function(e,n){}}},5900:function(e,n,t){"use strict";function r(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return r(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.d(n,{HY:()=>c,Tw:()=>a,VP:()=>s,y$:()=>l});var l=function(e,n){if(n)return n(l)(e);var t,r=[],i=function(n){t=e(t,n);for(var i=0;i<r.length;i++)r[i]()};return i({type:"@@INIT"}),{dispatch:i,subscribe:function(e){r.push(e)},getState:function(){return t}}},a=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(e){return function(t){for(var r,l,a=arguments.length,c=Array(a>1?a-1:0),s=1;s<a;s++)c[s-1]=arguments[s];var u=e.apply(void 0,[t].concat(o(c))),d=function(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];throw Error("Dispatching while constructing your middleware is not allowed.")},f={getState:u.getState,dispatch:function(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return d.apply(void 0,[e].concat(o(t)))}};return d=n.map(function(e){return e(f)}).reduceRight(function(e,n){return n(e)},u.dispatch),r=i({},u),l=l={dispatch:d},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(l)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(l,e))}),r}}},c=function(e){var n=Object.keys(e);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,o=i({},t),l=!1,a=!0,c=!1,s=void 0;try{for(var u,d=n[Symbol.iterator]();!(a=(u=d.next()).done);a=!0){var f=u.value,h=e[f],m=t[f],p=h(m,r);m!==p&&(l=!0,o[f]=p)}}catch(e){c=!0,s=e}finally{try{a||null==d.return||d.return()}finally{if(c)throw s}}return l?o:t}},s=function(e,n){var t=function(){for(var t=arguments.length,r=Array(t),l=0;l<t;l++)r[l]=arguments[l];var a={type:e};if(n){var c=n.apply(void 0,o(r));if(!c)throw Error("prepare function did not return an object");a=i({},a,c)}else a.payload=r[0];return a};return t.toString=function(){return e},t.type=e,t.match=function(n){return n.type===e},t}},1699:function(e,n,t){"use strict";function r(e,n,t,r,i,o,l){try{var a=e[o](l),c=a.value}catch(e){t(e);return}a.done?n(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var n=this,t=arguments;return new Promise(function(i,o){var l=e.apply(n,t);function a(e){r(l,i,o,a,c,"next",e)}function c(e){r(l,i,o,a,c,"throw",e)}a(void 0)})}}function o(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}function l(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,n,t){return n&&l(e.prototype,n),t&&l(e,t),e}function c(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=a(0),l.throw=a(1),l.return=a(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(c){var s=[a,c];if(t)throw TypeError("Generator is already executing.");for(;l&&(l=0,s[0]&&(o=0)),o;)try{if(t=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],r=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}t.d(n,{IG:()=>m});var u,d=(u=function(){return window.hubStorage&&!!window.hubStorage.getItem},function(){try{return!!u()}catch(e){return!1}}),f=function(){function e(){o(this,e),c(this,"store",void 0),c(this,"impl",void 0),this.impl=0,this.store={}}return a(e,[{key:"get",value:function(e){return i(function(){return s(this,function(n){return[2,this.store[e]]})}).call(this)}},{key:"set",value:function(e,n){return i(function(){return s(this,function(t){return this.store[e]=n,[2]})}).call(this)}},{key:"remove",value:function(e){return i(function(){return s(this,function(n){return this.store[e]=void 0,[2]})}).call(this)}},{key:"clear",value:function(){return i(function(){return s(this,function(e){return this.store={},[2]})}).call(this)}}]),e}(),h=function(){function e(){o(this,e),c(this,"impl",void 0),this.impl=1}return a(e,[{key:"get",value:function(e){return i(function(){var n;return s(this,function(t){switch(t.label){case 0:return[4,window.hubStorage.getItem("paradise-"+e)];case 1:if("string"==typeof(n=t.sent()))return[2,JSON.parse(n)];return[2,void 0]}})})()}},{key:"set",value:function(e,n){return i(function(){return s(this,function(t){return window.hubStorage.setItem("paradise-"+e,JSON.stringify(n)),[2]})})()}},{key:"remove",value:function(e){return i(function(){return s(this,function(n){return window.hubStorage.removeItem("paradise-"+e),[2]})})()}},{key:"clear",value:function(){return i(function(){return s(this,function(e){return window.hubStorage.clear(),[2]})})()}}]),e}(),m=new(function(){function e(){o(this,e),c(this,"backendPromise",void 0),c(this,"impl",0),this.backendPromise=i(function(){return s(this,function(e){return d()?[2,new h]:(console.warn("No supported storage backend found. Using in-memory storage."),[2,new f])})})()}return a(e,[{key:"get",value:function(e){return i(function(){return s(this,function(n){switch(n.label){case 0:return[4,this.backendPromise];case 1:return[2,n.sent().get(e)]}})}).call(this)}},{key:"set",value:function(e,n){return i(function(){return s(this,function(t){switch(t.label){case 0:return[4,this.backendPromise];case 1:return[2,t.sent().set(e,n)]}})}).call(this)}},{key:"remove",value:function(e){return i(function(){return s(this,function(n){switch(n.label){case 0:return[4,this.backendPromise];case 1:return[2,n.sent().remove(e)]}})}).call(this)}},{key:"clear",value:function(){return i(function(){return s(this,function(e){switch(e.label){case 0:return[4,this.backendPromise];case 1:return[2,e.sent().clear()]}})}).call(this)}}]),e}())},6183:function(e,n,t){"use strict";t.d(n,{CO:()=>s,Xd:()=>f,Z4:()=>u,tk:()=>d});var r=t(8587);function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return i(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l=function(e,n){return e+n},a=function(e,n){return e-n},c=function(e,n){return e*n},s=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];return(0,r.Tj)(r.yU.apply(void 0,o(n)),function(e){return(0,r.TS)(e,l)})},u=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];return(0,r.Tj)(r.yU.apply(void 0,o(n)),function(e){return(0,r.TS)(e,a)})},d=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];return(0,r.Tj)(r.yU.apply(void 0,o(n)),function(e){return(0,r.TS)(e,c)})},f=function(e,n){return(0,r.Tj)(e,function(e){return e*n})}},8595:function(e,n,t){"use strict";t.d(n,{h:()=>l,l:()=>o});var r=[/v4shim/i],i={},o=function(e){return i[e]||e},l=function(e){return function(e){return function(n){var t=n.type,o=n.payload;if("asset/stylesheet"===t)return void Byond.loadCss(o);if("asset/mappings"===t){var l=!0,a=!1,c=void 0;try{for(var s,u=Object.keys(o)[Symbol.iterator]();!(l=(s=u.next()).done);l=!0)!function(){var e=s.value;if(!r.some(function(n){return n.test(e)})){var n=o[e],t=e.split(".").pop();i[e]=n,"css"===t&&Byond.loadCss(n),"js"===t&&Byond.loadJs(n)}}()}catch(e){a=!0,c=e}finally{try{l||null==u.return||u.return()}finally{if(a)throw c}}return}e(n)}}}},2864:function(e,n,t){"use strict";t.d(n,{H$:()=>w,J3:()=>r,JV:()=>C,Oc:()=>$,QY:()=>M,Ul:()=>D,d4:()=>L,jB:()=>B,pX:()=>E});var r,i=t(9227),o=t(5900),l=t(1874),a=t(6400),c=t(1604),s=t(2533),u=t(2901);function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){if(Array.isArray(e))return e}function h(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){h(e,n,t[n])})}return e}function x(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function g(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function j(e){var n=function(e,n){if("object"!==b(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==b(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===b(n)?n:String(n)}function b(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function y(e,n){if(e){if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,n)}}var v=(0,s.h)("backend"),w=function(e){r=e},k=(0,o.VP)("backend/update"),_=(0,o.VP)("backend/setSharedState"),C=(0,o.VP)("backend/suspendStart"),I=(0,o.VP)("backend/createPayloadQueue"),S=(0,o.VP)("backend/dequeuePayloadQueue"),O=(0,o.VP)("backend/removePayloadQueue"),A=(0,o.VP)("nextPayloadChunk"),P={config:{},data:{},shared:{},outgoingPayloadQueues:{},suspended:Date.now(),suspending:!1},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P,n=arguments.length>1?arguments[1]:void 0,t=n.type,r=n.payload;if("backend/update"===t){var i=p({},e.config,r.config),o=p({},e.data,r.static_data,r.data),l=p({},e.shared);if(r.shared){var a=!0,c=!1,s=void 0;try{for(var u,d=Object.keys(r.shared)[Symbol.iterator]();!(a=(u=d.next()).done);a=!0){var b=u.value,v=r.shared[b];""===v?l[b]=void 0:l[b]=JSON.parse(v)}}catch(e){c=!0,s=e}finally{try{a||null==d.return||d.return()}finally{if(c)throw s}}}return x(p({},e),{config:i,data:o,shared:l,suspended:!1})}if("backend/setSharedState"===t){var w=r.key,k=r.nextState;return x(p({},e),{shared:x(p({},e.shared),h({},w,k))})}if("backend/suspendStart"===t)return x(p({},e),{suspending:!0});if("backend/suspendSuccess"===t){var _=r.timestamp;return x(p({},e),{data:{},shared:{},config:x(p({},e.config),{title:"",status:1}),suspending:!1,suspended:_})}if("backend/createPayloadQueue"===t){var C=r.id,I=r.chunks,S=e.outgoingPayloadQueues;return x(p({},e),{outgoingPayloadQueues:x(p({},S),h({},C,I))})}if("backend/dequeuePayloadQueue"===t){var O=r.id,A=e.outgoingPayloadQueues,B=A[O],E=g(A,[O].map(j)),z=f(B)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(B)||y(B)||m(),T=(z[0],z.slice(1));return x(p({},e),{outgoingPayloadQueues:T.length?x(p({},E),h({},O,T)):E})}if("backend/removePayloadQueue"===t){var N=r.id,R=e.outgoingPayloadQueues;R[N];var $=g(R,[N].map(j));return x(p({},e),{outgoingPayloadQueues:$})}return e},E=function(e){var n,t;return function(r){return function(o){var s=R(e.getState()),d=s.suspended,f=s.outgoingPayloadQueues,h=o.type,m=o.payload;if("update"===h)return void e.dispatch(k(m));if("suspend"===h)return void e.dispatch({type:"backend/suspendSuccess",payload:{timestamp:Date.now()}});if("ping"===h)return void Byond.sendMessage("ping/reply");if("backend/suspendStart"===h&&!t){v.log("suspending (".concat(Byond.windowId,")"));var p=function(){return Byond.sendMessage("suspend")};p(),t=setInterval(p,2e3)}if("backend/suspendSuccess"===h&&((0,u.Su)(),clearInterval(t),t=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),(0,l.sc)(),(0,l.zr)(),setTimeout(function(){return(0,c.$)()})),"backend/update"===h){var x,g,j=null==(g=m.config)||null==(x=g.window)?void 0:x.fancy;void 0===n?n=j:n!==j&&(v.log("changing fancy mode to",j),n=j,Byond.winset(Byond.windowId,{titlebar:!j,"can-resize":!j}))}if("backend/update"===h&&d&&(v.log("backend/update",m),(0,u.P7)(),(0,l.ao)(),(0,a.MN)(),setTimeout(function(){i.k.mark("resume/start"),R(e.getState()).suspended||(Byond.winset(Byond.windowId,{"is-visible":!0}),Byond.sendMessage("visible"),i.k.mark("resume/finish"))})),"oversizePayloadResponse"===h&&(m.allow?e.dispatch(A(m)):e.dispatch(O(m))),"acknowlegePayloadChunk"===h&&(e.dispatch(S(m)),e.dispatch(A(m))),"nextPayloadChunk"===h){var b=m.id,y=f[b][0];Byond.sendMessage("payloadChunk",{id:b,chunk:y})}return r(o)}}},z=function(e,n){for(var t=e.length-1,r=0,i=0;r<t;){i=Math.round((r+t)/2);var o=encodeURIComponent(e.slice(0,i).join("")).length;if(o===n)break;o<n?r=i+1:t=i-1}return i},T=h({},Symbol.split,function(e){for(var n=e[Symbol.iterator]().toArray(),t=n.length,r=[],i=0,o=1024;i<t;){var l=n.slice(i,o<t?o:void 0),a=l.join("");if(encodeURIComponent(a).length>1024){var c=i+z(l,1024);r.push(n.slice(i,c<t?c:void 0).join("")),i=c}else r.push(a),i=o;o=i+1024}return r}),N=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!((void 0===n?"undefined":b(n))==="object"&&null!==n&&!Array.isArray(n)))return void v.error("Payload for act() must be an object, got this:",n);var t=JSON.stringify(n);if(Object.entries({type:"act/"+e,payload:t,tgui:1,windowId:Byond.windowId}).reduce(function(e,n,t){var r=f(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||y(n,2)||m(),i=r[0],o=r[1];return e+"".concat(t>0?"&":"?").concat(encodeURIComponent(i),"=").concat(encodeURIComponent(o))},"").length>2048){var i=t.split(T),o="".concat(Date.now());null==r||r.dispatch(I({id:o,chunks:i})),Byond.sendMessage("oversizedPayloadRequest",{type:"act/"+e,id:o,chunkCount:i.length});return}Byond.sendMessage("act/"+e,n)},R=function(e){return e.backend||{}},$=function(){var e;return x(p({},null==r||null==(e=r.getState())?void 0:e.backend),{act:N})},D=function(e,n){var t,i,o=null==r||null==(t=r.getState())?void 0:t.backend,l=null!=(i=null==o?void 0:o.shared)?i:{},a=e in l?l[e]:n;return[a,function(n){r.dispatch(_({key:e,nextState:"function"==typeof n?n(a):n}))}]},M=function(e,n){var t,i,o=null==r||null==(t=r.getState())?void 0:t.backend,l=null!=(i=null==o?void 0:o.shared)?i:{},a=e in l?l[e]:n;return[a,function(n){Byond.sendMessage({type:"setSharedState",key:e,value:JSON.stringify("function"==typeof n?n(a):n)||""})}]},L=function(e){return e(null==r?void 0:r.getState())}},8095:function(e,n,t){"use strict";t.d(n,{H:()=>u});var r=t(8138),i=t(4530),o=t(6859);function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var a=function(e){var n=(0,i.useRef)(e),t=(0,i.useRef)(function(e){n.current&&n.current(e)});return n.current=e,t.current},c=function(e){return e&&e.ownerDocument.defaultView||self},s=function(e,n){var t=e.getBoundingClientRect();return{left:(0,o.qE)((n.pageX-(t.left+c(e).pageXOffset))/t.width,0,1),top:(0,o.qE)((n.pageY-(t.top+c(e).pageYOffset))/t.height,0,1)}},u=(0,i.memo)(function(e){var n,t,o,u=e.onMove,d=e.onKey,f=e.style,h=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["onMove","onKey","style"]),m=(0,i.useRef)(null),p=a(u),x=a(d),g=(n=(0,i.useMemo)(function(){var e=function(e){e.preventDefault(),e.buttons>0&&m.current?p(s(m.current,e)):t(!1)},n=function(){return t(!1)},t=function(t){var r=c(m.current),i=t?r.addEventListener:r.removeEventListener;i("mousemove",e),i("mouseup",n)};return[function(e){var n=e.nativeEvent,r=m.current;r&&(n.preventDefault(),r.focus(),p(s(r,n)),t(!0))},function(e){var n=e.which||e.keyCode;n<37||n>40||(e.preventDefault(),x({left:39===n?.05:37===n?-.05:0,top:40===n?.05:38===n?-.05:0}))},t]},[x,p]),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),3!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,3)||function(e,n){if(e){if("string"==typeof e)return l(e,3);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,3)}}(n,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),j=g[0],b=g[1],y=g[2];return(0,i.useEffect)(function(){return y},[y]),(0,r.jsx)("div",(t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({},h),o=o={style:f,onMouseDown:j,className:"react-colorful__interactive",ref:m,onKeyDown:b,tabIndex:0,role:"slider"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}),t))})},7946:function(e,n,t){"use strict";t.d(n,{xA:()=>u,gm:()=>C,tx:()=>v,Gi:()=>a});var r=t(8138),i=t(4530),o=t(7790);function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function a(e){var n,t,a,c=e.children,s=e.progressBar,u=e.timeStart,d=e.timeEnd,f=e.format,h=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["children","progressBar","timeStart","timeEnd","format"]),m=Math.max((u?d-u:d)*100,0),p=(n=(0,i.useState)(m),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return l(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=p[0],g=p[1],j=(0,i.useRef)(null);function b(){g(function(e){var n=Math.max(e-1e3,0);return n<=0&&clearInterval(j.current),n})}(0,i.useEffect)(function(){return j.current||(j.current=setInterval(b,1e3)),function(){return clearInterval(j.current)}},[]);var y=new Date(x).toISOString().slice(11,19),v=(0,r.jsx)(o.az,(t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({as:"span"},h),a=a={children:f?f(x,y):y},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}),t));return s&&(v=(0,r.jsx)(o.z2,{className:"Countdown__progressBar",minValue:0,value:m-x,maxValue:m,children:(0,r.jsxs)(o.BJ,{width:"100%",textAlign:"left",children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:c}),(0,r.jsxs)(o.BJ.Item,{children:["(",v,")"]})]})})),v}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function s(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var u=function(e){var n,t,i=e.children,l=s(e,["children"]);return(0,r.jsx)(o.XI,(n=c({},l),t=t={children:(0,r.jsx)(o.XI.Row,{children:i})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))};u.Column=function(e){var n=e.size,t=e.style,i=s(e,["size","style"]);return(0,r.jsx)(o.XI.Cell,c({style:c({width:(void 0===n?1:n)+"%"},t)},i))},t(8095);var d=t(8595),f=t(2864);function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function p(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function x(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function g(e,n){return(g=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(j=function(){return!!e})()}var b=(0,i.createContext)({zoom:1}),y=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1,!1},v=function(e){var n;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(e){var n,r,i,o,l,a;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return l=t,a=[e],l=h(l),n=function(e,n){var t;if(n&&("object"==((t=n)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)||"function"==typeof n))return n;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,j()?Reflect.construct(l,a||[],h(this).constructor):l.apply(this,a)),window.innerWidth,window.innerHeight,n.state={offsetX:null!=(r=e.offsetX)?r:0,offsetY:null!=(i=e.offsetY)?i:0,dragging:!1,originX:null,originY:null,zoom:null!=(o=e.zoom)?o:1},n.handleDragStart=function(e){n.ref=e.target,n.setState({dragging:!1,originX:e.screenX,originY:e.screenY}),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd),y(e)},n.handleDragMove=function(e){n.setState(function(n){var t=m({},n),r=e.screenX-t.originX,i=e.screenY-t.originY;return n.dragging?(t.offsetX+=r/t.zoom,t.offsetY+=i/t.zoom,t.originX=e.screenX,t.originY=e.screenY):t.dragging=!0,t}),y(e)},n.handleDragEnd=function(t){var r;n.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),null==(r=e.onOffsetChange)||r.call(e,t,n.state),y(t)},n.handleZoom=function(t,r){n.setState(function(n){return n.zoom=Math.min(Math.max(r,1),8),e.onZoom&&e.onZoom(n.zoom),n})},n.handleReset=function(t){n.setState(function(r){var i;r.offsetX=0,r.offsetY=0,r.zoom=1,n.handleZoom(t,1),null==(i=e.onOffsetChange)||i.call(e,t,r)})},n}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e),n=[{key:"render",value:function(){var e=(0,f.Oc)().config,n=this.state,t=n.dragging,i=n.offsetX,l=n.offsetY,a=n.zoom,c=void 0===a?1:a,s=this.props.children,u=e.map+"_nanomap_z1.png",h=510*c+"px";return(0,r.jsx)(b.Provider,{value:{zoom:c},children:(0,r.jsxs)(o.az,{className:"NanoMap__container",children:[(0,r.jsxs)(o.az,{style:{width:h,height:h,marginTop:l*c+"px",marginLeft:i*c+"px",overflow:"hidden",position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundSize:"cover",backgroundRepeat:"no-repeat",textAlign:"center",cursor:t?"move":"auto"},onMouseDown:this.handleDragStart,children:[(0,r.jsx)("img",{src:(0,d.l)(u),style:{width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",imageRendering:"pixelated"}}),(0,r.jsx)(o.az,{children:s})]}),(0,r.jsx)(k,{zoom:c,onZoom:this.handleZoom,onReset:this.handleReset})]})})}}],function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(i.Component),w=function(e){var n=(0,i.useContext)(b).zoom,t=e.x,l=e.y,a=(e.icon,e.tooltip),c=(e.color,e.children),s=x(e,["x","y","icon","tooltip","color","children"]),u=2*n;return(0,r.jsx)("div",{children:(0,r.jsx)(o.m_,{content:a,children:(0,r.jsx)(o.az,p(m({position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:(l-1)*u+"px",left:(t-1)*u+"px",width:u+"px",height:u+"px"},s),{children:c}))})})};v.Marker=w,v.MarkerIcon=function(e){var n=(0,i.useContext)(b).zoom,t=e.icon,l=e.color,a=x(e,["icon","color"]),c=2*n+4/Math.ceil(n/4);return(0,r.jsx)(w,p(m({},a),{children:(0,r.jsx)(o.In,{name:t,color:l,fontSize:"".concat(c,"px"),style:{position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})}))};var k=function(e){return(0,r.jsx)(o.az,{className:"NanoMap__zoomer",children:(0,r.jsx)(o.Ki,{children:(0,r.jsx)(o.Ki.Item,{label:"Zoom",verticalAlign:"middle",children:(0,r.jsxs)(o.so,{direction:"row",children:[(0,r.jsx)(o.Ap,{minValue:1,maxValue:8,stepPixelSize:10,format:function(e){return e+"x"},value:e.zoom,tickWhileDragging:!0,onChange:function(n,t){return e.onZoom(n,t)}}),(0,r.jsx)(o.$n,{ml:"0.5em",style:{float:"right"},icon:"sync",tooltip:"Reset View",onClick:function(n){var t;return null==(t=e.onReset)?void 0:t.call(e,n)}})]})})})})};v.Zoomer=k;var _=t(5490),C=function(e){var n=e.className,t=e.color,i=e.left,o=e.top,l=(0,_.Ly)(["react-colorful__pointer",n]),a={top:"".concat(100*(void 0===o?.5:o),"%"),left:"".concat(100*i,"%")};return(0,r.jsx)("div",{className:l,style:a,children:(0,r.jsx)("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}})})}},421:function(e,n,t){"use strict";t.d(n,{Fo:()=>i,b_:()=>a,fF:()=>c,lm:()=>r,wM:()=>l});var r={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},i=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"}],o=[{id:"o2",name:"Oxygen",label:"O₂",color:"blue"},{id:"n2",name:"Nitrogen",label:"N₂",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO₂",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H₂O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N₂O",color:"red"},{id:"no2",name:"Nitryl",label:"NO₂",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H₂",color:"#997379"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],l=function(e,n){var t=String(e).toLowerCase(),r=o.find(function(e){return e.id===t||e.name.toLowerCase()===t});return r&&r.label||n||e},a=function(e){var n=String(e).toLowerCase(),t=o.find(function(e){return e.id===n||e.name.toLowerCase()===n});return t&&t.color},c=function(e,n){if(e>n)return"in the future";var t=(n/=10)-(e/=10);if(t>3600){var r=Math.round(t/3600);return r+" hour"+(1===r?"":"s")+" ago"}if(t>60){var i=Math.round(t/60);return i+" minute"+(1===i?"":"s")+" ago"}var o=Math.round(t);return o+" second"+(1===o?"":"s")+" ago"}},4981:function(e,n,t){"use strict";t(8138),t(7218),t(4530),t(7790),t(3384),t(937)},7218:function(e,n,t){"use strict";t.d(n,{D:()=>r});var r=(0,t(4530).createContext)(["",function(e){}])},3123:function(e,n,t){"use strict";var r=t(5900);(0,r.VP)("debug/toggleKitchenSink"),(0,r.VP)("debug/toggleDebugLayout"),(0,r.VP)("debug/openExternalBrowser")},9216:function(e,n,t){"use strict";t.d(n,{L:()=>o});var r=t(2864),i=t(8318);function o(){return(0,r.d4)(i.m)}},1956:function(e,n,t){"use strict";t.d(n,{A$:()=>i.A,Lo:()=>r.L});var r=t(9216);t(4981),t(2550);var i=t(8408)},2550:function(e,n,t){"use strict";t(1128),t(1874),t(3123)},8408:function(e,n,t){"use strict";function r(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function i(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,t=n.type;return"debug/toggleKitchenSink"===t?i(r({},e),{kitchenSink:!e.kitchenSink}):"debug/toggleDebugLayout"===t?i(r({},e),{debugLayout:!e.debugLayout}):e}t.d(n,{A:()=>o})},8318:function(e,n,t){"use strict";function r(e){return e.debug}t.d(n,{m:()=>r})},6400:function(e,n,t){"use strict";t.d(n,{BF:()=>z,C8:()=>P,MN:()=>B,nZ:()=>R,y9:()=>w});var r,i,o,l,a,c,s=t(1699),u=t(6183);function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e,n,t,r,i,o,l){try{var a=e[o](l),c=a.value}catch(e){t(e);return}a.done?n(c):Promise.resolve(c).then(r,i)}function h(e){return function(){var n=this,t=arguments;return new Promise(function(r,i){var o=e.apply(n,t);function l(e){f(o,r,i,l,a,"next",e)}function a(e){f(o,r,i,l,a,"throw",e)}l(void 0)})}}function m(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,n){var t,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=a(0),l.throw=a(1),l.return=a(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(c){var s=[a,c];if(t)throw TypeError("Generator is already executing.");for(;l&&(l=0,s[0]&&(o=0)),o;)try{if(t=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],r=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}var x=(0,t(2533).h)("drag"),g=null!=(r=window.devicePixelRatio)?r:1,j=Byond.windowId,b=!1,y=!1,v=[0,0],w=function(e){j=e},k=function(){return[window.screenLeft*g,window.screenTop*g]},_=function(){return[window.innerWidth*g,window.innerHeight*g]},C=function(e){var n=(0,u.CO)(e,v);return Byond.winset(Byond.windowId,{pos:n[0]+","+n[1]})},I=function(e){return Byond.winset(Byond.windowId,{size:e[0]+"x"+e[1]})},S=function(){return[window.screen.availWidth*g,window.screen.availHeight*g]},O=function(e,n){for(var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50,i=[n],o=0;o<e.length;o++){var l=e[o];l!==n&&(i.length<r?i.push(l):t=l)}return[i,t]},A=function(){return h(function(){var e,n,t,r;return p(this,function(i){switch(i.label){case 0:return x.log("storing geometry"),e={pos:k(),size:_()},s.IG.set(j,e),[4,s.IG.get("geometries")];case 1:return t=(n=m.apply(void 0,[O.apply(void 0,[i.sent()||[],j]),2]))[0],(r=n[1])&&s.IG.remove(r),s.IG.set("geometries",t),[2]}})})()},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h(function(){var n,t,r,o,l;return p(this,function(a){switch(a.label){case 0:if(!(t=e.fancy))return[3,2];return[4,s.IG.get(j)];case 1:t=a.sent(),a.label=2;case 2:return(n=t)&&x.log("recalled geometry:",n),r=(null==n?void 0:n.pos)||e.pos,o=e.size,e.scale&&o&&(o=[o[0]*g,o[1]*g]),e.scale?(document.body.style.zoom="",document.documentElement.style.setProperty("--scaling-amount",null)):(document.body.style.zoom="".concat(100/window.devicePixelRatio,"%"),document.documentElement.style.setProperty("--scaling-amount",window.devicePixelRatio.toString())),[4,i];case 3:return a.sent(),l=S(),o&&I(o=[Math.min(l[0],o[0]),Math.min(l[1],o[1])]),r?(o&&e.locked&&(r=E(r,o)[1]),C(r)):o&&C(r=(0,u.CO)((0,u.Xd)(l,.5),(0,u.Xd)(o,-.5),(0,u.Xd)(v,-1))),[2]}})})()},B=function(){return h(function(){var e;return p(this,function(n){switch(n.label){case 0:return e=k(),[4,i=Byond.winget(Byond.windowId,"pos").then(function(n){return[n.x-e[0],n.y-e[1]]})];case 1:return v=n.sent(),x.debug("screen offset",v),[2]}})})()},E=function(e,n){for(var t=[0-v[0],0-v[1]],r=S(),i=[e[0],e[1]],o=!1,l=0;l<2;l++){var a=t[l],c=t[l]+r[l];e[l]<a?(i[l]=a,o=!0):e[l]+n[l]>c&&(i[l]=c-n[l],o=!0)}return[o,i]},z=function(e){var n;x.log("drag start"),b=!0,o=(0,u.Z4)([e.screenX*g,e.screenY*g],k()),null==(n=e.target)||n.focus(),document.addEventListener("mousemove",N),document.addEventListener("mouseup",T),N(e)},T=function(e){x.log("drag end"),N(e),document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",T),b=!1,A()},N=function(e){b&&(e.preventDefault(),C((0,u.Z4)([e.screenX*g,e.screenY*g],o)))},R=function(e,n){return function(t){var r;l=[e,n],x.log("resize start",l),y=!0,o=(0,u.Z4)([t.screenX*g,t.screenY*g],k()),a=_(),null==(r=t.target)||r.focus(),document.addEventListener("mousemove",D),document.addEventListener("mouseup",$),D(t)}},$=function(e){x.log("resize end",c),D(e),document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",$),y=!1,A()},D=function(e){if(y){e.preventDefault();var n=(0,u.Z4)([e.screenX*g,e.screenY*g],k()),t=(0,u.Z4)(n,o);(c=(0,u.CO)(a,(0,u.tk)(l,t),[1,1]))[0]=Math.max(c[0],150*g),c[1]=Math.max(c[1],50*g),I(c)}}},1604:function(e,n,t){"use strict";t.d(n,{$:()=>r});var r=function(){Byond.winset("paramapwindow.map",{focus:!0})}},9609:function(e,n,t){"use strict";t.r(n),t.d(n,{AICard:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data;if(0===a.has_ai)return(0,r.jsx)(l.p8,{width:250,height:120,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.wn,{title:"Stored AI",children:(0,r.jsx)(i.az,{children:(0,r.jsx)("h3",{children:"No AI detected."})})})})});var c=null;return c=a.integrity>=75?"green":a.integrity>=25?"yellow":"red",(0,r.jsx)(l.p8,{width:600,height:420,children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.wn,{title:a.name,children:[(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Integrity",children:(0,r.jsx)(i.z2,{color:c,value:a.integrity/100})})}),(0,r.jsx)(i.az,{color:"red",children:(0,r.jsx)("h2",{children:1===a.flushing?"Wipe of AI in progress...":""})})]})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Laws",children:!!a.has_laws&&(0,r.jsx)(i.az,{children:a.laws.map(function(e,n){return(0,r.jsx)(i.az,{children:e},n)})})||(0,r.jsx)(i.az,{color:"red",children:(0,r.jsx)("h3",{children:"No laws detected."})})})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Actions",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Wireless Activity",children:(0,r.jsx)(i.$n,{width:10,icon:a.wireless?"check":"times",content:a.wireless?"Enabled":"Disabled",color:a.wireless?"green":"red",onClick:function(){return t("wireless")}})}),(0,r.jsx)(i.Ki.Item,{label:"Subspace Transceiver",children:(0,r.jsx)(i.$n,{width:10,icon:a.radio?"check":"times",content:a.radio?"Enabled":"Disabled",color:a.radio?"green":"red",onClick:function(){return t("radio")}})}),(0,r.jsx)(i.Ki.Item,{label:"Wipe",children:(0,r.jsx)(i.$n.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:a.flushing||0===a.integrity,confirmColor:"red",content:"Wipe AI",onClick:function(){return t("wipe")}})})]})})})]})})})}},1664:function(e,n,t){"use strict";t.r(n),t.d(n,{AIControllerDebugger:()=>u,CopyableValue:()=>c,ObjectReference:()=>s});var r=t(8138),i=t(9856),o=t(7790),l=t(2864),a=t(3384),c=function(e){var n=e.text;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.$n,{icon:"clipboard-list",onClick:function(){return navigator.clipboard.writeText(n)}}),(0,r.jsx)("span",{style:{fontFamily:"monospace"},children:n})]})},s=function(e){var n=(0,l.Oc)().act,t=e.obj_ref;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.$n,{onClick:function(){return n("vv",{uid:t.uid})},children:"VV"}),(0,r.jsx)(o.$n,{onClick:function(){return n("flw",{uid:t.uid})},children:"FLW"}),"\xa0",t.name]})},u=function(e){var n=(0,l.Oc)(),t=n.data,u=n.act,d=t.controller;return(0,r.jsx)(a.p8,{width:675,height:600,children:(0,r.jsx)(a.p8.Content,{scrollable:!0,children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.wn,{title:"Basic Info",children:(0,r.jsxs)(o.XI,{children:[d.pawn&&(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:"Pawn"}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(s,{obj_ref:d.pawn})})]}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:"Status"}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(c,{text:d.ai_status})})]}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:"Type"}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(c,{text:d.type})})]}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:"Idle Behavior"}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(c,{text:d.idle_behavior})})]}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:"Movement"}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(c,{text:d.movement})})]}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:"Movement Delay"}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(c,{text:d.movement_delay})})]}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:"Able to Plan"}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(c,{text:d.able_to_plan?"Yes":"No"})})]}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:"On Failed Planning Timeout"}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(c,{text:d.on_failed_planning_timeout?"Yes":"No"})})]}),d.movement_target&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:"Movement Target"}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(s,{obj_ref:d.movement_target})})]}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:"Target Source"}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(c,{text:d.movement_target.source})})]})]})]})}),(0,r.jsx)(o.wn,{title:"Blackboard",children:(0,r.jsx)(o.XI,{className:"AIControllerDebugger__Blackboard",children:d.blackboard.map(function(e){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e.name.length>30?(0,r.jsx)(o.m_,{content:e.name,children:(0,r.jsx)(o.az,{children:(0,i.truncate)(e.name)})}):e.name}),(0,r.jsxs)(o.XI.Cell,{className:"bb_value",children:[e.uid&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.$n,{onClick:function(){return u("vv",{uid:e.uid})},children:"VV"}),(0,r.jsx)(o.$n,{onClick:function(){return u("flw",{uid:e.uid})},children:"FLW"}),"\xa0"]}),e.value||"null"]})]},e.name)})})}),(0,r.jsx)(o.wn,{title:"Current Behaviors",children:(0,r.jsx)(o.XI,{children:d.current_behaviors.map(function(e,n){return(0,r.jsx)(o.XI.Row,{children:(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(c,{text:e})})},n)})})}),(0,r.jsx)(o.wn,{title:"Planned Behaviors",children:(0,r.jsx)(o.XI,{children:d.planned_behaviors.map(function(e,n){return(0,r.jsx)(o.XI.Row,{children:(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(c,{text:e})})},n)})})})]})})})}},8679:function(e,n,t){"use strict";t.r(n),t.d(n,{AIFixer:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data;if(null===a.occupant)return(0,r.jsx)(l.p8,{width:550,height:500,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.wn,{fill:!0,title:"Stored AI",children:(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,r.jsxs)(i.In.Stack,{children:[(0,r.jsx)(i.In,{name:"robot",size:5,color:"silver"}),(0,r.jsx)(i.In,{name:"slash",size:5,color:"red"})]}),(0,r.jsx)("br",{}),(0,r.jsx)("h3",{children:"No Artificial Intelligence detected."})]})})})})});var c=!0;(2===a.stat||null===a.stat)&&(c=!1);var s=null;s=a.integrity>=75?"green":a.integrity>=25?"yellow":"red";var u=!0;return a.integrity>=100&&2!==a.stat&&(u=!1),(0,r.jsx)(l.p8,{children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:a.occupant,children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Integrity",children:(0,r.jsx)(i.z2,{color:s,value:a.integrity/100})}),(0,r.jsx)(i.Ki.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Laws",children:!!a.has_laws&&(0,r.jsx)(i.az,{children:a.laws.map(function(e,n){return(0,r.jsx)(i.az,{inline:!0,children:e},n)})})||(0,r.jsx)(i.az,{color:"red",children:(0,r.jsx)("h3",{children:"No laws detected."})})})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.wn,{title:"Actions",children:[(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Wireless Activity",children:(0,r.jsx)(i.$n,{icon:a.wireless?"times":"check",content:a.wireless?"Disabled":"Enabled",color:a.wireless?"red":"green",onClick:function(){return t("wireless")}})}),(0,r.jsx)(i.Ki.Item,{label:"Subspace Transceiver",children:(0,r.jsx)(i.$n,{icon:a.radio?"times":"check",content:a.radio?"Disabled":"Enabled",color:a.radio?"red":"green",onClick:function(){return t("radio")}})}),(0,r.jsx)(i.Ki.Item,{label:"Start Repairs",children:(0,r.jsx)(i.$n,{icon:"wrench",disabled:!u||a.active,content:!u||a.active?"Already Repaired":"Repair",onClick:function(){return t("fix")}})})]}),(0,r.jsx)(i.az,{color:"green",lineHeight:2,children:a.active?"Reconstruction in progress.":""})]})})]})})})}},5233:function(e,n,t){"use strict";t.r(n),t.d(n,{AIProgramPicker:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.program_list,s=a.ai_info;return(0,r.jsx)(l.p8,{width:450,height:600,children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Select Program",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Memory Available",children:s.memory}),(0,r.jsx)(i.Ki.Item,{label:"Bandwidth Available",children:s.bandwidth})]})})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:!!c&&c.map(function(e,n){return(0,r.jsx)(i.wn,{title:e.name,mb:1,buttons:(0,r.jsx)(i.$n,{icon:"file",onClick:function(){return t("select",{uid:e.UID})},children:1===e.installed?"Update":"Install"}),children:(0,r.jsx)(i.BJ,{vertical:!0,children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.BJ.Item,{mb:2,children:(0,r.jsx)(i.Ki.Item,{label:"Description",children:e.description})}),(0,r.jsxs)(i.BJ,{children:[(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.Ki.Item,{label:1===e.installed?"Bandwidth Cost":"Memory Cost",children:e.memory_cost}),(0,r.jsx)(i.Ki.Item,{label:"Upgrade Level",children:e.upgrade_level})]}),(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.Ki.Item,{label:"Installed",children:1===e.installed?"True":"False"}),(0,r.jsx)(i.Ki.Item,{label:"Passive",children:1===e.is_passive?"True":"False"})]})]})]})})},e)})})]})})})}},9991:function(e,n,t){"use strict";t.r(n),t.d(n,{AIResourceManagementConsole:()=>s});var r=t(8138),i=t(7790),o=t(3268),l=t(2864),a=t(3384),c=function(e){var n,t=(0,l.Oc)().data.screen;return 0===t?n=(0,r.jsx)(u,{}):1===t&&(n=(0,r.jsx)(d,{})),n},s=function(e){var n=(0,l.Oc)(),t=n.act,o=n.data;o.auth,o.ai_list,o.nodes_list;var s=o.screen;return(0,r.jsx)(a.p8,{width:350,height:425,children:(0,r.jsx)(a.p8.Content,{scrollable:!0,children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.tU,{children:[(0,r.jsx)(i.tU.Tab,{selected:0===s,icon:"list",onClick:function(){return t("menu",{screen:0})},children:"Allocated Resources"}),(0,r.jsx)(i.tU.Tab,{selected:1===s,icon:"circle-nodes",onClick:function(){return t("menu",{screen:1})},children:"Online Nodes"})]})}),(0,r.jsx)(i.BJ.Item,{grow:!0,mt:0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,children:(0,r.jsx)(c,{})})})]})})})},u=function(e){var n=(0,l.Oc)(),t=(n.act,n.data);t.screen;var o=t.ai_list;return t.nodes_list,(0,r.jsxs)(i.az,{children:[(!o||0===o.length)&&(0,r.jsx)(i.IC,{children:"No AI detected."}),!!o&&o.map(function(e,n){return(0,r.jsx)(i.wn,{title:e.name,children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Memory",children:e.memory}),(0,r.jsx)(i.Ki.Item,{label:"Maximum Memory",children:e.memory_max}),(0,r.jsx)(i.Ki.Item,{label:"Bandwidth",children:e.bandwidth}),(0,r.jsx)(i.Ki.Item,{label:"Maximum Bandwidth",children:e.bandwidth_max})]})},e)})]})},d=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data;a.screen,a.ai_list;var c=a.nodes_list;return(0,r.jsxs)(i.az,{children:[(!c||0===c.length)&&(0,r.jsx)(i.IC,{children:"No nodes detected."}),!!c&&c.map(function(e,n){return(0,r.jsx)(i.wn,{title:(0,o.ZH)(e.name),buttons:(0,r.jsx)(i.az,{children:(0,r.jsx)(i.$n,{icon:"circle-nodes",onClick:function(){return t("reassign",{uid:e.uid})},children:"Reassign"})}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Assigned AI",children:e.assigned_ai}),(0,r.jsx)(i.Ki.Item,{label:"Resource",children:(0,o.ZH)(e.resource)}),(0,r.jsx)(i.Ki.Item,{label:"Amount",children:e.amount})]})},e)})]})}},731:function(e,n,t){"use strict";t.r(n),t.d(n,{APC:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(1992),c=function(e){return(0,r.jsx)(l.p8,{width:510,height:435,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(d,{})})})},s={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},u={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},d=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,c=l.locked&&!l.siliconUser;l.normallyLocked;var d=s[l.externalPower]||s[0],f=s[l.chargingStatus]||s[0],h=l.powerChannels||[],m=u[l.malfStatus]||u[0],p=l.powerCellStatus/100;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.InterfaceLockNoticeBox,{}),(0,r.jsx)(i.wn,{title:"Power Status",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Main Breaker",color:d.color,buttons:(0,r.jsx)(i.$n,{icon:l.isOperating?"power-off":"times",content:l.isOperating?"On":"Off",selected:l.isOperating&&!c,color:l.isOperating?"":"bad",disabled:c,onClick:function(){return t("breaker")}}),children:["[ ",d.externalPowerText," ]"]}),(0,r.jsx)(i.Ki.Item,{label:"Power Cell",children:(0,r.jsx)(i.z2,{color:"good",value:p})}),(0,r.jsxs)(i.Ki.Item,{label:"Charge Mode",color:f.color,buttons:(0,r.jsx)(i.$n,{icon:l.chargeMode?"sync":"times",content:l.chargeMode?"Auto":"Off",selected:l.chargeMode,disabled:c,onClick:function(){return t("charge")}}),children:["[ ",f.chargingText," ]"]})]})}),(0,r.jsx)(i.wn,{title:"Power Channels",children:(0,r.jsxs)(i.Ki,{children:[h.map(function(e){var n=e.topicParams;return(0,r.jsxs)(i.Ki.Item,{label:e.title,buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.az,{inline:!0,mx:2,color:e.status>=2?"good":"bad",children:e.status>=2?"On":"Off"}),(0,r.jsx)(i.$n,{icon:"sync",content:"Auto",selected:!c&&(1===e.status||3===e.status),disabled:c,onClick:function(){return t("channel",n.auto)}}),(0,r.jsx)(i.$n,{icon:"power-off",content:"On",selected:!c&&2===e.status,disabled:c,onClick:function(){return t("channel",n.on)}}),(0,r.jsx)(i.$n,{icon:"times",content:"Off",selected:!c&&0===e.status,disabled:c,onClick:function(){return t("channel",n.off)}})]}),children:[e.powerLoad," W"]},e.title)}),(0,r.jsx)(i.Ki.Item,{label:"Total Load",children:(0,r.jsxs)("b",{children:[l.totalLoad," W"]})})]})}),(0,r.jsx)(i.wn,{title:"Misc",buttons:!!l.siliconUser&&(0,r.jsxs)(r.Fragment,{children:[!!l.malfStatus&&(0,r.jsx)(i.$n,{icon:m.icon,content:m.content,color:"bad",onClick:function(){return t(m.action)}}),(0,r.jsx)(i.$n,{icon:"lightbulb-o",content:"Overload",onClick:function(){return t("overload")}})]}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Cover Lock",buttons:(0,r.jsx)(i.$n,{mb:.4,icon:l.coverLocked?"lock":"unlock",content:l.coverLocked?"Engaged":"Disengaged",disabled:c,onClick:function(){return t("cover")}})}),(0,r.jsx)(i.Ki.Item,{label:"Emergency Lighting",buttons:(0,r.jsx)(i.$n,{icon:"lightbulb-o",content:l.emergencyLights?"Enabled":"Disabled",disabled:c,onClick:function(){return t("emergency_lighting")}})}),(0,r.jsx)(i.Ki.Item,{label:"Night Shift Lighting",buttons:(0,r.jsx)(i.$n,{mt:.4,icon:"lightbulb-o",content:l.nightshiftLights?"Enabled":"Disabled",onClick:function(){return t("toggle_nightshift")}})})]})})]})}},6181:function(e,n,t){"use strict";t.r(n),t.d(n,{ATM:()=>u});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(e){var n,t=(0,l.Oc)(),i=(t.act,t.data),c=i.view_screen,s=i.authenticated_account,u=i.ticks_left_locked_down,g=i.linked_db;if(u>0)n=(0,r.jsxs)(o.az,{bold:!0,color:"bad",children:[(0,r.jsx)(o.In,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(g)if(s)switch(c){case 1:n=(0,r.jsx)(f,{});break;case 2:n=(0,r.jsx)(h,{});break;case 3:n=(0,r.jsx)(x,{});break;default:n=(0,r.jsx)(m,{})}else n=(0,r.jsx)(p,{});else n=(0,r.jsxs)(o.az,{bold:!0,color:"bad",children:[(0,r.jsx)(o.In,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});return(0,r.jsx)(a.p8,{width:550,height:650,children:(0,r.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,r.jsx)(d,{}),(0,r.jsx)(o.wn,{children:n})]})})},d=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data;i.machine_id;var a=i.held_card_name;return(0,r.jsxs)(o.wn,{title:"Nanotrasen Automatic Teller Machine",children:[(0,r.jsx)(o.az,{children:"For all your monetary needs!"}),(0,r.jsx)(o.cG,{}),(0,r.jsx)(o.Ki,{children:(0,r.jsx)(o.Ki.Item,{label:"Card",children:(0,r.jsx)(o.$n,{content:a,icon:"eject",onClick:function(){return t("insert_card")}})})})]})},f=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data.security_level;return(0,r.jsxs)(o.wn,{title:"Select a new security level for this account",children:[(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.cG,{}),(0,r.jsx)(o.Ki.Item,{label:"Level",children:(0,r.jsx)(o.$n,{content:"Account Number",icon:"unlock",selected:0===i,onClick:function(){return t("change_security_level",{new_security_level:1})}})}),(0,r.jsx)(o.Ki.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,r.jsx)(o.cG,{}),(0,r.jsx)(o.Ki.Item,{label:"Level",children:(0,r.jsx)(o.$n,{content:"Account Pin",icon:"unlock",selected:2===i,onClick:function(){return t("change_security_level",{new_security_level:2})}})}),(0,r.jsx)(o.Ki.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,r.jsx)(o.cG,{}),(0,r.jsx)(g,{})]})},h=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data,c=s((0,i.useState)(0),2),u=c[0],d=c[1],f=s((0,i.useState)(0),2),h=f[0],m=f[1],p=s((0,i.useState)(0),2),x=p[0],j=p[1],b=a.money;return(0,r.jsxs)(o.wn,{title:"Transfer Fund",children:[(0,r.jsxs)(o.Ki,{children:[(0,r.jsxs)(o.Ki.Item,{label:"Account Balance",children:["$",b]}),(0,r.jsx)(o.Ki.Item,{label:"Target Account Number",children:(0,r.jsx)(o.pd,{placeholder:"7 Digit Number",onChange:function(e){return d(e)}})}),(0,r.jsx)(o.Ki.Item,{label:"Funds to Transfer",children:(0,r.jsx)(o.pd,{onChange:function(e){return m(e)}})}),(0,r.jsx)(o.Ki.Item,{label:"Transaction Purpose",children:(0,r.jsx)(o.pd,{fluid:!0,onChange:function(e){return j(e)}})})]}),(0,r.jsx)(o.cG,{}),(0,r.jsx)(o.$n,{content:"Transfer",icon:"sign-out-alt",onClick:function(){return t("transfer",{target_acc_number:u,funds_amount:h,purpose:x})}}),(0,r.jsx)(o.cG,{}),(0,r.jsx)(g,{})]})},m=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data,c=s((0,i.useState)(0),2),u=c[0],d=c[1],f=a.owner_name,h=a.money;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.wn,{title:"Welcome, "+f,buttons:(0,r.jsx)(o.$n,{content:"Logout",icon:"sign-out-alt",onClick:function(){return t("logout")}}),children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsxs)(o.Ki.Item,{label:"Account Balance",children:["$",h]}),(0,r.jsx)(o.Ki.Item,{label:"Withdrawal Amount",children:(0,r.jsx)(o.pd,{onChange:function(e){return d(e)}})}),(0,r.jsx)(o.Ki.Item,{children:(0,r.jsx)(o.$n,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){return t("withdrawal",{funds_amount:u})}})})]})}),(0,r.jsxs)(o.wn,{title:"Menu",children:[(0,r.jsx)(o.az,{children:(0,r.jsx)(o.$n,{content:"Change account security level",icon:"lock",onClick:function(){return t("view_screen",{view_screen:1})}})}),(0,r.jsx)(o.az,{children:(0,r.jsx)(o.$n,{content:"Make transfer",icon:"exchange-alt",onClick:function(){return t("view_screen",{view_screen:2})}})}),(0,r.jsx)(o.az,{children:(0,r.jsx)(o.$n,{content:"View transaction log",icon:"list",onClick:function(){return t("view_screen",{view_screen:3})}})}),(0,r.jsx)(o.az,{children:(0,r.jsx)(o.$n,{content:"Print balance statement",icon:"print",onClick:function(){return t("balance_statement")}})})]})]})},p=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data,c=s((0,i.useState)(null),2),u=c[0],d=c[1],f=s((0,i.useState)(null),2),h=f[0],m=f[1];return a.machine_id,a.held_card_name,(0,r.jsx)(o.wn,{title:"Insert card or enter ID and pin to login",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Account ID",children:(0,r.jsx)(o.pd,{placeholder:"6 Digit Number",onChange:function(e){return d(e)}})}),(0,r.jsx)(o.Ki.Item,{label:"Pin",children:(0,r.jsx)(o.pd,{placeholder:"6 Digit Number",onChange:function(e){return m(e)}})}),(0,r.jsx)(o.Ki.Item,{children:(0,r.jsx)(o.$n,{content:"Login",icon:"sign-in-alt",onClick:function(){return t("attempt_auth",{account_num:u,account_pin:h})}})})]})})},x=function(e){var n=(0,l.Oc)(),t=(n.act,n.data).transaction_log;return(0,r.jsxs)(o.wn,{title:"Transactions",children:[(0,r.jsxs)(o.XI,{children:[(0,r.jsxs)(o.XI.Row,{header:!0,children:[(0,r.jsx)(o.XI.Cell,{children:"Timestamp"}),(0,r.jsx)(o.XI.Cell,{children:"Reason"}),(0,r.jsx)(o.XI.Cell,{children:"Value"}),(0,r.jsx)(o.XI.Cell,{children:"Terminal"})]}),t.map(function(e){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e.time}),(0,r.jsx)(o.XI.Cell,{children:e.purpose}),(0,r.jsxs)(o.XI.Cell,{color:e.is_deposit?"green":"red",children:["$",e.amount]}),(0,r.jsx)(o.XI.Cell,{children:e.target_name})]},e)})]}),(0,r.jsx)(o.cG,{}),(0,r.jsx)(g,{})]})},g=function(e){var n=(0,l.Oc)(),t=n.act;return n.data,(0,r.jsx)(o.$n,{content:"Back",icon:"sign-out-alt",onClick:function(){return t("view_screen",{view_screen:0})}})}},4558:function(e,n,t){"use strict";t.r(n),t.d(n,{AccountsUplinkTerminal:()=>x});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864),c=t(3384),s=t(7352),u=t(736),d=t(6888),f=t(2264),h=t(4900);function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function p(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return m(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var x=function(e){var n,t=(0,a.Oc)(),i=(t.act,t.data),l=i.loginState,d=i.currentPage;return l.logged_in?(1===d?n=(0,r.jsx)(j,{}):2===d?n=(0,r.jsx)(_,{}):3===d&&(n=(0,r.jsx)(C,{})),(0,r.jsx)(c.p8,{width:800,height:600,children:(0,r.jsx)(c.p8.Content,{scrollable:!0,children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(s.LoginInfo,{}),(0,r.jsxs)(h.default.Default,{tabIndex:0,children:[(0,r.jsx)(g,{}),(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,children:n})]})]})})})):(0,r.jsx)(c.p8,{width:800,height:600,children:(0,r.jsx)(c.p8.Content,{children:(0,r.jsx)(o.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(u.LoginScreen,{})})})})},g=function(e){var n=(0,a.Oc)().data,t=(0,i.useContext)(h.default),l=t.tabIndex,c=t.setTabIndex;return n.login_state,(0,r.jsx)(o.BJ,{vertical:!0,mb:1,children:(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.tU,{children:[(0,r.jsx)(o.tU.Tab,{icon:"list",selected:0===l,onClick:function(){return c(0)},children:"User Accounts"}),(0,r.jsx)(o.tU.Tab,{icon:"list",selected:1===l,onClick:function(){return c(1)},children:"Department Accounts"})]})})})},j=function(e){switch((0,i.useContext)(h.default).tabIndex){case 0:return(0,r.jsx)(b,{});case 1:return(0,r.jsx)(v,{});default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},b=function(){return(0,r.jsx)(d.default.Default,{children:(0,r.jsx)(f.default.Default,{sortId:"owner_name",children:(0,r.jsx)(y,{})})})},y=function(e){var n=(0,a.Oc)(),t=n.act,c=n.data.accounts,s=(0,i.useContext)(d.default).searchText,u=(0,i.useContext)(f.default),h=u.sortId,m=u.sortOrder;return(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(k,{}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,children:(0,r.jsxs)(o.XI,{className:"AccountsUplinkTerminal__list",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(w,{id:"owner_name",children:"Account Holder"}),(0,r.jsx)(w,{id:"account_number",children:"Account Number"}),(0,r.jsx)(w,{id:"suspended",children:"Account Status"}),(0,r.jsx)(w,{id:"money",children:"Account Balance"})]}),c.filter((0,l.XZ)(s,function(e){return e.owner_name+"|"+e.account_number+"|"+e.suspended+"|"+e.money})).sort(function(e,n){return e[h].localeCompare(n[h])*(m?1:-1)}).map(function(e){return(0,r.jsxs)(o.XI.Row,{className:"AccountsUplinkTerminal__listRow--"+e.suspended,onClick:function(){return t("view_account_detail",{account_num:e.account_number})},children:[(0,r.jsxs)(o.XI.Cell,{children:[(0,r.jsx)(o.In,{name:"user"})," ",e.owner_name]}),(0,r.jsxs)(o.XI.Cell,{children:["#",e.account_number]}),(0,r.jsx)(o.XI.Cell,{children:e.suspended}),(0,r.jsx)(o.XI.Cell,{children:e.money})]},e.account_number)})]})})})]})},v=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data.department_accounts;return(0,r.jsx)(o.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{children:(0,r.jsxs)(o.XI,{className:"AccountsUplinkTerminal__list",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(o.XI.Cell,{children:"Department Name"}),(0,r.jsx)(o.XI.Cell,{children:"Account Number"}),(0,r.jsx)(o.XI.Cell,{children:"Account Status"}),(0,r.jsx)(o.XI.Cell,{children:"Account Balance"})]}),i.map(function(e){return(0,r.jsxs)(o.XI.Row,{className:"AccountsUplinkTerminal__listRow--"+e.suspended,onClick:function(){return t("view_account_detail",{account_num:e.account_number})},children:[(0,r.jsxs)(o.XI.Cell,{children:[(0,r.jsx)(o.In,{name:"wallet"})," ",e.name]}),(0,r.jsxs)(o.XI.Cell,{children:["#",e.account_number]}),(0,r.jsx)(o.XI.Cell,{children:e.suspended}),(0,r.jsx)(o.XI.Cell,{children:e.money})]},e.account_number)})]})})})})},w=function(e){var n=(0,i.useContext)(f.default),t=n.sortId,l=n.setSortId,a=n.sortOrder,c=n.setSortOrder,s=e.id,u=e.children;return(0,r.jsx)(o.XI.Cell,{children:(0,r.jsxs)(o.$n,{color:t!==s&&"transparent",width:"100%",onClick:function(){t===s?c(!a):(l(s),c(!0))},children:[u,t===s&&(0,r.jsx)(o.In,{name:a?"sort-up":"sort-down",ml:"0.25rem;"})]})})},k=function(e){var n=(0,a.Oc)(),t=n.act;n.data.is_printing;var l=(0,i.useContext)(d.default).setSearchText;return(0,r.jsxs)(o.BJ,{children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{content:"New Account",icon:"plus",onClick:function(){return t("create_new_account")}})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.pd,{width:"100%",placeholder:"Search by account holder, number, status",onChange:function(e){return l(e)}})})]})},_=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data,l=i.account_number,c=i.owner_name,s=i.money,u=i.suspended,d=i.transactions,f=i.account_pin,h=i.is_department_account;return(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.wn,{title:"#"+l+" / "+c,buttons:(0,r.jsx)(o.$n,{icon:"arrow-left",content:"Back",onClick:function(){return t("back")}}),children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsxs)(o.Ki.Item,{label:"Account Number",children:["#",l]}),!!h&&(0,r.jsx)(o.Ki.Item,{label:"Account Pin",children:f}),(0,r.jsx)(o.Ki.Item,{label:"Account Pin Actions",children:(0,r.jsx)(o.$n,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!h,onClick:function(){return t("set_account_pin",{account_number:l})}})}),(0,r.jsx)(o.Ki.Item,{label:"Account Holder",children:c}),(0,r.jsx)(o.Ki.Item,{label:"Account Balance",children:s}),(0,r.jsxs)(o.Ki.Item,{label:"Account Status",color:u?"red":"green",children:[u?"Suspended":"Active",(0,r.jsx)(o.$n,{ml:1,content:u?"Unsuspend":"Suspend",icon:u?"unlock":"lock",onClick:function(){return t("toggle_suspension")}})]})]})})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.wn,{fill:!0,title:"Transactions",children:(0,r.jsxs)(o.XI,{children:[(0,r.jsxs)(o.XI.Row,{header:!0,children:[(0,r.jsx)(o.XI.Cell,{children:"Timestamp"}),(0,r.jsx)(o.XI.Cell,{children:"Reason"}),(0,r.jsx)(o.XI.Cell,{children:"Value"}),(0,r.jsx)(o.XI.Cell,{children:"Terminal"})]}),d.map(function(e){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e.time}),(0,r.jsx)(o.XI.Cell,{children:e.purpose}),(0,r.jsxs)(o.XI.Cell,{color:e.is_deposit?"green":"red",children:["$",e.amount]}),(0,r.jsx)(o.XI.Cell,{children:e.target_name})]},e)})]})})})]})},C=function(e){var n=(0,a.Oc)(),t=n.act;n.data;var l=p((0,i.useState)(""),2),c=l[0],s=l[1],u=p((0,i.useState)(""),2),d=u[0],f=u[1];return(0,r.jsxs)(o.wn,{title:"Create Account",buttons:(0,r.jsx)(o.$n,{icon:"arrow-left",content:"Back",onClick:function(){return t("back")}}),children:[(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Account Holder",children:(0,r.jsx)(o.pd,{placeholder:"Name Here",onChange:function(e){return s(e)}})}),(0,r.jsx)(o.Ki.Item,{label:"Initial Deposit",children:(0,r.jsx)(o.pd,{placeholder:"0",onChange:function(e){return f(e)}})})]}),(0,r.jsx)(o.$n,{mt:1,fluid:!0,content:"Create Account",onClick:function(){return t("finalise_create_account",{holder_name:c,starting_funds:d})}})]})}},3840:function(e,n,t){"use strict";t.r(n),t.d(n,{AdminAntagMenu:()=>m});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864),c=t(3384),s=t(6888),u=t(2264),d=t(4900),f=function(e){switch(e){case 0:return"Antagonists";case 1:return"Objectives";case 2:return"Security";case 3:return"All High Value Items";case 4:return"Advanced Disease Carriers";default:return"Something went wrong with this menu, make an issue report please!"}},h=function(e){switch(e){case 0:return(0,r.jsx)(j,{});case 1:return(0,r.jsx)(y,{});case 2:return(0,r.jsx)(w,{});case 3:return(0,r.jsx)(_,{});case 4:return(0,r.jsx)(I,{});default:return"Something went wrong with this menu, make an issue report please!"}},m=function(e){return(0,r.jsx)(c.p8,{width:800,height:600,children:(0,r.jsx)(c.p8.Content,{scrollable:!0,children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.IC,{children:"This menu is a Work in Progress. Some antagonists like Nuclear Operatives and Biohazards will not show up."})}),(0,r.jsxs)(d.default.Default,{tabIndex:0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(p,{})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(x,{})})]})]})})})},p=function(){var e=(0,i.useContext)(d.default),n=e.tabIndex,t=e.setTabIndex;return(0,r.jsxs)(o.tU,{children:[(0,r.jsx)(o.tU.Tab,{selected:0===n,onClick:function(){t(0)},icon:"user",children:"Antagonists"},"Antagonists"),(0,r.jsx)(o.tU.Tab,{selected:1===n,onClick:function(){t(1)},icon:"people-robbery",children:"Objectives"},"Objectives"),(0,r.jsx)(o.tU.Tab,{selected:2===n,onClick:function(){t(2)},icon:"handcuffs",children:"Security"},"Security"),(0,r.jsx)(o.tU.Tab,{selected:3===n,onClick:function(){t(3)},icon:"lock",children:"High Value Items"},"HighValueItems"),(0,r.jsx)(o.tU.Tab,{selected:4===n,onClick:function(){t(4)},icon:"virus",children:"Advanced Disease Carriers"},"AdvancedDiseaseCarriers")]})},x=function(){return(0,r.jsx)(s.default.Default,{children:(0,r.jsx)(g,{})})},g=function(){var e=(0,a.Oc)().act,n=(0,i.useContext)(d.default).tabIndex,t=(0,i.useContext)(s.default).setSearchText;return(0,r.jsx)(o.wn,{title:f(n),fill:!0,scrollable:!0,buttons:(0,r.jsxs)(o.BJ,{fill:!0,children:[(0,r.jsx)(o.pd,{width:"300px",placeholder:"Search...",onChange:function(e){return t(e)}}),(0,r.jsx)(o.$n,{icon:"sync",onClick:function(){return e("refresh")},children:"Refresh"})]}),children:h(n)})},j=function(){return(0,r.jsx)(u.default.Default,{sortId:"antag_name",children:(0,r.jsx)(b,{})})},b=function(e){var n=(0,a.Oc)(),t=n.act,c=n.data.antagonists,d=(0,i.useContext)(s.default).searchText,f=(0,i.useContext)(u.default),h=f.sortId,m=f.sortOrder;return c.length?(0,r.jsxs)(o.XI,{className:"AdminAntagMenu__list",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(O,{id:"name",children:"Mob Name"}),(0,r.jsx)(O,{id:"",children:"Buttons"}),(0,r.jsx)(O,{id:"antag_name",children:"Antagonist Type"}),(0,r.jsx)(O,{id:"status",children:"Status"})]}),c.filter((0,l.XZ)(d,function(e){return e.name+"|"+e.status+"|"+e.antag_name})).sort(function(e,n){var t=m?1:-1;return void 0===e[h]||null===e[h]?t:void 0===n[h]||null===n[h]?-1*t:"number"==typeof e[h]?(e[h]-n[h])*t:e[h].localeCompare(n[h])*t}).map(function(e,n){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{collapsing:!0,children:e.body_destroyed?e.name:(0,r.jsx)(o.$n,{color:e.is_hijacker||!e.name?"red":"",tooltip:e.is_hijacker?"Hijacker":"",onClick:function(){return t("show_player_panel",{mind_uid:e.antag_mind_uid})},children:e.name?e.name:"??? (NO NAME)"})}),(0,r.jsxs)(o.XI.Cell,{collapsing:!0,children:[(0,r.jsx)(o.$n,{onClick:function(){t("pm",{ckey:e.ckey})},children:"PM"}),(0,r.jsx)(o.$n,{onClick:function(){t("follow",{datum_uid:e.antag_mind_uid})},children:"FLW"}),(0,r.jsx)(o.$n,{onClick:function(){t("obs",{mind_uid:e.antag_mind_uid})},children:"OBS"}),(0,r.jsx)(o.$n,{onClick:function(){t("tp",{mind_uid:e.antag_mind_uid})},children:"TP"})]}),(0,r.jsx)(o.XI.Cell,{children:e.antag_name}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.az,{color:e.status?"red":"grey",children:e.status?e.status:"Alive"})})]},n)})]}):"No Antagonists!"},y=function(){return(0,r.jsx)(u.default.Default,{sortId:"target_name",children:(0,r.jsx)(v,{})})},v=function(e){var n=(0,a.Oc)(),t=n.act,c=n.data.objectives,d=(0,i.useContext)(s.default).searchText,f=(0,i.useContext)(u.default),h=f.sortId,m=f.sortOrder;return c.length?(0,r.jsxs)(o.XI,{className:"AdminAntagMenu__list",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(O,{sort_group:"sortId2",id:"obj_name",children:"Name"}),(0,r.jsx)(O,{sort_group:"sortId2",id:"target_name",children:"Target"}),(0,r.jsx)(O,{sort_group:"sortId2",id:"status",children:"Status"}),(0,r.jsx)(O,{sort_group:"sortId2",id:"owner_name",children:"Owner"})]}),c.filter((0,l.XZ)(d,function(e){return e.obj_name+"|"+e.target_name+"|"+(e.status?"success":"incompleted")+"|"+e.owner_name})).sort(function(e,n){var t=m?1:-1;return void 0===e[h]||null===e[h]||"target_name"===h&&e.no_target?t:void 0===n[h]||null===n[h]||"target_name"===h&&n.no_target?-1*t:"number"==typeof e[h]?(e[h]-n[h])*t:e[h].localeCompare(n[h])*t}).map(function(e,n){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.$n,{tooltip:e.obj_desc,onClick:function(){return t("vv",{uid:e.obj_uid})},children:e.obj_name})}),(0,r.jsx)(o.XI.Cell,{children:e.no_target?"":e.track.length?e.track.map(function(n,i){return(0,r.jsxs)(o.$n,{onClick:function(){return t("follow",{datum_uid:n})},children:[e.target_name," ",e.track.length>1?"("+(parseInt(i,10)+1)+")":""]},i)}):"No "+e.target_name+" Found"}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.az,{color:e.status?"green":"grey",children:e.status?"Success":"Incomplete"})}),(0,r.jsx)(o.XI.Cell,{collapsing:!0,children:(0,r.jsx)(o.$n,{onClick:function(){t("obj_owner",{owner_uid:e.owner_uid})},children:e.owner_name})})]},n)})]}):"No Objectives!"},w=function(){return(0,r.jsx)(u.default.Default,{sortId:"health",children:(0,r.jsx)(k,{})})},k=function(e){var n=(0,a.Oc)(),t=n.act,c=n.data.security,d=(0,i.useContext)(s.default).searchText,f=(0,i.useContext)(u.default),h=f.sortId,m=f.sortOrder,p=function(e){return 2===e.status?"Dead":1===e.status?"Unconscious":e.broken_bone&&e.internal_bleeding?"Broken Bone, IB":e.broken_bone?"Broken Bone":e.internal_bleeding?"IB":"Alive"};return c.length?(0,r.jsxs)(o.XI,{className:"AdminAntagMenu__list",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(O,{sort_group:"sortId3",id:"name",children:"Name"}),(0,r.jsx)(O,{sort_group:"sortId3",id:"role",children:"Role"}),(0,r.jsx)(O,{sort_group:"sortId3",id:"status",children:"Status"}),(0,r.jsx)(O,{sort_group:"sortId3",id:"antag",children:"Antag"}),(0,r.jsx)(O,{sort_group:"sortId3",id:"health",children:"Health"})]}),c.filter((0,l.XZ)(d,function(e){return e.name+"|"+e.role+"|"+p(e)+"|"+e.antag})).sort(function(e,n){var t=m?1:-1;return void 0===e[h]||null===e[h]?t:void 0===n[h]||null===n[h]?-1*t:"number"==typeof e[h]?(e[h]-n[h])*t:e[h].localeCompare(n[h])*t}).map(function(e,n){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{collapsing:!0,children:(0,r.jsx)(o.$n,{onClick:function(){return t("show_player_panel",{mind_uid:e.mind_uid})},children:e.name})}),(0,r.jsx)(o.XI.Cell,{collapsing:!0,children:e.role}),(0,r.jsx)(o.XI.Cell,{collapsing:!0,children:(0,r.jsx)(o.az,{color:2===e.status?"red":1===e.status?"orange":e.broken_bone||e.internal_bleeding?"yellow":"grey",children:p(e)})}),(0,r.jsx)(o.XI.Cell,{collapsing:!0,children:e.antag?(0,r.jsx)(o.$n,{textColor:"red",onClick:function(){t("tp",{mind_uid:e.mind_uid})},children:e.antag}):""}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.z2,{my:.5,minValue:0,value:e.health/e.max_health,maxValue:1,ranges:{good:[.6,1/0],average:[0,.6],bad:[-1/0,0]},children:e.health})}),(0,r.jsxs)(o.XI.Cell,{collapsing:!0,children:[(0,r.jsx)(o.$n,{onClick:function(){t("pm",{ckey:e.ckey})},children:"PM"}),(0,r.jsx)(o.$n,{onClick:function(){t("follow",{datum_uid:e.mind_uid})},children:"FLW"}),(0,r.jsx)(o.$n,{onClick:function(){t("obs",{mind_uid:e.mind_uid})},children:"OBS"})]})]},n)})]}):"No Security!"},_=function(){return(0,r.jsx)(u.default.Default,{sortId:"person",children:(0,r.jsx)(C,{})})},C=function(e){var n=(0,a.Oc)(),t=n.act,c=n.data.high_value_items,d=(0,i.useContext)(s.default).searchText,f=(0,i.useContext)(u.default),h=f.sortId,m=f.sortOrder;return c.length?(0,r.jsxs)(o.XI,{className:"AdminAntagMenu__list",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(O,{sort_group:"sortId4",id:"name",children:"Name"}),(0,r.jsx)(O,{sort_group:"sortId4",id:"person",children:"Carrier"}),(0,r.jsx)(O,{sort_group:"sortId4",id:"loc",children:"Location"}),(0,r.jsx)(O,{sort_group:"sortId4",id:"admin_z",children:"On Admin Z-level"})]}),c.filter((0,l.XZ)(d,function(e){return e.name+"|"+e.loc})).sort(function(e,n){var t=m?1:-1;return void 0===e[h]||null===e[h]?t:void 0===n[h]||null===n[h]?-1*t:"number"==typeof e[h]?(e[h]-n[h])*t:e[h].localeCompare(n[h])*t}).map(function(e,n){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.$n,{tooltip:e.obj_desc,onClick:function(){return t("vv",{uid:e.uid})},children:e.name})}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.az,{color:e.admin_z?"grey":"",children:e.person})}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.az,{color:e.admin_z?"grey":"",children:e.loc})}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.az,{color:"grey",children:e.admin_z?"On Admin Z-level":""})}),(0,r.jsx)(o.XI.Cell,{collapsing:!0,children:(0,r.jsx)(o.$n,{onClick:function(){t("follow",{datum_uid:e.uid})},children:"FLW"})})]},n)})]}):"No High Value Items!"},I=function(){return(0,r.jsx)(u.default.Default,{sortId:"strain",children:(0,r.jsx)(S,{})})},S=function(e){var n=(0,a.Oc)(),t=n.act,c=n.data,d=c.disease_carriers,f=c.virus_data,h=(0,i.useContext)(s.default).searchText,m=(0,i.useContext)(u.default),p=m.sortId,x=m.sortOrder,g=function(e){return 2===e.status?"Dead":1===e.status?"Unconscious":"Alive"};return d.length?(0,r.jsxs)(o.XI,{className:"AdminAntagMenu__list",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(O,{sort_group:"sortId4",id:"name",children:"Name"}),(0,r.jsx)(O,{sort_group:"sortId4",id:"status",children:"Status"}),(0,r.jsx)(O,{sort_group:"sortId4",id:"virus_name",children:"Virus Name"}),(0,r.jsx)(O,{sort_group:"sortId4",id:"strain",children:"Strain"}),(0,r.jsx)(O,{sort_group:"sortId4",id:"progress",children:"Progress"}),(0,r.jsx)(O,{sort_group:"sortId4",id:"health",children:"Health"})]}),d.filter((0,l.XZ)(h,function(e){return e.name+"||"+g(e)+"|"+e.strain+"|"+e.virus_name})).sort(function(e,n){var t=x?1:-1;return void 0===e[p]||null===e[p]?t:void 0===n[p]||null===n[p]?-1*t:"number"==typeof e[p]?(e[p]-n[p])*t:e[p].localeCompare(n[p])*t}).map(function(e,n){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{collapsing:!0,children:(0,r.jsx)(o.$n,{color:e.patient_zero?"red":"",onClick:function(){return t("show_player_panel",{mind_uid:e.mind_uid})},children:e.name})}),(0,r.jsx)(o.XI.Cell,{collapsing:!0,children:(0,r.jsx)(o.az,{color:2===e.status?"red":1===e.status?"orange":e.broken_bone||e.internal_bleeding?"yellow":"grey",children:g(e)})}),(0,r.jsx)(o.XI.Cell,{collapsing:!0,children:e.virus_name}),(0,r.jsx)(o.m_,{position:"right",content:"Symptoms: "+f[e.strain],children:(0,r.jsx)(o.XI.Cell,{collapsing:!0,children:e.strain})},n),(0,r.jsx)(o.XI.Cell,{children:e.patient_zero?"Patient Zero":(0,r.jsx)(o.z2,{minValue:0,value:e.progress/100,maxValue:1,ranges:{good:[0,20],average:[20,60],bad:[60,100]},children:e.progress})}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.z2,{minValue:0,value:e.health/e.max_health,maxValue:1,ranges:{good:[.6,1/0],average:[0,.6],bad:[-1/0,0]},children:e.health})}),(0,r.jsxs)(o.XI.Cell,{collapsing:!0,children:[(0,r.jsx)(o.$n,{onClick:function(){t("pm",{ckey:e.ckey})},children:"PM"}),(0,r.jsx)(o.$n,{onClick:function(){t("follow",{datum_uid:e.mind_uid})},children:"FLW"}),(0,r.jsx)(o.$n,{onClick:function(){t("obs",{mind_uid:e.mind_uid})},children:"OBS"})]})]},n)})]}):"No Disease Carriers!"},O=function(e){var n=e.id,t=(e.sort_group,e.default_sort,e.children),l=(0,i.useContext)(u.default),a=l.sortId,c=l.setSortId,s=l.sortOrder,d=l.setSortOrder;return(0,r.jsx)(o.XI.Cell,{children:(0,r.jsxs)(o.$n,{color:a!==n&&"transparent",width:"100%",onClick:function(){a===n?d(!s):(c(n),d(!0))},children:[t,a===n&&(0,r.jsx)(o.In,{name:s?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},2794:function(e,n,t){"use strict";t.r(n),t.d(n,{AgentCard:()=>m,AgentCardAppearances:()=>x,AgentCardInfo:()=>p});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=[{name:"Male",icon:"mars"},{name:"Female",icon:"venus"},{name:"Genderless",icon:"genderless"}],d=["A+","A-","B+","B-","AB+","AB-","O+","O-"],f="Empty",h=function(e){var n=e.label,t=e.value,i=e.onCommit,l=e.onClick,a=e.onRClick,c=e.tooltip;return(0,r.jsx)(o.Ki.Item,{label:n,children:(0,r.jsxs)(o.BJ,{fill:!0,mb:-.5,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.$n.Input,{fluid:!0,textAlign:"center",value:t||f,onCommit:i})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{icon:"file-signature",tooltip:c,tooltipPosition:"bottom-end",onClick:l,onContextMenu:a})})]})})},m=function(e){var n=s((0,i.useState)(0),2),t=n[0],l=n[1];return(0,r.jsx)(a.p8,{width:435,height:500,theme:"syndicate",children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{textAlign:"center",children:(0,r.jsxs)(o.tU,{fluid:!0,children:[(0,r.jsxs)(o.tU.Tab,{selected:0===t,onClick:function(){return l(0)},children:[(0,r.jsx)(o.In,{name:"table"})," Card Info"]},"Card Info"),(0,r.jsxs)(o.tU.Tab,{selected:1===t,onClick:function(){return l(1)},children:[(0,r.jsx)(o.In,{name:"id-card"})," Appearance"]},"Appearance")]})}),function(e){switch(e){case 0:default:return(0,r.jsx)(p,{});case 1:return(0,r.jsx)(x,{})}}(t)]})})})},p=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.registered_name,c=i.sex,s=i.age,m=i.assignment,p=i.job_icon,x=i.associated_account_number,g=i.blood_type,j=i.dna_hash,b=i.fingerprint_hash,y=i.photo,v=i.ai_tracking,w=i.photo_cooldown,k=(0,r.jsxs)("span",{children:["Autofill options.",(0,r.jsx)("br",{}),"LMB - Autofill your own data.",(0,r.jsx)("br",{}),"RMB - Autofill someone else data."]}),_=(0,r.jsxs)("span",{children:["Autofill options.",(0,r.jsx)("br",{}),"LMB - Autofill your own data.",(0,r.jsx)("br",{}),"RMB - Autofill with random data."]});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.wn,{title:"Card Info",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(h,{label:"Name",value:a,tooltip:k,onCommit:function(e){return t("change_name",{name:e})},onClick:function(){return t("change_name",{option:"Primary"})},onRClick:function(e){e.preventDefault(),t("change_name",{option:"Secondary"})}}),(0,r.jsx)(o.Ki.Item,{label:"Sex",children:(0,r.jsx)(o.BJ,{fill:!0,mb:-.5,children:u.map(function(e){return(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.$n,{fluid:!0,icon:e.icon,content:e.name,selected:c===e.name,onClick:function(){return t("change_sex",{sex:e.name})}})},e.name)})})}),(0,r.jsx)(o.Ki.Item,{label:"Age",children:(0,r.jsx)(o.Ap,{width:"100%",minValue:20,value:s||0,maxValue:300,onChange:function(e,n){return t("change_age",{age:n})}})}),(0,r.jsx)(o.Ki.Item,{label:"Rank",children:(0,r.jsxs)(o.BJ,{fill:!0,mb:-.5,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.$n,{fluid:!0,onClick:function(){return t("change_occupation")},textAlign:"center",children:m||"[UNSET]"})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.c_,{fluid:!0,imageSize:21,color:"transparent",tooltip:"Change HUD icon",tooltipPosition:"bottom-end",dmIcon:"icons/mob/hud/job_assets.dmi",dmIconState:p,onClick:function(){return t("change_occupation",{option:"Primary"})}})})]})}),(0,r.jsx)(h,{label:"Fingerprint",value:b,onCommit:function(e){return t("change_fingerprints",{new_fingerprints:e})},onClick:function(){return t("change_fingerprints",{option:"Primary"})},onRClick:function(e){e.preventDefault(),t("change_fingerprints",{option:"Secondary"})},tooltip:_}),(0,r.jsx)(o.Ki.Item,{label:"Blood Type",children:(0,r.jsxs)(o.BJ,{fill:!0,mb:-.5,children:[d.map(function(e){return(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.$n,{fluid:!0,content:e,selected:g===e,onClick:function(){return t("change_blood_type",{new_type:e})}})},e)}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{fluid:!0,icon:"file-signature",onClick:function(){return t("change_blood_type",{option:"Primary"})}})})]})}),(0,r.jsx)(h,{label:"DNA",value:j,onCommit:function(e){return t("change_dna_hash",{new_dna:e})},onClick:function(){return t("change_dna_hash",{option:"Primary"})},onRClick:function(e){e.preventDefault(),t("change_dna_hash",{option:"Secondary"})},tooltip:_}),(0,r.jsx)(h,{label:"Account",value:x||0,onCommit:function(e){return t("change_money_account",{new_account:e})},onClick:function(){return t("change_money_account",{option:"Primary"})},onRClick:function(e){e.preventDefault(),t("change_money_account",{option:"Secondary"})},tooltip:_}),(0,r.jsx)(o.Ki.Item,{label:"Photo",children:(0,r.jsx)(o.$n,{fluid:!0,textAlign:"center",disabled:!w,tooltip:w?"":"You can't generate a new photo yet.",onClick:function(){return t("change_photo")},children:y?"Update":f})})]})})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,title:"Card Settings",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Card Info",children:(0,r.jsx)(o.$n.Confirm,{fluid:!0,textAlign:"center",content:"Delete Card Info",confirmContent:"Are you sure?",onClick:function(){return t("delete_info")}})}),(0,r.jsx)(o.Ki.Item,{label:"Access",children:(0,r.jsx)(o.$n.Confirm,{fluid:!0,textAlign:"center",content:"Reset Access",confirmContent:"Are you sure?",onClick:function(){return t("clear_access")}})}),(0,r.jsx)(o.Ki.Item,{label:"AI Tracking",children:(0,r.jsx)(o.$n,{fluid:!0,textAlign:"center",onClick:function(){return t("change_ai_tracking")},children:v?"Untrackable":"Trackable"})})]})})})]})},x=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=s((0,l.QY)("selectedAppearance",""),2),c=a[0],u=a[1],d=i.appearances,f=i.id_icon;return(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fitted:!0,fill:!0,scrollable:!0,title:"Card Appearance",children:d.map(function(e){return(0,r.jsx)(o.c_,{dmIcon:f,dmIconState:e,imageSize:64,selected:e===c,tooltip:e,style:{opacity:e===c&&"1"||"0.5"},onClick:function(){u(e),t("change_appearance",{new_appearance:e})}},e)})})})}},8706:function(e,n,t){"use strict";t.r(n),t.d(n,{AiAirlock:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},c=function(e){var n=(0,o.Oc)(),t=n.act,c=n.data,s=a[c.power.main]||a[0],u=a[c.power.backup]||a[0],d=a[c.shock]||a[0];return(0,r.jsx)(l.p8,{width:500,height:400,children:(0,r.jsxs)(l.p8.Content,{children:[(0,r.jsx)(i.wn,{title:"Power Status",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Main",color:s.color,buttons:(0,r.jsx)(i.$n,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){return t("disrupt-main")}}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"[".concat(c.power.main_timeleft,"s]")]}),(0,r.jsxs)(i.Ki.Item,{label:"Backup",color:u.color,buttons:(0,r.jsx)(i.$n,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){return t("disrupt-backup")}}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"[".concat(c.power.backup_timeleft,"s]")]}),(0,r.jsxs)(i.Ki.Item,{label:"Electrify",color:d.color,buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&2!==c.shock),content:"Restore",onClick:function(){return t("shock-restore")}}),(0,r.jsx)(i.$n,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){return t("shock-temp")}}),(0,r.jsx)(i.$n,{icon:"bolt",disabled:!c.wires.shock||0===c.shock,content:"Permanent",onClick:function(){return t("shock-perm")}})]}),children:[2===c.shock?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"[".concat(c.shock_timeleft,"s]")||-1===c.shock_timeleft&&"[Permanent]"]})]})}),(0,r.jsx)(i.wn,{title:"Access and Door Control",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,r.jsx)(i.$n,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){return t("idscan-toggle")}}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,r.jsx)(i.Ki.Item,{label:"Emergency Access",buttons:(0,r.jsx)(i.$n,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){return t("emergency-toggle")}})}),(0,r.jsx)(i.Ki.Divider,{}),(0,r.jsx)(i.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,r.jsx)(i.$n,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){return t("bolt-toggle")}}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,r.jsx)(i.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,r.jsx)(i.$n,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){return t("light-toggle")}}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,r.jsx)(i.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,r.jsx)(i.$n,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){return t("safe-toggle")}}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,r.jsx)(i.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,r.jsx)(i.$n,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){return t("speed-toggle")}}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,r.jsx)(i.Ki.Divider,{}),(0,r.jsx)(i.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,r.jsx)(i.$n,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){return t("open-close")}}),children:!!(c.locked||c.welded)&&(0,r.jsxs)("span",{children:["[Door is ",c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"","!]"]})})]})})]})})}},5486:function(e,n,t){"use strict";t.r(n),t.d(n,{AirAlarm:()=>u});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384),c=t(1992),s=t(4900),u=function(e){var n=(0,l.Oc)(),t=(n.act,n.data).locked;return(0,r.jsx)(a.p8,{width:570,height:t?310:755,children:(0,r.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,r.jsx)(c.InterfaceLockNoticeBox,{}),(0,r.jsx)(f,{}),!t&&(0,r.jsxs)(s.default.Default,{tabIndex:0,children:[(0,r.jsx)(h,{}),(0,r.jsx)(m,{})]})]})})},d=function(e){return 0===e?"green":1===e?"orange":"red"},f=function(e){var n,t=(0,l.Oc)(),i=t.act,a=t.data,c=a.air,s=a.mode,u=a.atmos_alarm,f=a.locked,h=a.alarmActivated,m=a.fireAlarmActivated,p=a.rcon,x=a.target_temp;return n=0===c.danger.overall?0===u?"Optimal":"Caution: Atmos alert in area":1===c.danger.overall?"Caution":"DANGER: Internals Required",(0,r.jsx)(o.wn,{title:"Air Status",children:c?(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Pressure",children:(0,r.jsxs)(o.az,{color:d(c.danger.pressure),children:[(0,r.jsx)(o.zv,{value:c.pressure})," kPa",!f&&(0,r.jsxs)(r.Fragment,{children:["\xa0",(0,r.jsx)(o.$n,{content:3===s?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:3===s,icon:"exclamation-triangle",onClick:function(){return i("mode",{mode:3===s?1:3})}})]})]})}),(0,r.jsx)(o.Ki.Item,{label:"Oxygen",children:(0,r.jsx)(o.z2,{value:c.contents.oxygen/100,fractionDigits:"1",color:d(c.danger.oxygen)})}),(0,r.jsx)(o.Ki.Item,{label:"Nitrogen",children:(0,r.jsx)(o.z2,{value:c.contents.nitrogen/100,fractionDigits:"1",color:d(c.danger.nitrogen)})}),(0,r.jsx)(o.Ki.Item,{label:"Carbon Dioxide",children:(0,r.jsx)(o.z2,{value:c.contents.co2/100,fractionDigits:"1",color:d(c.danger.co2)})}),(0,r.jsx)(o.Ki.Item,{label:"Toxins",children:(0,r.jsx)(o.z2,{value:c.contents.plasma/100,fractionDigits:"1",color:d(c.danger.plasma)})}),c.contents.n2o>.1&&(0,r.jsx)(o.Ki.Item,{label:"Nitrous Oxide",children:(0,r.jsx)(o.z2,{value:c.contents.n2o/100,fractionDigits:"1",color:d(c.danger.n2o)})}),c.contents.h2>.1&&(0,r.jsx)(o.Ki.Item,{label:"Hydrogen",children:(0,r.jsx)(o.z2,{value:c.contents.h2/100,fractionDigits:"1",color:d(c.danger.h2)})}),c.contents.water_vapor>.1&&(0,r.jsx)(o.Ki.Item,{label:"Water Vapor",children:(0,r.jsx)(o.z2,{value:c.contents.water_vapor/100,fractionDigits:"1",color:d(c.danger.water_vapor)})}),c.contents.other>.1&&(0,r.jsx)(o.Ki.Item,{label:"Other",children:(0,r.jsx)(o.z2,{value:c.contents.other/100,fractionDigits:"1",color:d(c.danger.other)})}),(0,r.jsx)(o.Ki.Item,{label:"Temperature",children:(0,r.jsxs)(o.az,{color:d(c.danger.temperature),children:[(0,r.jsx)(o.zv,{value:c.temperature})," K / ",(0,r.jsx)(o.zv,{value:c.temperature_c})," C\xa0",(0,r.jsx)(o.$n,{icon:"thermometer-full",content:x+" C",onClick:function(){return i("temperature")}}),(0,r.jsx)(o.$n,{content:c.thermostat_state?"On":"Off",selected:c.thermostat_state,icon:"power-off",onClick:function(){return i("thermostat_state")}})]})}),(0,r.jsx)(o.Ki.Item,{label:"Local Status",children:(0,r.jsxs)(o.az,{color:d(c.danger.overall),children:[n,!f&&(0,r.jsxs)(r.Fragment,{children:["\xa0",(0,r.jsx)(o.$n,{content:h?"Reset Alarm":"Activate Alarm",selected:h,onClick:function(){return i(h?"atmos_reset":"atmos_alarm")}})]})]})}),(0,r.jsx)(o.Ki.Item,{label:"Fire Alarm Status",children:!f&&(0,r.jsx)(o.$n,{content:m?"Reset Fire Alarm":"Activate Fire Alarm",selected:m,onClick:function(){return i("set_fire_alarm")}})}),(0,r.jsxs)(o.Ki.Item,{label:"Remote Control Settings",children:[(0,r.jsx)(o.$n,{content:"Off",selected:1===p,onClick:function(){return i("set_rcon",{rcon:1})}}),(0,r.jsx)(o.$n,{content:"Auto",selected:2===p,onClick:function(){return i("set_rcon",{rcon:2})}}),(0,r.jsx)(o.$n,{content:"On",selected:3===p,onClick:function(){return i("set_rcon",{rcon:3})}})]})]}):(0,r.jsx)(o.az,{children:"Unable to acquire air sample!"})})},h=function(e){var n=(0,i.useContext)(s.default),t=n.tabIndex,l=n.setTabIndex;return(0,r.jsxs)(o.tU,{children:[(0,r.jsxs)(o.tU.Tab,{selected:0===t,onClick:function(){return l(0)},children:[(0,r.jsx)(o.In,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,r.jsxs)(o.tU.Tab,{selected:1===t,onClick:function(){return l(1)},children:[(0,r.jsx)(o.In,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,r.jsxs)(o.tU.Tab,{selected:2===t,onClick:function(){return l(2)},children:[(0,r.jsx)(o.In,{name:"cog"})," Mode"]},"Mode"),(0,r.jsxs)(o.tU.Tab,{selected:3===t,onClick:function(){return l(3)},children:[(0,r.jsx)(o.In,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},m=function(e){switch((0,i.useContext)(s.default).tabIndex){case 0:return(0,r.jsx)(p,{});case 1:return(0,r.jsx)(x,{});case 2:return(0,r.jsx)(g,{});case 3:return(0,r.jsx)(j,{});default:return"WE SHOULDN'T BE HERE!"}},p=function(e){var n=(0,l.Oc)(),t=n.act;return n.data.vents.map(function(e){return(0,r.jsx)(o.wn,{title:e.name,children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsxs)(o.Ki.Item,{label:"Status",children:[(0,r.jsx)(o.$n,{content:e.power?"On":"Off",selected:e.power,icon:"power-off",onClick:function(){return t("command",{cmd:"power",val:!e.power,id_tag:e.id_tag})}}),(0,r.jsx)(o.$n,{content:e.direction?"Blowing":"Siphoning",icon:e.direction?"sign-out-alt":"sign-in-alt",onClick:function(){return t("command",{cmd:"direction",val:!e.direction,id_tag:e.id_tag})}})]}),(0,r.jsxs)(o.Ki.Item,{label:"Pressure Checks",children:[(0,r.jsx)(o.$n,{content:"External",selected:1===e.checks,onClick:function(){return t("command",{cmd:"checks",val:1,id_tag:e.id_tag})}}),(0,r.jsx)(o.$n,{content:"Internal",selected:2===e.checks,onClick:function(){return t("command",{cmd:"checks",val:2,id_tag:e.id_tag})}})]}),(0,r.jsxs)(o.Ki.Item,{label:"External Pressure Target",children:[(0,r.jsx)(o.zv,{value:e.external})," kPa\xa0",(0,r.jsx)(o.$n,{content:"Set",icon:"cog",onClick:function(){return t("command",{cmd:"set_external_pressure",id_tag:e.id_tag})}}),(0,r.jsx)(o.$n,{content:"Reset",icon:"redo-alt",onClick:function(){return t("command",{cmd:"set_external_pressure",val:101.325,id_tag:e.id_tag})}})]})]})},e.name)})},x=function(e){var n=(0,l.Oc)(),t=n.act;return n.data.scrubbers.map(function(e){return(0,r.jsx)(o.wn,{title:e.name,children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsxs)(o.Ki.Item,{label:"Status",children:[(0,r.jsx)(o.$n,{content:e.power?"On":"Off",selected:e.power,icon:"power-off",onClick:function(){return t("command",{cmd:"power",val:!e.power,id_tag:e.id_tag})}}),(0,r.jsx)(o.$n,{content:e.scrubbing?"Scrubbing":"Siphoning",icon:e.scrubbing?"filter":"sign-in-alt",onClick:function(){return t("command",{cmd:"scrubbing",val:!e.scrubbing,id_tag:e.id_tag})}})]}),(0,r.jsx)(o.Ki.Item,{label:"Range",children:(0,r.jsx)(o.$n,{content:e.widenet?"Extended":"Normal",selected:e.widenet,icon:"expand-arrows-alt",onClick:function(){return t("command",{cmd:"widenet",val:!e.widenet,id_tag:e.id_tag})}})}),(0,r.jsxs)(o.Ki.Item,{label:"Filtering",children:[(0,r.jsx)(o.$n,{content:"Carbon Dioxide",selected:e.filter_co2,onClick:function(){return t("command",{cmd:"co2_scrub",val:!e.filter_co2,id_tag:e.id_tag})}}),(0,r.jsx)(o.$n,{content:"Plasma",selected:e.filter_toxins,onClick:function(){return t("command",{cmd:"tox_scrub",val:!e.filter_toxins,id_tag:e.id_tag})}}),(0,r.jsx)(o.$n,{content:"Nitrous Oxide",selected:e.filter_n2o,onClick:function(){return t("command",{cmd:"n2o_scrub",val:!e.filter_n2o,id_tag:e.id_tag})}}),(0,r.jsx)(o.$n,{content:"Oxygen",selected:e.filter_o2,onClick:function(){return t("command",{cmd:"o2_scrub",val:!e.filter_o2,id_tag:e.id_tag})}}),(0,r.jsx)(o.$n,{content:"Nitrogen",selected:e.filter_n2,onClick:function(){return t("command",{cmd:"n2_scrub",val:!e.filter_n2,id_tag:e.id_tag})}}),(0,r.jsx)(o.$n,{content:"Hydrogen",selected:e.filter_h2,onClick:function(){return t("command",{cmd:"h2_scrub",val:!e.filter_h2,id_tag:e.id_tag})}}),(0,r.jsx)(o.$n,{content:"Water Vapor",selected:e.filter_h2o,onClick:function(){return t("command",{cmd:"h2o_scrub",val:!e.filter_h2o,id_tag:e.id_tag})}})]})]})},e.name)})},g=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.modes,c=i.presets,s=i.emagged,u=i.mode,d=i.preset;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.wn,{title:"System Mode",children:Object.keys(a).map(function(e){var n=a[e];if(!n.emagonly||s)return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{textAlign:"right",width:1,children:(0,r.jsx)(o.$n,{content:n.name,icon:"cog",selected:n.id===u,onClick:function(){return t("mode",{mode:n.id})}})}),(0,r.jsx)(o.XI.Cell,{children:n.desc})]},n.name)})}),(0,r.jsxs)(o.wn,{title:"System Presets",children:[(0,r.jsx)(o.az,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,r.jsx)(o.XI,{mt:1,children:c.map(function(e){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{textAlign:"right",width:1,children:(0,r.jsx)(o.$n,{content:e.name,icon:"cog",selected:e.id===d,onClick:function(){return t("preset",{preset:e.id})}})}),(0,r.jsx)(o.XI.Cell,{children:e.desc})]},e.name)})})]})]})},j=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data.thresholds;return(0,r.jsx)(o.wn,{title:"Alarm Thresholds",children:(0,r.jsxs)(o.XI,{children:[(0,r.jsxs)(o.XI.Row,{header:!0,children:[(0,r.jsx)(o.XI.Cell,{width:"20%",children:"Value"}),(0,r.jsx)(o.XI.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,r.jsx)(o.XI.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,r.jsx)(o.XI.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,r.jsx)(o.XI.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),i.map(function(e){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e.name}),e.settings.map(function(e){return(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.$n,{content:-1===e.selected?"Off":e.selected,onClick:function(){return t("command",{cmd:"set_threshold",env:e.env,var:e.val})}})},e.val)})]},e.name)})]})})}},6962:function(e,n,t){"use strict";t.r(n),t.d(n,{AirlockAccessController:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n,t,a=(0,o.Oc)(),c=a.act,s=a.data,u=s.exterior_status,d=s.interior_status,f=s.processing;return n="open"===u?(0,r.jsx)(i.$n,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:f,onClick:function(){return c("force_ext")}}):(0,r.jsx)(i.$n,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:f,onClick:function(){return c("cycle_ext_door")}}),t="open"===d?(0,r.jsx)(i.$n,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:f,color:"open"===d?"red":f?"yellow":null,onClick:function(){return c("force_int")}}):(0,r.jsx)(i.$n,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:f,onClick:function(){return c("cycle_int_door")}}),(0,r.jsx)(l.p8,{width:330,height:200,children:(0,r.jsxs)(l.p8.Content,{children:[(0,r.jsx)(i.wn,{title:"Information",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"External Door Status",children:"closed"===u?"Locked":"Open"}),(0,r.jsx)(i.Ki.Item,{label:"Internal Door Status",children:"closed"===d?"Locked":"Open"})]})}),(0,r.jsx)(i.wn,{title:"Actions",children:(0,r.jsxs)(i.az,{children:[n,t]})})]})})}},9281:function(e,n,t){"use strict";t.r(n),t.d(n,{AirlockElectronics:()=>c,ChooseAccess:()=>u});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(2723),c=function(e){return(0,r.jsx)(l.p8,{width:500,height:565,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(s,{}),(0,r.jsx)(u,{})]})})})},s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.unrestricted_dir;return(0,r.jsx)(i.wn,{title:"Access Control",children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:4&l,onClick:function(){return t("unrestricted_access",{unres_dir:4})}})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:2&l,onClick:function(){return t("unrestricted_access",{unres_dir:2})}})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:8&l,onClick:function(){return t("unrestricted_access",{unres_dir:8})}})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:1&l,onClick:function(){return t("unrestricted_access",{unres_dir:1})}})})]})]})})},u=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,c=l.selected_accesses,s=l.one_access,u=l.regions;return(0,r.jsx)(a.AccessList,{sectionButtons:(0,r.jsx)(r.Fragment,{}),grantableList:[],usedByRcd:1,rcdButtons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n.Checkbox,{checked:s,content:"One",onClick:function(){return t("set_one_access",{access:"one"})}}),(0,r.jsx)(i.$n.Checkbox,{checked:!s,content:"All",onClick:function(){return t("set_one_access",{access:"all"})}})]}),accesses:u,selectedList:c,accessMod:function(e){return t("set",{access:e})},grantAll:function(){return t("grant_all")},denyAll:function(){return t("clear_all")},grantDep:function(e){return t("grant_region",{region:e})},denyDep:function(e){return t("deny_region",{region:e})}})}},934:function(e,n,t){"use strict";t.r(n),t.d(n,{AlertModal:()=>d});var r=t(8138),i=t(4530),o=t(7790),l=t(7686),a=t(2864),c=t(3384),s=t(9472);function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var d=function(e){var n,t=(0,a.Oc)(),d=t.act,h=t.data,m=h.autofocus,p=h.buttons,x=void 0===p?[]:p,g=h.large_buttons,j=h.message,b=void 0===j?"":j,y=h.timeout,v=h.title,w=(n=(0,i.useState)(0),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return u(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),k=w[0],_=w[1],C=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&g?5:0),I=325+100*(x.length>2),S=function(e){0===k&&-1===e?_(x.length-1):k===x.length-1&&1===e?_(0):_(k+e)};return(0,r.jsxs)(c.p8,{title:v,height:C,width:I,children:[!!y&&(0,r.jsx)(s.Loader,{value:y}),(0,r.jsx)(c.p8.Content,{onKeyDown:function(e){var n=window.event?e.which:e.keyCode;n===l.iy||n===l.Ri?d("choose",{choice:x[k]}):n===l.s6?d("cancel"):n===l.iU?(e.preventDefault(),S(-1)):(n===l.aW||n===l.zh)&&(e.preventDefault(),S(1))},children:(0,r.jsx)(o.wn,{fill:!0,children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,m:1,children:(0,r.jsx)(o.az,{color:"label",overflow:"hidden",children:b})}),(0,r.jsxs)(o.BJ.Item,{children:[!!m&&(0,r.jsx)(o.y5,{}),(0,r.jsx)(f,{selected:k})]})]})})})]})},f=function(e){var n=(0,a.Oc)().data,t=n.buttons,i=void 0===t?[]:t,l=n.large_buttons,c=n.swapped_buttons,s=e.selected;return(0,r.jsx)(o.so,{fill:!0,align:"center",direction:c?"row":"row-reverse",justify:"space-around",wrap:!0,children:null==i?void 0:i.map(function(e,n){return l&&i.length<3?(0,r.jsx)(o.so.Item,{grow:!0,children:(0,r.jsx)(h,{button:e,id:n.toString(),selected:s===n})},n):(0,r.jsx)(o.so.Item,{grow:+!!l,children:(0,r.jsx)(h,{button:e,id:n.toString(),selected:s===n})},n)})})},h=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data.large_buttons,l=e.button,c=e.selected,s=l.length>7?"100%":7;return(0,r.jsx)(o.$n,{mx:+!!i,pt:.33*!!i,content:l,fluid:!!i,onClick:function(){return t("choose",{choice:l})},selected:c,textAlign:"center",height:!!i&&2,width:!i&&s})}},2712:function(e,n,t){"use strict";t.r(n),t.d(n,{AntagInfoHeretic:()=>y});var r=t(8138),i=t(4530),o=t(2864),l=t(7790),a=t(3384);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var s={color:"#e03c3c"},u={fontWeight:"bold",color:"#2185d0"},d={fontWeight:"bold",color:"#bd54e0"},f={fontWeight:"bold",color:"#20b142"},h={fontWeight:"bold",color:"yellow"},m=function(){var e=(0,o.Oc)().data;return e.ascended,e.can_change_objective,(0,r.jsx)(l.so,{direction:"column",height:"100%",children:(0,r.jsx)(l.wn,{title:"You are the Heretic!",fontSize:"14px",children:(0,r.jsxs)(l.so,{direction:"column",gap:1,children:[(0,r.jsx)(p,{}),(0,r.jsx)(l.az,{my:1,children:(0,r.jsx)("hr",{})}),(0,r.jsx)(x,{}),(0,r.jsx)(l.az,{my:1,children:(0,r.jsx)("hr",{})}),(0,r.jsx)(g,{})]})})})},p=function(){return(0,r.jsx)(l.so.Item,{children:(0,r.jsxs)(l.az,{textAlign:"center",fontSize:"14px",children:[(0,r.jsxs)("i",{children:["Another day at a meaningless job. You feel a\xa0",(0,r.jsx)("span",{style:u,children:"shimmer"}),"\xa0around you, as a realization of something\xa0",(0,r.jsx)("span",{style:s,children:"strange"}),"\xa0in the air unfolds. You look inwards and discover something that will change your life."]}),(0,r.jsx)(l.az,{mt:1,children:(0,r.jsxs)("b",{children:["The ",(0,r.jsx)("span",{style:d,children:"Gates of Mansus"}),"\xa0open up to your mind."]})})]})})},x=function(){return(0,r.jsx)(l.so.Item,{children:(0,r.jsxs)(l.so,{direction:"column",gap:1,fontSize:"12px",children:[(0,r.jsxs)(l.az,{children:["- Find reality smashing\xa0",(0,r.jsx)("span",{style:d,children:"influences"}),"\xa0around the station invisible to the normal eye and\xa0",(0,r.jsx)("b",{children:"click"})," on them to harvest them for\xa0",(0,r.jsx)("span",{style:u,children:"knowledge points"}),". Tapping them makes them visible to all after a short time."]}),(0,r.jsxs)(l.az,{children:["- Use your\xa0",(0,r.jsx)("span",{style:s,children:"Living Heart action"}),"\xa0to track down\xa0",(0,r.jsx)("span",{style:s,children:"sacrifice targets"}),", but be careful: Pulsing it will produce a heartbeat sound that nearby people may hear. This action is tied to your ",(0,r.jsx)("b",{children:"heart"})," - if you lose it, you must complete a ritual to regain it."]}),(0,r.jsxs)(l.az,{children:["- Draw a\xa0",(0,r.jsx)("span",{style:f,children:"transmutation rune"})," by using a drawing tool (a pen or crayon) on the floor while having\xa0",(0,r.jsx)("span",{style:f,children:"Mansus Grasp"}),"\xa0active in your other hand. This rune allows you to complete rituals and sacrifices."]}),(0,r.jsxs)(l.az,{children:["- Follow your ",(0,r.jsx)("span",{style:s,children:"Living Heart"})," to find your targets. Bring them back to a\xa0",(0,r.jsx)("span",{style:f,children:"transmutation rune"})," in critical or worse condition to\xa0",(0,r.jsx)("span",{style:s,children:"sacrifice"})," them for\xa0",(0,r.jsx)("span",{style:u,children:"knowledge points"}),". The Mansus ",(0,r.jsx)("b",{children:"ONLY"})," accepts targets pointed to by the\xa0",(0,r.jsx)("span",{style:s,children:"Living Heart"}),"."]}),(0,r.jsxs)(l.az,{children:["- Make yourself a ",(0,r.jsx)("span",{style:h,children:"focus"})," to be able to cast various advanced spells to assist you in acquiring harder and harder sacrifices."]}),(0,r.jsxs)(l.az,{children:["- Accomplish all of your objectives to be able to learn the ",(0,r.jsx)("span",{style:h,children:"final ritual"}),". Complete the ritual to become all powerful!",(0,r.jsx)("span",{style:s,children:" You can only do this ritual with\xa0 hijack or if a cult tries to summon"}),"."]})]})})},g=function(){var e=(0,o.Oc)().data,n=e.charges,t=e.total_sacrifices,i=e.ascended;return(0,r.jsx)(l.so.Item,{children:(0,r.jsxs)(l.so,{direction:"column",gap:1,children:[!!i&&(0,r.jsxs)(l.so,{align:"center",gap:1,children:[(0,r.jsx)(l.az,{children:"You have"}),(0,r.jsx)(l.az,{fontSize:"24px",color:"yellow",inline:!0,children:"ASCENDED!"})]}),(0,r.jsxs)(l.az,{children:["You have ",(0,r.jsx)("b",{children:n||0}),"\xa0",(0,r.jsxs)("span",{style:u,children:["knowledge point",1!==n?"s":""]}),"."]}),(0,r.jsxs)(l.az,{children:["You have made a total of\xa0",(0,r.jsx)("b",{children:t||0}),"\xa0",(0,r.jsx)("span",{style:s,children:"sacrifices"}),"."]})]})})},j=function(){var e=(0,o.Oc)(),n=e.data,t=e.act,i=n.knowledge_tiers;return(0,r.jsxs)(l.wn,{title:"Research Tree",fill:!0,scrollable:!0,children:[(0,r.jsx)(l.az,{textAlign:"center",fontSize:"32px",children:(0,r.jsx)("span",{style:h,children:"DAWN"})}),(0,r.jsx)(l.so,{direction:"column",children:0===i.length?"None!":i.map(function(e,n){return(0,r.jsxs)(l.so.Item,{children:[(0,r.jsx)(l.so,{justify:"center",align:"center",backgroundColor:"transparent",wrap:"wrap",children:e.nodes.map(function(e){return(0,r.jsxs)(l.so.Item,{children:[(0,r.jsxs)(l.$n,{color:"transparent",tooltip:"".concat(e.name,":\n ").concat(e.desc),onClick:e.disabled||e.finished?void 0:function(){return t("research",{path:e.path})},width:e.ascension?"192px":"64px",height:e.ascension?"192px":"64px",m:"8px",style:{borderRadius:"50%"},children:[(0,r.jsx)(l.Hg,{icon:"icons/ui_icons/antags/heretic/knowledge.dmi",icon_state:e.disabled?"node_locked":e.finished?"node_finished":e.bgr,height:e.ascension?"192px":"64px",width:e.ascension?"192px":"64px",top:"0px",left:"0px",position:"absolute"}),(0,r.jsx)(l.Hg,{icon:e.icon_params.icon,icon_state:e.icon_params.state,frame:e.icon_params.frame,direction:e.icon_params.dir,movement:e.icon_params.moving,height:e.ascension?"152px":"64px",width:e.ascension?"152px":"64px",top:e.ascension?"20px":"0px",left:e.ascension?"20px":"0px",position:"absolute"}),(0,r.jsx)(l.az,{position:"absolute",top:"0px",left:"0px",backgroundColor:"black",textColor:"white",bold:!0,children:!e.finished&&(e.cost>0?e.cost:"FREE")})]}),!!e.ascension&&(0,r.jsx)(l.az,{textAlign:"center",fontSize:"32px",children:(0,r.jsx)("span",{style:d,children:"DUSK"})})]},e.name)})}),(0,r.jsx)("hr",{})]},n)})})]})},b=function(){var e=(0,o.Oc)().data.charges;return(0,r.jsxs)(l.so,{direction:"column",height:"100%",children:[(0,r.jsxs)(l.az,{textAlign:"center",fontSize:"20px",mb:1,children:["You have ",(0,r.jsx)("b",{children:e||0}),"\xa0",(0,r.jsxs)("span",{style:u,children:["knowledge point",1!==e?"s":""]})," to spend."]}),(0,r.jsx)(l.so.Item,{grow:!0,children:(0,r.jsx)(j,{})})]})},y=function(){var e,n=(0,o.Oc)().data.ascended,t=(e=(0,i.useState)(0),function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,2)||function(e,n){if(e){if("string"==typeof e)return c(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=t[0],u=t[1];return(0,r.jsx)(a.p8,{width:675,height:635,children:(0,r.jsx)(a.p8.Content,{style:{backgroundImage:"none",background:n?"radial-gradient(circle, rgba(24,9,9,1) 54%, rgba(31,10,10,1) 60%, rgba(46,11,11,1) 80%, rgba(47,14,14,1) 100%);":"radial-gradient(circle, rgba(9,9,24,1) 54%, rgba(10,10,31,1) 60%, rgba(21,11,46,1) 80%, rgba(24,14,47,1) 100%);"},children:(0,r.jsxs)(l.so,{direction:"column",height:"100%",children:[(0,r.jsx)(l.so.Item,{children:(0,r.jsxs)(l.tU,{fluid:!0,children:[(0,r.jsx)(l.tU.Tab,{icon:"info",selected:0===s,onClick:function(){return u(0)},children:"Information"}),(0,r.jsx)(l.tU.Tab,{icon:1===s?"book-open":"book",selected:1===s,onClick:function(){return u(1)},children:"Research"})]})}),(0,r.jsx)(l.so.Item,{grow:!0,children:0===s?(0,r.jsx)(m,{}):(0,r.jsx)(b,{})})]})})})}},6473:function(e,n,t){"use strict";t.r(n),t.d(n,{AppearanceChanger:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,s=a.change_race,u=a.species,d=a.specimen,f=a.change_gender,h=a.gender,m=a.change_eye_color,p=a.change_skin_tone,x=a.change_skin_color,g=a.change_runechat_color,j=a.change_head_accessory_color,b=a.change_hair_color,y=a.change_secondary_hair_color,v=a.change_facial_hair_color,w=a.change_secondary_facial_hair_color,k=a.change_head_marking_color,_=a.change_body_marking_color,C=a.change_tail_marking_color,I=a.change_head_accessory,S=a.head_accessory_styles,O=a.head_accessory_style,A=a.change_hair,P=a.hair_styles,B=a.hair_style,E=a.change_hair_gradient,z=a.change_facial_hair,T=a.facial_hair_styles,N=a.facial_hair_style,R=a.change_head_markings,$=a.head_marking_styles,D=a.head_marking_style,M=a.change_body_markings,L=a.body_marking_styles,K=a.body_marking_style,J=a.change_tail_markings,X=a.tail_marking_styles,U=a.tail_marking_style,F=a.change_body_accessory,V=a.body_accessory_styles,H=a.body_accessory_style,W=a.change_alt_head,q=a.alt_head_styles,G=a.alt_head_style,Y=!1;return(m||p||x||j||g||b||y||v||w||k||_||C)&&(Y=!0),(0,r.jsx)(l.p8,{width:800,height:450,children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsxs)(i.Ki,{children:[!!s&&(0,r.jsx)(i.Ki.Item,{label:"Species",children:u.map(function(e){return(0,r.jsx)(i.$n,{content:e.specimen,selected:e.specimen===d,onClick:function(){return t("race",{race:e.specimen})}},e.specimen)})}),!!f&&(0,r.jsxs)(i.Ki.Item,{label:"Gender",children:[(0,r.jsx)(i.$n,{content:"Male",selected:"male"===h,onClick:function(){return t("gender",{gender:"male"})}}),(0,r.jsx)(i.$n,{content:"Female",selected:"female"===h,onClick:function(){return t("gender",{gender:"female"})}}),(0,r.jsx)(i.$n,{content:"Genderless",selected:"plural"===h,onClick:function(){return t("gender",{gender:"plural"})}})]}),!!Y&&(0,r.jsx)(c,{}),!!I&&(0,r.jsx)(i.Ki.Item,{label:"Head accessory",children:S.map(function(e){return(0,r.jsx)(i.$n,{content:e.headaccessorystyle,selected:e.headaccessorystyle===O,onClick:function(){return t("head_accessory",{head_accessory:e.headaccessorystyle})}},e.headaccessorystyle)})}),!!A&&(0,r.jsx)(i.Ki.Item,{label:"Hair",children:P.map(function(e){return(0,r.jsx)(i.$n,{content:e.hairstyle,selected:e.hairstyle===B,onClick:function(){return t("hair",{hair:e.hairstyle})}},e.hairstyle)})}),!!E&&(0,r.jsxs)(i.Ki.Item,{label:"Hair Gradient",children:[(0,r.jsx)(i.$n,{content:"Change Style",onClick:function(){return t("hair_gradient")}}),(0,r.jsx)(i.$n,{content:"Change Offset",onClick:function(){return t("hair_gradient_offset")}}),(0,r.jsx)(i.$n,{content:"Change Color",onClick:function(){return t("hair_gradient_colour")}}),(0,r.jsx)(i.$n,{content:"Change Alpha",onClick:function(){return t("hair_gradient_alpha")}})]}),!!z&&(0,r.jsx)(i.Ki.Item,{label:"Facial hair",children:T.map(function(e){return(0,r.jsx)(i.$n,{content:e.facialhairstyle,selected:e.facialhairstyle===N,onClick:function(){return t("facial_hair",{facial_hair:e.facialhairstyle})}},e.facialhairstyle)})}),!!R&&(0,r.jsx)(i.Ki.Item,{label:"Head markings",children:$.map(function(e){return(0,r.jsx)(i.$n,{content:e.headmarkingstyle,selected:e.headmarkingstyle===D,onClick:function(){return t("head_marking",{head_marking:e.headmarkingstyle})}},e.headmarkingstyle)})}),!!M&&(0,r.jsx)(i.Ki.Item,{label:"Body markings",children:L.map(function(e){return(0,r.jsx)(i.$n,{content:e.bodymarkingstyle,selected:e.bodymarkingstyle===K,onClick:function(){return t("body_marking",{body_marking:e.bodymarkingstyle})}},e.bodymarkingstyle)})}),!!J&&(0,r.jsx)(i.Ki.Item,{label:"Tail markings",children:X.map(function(e){return(0,r.jsx)(i.$n,{content:e.tailmarkingstyle,selected:e.tailmarkingstyle===U,onClick:function(){return t("tail_marking",{tail_marking:e.tailmarkingstyle})}},e.tailmarkingstyle)})}),!!F&&(0,r.jsx)(i.Ki.Item,{label:"Body accessory",children:V.map(function(e){return(0,r.jsx)(i.$n,{content:e.bodyaccessorystyle,selected:e.bodyaccessorystyle===H,onClick:function(){return t("body_accessory",{body_accessory:e.bodyaccessorystyle})}},e.bodyaccessorystyle)})}),!!W&&(0,r.jsx)(i.Ki.Item,{label:"Alternate head",children:q.map(function(e){return(0,r.jsx)(i.$n,{content:e.altheadstyle,selected:e.altheadstyle===G,onClick:function(){return t("alt_head",{alt_head:e.altheadstyle})}},e.altheadstyle)})})]})})})},c=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data;return(0,r.jsx)(i.Ki.Item,{label:"Colors",children:[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_runechat_color",text:"Change runechat color",action:"runechat_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}].map(function(e){return!!l[e.key]&&(0,r.jsx)(i.$n,{content:e.text,onClick:function(){return t(e.action)}},e.key)})})}},6085:function(e,n,t){"use strict";t.r(n),t.d(n,{ArcadeBattle:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e,n){var t=(0,o.Oc)(),a=t.act,c=t.data,s=c.enemyName,u=c.playerHP,d=c.playerMaxHP,f=c.playerMP,h=c.playerMaxMP,m=c.enemyHP,p=c.enemyMaxHP,x=c.onCooldown,g=c.gameOver,j=c.previousEvent;return g?(0,r.jsx)(l.p8,{height:350,width:350,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.wn,{fill:!0,align:"center",title:m<1?"Rejoyce!":"Game Over!",children:(0,r.jsxs)(i.BJ,{justify:"space-between",vertical:!0,fill:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.az,{children:j})}),(0,r.jsx)(i.BJ.Item,{height:"30%",children:(0,r.jsx)(i.$n,{bold:!0,fluid:!0,height:"100%",fontSize:"min(8vw, 15vh)",textAlign:"center",verticalAlignContent:"middle",onClick:function(){return a("newgame")},children:"New Game"})})]})})})}):(0,r.jsx)(l.p8,{height:350,width:350,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{vertical:!0,fill:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:s,children:(0,r.jsxs)(i.z2,{maxValue:p,minValue:0,value:m,ranges:{red:[-10,10],orange:[10,20],green:[20,p]},children:["Their Health: ",m]})})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Fight!",children:j})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,title:"You",children:(0,r.jsxs)(i.BJ,{vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.z2,{maxValue:d,minValue:0,value:u,ranges:{red:[-10,10],orange:[10,20],green:[20,d]},children:["Your Health: ",u]})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.z2,{maxValue:h,minValue:0,value:f,ranges:{red:[-10,h/4],orange:[h/4,h/2],green:[h/2,h]},children:["Your Magic: ",f]})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.az,{bold:!0,align:"center",children:"What will you do?"})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.BJ,{justify:"center",children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"burst",lineHeight:3,onClick:function(){return a("attack")},disabled:x,children:"Attack"})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"plus",lineHeight:3,onClick:function(){return a("heal")},disabled:x,children:"Heal"})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"star",lineHeight:3,onClick:function(){return a("charge")},disabled:x,children:"Recharge"})})]})})]})})})]})})})}},3438:function(e,n,t){"use strict";t.r(n),t.d(n,{AtmosAlertConsole:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384);function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var c=function(e){var n=(0,o.Oc)(),t=(n.act,n.data),c=t.priority||[],s=t.minor||[],u=t.mode||{};return(0,r.jsx)(l.p8,{width:350,height:300,children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsx)(i.wn,{title:"Alarms",children:(0,r.jsxs)("ul",{children:[0===c.length&&(0,r.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),c.map(function(e){return(0,r.jsx)("li",{className:"color-bad",children:e},e)}),0===s.length&&(0,r.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),s.map(function(e){return(0,r.jsx)("li",{className:"color-average",children:e},e)}),0===Object.keys(u).length&&(0,r.jsx)("li",{className:"color-good",children:"All Areas Filtering"}),Object.entries(u).map(function(e){var n=function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,2)||function(e,n){if(e){if("string"==typeof e)return a(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),t=n[0],i=n[1];return(0,r.jsxs)("li",{className:"color-good",children:[t," mode is ",i]},t)})]})})})})}},4788:function(e,n,t){"use strict";t.r(n),t.d(n,{AtmosControl:()=>u});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(7946),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var u=function(e){var n,t=(0,l.Oc)();t.act,t.data;var a=(n=(0,i.useState)(0),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return s(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=a[0],h=a[1];return(0,r.jsx)(c.p8,{width:800,height:600,children:(0,r.jsx)(c.p8.Content,{scrollable:0===u,children:(0,r.jsxs)(o.az,{fillPositionedParent:!0,children:[(0,r.jsxs)(o.tU,{children:[(0,r.jsxs)(o.tU.Tab,{selected:0===u,onClick:function(){return h(0)},children:[(0,r.jsx)(o.In,{name:"table"})," Data View"]},"DataView"),(0,r.jsxs)(o.tU.Tab,{selected:1===u,onClick:function(){return h(1)},children:[(0,r.jsx)(o.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),function(e){switch(e){case 0:return(0,r.jsx)(d,{});case 1:return(0,r.jsx)(f,{});default:return"WE SHOULDN'T BE HERE!"}}(u)]})})})},d=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data.alarms;return(0,r.jsx)(o.az,{children:(0,r.jsxs)(o.XI,{m:"0.5rem",children:[(0,r.jsxs)(o.XI.Row,{header:!0,children:[(0,r.jsx)(o.XI.Cell,{children:"Name"}),(0,r.jsx)(o.XI.Cell,{children:"Status"}),(0,r.jsx)(o.XI.Cell,{children:"Access"})]}),i.map(function(e){var n;return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e.name}),(0,r.jsx)(o.XI.Cell,{children:0===(n=e.danger)?(0,r.jsx)(o.az,{color:"green",children:"Good"}):1===n?(0,r.jsx)(o.az,{color:"orange",bold:!0,children:"Warning"}):2===n?(0,r.jsx)(o.az,{color:"red",bold:!0,children:"DANGER"}):void 0}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.$n,{icon:"cog",content:"Access",onClick:function(){return t("open_alarm",{aref:e.ref})}})})]},e.name)})]})})},f=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data.alarms;return(0,r.jsx)(o.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,r.jsx)(a.tx,{children:i.filter(function(e){return 2===e.z}).map(function(e){var n;return(0,r.jsx)(a.tx.MarkerIcon,{x:e.x,y:e.y,icon:"circle",tooltip:e.name,color:0===(n=e.danger)?"green":1===n?"orange":2===n?"red":void 0,onClick:function(){return t("open_alarm",{aref:e.ref})}},e.ref)})})})}},1937:function(e,n,t){"use strict";t.r(n),t.d(n,{AtmosFilter:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.on,s=a.pressure,u=a.max_pressure,d=a.filter_type,f=a.filter_type_list;return(0,r.jsx)(l.p8,{width:380,height:160,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Power",children:(0,r.jsx)(i.$n,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){return t("power")}})}),(0,r.jsxs)(i.Ki.Item,{label:"Rate",children:[(0,r.jsx)(i.$n,{icon:"fast-backward",textAlign:"center",disabled:0===s,width:2.2,onClick:function(){return t("min_pressure")}}),(0,r.jsx)(i.Q7,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:s,tickWhileDragging:!0,onChange:function(e){return t("custom_pressure",{pressure:e})}}),(0,r.jsx)(i.$n,{icon:"fast-forward",textAlign:"center",disabled:s===u,width:2.2,onClick:function(){return t("max_pressure")}})]}),(0,r.jsx)(i.Ki.Item,{label:"Filter",children:f.map(function(e){return(0,r.jsx)(i.$n,{selected:e.gas_type===d,content:e.label,onClick:function(){return t("set_filter",{filter:e.gas_type})}},e.label)})})]})})})})}},7440:function(e,n,t){"use strict";t.r(n),t.d(n,{AtmosMixer:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,s=a.on,u=a.pressure,d=a.max_pressure,f=a.node1_concentration,h=a.node2_concentration;return(0,r.jsx)(l.p8,{width:330,height:165,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Power",children:(0,r.jsx)(i.$n,{icon:"power-off",content:s?"On":"Off",color:s?null:"red",selected:s,onClick:function(){return t("power")}})}),(0,r.jsxs)(i.Ki.Item,{label:"Rate",children:[(0,r.jsx)(i.$n,{icon:"fast-backward",textAlign:"center",disabled:0===u,width:2.2,onClick:function(){return t("min_pressure")}}),(0,r.jsx)(i.Q7,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:u,onChange:function(e){return t("custom_pressure",{pressure:e})}}),(0,r.jsx)(i.$n,{icon:"fast-forward",textAlign:"center",disabled:u===d,width:2.2,onClick:function(){return t("max_pressure")}})]}),(0,r.jsx)(c,{node_name:"Node 1",node_ref:f}),(0,r.jsx)(c,{node_name:"Node 2",node_ref:h})]})})})})},c=function(e){var n=(0,o.Oc)(),t=n.act;n.data;var l=e.node_name,a=e.node_ref;return(0,r.jsxs)(i.Ki.Item,{label:l,children:[(0,r.jsx)(i.$n,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:0===a,onClick:function(){return t("set_node",{node_name:l,concentration:(a-10)/100})}}),(0,r.jsx)(i.Q7,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,step:1,stepPixelSize:10,minValue:0,maxValue:100,value:a,onChange:function(e){return t("set_node",{node_name:l,concentration:e/100})}}),(0,r.jsx)(i.$n,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:100===a,onClick:function(){return t("set_node",{node_name:l,concentration:(a+10)/100})}})]})}},7897:function(e,n,t){"use strict";t.r(n),t.d(n,{AtmosPump:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.on,s=a.rate,u=a.max_rate,d=a.gas_unit,f=a.step;return(0,r.jsx)(l.p8,{width:330,height:110,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Power",children:(0,r.jsx)(i.$n,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){return t("power")}})}),(0,r.jsxs)(i.Ki.Item,{label:"Rate",children:[(0,r.jsx)(i.$n,{icon:"fast-backward",textAlign:"center",disabled:0===s,width:2.2,onClick:function(){return t("min_rate")}}),(0,r.jsx)(i.Q7,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:f,minValue:0,maxValue:u,value:s,onChange:function(e){return t("custom_rate",{rate:e})}}),(0,r.jsx)(i.$n,{icon:"fast-forward",textAlign:"center",disabled:s===u,width:2.2,onClick:function(){return t("max_rate")}})]})]})})})})}},1164:function(e,n,t){"use strict";t.r(n),t.d(n,{AtmosTankControl:()=>s});var r=t(8138),i=t(7790),o=t(6859),l=t(2864),a=t(421),c=t(3384),s=function(e){var n=(0,l.Oc)(),t=n.act,s=n.data,d=s.sensors||{};return(0,r.jsx)(c.p8,{width:400,height:435,children:(0,r.jsxs)(c.p8.Content,{scrollable:!0,children:[Object.keys(d).map(function(e){return(0,r.jsx)(i.wn,{title:e,children:(0,r.jsxs)(i.Ki,{children:[Object.keys(d[e]).indexOf("pressure")>-1?(0,r.jsxs)(i.Ki.Item,{label:"Pressure",children:[d[e].pressure," kpa"]}):"",Object.keys(d[e]).indexOf("temperature")>-1?(0,r.jsxs)(i.Ki.Item,{label:"Temperature",children:[d[e].temperature," K"]}):"",["o2","n2","plasma","co2","n2o","h2"].map(function(n){return Object.keys(d[e]).indexOf(n)>-1?(0,r.jsx)(i.Ki.Item,{label:(0,a.wM)(n),children:(0,r.jsx)(i.z2,{color:(0,a.b_)(n),value:d[e][n],minValue:0,maxValue:100,children:(0,o.Mg)(d[e][n],2)+"%"})},(0,a.wM)(n)):""})]})},e)}),(0,r.jsx)(i.wn,{title:"Inlets",children:s.inlets&&Object.keys(s.inlets).length>0?s.inlets.map(function(e){return(0,r.jsx)(i.wn,{title:e.name,children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Power",children:(0,r.jsx)(i.$n,{icon:(e.on,"power-off"),content:e.on?"On":"Off",color:e.on?null:"red",selected:e.on,onClick:function(){return t("toggle_inlet_active",{dev:e.uid})}})}),(0,r.jsx)(i.Ki.Item,{label:"Rate",children:(0,r.jsx)(i.Q7,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:e.rate,onChange:function(n){return t("set_inlet_volume_rate",{dev:e.uid,val:n})}})})]})},e)}):""}),(0,r.jsxs)(i.wn,{title:"Outlets",children:[s.vent_outlets&&Object.keys(s.vent_outlets).length>0?s.vent_outlets.map(function(e){return(0,r.jsx)(i.wn,{title:"Outlet: "+e.name,children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Status",children:(0,r.jsx)(i.$n,{icon:(e.on,"power-off"),content:e.on?"On":"Off",color:e.on?null:"red",selected:e.on,onClick:function(){return t("toggle_outlet_active",{dev:e.uid})}})}),(0,r.jsxs)(i.Ki.Item,{label:"Pressure Checks",children:[(0,r.jsx)(i.$n,{content:"External",selected:1===e.checks,onClick:function(){return t("set_outlet_reference",{dev:e.uid,val:1})}}),(0,r.jsx)(i.$n,{content:"Internal",selected:2===e.checks,onClick:function(){return t("set_outlet_reference",{dev:e.uid,val:2})}})]}),(0,r.jsx)(i.Ki.Item,{label:"Rate",children:(0,r.jsx)(i.Q7,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:e.rate,onChange:function(n){return t("set_outlet_pressure",{dev:e.uid,val:n})}})})]})},e)}):"",s.scrubber_outlets&&Object.keys(s.scrubber_outlets).length>0?(0,r.jsx)(u,{}):""]})]})})},u=function(e){var n=(0,l.Oc)(),t=n.act;return n.data.scrubber_outlets.map(function(e){return(0,r.jsx)(i.wn,{title:"Outlet: "+e.name,children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Status",children:[(0,r.jsx)(i.$n,{content:e.power?"On":"Off",selected:e.power,icon:"power-off",onClick:function(){return t("command",{cmd:"power",id_tag:e.id_tag})}}),(0,r.jsx)(i.$n,{content:e.scrubbing?"Scrubbing":"Siphoning",icon:e.scrubbing?"filter":"sign-in-alt",onClick:function(){return t("command",{cmd:"scrubbing",id_tag:e.id_tag})}})]}),(0,r.jsx)(i.Ki.Item,{label:"Range",children:(0,r.jsx)(i.$n,{content:e.widenet?"Extended":"Normal",selected:e.widenet,icon:"expand-arrows-alt",onClick:function(){return t("command",{cmd:"widenet",id_tag:e.id_tag})}})}),(0,r.jsxs)(i.Ki.Item,{label:"Filtering",children:[(0,r.jsx)(i.$n,{content:"Carbon Dioxide",selected:e.filter_co2,onClick:function(){return t("command",{cmd:"co2_scrub",id_tag:e.id_tag})}}),(0,r.jsx)(i.$n,{content:"Plasma",selected:e.filter_toxins,onClick:function(){return t("command",{cmd:"tox_scrub",id_tag:e.id_tag})}}),(0,r.jsx)(i.$n,{content:"Nitrous Oxide",selected:e.filter_n2o,onClick:function(){return t("command",{cmd:"n2o_scrub",id_tag:e.id_tag})}}),(0,r.jsx)(i.$n,{content:"Oxygen",selected:e.filter_o2,onClick:function(){return t("command",{cmd:"o2_scrub",id_tag:e.id_tag})}}),(0,r.jsx)(i.$n,{content:"Nitrogen",selected:e.filter_n2,onClick:function(){return t("command",{cmd:"n2_scrub",id_tag:e.id_tag})}}),(0,r.jsx)(i.$n,{content:"Hydrogen",selected:e.filter_h2,onClick:function(){return t("command",{cmd:"h2_scrub",id_tag:e.id_tag})}}),(0,r.jsx)(i.$n,{content:"Water Vapor",selected:e.filter_h2o,onClick:function(){return t("command",{cmd:"h2o_scrub",id_tag:e.id_tag})}})]})]})},e.name)})}},8340:function(e,n,t){"use strict";t.r(n),t.d(n,{AtmosTemperatureGate:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.on,s=a.temperature,u=a.max_temp,d=a.temp_unit,f=a.step,h=a.inverted;return(0,r.jsx)(l.p8,{width:330,height:130,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Power",children:(0,r.jsx)(i.$n,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){return t("power")}})}),(0,r.jsx)(i.Ki.Item,{label:"Inverted",children:(0,r.jsx)(i.$n,{icon:h?"arrow-up":"arrow-down",content:h?"Yes":"No",color:h?null:"red",selected:h,onClick:function(){return t("inverted")}})}),(0,r.jsxs)(i.Ki.Item,{label:"Temperature",children:[(0,r.jsx)(i.$n,{icon:"fast-backward",textAlign:"center",disabled:0===s,width:2.2,onClick:function(){return t("min_temp")}}),(0,r.jsx)(i.Q7,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:f,minValue:0,maxValue:u,value:s,onChange:function(e){return t("custom_temperature",{temperature:e})}}),(0,r.jsx)(i.$n,{icon:"fast-forward",textAlign:"center",disabled:s===u,width:2.2,onClick:function(){return t("max_temp")}})]})]})})})})}},6561:function(e,n,t){"use strict";t.r(n),t.d(n,{AugmentMenu:()=>d});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=function(e){return(0,r.jsx)(c.p8,{width:700,height:660,theme:"malfunction",children:(0,r.jsx)(c.p8.Content,{scrollable:!0,children:(0,r.jsx)(o.BJ,{vertical:!0,children:(0,r.jsx)(f,{})})})})},f=function(){var e=(0,a.Oc)(),n=e.act,t=e.data,c=t.usable_swarms,s=t.ability_tabs,d=t.known_abilities,f=u((0,i.useState)(s[0]),2),m=f[0],p=f[1],x=u((0,i.useState)(""),2),g=x[0],j=x[1],b=function(){var e=s.find(function(e){return e.category_name===m.category_name});if(!e)return[];var n=Math.min(e.category_stage,4);return e.abilities.filter(function(e){return e.stage<=n&&(!g||e.name.toLowerCase().includes(g.toLowerCase()))}).sort(function(e,n){return["intruder","destroyer"].includes(m.category_name.toLowerCase())?e.stage-n.stage:0})}(),y=s.find(function(e){return e.category_name===m.category_name}),v=["intruder","destroyer"].includes(m.category_name.toLowerCase());return(0,r.jsxs)(o.wn,{title:(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,r.jsxs)(o.BJ,{vertical:!0,style:{marginRight:"10px"},children:[(0,r.jsxs)("span",{children:["Swarms: ",(0,r.jsx)("span",{style:{color:"green"},children:c})]}),v&&y&&(0,r.jsxs)("span",{children:["Category Stage: ",(0,r.jsx)("span",{style:{color:"green"},children:Math.min(y.category_stage,4)})]})]}),(0,r.jsx)("div",{className:"Section__buttons",children:(0,r.jsx)(o.pd,{width:"200px",placeholder:"Search Abilities",value:g,onChange:function(e){return j(e)}})})]}),children:[(0,r.jsxs)(o.tU,{children:[s.map(function(e){return(0,r.jsx)(o.tU.Tab,{selected:m.category_name===e.category_name,onClick:function(){p(e),j("")},children:(0,l.ZH)(e.category_name)},e.category_name)}),(0,r.jsx)(o.tU.Tab,{selected:"upgrades"===m.category_name,onClick:function(){return p({category_name:"upgrades"})},children:"Upgrades"},"upgrades")]}),"upgrades"===m.category_name?(0,r.jsx)(h,{act:n,abilityTabs:s,knownAbilities:d,usableSwarms:c}):(0,r.jsx)(o.BJ,{vertical:!0,children:b.map(function(e){var t=d.find(function(n){return n.ability_path===e.ability_path}),i=t?t.cost:e.cost,l=t&&t.current_level>0?"".concat(t.current_level," / ").concat(t.max_level):"0 / ".concat(e.max_level);return(0,r.jsxs)(o.BJ.Item,{children:[(0,r.jsxs)(o.BJ,{vertical:!1,children:[(0,r.jsx)(o.$n,{height:"20px",width:"35px",mb:1,textAlign:"center",content:i,disabled:i>c||t&&t.current_level===t.max_level,tooltip:"Purchase this ability?",onClick:function(){n("purchase",{ability_path:e.ability_path}),p(m)}}),(0,r.jsx)(o.BJ.Item,{fontSize:"16px",children:e.name})]}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.BJ,{vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{fontSize:"13px",children:e.desc||"Description not available"}),(0,r.jsxs)(o.BJ.Item,{children:["Level: ",(0,r.jsx)("span",{style:{color:"green"},children:l}),v&&e.stage>0&&(0,r.jsxs)("span",{children:[" (Stage: ",e.stage,")"]})]}),(0,r.jsx)(o.BJ.Divider,{})]})})]},e.name)})})]})},h=function(e){var n=e.act,t=e.abilityTabs,i=e.knownAbilities,l=e.usableSwarms,a=i.filter(function(e){return e.current_level<e.max_level});return(0,r.jsx)(o.BJ,{vertical:!0,children:a.map(function(e){var i=t.flatMap(function(e){return e.abilities}).find(function(n){return n.ability_path===e.ability_path});return(0,r.jsxs)(o.BJ.Item,{children:[(0,r.jsxs)(o.BJ,{vertical:!1,children:[(0,r.jsx)(o.$n,{height:"20px",width:"35px",mb:1,textAlign:"center",content:e.cost,disabled:e.cost>l,tooltip:"Upgrade this ability?",onClick:function(){return n("purchase",{ability_path:e.ability_path})}}),(0,r.jsx)(o.BJ.Item,{fontSize:"16px",children:e.name})]}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.BJ,{vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{fontSize:"13px",children:e.upgrade_text}),(0,r.jsxs)(o.BJ.Item,{children:["Level:"," ",(0,r.jsx)("span",{style:{color:"green"},children:"".concat(e.current_level," / ").concat(e.max_level)}),i&&i.stage>0&&(0,r.jsxs)("span",{children:[" (Stage: ",i.stage,")"]})]}),(0,r.jsx)(o.BJ.Divider,{})]})})]},e.name)})})}},8762:function(e,n,t){"use strict";t.r(n),t.d(n,{Autolathe:()=>f});var r=t(8138),i=t(8587),o=t(7790),l=t(3268),a=t(2864),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=function(e,n,t,r){return null===e.requirements||!(e.requirements.metal*r>n)&&!(e.requirements.glass*r>t)},f=function(e){var n=(0,a.Oc)(),t=n.act,s=n.data,f=s.total_amount,h=(s.max_amount,s.metal_amount),m=s.glass_amount,p=s.busyname,x=s.busyamt,g=s.showhacked,j=s.buildQueue,b=s.buildQueueLen,y=s.recipes,v=s.categories,w=s.fill_percent,k=u((0,a.QY)("category","Tools"),2),_=k[0],C=k[1],I=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),S=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=f.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),A=u((0,a.QY)("searchText",""),2),P=A[0],B=A[1],E=[];b>0&&(E=j.map(function(e,n){return(0,r.jsx)(o.az,{children:(0,r.jsx)(o.$n,{fluid:!0,icon:"times",color:"transparent",content:e[0],onClick:function(){return t("remove_from_queue",{remove_from_queue:n+1})}},n)},n)}));var z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(0,i.pb)(e,function(e){return(e.category.indexOf(_)>-1||!!n)&&(!!g||!e.hacked)});if(n){var r=(0,l.XZ)(n,function(e){return e.name});t=(0,i.pb)(t,r)}return(0,i.Ul)(t,function(e){return e.name.toLowerCase()})}(y,P),T="Build";return P?T="Results for: '"+P+"':":_&&(T="Build ("+_+")"),(0,r.jsx)(c.p8,{width:750,height:525,children:(0,r.jsx)(c.p8.Content,{scrollable:!0,children:(0,r.jsxs)(o.BJ,{fill:!0,children:[(0,r.jsx)(o.BJ.Item,{width:"70%",children:(0,r.jsxs)(o.wn,{fill:!0,scrollable:!0,title:T,buttons:(0,r.jsx)(o.ms,{width:"150px",options:v,selected:_,onSelected:function(e){return C(e)}}),children:[(0,r.jsx)(o.pd,{fluid:!0,mb:1,placeholder:"Search for...",onChange:function(e){return B(e)},value:P}),z.map(function(e){return(0,r.jsxs)(o.BJ.Item,{grow:!0,children:[(0,r.jsx)("img",{src:"data:image /jpeg;base64,".concat(e.image),style:{verticalAlign:"middle",width:"32px",margin:"0px"}}),(0,r.jsx)(o.$n,{mr:1,icon:"hammer",selected:p===e.name&&1===x,disabled:!d(e,h,m,1),onClick:function(){return t("make",{make:e.uid,multiplier:1})},children:e.name}),e.max_multiplier>=10&&(0,r.jsx)(o.$n,{mr:1,icon:"hammer",selected:p===e.name&&10===x,disabled:!d(e,h,m,10),onClick:function(){return t("make",{make:e.uid,multiplier:10})},children:"10x"}),e.max_multiplier>=25&&(0,r.jsx)(o.$n,{mr:1,icon:"hammer",selected:p===e.name&&25===x,disabled:!d(e,h,m,25),onClick:function(){return t("make",{make:e.uid,multiplier:25})},children:"25x"}),e.max_multiplier>25&&(0,r.jsxs)(o.$n,{mr:1,icon:"hammer",selected:p===e.name&&x===e.max_multiplier,disabled:!d(e,h,m,e.max_multiplier),onClick:function(){return t("make",{make:e.uid,multiplier:e.max_multiplier})},children:[e.max_multiplier,"x"]}),e.requirements&&Object.keys(e.requirements).map(function(n){return(0,l.Sn)(n)+": "+e.requirements[n]}).join(", ")||(0,r.jsx)(o.az,{children:"No resources required."})]},e.uid)})]})}),(0,r.jsxs)(o.BJ.Item,{width:"30%",children:[(0,r.jsx)(o.wn,{title:"Materials",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Metal",children:I}),(0,r.jsx)(o.Ki.Item,{label:"Glass",children:S}),(0,r.jsx)(o.Ki.Item,{label:"Total",children:O}),(0,r.jsxs)(o.Ki.Item,{label:"Storage",children:[w,"% Full"]})]})}),(0,r.jsx)(o.wn,{title:"Building",children:(0,r.jsx)(o.az,{color:p?"green":"",children:p||"Nothing"})}),(0,r.jsxs)(o.wn,{title:"Build Queue",height:23.7,children:[E,(0,r.jsx)(o.$n,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!b,onClick:function(){return t("clear_queue")}})]})]})]})})})}},9766:function(e,n,t){"use strict";t.r(n),t.d(n,{BioChipPad:()=>s});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var s=function(e){var n,t=(0,l.Oc)(),s=t.act,u=t.data,d=u.implant,f=u.contains_case,h=u.gps,m=u.tag,p=(n=(0,i.useState)(m),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return c(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=p[0],g=p[1];return(0,r.jsx)(a.p8,{width:410,height:325,children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsx)(o.wn,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,r.jsx)(o.az,{children:(0,r.jsx)(o.$n,{content:"Eject Case",icon:"eject",disabled:!f,onClick:function(){return s("eject_case")}})}),children:d&&f?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.az,{bold:!0,mb:2,children:[(0,r.jsx)("img",{src:"data:image/jpeg;base64,".concat(d.image),style:{verticalAlign:"middle",width:"32px",marginLeft:0,marginRight:2}}),d.name]}),(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Life",children:d.life}),(0,r.jsx)(o.Ki.Item,{label:"Notes",children:d.notes}),(0,r.jsx)(o.Ki.Item,{label:"Function",children:d.function}),!!h&&(0,r.jsxs)(o.Ki.Item,{label:"Tag",children:[(0,r.jsx)(o.pd,{width:"5.5rem",value:m,onEnter:function(){return s("tag",{newtag:x})},onChange:function(e){return g(e)}}),(0,r.jsx)(o.$n,{disabled:m===x,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){return s("tag",{newtag:x})},children:(0,r.jsx)(o.In,{name:"pen"})})]})]})]}):f?(0,r.jsx)(o.az,{children:"This bio-chip case has no implant!"}):(0,r.jsx)(o.az,{children:"Please insert a bio-chip casing!"})})})})}},9968:function(e,n,t){"use strict";t.r(n),t.d(n,{Biogenerator:()=>s});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(6696);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var s=function(e){var n=(0,o.Oc)(),t=n.data,c=n.config,s=t.container,m=t.processing,p=c.title;return(0,r.jsx)(l.p8,{width:390,height:595,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(a.Operating,{operating:m,name:p}),(0,r.jsx)(d,{}),(0,r.jsx)(f,{}),s?(0,r.jsx)(h,{}):(0,r.jsx)(u,{})]})})})},u=function(e){return(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,children:(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,r.jsx)(i.In,{name:"flask",size:5,mb:"10px"}),(0,r.jsx)("br",{}),"The biogenerator is missing a container."]})})})},d=function(e){var n=(0,o.Oc)(),t=(n.act,n.data),l=t.biomass,a=t.container,c=t.container_curr_reagents,s=t.container_max_reagents;return(0,r.jsxs)(i.wn,{title:"Storage",children:[(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,r.jsx)(i.BJ.Item,{mr:"5px",children:l}),(0,r.jsx)(i.In,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,r.jsxs)(i.BJ,{height:"21px",mt:"8px",align:"center",children:[(0,r.jsx)(i.BJ.Item,{mr:"10px",color:"silver",children:"Container:"}),a?(0,r.jsx)(i.z2,{value:c,maxValue:s,children:(0,r.jsx)(i.az,{textAlign:"center",children:c+" / "+s+" units"})}):(0,r.jsx)(i.BJ.Item,{children:"None"})]})]})},f=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.has_plants,c=l.container;return(0,r.jsx)(i.wn,{title:"Controls",children:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{width:"30%",children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!a,tooltip:a?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){return t("activate")}})}),(0,r.jsx)(i.BJ.Item,{width:"40%",children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",icon:"flask",disabled:!c,tooltip:c?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){return t("detach_container")}})}),(0,r.jsx)(i.BJ.Item,{width:"30%",children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",icon:"eject",disabled:!a,tooltip:a?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){return t("eject_plants")}})})]})})},h=function(e){var n,t=(0,o.Oc)(),l=t.act,a=t.data,s=a.biomass,u=a.product_list,d=(n=(0,o.QY)("vendAmount",1),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return c(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=d[0],h=d[1],m=Object.entries(u).map(function(e,n){var t=Object.entries(e[1]).map(function(e){return e[1]});return(0,r.jsx)(i.Nt,{title:e[0],open:!0,children:t.map(function(e){return(0,r.jsxs)(i.BJ,{py:"2px",className:"candystripe",align:"center",children:[(0,r.jsx)(i.BJ.Item,{width:"50%",ml:"2px",children:e.name}),(0,r.jsxs)(i.BJ.Item,{textAlign:"right",width:"20%",children:[e.cost*f,(0,r.jsx)(i.In,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,r.jsx)(i.BJ.Item,{textAlign:"right",width:"40%",children:(0,r.jsx)(i.$n,{content:"Vend",disabled:s<e.cost*f,icon:"arrow-circle-down",onClick:function(){return l("create",{id:e.id,amount:f})}})})]},e)})},e[0])});return(0,r.jsx)(i.wn,{title:"Products",fill:!0,scrollable:!0,height:32,buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.az,{inline:!0,mr:"5px",color:"silver",children:"Amount to vend:"}),(0,r.jsx)(i.Q7,{animated:!0,value:f,width:"32px",minValue:1,maxValue:10,step:1,stepPixelSize:7,onChange:function(e){return h(e)}})]}),children:m})}},3764:function(e,n,t){"use strict";t.r(n),t.d(n,{BloomEdit:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.glow_brightness_base,s=a.glow_brightness_power,u=a.glow_contrast_base,d=a.glow_contrast_power,f=a.exposure_brightness_base,h=a.exposure_brightness_power,m=a.exposure_contrast_base,p=a.exposure_contrast_power;return(0,r.jsx)(l.p8,{title:"BloomEdit",width:500,height:500,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.wn,{title:"Bloom Edit",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Lamp Brightness Base",children:[(0,r.jsx)(i.az,{inline:!0,children:"Base Lamp Brightness"}),(0,r.jsx)(i.Q7,{fluid:!0,value:c,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(e){return t("glow_brightness_base",{value:e})}})]}),(0,r.jsxs)(i.Ki.Item,{label:"Lamp Brightness Power",children:[(0,r.jsx)(i.az,{inline:!0,children:"Lamp Brightness * Light Power"}),(0,r.jsx)(i.Q7,{fluid:!0,value:s,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(e){return t("glow_brightness_power",{value:e})}})]}),(0,r.jsxs)(i.Ki.Item,{label:"Lamp Contrast Base",children:[(0,r.jsx)(i.az,{inline:!0,children:"Base Lamp Contrast"}),(0,r.jsx)(i.Q7,{fluid:!0,value:u,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(e){return t("glow_contrast_base",{value:e})}})]}),(0,r.jsxs)(i.Ki.Item,{label:"Lamp Contrast Power",children:[(0,r.jsx)(i.az,{inline:!0,children:"Lamp Contrast * Light Power"}),(0,r.jsx)(i.Q7,{fluid:!0,value:d,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(e){return t("glow_contrast_power",{value:e})}})]}),(0,r.jsxs)(i.Ki.Item,{label:"Exposure Brightness Base",children:[(0,r.jsx)(i.az,{inline:!0,children:"Base Exposure Brightness"}),(0,r.jsx)(i.Q7,{fluid:!0,value:f,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(e){return t("exposure_brightness_base",{value:e})}})]}),(0,r.jsxs)(i.Ki.Item,{label:"Exposure Brightness Power",children:[(0,r.jsx)(i.az,{inline:!0,children:"Exposure Brightness * Light Power"}),(0,r.jsx)(i.Q7,{fluid:!0,value:h,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(e){return t("exposure_brightness_power",{value:e})}})]}),(0,r.jsxs)(i.Ki.Item,{label:"Exposure Contrast Base",children:[(0,r.jsx)(i.az,{inline:!0,children:"Base Exposure Contrast"}),(0,r.jsx)(i.Q7,{fluid:!0,value:m,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(e){return t("exposure_contrast_base",{value:e})}})]}),(0,r.jsxs)(i.Ki.Item,{label:"Exposure Contrast Power",children:[(0,r.jsx)(i.az,{inline:!0,children:"Exposure Contrast * Light Power"}),(0,r.jsx)(i.Q7,{fluid:!0,value:p,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(e){return t("exposure_contrast_power",{value:e})}})]}),(0,r.jsx)(i.Ki.Divider,{}),(0,r.jsxs)(i.Ki.Item,{children:[(0,r.jsx)(i.$n,{content:"Reload Lamps with New Parameters",onClick:function(){return t("update_lamps")}}),(0,r.jsx)(i.$n,{content:"Reset to Default",onClick:function(){return t("default")}})]})]})})})})}},7166:function(e,n,t){"use strict";t.r(n),t.d(n,{BlueSpaceArtilleryControl:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n,t=(0,o.Oc)(),a=t.act,c=t.data;return n=c.ready?(0,r.jsx)(i.Ki.Item,{label:"Status",color:"green",children:"Ready"}):c.reloadtime_text?(0,r.jsx)(i.Ki.Item,{label:"Reloading In",color:"red",children:c.reloadtime_text}):(0,r.jsx)(i.Ki.Item,{label:"Status",color:"red",children:"No cannon connected!"}),(0,r.jsx)(l.p8,{width:400,height:150,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,children:(0,r.jsxs)(i.Ki,{children:[c.notice&&(0,r.jsx)(i.Ki.Item,{label:"Alert",color:"red",children:c.notice}),n,(0,r.jsx)(i.Ki.Item,{label:"Target",children:(0,r.jsx)(i.$n,{icon:"crosshairs",content:c.target?c.target:"None",onClick:function(){return a("recalibrate")}})}),1===c.ready&&!!c.target&&(0,r.jsx)(i.Ki.Item,{label:"Firing",children:(0,r.jsx)(i.$n,{icon:"skull",content:"FIRE!",color:"red",onClick:function(){return a("fire")}})}),!c.connected&&(0,r.jsx)(i.Ki.Item,{label:"Maintenance",children:(0,r.jsx)(i.$n,{icon:"wrench",content:"Complete Deployment",onClick:function(){return a("build")}})})]})})})})})})}},8128:function(e,n,t){"use strict";t.r(n),t.d(n,{Alerts:()=>u,BluespaceTap:()=>s,Incursion:()=>c});var r=t(8138),i=t(7790),o=t(9582),l=t(2864),a=t(3384),c=function(e){if((0,l.Oc)().data.portaling)return(0,r.jsx)(i.Rr,{fontsize:"256px",backgroundColor:"rgba(35,0,0,0.85)",children:(0,r.jsx)(i.Z8,{fontsize:"256px",interval:Math.random()>.25?750+400*Math.random():290+150*Math.random(),time:60+150*Math.random(),children:(0,r.jsx)(i.BJ,{mb:"30px",fontsize:"256px",children:(0,r.jsxs)(i.BJ.Item,{bold:!0,color:"red",fontsize:"256px",textAlign:"center",children:[(0,r.jsx)(i.In,{name:"skull",size:14,mb:"64px"}),(0,r.jsx)("br",{}),"E$#OR:& U#KN!WN IN%ERF#R_NCE"]})})})})},s=function(e){var n=(0,l.Oc)(),t=n.act,s=n.data,d=s.product||[],f=s.desiredMiningPower,h=s.miningPower,m=s.points,p=s.totalPoints,x=s.powerUse,g=s.availablePower,j=s.emagged,b=s.dirty,y=s.autoShutown,v=s.stabilizers,w=s.stabilizerPower,k=s.stabilizerPriority;return(0,r.jsx)(a.p8,{width:650,height:450,children:(0,r.jsx)(a.p8.Content,{scrollable:!0,children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(c,{}),(0,r.jsx)(u,{}),(0,r.jsx)(i.Nt,{title:"Input Management",children:(0,r.jsxs)(i.wn,{fill:!0,title:"Input",children:[(0,r.jsx)(i.$n,{icon:y&&!j?"toggle-on":"toggle-off",content:"Auto shutdown",color:y&&!j?"green":"red",disabled:!!j,tooltip:"Turn auto shutdown on or off",tooltipPosition:"top",onClick:function(){return t("auto_shutdown")}}),(0,r.jsx)(i.$n,{icon:v&&!j?"toggle-on":"toggle-off",content:"Stabilizers",color:v&&!j?"green":"red",disabled:!!j,tooltip:"Turn stabilizers on or off",tooltipPosition:"top",onClick:function(){return t("stabilizers")}}),(0,r.jsx)(i.$n,{icon:k&&!j?"toggle-on":"toggle-off",content:"Stabilizer priority",color:k&&!j?"green":"red",disabled:!!j,tooltip:"On: Mining power will not exceed what can be stabilized",tooltipPosition:"top",onClick:function(){return t("stabilizer_priority")}}),(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Desired Mining Power",children:(0,o.d5)(f)}),(0,r.jsx)(i.Ki.Item,{verticalAlign:"top",label:"Set Desired Mining Power",children:(0,r.jsxs)(i.BJ,{width:"100%",children:[(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.$n,{icon:"step-backward",disabled:0===f||j,tooltip:"Set to 0",tooltipPosition:"bottom",onClick:function(){return t("set",{set_power:0})}}),(0,r.jsx)(i.$n,{icon:"fast-backward",tooltip:"Decrease by 10 MW",tooltipPosition:"bottom",disabled:0===f||j,onClick:function(){return t("set",{set_power:f-1e7})}}),(0,r.jsx)(i.$n,{icon:"backward",disabled:0===f||j,tooltip:"Decrease by 1 MW",tooltipPosition:"bottom",onClick:function(){return t("set",{set_power:f-1e6})}})]}),(0,r.jsx)(i.BJ.Item,{mx:1,children:(0,r.jsx)(i.Q7,{disabled:j,minValue:0,value:f,maxValue:1/0,step:1,onChange:function(e){return t("set",{set_power:e})}})}),(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.$n,{icon:"forward",disabled:j,tooltip:"Increase by one MW",tooltipPosition:"bottom",onClick:function(){return t("set",{set_power:f+1e6})}}),(0,r.jsx)(i.$n,{icon:"fast-forward",disabled:j,tooltip:"Increase by 10MW",tooltipPosition:"bottom",onClick:function(){return t("set",{set_power:f+1e7})}})]})]})}),(0,r.jsx)(i.Ki.Item,{label:"Total Power Use",children:(0,o.d5)(x)}),(0,r.jsx)(i.Ki.Item,{label:"Mining Power Use",children:(0,o.d5)(h)}),(0,r.jsx)(i.Ki.Item,{label:"Stabilizer Power Use",children:(0,o.d5)(w)}),(0,r.jsx)(i.Ki.Item,{label:"Surplus Power",children:(0,o.d5)(g)})]})]})}),(0,r.jsxs)(i.wn,{fill:!0,title:"Output",children:[b?(0,r.jsx)(i.Rr,{backgroundColor:"rgba(63, 39, 18, 0.85)",children:(0,r.jsx)(i.BJ,{mb:"30px",fontsize:"256px",children:(0,r.jsxs)(i.BJ.Item,{bold:!0,color:"brown",fontsize:"256px",textAlign:"center",children:["Blockage Detected",(0,r.jsx)("br",{}),"Cleanup Required"]})})}):"",(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.az,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Available Points",children:m}),(0,r.jsx)(i.Ki.Item,{label:"Total Points",children:p})]})})}),(0,r.jsx)(i.BJ.Item,{align:"end",children:(0,r.jsx)(i.az,{children:(0,r.jsx)(i.Ki,{children:d.map(function(e){return(0,r.jsx)(i.Ki.Item,{label:e.name,children:(0,r.jsx)(i.$n,{disabled:e.price>=m,onClick:function(){return t("vend",{target:e.key})},content:e.price})},e.key)})})})})]})]})]})})})},u=function(e){var n=(0,l.Oc)(),t=(n.act,n.data);t.product;var o=t.miningPower,a=t.stabilizerPower,c=t.emagged,s=(t.safeLevels,t.autoShutown),u=t.stabilizers;return t.overhead,(0,r.jsxs)(r.Fragment,{children:[!s&&!c&&(0,r.jsx)(i.IC,{danger:1,children:"Auto shutdown disabled"}),c?(0,r.jsx)(i.IC,{danger:1,children:"All safeties disabled"}):o<=15e6?"":u?o>a+15e6?(0,r.jsx)(i.IC,{danger:1,children:"Stabilizers overwhelmed, Instability likely"}):(0,r.jsx)(i.IC,{children:"High Power, engaging stabilizers"}):(0,r.jsx)(i.IC,{danger:1,children:"Stabilizers disabled, Instability likely"})]})}},6807:function(e,n,t){"use strict";t.r(n),t.d(n,{BodyScanner:()=>p});var r=t(8138),i=t(7790),o=t(3268),l=t(2864),a=t(3384),c=[["good","Alive"],["average","Critical"],["bad","DEAD"]],s=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."],["paraplegic","bad","Lumbar nerves damaged."]],u=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],d={average:[.25,.5],bad:[.5,1/0]},f=function(e,n){for(var t=[],r=0;r<e.length;r+=2)t.push(n(e[r],e[r+1],r));return t},h=function(e){return e.length>0?e.filter(function(e){return!!e}).reduce(function(e,n){return(0,r.jsxs)(r.Fragment,{children:[e,(0,r.jsx)(i.az,{children:n},n)]})},null):null},m=function(e){if(e>100){if(e<300)return"mild infection";if(e<400)return"mild infection+";if(e<500)return"mild infection++";if(e<700)return"acute infection";if(e<800)return"acute infection+";if(e<900)return"acute infection++";if(e>=900)return"septic"}return""},p=function(e){var n=(0,l.Oc)().data,t=n.occupied,i=n.occupant,o=t?(0,r.jsx)(x,{occupant:void 0===i?{}:i}):(0,r.jsx)(k,{});return(0,r.jsx)(a.p8,{width:700,height:600,title:"Body Scanner",children:(0,r.jsx)(a.p8.Content,{scrollable:!0,children:o})})},x=function(e){var n=e.occupant;return(0,r.jsxs)(i.az,{children:[(0,r.jsx)(g,{occupant:n}),(0,r.jsx)(j,{occupant:n}),(0,r.jsx)(b,{occupant:n}),(0,r.jsx)(v,{organs:n.extOrgan}),(0,r.jsx)(w,{organs:n.intOrgan})]})},g=function(e){var n=(0,l.Oc)(),t=n.act,o=n.data.occupant;return(0,r.jsx)(i.wn,{title:"Occupant",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{icon:"print",onClick:function(){return t("print_p")},children:"Print Report"}),(0,r.jsx)(i.$n,{icon:"user-slash",onClick:function(){return t("ejectify")},children:"Eject"})]}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Name",children:o.name}),(0,r.jsx)(i.Ki.Item,{label:"Health",children:(0,r.jsx)(i.z2,{min:"0",max:o.maxHealth,value:o.health/o.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,r.jsx)(i.Ki.Item,{label:"Status",color:c[o.stat][0],children:c[o.stat][1]}),(0,r.jsxs)(i.Ki.Item,{label:"Temperature",children:[(0,r.jsx)(i.zv,{value:Math.round(o.bodyTempC)}),"\xb0C,\xa0",(0,r.jsx)(i.zv,{value:Math.round(o.bodyTempF)}),"\xb0F"]}),(0,r.jsx)(i.Ki.Item,{label:"Implants",children:o.implant_len?(0,r.jsx)(i.az,{children:o.implant.map(function(e){return e.name}).join(", ")}):(0,r.jsx)(i.az,{color:"label",children:"None"})})]})})},j=function(e){var n=e.occupant;return n.hasBorer||n.blind||n.colourblind||n.nearsighted||n.hasVirus||n.paraplegic?(0,r.jsx)(i.wn,{title:"Abnormalities",children:s.map(function(e,t){if(n[e[0]])return(0,r.jsx)(i.az,{color:e[1],bold:"bad"===e[1],children:e[2]},e[2])})}):(0,r.jsx)(i.wn,{title:"Abnormalities",children:(0,r.jsx)(i.az,{color:"label",children:"No abnormalities found."})})},b=function(e){var n=e.occupant;return(0,r.jsx)(i.wn,{title:"Damage",children:(0,r.jsx)(i.XI,{children:f(u,function(e,t,o){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.XI.Row,{color:"label",children:[(0,r.jsxs)(i.XI.Cell,{children:[e[0],":"]}),(0,r.jsx)(i.XI.Cell,{children:!!t&&t[0]+":"})]}),(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(y,{value:n[e[1]],marginBottom:o<u.length-2})}),(0,r.jsx)(i.XI.Cell,{children:!!t&&(0,r.jsx)(y,{value:n[t[1]]})})]})]})})})})},y=function(e){return(0,r.jsx)(i.z2,{min:"0",max:"100",value:e.value/100,mt:"0.5rem",mb:!!e.marginBottom&&"0.5rem",ranges:d,children:Math.round(e.value)})},v=function(e){return 0===e.organs.length?(0,r.jsx)(i.wn,{title:"External Organs",children:(0,r.jsx)(i.az,{color:"label",children:"N/A"})}):(0,r.jsx)(i.wn,{title:"External Organs",children:(0,r.jsxs)(i.XI,{children:[(0,r.jsxs)(i.XI.Row,{header:!0,children:[(0,r.jsx)(i.XI.Cell,{children:"Name"}),(0,r.jsx)(i.XI.Cell,{textAlign:"center",children:"Damage"}),(0,r.jsx)(i.XI.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map(function(e,n){return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{color:!!e.status.dead&&"bad"||(!!e.internalBleeding||!!e.burnWound||!!e.lungRuptured||!!e.liverCirrhosis||!!e.status.broken||!!e.open||e.germ_level>100)&&"average"||!!e.status.robotic&&"label",width:"33%",children:(0,o.ZH)(e.name)}),(0,r.jsx)(i.XI.Cell,{textAlign:"center",children:(0,r.jsx)(i.z2,{m:-.5,min:"0",max:e.maxHealth,mt:n>0&&"0.5rem",value:e.totalLoss/e.maxHealth,ranges:d,children:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.m_,{content:"Total damage",children:(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.In,{name:"heartbeat",mr:.5}),Math.round(e.totalLoss)]})}),!!e.bruteLoss&&(0,r.jsx)(i.m_,{content:"Brute damage",children:(0,r.jsxs)(i.BJ.Item,{grow:!0,children:[(0,r.jsx)(i.In,{name:"bone",mr:.5}),Math.round(e.bruteLoss)]})}),!!e.fireLoss&&(0,r.jsx)(i.m_,{content:"Burn damage",children:(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.In,{name:"fire",mr:.5}),Math.round(e.fireLoss)]})})]})})}),(0,r.jsxs)(i.XI.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:n>0&&"calc(0.5rem + 2px)",children:[(0,r.jsx)(i.az,{color:"average",inline:!0,children:h([!!e.internalBleeding&&"Internal bleeding",!!e.burnWound&&"Critical tissue burns",!!e.lungRuptured&&"Ruptured lung",!!e.liverCirrhosis&&"Liver cirrhosis",!!e.status.broken&&e.status.broken,m(e.germ_level),!!e.open&&"Open incision"])}),(0,r.jsxs)(i.az,{inline:!0,children:[h([!!e.status.splinted&&(0,r.jsx)(i.az,{color:"good",children:"Splinted"}),!!e.status.robotic&&(0,r.jsx)(i.az,{color:"label",children:"Robotic"}),!!e.status.dead&&(0,r.jsx)(i.az,{color:"bad",bold:!0,children:"DEAD"})]),h(e.shrapnel.map(function(e){return e.known?e.name:"Unknown object"}))]})]})]},n)})]})})},w=function(e){return 0===e.organs.length?(0,r.jsx)(i.wn,{title:"Internal Organs",children:(0,r.jsx)(i.az,{color:"label",children:"N/A"})}):(0,r.jsx)(i.wn,{title:"Internal Organs",children:(0,r.jsxs)(i.XI,{children:[(0,r.jsxs)(i.XI.Row,{header:!0,children:[(0,r.jsx)(i.XI.Cell,{children:"Name"}),(0,r.jsx)(i.XI.Cell,{textAlign:"center",children:"Damage"}),(0,r.jsx)(i.XI.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map(function(e,n){return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{color:!!e.dead&&"bad"||e.germ_level>100&&"average"||e.robotic>0&&"label",width:"33%",children:(0,o.ZH)(e.name)}),(0,r.jsx)(i.XI.Cell,{textAlign:"center",children:(0,r.jsx)(i.z2,{min:"0",max:e.maxHealth,value:e.damage/e.maxHealth,mt:n>0&&"0.5rem",ranges:d,children:Math.round(e.damage)})}),(0,r.jsxs)(i.XI.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:n>0&&"calc(0.5rem + 2px)",children:[(0,r.jsx)(i.az,{color:"average",inline:!0,children:h([m(e.germ_level)])}),(0,r.jsx)(i.az,{inline:!0,children:h([1===e.robotic&&(0,r.jsx)(i.az,{color:"label",children:"Robotic"}),2===e.robotic&&(0,r.jsx)(i.az,{color:"label",children:"Assisted"}),!!e.dead&&(0,r.jsx)(i.az,{color:"bad",bold:!0,children:"DEAD"})])})]})]},n)})]})})},k=function(){return(0,r.jsx)(i.wn,{fill:!0,children:(0,r.jsx)(i.BJ,{fill:!0,textAlign:"center",children:(0,r.jsxs)(i.BJ.Item,{grow:!0,align:"center",color:"label",children:[(0,r.jsx)(i.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.jsx)("br",{}),"No occupant detected."]})})})}},2790:function(e,n,t){"use strict";t.r(n),t.d(n,{BookBinder:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(4744),c=function(e){var n=(0,o.Oc)(),t=n.act,c=n.data,s=c.selectedbook,u=c.book_categories,d=[];return u.map(function(e){return d[e.description]=e.category_id}),(0,r.jsxs)(l.p8,{width:600,height:400,children:[(0,r.jsx)(a.ComplexModal,{}),(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsx)(i.BJ,{fill:!0,vertical:!0,children:(0,r.jsxs)(i.wn,{fill:!0,title:"Book Binder",buttons:(0,r.jsx)(i.$n,{icon:"print",width:"auto",content:"Print Book",onClick:function(){return t("print_book")}}),children:[(0,r.jsxs)(i.az,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,r.jsx)(i.In,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,r.jsx)(i.BJ,{children:(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Title",children:(0,r.jsx)(i.$n,{textAlign:"left",icon:"pen",width:"auto",content:s.title,onClick:function(){return(0,a.modalOpen)("edit_selected_title")}})}),(0,r.jsx)(i.Ki.Item,{label:"Author",children:(0,r.jsx)(i.$n,{textAlign:"left",icon:"pen",width:"auto",content:s.author,onClick:function(){return(0,a.modalOpen)("edit_selected_author")}})}),(0,r.jsx)(i.Ki.Item,{label:"Select Categories",children:(0,r.jsx)(i.az,{children:(0,r.jsx)(i.ms,{width:"190px",options:u.map(function(e){return e.description}),onSelected:function(e){return t("toggle_binder_category",{category_id:d[e]})}})})}),(0,r.jsx)(i.Ki.Item,{label:"Summary",children:(0,r.jsx)(i.$n,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){return(0,a.modalOpen)("edit_selected_summary")}})}),(0,r.jsx)(i.Ki.Item,{children:s.summary})]}),(0,r.jsx)("br",{}),u.filter(function(e){return s.categories.includes(e.category_id)}).map(function(e){return(0,r.jsx)(i.$n,{content:e.description,selected:!0,icon:"unlink",onClick:function(){return t("toggle_binder_category",{category_id:e.category_id})}},e.category_id)})]})})]})})})]})}},1326:function(e,n,t){"use strict";t.r(n),t.d(n,{BotCall:()=>u});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var s=function(e){var n,t=null!=(n=[{modes:[0,20],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",color:"average"},{modes:[9],label:"Moving",color:"average"},{modes:[6,11],label:"Responding",color:"green"},{modes:[12],label:"Delivering Cargo",color:"blue"},{modes:[13],label:"Returning Home",color:"blue"},{modes:[7,8,10,14,15,16,17,18,19],label:"Working",color:"blue"}].find(function(n){return n.modes.includes(e)}))?n:{modes:[-1],label:"ERROR!!CALL_CODER!!"+e,color:"red"};return(0,r.jsxs)(o.az,{color:t.color,children:[" ",t.label," "]})},u=function(e){var n,t=(0,l.Oc)();t.act,t.data;var s=(n=(0,i.useState)(0),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return c(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],f=s[1],h={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"};return(0,r.jsx)(a.p8,{width:700,height:400,children:(0,r.jsx)(a.p8.Content,{scrollable:0===u,children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.tU,{fluid:!0,textAlign:"center",children:Array.from({length:6}).map(function(e,n){return(0,r.jsx)(o.tU.Tab,{selected:u===n,onClick:function(){return f(n)},children:h[n]},n)})})}),h[u]?(0,r.jsx)(d,{model:h[u]}):"This should not happen. Report on Paradise Github"]})})})},d=function(e){var n=(0,l.Oc)();return void 0!==(n.act,n.data).bots[e.model]?(0,r.jsx)(h,{model:[e.model]}):(0,r.jsx)(f,{model:[e.model]})},f=function(e){var n=(0,l.Oc)();return n.act,n.data,(0,r.jsx)(o.BJ,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,r.jsxs)(o.az,{bold:1,color:"bad",children:["No ",[e.model]," detected"]})})},h=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data.bots;return(0,r.jsx)(o.BJ,{fill:!0,vertical:!0,scrollable:!0,children:(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.XI,{m:"0.5rem",children:[(0,r.jsxs)(o.XI.Row,{header:!0,children:[(0,r.jsx)(o.XI.Cell,{children:"Name"}),(0,r.jsx)(o.XI.Cell,{children:"Model"}),(0,r.jsx)(o.XI.Cell,{children:"Status"}),(0,r.jsx)(o.XI.Cell,{children:"Location"}),(0,r.jsx)(o.XI.Cell,{children:"Interface"}),(0,r.jsx)(o.XI.Cell,{children:"Call"})]}),i[e.model].map(function(e){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e.name}),(0,r.jsx)(o.XI.Cell,{children:e.model}),(0,r.jsx)(o.XI.Cell,{children:e.on?s(e.status):(0,r.jsx)(o.az,{color:"red",children:"Off"})}),(0,r.jsx)(o.XI.Cell,{children:e.location}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.$n,{content:"Interface",onClick:function(){return t("interface",{botref:e.UID})}})}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.$n,{content:"Call",onClick:function(){return t("call",{botref:e.UID})}})})]},e.UID)})]})})})}},9091:function(e,n,t){"use strict";t.r(n),t.d(n,{BotClean:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(9226),c=function(e){var n=(0,o.Oc)(),t=n.act,c=n.data;c.locked;var s=c.noaccess,u=(c.maintpanel,c.on,c.autopatrol,c.canhack,c.emagged,c.remote_disabled,c.painame),d=c.cleanblood,f=c.area;return(0,r.jsx)(l.p8,{width:500,height:400,children:(0,r.jsxs)(l.p8.Content,{scrollable:!0,children:[(0,r.jsx)(a.BotStatus,{}),(0,r.jsx)(i.wn,{title:"Cleaning Settings",children:(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:d,content:"Clean Blood",disabled:s,onClick:function(){return t("blood")}})}),(0,r.jsxs)(i.wn,{title:"Misc Settings",children:[(0,r.jsx)(i.$n,{fluid:!0,content:f?"Reset Area Selection":"Restrict to Current Area",onClick:function(){return t("area")}}),null!==f&&(0,r.jsx)(i.az,{mb:1,children:(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Locked Area",children:f})})})]}),u&&(0,r.jsx)(i.wn,{title:"pAI",children:(0,r.jsx)(i.$n,{fluid:!0,icon:"eject",content:u,disabled:s,onClick:function(){return t("ejectpai")}})})]})})}},3578:function(e,n,t){"use strict";t.r(n),t.d(n,{BotFloor:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(9226),c=function(e){var n=(0,o.Oc)(),t=n.act,c=n.data,s=c.noaccess,u=c.painame,d=c.hullplating,f=c.replace,h=c.eat,m=c.make,p=c.fixfloor,x=c.nag_empty,g=c.magnet,j=c.tiles_amount;return(0,r.jsx)(l.p8,{width:500,height:510,children:(0,r.jsxs)(l.p8.Content,{scrollable:!0,children:[(0,r.jsx)(a.BotStatus,{}),(0,r.jsxs)(i.wn,{title:"Floor Settings",children:[(0,r.jsx)(i.az,{mb:"5px",children:(0,r.jsx)(i.Ki.Item,{label:"Tiles Left",children:j})}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:d,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:s,onClick:function(){return t("autotile")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:f,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:s,onClick:function(){return t("replacetiles")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:p,content:"Repair damaged tiles and platings",disabled:s,onClick:function(){return t("fixfloors")}})]}),(0,r.jsxs)(i.wn,{title:"Miscellaneous",children:[(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:h,content:"Finds tiles",disabled:s,onClick:function(){return t("eattiles")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:m,content:"Make pieces of metal into tiles when empty",disabled:s,onClick:function(){return t("maketiles")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:x,content:"Transmit notice when empty",disabled:s,onClick:function(){return t("nagonempty")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:g,content:"Traction Magnets",disabled:s,onClick:function(){return t("anchored")}})]}),u&&(0,r.jsx)(i.wn,{title:"pAI",children:(0,r.jsx)(i.$n.Checkbox,{fluid:!0,icon:"eject",content:u,disabled:s,onClick:function(){return t("ejectpai")}})})]})})}},5144:function(e,n,t){"use strict";t.r(n),t.d(n,{BotHonk:()=>a});var r=t(8138),i=t(2864),o=t(3384),l=t(9226),a=function(e){var n=(0,i.Oc)();return n.act,n.data,(0,r.jsx)(o.p8,{width:500,height:220,children:(0,r.jsx)(o.p8.Content,{scrollable:!0,children:(0,r.jsx)(l.BotStatus,{})})})}},2078:function(e,n,t){"use strict";t.r(n),t.d(n,{BotMed:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(9226),c=function(e){var n=(0,o.Oc)(),t=n.act,c=n.data;c.locked;var s=c.noaccess,u=(c.maintpanel,c.on,c.autopatrol,c.canhack,c.emagged,c.remote_disabled,c.painame),d=c.shut_up,f=c.declare_crit,h=c.stationary_mode,m=c.heal_threshold,p=c.injection_amount,x=c.use_beaker,g=c.treat_virus,j=c.reagent_glass;return(0,r.jsx)(l.p8,{width:500,height:500,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(a.BotStatus,{}),(0,r.jsxs)(i.wn,{title:"Communication Settings",children:[(0,r.jsx)(i.$n.Checkbox,{fluid:!0,content:"Speaker",checked:!d,disabled:s,onClick:function(){return t("toggle_speaker")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:f,disabled:s,onClick:function(){return t("toggle_critical_alerts")}})]}),(0,r.jsxs)(i.wn,{fill:!0,title:"Treatment Settings",children:[(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Healing Threshold",children:(0,r.jsx)(i.Ap,{value:m.value,minValue:m.min,maxValue:m.max,step:5,disabled:s,onChange:function(e,n){return t("set_heal_threshold",{target:n})}})}),(0,r.jsx)(i.Ki.Item,{label:"Injection Level",children:(0,r.jsx)(i.Ap,{value:p.value,minValue:p.min,maxValue:p.max,step:5,format:function(e){return"".concat(e,"u")},disabled:s,onChange:function(e,n){return t("set_injection_amount",{target:n})}})}),(0,r.jsx)(i.Ki.Item,{label:"Reagent Source",children:(0,r.jsx)(i.$n,{content:x?"Beaker":"Internal Synthesizer",icon:x?"flask":"cogs",disabled:s,onClick:function(){return t("toggle_use_beaker")}})}),j&&(0,r.jsx)(i.Ki.Item,{label:"Beaker",children:(0,r.jsxs)(i.BJ,{inline:!0,width:"100%",children:[(0,r.jsx)(i.BJ.Item,{grow:1,children:(0,r.jsxs)(i.z2,{value:j.amount,minValue:0,maxValue:j.max_amount,children:[j.amount," / ",j.max_amount]})}),(0,r.jsx)(i.BJ.Item,{ml:1,children:(0,r.jsx)(i.$n,{content:"Eject",disabled:s,onClick:function(){return t("eject_reagent_glass")}})})]})})]}),(0,r.jsx)(i.$n.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:g,disabled:s,onClick:function(){return t("toggle_treat_viral")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,content:"Stationary Mode",checked:h,disabled:s,onClick:function(){return t("toggle_stationary_mode")}})]}),u&&(0,r.jsx)(i.wn,{title:"pAI",children:(0,r.jsx)(i.$n,{fluid:!0,icon:"eject",content:u,disabled:s,onClick:function(){return t("ejectpai")}})})]})})})}},881:function(e,n,t){"use strict";t.r(n),t.d(n,{BotMule:()=>s});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(9226);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var s=function(e,n){var t=(0,o.Oc)(n);return(t.act,t.data).cell?(0,r.jsx)(d,{}):(0,r.jsx)(u,{})},u=function(e,n){var t=(0,o.Oc)(n);return(t.act,t.data).cell,(0,r.jsx)(l.p8,{width:500,height:400,children:(0,r.jsxs)(i.BJ,{justify:"center",align:"center",fill:!0,vertical:!0,children:[(0,r.jsxs)(i.In.Stack,{children:[(0,r.jsx)(i.In,{size:"5",name:"slash"}),(0,r.jsx)(i.In,{size:"5",name:"battery-quarter"})]}),(0,r.jsx)(i.az,{bold:1,color:"bad",children:"Please Insert Battery"})]})})},d=function(e,n){var t,a=(0,o.Oc)(n),s=a.act;a.data;var u=(t=(0,o.Ul)(n,0),function(e){if(Array.isArray(e))return e}(t)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(t,2)||function(e,n){if(e){if("string"==typeof e)return c(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=u[0],m=u[1];return(0,r.jsx)(l.p8,{width:500,height:400,children:(0,r.jsxs)(l.p8.Content,{children:[(0,r.jsxs)(i.tU,{children:[(0,r.jsx)(i.tU.Tab,{icon:"signal",selected:0===d,onClick:function(){return m(0)},children:"Status"},"BotStatus"),(0,r.jsx)(i.tU.Tab,{icon:"truck",selected:1===d,onClick:function(){return m(1)},children:"Cargo"},"CargoLoad"),(0,r.jsx)(i.$n,{fluid:!0,content:"Refresh",icon:"rotate-right",verticalAlign:"middle",onClick:function(){return s("refresh")}})]}),function(e){switch(e){case 0:return(0,r.jsx)(f,{});case 1:return(0,r.jsx)(h,{});default:return"Something went wrong. Report it on Paradise Github"}}(d)]})})},f=function(e,n){var t=(0,o.Oc)(n),l=t.act,c=t.data,s=c.noaccess,u=c.auto_pickup,d=c.auto_return,f=(c.sethome,c.bot_suffix),h=c.set_home,m=c.report;return(0,r.jsxs)(i.wn,{children:[(0,r.jsx)(a.BotStatus,{}),(0,r.jsx)(i.$n,{fluid:!0,content:"Change ID: "+f,onClick:function(){return l("setid")}}),(0,r.jsx)(i.$n,{fluid:!0,content:"Set Home: "+h,onClick:function(){return l("sethome")}}),(0,r.jsxs)(i.wn,{title:"Delivery Settings",children:[(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:u,content:"Auto Pickup",disabled:s,onClick:function(){return l("auto_pickup")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:d,content:"Auto Return",disabled:s,onClick:function(){return l("auto_return")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:m,content:"Announce Delivery",disabled:s,onClick:function(){return l("report")}})]})]})},h=function(e,n){var t=(0,o.Oc)(n),l=t.act,a=t.data,c=a.noaccess,s=(a.mode,a.load),u=a.destination,d=a.cargo_IMG,f=a.cargo_info;return(0,r.jsxs)(i.az,{children:[(0,r.jsxs)(i.wn,{title:"Delivery Settings",children:[(0,r.jsx)(i.$n,{content:"Destination: "+(u||"Not Set"),selected:u,disabled:c,onClick:function(){return l("destination")}}),(0,r.jsx)(i.az,{children:null!==d?(0,r.jsx)("img",{src:"data:image/jpeg;base64,".concat(d),style:{height:"20%",width:"20%",float:"middle","vertical-align":"middle","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}):(0,r.jsx)(i.az,{bold:1,children:"No Cargo"})}),(0,r.jsx)(i.az,{as:"span",m:1.5,children:f})]}),(0,r.jsx)(i.wn,{title:"Movement Settings",children:(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{fluid:!0,icon:"location-arrow",content:"Go",disabled:c,onClick:function(){return l("go")}})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{fluid:!0,icon:"home",content:"Return",disabled:c,onClick:function(){return l("home")}})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{fluid:!0,icon:"stop",content:"Stop",disabled:c,color:"bad",onClick:function(){return l("stop")}})})]})}),(0,r.jsx)(i.wn,{title:"Cargo Settings",children:(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{fluid:!0,icon:"stop",content:"Load",disabled:c||s,color:"bad",onClick:function(){return l("load")}})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{fluid:!0,icon:"stop",content:"Unload",disabled:c||!s,color:"bad",onClick:function(){return l("unload")}})})]})})]})}},752:function(e,n,t){"use strict";t.r(n),t.d(n,{BotSecurity:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(9226),c=function(e){var n=(0,o.Oc)(),t=n.act,c=n.data,s=c.noaccess,u=c.painame,d=c.check_id,f=c.check_weapons,h=c.check_warrant,m=c.arrest_mode,p=c.arrest_declare;return(0,r.jsx)(l.p8,{width:500,height:445,children:(0,r.jsxs)(l.p8.Content,{scrollable:!0,children:[(0,r.jsx)(a.BotStatus,{}),(0,r.jsxs)(i.wn,{title:"Who To Arrest",children:[(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:d,content:"Unidentifiable Persons",disabled:s,onClick:function(){return t("authid")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:f,content:"Unauthorized Weapons",disabled:s,onClick:function(){return t("authweapon")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:h,content:"Wanted Criminals",disabled:s,onClick:function(){return t("authwarrant")}})]}),(0,r.jsxs)(i.wn,{title:"Arrest Procedure",children:[(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:m,content:"Detain Targets Indefinitely",disabled:s,onClick:function(){return t("arrtype")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:p,content:"Announce Arrests On Radio",disabled:s,onClick:function(){return t("arrdeclare")}})]}),u&&(0,r.jsx)(i.wn,{title:"pAI",children:(0,r.jsx)(i.$n,{fluid:!0,icon:"eject",content:u,disabled:s,onClick:function(){return t("ejectpai")}})})]})})}},2850:function(e,n,t){"use strict";t.r(n),t.d(n,{BrigCells:()=>s});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=e.cell,t=(0,o.Oc)().act,l=n.cell_id,a=n.occupant,c=n.crimes,s=n.brigged_by,u=n.time_left_seconds,d=n.time_set_seconds,f=n.ref,h="";return u>0&&(h+=" BrigCells__listRow--active"),(0,r.jsxs)(i.XI.Row,{className:h,children:[(0,r.jsx)(i.XI.Cell,{children:l}),(0,r.jsx)(i.XI.Cell,{children:a}),(0,r.jsx)(i.XI.Cell,{children:c}),(0,r.jsx)(i.XI.Cell,{children:s}),(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.qT,{totalSeconds:d})}),(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.qT,{totalSeconds:u})}),(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.$n,{type:"button",onClick:function(){t("release",{ref:f})},children:"Release"})})]})},c=function(e){var n=e.cells;return(0,r.jsxs)(i.XI,{className:"BrigCells__list",children:[(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{header:!0,children:"Cell"}),(0,r.jsx)(i.XI.Cell,{header:!0,children:"Occupant"}),(0,r.jsx)(i.XI.Cell,{header:!0,children:"Crimes"}),(0,r.jsx)(i.XI.Cell,{header:!0,children:"Brigged By"}),(0,r.jsx)(i.XI.Cell,{header:!0,children:"Time Brigged For"}),(0,r.jsx)(i.XI.Cell,{header:!0,children:"Time Left"}),(0,r.jsx)(i.XI.Cell,{header:!0,children:"Release"})]}),n.map(function(e){return(0,r.jsx)(a,{cell:e},e.ref)})]})},s=function(e){var n=(0,o.Oc)(),t=(n.act,n.data).cells;return(0,r.jsx)(l.p8,{theme:"security",width:800,height:400,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,children:(0,r.jsx)(c,{cells:t})})})})})}},9478:function(e,n,t){"use strict";t.r(n),t.d(n,{BrigTimer:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data;a.nameText=a.occupant,a.timing&&(a.prisoner_hasrec?a.nameText=(0,r.jsx)(i.az,{color:"green",children:a.occupant}):a.nameText=(0,r.jsx)(i.az,{color:"red",children:a.occupant}));var c="pencil-alt";a.prisoner_name&&!a.prisoner_hasrec&&(c="exclamation-triangle");var s=[],u=0;for(u=0;u<a.spns.length;u++)s.push(a.spns[u]);return(0,r.jsx)(l.p8,{width:500,height:a.timing?237:396,children:(0,r.jsxs)(l.p8.Content,{children:[(0,r.jsx)(i.wn,{title:"Cell Information",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Cell ID",children:a.cell_id}),(0,r.jsx)(i.Ki.Item,{label:"Occupant",children:a.nameText}),(0,r.jsx)(i.Ki.Item,{label:"Crimes",children:a.crimes}),(0,r.jsx)(i.Ki.Item,{label:"Brigged By",children:a.brigged_by}),(0,r.jsx)(i.Ki.Item,{label:"Time Brigged For",children:a.time_set}),(0,r.jsx)(i.Ki.Item,{label:"Time Left",children:a.time_left}),(0,r.jsx)(i.Ki.Item,{label:"Actions",children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{icon:"lightbulb-o",content:"Flash",disabled:!a.isAllowed,onClick:function(){return t("flash")}}),(0,r.jsx)(i.$n,{icon:"sync",content:"Reset Timer",disabled:!a.timing||!a.isAllowed,onClick:function(){return t("restart_timer")}}),(0,r.jsx)(i.$n,{icon:"eject",content:"Release Prisoner",disabled:!a.timing||!a.isAllowed,onClick:function(){return t("stop")}})]})})]})}),!a.timing&&(0,r.jsx)(i.wn,{title:"New Prisoner",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Prisoner Name",children:[(0,r.jsx)(i.$n,{icon:c,content:a.prisoner_name?a.prisoner_name:"-----",disabled:!a.isAllowed,onClick:function(){return t("prisoner_name")}}),!!a.spns.length&&(0,r.jsx)(i.az,{mt:"0.3rem",children:(0,r.jsx)(i.ms,{disabled:!a.isAllowed||!a.spns.length,options:a.spns,width:"250px",onSelected:function(e){return t("prisoner_name",{prisoner_name:e})}})})]}),(0,r.jsx)(i.Ki.Item,{label:"Prisoner Crimes",children:(0,r.jsx)(i.$n,{icon:"pencil-alt",content:a.prisoner_charge?a.prisoner_charge:"-----",disabled:!a.isAllowed,onClick:function(){return t("prisoner_charge")}})}),(0,r.jsx)(i.Ki.Item,{label:"Prisoner Time",children:(0,r.jsx)(i.$n,{icon:"pencil-alt",content:a.prisoner_time?a.prisoner_time:"-----",disabled:!a.isAllowed,onClick:function(){return t("prisoner_time")}})}),(0,r.jsx)(i.Ki.Item,{label:"Start",children:(0,r.jsx)(i.$n,{icon:"gavel",content:"Start Sentence",disabled:!a.prisoner_name||!a.prisoner_charge||!a.prisoner_time||!a.isAllowed,onClick:function(){return t("start")}})})]})})]})})}},6993:function(e,n,t){"use strict";t.r(n),t.d(n,{BugReportForm:()=>d});var r=t(8138),i=t(4530),o=t(2864),l=t(3384),a=t(7790);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(e){return(0,r.jsxs)("h2",{children:[e.children,e.required&&(0,r.jsx)("span",{className:"input-title-required",children:" *"})]})},d=function(e){var n=(0,o.Oc)(),t=n.act,c=n.data,d=c.read_only,f=c.awaiting_approval,h=c.report_details,m=s((0,i.useState)(!1),2);m[0],m[1];var p=s((0,i.useState)((null==h?void 0:h.title)||""),2),x=p[0],g=p[1],j=s((0,i.useState)((null==h?void 0:h.steps)||""),2),b=j[0],y=j[1],v=s((0,i.useState)((null==h?void 0:h.description)||""),2),w=v[0],k=v[1],_=s((0,i.useState)((null==h?void 0:h.expected_behavior)||""),2),C=_[0],I=_[1],S=s((0,i.useState)((null==h?void 0:h.consequences)||""),2),O=S[0],A=S[1],P=s((0,i.useState)((null==h?void 0:h.approver_note)||""),2),B=P[0],E=P[1],z=s((0,i.useState)((null==h?void 0:h.log)||""),2),T=z[0],N=z[1];return(0,r.jsx)(l.p8,{title:"Bug Report Form",width:700,height:f?1e3:700,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(a.wn,{fill:!0,scrollable:!0,children:(0,r.jsxs)(a.so,{direction:"column",height:"100%",children:[(0,r.jsx)(a.so.Item,{className:"text-center",children:(0,r.jsx)("a",{href:"https://github.com/ParadiseSS13/Paradise/issues",target:"_blank",rel:"noreferrer",className:"link",children:"GitHub Repository"})}),(0,r.jsx)(a.so.Item,{children:(0,r.jsx)("h2",{className:"tip",children:"TIP: please be as descriptive as possible, it really does help tremendously"})}),(0,r.jsxs)(a.so.Item,{children:[(0,r.jsx)(u,{required:!0,children:"Title"}),(0,r.jsx)("input",{width:"100%",className:"textarea",value:x,onChange:function(e){return g(e.target.value)}})]}),(0,r.jsxs)(a.so.Item,{my:2,children:[(0,r.jsx)(u,{required:!0,children:"What did you expect to happen?"}),"Give a description of what you expected to happen",(0,r.jsx)("textarea",{rows:3,className:"textarea",onInput:function(e){var n=e.target;n.style.height="auto",n.style.height="".concat(n.scrollHeight,"px")},value:C,onChange:function(e){return I(e.target.value)}})]}),(0,r.jsxs)(a.so.Item,{my:2,children:[(0,r.jsx)(u,{required:!0,children:"What happened instead?"}),"Give a description of the bug: ",(0,r.jsx)("textarea",{rows:3,className:"textarea",onInput:function(e){var n=e.target;n.style.height="auto",n.style.height="".concat(n.scrollHeight,"px")},value:w,onChange:function(e){return k(e.target.value)}})]}),(0,r.jsxs)(a.so.Item,{my:2,children:[(0,r.jsx)(u,{required:!0,children:"Why is this bad/What are the consequences?"}),"Issues caused by the bug:",(0,r.jsx)("textarea",{rows:3,className:"textarea",onInput:function(e){var n=e.target;n.style.height="auto",n.style.height="".concat(n.scrollHeight,"px")},value:O,onChange:function(e){return A(e.target.value)}})]}),(0,r.jsxs)(a.so.Item,{my:2,children:[(0,r.jsx)(u,{required:!0,children:"How do we reproduce this bug?"}),"Give a list of steps to reproduce this issue, the more details the better",(0,r.jsx)("textarea",{rows:4,className:"textarea",onInput:function(e){var n=e.target;n.style.height="auto",n.style.height="".concat(n.scrollHeight,"px")},value:b,onChange:function(e){return y(e.target.value)},placeholder:"1) Step 1\n2) Step 2\n3) Step 3\n"})]}),!!f&&(0,r.jsxs)(a.so.Item,{my:2,children:[(0,r.jsx)(u,{children:"Additional Note"}),"Any additional notes to submit with the author's bug report ",(0,r.jsx)("textarea",{rows:4,className:"textarea",onInput:function(e){var n=e.target;n.style.height="auto",n.style.height="".concat(n.scrollHeight,"px")},value:B,onChange:function(e){return E(e.target.value)}})]}),(0,r.jsxs)(a.so.Item,{my:2,children:[(0,r.jsx)(u,{children:"Logs"}),"Please paste any relevant logs here",(0,r.jsx)("textarea",{rows:4,className:"textarea",onInput:function(e){var n=e.target;n.style.height="auto",n.style.height="".concat(n.scrollHeight,"px")},value:T,onChange:function(e){return N(e.target.value)}})]}),!d&&(0,r.jsx)(a.so.Item,{my:2,children:(0,r.jsxs)(a.so,{className:"flex-center",children:[(0,r.jsx)(a.so.Item,{mx:1,children:(0,r.jsx)("div",{className:"button-cancel",onClick:function(){return t("cancel")},children:f?"Reject":"Cancel"})}),(0,r.jsx)(a.so.Item,{mx:1,children:(0,r.jsx)("div",{className:"button-submit",onClick:function(){x&&w&&C&&b&&O?t("confirm",{title:x,expected_behavior:C,description:w,consequences:O,steps:b,log:T,approver_note:B}):alert("Please fill out all required fields!")},children:f?"Approve":"Submit"})})]})})]})})})})}},9835:function(e,n,t){"use strict";t.r(n),t.d(n,{CameraConsole:()=>p,CameraConsoleContent:()=>x});var r=t(8138),i=t(8587),o=t(4530),l=t(7790),a=t(5490),c=t(3268),s=t(2864),u=t(3384);function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}String.prototype.trimLongStr=function(e){return this.length>e?this.substring(0,e)+"...":this};var h=function(e,n){if(!n)return[];var t,r,i=e.findIndex(function(e){return e.name===n.name});return[null==(t=e[i-1])?void 0:t.name,null==(r=e[i+1])?void 0:r.name]},m=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(0,i.pb)(e,function(e){return!!e.name});if(n){var r=(0,c.XZ)(n,function(e){return e.name});t=(0,i.pb)(t,r)}return(0,i.Ul)(t,function(e){return e.name})},p=function(e){var n=(0,s.Oc)(),t=n.act,i=n.data,o=i.mapRef,c=i.activeCamera,d=f(h(m(i.cameras),c),2),p=d[0],g=d[1];return(0,r.jsxs)(u.p8,{width:870,height:708,children:[(0,r.jsx)("div",{className:"CameraConsole__left",children:(0,r.jsx)(u.p8.Content,{children:(0,r.jsx)(l.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(x,{})})})}),(0,r.jsxs)("div",{className:"CameraConsole__right",children:[(0,r.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,r.jsx)("b",{children:"Camera: "}),c&&c.name||"—"]}),(0,r.jsxs)("div",{className:(0,a.Ly)(["CameraConsole__toolbar","CameraConsole__toolbar--right"]),children:[(0,r.jsx)(l.$n,{icon:"chevron-left",disabled:!p,onClick:function(){return t("switch_camera",{name:p})}}),(0,r.jsx)(l.$n,{icon:"chevron-right",disabled:!g,onClick:function(){return t("switch_camera",{name:g})}})]}),(0,r.jsx)(l.D1,{className:"CameraConsole__map",params:{id:o,type:"map"}})]})]})},x=function(e){var n=(0,s.Oc)(),t=n.act,i=n.data,c=f((0,o.useState)(""),2),u=c[0],d=c[1],h=i.activeCamera,p=m(i.cameras,u);return(0,r.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(l.BJ.Item,{children:(0,r.jsx)(l.pd,{fluid:!0,placeholder:"Search for a camera",onChange:function(e){return d(e)}})}),(0,r.jsx)(l.BJ.Item,{grow:!0,m:0,children:(0,r.jsx)(l.wn,{fill:!0,scrollable:!0,children:p.map(function(e){return(0,r.jsx)("div",{title:e.name,className:(0,a.Ly)(["Button","Button--fluid",h&&e.name===h.name?"Button--selected":"Button--color--transparent"]),onClick:function(){return t("switch_camera",{name:e.name})},children:e.name.trimLongStr(23)},e.name)})})})]})}},2094:function(e,n,t){"use strict";t.r(n),t.d(n,{Canister:()=>s});var r=t(8138),i=t(7790),o=t(9582),l=t(6859),a=t(2864),c=t(3384),s=function(e){var n=(0,a.Oc)(),t=n.act,s=n.data,u=s.portConnected,d=s.tankPressure,f=s.releasePressure,h=s.defaultReleasePressure,m=s.minReleasePressure,p=s.maxReleasePressure,x=s.valveOpen,g=s.name,j=s.canLabel,b=s.colorContainer,y=s.color_index,v=s.hasHoldingTank,w=s.holdingTank,k="";y.prim&&(k=b.prim.options[y.prim].name);var _="";y.sec&&(_=b.sec.options[y.sec].name);var C="";y.ter&&(C=b.ter.options[y.ter].name);var I="";y.quart&&(I=b.quart.options[y.quart].name);var S=[],O=[],A=[],P=[],B=0;for(B=0;B<b.prim.options.length;B++)S.push(b.prim.options[B].name);for(B=0;B<b.sec.options.length;B++)O.push(b.sec.options[B].name);for(B=0;B<b.ter.options.length;B++)A.push(b.ter.options[B].name);for(B=0;B<b.quart.options.length;B++)P.push(b.quart.options[B].name);var E="";return j&&(E=(0,r.jsx)(i.wn,{title:"Paint",children:(0,r.jsxs)(i.Wx,{children:[(0,r.jsx)(i.Wx.Item,{minWidth:"110px",label:b.prim.name,children:(0,r.jsx)(i.ms,{over:!0,selected:k,disabled:!j,options:S,width:"110px",onSelected:function(e){return t("recolor",{nc:S.indexOf(e),ctype:"prim"})}})}),(0,r.jsx)(i.Wx.Item,{minWidth:"110px",label:b.sec.name,children:(0,r.jsx)(i.ms,{over:!0,selected:_,disabled:!j,options:O,width:"110px",onSelected:function(e){return t("recolor",{nc:O.indexOf(e),ctype:"sec"})}})}),(0,r.jsx)(i.Wx.Item,{minWidth:"110px",label:b.ter.name,children:(0,r.jsx)(i.ms,{over:!0,selected:C,disabled:!j,options:A,width:"110px",onSelected:function(e){return t("recolor",{nc:A.indexOf(e),ctype:"ter"})}})}),(0,r.jsx)(i.Wx.Item,{minWidth:"110px",label:b.quart.name,children:(0,r.jsx)(i.ms,{over:!0,selected:I,disabled:!j,options:P,width:"110px",onSelected:function(e){return t("recolor",{nc:P.indexOf(e),ctype:"quart"})}})})]})})),(0,r.jsx)(c.p8,{width:600,height:j?300:230,children:(0,r.jsxs)(c.p8.Content,{children:[(0,r.jsx)(i.wn,{title:g,buttons:(0,r.jsx)(i.$n,{icon:"pencil-alt",content:"Relabel",disabled:!j,onClick:function(){return t("relabel")}}),children:(0,r.jsxs)(i.Wx,{children:[(0,r.jsx)(i.Wx.Item,{minWidth:"66px",label:"Pressure",children:(0,r.jsx)(i.zv,{value:d,format:function(e){return e<1e4?(0,l.Mg)(e)+" kPa":(0,o.QL)(1e3*e,1,"Pa")}})}),(0,r.jsx)(i.Wx.Item,{label:"Regulator",children:(0,r.jsxs)(i.az,{position:"relative",left:"-8px",children:[(0,r.jsx)(i.N6,{size:1.25,color:!!x&&"yellow",value:f,unit:"kPa",minValue:m,maxValue:p,step:5,stepPixelSize:1,tickWhileDragging:!0,onChange:function(e,n){return t("pressure",{pressure:n})}}),(0,r.jsx)(i.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",tooltip:"Max Release Pressure",onClick:function(){return t("pressure",{pressure:p})}}),(0,r.jsx)(i.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",tooltip:"Reset Release Pressure",onClick:function(){return t("pressure",{pressure:h})}})]})}),(0,r.jsx)(i.Wx.Item,{label:"Valve",children:(0,r.jsx)(i.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:x?v?"caution":"danger":null,content:x?"Open":"Closed",onClick:function(){return t("valve")}})}),(0,r.jsx)(i.Wx.Item,{mr:1,label:"Port",children:(0,r.jsx)(i.m_,{content:u?"Connected":"Disconnected",position:"top",children:(0,r.jsx)(i.az,{position:"relative",children:(0,r.jsx)(i.In,{size:1.25,name:u?"plug":"times",color:u?"good":"bad"})})})})]})}),(0,r.jsxs)(i.wn,{title:"Holding Tank",buttons:!!v&&(0,r.jsx)(i.$n,{icon:"eject",content:"Eject",onClick:function(){return t("eject")}}),children:[!!v&&(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Label",children:w.name}),(0,r.jsxs)(i.Ki.Item,{label:"Pressure",children:[(0,r.jsx)(i.zv,{value:w.tankPressure})," kPa"]})]}),!v&&(0,r.jsx)(i.az,{color:"average",children:"No Holding Tank"})]}),E]})})}},1487:function(e,n,t){"use strict";t.r(n),t.d(n,{AuthBlock:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)().act,t=e.scanned_card,l=e.modifying_card;return(0,r.jsx)(i.wn,{title:"Authentication",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Login/Logout",children:t?(0,r.jsx)(i.$n,{icon:"sign-out-alt",selected:!0,onClick:function(){return n("interact_scanned")},children:"Log Out: ".concat(t.name)}):(0,r.jsx)(i.$n,{icon:"id-card",onClick:function(){return n("interact_scanned")},children:"-----"})}),(0,r.jsx)(i.Ki.Item,{label:"Card To Modify",children:l?(0,r.jsx)(i.$n,{icon:"eject",selected:!0,onClick:function(){return n("interact_modify")},children:"Remove Card: ".concat(l.name)}):(0,r.jsx)(i.$n,{icon:"id-card",onClick:function(){return n("interact_modify")},children:"-----"})})]})})}},7542:function(e,n,t){"use strict";t.r(n),t.d(n,{CardInformation:()=>l,CardSkins:()=>a,DropdownCardSkins:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)().act,t=e.card;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ki.Item,{label:"Registered Name",children:(0,r.jsx)(i.$n,{icon:t&&"Unknown"!==t.registered_name?"pencil-alt":"exclamation-triangle",selected:!!t,onClick:function(){return n("reg")},children:null==t?void 0:t.registered_name})}),(0,r.jsx)(i.Ki.Item,{label:"Account Number",children:(0,r.jsx)(i.$n,{icon:(null==t?void 0:t.associated_account_number)?"pencil-alt":"exclamation-triangle",selected:!!(null==t?void 0:t.associated_account_number),onClick:function(){return n("set_card_account_number")},children:(null==t?void 0:t.associated_account_number)?null==t?void 0:t.associated_account_number:"None"})})]})},a=function(e){var n=(0,o.Oc)().act,t=e.card_skins,l=e.card,a=e.is_centcom,c=e.all_centcom_skins;return(0,r.jsxs)(i.wn,{title:"Card Skins",children:[t.map(function(e){return(0,r.jsx)(i.c_,{selected:(null==l?void 0:l.current_skin)===e.skin,tooltip:e.display_name,dmIcon:e.icon,dmIconState:e.skin,onClick:function(){return n("set_card_skin",{skin_target:e.skin})}},e.skin)}),!!a&&(0,r.jsx)(i.az,{children:Array.isArray(c)&&c.map(function(e){return(0,r.jsx)(i.c_,{selected:(null==l?void 0:l.current_skin)===e.skin,tooltip:e.display_name,dmIcon:e.icon,dmIconState:e.skin,color:"purple",onClick:function(){return n("set_card_skin",{skin_target:e.skin})}},e.skin)})})]})},c=function(e){var n=(0,o.Oc)().act,t=e.card_skins,l=e.card,a=e.is_centcom,c=e.all_centcom_skins,s=t.map(function(e){return{displayText:e.display_name,value:e.skin}}).sort(function(e,n){return e.displayText.localeCompare(n.displayText)}),u=Array.isArray(c)?c.map(function(e){return{displayText:e.display_name,value:e.skin}}).sort(function(e,n){return e.displayText.localeCompare(n.displayText)}):[],d=s.filter(function(e){return e.value===(null==l?void 0:l.current_skin)}).length>0;return(0,r.jsxs)(i.wn,{title:"Card Skins",children:[(0,r.jsx)(i.Ki.Item,{label:"Department Skins",children:(0,r.jsx)(i.ms,{options:s,selected:d?null==l?void 0:l.current_skin_name:null,onSelected:function(e){return n("set_card_skin",{skin_target:e})}})}),!!a&&(0,r.jsx)(i.Ki.Item,{label:"Centcom Skins",children:(0,r.jsx)(i.ms,{options:u,selected:d?null:null==l?void 0:l.current_skin_name,onSelected:function(e){return n("set_card_skin",{skin_target:e})}})})]})}},991:function(e,n,t){"use strict";t.r(n),t.d(n,{CardComputer:()=>x,SlashedIcon:()=>f});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(2723),c=t(1487),s=t(4287),u=t(6530),d=t(9490),f=function(e){var n=e.title,t=e.name,o=e.text;return(0,r.jsx)(i.wn,{fill:!0,title:n,children:(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,r.jsxs)(i.In.Stack,{children:[(0,r.jsx)(i.In,{name:t,size:5,color:"gray"}),(0,r.jsx)(i.In,{name:"slash",size:5,color:"red"})]}),(0,r.jsx)("br",{}),o]})})})},h=function(){return(0,r.jsx)(f,{title:"Warning",name:"user",text:"Not logged in"})},m=function(){return(0,r.jsx)(f,{title:"Records",name:"scroll",text:"No records"})},p=function(){return(0,r.jsx)(f,{title:"Card Missing",name:"id-card",text:"No card to modify"})},x=function(){var e,n=(0,o.Oc)(),t=n.act,f=n.data,x=f.all_centcom_skins,g=f.auth_or_ghost,j=f.authenticated,b=f.can_terminate,y=f.card_skins,v=f.cooldown_time,w=f.is_centcom,k=f.job_slots,_=f.job_formats,C=f.jobs_dept,I=f.jobs,S=f.mode,O=f.modifying_card,A=f.people_dept,P=f.priority_jobs,B=f.records,E=f.regions,z=f.scanned_card,T=f.selectedAccess,N=f.target_dept,R=(0,r.jsxs)(i.tU,{children:[(0,r.jsx)(i.tU.Tab,{icon:"id-card",selected:0===S,onClick:function(){return t("mode",{mode:0})},children:"Job Transfers"}),!N&&(0,r.jsx)(i.tU.Tab,{icon:"id-card",selected:2===S,onClick:function(){return t("mode",{mode:2})},children:"Access Modification"}),(0,r.jsx)(i.tU.Tab,{icon:"folder-open",selected:1===S,onClick:function(){return t("mode",{mode:1})},children:"Job Management"}),(0,r.jsx)(i.tU.Tab,{icon:"scroll",selected:3===S,onClick:function(){return t("mode",{mode:3})},children:"Records"}),(0,r.jsx)(i.tU.Tab,{icon:"users",selected:4===S,onClick:function(){return t("mode",{mode:4})},children:"Department"})]});switch(S){case 0:e=j&&z?O?(0,r.jsx)(u.CardComputerJobTransfer,{target_dept:N,card:O,can_terminate:b,is_centcom:w,jobs:I,job_colors:_,jobs_dept:C,card_skins:y,all_centcom_skins:x}):(0,r.jsx)(p,{}):(0,r.jsx)(h,{});break;case 1:e=g?(0,r.jsx)(s.CardComputerJobPriority,{cooldown_time:v,target_dept:N,priority_jobs:P,job_slots:k}):(0,r.jsx)(h,{});break;case 2:e=j&&z?O?(0,r.jsx)(a.AccessList,{accesses:E,selectedList:T,accessMod:function(e){return t("set",{access:e})},grantAll:function(){return t("grant_all")},denyAll:function(){return t("clear_all")},grantDep:function(e){return t("grant_region",{region:e})},denyDep:function(e){return t("deny_region",{region:e})}}):(0,r.jsx)(p,{}):(0,r.jsx)(h,{});break;case 3:e=j?B.length?(0,r.jsx)(d.CardComputerRecordsLog,{authenticated:j,records:B,target_dept:N,is_centcom:w}):(0,r.jsx)(m,{}):(0,r.jsx)(h,{});break;case 4:e=j&&z?(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Your Team",children:(0,r.jsxs)(i.XI,{children:[(0,r.jsxs)(i.XI.Row,{height:2,children:[(0,r.jsx)(i.XI.Cell,{bold:!0,children:"Name"}),(0,r.jsx)(i.XI.Cell,{bold:!0,children:"Rank"}),(0,r.jsx)(i.XI.Cell,{bold:!0,children:"Sec Status"}),(0,r.jsx)(i.XI.Cell,{bold:!0,children:"Actions"})]}),A.map(function(e){return(0,r.jsxs)(i.XI.Row,{height:2,children:[(0,r.jsx)(i.XI.Cell,{children:e.name}),(0,r.jsx)(i.XI.Cell,{children:e.title}),(0,r.jsx)(i.XI.Cell,{children:e.crimstat}),(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.$n,{disabled:!e.demotable,onClick:function(){return t("remote_demote",{remote_demote:e.name})},children:e.buttontext})})]},e.title)})]})}):(0,r.jsx)(h,{});break;default:e=(0,r.jsx)(i.wn,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,r.jsx)(l.p8,{width:760,height:800,children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(c.AuthBlock,{scanned_card:z,modifying_card:O})}),(0,r.jsx)(i.BJ.Item,{children:R}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:e})]})})})}},4287:function(e,n,t){"use strict";t.r(n),t.d(n,{CardComputerJobPriority:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)().act,t=e.cooldown_time,l=e.job_slots,a=e.target_dept,c=e.priority_jobs;return(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsxs)(i.wn,{color:t?"red":"",children:["Next Change Available:",t||"Now"]}),(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Job Slots",children:(0,r.jsxs)(i.XI,{children:[(0,r.jsxs)(i.XI.Row,{height:2,children:[(0,r.jsx)(i.XI.Cell,{bold:!0,textAlign:"center",children:"Title"}),(0,r.jsx)(i.XI.Cell,{bold:!0,textAlign:"center",children:"Used Slots"}),(0,r.jsx)(i.XI.Cell,{bold:!0,textAlign:"center",children:"Total Slots"}),(0,r.jsx)(i.XI.Cell,{bold:!0,textAlign:"center",children:"Free Slots"}),(0,r.jsx)(i.XI.Cell,{bold:!0,textAlign:"center",children:"Close Slot"}),(0,r.jsx)(i.XI.Cell,{bold:!0,textAlign:"center",children:"Open Slot"}),(0,r.jsx)(i.XI.Cell,{bold:!0,textAlign:"center",children:"Priority"})]}),l&&l.map(function(e){return(0,r.jsxs)(i.XI.Row,{height:2,className:"candystripe",children:[(0,r.jsx)(i.XI.Cell,{textAlign:"center",children:(0,r.jsx)(i.az,{color:e.is_priority?"green":"",children:e.title})}),(0,r.jsx)(i.XI.Cell,{textAlign:"center",children:e.current_positions}),(0,r.jsx)(i.XI.Cell,{textAlign:"center",children:e.total_positions}),(0,r.jsx)(i.XI.Cell,{textAlign:"center",children:e.total_positions>e.current_positions&&(0,r.jsx)(i.az,{color:"green",children:e.total_positions-e.current_positions})||(0,r.jsx)(i.az,{color:"red",children:"0"})}),(0,r.jsx)(i.XI.Cell,{textAlign:"center",children:(0,r.jsx)(i.$n,{disabled:!!t||!e.can_close,onClick:function(){return n("make_job_unavailable",{job:e.title})},children:"-"})}),(0,r.jsx)(i.XI.Cell,{textAlign:"center",children:(0,r.jsx)(i.$n,{disabled:!!t||!e.can_open,onClick:function(){return n("make_job_available",{job:e.title})},children:"+"})}),(0,r.jsx)(i.XI.Cell,{textAlign:"center",children:a&&(0,r.jsx)(i.az,{color:"green",children:c.indexOf(e.title)>-1?"Yes":""})||(0,r.jsx)(i.$n,{selected:e.is_priority,disabled:!!t||!e.can_prioritize,onClick:function(){return n("prioritize_job",{job:e.title})},children:e.is_priority?"Yes":"No"})})]},e.title)})]})})]})}},6530:function(e,n,t){"use strict";t.r(n),t.d(n,{CardComputerJobTransfer:()=>u});var r=t(8138),i=t(7790),o=t(2864),l=t(421),a=t(7542),c=l.lm.department,s=function(e){var n=(0,o.Oc)().act,t=e.job_colors,l=e.dept_name,a=e.job_names,c=e.dept_color,s=e.default_job_color,u=void 0===s?"":s,d=e.card;return(0,r.jsx)(i.Ki.Item,{label:l,labelColor:c,children:a.map(function(e){return(0,r.jsx)(i.$n,{selected:(null==d?void 0:d.rank)===e,color:t[e]?t[e]:u,onClick:function(){return n("assign",{assign_target:e})},children:e},e)})})},u=function(e){var n=(0,o.Oc)().act,t=e.card_skins,l=e.target_dept,u=e.card,d=e.can_terminate,f=e.is_centcom,h=e.jobs,m=e.jobs_dept,p=e.job_colors,x=e.all_centcom_skins,g=h&&[{name:"Special",jobs:h.top},{name:"Engineering",color:c.engineering,jobs:h.engineering},{name:"Medical",color:c.medical,jobs:h.medical},{name:"Science",color:c.science,jobs:h.science},{name:"Security",color:c.security,jobs:h.security},{name:"Service",color:c.service,jobs:h.service},{name:"Supply",color:c.supply,jobs:h.supply},{name:"Retirement",jobs:h.assistant}];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.wn,{title:"Card Information",children:[!l&&(0,r.jsx)(a.CardInformation,{card:u}),(0,r.jsx)(i.Ki.Item,{label:"Latest Transfer",children:(null==u?void 0:u.lastlog)||"---"})]}),(0,r.jsx)(i.wn,{title:l?"Department Job Transfer":"Job Transfer",children:(0,r.jsxs)(i.Ki,{children:[l?(0,r.jsx)(s,{dept_name:"Department",job_colors:p,job_names:void 0===m?[]:m,card:u}):(0,r.jsx)(r.Fragment,{children:g.map(function(e){return(0,r.jsx)(s,{dept_name:e.name,dept_color:e.color,job_names:e.jobs,job_colors:p,card:u})})}),!!f&&(0,r.jsx)(s,{dept_name:"Centcom",dept_color:c.centcom,job_colors:p,job_names:h.centcom,default_job_color:"purple",card:u}),(0,r.jsx)(i.Ki.Item,{label:"Demotion",children:(0,r.jsx)(i.$n,{disabled:(null==u?void 0:u.assignment)==="Demoted"||(null==u?void 0:u.assignment)==="Terminated",tooltip:"Assistant access, 'demoted' title.",color:"red",icon:"times",onClick:function(){return n("demote")},children:"Demoted"},"Demoted")}),!!d&&(0,r.jsx)(i.Ki.Item,{label:"Non-Crew",children:(0,r.jsx)(i.$n,{disabled:(null==u?void 0:u.assignment)==="Terminated",tooltip:"Zero access. Not crew.",color:"red",icon:"eraser",onClick:function(){return n("terminate")},children:"Terminated"},"Terminate")})]})}),!l&&(0,r.jsx)(a.CardSkins,{card:u,card_skins:t,is_centcom:f,all_centcom_skins:x})]})}},9490:function(e,n,t){"use strict";t.r(n),t.d(n,{CardComputerRecordsLog:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)().act,t=e.authenticated,l=e.records,a=e.target_dept,c=e.is_centcom;return(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,title:"Records",buttons:(0,r.jsx)(i.$n,{icon:"times",disabled:!t||0===l.length||a,onClick:function(){return n("wipe_all_logs")},children:"Delete All Records"}),children:[(0,r.jsxs)(i.XI,{children:[(0,r.jsxs)(i.XI.Row,{height:2,children:[(0,r.jsx)(i.XI.Cell,{bold:!0,children:"Crewman"}),(0,r.jsx)(i.XI.Cell,{bold:!0,children:"Old Rank"}),(0,r.jsx)(i.XI.Cell,{bold:!0,children:"New Rank"}),(0,r.jsx)(i.XI.Cell,{bold:!0,children:"Authorized By"}),(0,r.jsx)(i.XI.Cell,{bold:!0,children:"Time"}),(0,r.jsx)(i.XI.Cell,{bold:!0,children:"Reason"}),!!c&&(0,r.jsx)(i.XI.Cell,{bold:!0,children:"Deleted By"})]}),l.map(function(e){return(0,r.jsxs)(i.XI.Row,{height:2,children:[(0,r.jsx)(i.XI.Cell,{children:e.transferee}),(0,r.jsx)(i.XI.Cell,{children:e.oldvalue}),(0,r.jsx)(i.XI.Cell,{children:e.newvalue}),(0,r.jsx)(i.XI.Cell,{children:e.whodidit}),(0,r.jsx)(i.XI.Cell,{children:e.timestamp}),(0,r.jsx)(i.XI.Cell,{children:e.reason}),!!c&&(0,r.jsx)(i.XI.Cell,{children:e.deletedby})]},e.timestamp)})]}),!!c&&(0,r.jsx)(i.az,{children:(0,r.jsx)(i.$n,{icon:"pencil-alt",color:"purple",disabled:!t||0===l.length,onClick:function(){return n("wipe_my_logs")},children:"Delete MY Records"})})]})}},1488:function(e,n,t){"use strict";t.r(n)},6466:function(e,n,t){"use strict";t.r(n),t.d(n,{CargoConsole:()=>f});var r=t(8138),i=t(8587),o=t(4530),l=t(7790),a=t(3268),c=t(2864),s=t(3384);function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var f=function(e){var n=d((0,o.useState)(null),2),t=n[0],i=n[1],a=d((0,o.useState)(null),2),c=a[0],u=a[1],f=d((0,o.useState)("selectedAccount"),2),g=f[0],b=f[1];return(0,r.jsx)(s.p8,{width:900,height:800,children:(0,r.jsx)(s.p8.Content,{children:(0,r.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(h,{contentsModal:t,setContentsModal:i,contentsModalTitle:c,setContentsModalTitle:u}),(0,r.jsx)(m,{}),(0,r.jsx)(p,{selectedAccount:g,setSelectedAccount:b}),(0,r.jsx)(x,{contentsModal:t,setContentsModal:i,contentsModalTitle:c,setContentsModalTitle:u,selectedAccount:g,setSelectedAccount:b}),(0,r.jsx)(j,{})]})})})},h=function(e){var n=e.contentsModal,t=e.setContentsModal,i=e.contentsModalTitle,o=e.setContentsModalTitle;return null!==n&&null!==i?(0,r.jsxs)(l.aF,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:.75*window.innerHeight+"px",mx:"auto",children:[(0,r.jsx)(l.az,{width:"100%",bold:!0,children:(0,r.jsxs)("h1",{children:[i," contents:"]})}),(0,r.jsx)(l.az,{children:n.map(function(e){return(0,r.jsxs)(l.az,{children:["- ",e]},e)})}),(0,r.jsx)(l.az,{m:2,children:(0,r.jsx)(l.$n,{content:"Close",onClick:function(){t(null),o(null)}})})]}):void 0},m=function(e){var n,t,i=(0,c.Oc)(),o=i.act,a=i.data,s=a.is_public,u=a.timeleft,d=a.moving,f=a.at_station;return d||f?!d&&f?(n="Docked at the station",t="Return Shuttle"):d&&(t="In Transit...",n=1!==u?"Shuttle is en route (ETA: "+u+" minutes)":"Shuttle is en route (ETA: "+u+" minute)"):(n="Docked off-station",t="Call Shuttle"),(0,r.jsx)(l.BJ.Item,{children:(0,r.jsx)(l.wn,{title:"Status",children:(0,r.jsxs)(l.Ki,{children:[(0,r.jsx)(l.Ki.Item,{label:"Shuttle Status",children:n}),0===s&&(0,r.jsxs)(l.Ki.Item,{label:"Controls",children:[(0,r.jsx)(l.$n,{content:t,disabled:d,onClick:function(){return o("moveShuttle")}}),(0,r.jsx)(l.$n,{content:"View Central Command Messages",onClick:function(){return o("showMessages")}})]})]})})})},p=function(e){var n,t=(0,c.Oc)(),i=(t.act,t.data).accounts,o=e.selectedAccount,a=e.setSelectedAccount,s=[];return i.map(function(e){return s[e.name]=e.account_UID}),(0,r.jsx)(l.BJ.Item,{children:(0,r.jsxs)(l.wn,{title:"Payment",children:[(0,r.jsx)(l.ms,{width:"190px",options:i.map(function(e){return e.name}),selected:null==(n=i.filter(function(e){return e.account_UID===o})[0])?void 0:n.name,onSelected:function(e){return a(s[e])}}),i.filter(function(e){return e.account_UID===o}).map(function(e){return(0,r.jsxs)(l.Ki,{children:[(0,r.jsx)(l.Ki.Item,{label:"Account Name",children:(0,r.jsx)(l.BJ.Item,{mt:1,children:e.name})}),(0,r.jsx)(l.Ki.Item,{label:"Balance",children:(0,r.jsx)(l.BJ.Item,{children:e.balance})})]},e.account_UID)})]})})},x=function(e){var n,t=(0,c.Oc)(),o=t.act,s=t.data;s.requests;var u=s.categories,f=s.supply_packs,h=d((0,c.QY)("category","Emergency"),2),m=h[0],p=h[1],x=d((0,c.QY)("searchText",""),2),g=x[0],j=x[1];e.contentsModal;var b=e.setContentsModal;e.contentsModalTitle;var y=e.setContentsModalTitle,v=e.selectedAccount;e.setSelectedAccount;var w=(n=f,n=g?(0,i.pb)(n,(0,a.XZ)(g,function(e){return e.name})):(0,i.pb)(n,function(e){return e.cat===u.filter(function(e){return e.name===m})[0].category}),(0,i.Ul)(n,function(e){return e.name.toLowerCase()})),k="Crate Catalogue";return g?k="Results for '"+g+"':":m&&(k="Browsing "+m),(0,r.jsx)(l.BJ.Item,{children:(0,r.jsxs)(l.wn,{title:k,buttons:(0,r.jsx)(l.ms,{width:"190px",options:u.map(function(e){return e.name}),selected:m,onSelected:function(e){return p(e)}}),children:[(0,r.jsx)(l.pd,{fluid:!0,placeholder:"Search for...",onChange:function(e){return j(e)},mb:1}),(0,r.jsx)(l.az,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,r.jsx)(l.XI,{m:"0.5rem",children:w.map(function(e){return(0,r.jsxs)(l.XI.Row,{children:[(0,r.jsxs)(l.XI.Cell,{bold:!0,children:[e.name," (",e.cost," Credits)"]}),(0,r.jsxs)(l.XI.Cell,{textAlign:"right",pr:1,children:[(0,r.jsx)(l.$n,{content:"Order 1",icon:"shopping-cart",disabled:!v,onClick:function(){return o("order",{crate:e.ref,multiple:!1,account:v})}}),(0,r.jsx)(l.$n,{content:"Order Multiple",icon:"cart-plus",disabled:!v||e.singleton,onClick:function(){return o("order",{crate:e.ref,multiple:!0,account:v})}}),(0,r.jsx)(l.$n,{content:"View Contents",icon:"search",onClick:function(){b(e.contents),y(e.name)}})]})]},e.name)})})})]})})},g=function(e){var n,t,i=e.request;switch(i.department){case"Engineering":t="CE",n="orange";break;case"Medical":t="CMO",n="teal";break;case"Science":t="RD",n="purple";break;case"Supply":t="CT",n="brown";break;case"Service":t="HOP",n="olive";break;case"Security":t="HOS",n="red";break;case"Command":t="CAP",n="blue";break;case"Assistant":t="Any Head",n="grey"}return(0,r.jsxs)(l.BJ,{fill:!0,children:[(0,r.jsx)(l.BJ.Item,{mt:.5,children:"Approval Required:"}),!!i.req_cargo_approval&&(0,r.jsx)(l.BJ.Item,{children:(0,r.jsx)(l.$n,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!i.req_head_approval&&(0,r.jsx)(l.BJ.Item,{children:(0,r.jsx)(l.$n,{color:n,content:t,disabled:i.req_cargo_approval,icon:"user-tie",tooltip:i.req_cargo_approval?"This Order first requires approval from the QM before the ".concat(t," can approve it"):"This Order requires approval from the ".concat(t," still")})})]})},j=function(e){var n=(0,c.Oc)(),t=n.act,i=n.data,o=i.requests,a=i.orders,s=i.shipments;return(0,r.jsxs)(l.wn,{fill:!0,scrollable:!0,title:"Orders",children:[(0,r.jsx)(l.az,{bold:!0,children:"Requests"}),(0,r.jsx)(l.XI,{children:o.map(function(e){return(0,r.jsxs)(l.XI.Row,{className:"Cargo_RequestList",children:[(0,r.jsxs)(l.XI.Cell,{mb:1,children:[(0,r.jsxs)(l.az,{children:["Order #",e.ordernum,": ",e.supply_type," (",e.cost," credits) for ",(0,r.jsx)("b",{children:e.orderedby})," with"," ",e.department?"The ".concat(e.department," Department"):"Their Personal"," Account"]}),(0,r.jsxs)(l.az,{italic:!0,children:["Reason: ",e.comment]}),(0,r.jsx)(g,{request:e})]}),(0,r.jsxs)(l.BJ.Item,{textAlign:"right",children:[(0,r.jsx)(l.$n,{content:"Approve",color:"green",disabled:!e.can_approve,onClick:function(){return t("approve",{ordernum:e.ordernum})}}),(0,r.jsx)(l.$n,{content:"Deny",color:"red",disabled:!e.can_deny,onClick:function(){return t("deny",{ordernum:e.ordernum})}})]})]},e.ordernum)})}),(0,r.jsx)(l.az,{bold:!0,children:"Orders Awaiting Delivery"}),(0,r.jsx)(l.XI,{m:"0.5rem",children:a.map(function(e){return(0,r.jsx)(l.XI.Row,{children:(0,r.jsxs)(l.XI.Cell,{children:[(0,r.jsxs)(l.az,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,r.jsx)("b",{children:e.orderedby})]}),(0,r.jsxs)(l.az,{italic:!0,children:["Reason: ",e.comment]})]})},e.ordernum)})}),(0,r.jsx)(l.az,{bold:!0,children:"Order in Transit"}),(0,r.jsx)(l.XI,{m:"0.5rem",children:s.map(function(e){return(0,r.jsx)(l.XI.Row,{children:(0,r.jsxs)(l.XI.Cell,{children:[(0,r.jsxs)(l.az,{children:["- #",e.ordernum,": ",e.supply_type," for ",(0,r.jsx)("b",{children:e.orderedby})]}),(0,r.jsxs)(l.az,{italic:!0,children:["Reason: ",e.comment]})]})},e.ordernum)})})]})}},6205:function(e,n,t){"use strict";t.r(n),t.d(n,{Chameleon:()=>u,ChameleonAppearances:()=>f});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var u=function(e){return(0,r.jsx)(c.p8,{width:440,height:500,theme:"syndicate",children:(0,r.jsx)(c.p8.Content,{children:(0,r.jsx)(f,{})})})},d=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(0,l.XZ)(n,function(e){return e.name});return e.filter(t)},f=function(e){var n,t=(0,a.Oc)(),l=t.act,c=t.data,u=(n=(0,i.useState)(""),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return s(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=u[0],h=u[1],m=d(c.chameleon_skins,f),p=c.selected_appearance;return(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.pd,{fluid:!0,placeholder:"Search for an appearance",onChange:function(e){return h(e)}})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"Item Appearance",children:m.map(function(e){var n=e.name+"_"+e.icon_state;return(0,r.jsx)(o.c_,{dmIcon:e.icon,dmIconState:e.icon_state,imageSize:64,m:.5,selected:n===p,tooltip:e.name,style:{opacity:n===p&&"1"||"0.5"},onClick:function(){l("change_appearance",{new_appearance:n})}},n)})})})]})}},9072:function(e,n,t){"use strict";t.r(n),t.d(n,{ChangelogView:()=>s});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var s=function(e){var n,t=(0,l.Oc)(),s=t.act,u=t.data,d=(n=(0,i.useState)(0),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return c(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=d[0],h=d[1],m=u.cl_data,p=u.last_cl,x={FIX:(0,r.jsx)(o.In,{name:"tools",title:"Fix"}),WIP:(0,r.jsx)(o.In,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,r.jsx)(o.In,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,r.jsx)(o.In,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,r.jsx)(o.In,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,r.jsx)(o.In,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,r.jsx)(o.In,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,r.jsx)(o.In,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,r.jsx)(o.In,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,r.jsx)(o.In,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,r.jsx)(o.In,{name:"exclamation-triangle",title:"Experimental",color:"orange"})};return(0,r.jsx)(a.p8,{width:750,height:800,children:(0,r.jsx)(a.p8.Content,{scrollable:!0,children:(0,r.jsx)(o.wn,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,r.jsx)(o.$n,{content:f?"Showing all changes":"Showing changes since last connection",onClick:function(){return h(!f)}}),children:m.map(function(e){return!f&&e.merge_ts<=p||(0,r.jsx)(o.wn,{mb:2,title:e.author+" - Merged on "+e.merge_date,buttons:(0,r.jsx)(o.$n,{content:"#"+e.num,onClick:function(){return s("open_pr",{pr_number:e.num})}}),children:e.entries.map(function(e){var n;return(0,r.jsxs)(o.az,{m:1,children:[(n=e.etype)in x?x[n]:(0,r.jsx)(o.In,{name:"plus",color:"green"})," ",e.etext]},e)})},e)})})})})}},6707:function(e,n,t){"use strict";t.r(n),t.d(n,{CheckboxListInputModal:()=>f});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384),c=t(1942),s=t(9472);function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function d(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,n)}}var f=function(e){var n,t=(0,l.Oc)(),f=(t.act,t.data),m=f.items,p=f.message,x=void 0===p?"":p,g=(f.init_value,f.timeout),j=f.title,b=(n=(0,i.useState)(void 0===m?[]:m),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||d(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=b[0],v=b[1],w=330+Math.ceil(x.length/3);return(0,r.jsxs)(a.p8,{title:j,width:325,height:w,children:[g&&(0,r.jsx)(s.Loader,{value:g}),(0,r.jsx)(a.p8.Content,{children:(0,r.jsx)(o.wn,{className:"ListInput__Section",fill:!0,title:x,children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(h,{filteredItems:y,onClick:function(e){var n=function(e){if(Array.isArray(e))return u(e)}(y)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(y)||d(y)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();v(n=n.map(function(n){var t,r;return n.key===e.key?(t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({},n),r=r={checked:!e.checked},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t):n}))}})}),(0,r.jsx)(o.BJ.Item,{mt:.5,children:(0,r.jsx)(c.InputButtons,{input:y})})]})})})]})},h=function(e){var n=e.filteredItems,t=e.onClick;return(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,children:n.map(function(e,n){return(0,r.jsx)(o.$n.Checkbox,{fluid:!0,id:n,onClick:function(){return t(e)},checked:e.checked,style:{animation:"none",transition:"none"},children:e.key.replace(/^\w/,function(e){return e.toUpperCase()})},n)})})}},8573:function(e,n,t){"use strict";t.r(n),t.d(n,{ChemDispenser:()=>u});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(3013),c=[1,5,10,20,30,50,75],s=[1,5,10],u=function(e){var n=(0,o.Oc)(),t=(n.act,n.data).chemicals;return(0,r.jsx)(l.p8,{width:420,height:400+24*Math.ceil(t.length/3),children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(d,{}),(0,r.jsx)(f,{}),(0,r.jsx)(h,{})]})})})},d=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.amount,s=l.energy,u=l.maxEnergy;return(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Settings",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Energy",children:(0,r.jsxs)(i.z2,{value:s,minValue:0,maxValue:u,ranges:{good:[.5*u,1/0],average:[.25*u,.5*u],bad:[-1/0,.25*u]},children:[s," / ",u," Units"]})}),(0,r.jsx)(i.Ki.Item,{label:"Dispense",verticalAlign:"middle",children:(0,r.jsx)(i.BJ,{children:c.map(function(e,n){return(0,r.jsx)(i.BJ.Item,{grow:!0,width:"15%",children:(0,r.jsx)(i.$n,{fluid:!0,icon:"cog",selected:a===e,content:e,onClick:function(){return t("amount",{amount:e})}})},n)})})})]})})})},f=function(e){for(var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.chemicals,c=void 0===a?[]:a,s=[],u=0;u<(c.length+1)%3;u++)s.push(!0);return(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,title:l.glass?"Drink Dispenser":"Chemical Dispenser",children:[c.map(function(e,n){return(0,r.jsx)(i.$n,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",content:e.title,style:{marginLeft:"2px",textOverflow:"ellipsis"},onClick:function(){return t("dispense",{reagent:e.id})}},n)}),s.map(function(e,n){return(0,r.jsx)(i.BJ.Item,{grow:!0,basis:"25%"},n)})]})})},h=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,c=l.isBeakerLoaded,u=l.beakerCurrentVolume,d=l.beakerMaxVolume,f=l.beakerContents;return(0,r.jsx)(i.BJ.Item,{height:16,children:(0,r.jsx)(i.wn,{title:l.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,r.jsxs)(i.az,{children:[!!c&&(0,r.jsxs)(i.az,{inline:!0,color:"label",mr:2,children:[u," / ",d," units"]}),(0,r.jsx)(i.$n,{icon:"eject",content:"Eject",disabled:!c,onClick:function(){return t("ejectBeaker")}})]}),children:(0,r.jsx)(a.BeakerContents,{beakerLoaded:c,beakerContents:void 0===f?[]:f,buttons:function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return t("remove",{reagent:e.id,amount:-1})}}),s.map(function(n,o){return(0,r.jsx)(i.$n,{content:n,onClick:function(){return t("remove",{reagent:e.id,amount:n})}},o)}),(0,r.jsx)(i.$n,{content:"ALL",onClick:function(){return t("remove",{reagent:e.id,amount:e.volume})}})]})}})})})}},6277:function(e,n,t){"use strict";t.r(n),t.d(n,{ChemHeater:()=>s});var r=t(8138),i=t(7790),o=t(6859),l=t(2864),a=t(3384),c=t(3013),s=function(e){return(0,r.jsx)(a.p8,{width:350,height:275,children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(u,{}),(0,r.jsx)(d,{})]})})})},u=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data,c=a.targetTemp,s=a.targetTempReached,u=a.autoEject,d=a.isActive,f=a.currentTemp,h=a.isBeakerLoaded;return(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{fill:!0,title:"Settings",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{content:"Auto-eject",icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){return t("toggle_autoeject")}}),(0,r.jsx)(i.$n,{content:d?"On":"Off",icon:"power-off",selected:d,disabled:!h,onClick:function(){return t("toggle_on")}})]}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Target",children:(0,r.jsx)(i.Q7,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,o.LI)(c,0),minValue:0,maxValue:1e3,onChange:function(e){return t("adjust_temperature",{target:e})}})}),(0,r.jsx)(i.Ki.Item,{label:"Reading",color:s?"good":"average",children:h&&(0,r.jsx)(i.zv,{value:f,format:function(e){return(0,o.Mg)(e)+" K"}})||"—"})]})})})},d=function(e){var n=(0,l.Oc)(),t=n.act,o=n.data,a=o.isBeakerLoaded,s=o.beakerCurrentVolume,u=o.beakerMaxVolume,d=o.beakerContents;return(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!a&&(0,r.jsxs)(i.az,{children:[(0,r.jsxs)(i.az,{inline:!0,color:"label",mr:2,children:[s," / ",u," units"]}),(0,r.jsx)(i.$n,{icon:"eject",content:"Eject",onClick:function(){return t("eject_beaker")}})]}),children:(0,r.jsx)(c.BeakerContents,{beakerLoaded:a,beakerContents:d})})})}},9306:function(e,n,t){"use strict";t.r(n),t.d(n,{ChemMaster:()=>x});var r=t(8138),i=t(7790),o=t(5490),l=t(3375),a=t(2864),c=t(3384),s=t(3013),u=t(4744);function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function h(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function m(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var p=[1,5,10,25,75],x=function(e){return(0,r.jsxs)(c.p8,{width:575,height:650,children:[(0,r.jsx)(u.ComplexModal,{}),(0,r.jsx)(c.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(g,{}),(0,r.jsx)(j,{}),(0,r.jsx)(b,{}),(0,r.jsx)(C,{})]})})]})},g=function(e){var n=(0,a.Oc)(),t=n.act,o=n.data,l=o.beaker,c=o.beaker_reagents;return o.buffer_reagents.length,(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{title:"Beaker",fill:!0,scrollable:!0,buttons:(0,r.jsx)(i.$n,{icon:"eject",disabled:!l,content:"Eject",onClick:function(){return t("eject")}}),children:l?(0,r.jsx)(s.BeakerContents,{beakerLoaded:!0,beakerContents:c,buttons:function(e,n){return(0,r.jsxs)(i.az,{mb:n<c.length-1&&"2px",children:[(0,r.jsx)(i.$n,{content:"Analyze",mb:"0",onClick:function(){return(0,u.modalOpen)("analyze",{idx:n+1,beaker:1})}}),p.map(function(n,o){return(0,r.jsx)(i.$n,{content:n,mb:"0",onClick:function(){return t("add",{id:e.id,amount:n})}},o)}),(0,r.jsx)(i.$n,{content:"All",mb:"0",onClick:function(){return t("add",{id:e.id,amount:e.volume})}}),(0,r.jsx)(i.$n,{content:"Custom..",mb:"0",onClick:function(){return t("addcustom",{id:e.id})}})]},n)}}):(0,r.jsx)(i.az,{color:"label",children:"No beaker loaded."})})})},j=function(e){var n=(0,a.Oc)(),t=n.act,o=n.data,l=o.mode,c=o.buffer_reagents;return(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{title:"Buffer",fill:!0,scrollable:!0,buttons:(0,r.jsxs)(i.az,{color:"label",children:["Transferring to\xa0",(0,r.jsx)(i.$n,{icon:l?"flask":"trash",color:!l&&"bad",content:l?"Beaker":"Disposal",onClick:function(){return t("toggle")}})]}),children:c.length>0?(0,r.jsx)(s.BeakerContents,{beakerLoaded:!0,beakerContents:c,buttons:function(e,n){return(0,r.jsxs)(i.az,{mb:n<c.length-1&&"2px",children:[(0,r.jsx)(i.$n,{content:"Analyze",mb:"0",onClick:function(){return(0,u.modalOpen)("analyze",{idx:n+1,beaker:0})}}),p.map(function(n,o){return(0,r.jsx)(i.$n,{content:n,mb:"0",onClick:function(){return t("remove",{id:e.id,amount:n})}},o)}),(0,r.jsx)(i.$n,{content:"All",mb:"0",onClick:function(){return t("remove",{id:e.id,amount:e.volume})}}),(0,r.jsx)(i.$n,{content:"Custom..",mb:"0",onClick:function(){return t("removecustom",{id:e.id})}})]},n)}}):(0,r.jsx)(i.az,{color:"label",children:"Buffer is empty."})})})},b=function(e){return 0===(0,a.Oc)().data.buffer_reagents.length?(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Production",children:(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,r.jsx)(i.In,{name:"tint-slash",mb:"0.5rem",size:5}),(0,r.jsx)("br",{}),"Buffer is empty."]})})})}):(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{fill:!0,title:"Production",children:(0,r.jsx)(y,{})})})},y=function(e){var n=(0,a.Oc)(),t=n.act,o=n.data,l=o.production_mode,c=o.production_data,s=o.static_production_data;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.tU,{children:Object.entries(s).map(function(e){var n=function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,2)||function(e,n){if(e){if("string"==typeof e)return d(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[0],a=n[1],c=a.name,s=a.icon;return(0,r.jsx)(i.tU.Tab,{icon:s,selected:l===o,onClick:function(){return t("set_production_mode",{production_mode:o})},children:c},c)})}),function(e){var n=s[e],t=c[e];if(void 0!==n&&void 0!==t){var i=h(f({},n,t),{id:e});return(0,r.jsx)(_,{productionData:i})}return"UNKNOWN INTERFACE"}(l)]})};function v(e){var n=e.placeholder,t=e.onMouseUp,o=m(e,["placeholder","onMouseUp"]),c=(0,a.Oc)().data.maxnamelength;return(0,r.jsx)(i.pd,f({maxLength:c,onMouseUp:function(e){var r=e.target;1===e.button&&(r.value=n||"",r.select()),t&&t(e)}},e,(0,l.Fl)(o)))}var w=function(e){var n=(0,a.Oc)(),t=n.act,o=n.data,l=e.children,c=e.productionData,s=o.buffer_reagents,u=c.id,d=c.max_items_amount,f=c.set_name,h=c.set_items_amount,m=c.placeholder_name;return(0,r.jsxs)(i.Ki,{children:[l,(0,r.jsx)(i.Ki.Item,{label:"Quantity",children:(0,r.jsx)(i.Ap,{value:h,minValue:1,maxValue:d,onChange:function(e,n){return t("set_items_amount",{production_mode:u,amount:n})}})}),null!=f&&(0,r.jsx)(i.Ki.Item,{label:"Name",children:(0,r.jsx)(v,{fluid:!0,value:f,placeholder:m,onChange:function(e){return t("set_items_name",{production_mode:u,name:e})}})}),(0,r.jsx)(i.Ki.Item,{children:(0,r.jsx)(i.$n,{fluid:!0,content:"Create",color:"green",disabled:(void 0===s?[]:s).length<=0,onClick:function(){return t("create_items",{production_mode:u})}})})]})},k=function(e){var n=e.icon,t=m(e,["icon"]);return(0,r.jsx)(i.$n,h(f({style:{padding:0,lineHeight:0}},t),{children:(0,r.jsx)(i.az,{className:(0,o.Ly)(["chem_master32x32",n])})}))},_=function(e){var n,t=(0,a.Oc)().act,o=e.productionData,l=o.id,c=o.set_sprite,s=o.sprites;return s&&s.length>0&&(n=s.map(function(e){var n=e.id,i=e.sprite;return(0,r.jsx)(k,{icon:i,selected:c===n,onClick:function(){return t("set_sprite_style",{production_mode:l,style:n})}},n)})),(0,r.jsx)(w,{productionData:e.productionData,children:n&&(0,r.jsx)(i.Ki.Item,{label:"Style",children:n})})},C=function(e){var n=(0,a.Oc)(),t=n.act,o=n.data,l=o.loaded_pill_bottle_style,c=o.containerstyles,s=o.loaded_pill_bottle,u="20px",d="20px",f=c.map(function(e){var n=e.color,o=e.name,a=l===n;return(0,r.jsxs)(i.$n,{style:{position:"relative",width:u,height:d},onClick:function(){return t("set_container_style",{style:n})},icon:a?"check":"",tooltip:o,tooltipPosition:"top",children:[!a&&(0,r.jsx)("div",{style:{display:"inline-block"}}),(0,r.jsx)("span",{className:"Button",style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:u,height:d,backgroundColor:n,opacity:.6,filter:"alpha(opacity=60)"}})]},n)});return(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{fill:!0,title:"Container Customization",buttons:(0,r.jsx)(i.$n,{icon:"eject",disabled:!s,content:"Eject Container",onClick:function(){return t("ejectp")}}),children:s?(0,r.jsx)(i.Ki,{children:(0,r.jsxs)(i.Ki.Item,{label:"Style",children:[(0,r.jsx)(i.$n,{style:{width:u,height:d},icon:"tint-slash",onClick:function(){return t("clear_container_style")},selected:!l,tooltip:"Default",tooltipPosition:"top"}),f]})}):(0,r.jsx)(i.az,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,u.modalRegisterBodyOverride)("analyze",function(e){var n=(0,a.Oc)(),t=n.act,o=n.data,l=e.args.analysis;return(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:o.condi?"Condiment Analysis":"Reagent Analysis",children:(0,r.jsx)(i.az,{mx:"0.5rem",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Name",children:l.name}),(0,r.jsx)(i.Ki.Item,{label:"Description",children:(l.desc||"").length>0?l.desc:"N/A"}),l.blood_type&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ki.Item,{label:"Blood type",children:l.blood_type}),(0,r.jsx)(i.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:l.blood_dna})]}),!o.condi&&(0,r.jsx)(i.$n,{icon:o.printing?"spinner":"print",disabled:o.printing,iconSpin:!!o.printing,ml:"0.5rem",content:"Print",onClick:function(){return t("print",{idx:l.idx,beaker:e.args.beaker})}})]})})})})})},2636:function(e,n,t){"use strict";t.r(n),t.d(n,{CloningConsole:()=>c});var r=t(8138),i=t(7790),o=t(8595),l=t(2864),a=t(3384),c=function(e){var n=(0,l.Oc)(),t=n.act,o=n.data,c=o.tab,u=o.has_scanner,d=o.pod_amount;return(0,r.jsx)(a.p8,{width:640,height:520,children:(0,r.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,r.jsx)(i.wn,{title:"Cloning Console",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Connected scanner",children:u?"Online":"Missing"}),(0,r.jsx)(i.Ki.Item,{label:"Connected pods",children:d})]})}),(0,r.jsxs)(i.tU,{children:[(0,r.jsx)(i.tU.Tab,{selected:1===c,icon:"home",onClick:function(){return t("menu",{tab:1})},children:"Main Menu"}),(0,r.jsx)(i.tU.Tab,{selected:2===c,icon:"user",onClick:function(){return t("menu",{tab:2})},children:"Damage Configuration"})]}),(0,r.jsx)(i.wn,{children:(0,r.jsx)(s,{})})]})})},s=function(e){var n,t=(0,l.Oc)().data.tab;return 1===t?n=(0,r.jsx)(u,{}):2===t&&(n=(0,r.jsx)(d,{})),n},u=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data,c=a.pods,s=a.pod_amount,u=a.selected_pod_UID;return(0,r.jsxs)(i.az,{children:[!s&&(0,r.jsx)(i.az,{color:"average",children:"Notice: No pods connected."}),!!s&&c.map(function(e,n){return(0,r.jsx)(i.wn,{layer:2,title:"Pod "+(n+1),children:(0,r.jsxs)(i.BJ,{textAlign:"center",children:[(0,r.jsxs)(i.BJ.Item,{basis:"96px",shrink:0,children:[(0,r.jsx)("img",{src:(0,o.l)("pod_"+(e.cloning?"cloning":"idle")+".gif"),style:{width:"100%",imageRendering:"pixelated"}}),(0,r.jsx)(i.$n,{selected:u===e.uid,onClick:function(){return t("select_pod",{uid:e.uid})},children:"Select"})]}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Progress",children:[!e.cloning&&(0,r.jsx)(i.az,{color:"average",children:"Pod is inactive."}),!!e.cloning&&(0,r.jsx)(i.z2,{value:e.clone_progress,maxValue:100,color:"good"})]}),(0,r.jsx)(i.Ki.Divider,{}),(0,r.jsx)(i.Ki.Item,{label:"Biomass",children:(0,r.jsxs)(i.z2,{value:e.biomass,ranges:{good:[2*e.biomass_storage_capacity/3,e.biomass_storage_capacity],average:[e.biomass_storage_capacity/3,2*e.biomass_storage_capacity/3],bad:[0,e.biomass_storage_capacity/3]},minValue:0,maxValue:e.biomass_storage_capacity,children:[e.biomass,"/",e.biomass_storage_capacity+" ("+100*e.biomass/e.biomass_storage_capacity+"%)"]})}),(0,r.jsx)(i.Ki.Item,{label:"Sanguine Reagent",children:e.sanguine_reagent}),(0,r.jsx)(i.Ki.Item,{label:"Osseous Reagent",children:e.osseous_reagent})]})})]})},e)})]})},d=function(e){var n=(0,l.Oc)(),t=n.act,o=n.data,a=o.selected_pod_data,c=o.has_scanned,s=o.scanner_has_patient,u=o.feedback,d=o.scan_successful,m=o.cloning_cost,p=o.has_scanner,x=o.currently_scanning;return(0,r.jsxs)(i.az,{children:[!p&&(0,r.jsx)(i.az,{color:"average",children:"Notice: No scanner connected."}),!!p&&(0,r.jsxs)(i.az,{children:[(0,r.jsxs)(i.wn,{layer:2,title:"Scanner Info",buttons:(0,r.jsxs)(i.az,{children:[(0,r.jsx)(i.$n,{icon:"hourglass-half",onClick:function(){return t("scan")},disabled:!s||x,children:"Scan"}),(0,r.jsx)(i.$n,{icon:"eject",onClick:function(){return t("eject")},disabled:!s||x,children:"Eject Patient"})]}),children:[!c&&!x&&(0,r.jsx)(i.az,{color:"average",children:s?"No scan detected for current patient.":"No patient is in the scanner."}),(!!c||!!x)&&(0,r.jsx)(i.az,{color:u.color,children:u.text})]}),(0,r.jsx)(i.wn,{layer:2,title:"Damages Breakdown",children:(0,r.jsxs)(i.az,{children:[(!d||!c)&&(0,r.jsx)(i.az,{color:"average",children:"No valid scan detected."}),!!d&&!!c&&(0,r.jsxs)(i.az,{children:[(0,r.jsxs)(i.BJ,{children:[(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.$n,{onClick:function(){return t("fix_all")},children:"Repair All Damages"}),(0,r.jsx)(i.$n,{onClick:function(){return t("fix_none")},children:"Repair No Damages"})]}),(0,r.jsx)(i.BJ.Item,{grow:1}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{onClick:function(){return t("clone")},children:"Clone"})})]}),(0,r.jsxs)(i.BJ,{height:"25px",children:[(0,r.jsx)(i.BJ.Item,{width:"40%",children:(0,r.jsxs)(i.z2,{value:m[0],maxValue:a.biomass_storage_capacity,ranges:{bad:[2*a.biomass_storage_capacity/3,a.biomass_storage_capacity],average:[a.biomass_storage_capacity/3,2*a.biomass_storage_capacity/3],good:[0,a.biomass_storage_capacity/3]},color:m[0]>a.biomass?"bad":null,children:["Biomass: ",m[0],"/",a.biomass,"/",a.biomass_storage_capacity]})}),(0,r.jsx)(i.BJ.Item,{width:"30%",children:(0,r.jsxs)(i.z2,{value:m[1],maxValue:a.max_reagent_capacity,ranges:{bad:[2*a.max_reagent_capacity/3,a.max_reagent_capacity],average:[a.max_reagent_capacity/3,2*a.max_reagent_capacity/3],good:[0,a.max_reagent_capacity/3]},color:m[1]>a.sanguine_reagent?"bad":"good",children:["Sanguine: ",m[1],"/",a.sanguine_reagent,"/",a.max_reagent_capacity]})}),(0,r.jsx)(i.BJ.Item,{width:"30%",children:(0,r.jsxs)(i.z2,{value:m[2],maxValue:a.max_reagent_capacity,ranges:{bad:[2*a.max_reagent_capacity/3,a.max_reagent_capacity],average:[a.max_reagent_capacity/3,2*a.max_reagent_capacity/3],good:[0,a.max_reagent_capacity/3]},color:m[2]>a.osseous_reagent?"bad":"good",children:["Osseous: ",m[2],"/",a.osseous_reagent,"/",a.max_reagent_capacity]})})]}),(0,r.jsx)(f,{}),(0,r.jsx)(h,{})]})]})})]})]})},f=function(e){var n=(0,l.Oc)(),t=n.act,o=n.data,a=o.patient_limb_data,c=o.limb_list,s=o.desired_limb_data;return(0,r.jsx)(i.Nt,{title:"Limbs",children:c.map(function(e,n){return(0,r.jsxs)(i.az,{children:[(0,r.jsxs)(i.BJ,{align:"baseline",children:[(0,r.jsxs)(i.BJ.Item,{color:"label",width:"15%",height:"20px",children:[a[e][4],":"," "]}),(0,r.jsx)(i.BJ.Item,{grow:1}),0===a[e][3]&&(0,r.jsx)(i.BJ.Item,{width:"60%",children:(0,r.jsxs)(i.z2,{value:s[e][0]+s[e][1],maxValue:a[e][5],ranges:{good:[0,a[e][5]/3],average:[a[e][5]/3,2*a[e][5]/3],bad:[2*a[e][5]/3,a[e][5]]},children:["Post-Cloning Damage: ",(0,r.jsx)(i.In,{name:"bone"})," "+s[e][0]+" / ",(0,r.jsx)(i.In,{name:"fire"})," "+s[e][1]]})}),0!==a[e][3]&&(0,r.jsx)(i.BJ.Item,{width:"60%",children:(0,r.jsxs)(i.z2,{color:"bad",value:0,children:["The patient's ",a[e][4]," is missing!"]})})]}),(0,r.jsxs)(i.BJ,{children:[!!a[e][3]&&(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n.Checkbox,{checked:!s[e][3],onClick:function(){return t("toggle_limb_repair",{limb:e,type:"replace"})},children:"Replace Limb"})}),!a[e][3]&&(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.$n.Checkbox,{disabled:!(a[e][0]||a[e][1]),checked:!(s[e][0]||s[e][1]),onClick:function(){return t("toggle_limb_repair",{limb:e,type:"damage"})},children:"Repair Damages"}),(0,r.jsx)(i.$n.Checkbox,{disabled:!(1&a[e][2]),checked:!(1&s[e][2]),onClick:function(){return t("toggle_limb_repair",{limb:e,type:"bone"})},children:"Mend Bone"}),(0,r.jsx)(i.$n.Checkbox,{disabled:!(32&a[e][2]),checked:!(32&s[e][2]),onClick:function(){return t("toggle_limb_repair",{limb:e,type:"ib"})},children:"Mend IB"}),(0,r.jsx)(i.$n.Checkbox,{disabled:!(128&a[e][2]),checked:!(128&s[e][2]),onClick:function(){return t("toggle_limb_repair",{limb:e,type:"critburn"})},children:"Mend Critical Burn"})]})]})]},e)})})},h=function(e){var n=(0,l.Oc)(),t=n.act,o=n.data,a=o.patient_organ_data,c=o.organ_list,s=o.desired_organ_data;return(0,r.jsx)(i.Nt,{title:"Organs",children:c.map(function(e,n){return(0,r.jsx)(i.az,{children:(0,r.jsxs)(i.BJ,{align:"baseline",children:[(0,r.jsxs)(i.BJ.Item,{color:"label",width:"20%",height:"20px",children:[a[e][3],":"," "]}),"heart"!==a[e][5]&&(0,r.jsx)(i.az,{children:(0,r.jsxs)(i.BJ.Item,{children:[!!a[e][2]&&(0,r.jsx)(i.$n.Checkbox,{checked:!s[e][2]&&!s[e][1],onClick:function(){return t("toggle_organ_repair",{organ:e,type:"replace"})},children:"Replace Organ"}),!a[e][2]&&(0,r.jsx)(i.az,{children:(0,r.jsx)(i.$n.Checkbox,{disabled:!a[e][0],checked:!s[e][0],onClick:function(){return t("toggle_organ_repair",{organ:e,type:"damage"})},children:"Repair Damages"})})]})}),"heart"===a[e][5]&&(0,r.jsx)(i.az,{color:"average",children:"Heart replacement is required for cloning."}),(0,r.jsx)(i.BJ.Item,{grow:1}),(0,r.jsxs)(i.BJ.Item,{width:"35%",children:[!!a[e][2]&&(0,r.jsxs)(i.z2,{color:"bad",value:0,children:["The patient's ",a[e][3]," is missing!"]}),!a[e][2]&&(0,r.jsx)(i.z2,{value:s[e][0],maxValue:a[e][4],ranges:{good:[0,a[e][4]/3],average:[a[e][4]/3,2*a[e][4]/3],bad:[2*a[e][4]/3,a[e][4]]},children:"Post-Cloning Damage: "+s[e][0]})]})]})},e)})})}},1558:function(e,n,t){"use strict";t.r(n),t.d(n,{CloningPod:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.biomass,s=a.biomass_storage_capacity,u=a.sanguine_reagent,d=a.osseous_reagent,f=a.organs,h=a.currently_cloning;return(0,r.jsx)(l.p8,{width:500,height:500,children:(0,r.jsxs)(l.p8.Content,{scrollable:!0,children:[(0,r.jsxs)(i.wn,{title:"Liquid Storage",children:[(0,r.jsxs)(i.BJ,{height:"25px",align:"center",children:[(0,r.jsxs)(i.BJ.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,r.jsx)(i.BJ.Item,{grow:1,children:(0,r.jsx)(i.z2,{value:c,ranges:{good:[2*s/3,s],average:[s/3,2*s/3],bad:[0,s/3]},minValue:0,maxValue:s})})]}),(0,r.jsxs)(i.BJ,{height:"25px",align:"center",children:[(0,r.jsxs)(i.BJ.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,r.jsx)(i.BJ.Item,{children:u+" units"}),(0,r.jsx)(i.BJ.Item,{grow:1}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.Q7,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(e){return t("remove_reagent",{reagent:"sanguine_reagent",amount:e})}})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{content:"Remove All",onClick:function(){return t("purge_reagent",{reagent:"sanguine_reagent"})}})})]}),(0,r.jsxs)(i.BJ,{height:"25px",align:"center",children:[(0,r.jsxs)(i.BJ.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,r.jsx)(i.BJ.Item,{children:d+" units"}),(0,r.jsx)(i.BJ.Item,{grow:1}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.Q7,{value:0,minValue:0,maxValue:d,step:1,unit:"units",onChange:function(e){return t("remove_reagent",{reagent:"osseous_reagent",amount:e})}})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{content:"Remove All",onClick:function(){return t("purge_reagent",{reagent:"osseous_reagent"})}})})]})]}),(0,r.jsxs)(i.wn,{title:"Organ Storage",children:[!h&&(0,r.jsxs)(i.az,{children:[!f&&(0,r.jsx)(i.az,{color:"average",children:"Notice: No organs loaded."}),!!f&&f.map(function(e){return(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{children:e.name}),(0,r.jsx)(i.BJ.Item,{grow:1}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{content:"Eject",onClick:function(){return t("eject_organ",{organ_ref:e.ref})}})})]},e)})]}),!!h&&(0,r.jsx)(i.BJ,{height:"100%",children:(0,r.jsxs)(i.BJ.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,r.jsx)(i.In,{name:"lock",size:"5",mb:3}),(0,r.jsx)("br",{}),"Unable to access organ storage while cloning."]})})]})]})})}},1276:function(e,n,t){"use strict";t.r(n),t.d(n,{CoinMint:()=>c});var r=t(8138),i=t(7790),o=t(5490),l=t(2864),a=t(3384),c=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data,s=c.materials,u=c.moneyBag,d=c.moneyBagContent,f=c.moneyBagMaxContent,h=(u?210:138)+64*Math.ceil(s.length/4);return(0,r.jsx)(a.p8,{width:210,height:h,children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.IC,{m:0,info:!0,children:["Total coins produced: ",c.totalCoins]})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,title:"Coin Type",buttons:(0,r.jsx)(i.$n,{icon:"power-off",color:c.active&&"bad",tooltip:!u&&"Need a money bag",disabled:!u,onClick:function(){return t("activate")}}),children:(0,r.jsxs)(i.BJ,{vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.z2,{minValue:0,maxValue:c.maxMaterials,value:c.totalMaterials})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"eject",tooltip:"Eject selected material",onClick:function(){return t("ejectMat")}})})]})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:s.map(function(e){return(0,r.jsx)(i.$n,{bold:!0,inline:!0,m:.2,textAlign:"center",selected:e.id===c.chosenMaterial,tooltip:e.name,content:(0,r.jsxs)(i.BJ,{vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{className:(0,o.Ly)(["materials32x32",e.id])}),(0,r.jsx)(i.BJ.Item,{children:e.amount})]}),onClick:function(){return t("selectMaterial",{material:e.id})}},e.id)})})]})})}),!!u&&(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Money Bag",buttons:(0,r.jsx)(i.$n,{icon:"eject",content:"Eject",disabled:c.active,onClick:function(){return t("ejectBag")}}),children:(0,r.jsxs)(i.z2,{width:"100%",minValue:0,maxValue:f,value:d,children:[d," / ",f]})})})]})})})}},1572:function(e,n,t){"use strict";t.r(n),t.d(n,{HexColorInput:()=>E,ColorSelector:()=>A,ColorPickerModal:()=>O,ColorInput:()=>z});var r=t(8138),i=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Math.pow(10,n);return Math.round(t*e)/t},o=function(e){return h(l(e))},l=function(e){return("#"===e[0]&&(e=e.substring(1)),e.length<6)?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?i(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?i(parseInt(e.substring(6,8),16)/255,2):1}},a=function(e){return f(u(e))},c=function(e){var n=e.h,t=e.s,r=e.v,o=e.a,l=(200-t)*r/100;return{h:i(n),s:i(l>0&&l<200?t*r/100/(l<=100?l:200-l)*100:0),l:i(l/2),a:i(o,2)}},s=function(e){var n=c(e),t=n.h,r=n.s,i=n.l;return"hsl(".concat(t,", ").concat(r,"%, ").concat(i,"%)")},u=function(e){var n=e.h,t=e.s,r=e.v,o=e.a,l=Math.floor(n=n/360*6),a=(r/=100)*(1-(t/=100)),c=r*(1-(n-l)*t),s=r*(1-(1-n+l)*t),u=l%6;return{r:255*[r,c,a,a,s,r][u],g:255*[s,r,r,c,a,a][u],b:255*[a,a,s,r,r,c][u],a:i(o,2)}},d=function(e){var n=e.toString(16);return n.length<2?"0"+n:n},f=function(e){var n=e.r,t=e.g,r=e.b,o=e.a,l=o<1?d(i(255*o)):"";return"#"+d(i(n))+d(i(t))+d(i(r))+l},h=function(e){var n=e.r,t=e.g,r=e.b,i=e.a,o=Math.max(n,t,r),l=o-Math.min(n,t,r),a=l?o===n?(t-r)/l:o===t?2+(r-n)/l:4+(n-t)/l:0;return{h:60*(a<0?a+6:a),s:o?l/o*100:0,v:o/255*100,a:i}},m=/^#?([0-9A-F]{3,8})$/i,p=function(e,n){var t=m.exec(e),r=t?t[1].length:0;return 3===r||6===r||!!n&&4===r||!!n&&8===r},x=t(4530),g=t(7790),j=t(6859),b=t(5490),y=t(2864),v=t(7946),w=t(8095),k=t(3384),_=t(1942),C=t(9472);function I(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function S(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return I(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return I(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var O=function(e){var n=(0,y.Oc)().data,t=n.timeout,i=n.message,l=n.title,c=n.autofocus,s=n.default_color,u=void 0===s?"#000000":s,d=S((0,x.useState)(o(u)),2),f=d[0],h=d[1];return(0,r.jsxs)(k.p8,{height:400,title:l,width:600,theme:"generic",children:[!!t&&(0,r.jsx)(C.Loader,{value:t}),(0,r.jsx)(k.p8.Content,{children:(0,r.jsxs)(g.BJ,{fill:!0,vertical:!0,children:[i&&(0,r.jsx)(g.BJ.Item,{children:(0,r.jsx)(g.wn,{fill:!0,children:(0,r.jsx)(g.az,{color:"label",overflow:"hidden",children:i})})}),(0,r.jsx)(g.BJ.Item,{grow:!0,children:(0,r.jsxs)(g.wn,{fill:!0,children:[!!c&&(0,r.jsx)(g.y5,{}),(0,r.jsx)(A,{color:f,setColor:h,defaultColor:u})]})}),(0,r.jsx)(g.BJ.Item,{children:(0,r.jsx)(_.InputButtons,{input:a(f)})})]})})]})},A=function(e){var n=e.color,t=e.setColor,i=e.defaultColor,l=function(e){t(function(n){return Object.assign({},n,e)})},c=u(n),s=a(n);return(0,r.jsxs)(g.BJ,{children:[(0,r.jsx)(g.BJ.Item,{mr:2,children:(0,r.jsxs)(g.BJ,{vertical:!0,children:[(0,r.jsx)(g.BJ.Item,{children:(0,r.jsxs)("div",{className:"react-colorful",children:[(0,r.jsx)(T,{hsva:n,onChange:l}),(0,r.jsx)(N,{hue:n.h,onChange:l,className:"react-colorful__last-control"})]})}),(0,r.jsxs)(g.BJ.Item,{children:[(0,r.jsx)(g.az,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,r.jsx)(g.az,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,r.jsx)("br",{}),(0,r.jsx)(g.m_,{content:s,position:"bottom",children:(0,r.jsx)(g.az,{inline:!0,width:"100px",height:"30px",backgroundColor:s})}),(0,r.jsx)(g.m_,{content:i,position:"bottom",children:(0,r.jsx)(g.az,{inline:!0,width:"100px",height:"30px",backgroundColor:i})})]})]})}),(0,r.jsx)(g.BJ.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",className:"ColorPicker--Inputs",children:(0,r.jsxs)(g.Ki,{children:[(0,r.jsx)(g.Ki.Item,{label:"HEX",children:(0,r.jsx)(E,{fluid:!0,prefixed:!0,color:a(n).substring(1),onChange:function(e){t(o(e))}})}),(0,r.jsx)(g.Ki.Divider,{}),(0,r.jsx)(g.Ki.Item,{label:"H",buttons:(0,r.jsx)(P,{value:n.h,callback:function(e){return l({h:e})},max:360,unit:"\xb0"}),children:(0,r.jsx)(N,{hue:n.h,onChange:l})}),(0,r.jsx)(g.Ki.Item,{label:"S",buttons:(0,r.jsx)(P,{value:n.s,callback:function(e){return l({s:e})},unit:"%"}),children:(0,r.jsx)(R,{color:n,onChange:l})}),(0,r.jsx)(g.Ki.Item,{label:"V",buttons:(0,r.jsx)(P,{value:n.v,callback:function(e){return l({v:e})},unit:"%"}),children:(0,r.jsx)($,{color:n,onChange:l})}),(0,r.jsx)(g.Ki.Divider,{}),(0,r.jsx)(g.Ki.Item,{label:"R",buttons:(0,r.jsx)(P,{value:c.r,callback:function(e){c.r=e,l(h(c))},max:255}),children:(0,r.jsx)(D,{color:n,onChange:l,target:"r"})}),(0,r.jsx)(g.Ki.Item,{label:"G",buttons:(0,r.jsx)(P,{value:c.g,callback:function(e){c.g=e,l(h(c))},max:255}),children:(0,r.jsx)(D,{color:n,onChange:l,target:"g"})}),(0,r.jsx)(g.Ki.Item,{label:"B",buttons:(0,r.jsx)(P,{value:c.b,callback:function(e){c.b=e,l(h(c))},max:255}),children:(0,r.jsx)(D,{color:n,onChange:l,target:"b"})})]})})]})},P=function(e){var n=e.value,t=e.callback,i=e.min,o=e.max,l=e.unit;return(0,r.jsx)(g.Q7,{width:"70px",value:Math.round(n),step:1,minValue:void 0===i?0:i,maxValue:void 0===o?100:o,onChange:t,unit:l})},B=function(e){return"#"+e.toUpperCase()},E=function(e){var n,t,i=e.prefixed,o=e.alpha,l=e.color,a=e.fluid,c=e.onChange,s=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["prefixed","alpha","color","fluid","onChange"]);return(0,r.jsx)(z,(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({},s),t=t={fluid:a,color:l,escape:function(e){return e.replace(/([^0-9A-F]+)/gi,"").substring(0,o?8:6)},validate:function(e){return p(e,o)},format:i?B:void 0,onChange:c},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))};function z(e){var n=e.fluid,t=e.color,i=e.escape,o=e.format,l=e.validate,a=e.onChange,c=S((0,x.useState)(i(t)),2),s=c[0],u=c[1];return(0,x.useEffect)(function(){t!==s&&u(i(t))},[t,i]),(0,r.jsx)(g.pd,{fluid:n,value:o?o(s):s,onChange:function(e){u(e)},onBlur:function(e){if(l(e)){var n=i(e);u(n),a(n)}else u(i(t))},fontFamily:"monospace"})}var T=function(e){var n=e.hsva,t=e.onChange;return(0,r.jsx)("div",{className:"react-colorful__saturation_value",style:{backgroundColor:"".concat(s({h:n.h,s:100,v:100,a:1}))},children:(0,r.jsx)(w.H,{onMove:function(e){t({s:100*e.left,v:100-100*e.top})},onKey:function(e){t({s:(0,j.qE)(n.s+100*e.left,0,100),v:(0,j.qE)(n.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation ".concat(Math.round(n.s),"%, Brightness ").concat(Math.round(n.v),"%"),children:(0,r.jsx)(v.gm,{className:"react-colorful__saturation_value-pointer",top:1-n.v/100,left:n.s/100,color:s(n)})})})},N=function(e){var n=e.className,t=e.hue,i=e.onChange,o=(0,b.Ly)(["react-colorful__hue",n]);return(0,r.jsx)("div",{className:o,children:(0,r.jsx)(w.H,{onMove:function(e){i({h:360*e.left})},onKey:function(e){i({h:(0,j.qE)(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":Math.round(t),"aria-valuemax":"360","aria-valuemin":"0",children:(0,r.jsx)(v.gm,{className:"react-colorful__hue-pointer",left:t/360,color:s({h:t,s:100,v:100,a:1})})})})},R=function(e){var n=e.className,t=e.color,i=e.onChange,o=(0,b.Ly)(["react-colorful__saturation",n]);return(0,r.jsx)("div",{className:o,children:(0,r.jsx)(w.H,{style:{background:"linear-gradient(to right, ".concat(s({h:t.h,s:0,v:t.v,a:1}),", ").concat(s({h:t.h,s:100,v:t.v,a:1}),")")},onMove:function(e){i({s:100*e.left})},onKey:function(e){i({s:(0,j.qE)(t.s+100*e.left,0,100)})},"aria-label":"Saturation","aria-valuenow":Math.round(t.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,r.jsx)(v.gm,{className:"react-colorful__saturation-pointer",left:t.s/100,color:s({h:t.h,s:t.s,v:t.v,a:1})})})})},$=function(e){var n=e.className,t=e.color,i=e.onChange,o=(0,b.Ly)(["react-colorful__value",n]);return(0,r.jsx)("div",{className:o,children:(0,r.jsx)(w.H,{style:{background:"linear-gradient(to right, ".concat(s({h:t.h,s:t.s,v:0,a:1}),", ").concat(s({h:t.h,s:t.s,v:100,a:1}),")")},onMove:function(e){i({v:100*e.left})},onKey:function(e){i({v:(0,j.qE)(t.v+100*e.left,0,100)})},"aria-label":"Value","aria-valuenow":Math.round(t.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,r.jsx)(v.gm,{className:"react-colorful__value-pointer",left:t.v/100,color:s({h:t.h,s:t.s,v:t.v,a:1})})})})},D=function(e){var n=e.className,t=e.color,i=e.onChange,o=e.target,l=u(t),a=function(e){l[o]=e,i(h(l))},c=(0,b.Ly)(["react-colorful__".concat(o),n]),s="r"===o?"rgb(".concat(Math.round(l.r),",0,0)"):"g"===o?"rgb(0,".concat(Math.round(l.g),",0)"):"rgb(0,0,".concat(Math.round(l.b),")");return(0,r.jsx)("div",{className:c,children:(0,r.jsx)(w.H,{onMove:function(e){a(255*e.left)},onKey:function(e){a((0,j.qE)(l[o]+255*e.left,0,255))},"aria-valuenow":l[o],"aria-valuemax":"100","aria-valuemin":"0",children:(0,r.jsx)(v.gm,{className:"react-colorful__".concat(o,"-pointer"),left:l[o]/255,color:s})})})}},6851:function(e,n,t){"use strict";t.r(n),t.d(n,{ColourMatrixTester:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data.colour_data;return(0,r.jsx)(l.p8,{width:360,height:190,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(i.wn,{fill:!0,title:"Modify Matrix",children:[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]].map(function(e){return(0,r.jsx)(i.BJ,{textAlign:"center",textColor:"label",children:e.map(function(e){return(0,r.jsxs)(i.BJ.Item,{grow:!0,mt:1,children:[e.name,":\xa0",(0,r.jsx)(i.Q7,{width:4,value:a[e.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(n){return t("setvalue",{idx:e.idx+1,value:n})}})]},e.name)})},e)})})})})})}},5325:function(e,n,t){"use strict";t.r(n),t.d(n,{CommunicationsComputer:()=>d});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(e){switch(e){case 1:return(0,r.jsx)(h,{});case 2:return(0,r.jsx)(x,{});case 3:return(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,children:(0,r.jsx)(g,{})})});case 4:return(0,r.jsx)(b,{});default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},d=function(e){var n=(0,l.Oc)(),t=(n.act,n.data).menu_state;return(0,r.jsx)(a.p8,{width:500,height:600,children:(0,r.jsx)(a.p8.Content,{scrollable:!0,children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(f,{}),u(t)]})})})},f=function(e){var n,t=(0,l.Oc)(),i=t.act,a=t.data,c=a.authenticated,s=a.noauthbutton,u=a.esc_section,d=a.esc_callable,f=a.esc_recallable,h=a.esc_status,m=a.authhead,p=a.is_ai,x=a.lastCallLoc,g=!1;return c?1===c?n="Command":2===c?n="Captain":3===c?n="CentComm Officer":4===c?(n="CentComm Secure Connection",g=!0):n="ERROR: Report This Bug!":n="Not Logged In",(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.wn,{title:"Authentication",children:(0,r.jsx)(o.Ki,{children:g&&(0,r.jsx)(o.Ki.Item,{label:"Access",children:n})||(0,r.jsx)(o.Ki.Item,{label:"Actions",children:(0,r.jsx)(o.$n,{icon:c?"sign-out-alt":"id-card",selected:c,disabled:s,content:c?"Log Out ("+n+")":"Log In",onClick:function(){return i("auth")}})})})})}),(0,r.jsx)(o.BJ.Item,{children:!!u&&(0,r.jsx)(o.wn,{fill:!0,title:"Escape Shuttle",children:(0,r.jsxs)(o.Ki,{children:[!!h&&(0,r.jsx)(o.Ki.Item,{label:"Status",children:h}),!!d&&(0,r.jsx)(o.Ki.Item,{label:"Options",children:(0,r.jsx)(o.$n,{icon:"rocket",content:"Call Shuttle",disabled:!m,onClick:function(){return i("callshuttle")}})}),!!f&&(0,r.jsx)(o.Ki.Item,{label:"Options",children:(0,r.jsx)(o.$n,{icon:"times",content:"Recall Shuttle",disabled:!m||p,onClick:function(){return i("cancelshuttle")}})}),!!x&&(0,r.jsx)(o.Ki.Item,{label:"Last Call/Recall From",children:x})]})})})]})},h=function(e){var n=(0,l.Oc)();return(n.act,n.data).is_admin?(0,r.jsx)(m,{}):(0,r.jsx)(p,{})},m=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.is_admin,c=i.gamma_armory_location,s=i.admin_levels,u=i.authenticated,d=i.ert_allowed;return(0,r.jsxs)(o.BJ.Item,{children:[(0,r.jsx)(o.wn,{title:"CentComm Actions",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Change Alert",children:(0,r.jsx)(j,{levels:s,required_access:a,use_confirm:1})}),(0,r.jsxs)(o.Ki.Item,{label:"Announcement",children:[(0,r.jsx)(o.$n,{icon:"bullhorn",content:"Make Central Announcement",disabled:!a,onClick:function(){return t("send_to_cc_announcement_page")}}),4===u&&(0,r.jsx)(o.$n,{icon:"plus",content:"Make Other Announcement",disabled:!a,onClick:function(){return t("make_other_announcement")}})]}),(0,r.jsxs)(o.Ki.Item,{label:"Response Team",children:[(0,r.jsx)(o.$n,{icon:"ambulance",content:"Dispatch ERT",disabled:!a,onClick:function(){return t("dispatch_ert")}}),(0,r.jsx)(o.$n.Checkbox,{checked:d,content:d?"ERT calling enabled":"ERT calling disabled",tooltip:d?"Command can request an ERT":"ERTs cannot be requested",disabled:!a,onClick:function(){return t("toggle_ert_allowed")},selected:null})]}),(0,r.jsx)(o.Ki.Item,{label:"Nuclear Device",children:(0,r.jsx)(o.$n.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!a,onClick:function(){return t("send_nuke_codes")}})}),(0,r.jsx)(o.Ki.Item,{label:"Gamma Armory",children:(0,r.jsx)(o.$n.Confirm,{icon:"biohazard",content:c?"Send Gamma Armory":"Recall Gamma Armory",disabled:!a,onClick:function(){return t("move_gamma_armory")}})}),(0,r.jsxs)(o.Ki.Item,{label:"Other",children:[(0,r.jsx)(o.$n,{icon:"coins",content:"View Economy",disabled:!a,onClick:function(){return t("view_econ")}}),(0,r.jsx)(o.$n,{icon:"fax",content:"Fax Manager",disabled:!a,onClick:function(){return t("view_fax")}})]})]})}),(0,r.jsx)(o.Nt,{title:"View Command accessible controls",children:(0,r.jsx)(p,{})})]})},p=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.msg_cooldown,c=i.emagged,s=i.cc_cooldown,u=i.security_level_color,d=i.str_security_level,f=i.levels,h=i.authcapt,m=i.authhead,p=i.messages,x="Make Priority Announcement";a>0&&(x+=" ("+a+"s)");var g=c?"Message [UNKNOWN]":"Message CentComm",b="Request Authentication Codes";return s>0&&(g+=" ("+s+"s)",b+=" ("+s+"s)"),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,title:"Captain-Only Actions",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Current Alert",color:u,children:d}),(0,r.jsx)(o.Ki.Item,{label:"Change Alert",children:(0,r.jsx)(j,{levels:f,required_access:h})}),(0,r.jsx)(o.Ki.Item,{label:"Announcement",children:(0,r.jsx)(o.$n,{icon:"bullhorn",content:x,disabled:!h||a>0,onClick:function(){return t("announce")}})}),!!c&&(0,r.jsxs)(o.Ki.Item,{label:"Transmit",children:[(0,r.jsx)(o.$n,{icon:"broadcast-tower",color:"red",content:g,disabled:!h||s>0,onClick:function(){return t("MessageSyndicate")}}),(0,r.jsx)(o.$n,{icon:"sync-alt",content:"Reset Relays",disabled:!h,onClick:function(){return t("RestoreBackup")}})]})||(0,r.jsx)(o.Ki.Item,{label:"Transmit",children:(0,r.jsx)(o.$n,{icon:"broadcast-tower",content:g,disabled:!h||s>0,onClick:function(){return t("MessageCentcomm")}})}),(0,r.jsx)(o.Ki.Item,{label:"Nuclear Device",children:(0,r.jsx)(o.$n,{icon:"bomb",content:b,disabled:!h||s>0,onClick:function(){return t("nukerequest")}})})]})})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.wn,{fill:!0,title:"Command Staff Actions",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Displays",children:(0,r.jsx)(o.$n,{icon:"tv",content:"Change Status Displays",disabled:!m,onClick:function(){return t("status")}})}),(0,r.jsx)(o.Ki.Item,{label:"Incoming Messages",children:(0,r.jsx)(o.$n,{icon:"folder-open",content:"View ("+p.length+")",disabled:!m,onClick:function(){return t("messagelist")}})})]})})})]})},x=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.stat_display,c=i.authhead;i.current_message_title;var s=a.presets.map(function(e){return(0,r.jsx)(o.$n,{content:e.label,selected:e.name===a.type,disabled:!c,onClick:function(){return t("setstat",{statdisp:e.name})}},e.name)}),u=a.alerts.map(function(e){return(0,r.jsx)(o.$n,{content:e.label,selected:e.alert===a.icon,disabled:!c,onClick:function(){return t("setstat",{statdisp:3,alert:e.alert})}},e.alert)});return(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,title:"Modify Status Screens",buttons:(0,r.jsx)(o.$n,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return t("main")}}),children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Presets",children:s}),(0,r.jsx)(o.Ki.Item,{label:"Alerts",children:u}),(0,r.jsx)(o.Ki.Item,{label:"Message Line 1",children:(0,r.jsx)(o.$n,{icon:"pencil-alt",content:a.line_1,disabled:!c,onClick:function(){return t("setmsg1")}})}),(0,r.jsx)(o.Ki.Item,{label:"Message Line 2",children:(0,r.jsx)(o.$n,{icon:"pencil-alt",content:a.line_2,disabled:!c,onClick:function(){return t("setmsg2")}})})]})})})},g=function(e){var n,t=(0,l.Oc)(),i=t.act,a=t.data,c=a.authhead,s=a.current_message_title,u=a.current_message,d=a.messages;if(a.security_level,s)n=(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.wn,{title:s,buttons:(0,r.jsx)(o.$n,{icon:"times",content:"Return To Message List",disabled:!c,onClick:function(){return i("messagelist")}}),children:(0,r.jsx)(o.az,{children:u})})});else{var f=d.map(function(e){return(0,r.jsxs)(o.Ki.Item,{label:e.title,children:[(0,r.jsx)(o.$n,{icon:"eye",content:"View",disabled:!c||s===e.title,onClick:function(){return i("messagelist",{msgid:e.id})}}),(0,r.jsx)(o.$n.Confirm,{icon:"times",content:"Delete",disabled:!c,onClick:function(){return i("delmessage",{msgid:e.id})}})]},e.id)});n=(0,r.jsx)(o.wn,{title:"Messages Received",buttons:(0,r.jsx)(o.$n,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return i("main")}}),children:(0,r.jsx)(o.Ki,{children:f})})}return(0,r.jsx)(o.az,{children:n})},j=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=e.levels,c=e.required_access,s=e.use_confirm,u=i.security_level;return s?a.map(function(e){return(0,r.jsx)(o.$n.Confirm,{icon:e.icon,content:e.name,disabled:!c||e.id===u,tooltip:e.tooltip,onClick:function(){return t("newalertlevel",{level:e.id})}},e.name)}):a.map(function(e){return(0,r.jsx)(o.$n,{icon:e.icon,content:e.name,disabled:!c||e.id===u,tooltip:e.tooltip,onClick:function(){return t("newalertlevel",{level:e.id})}},e.name)})},b=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data,c=a.is_admin,u=a.possible_cc_sounds;if(!c)return t("main");var d=s((0,i.useState)(""),2),f=d[0],h=d[1],m=s((0,i.useState)(""),2),p=m[0],x=m[1],g=s((0,i.useState)(0),2),j=g[0],b=g[1],y=s((0,i.useState)("Beep"),2),v=y[0],w=y[1];return(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,title:"Central Command Report",buttons:(0,r.jsx)(o.$n,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return t("main")}}),children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.pd,{fluid:!0,placeholder:"Enter Subtitle here.",value:f,onChange:function(e){return h(e)}}),(0,r.jsx)(o.fs,{fluid:!0,height:"100%",rows:10,placeholder:"Enter Announcement here. Multiline input is accepted.",value:p,onChange:x}),(0,r.jsx)(o.$n.Confirm,{fluid:!0,icon:"paper-plane",textAlign:"center",onClick:function(){t("make_cc_announcement",{subtitle:f,text:p,classified:j,beepsound:v}),x(""),h("")},children:"Send Announcement"}),(0,r.jsxs)(o.BJ,{align:"center",children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.ms,{options:u,selected:v,onSelected:function(e){return w(e)},disabled:j})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{icon:"volume-up",disabled:j,tooltip:"Test sound",onClick:function(){return t("test_sound",{sound:v})}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n.Checkbox,{fluid:!0,checked:j,tooltip:j?"Sent to station communications consoles":"Publically announced",onClick:function(){return b(!j)},children:"Classified"})})]})]})})})}},6185:function(e,n,t){"use strict";t.r(n),t.d(n,{CompostBin:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384);function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var c=function(e){var n,t=(0,o.Oc)(),c=t.act,s=t.data,u=s.biomass,d=s.compost,f=s.biomass_capacity,h=s.compost_capacity,m=s.potassium,p=s.potassium_capacity,x=s.potash,g=s.potash_capacity,j=(n=(0,o.QY)("vendAmount",1),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return a(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=j[0],y=j[1];return(0,r.jsx)(l.p8,{width:360,height:260,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.wn,{label:"Resources",children:(0,r.jsx)(i.BJ,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Biomass",children:(0,r.jsxs)(i.z2,{ml:.5,mt:1,width:20,value:u,minValue:0,maxValue:f,ranges:{good:[.5*f,1/0],average:[.25*f,.5*f],bad:[-1/0,.25*f]},children:[u," / ",f," Units"]})}),(0,r.jsx)(i.Ki.Item,{label:"Compost",children:(0,r.jsxs)(i.z2,{ml:.5,mt:1,width:20,value:d,minValue:0,maxValue:h,ranges:{good:[.5*h,1/0],average:[.25*h,.5*h],bad:[-1/0,.25*h]},children:[d," / ",h," Units"]})}),(0,r.jsx)(i.Ki.Item,{label:"Potassium",children:(0,r.jsxs)(i.z2,{ml:.5,mt:1,width:20,value:m,minValue:0,maxValue:p,ranges:{good:[.5*p,1/0],average:[.25*p,.5*p],bad:[-1/0,.25*p]},children:[m," / ",p," Units"]})}),(0,r.jsx)(i.Ki.Item,{label:"Potash",children:(0,r.jsxs)(i.z2,{ml:.5,mt:1,width:20,value:x,minValue:0,maxValue:g,ranges:{good:[.5*g,1/0],average:[.25*g,.5*g],bad:[-1/0,.25*g]},children:[x," / ",g," Units"]})})]})})}),(0,r.jsx)(i.wn,{title:"Controls",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.az,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,r.jsx)(i.Q7,{animated:!0,value:b,width:"32px",minValue:1,maxValue:10,step:1,stepPixelSize:7,onChange:function(e){return y(e)}})]}),children:(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{fluid:!0,align:"center",content:"Make Soil",disabled:d<25*b,icon:"arrow-circle-down",onClick:function(){return c("create",{amount:b})}})})})]})})})}},4868:function(e,n,t){"use strict";t.r(n),t.d(n,{Contractor:()=>j});var r=t(8138),i=t(4530),o=t(7790),l=t(6859),a=t(2864),c=t(7946),s=t(3384);function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function h(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function m(e,n){return(m=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}var x={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},g=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(2e4*Math.random()),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],j=function(e){var n,t,l=(0,a.Oc)(),c=l.act,d=l.data,f=(n=(0,i.useState)(""),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return u(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=f[0],m=f[1];return t=d.unauthorized?(0,r.jsx)(o.so.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,r.jsx)(_,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){}})}):d.load_animation_completed?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.so.Item,{basis:"content",children:(0,r.jsx)(b,{})}),(0,r.jsx)(o.so.Item,{basis:"content",mt:"0.5rem",children:(0,r.jsx)(y,{})}),(0,r.jsx)(o.so.Item,{grow:"1",overflow:"hidden",children:1===d.page?(0,r.jsx)(v,{height:"100%",setViewingPhoto:m}):(0,r.jsx)(k,{height:"100%"})})]}):(0,r.jsx)(o.so.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,r.jsx)(_,{height:"100%",allMessages:g,finishedTimeout:3e3,onFinished:function(){return c("complete_load_animation")}})}),(0,r.jsxs)(s.p8,{theme:"syndicate",width:500,height:600,children:[h&&(0,r.jsx)(C,{viewingPhoto:h,setViewingPhoto:m}),(0,r.jsx)(s.p8.Content,{className:"Contractor",children:(0,r.jsx)(o.so,{direction:"column",height:"100%",children:t})})]})},b=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data,l=i.tc_available,c=i.tc_paid_out,s=i.completed_contracts,u=i.rep;return(0,r.jsx)(o.wn,h(f({title:"Summary",buttons:(0,r.jsxs)(o.az,{verticalAlign:"middle",mt:"0.25rem",children:[u," Rep"]})},e),{children:(0,r.jsxs)(o.so,{children:[(0,r.jsx)(o.az,{flexBasis:"50%",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"TC Available",verticalAlign:"middle",children:(0,r.jsxs)(o.so,{align:"center",children:[(0,r.jsxs)(o.so.Item,{grow:"1",children:[l," TC"]}),(0,r.jsx)(o.$n,{disabled:l<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){return t("claim")}})]})}),(0,r.jsxs)(o.Ki.Item,{label:"TC Earned",children:[c," TC"]})]})}),(0,r.jsx)(o.az,{flexBasis:"50%",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,r.jsx)(o.az,{height:"20px",lineHeight:"20px",inline:!0,children:s})}),(0,r.jsx)(o.Ki.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})}))},y=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data.page;return(0,r.jsxs)(o.tU,h(f({},e),{children:[(0,r.jsxs)(o.tU.Tab,{selected:1===i,onClick:function(){return t("page",{page:1})},children:[(0,r.jsx)(o.In,{name:"suitcase"}),"Contracts"]}),(0,r.jsxs)(o.tU.Tab,{selected:2===i,onClick:function(){return t("page",{page:2})},children:[(0,r.jsx)(o.In,{name:"shopping-cart"}),"Hub"]})]}))},v=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data,l=i.contracts,s=i.contract_active,u=i.can_extract,d=!!s&&l.filter(function(e){return 1===e.status})[0],m=d&&d.time_left>0,p=e.setViewingPhoto,g=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["setViewingPhoto"]);return(0,r.jsx)(o.wn,h(f({title:"Available Contracts",overflow:"auto",buttons:(0,r.jsxs)(o.$n,{disabled:!u||m,icon:"parachute-box",onClick:function(){return t("extract")},children:["Call Extraction"," ",m&&(0,r.jsx)(c.Gi,{timeEnd:d.time_left,format:function(e,n){return n.substr(3)}})]})},g),{children:l.slice().sort(function(e,n){return 1===e.status?-1:1===n.status?1:e.status-n.status}).map(function(e){var n;return(0,r.jsx)(o.wn,{title:(0,r.jsxs)(o.so,{children:[(0,r.jsx)(o.so.Item,{grow:"1",color:1===e.status&&"good",children:e.target_name}),(0,r.jsx)(o.so.Item,{basis:"content",children:e.has_photo&&(0,r.jsx)(o.$n,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){return p("target_photo_"+e.uid+".png")}})})]}),className:"Contractor__Contract",buttons:(0,r.jsxs)(o.az,{width:"100%",children:[!!x[e.status]&&(0,r.jsx)(o.az,{color:x[e.status][1],inline:!0,mt:1!==e.status&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:x[e.status][0]}),1===e.status&&(0,r.jsx)(o.$n.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){return t("abort")}})]}),children:(0,r.jsxs)(o.so,{children:[(0,r.jsxs)(o.so.Item,{grow:"2",mr:"0.5rem",children:[e.fluff_message,!!e.completed_time&&(0,r.jsxs)(o.az,{color:"good",children:[(0,r.jsx)("br",{}),(0,r.jsx)(o.In,{name:"check",mr:"0.5rem"}),"Contract completed at ",e.completed_time]}),!!e.dead_extraction&&(0,r.jsxs)(o.az,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,r.jsx)(o.In,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!e.fail_reason&&(0,r.jsxs)(o.az,{color:"bad",children:[(0,r.jsx)("br",{}),(0,r.jsx)(o.In,{name:"times",mr:"0.5rem"}),"Contract failed: ",e.fail_reason]})]}),(0,r.jsxs)(o.so.Item,{flexBasis:"100%",children:[(0,r.jsxs)(o.so,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xa0",w(e)]}),null==(n=e.difficulties)?void 0:n.map(function(n,i){return(0,r.jsx)(o.$n.Confirm,{disabled:!!s,content:n.name+" ("+n.reward+" TC)",onClick:function(){return t("activate",{uid:e.uid,difficulty:i+1})}},i)}),!!e.objective&&(0,r.jsxs)(o.az,{color:"white",bold:!0,children:[e.objective.extraction_name,(0,r.jsx)("br",{}),"(",(e.objective.rewards.tc||0)+" TC",",\xa0",(e.objective.rewards.credits||0)+" Credits",")"]})]})]})},e.uid)})}))},w=function(e){if(e.objective&&!(e.status>1)){var n=e.objective.locs.user_area_id,t=e.objective.locs.user_coords,i=e.objective.locs.target_area_id,a=e.objective.locs.target_coords,c=n===i;return(0,r.jsx)(o.so.Item,{children:(0,r.jsx)(o.In,{name:c?"dot-circle-o":"arrow-alt-circle-right-o",color:c?"green":"yellow",rotation:c?null:-(0,l.KJ)(Math.atan2(a[1]-t[1],a[0]-t[0])),lineHeight:c?null:"0.85",size:"1.5"})})}},k=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data,l=i.rep,c=i.buyables;return(0,r.jsx)(o.wn,h(f({title:"Available Purchases",overflow:"auto"},e),{children:c.map(function(e){return(0,r.jsxs)(o.wn,{title:e.name,children:[e.description,(0,r.jsx)("br",{}),(0,r.jsx)(o.$n.Confirm,{disabled:l<e.cost||0===e.stock,icon:"shopping-cart",content:"Buy ("+e.cost+" Rep)",mt:"0.5rem",onClick:function(){return t("purchase",{uid:e.uid})}}),e.stock>-1&&(0,r.jsxs)(o.az,{as:"span",color:0===e.stock?"bad":"good",ml:"0.5rem",children:[e.stock," in stock"]})]},e.uid)})}))},_=function(e){var n;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(e){var n,r,i;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return r=t,i=[e],r=d(r),(n=function(e,n){var t;if(n&&("object"==((t=n)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)||"function"==typeof n))return n;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,p()?Reflect.construct(r,i||[],d(this).constructor):r.apply(this,i))).timer=null,n.state={currentIndex:0,currentDisplay:[]},n}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e),n=[{key:"tick",value:function(){var e=this.props,n=this.state;n.currentIndex<=e.allMessages.length?(this.setState(function(e){return{currentIndex:e.currentIndex+1}}),n.currentDisplay.push(e.allMessages[n.currentIndex])):(clearTimeout(this.timer),setTimeout(e.onFinished,e.finishedTimeout))}},{key:"componentDidMount",value:function(){var e=this,n=this.props.linesPerSecond;this.timer=setInterval(function(){return e.tick()},1e3/(void 0===n?2.5:n))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timer)}},{key:"render",value:function(){return(0,r.jsx)(o.az,{m:1,children:this.state.currentDisplay.map(function(e){return(0,r.jsxs)(i.Fragment,{children:[e,(0,r.jsx)("br",{})]},e)})})}}],function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(i.Component),C=function(e){var n=e.viewingPhoto,t=e.setViewingPhoto;return(0,r.jsxs)(o.aF,{className:"Contractor__photoZoom",children:[(0,r.jsx)(o.az,{as:"img",src:n}),(0,r.jsx)(o.$n,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){return t("")}})]})}},3510:function(e,n,t){"use strict";t.r(n),t.d(n,{ConveyorSwitch:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.slowFactor,s=a.oneWay,u=a.position;return(0,r.jsx)(l.p8,{width:350,height:135,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Lever position",children:u>0?"forward":u<0?"reverse":"neutral"}),(0,r.jsx)(i.Ki.Item,{label:"Allow reverse",children:(0,r.jsx)(i.$n.Checkbox,{checked:!s,onClick:function(){return t("toggleOneWay")}})}),(0,r.jsx)(i.Ki.Item,{label:"Slowdown factor",children:(0,r.jsxs)(i.so,{children:[(0,r.jsxs)(i.so.Item,{mx:"1px",children:[" ",(0,r.jsx)(i.$n,{icon:"angle-double-left",onClick:function(){return t("slowFactor",{value:c-5})}})," "]}),(0,r.jsxs)(i.so.Item,{mx:"1px",children:[" ",(0,r.jsx)(i.$n,{icon:"angle-left",onClick:function(){return t("slowFactor",{value:c-1})}})," "]}),(0,r.jsx)(i.so.Item,{children:(0,r.jsx)(i.Ap,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(e){return e+"x"},onChange:function(e,n){return t("slowFactor",{value:n})}})}),(0,r.jsxs)(i.so.Item,{mx:"1px",children:[" ",(0,r.jsx)(i.$n,{icon:"angle-right",onClick:function(){return t("slowFactor",{value:c+1})}})," "]}),(0,r.jsxs)(i.so.Item,{mx:"1px",children:[" ",(0,r.jsx)(i.$n,{icon:"angle-double-right",onClick:function(){return t("slowFactor",{value:c+5})}})," "]})]})})]})})})})}},6714:function(e,n,t){"use strict";t.r(n),t.d(n,{CrewMonitor:()=>p});var r=t(8138),i=t(8587),o=t(4530),l=t(7790),a=t(3268),c=t(2864),s=t(7946),u=t(421),d=t(3384);function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function h(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return f(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return f(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m=function(e,n){return e.dead?"red":parseInt(e.health,10)<=n?"orange":1===parseInt(e.stat,10)?"blue":"green"},p=function(e){var n=(0,c.Oc)(),t=n.act,i=n.data,a=h((0,o.useState)(i.tabIndex),2),s=a[0],u=a[1],f=function(e){u(e),t("set_tab_index",{tab_index:e})};return(0,r.jsx)(d.p8,{width:800,height:600,children:(0,r.jsx)(d.p8.Content,{children:(0,r.jsxs)(l.BJ,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,r.jsx)(l.BJ.Item,{children:(0,r.jsxs)(l.tU,{children:[(0,r.jsx)(l.tU.Tab,{icon:"table",selected:0===s,onClick:function(){return f(0)},children:"Data View"},"DataView"),(0,r.jsx)(l.tU.Tab,{icon:"map-marked-alt",selected:1===s,onClick:function(){return f(1)},children:"Map View"},"MapView")]})}),function(e){switch(e){case 0:return(0,r.jsx)(x,{});case 1:return(0,r.jsx)(j,{});default:return"WE SHOULDN'T BE HERE!"}}(s)]})})})},x=function(e){var n=(0,c.Oc)(),t=n.act,s=n.data,d=s.possible_levels,f=s.viewing_current_z_level,p=s.is_advanced,x=s.highlightedNames,g=(0,i.Ul)(s.crewmembers,function(e){return!x.includes(e.name)},function(e){return e.name}),j=h((0,o.useState)(""),2),b=j[0],y=j[1],v=(0,a.XZ)(b,function(e){return e.name+"|"+e.assignment+"|"+e.area});return(0,r.jsxs)(l.wn,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,r.jsxs)(l.BJ,{children:[(0,r.jsx)(l.BJ.Item,{width:"100%",ml:"5px",children:(0,r.jsx)(l.pd,{fluid:!0,placeholder:"Search by name, assignment or location..",onChange:function(e){return y(e)}})}),(0,r.jsx)(l.BJ.Item,{children:p?(0,r.jsx)(l.ms,{mr:"5px",width:"50px",options:d,selected:f,onSelected:function(e){return t("switch_level",{new_level:e})}}):null})]}),(0,r.jsxs)(l.XI,{m:"0.5rem",children:[(0,r.jsxs)(l.XI.Row,{header:!0,children:[(0,r.jsx)(l.XI.Cell,{children:(0,r.jsx)(l.$n,{tooltip:"Clear highlights",icon:"square-xmark",onClick:function(){return t("clear_highlighted_names")}})}),(0,r.jsx)(l.XI.Cell,{children:"Name"}),(0,r.jsx)(l.XI.Cell,{children:"Status"}),(0,r.jsx)(l.XI.Cell,{children:"Location"})]}),g.filter(v).map(function(e,n){var i,o=x.includes(e.name);return(0,r.jsxs)(l.XI.Row,{bold:!!e.is_command,children:[(0,r.jsx)(l.XI.Cell,{children:(0,r.jsx)(l.$n.Checkbox,{checked:o,tooltip:"Mark on map",onClick:function(){return t(o?"remove_highlighted_name":"add_highlighted_name",{name:e.name})}})}),(0,r.jsxs)(l.XI.Cell,{children:[e.name," (",e.assignment,")"]}),(0,r.jsxs)(l.XI.Cell,{children:[(0,r.jsx)(l.az,{inline:!0,color:m(e,s.critThreshold),children:(i=s.critThreshold,e.dead?"Deceased":parseInt(e.health,10)<=i?"Critical":1===parseInt(e.stat,10)?"Unconscious":"Living")}),e.sensor_type>=2||s.ignoreSensors?(0,r.jsxs)(l.az,{inline:!0,ml:1,children:["(",(0,r.jsx)(l.az,{inline:!0,color:u.lm.damageType.oxy,children:e.oxy}),"|",(0,r.jsx)(l.az,{inline:!0,color:u.lm.damageType.toxin,children:e.tox}),"|",(0,r.jsx)(l.az,{inline:!0,color:u.lm.damageType.burn,children:e.fire}),"|",(0,r.jsx)(l.az,{inline:!0,color:u.lm.damageType.brute,children:e.brute}),")"]}):null]}),(0,r.jsx)(l.XI.Cell,{children:3===e.sensor_type||s.ignoreSensors?s.isAI||s.isObserver?(0,r.jsx)(l.$n,{fluid:!0,icon:"location-arrow",content:e.area+" ("+e.x+", "+e.y+")",onClick:function(){return t("track",{track:e.ref})}}):e.area+" ("+e.x+", "+e.y+")":(0,r.jsx)(l.az,{inline:!0,color:"grey",children:"Not Available"})})]},n)})]})]})},g=function(e){var n,t,i=e.color,o=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["color"]);return(0,r.jsx)(s.tx.Marker,(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({},o),t=t={children:(0,r.jsx)("span",{class:"highlighted-marker",style:{borderColor:"var(--color-".concat(i,")")}})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))},j=function(e){var n=(0,c.Oc)(),t=n.act,i=n.data,o=i.highlightedNames;return(0,r.jsx)(l.az,{height:"100vh",mb:"0.5rem",overflow:"hidden",children:(0,r.jsx)(s.tx,{zoom:i.zoom,offsetX:i.offsetX,offsetY:i.offsetY,onZoom:function(e){return t("set_zoom",{zoom:e})},onOffsetChange:function(e,n){return t("set_offset",{offset_x:n.offsetX,offset_y:n.offsetY})},children:i.crewmembers.filter(function(e){return 3===e.sensor_type||i.ignoreSensors}).map(function(e){var n=m(e,i.critThreshold),l=o.includes(e.name),a=function(){return i.isObserver?t("track",{track:e.ref}):null},c=function(){return t(l?"remove_highlighted_name":"add_highlighted_name",{name:e.name})},u=e.name+" ("+e.assignment+")";return l?(0,r.jsx)(g,{x:e.x,y:e.y,tooltip:u,color:n,onClick:a,onDblClick:c},e.ref):(0,r.jsx)(s.tx.MarkerIcon,{x:e.x,y:e.y,icon:"circle",tooltip:u,color:n,onClick:a,onDblClick:c},e.ref)})})})}},2306:function(e,n,t){"use strict";t.r(n),t.d(n,{Cryo:()=>s});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],c=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],s=function(e){return(0,r.jsx)(l.p8,{width:520,height:500,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(u,{})})})})},u=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,s=l.isOperating,u=l.hasOccupant,f=l.occupant,h=void 0===f?[]:f,m=l.cellTemperature,p=l.cellTemperatureStatus,x=l.isBeakerLoaded,g=l.cooldownProgress,j=l.auto_eject_healthy,b=l.auto_eject_dead;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,r.jsx)(i.$n,{icon:"user-slash",onClick:function(){return t("ejectOccupant")},disabled:!u,children:"Eject"}),children:u?(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Occupant",children:h.name||"Unknown"}),(0,r.jsx)(i.Ki.Item,{label:"Health",children:(0,r.jsx)(i.z2,{min:h.health,max:h.maxHealth,value:h.health/h.maxHealth,color:h.health>0?"good":"average",children:(0,r.jsx)(i.zv,{value:Math.round(h.health)})})}),(0,r.jsx)(i.Ki.Item,{label:"Status",color:c[h.stat][0],children:c[h.stat][1]}),(0,r.jsxs)(i.Ki.Item,{label:"Temperature",children:[(0,r.jsx)(i.zv,{value:Math.round(h.bodyTemperature)})," K"]}),(0,r.jsx)(i.Ki.Divider,{}),a.map(function(e){return(0,r.jsx)(i.Ki.Item,{label:e.label,children:(0,r.jsx)(i.z2,{value:h[e.type]/100,ranges:{bad:[.01,1/0]},children:(0,r.jsx)(i.zv,{value:Math.round(h[e.type])})})},e.id)})]}):(0,r.jsx)(i.BJ,{fill:!0,textAlign:"center",children:(0,r.jsxs)(i.BJ.Item,{grow:!0,align:"center",color:"label",children:[(0,r.jsx)(i.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.jsx)("br",{}),"No occupant detected."]})})})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Cell",buttons:(0,r.jsx)(i.$n,{icon:"eject",onClick:function(){return t("ejectBeaker")},disabled:!x,children:"Eject Beaker"}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Power",children:(0,r.jsx)(i.$n,{icon:"power-off",onClick:function(){return t(s?"switchOff":"switchOn")},selected:s,children:s?"On":"Off"})}),(0,r.jsxs)(i.Ki.Item,{label:"Temperature",color:p,children:[(0,r.jsx)(i.zv,{value:m})," K"]}),(0,r.jsx)(i.Ki.Item,{label:"Beaker",children:(0,r.jsx)(d,{})}),(0,r.jsx)(i.Ki.Item,{label:"Dosage interval",children:(0,r.jsx)(i.z2,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!x&&"average",value:g,minValue:0,maxValue:100})}),(0,r.jsx)(i.Ki.Divider,{}),(0,r.jsx)(i.Ki.Item,{label:"Auto-eject healthy occupants",children:(0,r.jsx)(i.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return t(j?"auto_eject_healthy_off":"auto_eject_healthy_on")},children:j?"On":"Off"})}),(0,r.jsx)(i.Ki.Item,{label:"Auto-eject dead occupants",children:(0,r.jsx)(i.$n,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return t(b?"auto_eject_dead_off":"auto_eject_dead_on")},children:b?"On":"Off"})})]})})})]})},d=function(e){var n=(0,o.Oc)(),t=(n.act,n.data),l=t.isBeakerLoaded,a=t.beakerLabel,c=t.beakerVolume;return l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.az,{inline:!0,color:!a&&"average",children:[a||"No label",":"]}),(0,r.jsx)(i.az,{inline:!0,color:!c&&"bad",ml:1,children:c?(0,r.jsx)(i.zv,{value:c,format:function(e){return Math.round(e)+" units remaining"}}):"Beaker is empty"})]}):(0,r.jsx)(i.az,{inline:!0,color:"bad",children:"No beaker loaded"})}},2394:function(e,n,t){"use strict";t.r(n),t.d(n,{CryopodConsole:()=>c});var r=t(8138),i=t(7790),o=t(3268),l=t(2864),a=t(3384),c=function(e){var n=(0,l.Oc)().data,t=n.account_name,o=n.allow_items;return(0,r.jsx)(a.p8,{title:"Cryopod Console",width:400,height:480,children:(0,r.jsxs)(a.p8.Content,{children:[(0,r.jsx)(i.wn,{title:"Hello, ".concat(t||"[REDACTED]","!"),children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,r.jsx)(s,{}),!!o&&(0,r.jsx)(u,{})]})})},s=function(e){var n=(0,l.Oc)().data.frozen_crew;return(0,r.jsx)(i.Nt,{title:"Stored Crew",children:n.length?(0,r.jsx)(i.wn,{children:(0,r.jsx)(i.Ki,{children:n.map(function(e,n){return(0,r.jsx)(i.Ki.Item,{label:e.name,children:e.rank},n)})})}):(0,r.jsx)(i.IC,{children:"No stored crew!"})})},u=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data.frozen_items,c=function(e){var n=e.toString();return n.startsWith("the ")&&(n=n.slice(4,n.length)),(0,o.Sn)(n)};return(0,r.jsx)(i.Nt,{title:"Stored Items",children:a.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.wn,{children:(0,r.jsx)(i.Ki,{children:a.map(function(e){return(0,r.jsx)(i.Ki.Item,{label:c(e.name),buttons:(0,r.jsx)(i.$n,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){return t("one_item",{item:e.uid})}})},e)})})}),(0,r.jsx)(i.$n,{content:"Drop All Items",color:"red",onClick:function(){return t("all_items")}})]}):(0,r.jsx)(i.IC,{children:"No stored items!"})})}},3372:function(e,n,t){"use strict";t.r(n),t.d(n,{DNAModifier:()=>d});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(4744),c=[["good","Alive"],["average","Critical"],["bad","DEAD"]],s=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],u=[5,10,20,30,50],d=function(){var e,n=(0,o.Oc)(),t=(n.act,n.data),c=t.irradiating,s=t.dnaBlockSize,u=t.occupant,d=!u.isViableSubject||!u.uniqueIdentity||!u.structuralEnzymes;return c&&(e=(0,r.jsx)(v,{duration:c})),(0,r.jsxs)(l.p8,{width:660,height:800,children:[(0,r.jsx)(a.ComplexModal,{}),e,(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(f,{isDNAInvalid:d})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(h,{dnaBlockSize:s,isDNAInvalid:d})})]})})]})},f=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.locked,s=l.hasOccupant,u=l.occupant,d=e.isDNAInvalid;return(0,r.jsx)(i.wn,{title:"Occupant",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.az,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,r.jsx)(i.$n,{disabled:!s,selected:a,icon:a?"toggle-on":"toggle-off",content:a?"Engaged":"Disengaged",onClick:function(){return t("toggleLock")}}),(0,r.jsx)(i.$n,{disabled:!s||a,icon:"user-slash",content:"Eject",onClick:function(){return t("ejectOccupant")}})]}),children:s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.az,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Name",children:u.name}),(0,r.jsx)(i.Ki.Item,{label:"Health",children:(0,r.jsx)(i.z2,{minValue:u.minHealth,maxValue:u.maxHealth,value:u.health/u.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,r.jsx)(i.Ki.Item,{label:"Status",color:c[u.stat][0],children:c[u.stat][1]}),(0,r.jsx)(i.Ki.Divider,{})]})}),d?(0,r.jsxs)(i.az,{color:"bad",children:[(0,r.jsx)(i.In,{name:"exclamation-circle"}),"\xa0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Radiation",children:(0,r.jsx)(i.z2,{minValue:0,maxValue:100,value:u.radiationLevel/100,color:"average"})}),(0,r.jsx)(i.Ki.Item,{label:"Unique Enzymes",children:l.occupant.uniqueEnzymes?l.occupant.uniqueEnzymes:(0,r.jsxs)(i.az,{color:"bad",children:[(0,r.jsx)(i.In,{name:"exclamation-circle"}),"\xa0 Unknown"]})})]})]}):(0,r.jsx)(i.az,{color:"label",children:"Cell unoccupied."})})},h=function(e){var n,t=(0,o.Oc)(),l=t.act,a=t.data,c=a.selectedMenuKey,u=a.hasOccupant,d=e.dnaBlockSize,f=e.isDNAInvalid;return u?f?(0,r.jsx)(i.wn,{fill:!0,children:(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,r.jsx)(i.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,r.jsx)("br",{}),"No operation possible on this subject."]})})}):("ui"===c?n=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m,{dnaBlockSize:d}),(0,r.jsx)(x,{})]}):"se"===c?n=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p,{dnaBlockSize:d}),(0,r.jsx)(x,{})]}):"buffer"===c?n=(0,r.jsx)(g,{}):"rejuvenators"===c&&(n=(0,r.jsx)(y,{})),(0,r.jsxs)(i.wn,{fill:!0,children:[(0,r.jsx)(i.tU,{children:s.map(function(e,n){return(0,r.jsx)(i.tU.Tab,{icon:e[2],selected:c===e[0],onClick:function(){return l("selectMenuKey",{key:e[0]})},children:e[1]},n)})}),n]})):(0,r.jsx)(i.wn,{fill:!0,children:(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,r.jsx)(i.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,r.jsx)("br",{}),"No occupant in DNA modifier."]})})})},m=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.selectedUIBlock,c=l.selectedUISubBlock,s=l.selectedUITarget,u=l.occupant,d=e.dnaBlockSize;return(0,r.jsx)(i.wn,{title:"Modify Unique Identifier",children:(0,r.jsxs)(i.BJ,{vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{children:(0,r.jsx)(w,{dnaString:u.uniqueIdentity,selectedBlock:a,selectedSubblock:c,blockSize:d,action:"selectUIBlock"})})}),(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Target",children:(0,r.jsx)(i.N6,{minValue:1,maxValue:15,stepPixelSize:20,value:s,format:function(e){return e.toString(16).toUpperCase()},ml:"0",onChange:function(e,n){return t("changeUITarget",{value:n})}})})}),(0,r.jsx)(i.$n,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return t("pulseUIRadiation")}})]})]})})},p=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.selectedSEBlock,c=l.selectedSESubBlock,s=l.occupant,u=e.dnaBlockSize;return(0,r.jsx)(i.wn,{title:"Modify Structural Enzymes",children:(0,r.jsxs)(i.BJ,{vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{children:(0,r.jsx)(w,{dnaString:s.structuralEnzymes,selectedBlock:a,selectedSubblock:c,blockSize:u,action:"selectSEBlock"})})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"radiation",content:"Irradiate Block",onClick:function(){return t("pulseSERadiation")}})})]})})},x=function(){var e=(0,o.Oc)(),n=e.act,t=e.data,l=t.radiationIntensity,a=t.radiationDuration;return(0,r.jsxs)(i.wn,{title:"Radiation Emitter",children:[(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Intensity",children:(0,r.jsx)(i.N6,{minValue:1,maxValue:10,stepPixelSize:20,value:l,popupPosition:"right",ml:"0",onChange:function(e,t){return n("radiationIntensity",{value:t})}})}),(0,r.jsx)(i.Ki.Item,{label:"Duration",children:(0,r.jsx)(i.N6,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:a,popupPosition:"right",ml:"0",onChange:function(e,t){return n("radiationDuration",{value:t})}})})]}),(0,r.jsx)(i.$n,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){return n("pulseRadiation")}})]})},g=function(){var e=(0,o.Oc)().data.buffers.map(function(e,n){return(0,r.jsx)(j,{id:n+1,name:"Buffer "+(n+1),buffer:e},n)});return(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{height:"75%",mt:1,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Buffers",children:e})}),(0,r.jsx)(i.BJ.Item,{height:"25%",children:(0,r.jsx)(b,{})})]})},j=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=e.id,c=e.name,s=e.buffer,u=l.isInjectorReady,d=c+(s.data?" - "+s.label:"");return(0,r.jsx)(i.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,r.jsxs)(i.wn,{title:d,mx:"0",lineHeight:"18px",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n.Confirm,{disabled:!s.data,icon:"trash",content:"Clear",onClick:function(){return t("bufferOption",{option:"clear",id:a})}}),(0,r.jsx)(i.$n,{disabled:!s.data,icon:"pen",content:"Rename",onClick:function(){return t("bufferOption",{option:"changeLabel",id:a})}}),(0,r.jsx)(i.$n,{disabled:!s.data||!l.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){return t("bufferOption",{option:"saveDisk",id:a})}})]}),children:[(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Write",children:[(0,r.jsx)(i.$n,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return t("bufferOption",{option:"saveUI",id:a})}}),(0,r.jsx)(i.$n,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return t("bufferOption",{option:"saveUIAndUE",id:a})}}),(0,r.jsx)(i.$n,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return t("bufferOption",{option:"saveSE",id:a})}}),(0,r.jsx)(i.$n,{disabled:!l.hasDisk||!l.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return t("bufferOption",{option:"loadDisk",id:a})}})]}),!!s.data&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ki.Item,{label:"Subject",children:s.owner||(0,r.jsx)(i.az,{color:"average",children:"Unknown"})}),(0,r.jsxs)(i.Ki.Item,{label:"Data Type",children:["ui"===s.type?"Unique Identifiers":"Structural Enzymes",!!s.ue&&" and Unique Enzymes"]}),(0,r.jsxs)(i.Ki.Item,{label:"Transfer to",children:[(0,r.jsx)(i.$n,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Injector",mb:"0",onClick:function(){return t("bufferOption",{option:"createInjector",id:a})}}),(0,r.jsx)(i.$n,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Block Injector",mb:"0",onClick:function(){return t("bufferOption",{option:"createInjector",id:a,block:1})}}),(0,r.jsx)(i.$n,{icon:"user",content:"Subject",mb:"0",onClick:function(){return t("bufferOption",{option:"transfer",id:a})}})]})]})]}),!s.data&&(0,r.jsx)(i.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},b=function(){var e=(0,o.Oc)(),n=e.act,t=e.data,l=t.hasDisk,a=t.disk;return(0,r.jsx)(i.wn,{title:"Data Disk",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n.Confirm,{disabled:!l||!a.data,icon:"trash",content:"Wipe",onClick:function(){return n("wipeDisk")}}),(0,r.jsx)(i.$n,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return n("ejectDisk")}})]}),children:l?a.data?(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Label",children:a.label?a.label:"No label"}),(0,r.jsx)(i.Ki.Item,{label:"Subject",children:a.owner?a.owner:(0,r.jsx)(i.az,{color:"average",children:"Unknown"})}),(0,r.jsxs)(i.Ki.Item,{label:"Data Type",children:["ui"===a.type?"Unique Identifiers":"Structural Enzymes",!!a.ue&&" and Unique Enzymes"]})]}):(0,r.jsx)(i.az,{color:"label",children:"Disk is blank."}):(0,r.jsxs)(i.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,r.jsx)(i.In,{name:"save-o",size:4}),(0,r.jsx)("br",{}),"No disk inserted."]})})},y=function(){var e=(0,o.Oc)(),n=e.act,t=e.data,l=t.isBeakerLoaded,a=t.beakerVolume,c=t.beakerLabel;return(0,r.jsx)(i.wn,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,r.jsx)(i.$n,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return n("ejectBeaker")}}),children:l?(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Inject",children:[u.map(function(e,t){return(0,r.jsx)(i.$n,{disabled:e>a,icon:"syringe",content:e,onClick:function(){return n("injectRejuvenators",{amount:e})}},t)}),(0,r.jsx)(i.$n,{disabled:a<=0,icon:"syringe",content:"All",onClick:function(){return n("injectRejuvenators",{amount:a})}})]}),(0,r.jsxs)(i.Ki.Item,{label:"Beaker",children:[(0,r.jsx)(i.az,{mb:"0.5rem",children:c||"No label"}),a?(0,r.jsxs)(i.az,{color:"good",children:[a," unit",1===a?"":"s"," remaining"]}):(0,r.jsx)(i.az,{color:"bad",children:"Empty"})]})]}):(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,align:"center",justify:"center",children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.In.Stack,{children:[(0,r.jsx)(i.In,{name:"flask",size:5,color:"silver"}),(0,r.jsx)(i.In,{name:"slash",size:5,color:"red"})]})}),(0,r.jsx)(i.BJ.Item,{bold:!0,color:"label",mb:"2rem",children:(0,r.jsx)("h3",{children:"No Beaker Loaded"})})]})})},v=function(e){var n=e.duration;return(0,r.jsxs)(i.Rr,{textAlign:"center",children:[(0,r.jsx)(i.In,{name:"spinner",size:5,spin:!0}),(0,r.jsx)("br",{}),(0,r.jsx)(i.az,{color:"average",children:(0,r.jsxs)("h1",{children:[(0,r.jsx)(i.In,{name:"radiation"}),"\xa0Irradiating occupant\xa0",(0,r.jsx)(i.In,{name:"radiation"})]})}),(0,r.jsx)(i.az,{color:"label",children:(0,r.jsxs)("h3",{children:["For ",n," second",1===n?"":"s"]})})]})},w=function(e){for(var n=function(e){for(var n=e/s+1,o=[],l=0;l<s;l++)!function(l){var s=l+1;o.push((0,r.jsx)(i.$n,{selected:a===n&&c===s,content:d[e+l],mb:"0",onClick:function(){return t(u,{block:n,subblock:s})}},l))}(l);f.push((0,r.jsxs)(i.BJ.Item,{mb:"1rem",mr:"1rem",width:7.8,textAlign:"right",children:[(0,r.jsx)(i.az,{inline:!0,mr:"0.5rem",fontFamily:"monospace",children:n}),o]},e))},t=(0,o.Oc)().act,l=e.dnaString,a=e.selectedBlock,c=e.selectedSubblock,s=e.blockSize,u=e.action,d=l.split(""),f=[],h=0;h<d.length;h+=s)n(h);return(0,r.jsx)(i.so,{wrap:"wrap",children:f})}},4283:function(e,n,t){"use strict";t.r(n),t.d(n,{DanceMachine:()=>s});var r=t(8138),i=t(7790),o=t(2864),l=t(3384);function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var c={horn:"Air Horn",alert:"Station Alert",siren:"Warning Siren",honk:"Honk",pump:"Pump",pop:"Pop",saber:"Energy Sword",harm:"Harm Alarm"},s=function(e,n){var t=(0,o.Oc)(),s=t.act,u=t.data,d=u.active,f=u.selectedSong,h=u.songLength,m=u.charge,p=u.available,x=u.onCooldown,g=Math.floor(h/600),j=Math.floor(h%600/10),b=Math.floor(m/7),y=Object.entries(c).map(function(e){var n=function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,2)||function(e,n){if(e){if("string"==typeof e)return a(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),t=n[0],o=n[1];return(0,r.jsx)(i.$n,{onClick:function(){return s(t)},disabled:b<1||!d,children:o},t)});return(0,r.jsx)(l.p8,{width:400,height:300,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Currently Selected: ".concat(f," (").concat(g,":").concat(String(j).padStart(2,"0"),")"),children:(0,r.jsx)(i.ms,{placeholder:"Select Track",selected:f,onSelected:function(e){return s("select",{selectedSong:e})},disabled:d,options:p})})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"DJ's Soundboard - ".concat(b," ").concat(1===b?"Charge":"Charges"," Remaining"),children:y})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{bold:!0,fill:!0,children:d?(0,r.jsx)(i.$n,{height:"100%",verticalAlignContent:"middle",fluid:!0,textAlign:"center",fontSize:"min(8vw, 15vh)",color:"red",disabled:x,onClick:function(){return s("toggle")},children:"SHUT IT DOWN"}):(0,r.jsx)(i.$n,{height:"100%",verticalAlignContent:"middle",fluid:!0,textAlign:"center",fontSize:"min(8vw, 15vh)",color:"green",disabled:x,onClick:function(){return s("toggle")},children:x?"REBOOTING...":"BREAK IT DOWN"})})})]})})})}},5391:function(e,n,t){"use strict";t.r(n),t.d(n,{DecalPainter:()=>m});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(5490),c=t(4530),s=(0,c.createContext)({categoryStyles:[],removalMode:null}),u=function(e){var n=e.decal_typepath,t=e.direction,o=e.isSelected,l=e.onSelect,c="".concat(n.replace(/\//g,"_"),"_").concat(t);return(0,r.jsx)(i.az,{m:"2px",className:(0,a.Ly)(["decal_painter32x32",c]),onClick:l,style:{outlineStyle:o&&"solid"||"none",outlineWidth:"2px",outlineColor:"orange"}})},d=function(){var e=(0,o.Oc)(),n=e.act,t=e.data,l=t.selectedCategory,a=t.categories;return(0,r.jsx)(i.BJ,{vertical:!0,children:(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.tU,{children:a.map(function(e){return(0,r.jsx)(i.tU.Tab,{selected:e==l,onClick:function(){return n("set_category",{category:e})},children:e})})})})})},f=function(){var e=(0,o.Oc)(),n=e.act,t=e.data,l=t.selectedDecalType,a=t.removalMode,d=(0,c.useContext)(s).categoryStyles;return(0,r.jsx)(i.wn,{children:(0,r.jsx)(i.az,{children:(0,r.jsx)(i.so,{wrap:"wrap",children:d.map(function(e){return(0,r.jsx)(i.so.Item,{children:(0,r.jsx)(u,{decal_typepath:e.typepath,direction:2,isSelected:l===e.typepath&&!a,onSelect:function(){return n("set_decal_type",{decal_type:e.typepath})}})},e.typepath)})})})})},h=function(){var e=(0,o.Oc)(),n=e.act,t=e.data,l=t.selectedDecalType,a=t.selectedDir,c=t.removalMode;return(0,r.jsx)(i.XI,{style:{display:"inline"},children:[1,0,2].map(function(e){return(0,r.jsx)(i.XI.Row,{children:[e+8,e,e+4].map(function(e){return(0,r.jsx)(i.XI.Cell,{style:{verticalAlign:"middle",textAlign:"center"},children:0===e?(0,r.jsx)(i.In,{name:"arrows-alt",size:3}):(0,r.jsx)(u,{decal_typepath:l,direction:e,isSelected:e===a&&!c,onSelect:function(){return n("set_direction",{direction:e})}})},e)})},e)})})},m=function(){var e=(0,o.Oc)(),n=e.act,t=e.data,a=t.availableStyles,c=t.removalMode,u=a[t.selectedCategory];return(0,r.jsx)(l.p8,{width:650,height:565,children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsx)(s.Provider,{value:{categoryStyles:u,removalMode:c},children:(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.wn,{title:"Preview",children:[(0,r.jsx)(h,{}),(0,r.jsx)(i.$n,{icon:"eraser",color:c?"green":"transparent",onClick:function(){return n("toggle_removal_mode")},children:"Remove decals"})]})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.wn,{title:"Decals",children:[(0,r.jsx)(d,{}),(0,r.jsx)(f,{})]})})]})})})})}},3883:function(e,n,t){"use strict";t.r(n),t.d(n,{DestinationTagger:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n,t=(0,o.Oc)(),a=t.act,c=t.data,s=c.destinations,u=c.selected_destination_id,d=s[u-1];return(0,r.jsx)(l.p8,{width:355,height:330,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.BJ,{fill:!0,vertical:!0,children:(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,textAlign:"center",title:"TagMaster 3.1",children:[(0,r.jsxs)(i.az,{width:"100%",textAlign:"center",children:[(0,r.jsx)(i.az,{color:"label",inline:!0,children:"Selected:"})," ",null!=(n=d.name)?n:"None"]}),(0,r.jsx)(i.az,{mt:1.5,children:(0,r.jsx)(i.BJ,{overflowY:"auto",wrap:"wrap",align:"center",justify:"space-evenly",direction:"row",children:s.map(function(e,n){return(0,r.jsx)(i.BJ.Item,{m:"2px",children:(0,r.jsx)(i.$n,{color:"transparent",width:"105px",textAlign:"center",content:e.name,selected:e.id===u,onClick:function(){return a("select_destination",{destination:e.id})}})},n)})})})]})})})})}},6381:function(e,n,t){"use strict";t.r(n),t.d(n,{DisposalBin:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n,t,a=(0,o.Oc)(),c=a.act,s=a.data;return 2===s.mode?(n="good",t="Ready"):s.mode<=0?(n="bad",t="N/A"):1===s.mode?(n="average",t="Pressurizing"):(n="average",t="Idle"),(0,r.jsx)(l.p8,{width:300,height:260,children:(0,r.jsxs)(l.p8.Content,{children:[(0,r.jsx)(i.wn,{title:"Status",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"State",color:n,children:t}),(0,r.jsx)(i.Ki.Item,{label:"Pressure",children:(0,r.jsx)(i.z2,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:s.pressure,minValue:0,maxValue:100})})]})}),(0,r.jsx)(i.wn,{title:"Controls",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Handle",children:[(0,r.jsx)(i.$n,{icon:"toggle-off",disabled:s.isAI||s.panel_open,content:"Disengaged",selected:!s.flushing,onClick:function(){return c("disengageHandle")}}),(0,r.jsx)(i.$n,{icon:"toggle-on",disabled:s.isAI||s.panel_open,content:"Engaged",selected:s.flushing,onClick:function(){return c("engageHandle")}})]}),(0,r.jsxs)(i.Ki.Item,{label:"Power",children:[(0,r.jsx)(i.$n,{icon:"toggle-off",disabled:-1===s.mode,content:"Off",selected:!s.mode,onClick:function(){return c("pumpOff")}}),(0,r.jsx)(i.$n,{icon:"toggle-on",disabled:-1===s.mode,content:"On",selected:s.mode,onClick:function(){return c("pumpOn")}})]}),(0,r.jsx)(i.Ki.Item,{label:"Eject",children:(0,r.jsx)(i.$n,{icon:"sign-out-alt",disabled:s.isAI,content:"Eject Contents",onClick:function(){return c("eject")}})})]})})]})})}},2908:function(e,n,t){"use strict";t.r(n),t.d(n,{DnaVault:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(7946),a=t(3384),c=function(e){var n=(0,o.Oc)(),t=(n.act,n.data).completed;return(0,r.jsx)(a.p8,{width:350,height:270,children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(s,{}),!!t&&(0,r.jsx)(u,{})]})})})},s=function(e){var n=(0,o.Oc)(),t=(n.act,n.data),l=t.dna,a=t.dna_max,c=t.plants,s=t.plants_max,u=t.animals,d=t.animals_max;return(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,title:"DNA Vault Database",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Human DNA",children:(0,r.jsx)(i.z2,{value:l/a,ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},children:l+" / "+a+" Samples"})}),(0,r.jsx)(i.Ki.Item,{label:"Plant DNA",children:(0,r.jsx)(i.z2,{value:c/s,ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},children:c+" / "+s+" Samples"})}),(0,r.jsx)(i.Ki.Item,{label:"Animal DNA",children:(0,r.jsx)(i.z2,{value:u/d,ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},children:u+" / "+d+" Samples"})})]})})})},u=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.choiceA,s=a.choiceB,u=a.used;return(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.wn,{fill:!0,title:"Personal Gene Therapy",children:[(0,r.jsx)(i.az,{bold:!0,textAlign:"center",mb:1,children:"Applicable Gene Therapy Treatments"}),!u&&(0,r.jsxs)(l.xA,{children:[(0,r.jsx)(l.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,bold:!0,content:c,textAlign:"center",onClick:function(){return t("gene",{choice:c})}})}),(0,r.jsx)(l.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,bold:!0,content:s,textAlign:"center",onClick:function(){return t("gene",{choice:s})}})})]})||(0,r.jsx)(i.az,{bold:!0,textAlign:"center",mb:1,children:"Users DNA deemed unstable. Unable to provide more upgrades."})]})})}},2480:function(e,n,t){"use strict";t.r(n),t.d(n,{DroneConsole:()=>c});var r=t(8138),i=t(7790),o=t(3268),l=t(2864),a=t(3384),c=function(e){return(0,r.jsx)(a.p8,{width:420,height:500,children:(0,r.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,r.jsx)(s,{}),(0,r.jsx)(u,{})]})})},s=function(e){var n=(0,l.Oc)(),t=n.act,o=n.data,a=o.drone_fab,c=o.fab_power,s=o.drone_prod,u=o.drone_progress;return(0,r.jsx)(i.wn,{title:"Drone Fabricator",buttons:(0,r.jsx)(i.$n,{icon:"power-off",content:s?"Online":"Offline",color:s?"green":"red",onClick:function(){return t("toggle_fab")}}),children:a?(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"External Power",children:(0,r.jsxs)(i.az,{color:c?"good":"bad",children:["[ ",c?"Online":"Offline"," ]"]})}),(0,r.jsx)(i.Ki.Item,{label:"Drone Production",children:(0,r.jsx)(i.z2,{value:u/100,ranges:{good:[.7,1/0],average:[.4,.7],bad:[-1/0,.4]}})})]}):(0,r.jsx)(i.IC,{textAlign:"center",danger:1,children:(0,r.jsxs)(i.so,{inline:1,direction:"column",children:[(0,r.jsx)(i.so.Item,{children:"FABRICATOR NOT DETECTED."}),(0,r.jsx)(i.so.Item,{children:(0,r.jsx)(i.$n,{icon:"search",content:"Search",onClick:function(){return t("find_fab")}})})]})})})},u=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data,c=a.drones,s=a.area_list,u=a.selected_area,d=a.ping_cd,f=function(e,n){var t,o;return 2===e?(t="bad",o="Disabled"):1!==e&&n?(t="good",o="Active"):(t="average",o="Inactive"),(0,r.jsx)(i.az,{color:t,children:o})};return(0,r.jsxs)(i.wn,{title:"Maintenance Units",children:[(0,r.jsxs)(i.so,{children:[(0,r.jsx)(i.so.Item,{children:"Request Drone presence in area:\xa0"}),(0,r.jsx)(i.so.Item,{children:(0,r.jsx)(i.ms,{options:s,selected:u,width:"125px",onSelected:function(e){return t("set_area",{area:e})}})})]}),(0,r.jsx)(i.$n,{content:"Send Ping",icon:"broadcast-tower",disabled:d||!c.length,title:c.length?null:"No active drones!",fluid:!0,textAlign:"center",py:.4,mt:.6,onClick:function(){return t("ping")}}),(0,r.jsx)(function(){if(c.length)return(0,r.jsx)(i.az,{py:.2,children:(0,r.jsx)(i.cG,{})})},{}),c.map(function(e){return(0,r.jsx)(i.wn,{title:(0,o.Sn)(e.name),buttons:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"sync",content:"Resync",disabled:2===e.stat||e.sync_cd,onClick:function(){return t("resync",{uid:e.uid})}})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n.Confirm,{icon:"power-off",content:"Recall",disabled:2===e.stat||e.pathfinding,tooltip:e.pathfinding?"This drone is currently pathfinding, please wait.":null,tooltipPosition:"left",color:"bad",onClick:function(){return t("recall",{uid:e.uid})}})})]}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Status",children:f(e.stat,e.client)}),(0,r.jsx)(i.Ki.Item,{label:"Integrity",children:(0,r.jsx)(i.z2,{value:e.health,ranges:{good:[.7,1/0],average:[.4,.7],bad:[-1/0,.4]}})}),(0,r.jsx)(i.Ki.Item,{label:"Charge",children:(0,r.jsx)(i.z2,{value:e.charge,ranges:{good:[.7,1/0],average:[.4,.7],bad:[-1/0,.4]}})}),(0,r.jsx)(i.Ki.Item,{label:"Location",children:e.location})]})},e.name)})]})}},1654:function(e,n,t){"use strict";t.r(n),t.d(n,{EFTPOS:()=>u});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var u=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data,l=i.transaction_locked,s=i.machine_name;return(0,r.jsx)(c.p8,{width:500,height:250,children:(0,r.jsx)(c.p8.Content,{children:(0,r.jsx)(o.wn,{title:"POS Terminal "+s,buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.$n,{content:l?"Unlock EFTPOS":"Lock EFTPOS",tooltip:"Enter pin to modify transactions and EFTPOS settings",icon:l?"lock-open":"lock",onClick:function(){return t("toggle_lock")}}),(0,r.jsx)(o.$n,{content:"Reset EFTPOS",tooltip:"Requires Captain, HoP or CC access",icon:"sync",onClick:function(){return t("reset")}})]}),children:l?(0,r.jsx)(d,{}):(0,r.jsx)(f,{})})})})},d=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data,l=i.transaction_amount,c=i.transaction_paid,s=i.can_offer;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.az,{mt:2,bold:!0,width:"100%",fontSize:"3rem",color:c?"green":"red",align:"center",justify:"center",children:["Payment ",c?"Accepted":"Due",": $",l]}),(0,r.jsx)(o.az,{mt:.5,fontSize:"1.25rem",align:"center",justify:"center",children:c?"This transaction has been processed successfully ":"Swipe your card to finish this transaction."}),s&&(0,r.jsx)(o.az,{mt:.5,fontSize:"1.25rem",align:"center",justify:"center",children:(0,r.jsx)(o.$n,{content:"Request Payment",icon:"credit-card",onClick:function(){return t("offer")}})})||""]})},f=function(e){var n,t,c=(0,a.Oc)(),u=c.act,d=c.data,f=(n=(0,i.useState)(""),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return s(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=f[0],m=f[1],p=d.transaction_purpose,x=d.transaction_amount,g=d.linked_account,j=d.available_accounts;d.can_offer;var b=[];return j.map(function(e){return b[e.name]=e.UID}),(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Transaction Purpose",children:(0,r.jsx)(o.$n,{content:p,icon:"edit",onClick:function(){return u("trans_purpose")}})}),(0,r.jsx)(o.Ki.Item,{label:"Value",children:(0,r.jsx)(o.$n,{content:x?"$"+x:"$0",icon:"edit",onClick:function(){return u("trans_value")}})}),(0,r.jsxs)(o.Ki.Item,{label:"Linked Account",children:[(0,r.jsx)(o.az,{mb:.5,children:g.name}),(0,r.jsx)(o.pd,{width:"190px",placeholder:"Search by name",onChange:function(e){return m(e)}}),(0,r.jsx)(o.ms,{mt:.6,width:"190px",options:j.filter((0,l.XZ)(h,function(e){return e.name})).map(function(e){return e.name}),selected:null==(t=j.filter(function(e){return e.UID===g.UID})[0])?void 0:t.name,onSelected:function(e){return u("link_account",{account:b[e]})}})]}),(0,r.jsx)(o.Ki.Item,{label:"Actions",children:(0,r.jsx)(o.$n,{content:"Change access code",icon:"key",onClick:function(){return u("change_code")}})})]})}},3991:function(e,n,t){"use strict";t.r(n),t.d(n,{ERTManager:()=>f,ERTOverview:()=>h});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=function(e){switch(e){case 0:return(0,r.jsx)(m,{});case 1:return(0,r.jsx)(p,{});case 2:return(0,r.jsx)(x,{});default:return"SOMETHING WENT VERY WRONG PLEASE AHELP, WAIT YOU'RE AN ADMIN, OH FUUUUCK! call a coder or something"}},f=function(){var e=u((0,i.useState)(0),2),n=e[0],t=e[1];return(0,r.jsx)(c.p8,{width:360,height:510,children:(0,r.jsx)(c.p8.Content,{children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(h,{}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.tU,{fluid:!0,children:[(0,r.jsx)(o.tU.Tab,{selected:0===n,onClick:function(){t(0)},icon:"ambulance",children:"Send ERT"},"SendERT"),(0,r.jsx)(o.tU.Tab,{selected:1===n,onClick:function(){t(1)},icon:"book",children:"Read ERT Requests"},"ReadERTRequests"),(0,r.jsx)(o.tU.Tab,{selected:2===n,onClick:function(){t(2)},icon:"times",children:"Deny ERT"},"DenyERT")]})}),d(n)]})})})},h=function(){var e=(0,a.Oc)(),n=e.act,t=e.data,i=t.security_level_color,l=t.str_security_level,c=t.ert_request_answered;return(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.wn,{title:"Overview",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Current Alert",color:i,children:l}),(0,r.jsx)(o.Ki.Item,{label:"ERT Request",children:(0,r.jsx)(o.$n.Checkbox,{checked:c,textColor:c?null:"bad",onClick:function(){return n("toggle_ert_request_answered")},tooltip:"Checking this box will disable the next ERT reminder notification",selected:null,children:c?"Answered":"Unanswered"})})]})})})},m=function(){var e=(0,a.Oc)(),n=e.act,t=e.data,l=t.ert_type,c=t.com,s=t.sec,d=t.med,f=t.eng,h=t.par,m=t.jan,p=t.cyb,x=t.secborg,g=t.total,j=t.spawnpoints,b=[0,1,2,3,4,5],y=u((0,i.useState)(!1),2),v=y[0],w=y[1];return(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"Send ERT",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.$n,{width:5,textAlign:"center",color:"Amber"===l?"orange":"",onClick:function(){return n("ert_type",{ert_type:"Amber"})},children:"Amber"}),(0,r.jsx)(o.$n,{width:5,textAlign:"center",color:"Red"===l?"red":"",onClick:function(){return n("ert_type",{ert_type:"Red"})},children:"Red"}),(0,r.jsx)(o.$n,{width:5,textAlign:"center",color:"Gamma"===l?"purple":"",onClick:function(){return n("ert_type",{ert_type:"Gamma"})},children:"Gamma"})]}),children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Commander",children:(0,r.jsx)(o.$n,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){return n("toggle_com")},children:c?"Yes":"No"})}),(0,r.jsx)(o.Ki.Item,{label:"Security",children:b.map(function(e,t){return(0,r.jsx)(o.$n,{selected:s===e,onClick:function(){return n("set_sec",{set_sec:e})},children:String(e)},"sec"+e)})}),(0,r.jsx)(o.Ki.Item,{label:"Medical",children:b.map(function(e,t){return(0,r.jsx)(o.$n,{selected:d===e,onClick:function(){return n("set_med",{set_med:e})},children:String(e)},"med"+e)})}),(0,r.jsx)(o.Ki.Item,{label:"Engineering",children:b.map(function(e,t){return(0,r.jsx)(o.$n,{selected:f===e,onClick:function(){return n("set_eng",{set_eng:e})},children:String(e)},"eng"+e)})}),(0,r.jsx)(o.Ki.Item,{label:"Paranormal",children:b.map(function(e,t){return(0,r.jsx)(o.$n,{selected:h===e,onClick:function(){return n("set_par",{set_par:e})},children:String(e)},"par"+e)})}),(0,r.jsx)(o.Ki.Item,{label:"Janitor",children:b.map(function(e,t){return(0,r.jsx)(o.$n,{selected:m===e,onClick:function(){return n("set_jan",{set_jan:e})},children:String(e)},"jan"+e)})}),(0,r.jsx)(o.Ki.Item,{label:"Cyborg",children:b.map(function(e,t){return(0,r.jsx)(o.$n,{selected:p===e,onClick:function(){return n("set_cyb",{set_cyb:e})},children:String(e)},"cyb"+e)})}),(0,r.jsx)(o.Ki.Item,{label:"Security Module",children:(0,r.jsx)(o.$n,{width:10.5,disabled:"Red"!==l||!p,icon:x?"toggle-on":"toggle-off",color:x?"red":"",textAlign:"center",onClick:function(){return n("toggle_secborg")},children:x?"Enabled":"Red"!==l?"Unavailable":"Disabled"})}),(0,r.jsx)(o.Ki.Item,{label:"Silent ERT",children:(0,r.jsx)(o.$n,{width:10.5,icon:v?"microphone-slash":"microphone",textAlign:"center",selected:v,onClick:function(){return w(!v)},tooltip:v?"This ERT will not be announced to the station":"This ERT will be announced to the station on dispatch",tooltipPosition:"top",children:v?"Silenced":"Public"})}),(0,r.jsx)(o.Ki.Item,{label:"Total Slots",children:(0,r.jsxs)(o.az,{color:g>j?"red":"green",children:[g," total, versus ",j," spawnpoints"]})}),(0,r.jsx)(o.Ki.Item,{label:"Dispatch",children:(0,r.jsx)(o.$n,{width:10.5,textAlign:"center",icon:"ambulance",onClick:function(){return n("dispatch_ert",{silent:v})},children:"Send ERT"})})]})})})},p=function(){var e=(0,a.Oc)(),n=e.act,t=e.data.ert_request_messages;return(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,children:t&&t.length?t.map(function(e){return(0,r.jsx)(o.wn,{title:e.time,buttons:(0,r.jsx)(o.$n,{onClick:function(){return n("view_player_panel",{uid:e.sender_uid})},tooltip:"View player panel",children:e.sender_real_name}),children:e.message},(0,l.jT)(e.time))}):(0,r.jsx)(o.BJ,{fill:!0,children:(0,r.jsxs)(o.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,r.jsxs)(o.In.Stack,{children:[(0,r.jsx)(o.In,{name:"broadcast-tower",size:5,color:"gray"}),(0,r.jsx)(o.In,{name:"slash",size:5,color:"red"})]}),(0,r.jsx)("br",{}),"No ERT requests."]})})})})},x=function(){var e=(0,a.Oc)().act,n=u((0,i.useState)(""),2),t=n[0],l=n[1];return(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsxs)(o.wn,{fill:!0,children:[(0,r.jsx)(o.fs,{placeholder:"Enter ERT denial reason here. Shift-Enter to add a new line.",fluid:!0,height:24,value:t,onChange:function(e){return l(e)}}),(0,r.jsx)(o.$n.Confirm,{fluid:!0,icon:"times",mt:2,textAlign:"center",onClick:function(){return e("deny_ert",{reason:t})},children:"Deny ERT"})]})})}},9644:function(e,n,t){"use strict";t.r(n),t.d(n,{EconomyManager:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(4744),c=function(e){return(0,r.jsxs)(l.p8,{width:600,height:325,children:[(0,r.jsx)(a.ComplexModal,{}),(0,r.jsx)(l.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,r.jsx)(s,{})})]})},s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.next_payroll_time;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.wn,{children:[(0,r.jsxs)(i.az,{fontSize:"1.4rem",bold:!0,children:[(0,r.jsx)(i.In,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,r.jsx)("br",{}),(0,r.jsxs)(i.Ki,{label:"Pay Bonuses and Deductions",children:[(0,r.jsx)(i.Ki.Item,{label:"Global",children:(0,r.jsx)(i.$n,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){return t("payroll_modification",{mod_type:"global"})}})}),(0,r.jsx)(i.Ki.Item,{label:"Department Accounts",children:(0,r.jsx)(i.$n,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){return t("payroll_modification",{mod_type:"department"})}})}),(0,r.jsx)(i.Ki.Item,{label:"Department Members",children:(0,r.jsx)(i.$n,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){return t("payroll_modification",{mod_type:"department_members"})}})}),(0,r.jsx)(i.Ki.Item,{label:"Single Accounts",children:(0,r.jsx)(i.$n,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){return t("payroll_modification",{mod_type:"crew_member"})}})})]}),(0,r.jsx)("hr",{}),(0,r.jsxs)(i.az,{mb:.5,children:["Next Payroll in: ",l," Minutes"]}),(0,r.jsx)(i.$n,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){return t("delay_payroll")}}),(0,r.jsx)(i.$n,{width:"auto",content:"Set Payroll Time",onClick:function(){return t("set_payroll")}}),(0,r.jsx)(i.$n,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){return t("accelerate_payroll")}})]}),(0,r.jsxs)(i.IC,{children:[(0,r.jsx)("b",{children:"WARNING:"})," You take full responsibility for unbalancing the economy with these buttons!"]})]})}},6426:function(e,n,t){"use strict";t.r(n),t.d(n,{Electropack:()=>c});var r=t(8138),i=t(7790),o=t(6859),l=t(2864),a=t(3384),c=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data,s=c.power,u=c.code,d=c.frequency,f=c.minFrequency,h=c.maxFrequency;return(0,r.jsx)(a.p8,{width:360,height:135,children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Power",children:(0,r.jsx)(i.$n,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,onClick:function(){return t("power")}})}),(0,r.jsx)(i.Ki.Item,{label:"Frequency",buttons:(0,r.jsx)(i.$n,{icon:"sync",content:"Reset",onClick:function(){return t("reset",{reset:"freq"})}}),children:(0,r.jsx)(i.Q7,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:f/10,maxValue:h/10,value:d/10,format:function(e){return(0,o.Mg)(e,1)},width:"80px",onChange:function(e){return t("freq",{freq:e})}})}),(0,r.jsx)(i.Ki.Item,{label:"Code",buttons:(0,r.jsx)(i.$n,{icon:"sync",content:"Reset",onClick:function(){return t("reset",{reset:"code"})}}),children:(0,r.jsx)(i.Q7,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onChange:function(e){return t("code",{code:e})}})})]})})})})}},9480:function(e,n,t){"use strict";t.r(n),t.d(n,{Emojipedia:()=>u});var r=t(8138),i=t(4530),o=t(7790),l=t(5490),a=t(2864),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var u=function(e){var n,t=(0,a.Oc)().data.emoji_list,u=(n=(0,i.useState)(""),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return s(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=u[0],h=u[1],m=t.filter(function(e){return e.name.toLowerCase().includes(f.toLowerCase())});return(0,r.jsx)(c.p8,{width:325,height:400,children:(0,r.jsx)(c.p8.Content,{scrollable:!0,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.pd,{placeholder:"Search by name",value:f,onChange:function(e){return h(e)}}),(0,r.jsx)(o.$n,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})]}),children:m.map(function(e){return(0,r.jsx)(o.$n,{m:1,color:"transparent",className:(0,l.Ly)(["emoji16x16","emoji-".concat(e.name)]),style:{transform:"scale(1.5)"},tooltip:e.name,onClick:function(){d(e.name)}},e.name)})})})})},d=function(e){var n=document.createElement("input");n.value=":".concat(e,":"),document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}},9219:function(e,n,t){"use strict";t.r(n),t.d(n,{EvolutionMenu:()=>f});var r=t(8138),i=t(8587),o=t(4530),l=t(7790),a=t(3268),c=t(2864),s=t(3384);function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var f=function(e){return(0,r.jsx)(s.p8,{width:480,height:580,theme:"changeling",children:(0,r.jsx)(s.p8.Content,{children:(0,r.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(h,{}),(0,r.jsx)(m,{})]})})})},h=function(e){var n=(0,c.Oc)(),t=n.act,i=n.data,o=i.evo_points,a=i.can_respec;return(0,r.jsx)(l.BJ.Item,{children:(0,r.jsx)(l.wn,{title:"Evolution Points",height:5.5,children:(0,r.jsxs)(l.BJ,{children:[(0,r.jsx)(l.BJ.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,r.jsx)(l.BJ.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:o}),(0,r.jsxs)(l.BJ.Item,{children:[(0,r.jsx)(l.$n,{ml:2.5,disabled:!a,content:"Readapt",icon:"sync",onClick:function(){return t("readapt")}}),(0,r.jsx)(l.$n,{tooltip:"By transforming a humanoid into a husk, \\ we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},m=function(e){var n=(0,c.Oc)(),t=n.act,s=n.data,u=s.evo_points,f=s.ability_tabs,h=s.purchased_abilities,m=s.view_mode,p=d((0,o.useState)(f[0]),2),x=p[0],g=p[1],j=d((0,o.useState)(""),2),b=j[0],y=j[1],v=d((0,o.useState)(f[0].abilities),2),w=v[0],k=v[1],_=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e&&0!==e.length?(e=(0,i.pb)(e,function(e){return!!(null==e?void 0:e.name)}),n&&(e=(0,i.pb)(e,(0,a.XZ)(n,function(e){return e.name+"|"+e.description}))),(0,i.Ul)(e,function(e){return null==e?void 0:e.name})):[]},C=function(e){if(y(e),""===e)return k(x.abilities);k(_(f.map(function(e){return e.abilities}).flat(),e))},I=function(e){g(e),k(e.abilities),y("")};return(0,r.jsx)(l.BJ.Item,{grow:!0,children:(0,r.jsxs)(l.wn,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.pd,{width:"200px",placeholder:"Search Abilities",onChange:function(e){C(e)},value:b}),(0,r.jsx)(l.$n,{icon:m?"square-o":"check-square-o",selected:!m,content:"Compact",onClick:function(){return t("set_view_mode",{mode:0})}}),(0,r.jsx)(l.$n,{icon:m?"check-square-o":"square-o",selected:m,content:"Expanded",onClick:function(){return t("set_view_mode",{mode:1})}})]}),children:[(0,r.jsx)(l.tU,{children:f.map(function(e){return(0,r.jsx)(l.tU.Tab,{selected:""===b&&x===e,onClick:function(){I(e)},children:e.category},e)})}),w.map(function(e,n){return(0,r.jsxs)(l.az,{p:.5,mx:-1,className:"candystripe",children:[(0,r.jsxs)(l.BJ,{align:"center",children:[(0,r.jsx)(l.BJ.Item,{ml:.5,color:"#dedede",children:e.name}),h.includes(e.power_path)&&(0,r.jsx)(l.BJ.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,r.jsxs)(l.BJ.Item,{mr:3,textAlign:"right",grow:1,children:[(0,r.jsxs)(l.az,{as:"span",color:"label",children:["Cost:"," "]}),(0,r.jsx)(l.az,{as:"span",bold:!0,color:"#1b945c",children:e.cost})]}),(0,r.jsx)(l.BJ.Item,{textAlign:"right",children:(0,r.jsx)(l.$n,{mr:.5,disabled:e.cost>u||h.includes(e.power_path),content:"Evolve",onClick:function(){return t("purchase",{power_path:e.power_path})}})})]}),!!m&&(0,r.jsx)(l.BJ,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:e.description+" "+e.helptext})]},n)})]})})}},6251:function(e,n,t){"use strict";t.r(n),t.d(n,{ExosuitFabricator:()=>h});var r=t(8138),i=t(4530),o=t(7790),l=t(5490),a=t(3268),c=t(2864),s=t(7946),u=t(3384);function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h=function(e){var n=(0,c.Oc)(),t=(n.act,n.data),l=t.building,a=t.linked,s=f((0,i.useState)(!1),2),d=s[0],h=s[1];return a?(0,r.jsx)(u.p8,{width:950,height:625,children:(0,r.jsxs)(u.p8.Content,{className:"Exofab",children:[(0,r.jsx)(v,{showLevelsModal:d,setShowLevelsModal:h}),(0,r.jsxs)(o.BJ,{fill:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(p,{setShowLevelsModal:h})}),l&&(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(x,{})})]})}),(0,r.jsx)(o.BJ.Item,{width:"30%",children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(m,{})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(g,{})})]})})]})]})}):(0,r.jsx)(y,{})},m=function(e){var n=(0,c.Oc)(),t=n.act,i=n.data,l=i.materials,a=i.capacity,s=Object.values(l).reduce(function(e,n){return e+n},0);return(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,r.jsxs)(o.az,{color:"label",mt:"0.25rem",children:[(s/a*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(e){return(0,r.jsx)(j,{mt:-2,id:e,bold:"metal"===e||"glass"===e,onClick:function(){return t("withdraw",{id:e})}},e)})})},p=function(e){var n=(0,c.Oc)(),t=n.act,l=n.data,s=l.curCategory,u=l.categories,d=l.designs;l.syncing;var h=f((0,i.useState)(""),2),m=h[0],p=h[1],x=(0,a.XZ)(m,function(e){return e.name}),g=d.filter(x),j=e.setShowLevelsModal;return(0,r.jsxs)(o.wn,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,r.jsxs)(o.BJ,{fill:!0,fontSize:1,align:"center",children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.ms,{width:19,selected:s,options:u,onSelected:function(e){return t("category",{cat:e})}})}),(0,r.jsx)(o.BJ.Item,{grow:!0}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{icon:"plus",content:"Queue all",onClick:function(){return t("queueall")}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{icon:"info",content:"Show current tech levels",onClick:function(){return j(!0)}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{icon:"unlink",color:"red",tooltip:"Disconnect from R&D network",onClick:function(){return t("unlink")}})})]}),children:[(0,r.jsx)(o.pd,{mb:"0.5rem",width:"100%",placeholder:"Search by name...",onChange:function(e){return p(e)}}),g.map(function(e){return(0,r.jsx)(b,{design:e},e.id)}),0===g.length&&(0,r.jsx)(o.az,{color:"label",children:"No designs found."})]})};function x(){var e=(0,c.Oc)(),n=(e.act,e.data),t=n.building,i=n.buildStart,l=n.buildEnd;return(0,r.jsx)(o.wn,{className:"Exofab__building",stretchContents:!0,children:(0,r.jsx)(s.Gi,{progressBar:!0,timeStart:i,timeEnd:l,format:function(e,n){return n.substr(3)},children:(0,r.jsxs)(o.BJ,{fill:!0,children:[(0,r.jsxs)(o.BJ.Item,{grow:!0,children:[(0,r.jsx)(o.In,{spin:!0,name:"cog"})," Building"]}),(0,r.jsx)(o.BJ.Item,{children:t})]})})})}var g=function(e){var n=(0,c.Oc)(),t=n.act,i=n.data,l=i.queue,a=i.processingQueue,s=Object.entries(i.queueDeficit).filter(function(e){return e[1]<0}),u=l.reduce(function(e,n){return e+n.time},0);return(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,r.jsxs)(o.az,{children:[(0,r.jsx)(o.$n,{selected:a,icon:a?"toggle-on":"toggle-off",content:"Process",onClick:function(){return t("process")}}),(0,r.jsx)(o.$n,{disabled:0===l.length,icon:"eraser",content:"Clear",onClick:function(){return t("unqueueall")}})]}),children:(0,r.jsx)(o.BJ,{fill:!0,vertical:!0,children:0===l.length?(0,r.jsx)(o.az,{color:"label",children:"The queue is empty."}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BJ.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:l.map(function(e,n){return(0,r.jsxs)(o.az,{color:e.notEnough&&"bad",children:[n+1,". ",e.name,n>0&&(0,r.jsx)(o.$n,{icon:"arrow-up",onClick:function(){return t("queueswap",{from:n+1,to:n})}}),n<l.length-1&&(0,r.jsx)(o.$n,{icon:"arrow-down",onClick:function(){return t("queueswap",{from:n+1,to:n+2})}}),(0,r.jsx)(o.$n,{icon:"times",color:"red",onClick:function(){return t("unqueue",{index:n+1})}})]},n)})}),u>0&&(0,r.jsxs)(o.BJ.Item,{className:"Exofab__queue--time",children:[(0,r.jsx)(o.cG,{}),"Processing time:",(0,r.jsx)(o.In,{name:"clock",mx:"0.5rem"}),(0,r.jsx)(o.az,{inline:!0,bold:!0,children:new Date(u/10*1e3).toISOString().substr(14,5)})]}),Object.keys(s).length>0&&(0,r.jsxs)(o.BJ.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,r.jsx)(o.cG,{}),"Lacking materials to complete:",s.map(function(e){return(0,r.jsx)(o.az,{children:(0,r.jsx)(j,{id:e[0],amount:-e[1],lineDisplay:!0})},e[0])})]})]})})})},j=function(e){var n,t,i=(0,c.Oc)(),a=(i.act,i.data),s=e.id,u=e.amount,d=e.lineDisplay,f=e.onClick,h=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["id","amount","lineDisplay","onClick"]),m=a.materials[s]||0,p=u||m;if(!(p<=0)||"metal"===s||"glass"===s)return(0,r.jsx)(o.BJ,(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({align:"center",className:(0,l.Ly)(["Exofab__material",d&&"Exofab__material--line"])},h),t=t={children:d?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BJ.Item,{className:(0,l.Ly)(["materials32x32",s])}),(0,r.jsx)(o.BJ.Item,{className:"Exofab__material--amount",color:u&&u>m&&"bad",ml:0,mr:1,children:p.toLocaleString("en-US")})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BJ.Item,{basis:"content",children:(0,r.jsx)(o.$n,{width:"85%",color:"transparent",onClick:f,children:(0,r.jsx)(o.az,{mt:1,className:(0,l.Ly)(["materials32x32",s])})})}),(0,r.jsxs)(o.BJ.Item,{grow:"1",children:[(0,r.jsx)(o.az,{className:"Exofab__material--name",children:s}),(0,r.jsxs)(o.az,{className:"Exofab__material--amount",children:[p.toLocaleString("en-US")," cm\xb3 (",Math.round(p/2e3*10)/10," ","sheets)"]})]})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))},b=function(e){var n=(0,c.Oc)(),t=n.act,i=n.data,l=e.design;return(0,r.jsxs)(o.az,{className:"Exofab__design",children:[(0,r.jsx)(o.$n,{disabled:l.notEnough||i.building,icon:"cog",content:l.name,onClick:function(){return t("build",{id:l.id})}}),(0,r.jsx)(o.$n,{icon:"plus-circle",onClick:function(){return t("queue",{id:l.id})}}),(0,r.jsx)(o.az,{className:"Exofab__design--cost",children:Object.entries(l.cost).map(function(e){return(0,r.jsx)(o.az,{children:(0,r.jsx)(j,{id:e[0],amount:e[1],lineDisplay:!0})},e[0])})}),(0,r.jsx)(o.BJ,{className:"Exofab__design--time",children:(0,r.jsxs)(o.BJ.Item,{children:[(0,r.jsx)(o.In,{name:"clock"}),l.time>0?(0,r.jsxs)(r.Fragment,{children:[l.time/10," seconds"]}):"Instant"]})})]})},y=function(e){var n=(0,c.Oc)(),t=n.act,i=n.data.controllers;return(0,r.jsx)(u.p8,{children:(0,r.jsx)(u.p8.Content,{children:(0,r.jsx)(o.wn,{title:"Setup Linkage",children:(0,r.jsxs)(o.XI,{m:"0.5rem",children:[(0,r.jsxs)(o.XI.Row,{header:!0,children:[(0,r.jsx)(o.XI.Cell,{children:"Network Address"}),(0,r.jsx)(o.XI.Cell,{children:"Network ID"}),(0,r.jsx)(o.XI.Cell,{children:"Link"})]}),i.map(function(e){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e.addr}),(0,r.jsx)(o.XI.Cell,{children:e.net_id}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.$n,{content:"Link",icon:"link",onClick:function(){return t("linktonetworkcontroller",{target_controller:e.addr})}})})]},e.addr)})]})})})})},v=function(e){var n=(0,c.Oc)(),t=(n.act,n.data).tech_levels,i=e.showLevelsModal,l=e.setShowLevelsModal;return i?(0,r.jsx)(o.aF,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:.75*window.innerHeight+"px",mx:"auto",children:(0,r.jsx)(o.wn,{title:"Current tech levels",buttons:(0,r.jsx)(o.$n,{content:"Close",onClick:function(){l(!1)}}),children:(0,r.jsx)(o.Ki,{children:t.map(function(e){var n=e.name,t=e.level;return(0,r.jsx)(o.Ki.Item,{label:n,children:t},n)})})})}):null}},9621:function(e,n,t){"use strict";t.r(n),t.d(n,{ExperimentConsole:()=>s});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),c=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),s=function(e){var n=(0,o.Oc)(),t=n.act,s=n.data,u=s.open,d=s.feedback,f=s.occupant,h=s.occupant_name,m=s.occupant_status,p=function(){if(!f)return(0,r.jsx)(i.IC,{children:"No specimen detected."});var e=a.get(m);return(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Name",children:h}),(0,r.jsx)(i.Ki.Item,{label:"Status",color:e.color,children:e.text}),(0,r.jsx)(i.Ki.Item,{label:"Experiments",children:[0,1,2].map(function(e){return(0,r.jsx)(i.$n,{icon:c.get(e).icon,content:c.get(e).label,onClick:function(){return t("experiment",{experiment_type:e})}},e)})})]})}();return(0,r.jsx)(l.p8,{theme:"abductor",width:350,height:200,children:(0,r.jsxs)(l.p8.Content,{children:[(0,r.jsx)(i.wn,{children:(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Status",children:d})})}),(0,r.jsx)(i.wn,{title:"Scanner",buttons:(0,r.jsx)(i.$n,{icon:"eject",content:"Eject",disabled:!u,onClick:function(){return t("door")}}),children:p})]})})}},5091:function(e,n,t){"use strict";t.r(n),t.d(n,{ExternalAirlockController:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n="good";return e<80?n="bad":e<95||e>110?n="average":e>120&&(n="bad"),n},c=function(e){var n=(0,o.Oc)(),t=n.act,c=n.data,s=c.chamber_pressure,u=(c.exterior_status,c.interior_status),d=c.processing;return(0,r.jsx)(l.p8,{width:330,height:205,children:(0,r.jsxs)(l.p8.Content,{children:[(0,r.jsx)(i.wn,{title:"Information",children:(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Chamber Pressure",children:(0,r.jsxs)(i.z2,{color:a(s),value:s,minValue:0,maxValue:1013,children:[s," kPa"]})})})}),(0,r.jsxs)(i.wn,{title:"Actions",buttons:(0,r.jsx)(i.$n,{content:"Abort",icon:"ban",color:"red",disabled:!d,onClick:function(){return t("abort")}}),children:[(0,r.jsxs)(i.az,{children:[(0,r.jsx)(i.$n,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:d,onClick:function(){return t("cycle_ext")}}),(0,r.jsx)(i.$n,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:d,onClick:function(){return t("cycle_int")}})]}),(0,r.jsxs)(i.az,{children:[(0,r.jsx)(i.$n,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:"open"===u?"red":d?"yellow":null,onClick:function(){return t("force_ext")}}),(0,r.jsx)(i.$n,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:"open"===u?"red":d?"yellow":null,onClick:function(){return t("force_int")}})]})]})]})})}},6325:function(e,n,t){"use strict";t.r(n),t.d(n,{FaxMachine:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data;return(0,r.jsx)(l.p8,{width:540,height:295,children:(0,r.jsxs)(l.p8.Content,{children:[(0,r.jsx)(i.wn,{title:"Authorization",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"ID Card",children:(0,r.jsx)(i.$n,{icon:a.scan_name?"eject":"id-card",selected:a.scan_name,content:a.scan_name?a.scan_name:"-----",tooltip:a.scan_name?"Eject ID":"Insert ID",onClick:function(){return t("scan")}})}),(0,r.jsx)(i.Ki.Item,{label:"Authorize",children:(0,r.jsx)(i.$n,{icon:a.authenticated?"sign-out-alt":"id-card",selected:a.authenticated,disabled:a.nologin,content:a.realauth?"Log Out":"Log In",onClick:function(){return t("auth")}})})]})}),(0,r.jsx)(i.wn,{title:"Fax Menu",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Network",children:a.network}),(0,r.jsxs)(i.Ki.Item,{label:"Document",children:[(0,r.jsx)(i.$n,{icon:a.paper?"eject":"paperclip",disabled:!a.authenticated&&!a.paper,content:a.paper?a.paper:"-----",onClick:function(){return t("paper")}}),!!a.paper&&(0,r.jsx)(i.$n,{icon:"pencil-alt",content:"Rename",onClick:function(){return t("rename")}})]}),(0,r.jsx)(i.Ki.Item,{label:"Sending To",children:(0,r.jsx)(i.$n,{icon:"print",content:a.destination?a.destination:"-----",disabled:!a.authenticated,onClick:function(){return t("dept")}})}),(0,r.jsx)(i.Ki.Item,{label:"Action",children:(0,r.jsx)(i.$n,{icon:"envelope",content:a.sendError?a.sendError:"Send",disabled:!a.paper||!a.destination||!a.authenticated||a.sendError,onClick:function(){return t("send")}})})]})})]})})}},9788:function(e,n,t){"use strict";t.r(n),t.d(n,{FilingCabinet:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=n.config,s=a.contents,u=c.title;return(0,r.jsx)(l.p8,{width:400,height:300,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.BJ,{fill:!0,vertical:!0,children:(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,title:"Contents",children:[!s&&(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,r.jsxs)(i.In.Stack,{children:[(0,r.jsx)(i.In,{name:"folder-open",size:5,color:"gray"}),(0,r.jsx)(i.In,{name:"slash",size:5,color:"red"})]}),(0,r.jsx)("br",{}),"The ",u," is empty."]})}),!!s&&s.slice().map(function(e){return(0,r.jsxs)(i.BJ,{mt:.5,className:"candystripe",children:[(0,r.jsx)(i.BJ.Item,{width:"80%",children:e.display_name}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"arrow-down",content:"Retrieve",onClick:function(){return t("retrieve",{index:e.index})}})})]},e)})]})})})})}},2920:function(e,n,t){"use strict";t.r(n),t.d(n,{FlockPanel:()=>m});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}}var d={thinking:"brain",shooting:"bolt",rummaging:"dumpster",wandering:"route",building:"hammer",nesting:"hammer",harvesting:"cogs",controlled:"wifi",replicating:"egg",rallying:"map-marker","opening container":"box-open",butchering:"recycle",repairing:"tools",capturing:"bars",depositing:"border-style",observing:"eye",deconstructing:"trash",hibernating:"stop-circle"},f=[{id:"drones",label:"Drones"},{id:"traces",label:"Partitions"},{id:"structures",label:"Structures"},{id:"enemies",label:"Enemies"},{id:"stats",label:"Stats"}],h=function(e,n,t){var r=e[t],i=n[t];return"number"==typeof r&&"number"==typeof i?i-r:String(r||"").localeCompare(String(i||""))},m=function(e){var n,t=(0,a.Oc)(),i=t.act,l=t.data,s=(n=(0,a.Ul)("sortBy","resources"),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||u(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=s[0],h=s[1],m=l.vitals,y=l.partitions,v=l.drones,w=l.structures,k=l.enemies,_=l.stats,C=l.category_lengths,I=l.category;return(0,r.jsx)(c.p8,{theme:"flock",title:"Flockmind "+m.name,width:600,height:450,children:(0,r.jsxs)(c.p8.Content,{scrollable:!0,children:[(0,r.jsx)(o.tU,{children:f.map(function(e){return(0,r.jsxs)(o.tU.Tab,{selected:I===e.id,onClick:function(){return i("change_tab",{tab:e.id})},children:[e.label," (",C[e.id],")"]},e.id)})}),"drones"===I&&(0,r.jsxs)(o.az,{children:[(0,r.jsx)(o.ms,{options:["name","health","resources","area"],selected:d,onSelected:function(e){return h(e)}}),(0,r.jsx)(x,{drones:v,sortBy:d,act:i})]}),"traces"===I&&(0,r.jsx)(p,{partitions:y,act:i}),"structures"===I&&(0,r.jsx)(g,{structures:w,act:i}),"enemies"===I&&(0,r.jsx)(j,{enemies:k,act:i}),"stats"===I&&(0,r.jsx)(b,{stats:_})]})})},p=function(e){var n=e.act,t=e.partitions;return(0,r.jsx)(o.BJ,{vertical:!0,children:t.map(function(e){return(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.BJ,{align:"center",height:"100%",children:[(0,r.jsx)(o.BJ.Item,{width:"20%",height:"100%",children:(0,r.jsx)(o.wn,{align:"center",height:"100%",children:e.name})}),(0,r.jsx)(o.BJ.Item,{height:"100%",grow:1,children:(0,r.jsx)(o.wn,{height:"100%",children:e.host&&(0,r.jsxs)(o.BJ,{children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.In,{name:"wifi",size:3})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.BJ,{vertical:!0,align:"center",children:[(0,r.jsx)(o.BJ.Item,{children:e.host}),(0,r.jsxs)(o.BJ.Item,{children:[e.health,(0,r.jsx)(o.In,{name:"heart"})]})]})})]})})}),(0,r.jsx)(o.BJ.Item,{height:"100%",children:(0,r.jsx)(o.wn,{height:"100%",children:(0,r.jsxs)(o.BJ,{children:[e.host&&(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{onClick:function(){return n("eject_trace",{origin:e.ref})},children:"Eject"})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{onClick:function(){return n("promote_trace",{origin:e.ref})},children:"Promote sentience"})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{onClick:function(){return n("delete_trace",{origin:e.ref})},children:"Remove sentience"})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{onClick:function(){return n("jump_to",{origin:e.ref})},children:"Jump"})})]})})})]})},e.ref)})})},x=function(e){var n=e.act,t=e.drones,a=e.sortBy,c=(0,i.useMemo)(function(){return((function(e){if(Array.isArray(e))return s(e)})(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||u(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort(function(e,n){return h(e,n,a)})},[t,a]);return(0,r.jsx)(o.BJ,{vertical:!0,children:c.map(function(e){return(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.BJ,{children:[(0,r.jsx)(o.BJ.Item,{width:"20%",children:(0,r.jsx)(o.wn,{height:"100%",children:(0,r.jsxs)(o.BJ,{vertical:!0,align:"center",children:[(0,r.jsx)(o.BJ.Item,{children:e.name}),(0,r.jsxs)(o.BJ.Item,{children:[e.health,(0,r.jsx)(o.In,{name:"heart"})," ",e.resources,(0,r.jsx)(o.In,{name:"cog"})]})]})})}),(0,r.jsx)(o.BJ.Item,{grow:1,children:(0,r.jsx)(o.wn,{height:"100%",children:(0,r.jsxs)(o.BJ,{align:"center",children:[(0,r.jsx)(o.BJ.Item,{width:"50px",children:(0,r.jsx)(o.az,{align:"center",children:d[e.task]&&(0,r.jsx)(o.In,{size:3,name:d[e.task]})})}),(0,r.jsxs)(o.BJ.Item,{grow:1,children:[(0,r.jsx)("b",{children:e.area}),e.task&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("br",{}),(0,r.jsx)(o.az,{color:"label",italic:!0,children:(0,l.ZH)(e.task)})]})]})]})})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.wn,{height:"100%",children:(0,r.jsxs)(o.BJ,{children:["controlled"===e.task&&(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{onClick:function(){return n("eject_trace",{origin:e.controller_ref})},children:"Eject Trace"})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{onClick:function(){return n("rally",{origin:e.ref})},children:"Rally"})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{onClick:function(){return n("jump_to",{origin:e.ref})},children:"Jump"})})]})})})]})},e.ref)})})},g=function(e){var n=e.act,t=e.structures;return(0,r.jsx)(o.BJ,{vertical:!0,children:t.map(function(e){return(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.BJ,{children:[(0,r.jsx)(o.BJ.Item,{width:"30%",children:(0,r.jsx)(o.m_,{position:"bottom",content:e.desc,children:(0,r.jsx)(o.wn,{position:"relative",children:(0,r.jsxs)(o.BJ,{vertical:!0,align:"center",children:[(0,r.jsx)(o.BJ.Item,{children:e.name}),(0,r.jsxs)(o.BJ.Item,{children:[e.health," ",(0,r.jsx)(o.In,{name:"heart"})]})]})})})}),(0,r.jsx)(o.BJ.Item,{grow:1,children:(0,r.jsxs)(o.wn,{height:"100%",children:[e.compute>0&&"Bandwidth Provided: "+e.compute,e.compute<0&&"Bandwidth Cost: "+-e.compute]})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.wn,{height:"100%",children:(0,r.jsxs)(o.BJ,{children:["Construction Tealprint"===e.name&&(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{onClick:function(){return n("cancel_tealprint",{origin:e.ref})},children:"Cancel"})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{onClick:function(){return n("jump_to",{origin:e.ref})},children:"Jump"})})]})})})]})},e.ref)})})},j=function(e){var n=e.act,t=e.enemies;return(0,r.jsx)(o.BJ,{vertical:!0,children:t.map(function(e){return(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.BJ,{children:[(0,r.jsx)(o.BJ.Item,{width:"30%",children:(0,r.jsx)(o.wn,{height:"100%",children:e.name})}),(0,r.jsx)(o.BJ.Item,{grow:1,children:(0,r.jsx)(o.wn,{height:"100%",children:(0,r.jsx)(o.BJ,{children:(0,r.jsx)(o.BJ.Item,{grow:1,children:(0,r.jsx)("b",{children:e.area})})})})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.wn,{height:"100%",children:(0,r.jsxs)(o.BJ,{children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{icon:"times",onClick:function(){return n("remove_enemy",{origin:e.ref})},children:"Remove"})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{onClick:function(){return n("jump_to",{origin:e.ref})},children:"Jump"})})]})})})]})},e.ref)})})},b=function(e){var n=e.stats;return(0,r.jsx)(o.BJ,{vertical:!0,children:n.map(function(e){return(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.BJ,{children:(0,r.jsx)(o.BJ.Item,{width:"100%",children:(0,r.jsx)(o.wn,{height:"100%",children:(0,r.jsx)(o.BJ,{vertical:!0,align:"left",children:(0,r.jsxs)(o.BJ.Item,{children:[e.name," ",e.value]})})})})})},e.name)})})}},26:function(e,n,t){"use strict";t.r(n),t.d(n,{FloorPainter:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=(n.act,n.data),l=e.icon_state,a=e.direction,c=e.isSelected,s=e.onSelect;return(0,r.jsx)(i.Hg,{icon:t.icon,icon_state:l,direction:a,onClick:s,style:{borderStyle:c&&"solid"||"none",borderWidth:"2px",borderColor:"orange",padding:c&&"0px"||"2px"}})},c=function(e){var n=(0,o.Oc)(),t=n.act,c=n.data,s=c.availableStyles,u=c.selectedStyle,d=c.selectedDir,f=c.wideMode;return(0,r.jsx)(l.p8,{width:405,height:475,children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsxs)(i.wn,{title:"Floor setup",children:[(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"chevron-left",onClick:function(){return t("cycle_style",{offset:-1})}})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.ms,{options:s,selected:u,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(e){return t("select_style",{style:e})}})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"chevron-right",onClick:function(){return t("cycle_style",{offset:1})}})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"eraser",color:f?"green":"transparent",onClick:function(){return t("wide_mode")},children:"Wide mode"})})]}),(0,r.jsx)(i.az,{mt:"5px",mb:"5px",children:(0,r.jsx)(i.so,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:s.map(function(e){return(0,r.jsx)(i.so.Item,{children:(0,r.jsx)(a,{icon_state:e,isSelected:u===e,onSelect:function(){return t("select_style",{style:e})}})},e)})})}),(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Direction",children:(0,r.jsx)(i.XI,{style:{display:"inline"},children:[1,null,2].map(function(e){return(0,r.jsx)(i.XI.Row,{children:[e+8,e,e+4].map(function(e){return(0,r.jsx)(i.XI.Cell,{style:{verticalAlign:"middle",textAlign:"center"},children:null===e?(0,r.jsx)(i.In,{name:"arrows-alt",size:3}):(0,r.jsx)(a,{icon_state:u,direction:e,isSelected:e===d,onSelect:function(){return t("select_direction",{direction:e})}})},e)})},e)})})})})]})})})}},1561:function(e,n,t){"use strict";t.r(n),t.d(n,{GPS:()=>h});var r=t(8138),i=t(4530),o=t(7790),l=t(6859),a=t(2864),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}var d=function(e){return e?"("+e.join(", ")+")":"ERROR"},f=function(e,n){if(e&&n){if(e[2]!==n[2])return null;var t=Math.atan2(n[1]-e[1],n[0]-e[0]),r=Math.sqrt(Math.pow(n[1]-e[1],2)+Math.pow(n[0]-e[0],2));return{angle:(0,l.KJ)(t),distance:r}}},h=function(e){var n=(0,a.Oc)().data,t=n.emped,i=n.active,l=n.area,s=n.position,u=n.saved;return(0,r.jsx)(c.p8,{width:400,height:600,children:(0,r.jsx)(c.p8.Content,{children:(0,r.jsx)(o.BJ,{fill:!0,vertical:!0,children:t?(0,r.jsx)(o.BJ.Item,{grow:!0,basis:"0",children:(0,r.jsx)(m,{emp:!0})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(p,{})}),i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(x,{area:l,position:s})}),u&&(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(x,{title:"Saved Position",position:u})}),(0,r.jsx)(o.BJ.Item,{grow:!0,basis:"0",children:(0,r.jsx)(g,{height:"100%"})})]}):(0,r.jsx)(m,{})]})})})})},m=function(e){var n=e.emp;return(0,r.jsx)(o.wn,{fill:!0,children:(0,r.jsx)(o.az,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,r.jsx)(o.BJ,{fill:!0,children:(0,r.jsxs)(o.BJ.Item,{grow:!0,align:"center",color:"label",children:[(0,r.jsx)(o.In,{name:n?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,r.jsx)("br",{}),n?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(e){var n,t=(0,a.Oc)(),l=t.act,c=t.data,u=c.active,d=c.tag,f=c.same_z,h=(n=(0,i.useState)(d),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return s(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=h[0],p=h[1];return(0,r.jsx)(o.wn,{title:"Settings",buttons:(0,r.jsx)(o.$n,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"On":"Off",onClick:function(){return l("toggle")}}),children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsxs)(o.Ki.Item,{label:"Tag",children:[(0,r.jsx)(o.pd,{width:"5rem",value:d,onEnter:function(){return l("tag",{newtag:m})},onChange:function(e){return p(e)}}),(0,r.jsx)(o.$n,{disabled:d===m,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){return l("tag",{newtag:m})},children:(0,r.jsx)(o.In,{name:"pen"})})]}),(0,r.jsx)(o.Ki.Item,{label:"Range",children:(0,r.jsx)(o.$n,{selected:!f,icon:f?"compress":"expand",content:f?"Local Sector":"Global",onClick:function(){return l("same_z")}})})]})})},x=function(e){var n=e.title,t=e.area,i=e.position;return(0,r.jsx)(o.wn,{title:n||"Position",children:(0,r.jsxs)(o.az,{fontSize:"1.5rem",children:[t&&(0,r.jsxs)(r.Fragment,{children:[t,(0,r.jsx)("br",{})]}),d(i)]})})},g=function(e){var n,t,i=(0,a.Oc)().data,l=i.position,c=i.signals;return(0,r.jsx)(o.wn,(n=u({fill:!0,scrollable:!0,title:"Signals"},e),t=t={children:(0,r.jsx)(o.XI,{children:c.map(function(e){return u({},e,f(l,e.position))}).map(function(e,n){return(0,r.jsxs)(o.XI.Row,{backgroundColor:n%2==0&&"rgba(255, 255, 255, 0.05)",children:[(0,r.jsx)(o.XI.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:e.tag}),(0,r.jsx)(o.XI.Cell,{verticalAlign:"middle",color:"grey",children:e.area}),(0,r.jsxs)(o.XI.Cell,{verticalAlign:"middle",collapsing:!0,children:[void 0!==e.distance&&(0,r.jsxs)(o.az,{opacity:Math.max(1-Math.min(e.distance,100)/100,.5),children:[(0,r.jsx)(o.In,{name:e.distance>0?"arrow-right":"circle",rotation:-e.angle}),"\xa0",Math.floor(e.distance)+"m"]}),void 0!==e.due&&(0,r.jsxs)(o.az,{children:[(0,r.jsx)(o.In,{name:"arrow-up",rotation:e.due}),"\xa0--"]})]}),(0,r.jsx)(o.XI.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:d(e.position)})]},n)})})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))}},1259:function(e,n,t){"use strict";t.r(n),t.d(n,{GeneModder:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(4744),c=function(e){var n=(0,o.Oc)().data.has_seed;return(0,r.jsxs)(l.p8,{width:950,height:650,children:[(0,r.jsx)("div",{className:"GeneModder__left",children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(x,{scrollable:!0})})}),(0,r.jsx)("div",{className:"GeneModder__right",children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,scrollable:!0,children:[(0,r.jsx)(d,{}),(0,r.jsx)(a.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),0===n?(0,r.jsx)(u,{}):(0,r.jsx)(s,{})]})})})]})},s=function(e){var n=(0,o.Oc)();return(n.act,n.data).disk,(0,r.jsxs)(i.wn,{title:"Genes",fill:!0,scrollable:!0,children:[(0,r.jsx)(f,{}),(0,r.jsx)(h,{}),(0,r.jsx)(m,{})]})},u=function(e){return(0,r.jsx)(i.wn,{fill:!0,height:"85%",children:(0,r.jsx)(i.BJ,{height:"100%",children:(0,r.jsxs)(i.BJ.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,r.jsx)(i.In,{name:"leaf",size:5,mb:"10px"}),(0,r.jsx)("br",{}),"The plant DNA manipulator is missing a seed."]})})})},d=function(e){var n,t,l=(0,o.Oc)(),a=l.act,c=l.data,s=c.has_seed,u=c.seed,d=c.has_disk,f=c.disk;return n=s?(0,r.jsxs)(i.BJ.Item,{mb:"-6px",mt:"-4px",children:[(0,r.jsx)("img",{src:"data:image/jpeg;base64,".concat(u.image),style:{verticalAlign:"middle",width:"32px",margin:"-1px",marginLeft:"-11px"}}),(0,r.jsx)(i.$n,{content:u.name,onClick:function(){return a("eject_seed")}}),(0,r.jsx)(i.$n,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){return a("variant_name")}})]}):(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{ml:3.3,content:"None",onClick:function(){return a("eject_seed")}})}),t=d?f.name:"None",(0,r.jsx)(i.wn,{title:"Storage",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Plant Sample",children:n}),(0,r.jsx)(i.Ki.Item,{label:"Data Disk",children:(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{ml:3.3,content:t,tooltip:"Select Empty Disk",onClick:function(){return a("select_empty_disk")}})})})]})})},f=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.disk,c=l.core_genes;return(0,r.jsxs)(i.Nt,{title:"Core Genes",open:!0,children:[c.map(function(e){return(0,r.jsxs)(i.BJ,{py:"2px",className:"candystripe",children:[(0,r.jsx)(i.BJ.Item,{width:"100%",ml:"2px",children:e.name}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{content:"Extract",disabled:!(null==a?void 0:a.can_extract),icon:"save",onClick:function(){return t("extract",{id:e.id})}})})]},e)})," ",(0,r.jsx)(i.BJ,{children:(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{content:"Extract All",disabled:!(null==a?void 0:a.can_extract),icon:"save",onClick:function(){return t("bulk_extract_core")}})})})]},"Core Genes")},h=function(e){var n=(0,o.Oc)().data,t=n.reagent_genes,i=n.has_reagent;return(0,r.jsx)(p,{title:"Reagent Genes",gene_set:t,do_we_show:i})},m=function(e){var n=(0,o.Oc)().data,t=n.trait_genes,i=n.has_trait;return(0,r.jsx)(p,{title:"Trait Genes",gene_set:t,do_we_show:i})},p=function(e){var n=e.title,t=e.gene_set,l=e.do_we_show,a=(0,o.Oc)(),c=a.act,s=a.data.disk;return(0,r.jsx)(i.Nt,{title:n,open:!0,children:l?t.map(function(e){return(0,r.jsxs)(i.BJ,{py:"2px",className:"candystripe",children:[(0,r.jsx)(i.BJ.Item,{width:"100%",ml:"2px",children:e.name}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{content:"Extract",disabled:!(null==s?void 0:s.can_extract),icon:"save",onClick:function(){return c("extract",{id:e.id})}})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{content:"Remove",icon:"times",onClick:function(){return c("remove",{id:e.id})}})})]},e)}):(0,r.jsx)(i.BJ.Item,{children:"No Genes Detected"})},n)},x=function(e){e.title,e.gene_set,e.do_we_show;var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.has_seed,c=l.empty_disks,s=l.stat_disks,u=l.trait_disks,d=l.reagent_disks;return(0,r.jsxs)(i.wn,{title:"Disks",children:[(0,r.jsx)("br",{}),"Empty Disks: ",c,(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)(i.$n,{width:12,icon:"arrow-down",tooltip:"Eject an Empty disk",content:"Eject Empty Disk",onClick:function(){return t("eject_empty_disk")}}),(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.wn,{title:"Stats",children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,scrollable:!0,children:[s.slice().sort(function(e,n){return e.display_name.localeCompare(n.display_name)}).map(function(e){return(0,r.jsxs)(i.BJ,{mr:2,children:[(0,r.jsx)(i.BJ.Item,{width:"49%",children:e.display_name}),(0,r.jsxs)(i.BJ.Item,{width:25,children:["All"===e.stat?(0,r.jsx)(i.$n,{content:"Replace All",tooltip:"Write disk stats to seed",disabled:!(null==e?void 0:e.ready)||!a,icon:"arrow-circle-down",onClick:function(){return t("bulk_replace_core",{index:e.index})}}):(0,r.jsx)(i.$n,{width:6,icon:"arrow-circle-down",tooltip:"Write disk stat to seed",disabled:!e||!a,content:"Replace",onClick:function(){return t("replace",{index:e.index,stat:e.stat})}}),(0,r.jsx)(i.$n,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){return t("select",{index:e.index})}}),(0,r.jsx)(i.$n,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){return t("eject_disk",{index:e.index})}}),(0,r.jsx)(i.$n,{width:2,icon:e.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){return t("set_read_only",{index:e.index,read_only:e.read_only})}})]})]},e)}),(0,r.jsx)(i.$n,{})]})}),(0,r.jsx)(i.wn,{title:"Traits",children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,scrollable:!0,children:[u.slice().sort(function(e,n){return e.display_name.localeCompare(n.display_name)}).map(function(e){return(0,r.jsxs)(i.BJ,{mr:2,children:[(0,r.jsx)(i.BJ.Item,{width:"49%",children:e.display_name}),(0,r.jsxs)(i.BJ.Item,{width:25,children:[(0,r.jsx)(i.$n,{width:6,icon:"arrow-circle-down",disabled:!e||!e.can_insert,tooltip:"Add disk trait to seed",content:"Insert",onClick:function(){return t("insert",{index:e.index})}}),(0,r.jsx)(i.$n,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){return t("select",{index:e.index})}}),(0,r.jsx)(i.$n,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){return t("eject_disk",{index:e.index})}}),(0,r.jsx)(i.$n,{width:2,icon:e.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){return t("set_read_only",{index:e.index,read_only:e.read_only})}})]})]},e)}),(0,r.jsx)(i.$n,{})]})}),(0,r.jsx)(i.wn,{title:"Reagents",children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,scrollable:!0,children:[d.slice().sort(function(e,n){return e.display_name.localeCompare(n.display_name)}).map(function(e){return(0,r.jsxs)(i.BJ,{mr:2,children:[(0,r.jsx)(i.BJ.Item,{width:"49%",children:e.display_name}),(0,r.jsxs)(i.BJ.Item,{width:25,children:[(0,r.jsx)(i.$n,{width:6,icon:"arrow-circle-down",disabled:!e||!e.can_insert,tooltip:"Add disk reagent to seed",content:"Insert",onClick:function(){return t("insert",{index:e.index})}}),(0,r.jsx)(i.$n,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){return t("select",{index:e.index})}}),(0,r.jsx)(i.$n,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){return t("eject_disk",{index:e.index})}}),(0,r.jsx)(i.$n,{width:2,icon:e.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){return t("set_read_only",{index:e.index,read_only:e.read_only})}})]})]},e)}),(0,r.jsx)(i.$n,{})]})})]})]})}},6954:function(e,n,t){"use strict";t.r(n),t.d(n,{GenericCrewManifest:()=>a});var r=t(8138),i=t(7790),o=t(3384),l=t(2639),a=function(e){return(0,r.jsx)(o.p8,{theme:"nologo",width:588,height:510,children:(0,r.jsx)(o.p8.Content,{scrollable:!0,children:(0,r.jsx)(i.wn,{noTopPadding:!0,children:(0,r.jsx)(l.CrewManifest,{})})})})}},9031:function(e,n,t){"use strict";t.r(n),t.d(n,{GhostHudPanel:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)().data,t=n.security,a=n.medical,s=n.diagnostic,u=n.pressure,d=n.radioactivity,f=n.ahud;return(0,r.jsx)(l.p8,{width:250,height:217,theme:"nologo",children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.wn,{children:[(0,r.jsx)(c,{label:"Medical",type:"medical",is_active:a}),(0,r.jsx)(c,{label:"Security",type:"security",is_active:t}),(0,r.jsx)(c,{label:"Diagnostic",type:"diagnostic",is_active:s}),(0,r.jsx)(c,{label:"Pressure",type:"pressure",is_active:u}),(0,r.jsx)(i.cG,{}),(0,r.jsx)(c,{label:"Radioactivity",type:"radioactivity",is_active:d,act_on:"toggle_rad",act_off:"toggle_rad"}),(0,r.jsx)(i.cG,{}),(0,r.jsx)(c,{label:"Antag HUD",is_active:f,act_on:"ahud_on",act_off:"ahud_off"})]})})})},c=function(e){var n=(0,o.Oc)().act,t=e.label,l=e.type,a=void 0===l?null:l,c=e.is_active,s=e.act_on,u=void 0===s?"hud_on":s,d=e.act_off,f=void 0===d?"hud_off":d;return(0,r.jsxs)(i.so,{pt:.3,color:"label",children:[(0,r.jsx)(i.so.Item,{pl:.5,align:"center",width:"80%",children:t}),(0,r.jsx)(i.so.Item,{children:(0,r.jsx)(i.$n,{mr:.6,content:c?"On":"Off",icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){return n(c?f:u,{hud_type:a})}})})]})}},3396:function(e,n,t){"use strict";t.r(n),t.d(n,{GlandDispenser:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data.glands;return(0,r.jsx)(l.p8,{width:300,height:338,theme:"abductor",children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.wn,{children:(void 0===a?[]:a).map(function(e){return(0,r.jsx)(i.$n,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:e.color,content:e.amount||"0",disabled:!e.amount,onClick:function(){return t("dispense",{gland_id:e.id})}},e.id)})})})})}},1009:function(e,n,t){"use strict";t.r(n),t.d(n,{GravityGen:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.charging_state,s=a.charge_count,u=a.breaker,d=a.ext_power;return(0,r.jsx)(l.p8,{width:350,height:170,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[function(e){if(e>0)return(0,r.jsxs)(i.IC,{danger:!0,p:1.5,children:[(0,r.jsx)("b",{children:"WARNING:"})," Radiation Detected!"]})}(c),(0,r.jsx)(i.wn,{fill:!0,title:"Generator Status",buttons:(0,r.jsx)(i.$n,{icon:u?"power-off":"times",content:u?"Online":"Offline",color:u?"green":"red",px:1.5,onClick:function(){return t("breaker")}}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Power Status",color:d?"good":"bad",children:c>0?(0,r.jsxs)(i.az,{inline:!0,color:"average",children:["[ ",1===c?"Charging":"Discharging"," ]"]}):(0,r.jsxs)(i.az,{inline:!0,color:d?"good":"bad",children:["[ ",d?"Powered":"Unpowered"," ]"]})}),(0,r.jsx)(i.Ki.Item,{label:"Gravity Charge",children:(0,r.jsx)(i.z2,{value:s/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}},6294:function(e,n,t){"use strict";t.r(n),t.d(n,{GuestPass:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(2723),c=function(e){var n=(0,o.Oc)(),t=n.act,c=n.data;return(0,r.jsx)(l.p8,{width:500,height:690,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.tU,{children:[(0,r.jsx)(i.tU.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){return t("mode",{mode:0})},children:"Issue Pass"}),(0,r.jsxs)(i.tU.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){return t("mode",{mode:1})},children:["Records (",c.issue_log.length,")"]})]})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Authorization",children:(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"ID Card",children:(0,r.jsx)(i.$n,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){return t("scan")}})})})})}),(0,r.jsx)(i.BJ.Item,{children:!c.showlogs&&(0,r.jsx)(i.wn,{title:"Issue Guest Pass",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Issue To",children:(0,r.jsx)(i.$n,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){return t("giv_name")}})}),(0,r.jsx)(i.Ki.Item,{label:"Reason",children:(0,r.jsx)(i.$n,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){return t("reason")}})}),(0,r.jsx)(i.Ki.Item,{label:"Duration",children:(0,r.jsx)(i.$n,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){return t("duration")}})})]})})}),!c.showlogs&&(c.scan_name?(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(a.AccessList,{sectionButtons:(0,r.jsx)(i.$n,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){return t("issue")}}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(e){return t("access",{access:e})},grantAll:function(){return t("grant_all")},denyAll:function(){return t("clear_all")},grantDep:function(e){return t("grant_region",{region:e})},denyDep:function(e){return t("deny_region",{region:e})}})}):(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,children:(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,r.jsx)(i.In,{name:"id-card",size:5,color:"gray",mb:5}),(0,r.jsx)("br",{}),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,r.jsx)(i.BJ.Item,{grow:!0,m:0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,r.jsx)(i.$n,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){return t("print")}}),children:!!c.issue_log.length&&(0,r.jsx)(i.Ki,{children:c.issue_log.map(function(e,n){return(0,r.jsx)(i.Ki.Item,{children:e},n)})})||(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,r.jsxs)(i.In.Stack,{children:[(0,r.jsx)(i.In,{name:"scroll",size:5,color:"gray"}),(0,r.jsx)(i.In,{name:"slash",size:5,color:"red"})]}),(0,r.jsx)("br",{}),"No logs"]})})})})]})})})}},9511:function(e,n,t){"use strict";t.r(n),t.d(n,{HandheldChemDispenser:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=[1,5,10,20,30,50],c=function(e){return(0,r.jsx)(l.p8,{width:390,height:430,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(s,{}),(0,r.jsx)(u,{})]})})})},s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,c=l.amount,s=l.energy,u=l.maxEnergy,d=l.mode;return(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Settings",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Energy",children:(0,r.jsxs)(i.z2,{value:s,minValue:0,maxValue:u,ranges:{good:[.5*u,1/0],average:[.25*u,.5*u],bad:[-1/0,.25*u]},children:[s," / ",u," Units"]})}),(0,r.jsx)(i.Ki.Item,{label:"Amount",verticalAlign:"middle",children:(0,r.jsx)(i.BJ,{children:a.map(function(e,n){return(0,r.jsx)(i.BJ.Item,{grow:!0,width:"15%",children:(0,r.jsx)(i.$n,{fluid:!0,icon:"cog",selected:c===e,content:e,onClick:function(){return t("amount",{amount:e})}})},n)})})}),(0,r.jsx)(i.Ki.Item,{label:"Mode",verticalAlign:"middle",children:(0,r.jsxs)(i.BJ,{justify:"space-between",children:[(0,r.jsx)(i.$n,{icon:"cog",selected:"dispense"===d,content:"Dispense",m:"0",width:"32%",onClick:function(){return t("mode",{mode:"dispense"})}}),(0,r.jsx)(i.$n,{icon:"cog",selected:"remove"===d,content:"Remove",m:"0",width:"32%",onClick:function(){return t("mode",{mode:"remove"})}}),(0,r.jsx)(i.$n,{icon:"cog",selected:"isolate"===d,content:"Isolate",m:"0",width:"32%",onClick:function(){return t("mode",{mode:"isolate"})}})]})})]})})})},u=function(e){for(var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.chemicals,c=void 0===a?[]:a,s=l.current_reagent,u=[],d=0;d<(c.length+1)%3;d++)u.push(!0);return(0,r.jsx)(i.BJ.Item,{grow:!0,height:"18%",children:(0,r.jsxs)(i.wn,{fill:!0,title:l.glass?"Drink Selector":"Chemical Selector",children:[c.map(function(e,n){return(0,r.jsx)(i.$n,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:s===e.id,content:e.title,style:{marginLeft:"2px"},onClick:function(){return t("dispense",{reagent:e.id})}},n)}),u.map(function(e,n){return(0,r.jsx)(i.BJ.Item,{grow:"1",basis:"25%"},n)})]})})}},3365:function(e,n,t){"use strict";t.r(n),t.d(n,{HealthSensor:()=>c});var r=t(8138),i=t(7790),o=t(6859),l=t(2864),a=t(3384),c=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data,u=c.on,d=c.user_health,f=c.minHealth,h=c.maxHealth,m=c.alarm_health;return(0,r.jsx)(a.p8,{width:300,height:125,children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Scanning",children:(0,r.jsx)(i.$n,{icon:"power-off",content:u?"On":"Off",color:u?null:"red",selected:u,onClick:function(){return t("scan_toggle")}})}),(0,r.jsx)(i.Ki.Item,{label:"Health activation",children:(0,r.jsx)(i.Q7,{animate:!0,step:2,stepPixelSize:6,minValue:f,maxValue:h,value:m,format:function(e){return(0,o.Mg)(e,1)},width:"80px",onChange:function(e){return t("alarm_health",{alarm_health:e})}})}),null!==d&&(0,r.jsx)(i.Ki.Item,{label:"User health",children:(0,r.jsx)(i.az,{color:s(d),bold:d>=100,children:(0,r.jsx)(i.zv,{value:d})})})]})})})})},s=function(e){return e>50?"green":e>0?"orange":"red"}},5880:function(e,n,t){"use strict";t.r(n),t.d(n,{Holodeck:()=>u});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data,u=s((0,i.useState)(""),2),f=u[0],h=u[1],m=s((0,i.useState)(!1),2),p=m[0],x=m[1],g=c.decks,j=c.ai_override,b=c.emagged,y=function(e){t("select_deck",{deck:e}),h(e),x(!0),setTimeout(function(){x(!1)},3e3)};return(0,r.jsxs)(a.p8,{width:420,height:320,children:[p&&(0,r.jsx)(d,{}),(0,r.jsx)(a.p8.Content,{children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.wn,{title:"Holodeck Control System",children:(0,r.jsxs)(o.az,{children:[(0,r.jsx)("b",{children:"Currently Loaded Program:"})," ",f]})})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.wn,{title:"Available Programs",children:[g.map(function(e){return(0,r.jsx)(o.$n,{width:15.5,color:"transparent",content:e,selected:e===f,onClick:function(){return y(e)}},e)}),(0,r.jsx)("hr",{color:"gray"}),(0,r.jsxs)(o.Ki,{children:[!!j&&(0,r.jsx)(o.Ki.Item,{label:"Override Protocols",children:(0,r.jsx)(o.$n,{content:b?"Turn On":"Turn Off",color:b?"good":"bad",onClick:function(){return t("ai_override")}})}),(0,r.jsx)(o.Ki.Item,{label:"Safety Protocols",children:(0,r.jsxs)(o.az,{color:b?"bad":"good",children:[b?"Off":"On",!!b&&(0,r.jsx)(o.$n,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){return t("wildlifecarp")}})]})})]})]})})]})})]})},d=function(e){return(0,r.jsxs)(o.Rr,{textAlign:"center",children:[(0,r.jsx)(o.In,{name:"spinner",size:5,spin:!0}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)(o.az,{color:"white",children:(0,r.jsx)("h1",{children:"\xa0Recalibrating projection apparatus.\xa0"})}),(0,r.jsx)(o.az,{color:"label",children:(0,r.jsx)("h3",{children:"Please, wait for 3 seconds."})})]})}},9721:function(e,n,t){"use strict";t.r(n),t.d(n,{IdCardModifier:()=>s});var r=t(8138),i=t(7790),o=t(3384),l=t(2864),a=t(7542),c=t(2723),s=function(){var e=(0,l.Oc)(),n=e.act,t=e.data,s=t.card,u=t.card_skins,d=t.all_centcom_skins,f=t.regions;return(0,r.jsx)(o.p8,{width:600,height:565,children:(0,r.jsx)(o.p8.Content,{children:(0,r.jsxs)(i.BJ,{vertical:!0,fill:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsxs)(i.wn,{title:"Basic Information",children:[(0,r.jsx)(a.CardInformation,{card:s}),(0,r.jsx)(i.Ki.Item,{label:"Job Name",children:(0,r.jsx)(i.$n,{icon:s&&"Unknown"!==s.rank?"pencil-alt":"exclamation-triangle",selected:!!s,onClick:function(){return n("set_job_name")},children:null==s?void 0:s.rank})})]})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(a.DropdownCardSkins,{is_centcom:!0,card:s,card_skins:u,all_centcom_skins:d})})]})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(c.AccessList,{accesses:f,selectedList:s.access,accessMod:function(e){return n("set",{access:e})},grantAll:function(){return n("grant_all")},denyAll:function(){return n("clear_all")},grantDep:function(e){return n("grant_region",{region:e})},denyDep:function(e){return n("deny_region",{region:e})}})})]})})})}},6126:function(e,n,t){"use strict";t.r(n),t.d(n,{Instrument:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)();return n.act,n.data,(0,r.jsxs)(l.p8,{width:600,height:505,children:[(0,r.jsx)(c,{}),(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(s,{}),(0,r.jsx)(d,{})]})})]})},c=function(e){var n=(0,o.Oc)(),t=n.act;if(n.data.help)return(0,r.jsx)(i.aF,{maxWidth:"75%",height:.75*window.innerHeight+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,r.jsx)(i.wn,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,r.jsxs)(i.az,{px:"0.5rem",mt:"-0.5rem",children:[(0,r.jsx)("h1",{children:"Making a Song"}),(0,r.jsxs)("p",{children:["Lines are a series of chords, separated by commas\xa0",(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"(,)"}),", each with notes separated by hyphens\xa0",(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"(-)"}),".",(0,r.jsx)("br",{}),"Every note in a chord will play together, with the chord timed by the\xa0",(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"tempo"})," ","as defined above."]}),(0,r.jsxs)("p",{children:["Notes are played by the\xa0",(0,r.jsx)(i.az,{as:"span",color:"good",children:"names of the note"}),", and optionally, the\xa0",(0,r.jsx)(i.az,{as:"span",color:"average",children:"accidental"}),", and/or the"," ",(0,r.jsx)(i.az,{as:"span",color:"bad",children:"octave number"}),".",(0,r.jsx)("br",{}),"By default, every note is\xa0",(0,r.jsx)(i.az,{as:"span",color:"average",children:"natural"})," ","and in\xa0",(0,r.jsx)(i.az,{as:"span",color:"bad",children:"octave 3"}),". Defining a different state for either is remembered for each"," ",(0,r.jsx)(i.az,{as:"span",color:"good",children:"note"}),".",(0,r.jsxs)("ul",{children:[(0,r.jsxs)("li",{children:[(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"Example:"}),"\xa0",(0,r.jsx)("i",{children:"C,D,E,F,G,A,B"})," will play a\xa0",(0,r.jsx)(i.az,{as:"span",color:"good",children:"C"}),"\xa0",(0,r.jsx)(i.az,{as:"span",color:"average",children:"major"})," ","scale."]}),(0,r.jsxs)("li",{children:["After a note has an\xa0",(0,r.jsx)(i.az,{as:"span",color:"average",children:"accidental"})," ","or\xa0",(0,r.jsx)(i.az,{as:"span",color:"bad",children:"octave"})," ","placed, it will be remembered:\xa0",(0,r.jsx)("i",{children:"C,C4,C#,C3"})," is ",(0,r.jsx)("i",{children:"C3,C4,C4#,C3#"})]})]})]}),(0,r.jsxs)("p",{children:[(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"Chords"}),"\xa0can be played simply by seperating each note with a hyphen: ",(0,r.jsx)("i",{children:"A-C#,Cn-E,E-G#,Gn-B"}),".",(0,r.jsx)("br",{}),"A"," ",(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"pause"}),"\xa0may be denoted by an empty chord: ",(0,r.jsx)("i",{children:"C,E,,C,G"}),".",(0,r.jsx)("br",{}),"To make a chord be a different time, end it with /x, where the chord length will be length defined by\xa0",(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"tempo / x"}),",\xa0",(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"eg:"})," ",(0,r.jsx)("i",{children:"C,G/2,E/4"}),"."]}),(0,r.jsxs)("p",{children:["Combined, an example line is: ",(0,r.jsx)("i",{children:"E-E4/4,F#/2,G#/8,B/8,E3-E4/4"}),".",(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"Lines may be up to 300 characters."}),(0,r.jsx)("li",{children:"A song may only contain up to 1,000 lines."})]})]}),(0,r.jsxs)("p",{children:["Lines are a series of chords, separated by commas\xa0",(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"(,)"}),", each with notes separated by hyphens\xa0",(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"(-)"}),".",(0,r.jsx)("br",{}),"Every note in a chord will play together, with the chord timed by the\xa0",(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"tempo"})," ","as defined above."]}),(0,r.jsxs)("p",{children:["Notes are played by the\xa0",(0,r.jsx)(i.az,{as:"span",color:"good",children:"names of the note"}),", and optionally, the\xa0",(0,r.jsx)(i.az,{as:"span",color:"average",children:"accidental"}),", and/or the"," ",(0,r.jsx)(i.az,{as:"span",color:"bad",children:"octave number"}),".",(0,r.jsx)("br",{}),"By default, every note is\xa0",(0,r.jsx)(i.az,{as:"span",color:"average",children:"natural"})," ","and in\xa0",(0,r.jsx)(i.az,{as:"span",color:"bad",children:"octave 3"}),". Defining a different state for either is remembered for each"," ",(0,r.jsx)(i.az,{as:"span",color:"good",children:"note"}),".",(0,r.jsxs)("ul",{children:[(0,r.jsxs)("li",{children:[(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"Example:"}),"\xa0",(0,r.jsx)("i",{children:"C,D,E,F,G,A,B"})," will play a\xa0",(0,r.jsx)(i.az,{as:"span",color:"good",children:"C"}),"\xa0",(0,r.jsx)(i.az,{as:"span",color:"average",children:"major"})," ","scale."]}),(0,r.jsxs)("li",{children:["After a note has an\xa0",(0,r.jsx)(i.az,{as:"span",color:"average",children:"accidental"})," ","or\xa0",(0,r.jsx)(i.az,{as:"span",color:"bad",children:"octave"})," ","placed, it will be remembered:\xa0",(0,r.jsx)("i",{children:"C,C4,C#,C3"})," is ",(0,r.jsx)("i",{children:"C3,C4,C4#,C3#"})]})]})]}),(0,r.jsxs)("p",{children:[(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"Chords"}),"\xa0can be played simply by seperating each note with a hyphen: ",(0,r.jsx)("i",{children:"A-C#,Cn-E,E-G#,Gn-B"}),".",(0,r.jsx)("br",{}),"A"," ",(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"pause"}),"\xa0may be denoted by an empty chord: ",(0,r.jsx)("i",{children:"C,E,,C,G"}),".",(0,r.jsx)("br",{}),"To make a chord be a different time, end it with /x, where the chord length will be length defined by\xa0",(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"tempo / x"}),",\xa0",(0,r.jsx)(i.az,{as:"span",color:"highlight",children:"eg:"})," ",(0,r.jsx)("i",{children:"C,G/2,E/4"}),"."]}),(0,r.jsxs)("p",{children:["Combined, an example line is: ",(0,r.jsx)("i",{children:"E-E4/4,F#/2,G#/8,B/8,E3-E4/4"}),".",(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"Lines may be up to 300 characters."}),(0,r.jsx)("li",{children:"A song may only contain up to 1,000 lines."})]})]}),(0,r.jsx)("h1",{children:"Instrument Advanced Settings"}),(0,r.jsxs)("ul",{children:[(0,r.jsxs)("li",{children:[(0,r.jsx)(i.az,{as:"span",color:"label",children:"Type:"}),"\xa0Whether the instrument is legacy or synthesized.",(0,r.jsx)("br",{}),"Legacy instruments have a collection of sounds that are selectively used depending on the note to play.",(0,r.jsx)("br",{}),"Synthesized instruments use a base sound and change its pitch to match the note to play."]}),(0,r.jsxs)("li",{children:[(0,r.jsx)(i.az,{as:"span",color:"label",children:"Current:"}),"\xa0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!"]}),(0,r.jsxs)("li",{children:[(0,r.jsx)(i.az,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),"\xa0The pitch to apply to all notes of the song."]}),(0,r.jsxs)("li",{children:[(0,r.jsx)(i.az,{as:"span",color:"label",children:"Sustain Mode:"}),"\xa0How a played note fades out.",(0,r.jsx)("br",{}),"Linear sustain means a note will fade out at a constant rate.",(0,r.jsx)("br",{}),"Exponential sustain means a note will fade out at an exponential rate, sounding smoother."]}),(0,r.jsxs)("li",{children:[(0,r.jsx)(i.az,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),"\xa0The volume threshold at which a note is fully stopped."]}),(0,r.jsxs)("li",{children:[(0,r.jsx)(i.az,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),"\xa0Whether the last note should be sustained indefinitely."]})]}),(0,r.jsx)(i.$n,{color:"grey",content:"Close",onClick:function(){return t("help")}})]})})})},s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.lines,c=l.playing,s=l.repeat,d=l.maxRepeats,f=l.tempo,h=l.minTempo,m=l.maxTempo,p=l.tickLag,x=l.volume,g=l.minVolume,j=l.maxVolume,b=l.ready;return(0,r.jsxs)(i.wn,{m:0,title:"Instrument",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{icon:"info",content:"Help",onClick:function(){return t("help")}}),(0,r.jsx)(i.$n,{icon:"file",content:"New",onClick:function(){return t("newsong")}}),(0,r.jsx)(i.$n,{icon:"upload",content:"Import",onClick:function(){return t("import")}})]}),children:[(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Playback",children:[(0,r.jsx)(i.$n,{selected:c,disabled:0===a.length||s<0,icon:"play",content:"Play",onClick:function(){return t("play")}}),(0,r.jsx)(i.$n,{disabled:!c,icon:"stop",content:"Stop",onClick:function(){return t("stop")}})]}),(0,r.jsx)(i.Ki.Item,{label:"Repeat",children:(0,r.jsx)(i.Ap,{animated:!0,minValue:0,maxValue:d,value:s,stepPixelSize:59,onChange:function(e,n){return t("repeat",{new:n})}})}),(0,r.jsx)(i.Ki.Item,{label:"Tempo",children:(0,r.jsxs)(i.az,{children:[(0,r.jsx)(i.$n,{disabled:f>=m,content:"-",as:"span",mr:"0.5rem",onClick:function(){return t("tempo",{new:f+p})}}),Math.round(600/f)," BPM",(0,r.jsx)(i.$n,{disabled:f<=h,content:"+",as:"span",ml:"0.5rem",onClick:function(){return t("tempo",{new:f-p})}})]})}),(0,r.jsx)(i.Ki.Item,{label:"Volume",children:(0,r.jsx)(i.Ap,{animated:!0,minValue:g,maxValue:j,value:x,stepPixelSize:6,tickWhileDragging:!0,onChange:function(e,n){return t("setvolume",{new:n})}})}),(0,r.jsx)(i.Ki.Item,{label:"Status",children:b?(0,r.jsx)(i.az,{color:"good",children:"Ready"}):(0,r.jsx)(i.az,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,r.jsx)(u,{})]})},u=function(e){var n,t,l=(0,o.Oc)(),a=l.act,c=l.data,s=c.allowedInstrumentNames,u=c.instrumentLoaded,d=c.instrument,f=c.canNoteShift,h=c.noteShift,m=c.noteShiftMin,p=c.noteShiftMax,x=c.sustainMode,g=c.sustainLinearDuration,j=c.sustainExponentialDropoff,b=c.legacy,y=c.sustainDropoffVolume,v=c.sustainHeldNote;return 1===x?(n="Linear",t=(0,r.jsx)(i.Ap,{minValue:.1,maxValue:5,value:g,step:.5,stepPixelSize:85,format:function(e){return Math.round(100*e)/100+" seconds"},onChange:function(e,n){return a("setlinearfalloff",{new:n/10})}})):2===x&&(n="Exponential",t=(0,r.jsx)(i.Ap,{minValue:1.025,maxValue:10,value:j,step:.01,format:function(e){return Math.round(1e3*e)/1e3+"% per decisecond"},onChange:function(e,n){return a("setexpfalloff",{new:n})}})),s.sort(),(0,r.jsx)(i.az,{my:-1,children:(0,r.jsx)(i.Nt,{mt:"1rem",mb:"0",title:"Advanced",children:(0,r.jsxs)(i.wn,{mt:-1,children:[(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Type",children:b?"Legacy":"Synthesized"}),(0,r.jsx)(i.Ki.Item,{label:"Current",children:u?(0,r.jsx)(i.ms,{options:s,selected:d,width:"50%",onSelected:function(e){return a("switchinstrument",{name:e})}}):(0,r.jsx)(i.az,{color:"bad",children:"None!"})}),!!(!b&&f)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ki.Item,{label:"Note Shift/Note Transpose",children:(0,r.jsx)(i.Ap,{minValue:m,maxValue:p,value:h,stepPixelSize:2,format:function(e){return e+" keys / "+Math.round(e/12*100)/100+" octaves"},onChange:function(e,n){return a("setnoteshift",{new:n})}})}),(0,r.jsxs)(i.Ki.Item,{label:"Sustain Mode",children:[(0,r.jsx)(i.ms,{options:["Linear","Exponential"],selected:n,mb:"0.4rem",onSelected:function(e){return a("setsustainmode",{new:e})}}),t]}),(0,r.jsx)(i.Ki.Item,{label:"Volume Dropoff Threshold",children:(0,r.jsx)(i.Ap,{animated:!0,minValue:.01,maxValue:100,value:y,stepPixelSize:6,onChange:function(e,n){return a("setdropoffvolume",{new:n})}})}),(0,r.jsx)(i.Ki.Item,{label:"Sustain indefinitely last held note",children:(0,r.jsx)(i.$n,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"Yes":"No",onClick:function(){return a("togglesustainhold")}})})]})]}),(0,r.jsx)(i.$n,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){return a("reset")}})]})})})},d=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.playing,c=l.lines,s=l.editing;return(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{disabled:!s||a,icon:"plus",content:"Add Line",onClick:function(){return t("newline",{line:c.length+1})}}),(0,r.jsx)(i.$n,{selected:!s,icon:s?"chevron-up":"chevron-down",onClick:function(){return t("edit")}})]}),children:!!s&&(c.length>0?(0,r.jsx)(i.Ki,{children:c.map(function(e,n){return(0,r.jsx)(i.Ki.Item,{label:n+1,buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{disabled:a,icon:"pen",onClick:function(){return t("modifyline",{line:n+1})}}),(0,r.jsx)(i.$n,{disabled:a,icon:"trash",onClick:function(){return t("deleteline",{line:n+1})}})]}),children:e},n)})}):(0,r.jsx)(i.az,{color:"label",children:"Song is empty."}))})}},1783:function(e,n,t){"use strict";t.r(n),t.d(n,{KeyComboModal:()=>x});var r=t(8138),i=t(4530),o=t(7790),l=t(925),a=t(2864),c=t(3384),s=t(1942),u=t(9472);function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h=function(e){return e.key!==l._.Alt&&e.key!==l._.Control&&e.key!==l._.Shift&&e.key!==l._.Escape},m={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},p=function(e){var n="";if(e.altKey&&(n+="Alt"),e.ctrlKey&&(n+="Ctrl"),e.shiftKey&&!(e.keyCode>=48&&e.keyCode<=57)&&(n+="Shift"),3===e.location&&(n+="Numpad"),h(e))if(e.shiftKey&&e.keyCode>=48&&e.keyCode<=57)n+="Shift"+(e.keyCode-48);else{var t=e.key.toUpperCase();n+=m[t]||t}return n},x=function(e){var n=(0,a.Oc)(),t=n.act,d=n.data,m=d.init_value,x=d.large_buttons,g=d.message,j=void 0===g?"":g,b=d.title,y=d.timeout,v=f((0,i.useState)(m),2),w=v[0],k=v[1],_=f((0,i.useState)(!0),2),C=_[0],I=_[1],S=function(e){if(!C){e.key===l._.Enter&&t("submit",{entry:w}),(0,l.KL)(e.key)&&t("cancel");return}if(e.preventDefault(),h(e)){O(p(e)),I(!1);return}if(e.key===l._.Escape){O(m),I(!1);return}},O=function(e){e!==w&&k(e)},A=130+(j.length>30?Math.ceil(j.length/3):0)+(j.length&&x?5:0);return(0,r.jsxs)(c.p8,{title:b,width:240,height:A,children:[y&&(0,r.jsx)(u.Loader,{value:y}),(0,r.jsx)(c.p8.Content,{onKeyDown:function(e){S(e)},children:(0,r.jsxs)(o.wn,{fill:!0,children:[(0,r.jsx)(o.y5,{}),(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.az,{color:"label",children:j})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{disabled:C,content:C&&null!==C?"Awaiting input...":""+w,width:"100%",textAlign:"center",onClick:function(){O(m),I(!0)}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(s.InputButtons,{input:w})})]})]})})]})}},3928:function(e,n,t){"use strict";t.r(n),t.d(n,{KeycardAuth:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=(0,r.jsx)(i.wn,{title:"Keycard Authentication Device",children:(0,r.jsx)(i.az,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!a.swiping&&!a.busy)return(0,r.jsx)(l.p8,{width:540,height:280,children:(0,r.jsxs)(l.p8.Content,{children:[c,(0,r.jsx)(i.wn,{title:"Choose Action",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Red Alert",children:(0,r.jsx)(i.$n,{icon:"exclamation-triangle",disabled:!a.redAvailable,onClick:function(){return t("triggerevent",{triggerevent:"Red Alert"})},content:"Red Alert"})}),(0,r.jsx)(i.Ki.Item,{label:"ERT",children:(0,r.jsx)(i.$n,{icon:"broadcast-tower",onClick:function(){return t("triggerevent",{triggerevent:"Emergency Response Team"})},content:"Call ERT"})}),(0,r.jsxs)(i.Ki.Item,{label:"Emergency Maint Access",children:[(0,r.jsx)(i.$n,{icon:"door-open",onClick:function(){return t("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})},content:"Grant"}),(0,r.jsx)(i.$n,{icon:"door-closed",onClick:function(){return t("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})},content:"Revoke"})]}),(0,r.jsxs)(i.Ki.Item,{label:"Emergency Station-Wide Access",children:[(0,r.jsx)(i.$n,{icon:"door-open",onClick:function(){return t("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})},content:"Grant"}),(0,r.jsx)(i.$n,{icon:"door-closed",onClick:function(){return t("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})},content:"Revoke"})]})]})})]})});var s=(0,r.jsx)(i.az,{color:"red",children:"Waiting for YOU to swipe your ID..."});return a.hasSwiped||a.ertreason||"Emergency Response Team"!==a.event?a.hasConfirm?s=(0,r.jsx)(i.az,{color:"green",children:"Request Confirmed!"}):a.isRemote?s=(0,r.jsx)(i.az,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):a.hasSwiped&&(s=(0,r.jsx)(i.az,{color:"orange",children:"Waiting for second person to confirm..."})):s=(0,r.jsx)(i.az,{color:"red",children:"Fill out the reason for your ERT request."}),(0,r.jsx)(l.p8,{width:540,height:265,children:(0,r.jsxs)(l.p8.Content,{children:[c,"Emergency Response Team"===a.event&&(0,r.jsx)(i.wn,{title:"Reason for ERT Call",children:(0,r.jsx)(i.az,{children:(0,r.jsx)(i.$n,{color:a.ertreason?"":"red",icon:a.ertreason?"check":"pencil-alt",content:a.ertreason?a.ertreason:"-----",disabled:a.busy,onClick:function(){return t("ert")}})})}),(0,r.jsx)(i.wn,{title:a.event,buttons:(0,r.jsx)(i.$n,{icon:"arrow-circle-left",content:"Back",disabled:a.busy||a.hasConfirm,onClick:function(){return t("reset")}}),children:s})]})})}},6706:function(e,n,t){"use strict";t.r(n),t.d(n,{KitchenMachine:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(6696),c=function(e){var n=(0,o.Oc)(),t=n.data,c=n.config,u=t.ingredients,d=t.operating,f=c.title;return(0,r.jsx)(l.p8,{width:400,height:320,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(a.Operating,{operating:d,name:f}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(s,{})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,r.jsx)(i.XI,{className:"Ingredient__Table",children:u.map(function(e){return(0,r.jsxs)(i.XI.Row,{tr:5,children:[(0,r.jsx)("td",{children:(0,r.jsx)(i.XI.Cell,{bold:!0,children:e.name})}),(0,r.jsx)("td",{children:(0,r.jsxs)(i.XI.Cell,{collapsing:!0,textAlign:"center",children:[e.amount," ",e.units]})})]},e.name)})})})})]})})})},s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.inactive,c=l.tooltip;return(0,r.jsx)(i.wn,{title:"Controls",children:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",icon:"power-off",disabled:a,tooltip:a?c:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){return t("cook")}})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",icon:"eject",disabled:a,tooltip:a?c:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){return t("eject")}})})]})})}},9846:function(e,n,t){"use strict";t.r(n),t.d(n,{LawManager:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,u=a.isAdmin,d=a.isSlaved,f=a.isMalf,h=a.isAIMalf,m=a.view;return(0,r.jsx)(l.p8,{width:800,height:f?620:365,children:(0,r.jsxs)(l.p8.Content,{scrollable:!0,children:[!!(u&&d)&&(0,r.jsxs)(i.IC,{children:["This unit is slaved to ",d,"."]}),!!(f||h)&&(0,r.jsxs)(i.az,{children:[(0,r.jsx)(i.$n,{content:"Law Management",selected:0===m,onClick:function(){return t("set_view",{set_view:0})}}),(0,r.jsx)(i.$n,{content:"Lawsets",selected:1===m,onClick:function(){return t("set_view",{set_view:1})}})]}),0===m&&(0,r.jsx)(c,{}),1===m&&(0,r.jsx)(s,{})]})})},c=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.has_zeroth_laws,c=l.zeroth_laws,s=l.has_ion_laws,d=l.ion_laws,f=l.ion_law_nr,h=l.has_inherent_laws,m=l.inherent_laws,p=l.has_supplied_laws,x=l.supplied_laws,g=l.channels,j=l.channel,b=l.isMalf,y=l.isAdmin,v=l.zeroth_law,w=l.ion_law,k=l.inherent_law,_=l.supplied_law,C=l.supplied_law_position;return(0,r.jsxs)(r.Fragment,{children:[!!a&&(0,r.jsx)(u,{title:"ERR_NULL_VALUE",laws:c,isMalf:b}),!!s&&(0,r.jsx)(u,{title:"".concat(f),laws:d,isMalf:b}),!!h&&(0,r.jsx)(u,{title:"Inherent",laws:m,isMalf:b}),!!p&&(0,r.jsx)(u,{title:"Supplied",laws:x,isMalf:b}),(0,r.jsx)(i.wn,{title:"Statement Settings",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Statement Channel",children:g.map(function(e){return(0,r.jsx)(i.$n,{content:e.channel,selected:e.channel===j,onClick:function(){return t("law_channel",{law_channel:e.channel})}},e.channel)})}),(0,r.jsx)(i.Ki.Item,{label:"State Laws",children:(0,r.jsx)(i.$n,{content:"State Laws",onClick:function(){return t("state_laws")}})}),(0,r.jsx)(i.Ki.Item,{label:"Law Notification",children:(0,r.jsx)(i.$n,{content:"Notify",onClick:function(){return t("notify_laws")}})})]})}),!!b&&(0,r.jsx)(i.wn,{title:"Add Laws",children:(0,r.jsxs)(i.XI,{children:[(0,r.jsxs)(i.XI.Row,{header:!0,children:[(0,r.jsx)(i.XI.Cell,{width:"10%",children:"Type"}),(0,r.jsx)(i.XI.Cell,{width:"60%",children:"Law"}),(0,r.jsx)(i.XI.Cell,{width:"10%",children:"Index"}),(0,r.jsx)(i.XI.Cell,{width:"20%",children:"Actions"})]}),!!(y&&!a)&&(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:"Zero"}),(0,r.jsx)(i.XI.Cell,{children:v}),(0,r.jsx)(i.XI.Cell,{children:"N/A"}),(0,r.jsxs)(i.XI.Cell,{children:[(0,r.jsx)(i.$n,{content:"Edit",icon:"pencil-alt",onClick:function(){return t("change_zeroth_law")}}),(0,r.jsx)(i.$n,{content:"Add",icon:"plus",onClick:function(){return t("add_zeroth_law")}})]})]}),(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:"Ion"}),(0,r.jsx)(i.XI.Cell,{children:w}),(0,r.jsx)(i.XI.Cell,{children:"N/A"}),(0,r.jsxs)(i.XI.Cell,{children:[(0,r.jsx)(i.$n,{content:"Edit",icon:"pencil-alt",onClick:function(){return t("change_ion_law")}}),(0,r.jsx)(i.$n,{content:"Add",icon:"plus",onClick:function(){return t("add_ion_law")}})]})]}),(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:"Inherent"}),(0,r.jsx)(i.XI.Cell,{children:k}),(0,r.jsx)(i.XI.Cell,{children:"N/A"}),(0,r.jsxs)(i.XI.Cell,{children:[(0,r.jsx)(i.$n,{content:"Edit",icon:"pencil-alt",onClick:function(){return t("change_inherent_law")}}),(0,r.jsx)(i.$n,{content:"Add",icon:"plus",onClick:function(){return t("add_inherent_law")}})]})]}),(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:"Supplied"}),(0,r.jsx)(i.XI.Cell,{children:_}),(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.$n,{content:C,onClick:function(){return t("change_supplied_law_position")}})}),(0,r.jsxs)(i.XI.Cell,{children:[(0,r.jsx)(i.$n,{content:"Edit",icon:"pencil-alt",onClick:function(){return t("change_supplied_law")}}),(0,r.jsx)(i.$n,{content:"Add",icon:"plus",onClick:function(){return t("add_supplied_law")}})]})]})]})})]})},s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.law_sets;return(0,r.jsx)(i.az,{children:l.map(function(e){return(0,r.jsx)(i.wn,{title:e.name+" - "+e.header,buttons:(0,r.jsx)(i.$n,{content:"Load Laws",icon:"download",onClick:function(){return t("transfer_laws",{transfer_laws:e.ref})}}),children:(0,r.jsxs)(i.Ki,{children:[e.laws.has_ion_laws>0&&e.laws.ion_laws.map(function(e){return(0,r.jsx)(i.Ki.Item,{label:e.index,children:e.law},e.index)}),e.laws.has_zeroth_laws>0&&e.laws.zeroth_laws.map(function(e){return(0,r.jsx)(i.Ki.Item,{label:e.index,children:e.law},e.index)}),e.laws.has_inherent_laws>0&&e.laws.inherent_laws.map(function(e){return(0,r.jsx)(i.Ki.Item,{label:e.index,children:e.law},e.index)}),e.laws.has_supplied_laws>0&&e.laws.inherent_laws.map(function(e){return(0,r.jsx)(i.Ki.Item,{label:e.index,children:e.law},e.index)})]})},e.name)})})},u=function(e){var n=(0,o.Oc)(),t=n.act;n.data;var l=e.isMalf,a=e.laws,c=e.title;return(0,r.jsx)(i.wn,{title:c+" Laws",children:(0,r.jsxs)(i.XI,{children:[(0,r.jsxs)(i.XI.Row,{header:!0,children:[(0,r.jsx)(i.XI.Cell,{width:"10%",children:"Index"}),(0,r.jsx)(i.XI.Cell,{width:"69%",children:"Law"}),(0,r.jsx)(i.XI.Cell,{width:"21%",children:"State?"})]}),a.map(function(e){return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:e.index}),(0,r.jsx)(i.XI.Cell,{children:e.law}),(0,r.jsxs)(i.XI.Cell,{children:[(0,r.jsx)(i.$n,{content:e.state?"Yes":"No",selected:e.state,onClick:function(){return t("state_law",{ref:e.ref,state_law:+!e.state})}}),!!l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{content:"Edit",icon:"pencil-alt",onClick:function(){return t("edit_law",{edit_law:e.ref})}}),(0,r.jsx)(i.$n,{content:"Delete",icon:"trash",color:"red",onClick:function(){return t("delete_law",{delete_law:e.ref})}})]})]})]},e.law)})]})})}},3788:function(e,n,t){"use strict";t.r(n),t.d(n,{LawyerSim:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.gamestatus,s=a.crim_name,u=a.crim_job,d=a.crimes_list,f=a.total_sent,h=a.off_name,m=a.station_loc,p=a.arrest_desc,x=a.cand_curriculum,g=a.total_curriculums,j=a.reason;return 0===c?(0,r.jsx)(l.p8,{width:400,height:550,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsxs)(i.wn,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{pt:"45%",fontSize:"31px",color:"white",textAlign:"center",bold:!0,children:"Nanotrasen Magistrate Simulator"}),(0,r.jsx)(i.BJ.Item,{pt:"1%",fontSize:"16px",textAlign:"center",color:"label",children:"Work as the station's Magistrate and review Security's arrest records!"})]})}),(0,r.jsxs)(i.wn,{children:[(0,r.jsx)(i.$n,{textAlign:"center",lineHeight:2,fluid:!0,icon:"play",color:"green",content:"Begin Shift",onClick:function(){return t("start_game")}}),(0,r.jsx)(i.$n,{textAlign:"center",lineHeight:2,fluid:!0,icon:"info",color:"blue",content:"Guide",onClick:function(){return t("instructions")}})]})]})})}):1===c?(0,r.jsx)(l.p8,{width:400,height:550,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(i.wn,{fill:!0,color:"grey",title:"Guide",buttons:(0,r.jsx)(i.$n,{icon:"arrow-left",content:"Main Menu",onClick:function(){return t("back_to_menu")}}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"1#",color:"silver",children:["To win this game you must review ",(0,r.jsx)("b",{children:g})," arrest records, one wrongly made choice leads to a game over."]}),(0,r.jsx)(i.Ki.Item,{label:"2#",color:"silver",children:"Make the right choice by truly putting yourself into the skin of a Magistrate working for Nanotrasen!"}),(0,r.jsxs)(i.Ki.Item,{label:"3#",color:"silver",children:[(0,r.jsx)("b",{children:"Unique"})," characters may appear, pay attention to them!"]}),(0,r.jsx)(i.Ki.Item,{label:"4#",color:"silver",children:"Make sure to pay attention to details like listed crimes, station name, job, and the circumstances around their arrest!"}),(0,r.jsx)(i.Ki.Item,{label:"5#",color:"silver",children:"Be sure to verify that the arresting officer had just cause. If the suspect should never have been in handcuffs, it's invalid!"}),(0,r.jsx)(i.Ki.Item,{label:"6#",color:"silver",children:"The sentencing should match the crimes committed. Review Space Law for the exact times!"}),(0,r.jsxs)(i.Ki.Item,{label:"7#",color:"silver",children:["Pay attention to ",(0,r.jsx)("b",{children:"typos"})," and ",(0,r.jsx)("b",{children:"missing words"}),", these do make for bad records!"]}),(0,r.jsxs)(i.Ki.Item,{label:"8#",color:"silver",children:["Remember, you are reviewing the arrest records of people working on a Nanotrasen station, so don't approve ",(0,r.jsx)("b",{children:"crimes"})," that ",(0,r.jsx)("b",{children:"aren't in Space Law"}),"!"]}),(0,r.jsx)(i.Ki.Item,{label:"9#",color:"silver",children:"Keep your eyes open for nonexistant jobs. If it isn't a valid job, it's possible something went wrong, and the record should be denied!"}),(0,r.jsx)(i.Ki.Item,{label:"10#",color:"silver",children:"Don't let the Clown fool you, they're subject to Space Law the same as anyone else!"})]})})})})}):2===c?(0,r.jsx)(l.p8,{width:400,height:550,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,color:"label",fontSize:"14px",title:"Arrest Records",children:[(0,r.jsxs)(i.az,{fontSize:"24px",textAlign:"center",color:"silver",bold:!0,children:["Record Number #",x]}),(0,r.jsx)("br",{}),(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Name",color:"silver",children:(0,r.jsx)("b",{children:s})}),(0,r.jsx)(i.Ki.Item,{label:"Job",color:"silver",children:(0,r.jsx)("b",{children:u})}),(0,r.jsx)(i.Ki.Item,{label:"Crimes",color:"silver",children:(0,r.jsx)("b",{children:d})}),(0,r.jsx)(i.Ki.Item,{label:"Sentencing",color:"silver",children:(0,r.jsx)("b",{children:f})}),(0,r.jsx)(i.Ki.Item,{label:"Arresting Officer's Name",color:"silver",children:(0,r.jsx)("b",{children:h})}),(0,r.jsx)(i.Ki.Item,{label:"Station",color:"silver",children:(0,r.jsx)("b",{children:m})}),(0,r.jsx)(i.Ki.Item,{label:"Manner of Arrest",color:"silver",children:(0,r.jsx)("b",{children:p})})]})]})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{fill:!0,title:"Stamp the record!",color:"grey",textAlign:"center",children:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{grow:!0,basis:0,children:(0,r.jsx)(i.$n,{fluid:!0,color:"red",content:"Invalid",fontSize:"150%",icon:"ban",lineHeight:4.5,onClick:function(){return t("deny")}})}),(0,r.jsx)(i.BJ.Item,{grow:!0,basis:0,children:(0,r.jsx)(i.$n,{fluid:!0,color:"green",content:"Valid",fontSize:"150%",icon:"arrow-circle-up",lineHeight:4.5,onClick:function(){return t("approve")}})})]})})})]})})}):3===c?(0,r.jsx)(l.p8,{width:400,height:550,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsxs)(i.wn,{pt:"40%",fill:!0,children:[(0,r.jsx)(i.BJ.Item,{bold:!0,color:"red",fontSize:"50px",textAlign:"center",children:"Game Over"}),(0,r.jsx)(i.BJ.Item,{fontSize:"15px",color:"label",textAlign:"center",children:j}),(0,r.jsxs)(i.BJ.Item,{color:"blue",fontSize:"20px",textAlign:"center",pt:"10px",children:["FINAL SCORE: ",x-1,"/",g]})]})}),(0,r.jsx)(i.wn,{children:(0,r.jsx)(i.$n,{lineHeight:4,fluid:!0,icon:"arrow-left",content:"Main Menu",onClick:function(){return t("back_to_menu")}})})]})})}):void 0}},3023:function(e,n,t){"use strict";t.r(n),t.d(n,{LibraryComputer:()=>d});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384),c=t(4744);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}}var d=function(e){var n,t=(n=(0,i.useState)(0),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||u(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=t[0],s=t[1];return(0,r.jsxs)(a.p8,{width:1050,height:600,children:[(0,r.jsx)(c.ComplexModal,{}),(0,r.jsx)(a.p8.Content,{children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(h,{tabIndex:l,setTabIndex:s}),(0,r.jsx)(m,{tabIndex:l})]})})]})},f=function(e){var n,t=(0,l.Oc)(),i=t.act,a=t.data.selected_rating,c=((function(e){if(Array.isArray(e))return s(e)})(n=Array(10))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||u(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(e,n){return n+1});return(0,r.jsxs)(o.BJ,{children:[c.map(function(e,n){return(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{bold:!0,icon:"star",color:a>=e?"caution":"default",onClick:function(){return i("set_rating",{rating_value:e})}})},n)}),(0,r.jsxs)(o.BJ.Item,{bold:!0,ml:2,fontSize:"150%",children:[a+"/10",(0,r.jsx)(o.In,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},h=function(e){var n=(0,l.Oc)().data,t=e.tabIndex,i=e.setTabIndex,a=n.login_state;return(0,r.jsx)(o.BJ.Item,{mb:1,children:(0,r.jsxs)(o.tU,{fluid:!0,textAlign:"center",children:[(0,r.jsx)(o.tU.Tab,{selected:0===t,onClick:function(){return i(0)},children:"Book Archives"}),(0,r.jsx)(o.tU.Tab,{selected:1===t,onClick:function(){return i(1)},children:"Corporate Literature"}),(0,r.jsx)(o.tU.Tab,{selected:2===t,onClick:function(){return i(2)},children:"Upload Book"}),1===a&&(0,r.jsx)(o.tU.Tab,{selected:3===t,onClick:function(){return i(3)},children:"Patron Manager"}),(0,r.jsx)(o.tU.Tab,{selected:4===t,onClick:function(){return i(4)},children:"Inventory"})]})})},m=function(e){switch(e.tabIndex){case 0:return(0,r.jsx)(x,{});case 1:return(0,r.jsx)(g,{});case 2:return(0,r.jsx)(j,{});case 3:return(0,r.jsx)(b,{});case 4:return(0,r.jsx)(y,{});default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},p=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.searchcontent,s=i.book_categories,u=i.user_ckey,d=[];return s.map(function(e){return d[e.description]=e.category_id}),(0,r.jsxs)(o.BJ,{children:[(0,r.jsxs)(o.BJ.Item,{width:"35%",children:[(0,r.jsxs)(o.az,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,r.jsx)(o.In,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Title",children:(0,r.jsx)(o.$n,{textAlign:"left",icon:"pen",width:20,content:a.title||"Input Title",onClick:function(){return(0,c.modalOpen)("edit_search_title")}})}),(0,r.jsx)(o.Ki.Item,{label:"Author",children:(0,r.jsx)(o.$n,{textAlign:"left",icon:"pen",width:20,content:a.author||"Input Author",onClick:function(){return(0,c.modalOpen)("edit_search_author")}})}),(0,r.jsx)(o.Ki.Item,{label:"Ratings",children:(0,r.jsxs)(o.BJ,{children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{mr:1,width:"min-content",content:a.ratingmin,onClick:function(){return(0,c.modalOpen)("edit_search_ratingmin")}})}),(0,r.jsx)(o.BJ.Item,{children:"To"}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{ml:1,width:"min-content",content:a.ratingmax,onClick:function(){return(0,c.modalOpen)("edit_search_ratingmax")}})})]})})]})]}),(0,r.jsxs)(o.BJ.Item,{width:"40%",children:[(0,r.jsxs)(o.az,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,r.jsx)(o.In,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,r.jsx)(o.Ki,{children:(0,r.jsx)(o.Ki.Item,{label:"Select Categories",children:(0,r.jsx)(o.az,{mt:2,children:(0,r.jsx)(o.ms,{mt:.6,width:"190px",options:s.map(function(e){return e.description}),onSelected:function(e){return t("toggle_search_category",{category_id:d[e]})}})})})}),(0,r.jsx)("br",{}),s.filter(function(e){return a.categories.includes(e.category_id)}).map(function(e){return(0,r.jsx)(o.$n,{content:e.description,selected:!0,icon:"unlink",onClick:function(){return t("toggle_search_category",{category_id:e.category_id})}},e.category_id)})]}),(0,r.jsxs)(o.BJ.Item,{children:[(0,r.jsxs)(o.az,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,r.jsx)(o.In,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,r.jsx)(o.$n,{content:"Clear Search",icon:"eraser",onClick:function(){return t("clear_search")}}),a.ckey?(0,r.jsx)(o.$n,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){return t("clear_ckey_search")}}):(0,r.jsx)(o.$n,{content:"Find My Books",icon:"search",onClick:function(){return t("find_users_books",{user_ckey:u})}})]})]})},x=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.external_booklist,s=i.archive_pagenumber,u=i.num_pages,d=i.login_state;return(0,r.jsxs)(o.wn,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,r.jsxs)("div",{children:[(0,r.jsx)(o.$n,{icon:"angle-double-left",disabled:1===s,onClick:function(){return t("deincrementpagemax")}}),(0,r.jsx)(o.$n,{icon:"chevron-left",disabled:1===s,onClick:function(){return t("deincrementpage")}}),(0,r.jsx)(o.$n,{bold:!0,content:s,onClick:function(){return(0,c.modalOpen)("setpagenumber")}}),(0,r.jsx)(o.$n,{icon:"chevron-right",disabled:s===u,onClick:function(){return t("incrementpage")}}),(0,r.jsx)(o.$n,{icon:"angle-double-right",disabled:s===u,onClick:function(){return t("incrementpagemax")}})]}),children:[(0,r.jsx)(p,{}),(0,r.jsx)("hr",{}),(0,r.jsxs)(o.XI,{className:"Library__Booklist",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(o.XI.Cell,{children:"SSID"}),(0,r.jsx)(o.XI.Cell,{children:"Title"}),(0,r.jsx)(o.XI.Cell,{children:"Author"}),(0,r.jsx)(o.XI.Cell,{children:"Ratings"}),(0,r.jsx)(o.XI.Cell,{children:"Category"}),(0,r.jsx)(o.XI.Cell,{textAlign:"middle",children:"Actions"})]}),a.map(function(e){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e.id}),(0,r.jsxs)(o.XI.Cell,{textAlign:"left",children:[(0,r.jsx)(o.In,{name:"book",mr:.5}),e.title.length>45?e.title.substr(0,45)+"...":e.title]}),(0,r.jsx)(o.XI.Cell,{textAlign:"left",children:e.author.length>30?e.author.substr(0,30)+"...":e.author}),(0,r.jsxs)(o.XI.Cell,{children:[e.rating,(0,r.jsx)(o.In,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,r.jsx)(o.XI.Cell,{children:e.categories.join(", ").substr(0,45)}),(0,r.jsxs)(o.XI.Cell,{textAlign:"right",children:[1===d&&(0,r.jsx)(o.$n,{content:"Order",icon:"print",onClick:function(){return t("order_external_book",{bookid:e.id})}}),(0,r.jsx)(o.$n,{content:"More...",onClick:function(){return(0,c.modalOpen)("expand_info",{bookid:e.id})}})]})]},e.id)})]})]})},g=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.programmatic_booklist,s=i.login_state;return(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,r.jsxs)(o.XI,{className:"Library__Booklist",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(o.XI.Cell,{children:"SSID"}),(0,r.jsx)(o.XI.Cell,{children:"Title"}),(0,r.jsx)(o.XI.Cell,{children:"Author"}),(0,r.jsx)(o.XI.Cell,{textAlign:"middle",children:"Actions"})]}),a.map(function(e,n){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e.id}),(0,r.jsxs)(o.XI.Cell,{textAlign:"left",children:[(0,r.jsx)(o.In,{name:"book",mr:2}),e.title]}),(0,r.jsx)(o.XI.Cell,{textAlign:"left",children:e.author}),(0,r.jsxs)(o.XI.Cell,{textAlign:"right",children:[1===s&&(0,r.jsx)(o.$n,{content:"Order",icon:"print",onClick:function(){return t("order_programmatic_book",{bookid:e.id})}}),(0,r.jsx)(o.$n,{content:"More...",onClick:function(){return(0,c.modalOpen)("expand_info",{bookid:e.id})}})]})]},n)})]})})},j=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.selectedbook,s=i.book_categories,u=i.user_ckey,d=[];return s.map(function(e){return d[e.description]=e.category_id}),(0,r.jsxs)(o.wn,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,r.jsx)(o.$n.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:a.copyright,content:"Upload Book",onClick:function(){return t("uploadbook",{user_ckey:u})}}),children:[a.copyright?(0,r.jsx)(o.IC,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,r.jsx)("br",{}),(0,r.jsxs)(o.az,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,r.jsx)(o.In,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,r.jsxs)(o.BJ,{children:[(0,r.jsxs)(o.BJ.Item,{children:[(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Title",children:(0,r.jsx)(o.$n,{width:20,textAlign:"left",icon:"pen",disabled:a.copyright,content:a.title,onClick:function(){return(0,c.modalOpen)("edit_selected_title")}})}),(0,r.jsx)(o.Ki.Item,{label:"Author",children:(0,r.jsx)(o.$n,{width:20,textAlign:"left",icon:"pen",disabled:a.copyright,content:a.author,onClick:function(){return(0,c.modalOpen)("edit_selected_author")}})}),(0,r.jsx)(o.Ki.Item,{label:"Select Categories",children:(0,r.jsx)(o.az,{children:(0,r.jsx)(o.ms,{width:"240px",options:s.map(function(e){return e.description}),onSelected:function(e){return t("toggle_upload_category",{category_id:d[e]})}})})})]}),(0,r.jsx)("br",{}),s.filter(function(e){return a.categories.includes(e.category_id)}).map(function(e){return(0,r.jsx)(o.$n,{content:e.description,disabled:a.copyright,selected:!0,icon:"unlink",onClick:function(){return t("toggle_upload_category",{category_id:e.category_id})}},e.category_id)})]}),(0,r.jsx)(o.BJ.Item,{mr:75,children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Summary",children:(0,r.jsx)(o.$n,{icon:"pen",width:"auto",disabled:a.copyright,content:"Edit Summary",onClick:function(){return(0,c.modalOpen)("edit_selected_summary")}})}),(0,r.jsx)(o.Ki.Item,{children:a.summary})]})})]})]})},b=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data.checkout_data;return(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,r.jsxs)(o.XI,{className:"Library__Booklist",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(o.XI.Cell,{children:"Patron"}),(0,r.jsx)(o.XI.Cell,{children:"Title"}),(0,r.jsx)(o.XI.Cell,{children:"Time Left"}),(0,r.jsx)(o.XI.Cell,{children:"Actions"})]}),i.map(function(e,n){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsxs)(o.XI.Cell,{children:[(0,r.jsx)(o.In,{name:"user-tag"}),e.patron_name]}),(0,r.jsx)(o.XI.Cell,{textAlign:"left",children:e.title}),(0,r.jsx)(o.XI.Cell,{children:e.timeleft>=0?e.timeleft:"LATE"}),(0,r.jsx)(o.XI.Cell,{textAlign:"left",children:(0,r.jsx)(o.$n,{content:"Mark Lost",icon:"flag",color:"bad",disabled:e.timeleft>=0,onClick:function(){return t("reportlost",{libraryid:e.libraryid})}})})]},n)})]})})},y=function(e){var n=(0,l.Oc)(),t=(n.act,n.data).inventory_list;return(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,r.jsxs)(o.XI,{className:"Library__Booklist",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(o.XI.Cell,{children:"LIB ID"}),(0,r.jsx)(o.XI.Cell,{children:"Title"}),(0,r.jsx)(o.XI.Cell,{children:"Author"}),(0,r.jsx)(o.XI.Cell,{children:"Status"})]}),t.map(function(e,n){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e.libraryid}),(0,r.jsxs)(o.XI.Cell,{textAlign:"left",children:[(0,r.jsx)(o.In,{name:"book"})," ",e.title]}),(0,r.jsx)(o.XI.Cell,{textAlign:"left",children:e.author}),(0,r.jsx)(o.XI.Cell,{textAlign:"left",children:e.checked_out?"Checked Out":"Available"})]},n)})]})})};(0,c.modalRegisterBodyOverride)("expand_info",function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=e.args,s=i.user_ckey;return(0,r.jsxs)(o.wn,{children:[(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Title",children:a.title}),(0,r.jsx)(o.Ki.Item,{label:"Author",children:a.author}),(0,r.jsx)(o.Ki.Item,{label:"Summary",children:a.summary}),(0,r.jsxs)(o.Ki.Item,{label:"Rating",children:[a.rating,(0,r.jsx)(o.In,{name:"star",color:"yellow",verticalAlign:"top"})]}),!a.isProgrammatic&&(0,r.jsx)(o.Ki.Item,{label:"Categories",children:a.categories.join(", ")})]}),(0,r.jsx)("br",{}),s===a.ckey&&(0,r.jsx)(o.$n,{content:"Delete Book",icon:"trash",color:"red",disabled:a.isProgrammatic,onClick:function(){return t("delete_book",{bookid:a.id,user_ckey:s})}}),(0,r.jsx)(o.$n,{content:"Report Book",icon:"flag",color:"red",disabled:a.isProgrammatic,onClick:function(){return(0,c.modalOpen)("report_book",{bookid:a.id})}}),(0,r.jsx)(o.$n,{content:"Rate Book",icon:"star",color:"caution",disabled:a.isProgrammatic,onClick:function(){return(0,c.modalOpen)("rate_info",{bookid:a.id})}})]})}),(0,c.modalRegisterBodyOverride)("report_book",function(e){var n=(0,l.Oc)(),t=n.act,a=n.data,c=e.args,s=a.selected_report,u=a.report_categories,d=a.user_ckey;return(0,r.jsxs)(o.wn,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Title",children:c.title}),(0,r.jsx)(o.Ki.Item,{label:"Reasons",children:(0,r.jsx)(o.az,{children:u.map(function(e,n){return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(o.$n,{content:e.description,selected:e.category_id===s,onClick:function(){return t("set_report",{report_type:e.category_id})}}),(0,r.jsx)("br",{})]},n)})})})]}),(0,r.jsx)(o.$n.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){return t("submit_report",{bookid:c.id,user_ckey:d})}})]})}),(0,c.modalRegisterBodyOverride)("rate_info",function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=e.args,c=i.user_ckey;return(0,r.jsxs)(o.wn,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Title",children:a.title}),(0,r.jsx)(o.Ki.Item,{label:"Author",children:a.author}),(0,r.jsxs)(o.Ki.Item,{label:"Rating",children:[a.current_rating?a.current_rating:0,(0,r.jsx)(o.In,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,r.jsx)(o.Ki.Item,{label:"Total Ratings",children:a.total_ratings?a.total_ratings:0})]}),(0,r.jsx)(f,{}),(0,r.jsx)(o.$n.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){return t("rate_book",{bookid:a.id,user_ckey:c})}})]})})},183:function(e,n,t){"use strict";t.r(n),t.d(n,{LibraryManager:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(4744),c=function(e){return(0,r.jsxs)(l.p8,{width:600,height:600,children:[(0,r.jsx)(a.ComplexModal,{}),(0,r.jsx)(l.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,r.jsx)(s,{})})]})},s=function(e){var n=(0,o.Oc)();switch((n.act,n.data).pagestate){case 1:return(0,r.jsx)(u,{});case 2:return(0,r.jsx)(f,{});case 3:return(0,r.jsx)(d,{});default:return"WE SHOULDN'T BE HERE!"}},u=function(e){var n=(0,o.Oc)(),t=n.act;return n.data,(0,r.jsxs)(i.wn,{children:[(0,r.jsxs)(i.az,{fontSize:"1.4rem",bold:!0,children:[(0,r.jsx)(i.In,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,r.jsx)("br",{}),(0,r.jsx)(i.$n,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){return(0,a.modalOpen)("specify_ssid_delete")}}),(0,r.jsx)(i.$n,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){return(0,a.modalOpen)("specify_ckey_delete")}}),(0,r.jsx)("br",{}),(0,r.jsx)(i.$n,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){return(0,a.modalOpen)("specify_ckey_search")}}),(0,r.jsx)(i.$n,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){return t("view_reported_books")}})]})},d=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.reports;return(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.XI,{className:"Library__Booklist",children:[(0,r.jsxs)(i.az,{fontSize:"1.2rem",bold:!0,children:[(0,r.jsx)(i.In,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,r.jsx)("br",{}),"All Reported Books",(0,r.jsx)("br",{})]}),(0,r.jsx)(i.$n,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){return t("return")}}),(0,r.jsxs)(i.XI.Row,{bold:!0,children:[(0,r.jsx)(i.XI.Cell,{children:"Uploader CKEY"}),(0,r.jsx)(i.XI.Cell,{children:"SSID"}),(0,r.jsx)(i.XI.Cell,{children:"Title"}),(0,r.jsx)(i.XI.Cell,{children:"Author"}),(0,r.jsx)(i.XI.Cell,{children:"Report Type"}),(0,r.jsx)(i.XI.Cell,{children:"Reporter Ckey"}),(0,r.jsx)(i.XI.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),l.map(function(e){return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{bold:!0,children:e.uploader_ckey}),(0,r.jsx)(i.XI.Cell,{children:e.id}),(0,r.jsxs)(i.XI.Cell,{textAlign:"left",children:[(0,r.jsx)(i.In,{name:"book"}),e.title]}),(0,r.jsx)(i.XI.Cell,{textAlign:"left",children:e.author}),(0,r.jsx)(i.XI.Cell,{textAlign:"left",children:e.report_description}),(0,r.jsx)(i.XI.Cell,{bold:!0,children:e.reporter_ckey}),(0,r.jsxs)(i.XI.Cell,{children:[(0,r.jsx)(i.$n.Confirm,{content:"Delete",icon:"trash",onClick:function(){return t("delete_book",{bookid:e.id})}}),(0,r.jsx)(i.$n,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){return t("unflag_book",{bookid:e.id})}}),(0,r.jsx)(i.$n,{content:"View",onClick:function(){return t("view_book",{bookid:e.id})}})]})]},e.id)})]})})},f=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.ckey,c=l.booklist;return(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.XI,{className:"Library__Booklist",children:[(0,r.jsxs)(i.az,{fontSize:"1.2rem",bold:!0,children:[(0,r.jsx)(i.In,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,r.jsx)("br",{}),"Books uploaded by ",a,(0,r.jsx)("br",{})]}),(0,r.jsx)(i.$n,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){return t("return")}}),(0,r.jsxs)(i.XI.Row,{bold:!0,children:[(0,r.jsx)(i.XI.Cell,{children:"SSID"}),(0,r.jsx)(i.XI.Cell,{children:"Title"}),(0,r.jsx)(i.XI.Cell,{children:"Author"}),(0,r.jsx)(i.XI.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),c.map(function(e){return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:e.id}),(0,r.jsxs)(i.XI.Cell,{textAlign:"left",children:[(0,r.jsx)(i.In,{name:"book"}),e.title]}),(0,r.jsx)(i.XI.Cell,{textAlign:"left",children:e.author}),(0,r.jsxs)(i.XI.Cell,{textAlign:"right",children:[(0,r.jsx)(i.$n.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){return t("delete_book",{bookid:e.id})}}),(0,r.jsx)(i.$n,{content:"View",onClick:function(){return t("view_book",{bookid:e.id})}})]})]},e.id)})]})})}},1536:function(e,n,t){"use strict";t.r(n),t.d(n,{ListInputModal:()=>h});var r=t(8138),i=t(4530),o=t(7790),l=t(7686),a=t(2864),c=t(3384),s=t(1942),u=t(9472);function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h=function(e){var n=(0,a.Oc)(),t=n.act,d=n.data,h=d.items,x=void 0===h?[]:h,g=d.message,j=void 0===g?"":g,b=d.init_value,y=d.timeout,v=d.title,w=f((0,i.useState)(x.indexOf(b)),2),k=w[0],_=w[1],C=f((0,i.useState)(x.length>10),2),I=C[0],S=C[1],O=f((0,i.useState)(""),2),A=O[0],P=O[1],B=function(e){var n,t,r,i,o=T.length-1;e===l.R?null===k||k===o?(_(0),null==(n=document.getElementById("0"))||n.scrollIntoView()):(_(k+1),null==(t=document.getElementById((k+1).toString()))||t.scrollIntoView()):e===l.gf&&(null===k||0===k?(_(o),null==(r=document.getElementById(o.toString()))||r.scrollIntoView()):(_(k-1),null==(i=document.getElementById((k-1).toString()))||i.scrollIntoView()))},E=function(e){var n=String.fromCharCode(e),t=x.find(function(e){return null==e?void 0:e.toLowerCase().startsWith(null==n?void 0:n.toLowerCase())});if(t){var r,i=x.indexOf(t);_(i),null==(r=document.getElementById(i.toString()))||r.scrollIntoView()}},z=function(){S(!I),P("")},T=x.filter(function(e){return null==e?void 0:e.toLowerCase().includes(A.toLowerCase())}),N=350+Math.ceil(j.length/3);return I||setTimeout(function(){var e;return null==(e=document.getElementById(k.toString()))?void 0:e.focus()},1),(0,r.jsxs)(c.p8,{title:v,width:325,height:N,children:[y&&(0,r.jsx)(u.Loader,{value:y}),(0,r.jsx)(c.p8.Content,{onKeyDown:function(e){var n=window.event?e.which:e.keyCode;(n===l.R||n===l.gf)&&(e.preventDefault(),B(n)),n===l.Ri&&(e.preventDefault(),t("submit",{entry:T[k]})),!I&&n>=l.W8&&n<=l.bh&&(e.preventDefault(),E(n)),n===l.s6&&(e.preventDefault(),t("cancel"))},children:(0,r.jsx)(o.wn,{buttons:(0,r.jsx)(o.$n,{compact:!0,icon:I?"search":"font",selected:!0,tooltip:I?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){return z()}}),className:"ListInput__Section",fill:!0,title:j,children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(m,{filteredItems:T,onClick:function(e){e!==k&&_(e)},onFocusSearch:function(){S(!1),S(!0)},searchBarVisible:I,selected:k})}),(0,r.jsx)(o.BJ.Item,{m:0,children:I&&(0,r.jsx)(p,{filteredItems:T,onSearch:function(e){var n;e!==A&&(P(e),_(0),null==(n=document.getElementById("0"))||n.scrollIntoView())},searchQuery:A,selected:k})}),(0,r.jsx)(o.BJ.Item,{mt:.5,children:(0,r.jsx)(s.InputButtons,{input:T[k]})})]})})})]})},m=function(e){var n=(0,a.Oc)().act,t=e.filteredItems,i=e.onClick,c=e.onFocusSearch,s=e.searchBarVisible,u=e.selected;return(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,children:t.map(function(e,a){return(0,r.jsx)(o.$n,{fluid:!0,color:"transparent",id:a,onClick:function(){return i(a)},onMouseDown:function(e){2===e.detail&&(e.preventDefault(),n("submit",{entry:t[u]}))},onKeyDown:function(e){var n=window.event?e.which:e.keyCode;s&&n>=l.W8&&n<=l.bh&&(e.preventDefault(),c())},selected:a===u,style:{animation:"none",transition:"none"},children:e.replace(/^\w/,function(e){return e.toUpperCase()})},a)})})},p=function(e){var n=(0,a.Oc)().act,t=e.filteredItems,i=e.onSearch,l=e.searchQuery,c=e.selected;return(0,r.jsx)(o.pd,{width:"100%",autoFocus:!0,autoSelect:!0,placeholder:"Search...",value:l,onChange:function(e){return i(e)},onEnter:function(){n("submit",{entry:t[c]})}})}},7239:function(e,n,t){"use strict";t.r(n),t.d(n,{Loadout:()=>f});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d={Default:function(e,n){return e.gear.gear_tier-n.gear.gear_tier},Alphabetical:function(e,n){return e.gear.name.toLowerCase().localeCompare(n.gear.name.toLowerCase())},Cost:function(e,n){return e.gear.cost-n.gear.cost}},f=function(e){var n=(0,a.Oc)(),t=(n.act,n.data),l=u((0,i.useState)(!1),2),s=l[0],d=l[1],f=u((0,i.useState)(""),2),g=f[0],j=f[1],b=u((0,i.useState)(Object.keys(t.gears)[0]),2),y=b[0],v=b[1],w=u((0,i.useState)(""),2),k=w[0],_=w[1];return(0,r.jsxs)(c.p8,{width:1105,height:650,children:[k&&(0,r.jsx)(x,{tweakedGear:k,setTweakedGear:_}),(0,r.jsx)(c.p8.Content,{scrollable:!0,children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(h,{category:y,setCategory:v})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsxs)(o.BJ,{fill:!0,children:[(0,r.jsx)(o.BJ.Item,{basis:"25%",children:(0,r.jsx)(p,{setTweakedGear:_})}),(0,r.jsx)(o.BJ.Item,{basis:"75%",children:(0,r.jsx)(m,{category:y,search:s,setSearch:d,searchText:g,setSearchText:j})})]})})]})})]})},h=function(e){var n=(0,a.Oc)(),t=(n.act,n.data),i=e.category,l=e.setCategory;return(0,r.jsx)(o.tU,{fluid:!0,textAlign:"center",style:{flexWrap:"wrap-reverse"},children:Object.keys(t.gears).map(function(e){return(0,r.jsx)(o.tU.Tab,{selected:e===i,style:{whiteSpace:"nowrap"},onClick:function(){return l(e)},children:e},e)})})},m=function(e){var n,t=(0,a.Oc)(),c=t.act,s=t.data,f=s.user_tier,h=s.gear_slots,m=s.max_gear_slots,p=e.category,x=e.search,g=e.setSearch,j=e.searchText,b=e.setSearchText,y=u((0,i.useState)("Default"),2),v=y[0],w=y[1],k=u((0,i.useState)(!1),2),_=k[0],C=k[1],I=(0,l.XZ)(j,function(e){return e.name});return(n=j.length>2?Object.entries(s.gears).reduce(function(e,n){var t=u(n,2),r=(t[0],t[1]);return e.concat(Object.entries(r).map(function(e){var n=u(e,2);return{key:n[0],gear:n[1]}}))},[]).filter(function(e){return I(e.gear)}):Object.entries(s.gears[p]).map(function(e){var n=u(e,2);return{key:n[0],gear:n[1]}})).sort(d[v]),_&&(n=n.reverse()),(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:p,buttons:(0,r.jsxs)(o.BJ,{children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.ms,{height:1.66,selected:v,options:Object.keys(d),onSelected:function(e){return w(e)}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{icon:_?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:_?"Ascending order":"Descending order",tooltipPosition:"bottom-end",onClick:function(){return C(!_)}})}),x&&(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.pd,{width:20,placeholder:"Search...",value:j,onChange:function(e){return b(e)}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{icon:"magnifying-glass",selected:x,tooltip:"Toggle search field",tooltipPosition:"bottom-end",onClick:function(){g(!x),b("")}})})]}),children:n.map(function(e){var n=e.key,t=e.gear,i=Object.keys(s.selected_gears).includes(n),l=1===t.cost?"".concat(t.cost," Point"):"".concat(t.cost," Points"),a=(0,r.jsxs)(o.az,{children:[t.name.length>12&&(0,r.jsx)(o.az,{children:t.name}),t.gear_tier>f&&(0,r.jsx)(o.az,{mt:t.name.length>12&&1.5,textColor:"red",children:"That gear is only available at a higher donation tier than you are on."})]}),d=(0,r.jsxs)(r.Fragment,{children:[t.allowed_roles&&(0,r.jsx)(o.$n,{width:"22px",color:"transparent",icon:"user",tooltip:(0,r.jsx)(o.wn,{m:-1,title:"Allowed Roles",children:t.allowed_roles.map(function(e){return(0,r.jsx)(o.az,{children:e},e)})}),tooltipPosition:"left"}),Object.entries(t.tweaks).map(function(e){var n=u(e,2),t=n[0];return n[1].map(function(e){return(0,r.jsx)(o.$n,{width:"22px",color:"transparent",icon:e.icon,tooltip:e.tooltip,tooltipPosition:"top"},t)})}),(0,r.jsx)(o.$n,{width:"22px",color:"transparent",icon:"info",tooltip:t.desc,tooltipPosition:"top"})]}),p=(0,r.jsxs)(o.az,{className:"Loadout-InfoBox",children:[(0,r.jsx)(o.az,{style:{flexGrow:1},fontSize:1,color:"gold",opacity:.75,children:t.gear_tier>0&&"Tier ".concat(t.gear_tier)}),(0,r.jsx)(o.az,{fontSize:.75,opacity:.66,children:l})]});return(0,r.jsx)(o.c_,{m:.5,imageSize:84,dmIcon:t.icon,dmIconState:t.icon_state,tooltip:(t.name.length>12||t.gear_tier>0)&&a,tooltipPosition:"bottom",selected:i,disabled:t.gear_tier>f||h+t.cost>m&&!i,buttons:d,buttonsAlt:p,onClick:function(){return c("toggle_gear",{gear:n})},children:t.name},n)})})},p=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data,l=e.setTweakedGear,c=Object.entries(i.gears).reduce(function(e,n){var t=u(n,2),r=Object.entries((t[0],t[1])).filter(function(e){var n=u(e,1)[0];return Object.keys(i.selected_gears).includes(n)}).map(function(e){var n=u(e,2);return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({key:n[0]},n[1])});return e.concat(r)},[]);return(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"Selected Equipment",buttons:(0,r.jsx)(o.$n.Confirm,{icon:"trash",tooltip:"Clear Loadout",tooltipPosition:"bottom-end",onClick:function(){return t("clear_loadout")}}),children:c.map(function(e){return(0,r.jsx)(o.c_,{fluid:!0,imageSize:32,dmIcon:e.icon,dmIconState:e.icon_state,buttons:(0,r.jsxs)(r.Fragment,{children:[Object.entries(e.tweaks).length>0&&(0,r.jsx)(o.$n,{icon:"gears",iconColor:"gray",width:"33px",onClick:function(){return l(e)}}),(0,r.jsx)(o.$n,{icon:"times",iconColor:"red",width:"32px",onClick:function(){return t("toggle_gear",{gear:e.key})}})]}),children:e.name},e.key)})})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.wn,{children:(0,r.jsx)(o.z2,{value:i.gear_slots,maxValue:i.max_gear_slots,ranges:{bad:[i.max_gear_slots,1/0],average:[.66*i.max_gear_slots,i.max_gear_slots],good:[0,.66*i.max_gear_slots]},children:(0,r.jsxs)(o.az,{textAlign:"center",children:["Used points ",i.gear_slots,"/",i.max_gear_slots]})})})})]})},x=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data,l=e.tweakedGear,c=e.setTweakedGear;return(0,r.jsx)(o.Rr,{children:(0,r.jsx)(o.az,{className:"Loadout-Modal__background",children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,width:20,height:20,title:l.name,buttons:(0,r.jsx)(o.$n,{color:"red",icon:"times",tooltip:"Close",tooltipPosition:"top",onClick:function(){return c("")}}),children:(0,r.jsx)(o.Ki,{children:Object.entries(l.tweaks).map(function(e){var n=u(e,2),a=n[0];return n[1].map(function(e){var n=i.selected_gears[l.key][a];return(0,r.jsxs)(o.Ki.Item,{label:e.name,color:n?"":"gray",buttons:(0,r.jsx)(o.$n,{color:"transparent",icon:"pen",onClick:function(){return t("set_tweak",{gear:l.key,tweak:a})}}),children:[n||"Default",(0,r.jsx)(o.az,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{backgroundColor:"".concat(n)}})]},a)})})})})})})}},4151:function(e,n,t){"use strict";t.r(n),t.d(n,{LoreConsole:()=>no});var r,i=t(8138),o=t(2864),l=t(4530),a=t(7790),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}function d(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,n,t){return n&&d(e.prototype,n),t&&d(e,t),e}function h(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){h(e,n,t[n])})}return e}function p(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function x(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var g=x(),j=/[&<>"']/,b=RegExp(j.source,"g"),y=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,v=RegExp(y.source,"g"),w={"&":"&","<":"<",">":">",'"':""","'":"'"},k=function(e){return w[e]};function _(e,n){if(n){if(j.test(e))return e.replace(b,k)}else if(y.test(e))return e.replace(v,k);return e}var C=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function I(e){return e.replace(C,function(e,n){return"colon"===(n=n.toLowerCase())?":":"#"===n.charAt(0)?"x"===n.charAt(1)?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""})}var S=/(^|[^\[])\^/g;function O(e,n){e="string"==typeof e?e:e.source,n=n||"";var t={replace:function(n,r){return r=(r=r.source||r).replace(S,"$1"),e=e.replace(n,r),t},getRegex:function(){return new RegExp(e,n)}};return t}var A=/[^\w:]/g,P=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function B(e,n,t){var r,i,o,l;if(e){try{r=decodeURIComponent(I(t)).replace(A,"").toLowerCase()}catch(e){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}n&&!P.test(t)&&(i=n,o=t,E[" "+i]||(z.test(i)?E[" "+i]=i+"/":E[" "+i]=D(i,"/",!0)),l=-1===(i=E[" "+i]).indexOf(":"),t="//"===o.substring(0,2)?l?o:i.replace(T,"$1")+o:"/"!==o.charAt(0)?i+o:l?o:i.replace(N,"$1")+o);try{t=encodeURI(t).replace(/%25/g,"%")}catch(e){return null}return t}var E={},z=/^[^:]+:\/*[^/]*$/,T=/^([^:]+:)[\s\S]*$/,N=/^([^:]+:\/*[^/]*)[\s\S]*$/,R={exec:function(){}};function $(e,n){var t=e.replace(/\|/g,function(e,n,t){for(var r=!1,i=n;--i>=0&&"\\"===t[i];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(t[0].trim()||t.shift(),t.length>0&&!t[t.length-1].trim()&&t.pop(),t.length>n)t.splice(n);else for(;t.length<n;)t.push("");for(;r<t.length;r++)t[r]=t[r].trim().replace(/\\\|/g,"|");return t}function D(e,n,t){var r=e.length;if(0===r)return"";for(var i=0;i<r;){var o=e.charAt(r-i-1);if(o!==n||t)if(o!==n&&t)i++;else break;else i++}return e.slice(0,r-i)}function M(e,n){if(n<1)return"";for(var t="";n>1;)1&n&&(t+=e),n>>=1,e+=e;return t+e}function L(e,n,t,r){var i=n.href,o=n.title?_(n.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;var a={type:"link",raw:t,href:i,title:o,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,a}return{type:"image",raw:t,href:i,title:o,text:_(l)}}var K=function(){function e(n){u(this,e),this.options=n||g}return f(e,[{key:"space",value:function(e){var n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}},{key:"code",value:function(e){var n=this.rules.block.code.exec(e);if(n){var t=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?t:D(t,"\n")}}}},{key:"fences",value:function(e){var n=this.rules.block.fences.exec(e);if(n){var t=n[0],r=function(e,n){var t=e.match(/^(\s+)(?:```)/);if(null===t)return n;var r=t[1];return n.split("\n").map(function(e){var n=e.match(/^\s+/);return null===n?e:(function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),1!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,1)||function(e,n){if(e){if("string"==typeof e)return s(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,1)}}(n,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].length>=r.length?e.slice(r.length):e}).join("\n")}(t,n[3]||"");return{type:"code",raw:t,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:r}}}},{key:"heading",value:function(e){var n=this.rules.block.heading.exec(e);if(n){var t=n[2].trim();if(/#$/.test(t)){var r=D(t,"#");this.options.pedantic?t=r.trim():(!r||/ $/.test(r))&&(t=r.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:t,tokens:this.lexer.inline(t)}}}},{key:"hr",value:function(e){var n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:n[0]}}},{key:"blockquote",value:function(e){var n=this.rules.block.blockquote.exec(e);if(n){var t=n[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;var i=this.lexer.blockTokens(t);return this.lexer.state.top=r,{type:"blockquote",raw:n[0],tokens:i,text:t}}}},{key:"list",value:function(e){var n=this.rules.block.list.exec(e);if(n){var t,r,i,o,l,a,c,s,u,d,f,h,m=n[1].trim(),p=m.length>1,x={type:"list",raw:"",ordered:p,start:p?+m.slice(0,-1):"",loose:!1,items:[]};m=p?"\\d{1,9}\\".concat(m.slice(-1)):"\\".concat(m),this.options.pedantic&&(m=p?m:"[*+-]");for(var g=new RegExp("^( {0,3}".concat(m,")((?:[ ][^\\n]*)?(?:\\n|$))"));e&&(h=!1,!(!(n=g.exec(e))||this.rules.block.hr.test(e)));){if(t=n[0],e=e.substring(t.length),s=n[2].split("\n",1)[0].replace(/^\t+/,function(e){return" ".repeat(3*e.length)}),u=e.split("\n",1)[0],this.options.pedantic?(o=2,f=s.trimLeft()):(o=(o=n[2].search(/[^ ]/))>4?1:o,f=s.slice(o),o+=n[1].length),a=!1,!s&&/^ *$/.test(u)&&(t+=u+"\n",e=e.substring(u.length+1),h=!0),!h)for(var j=new RegExp("^ {0,".concat(Math.min(3,o-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))")),b=new RegExp("^ {0,".concat(Math.min(3,o-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),y=new RegExp("^ {0,".concat(Math.min(3,o-1),"}(?:```|~~~)")),v=new RegExp("^ {0,".concat(Math.min(3,o-1),"}#"));e&&(u=d=e.split("\n",1)[0],this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(y.test(u)||v.test(u)||j.test(u)||b.test(e)));){if(u.search(/[^ ]/)>=o||!u.trim())f+="\n"+u.slice(o);else{if(a||s.search(/[^ ]/)>=4||y.test(s)||v.test(s)||b.test(s))break;f+="\n"+u}a||u.trim()||(a=!0),t+=d+"\n",e=e.substring(d.length+1),s=u.slice(o)}!x.loose&&(c?x.loose=!0:/\n *\n *$/.test(t)&&(c=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(f))&&(i="[ ] "!==r[0],f=f.replace(/^\[[ xX]\] +/,"")),x.items.push({type:"list_item",raw:t,task:!!r,checked:i,loose:!1,text:f}),x.raw+=t}x.items[x.items.length-1].raw=t.trimRight(),x.items[x.items.length-1].text=f.trimRight(),x.raw=x.raw.trimRight();var w=x.items.length;for(l=0;l<w;l++)if(this.lexer.state.top=!1,x.items[l].tokens=this.lexer.blockTokens(x.items[l].text,[]),!x.loose){var k=x.items[l].tokens.filter(function(e){return"space"===e.type});x.loose=k.length>0&&k.some(function(e){return/\n.*\n/.test(e.raw)})}if(x.loose)for(l=0;l<w;l++)x.items[l].loose=!0;return x}}},{key:"html",value:function(e){var n=this.rules.block.html.exec(e);if(n){var t={type:"html",raw:n[0],pre:!this.options.sanitizer&&("pre"===n[1]||"script"===n[1]||"style"===n[1]),text:n[0]};if(this.options.sanitize){var r=this.options.sanitizer?this.options.sanitizer(n[0]):_(n[0]);t.type="paragraph",t.text=r,t.tokens=this.lexer.inline(r)}return t}}},{key:"def",value:function(e){var n=this.rules.block.def.exec(e);if(n){var t=n[1].toLowerCase().replace(/\s+/g," "),r=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes,"$1"):n[3];return{type:"def",tag:t,raw:n[0],href:r,title:i}}}},{key:"table",value:function(e){var n=this.rules.block.table.exec(e);if(n){var t={type:"table",header:$(n[1]).map(function(e){return{text:e}}),align:n[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(t.header.length===t.align.length){t.raw=n[0];var r,i,o,l,a=t.align.length;for(r=0;r<a;r++)/^ *-+: *$/.test(t.align[r])?t.align[r]="right":/^ *:-+: *$/.test(t.align[r])?t.align[r]="center":/^ *:-+ *$/.test(t.align[r])?t.align[r]="left":t.align[r]=null;for(r=0,a=t.rows.length;r<a;r++)t.rows[r]=$(t.rows[r],t.header.length).map(function(e){return{text:e}});for(i=0,a=t.header.length;i<a;i++)t.header[i].tokens=this.lexer.inline(t.header[i].text);for(i=0,a=t.rows.length;i<a;i++)for(o=0,l=t.rows[i];o<l.length;o++)l[o].tokens=this.lexer.inline(l[o].text);return t}}}},{key:"lheading",value:function(e){var n=this.rules.block.lheading.exec(e);if(n)return{type:"heading",raw:n[0],depth:"="===n[2].charAt(0)?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}},{key:"paragraph",value:function(e){var n=this.rules.block.paragraph.exec(e);if(n){var t="\n"===n[1].charAt(n[1].length-1)?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:t,tokens:this.lexer.inline(t)}}}},{key:"text",value:function(e){var n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}},{key:"escape",value:function(e){var n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:_(n[1])}}},{key:"tag",value:function(e){var n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):_(n[0]):n[0]}}},{key:"link",value:function(e){var n=this.rules.inline.link.exec(e);if(n){var t=n[2].trim();if(!this.options.pedantic&&/^</.test(t)){if(!/>$/.test(t))return;var r=D(t.slice(0,-1),"\\");if((t.length-r.length)%2==0)return}else{var i=function(e,n){if(-1===e.indexOf(")"))return -1;for(var t=e.length,r=0,i=0;i<t;i++)if("\\"===e[i])i++;else if("("===e[i])r++;else if(")"===e[i]&&--r<0)return i;return -1}(n[2],0);if(i>-1){var o=(0===n[0].indexOf("!")?5:4)+n[1].length+i;n[2]=n[2].substring(0,i),n[0]=n[0].substring(0,o).trim(),n[3]=""}}var l=n[2],a="";if(this.options.pedantic){var c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);c&&(l=c[1],a=c[3])}else a=n[3]?n[3].slice(1,-1):"";return l=l.trim(),/^</.test(l)&&(l=this.options.pedantic&&!/>$/.test(t)?l.slice(1):l.slice(1,-1)),L(n,{href:l?l.replace(this.rules.inline._escapes,"$1"):l,title:a?a.replace(this.rules.inline._escapes,"$1"):a},n[0],this.lexer)}}},{key:"reflink",value:function(e,n){var t;if((t=this.rules.inline.reflink.exec(e))||(t=this.rules.inline.nolink.exec(e))){var r=(t[2]||t[1]).replace(/\s+/g," ");if(!(r=n[r.toLowerCase()])){var i=t[0].charAt(0);return{type:"text",raw:i,text:i}}return L(t,r,t[0],this.lexer)}}},{key:"emStrong",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&!(r[3]&&t.match(RegExp("[\\p{L}\\p{N}]","u")))){var i=r[1]||r[2]||"";if(!i||i&&(""===t||this.rules.inline.punctuation.exec(t))){var o,l,a=r[0].length-1,c=a,s=0,u="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,n=n.slice(-1*e.length+a);null!=(r=u.exec(n));){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]){if(l=o.length,r[3]||r[4]){c+=l;continue}if((r[5]||r[6])&&a%3&&!((a+l)%3)){s+=l;continue}if(!((c-=l)>0)){l=Math.min(l,l+c+s);var d=e.slice(0,a+r.index+(r[0].length-o.length)+l);if(Math.min(a,l)%2){var f=d.slice(1,-1);return{type:"em",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}var h=d.slice(2,-2);return{type:"strong",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}}}}}},{key:"codespan",value:function(e){var n=this.rules.inline.code.exec(e);if(n){var t=n[2].replace(/\n/g," "),r=/[^ ]/.test(t),i=/^ /.test(t)&&/ $/.test(t);return r&&i&&(t=t.substring(1,t.length-1)),t=_(t,!0),{type:"codespan",raw:n[0],text:t}}}},{key:"br",value:function(e){var n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}},{key:"del",value:function(e){var n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}},{key:"autolink",value:function(e,n){var t,r,i=this.rules.inline.autolink.exec(e);if(i)return r="@"===i[2]?"mailto:"+(t=_(this.options.mangle?n(i[1]):i[1])):t=_(i[1]),{type:"link",raw:i[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}},{key:"url",value:function(e,n){var t,r,i,o;if(t=this.rules.inline.url.exec(e)){if("@"===t[2])i="mailto:"+(r=_(this.options.mangle?n(t[0]):t[0]));else{do o=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])[0];while(o!==t[0]);r=_(t[0]),i="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}},{key:"inlineText",value:function(e,n){var t,r=this.rules.inline.text.exec(e);if(r)return t=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):_(r[0]):r[0]:_(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:t}}}]),e}(),J={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:R,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};J._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,J._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,J.def=O(J.def).replace("label",J._label).replace("title",J._title).getRegex(),J.bullet=/(?:[*+-]|\d{1,9}[.)])/,J.listItemStart=O(/^( *)(bull) */).replace("bull",J.bullet).getRegex(),J.list=O(J.list).replace(/bull/g,J.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+J.def.source+")").getRegex(),J._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",J._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,J.html=O(J.html,"i").replace("comment",J._comment).replace("tag",J._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),J.paragraph=O(J._paragraph).replace("hr",J.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",J._tag).getRegex(),J.blockquote=O(J.blockquote).replace("paragraph",J.paragraph).getRegex(),J.normal=m({},J),J.gfm=p(m({},J.normal),{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),J.gfm.table=O(J.gfm.table).replace("hr",J.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",J._tag).getRegex(),J.gfm.paragraph=O(J._paragraph).replace("hr",J.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",J.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",J._tag).getRegex(),J.pedantic=p(m({},J.normal),{html:O("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",J._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:R,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:O(J.normal._paragraph).replace("hr",J.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",J.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var X={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:R,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:R,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function U(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function F(e){var n,t,r="",i=e.length;for(n=0;n<i;n++)t=e.charCodeAt(n),Math.random()>.5&&(t="x"+t.toString(16)),r+="&#"+t+";";return r}X._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",X.punctuation=O(X.punctuation).replace(/punctuation/g,X._punctuation).getRegex(),X.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,X.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,X._comment=O(J._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),X.emStrong.lDelim=O(X.emStrong.lDelim).replace(/punct/g,X._punctuation).getRegex(),X.emStrong.rDelimAst=O(X.emStrong.rDelimAst,"g").replace(/punct/g,X._punctuation).getRegex(),X.emStrong.rDelimUnd=O(X.emStrong.rDelimUnd,"g").replace(/punct/g,X._punctuation).getRegex(),X._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,X._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,X._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,X.autolink=O(X.autolink).replace("scheme",X._scheme).replace("email",X._email).getRegex(),X._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,X.tag=O(X.tag).replace("comment",X._comment).replace("attribute",X._attribute).getRegex(),X._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,X._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,X._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,X.link=O(X.link).replace("label",X._label).replace("href",X._href).replace("title",X._title).getRegex(),X.reflink=O(X.reflink).replace("label",X._label).replace("ref",J._label).getRegex(),X.nolink=O(X.nolink).replace("ref",J._label).getRegex(),X.reflinkSearch=O(X.reflinkSearch,"g").replace("reflink",X.reflink).replace("nolink",X.nolink).getRegex(),X.normal=m({},X),X.pedantic=p(m({},X.normal),{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:O(/^!?\[(label)\]\((.*?)\)/).replace("label",X._label).getRegex(),reflink:O(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",X._label).getRegex()}),X.gfm=p(m({},X.normal),{escape:O(X.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),X.gfm.url=O(X.gfm.url,"i").replace("email",X.gfm._extended_email).getRegex(),X.breaks=p(m({},X.gfm),{br:O(X.br).replace("{2,}","*").getRegex(),text:O(X.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var V=function(){function e(n){u(this,e),this.tokens=[],this.tokens.links=Object.create(null),this.options=n||g,this.options.tokenizer=this.options.tokenizer||new K,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var t={block:J.normal,inline:X.normal};this.options.pedantic?(t.block=J.pedantic,t.inline=X.pedantic):this.options.gfm&&(t.block=J.gfm,this.options.breaks?t.inline=X.breaks:t.inline=X.gfm),this.tokenizer.rules=t}return f(e,[{key:"lex",value:function(e){var n;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);n=this.inlineQueue.shift();)this.inlineTokens(n.src,n.tokens);return this.tokens}},{key:"blockTokens",value:function(e){var n,t,r,i,o,l=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,function(e,n,t){return n+" ".repeat(t.length)});e&&"break"!==(o=this,function(){if(o.options.extensions&&o.options.extensions.block&&o.options.extensions.block.some(function(t){return!!(n=t.call({lexer:l},e,a))&&(e=e.substring(n.raw.length),a.push(n),!0)}))return"continue";if(n=o.tokenizer.space(e))return e=e.substring(n.raw.length),1===n.raw.length&&a.length>0?a[a.length-1].raw+="\n":a.push(n),"continue";if(n=o.tokenizer.code(e))return e=e.substring(n.raw.length),(t=a[a.length-1])&&("paragraph"===t.type||"text"===t.type)?(t.raw+="\n"+n.raw,t.text+="\n"+n.text,o.inlineQueue[o.inlineQueue.length-1].src=t.text):a.push(n),"continue";if((n=o.tokenizer.fences(e))||(n=o.tokenizer.heading(e))||(n=o.tokenizer.hr(e))||(n=o.tokenizer.blockquote(e))||(n=o.tokenizer.list(e))||(n=o.tokenizer.html(e)))return e=e.substring(n.raw.length),a.push(n),"continue";if(n=o.tokenizer.def(e))return e=e.substring(n.raw.length),(t=a[a.length-1])&&("paragraph"===t.type||"text"===t.type)?(t.raw+="\n"+n.raw,t.text+="\n"+n.raw,o.inlineQueue[o.inlineQueue.length-1].src=t.text):o.tokens.links[n.tag]||(o.tokens.links[n.tag]={href:n.href,title:n.title}),"continue";if((n=o.tokenizer.table(e))||(n=o.tokenizer.lheading(e)))return e=e.substring(n.raw.length),a.push(n),"continue";if(r=e,o.options.extensions&&o.options.extensions.startBlock){var c=1/0,s=e.slice(1),u=void 0;o.options.extensions.startBlock.forEach(function(e){"number"==typeof(u=e.call({lexer:this},s))&&u>=0&&(c=Math.min(c,u))}),c<1/0&&c>=0&&(r=e.substring(0,c+1))}if(o.state.top&&(n=o.tokenizer.paragraph(r)))return t=a[a.length-1],i&&"paragraph"===t.type?(t.raw+="\n"+n.raw,t.text+="\n"+n.text,o.inlineQueue.pop(),o.inlineQueue[o.inlineQueue.length-1].src=t.text):a.push(n),i=r.length!==e.length,e=e.substring(n.raw.length),"continue";if(n=o.tokenizer.text(e))return e=e.substring(n.raw.length),(t=a[a.length-1])&&"text"===t.type?(t.raw+="\n"+n.raw,t.text+="\n"+n.text,o.inlineQueue.pop(),o.inlineQueue[o.inlineQueue.length-1].src=t.text):a.push(n),"continue";if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(o.options.silent)return console.error(d),"break";throw Error(d)}}()););return this.state.top=!0,a}},{key:"inline",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:n}),n}},{key:"inlineTokens",value:function(e){var n,t,r,i,o,l,a,c=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=e;if(this.tokens.links){var d=Object.keys(this.tokens.links);if(d.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(u));)d.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,i.index)+"["+M("a",i[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,i.index)+"["+M("a",i[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(u));)u=u.slice(0,i.index+i[0].length-2)+"++"+u.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e&&"break"!==(a=this,function(){if(o||(l=""),o=!1,a.options.extensions&&a.options.extensions.inline&&a.options.extensions.inline.some(function(t){return!!(n=t.call({lexer:c},e,s))&&(e=e.substring(n.raw.length),s.push(n),!0)}))return"continue";if(n=a.tokenizer.escape(e))return e=e.substring(n.raw.length),s.push(n),"continue";if(n=a.tokenizer.tag(e))return e=e.substring(n.raw.length),(t=s[s.length-1])&&"text"===n.type&&"text"===t.type?(t.raw+=n.raw,t.text+=n.text):s.push(n),"continue";if(n=a.tokenizer.link(e))return e=e.substring(n.raw.length),s.push(n),"continue";if(n=a.tokenizer.reflink(e,a.tokens.links))return e=e.substring(n.raw.length),(t=s[s.length-1])&&"text"===n.type&&"text"===t.type?(t.raw+=n.raw,t.text+=n.text):s.push(n),"continue";if((n=a.tokenizer.emStrong(e,u,l))||(n=a.tokenizer.codespan(e))||(n=a.tokenizer.br(e))||(n=a.tokenizer.del(e))||(n=a.tokenizer.autolink(e,F))||!a.state.inLink&&(n=a.tokenizer.url(e,F)))return e=e.substring(n.raw.length),s.push(n),"continue";if(r=e,a.options.extensions&&a.options.extensions.startInline){var i=1/0,d=e.slice(1),f=void 0;a.options.extensions.startInline.forEach(function(e){"number"==typeof(f=e.call({lexer:this},d))&&f>=0&&(i=Math.min(i,f))}),i<1/0&&i>=0&&(r=e.substring(0,i+1))}if(n=a.tokenizer.inlineText(r,U))return e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(l=n.raw.slice(-1)),o=!0,(t=s[s.length-1])&&"text"===t.type?(t.raw+=n.raw,t.text+=n.text):s.push(n),"continue";if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(a.options.silent)return console.error(h),"break";throw Error(h)}}()););return s}}],[{key:"rules",get:function(){return{block:J,inline:X}}},{key:"lex",value:function(n,t){return new e(t).lex(n)}},{key:"lexInline",value:function(n,t){return new e(t).inlineTokens(n)}}]),e}(),H=function(){function e(n){u(this,e),this.options=n||g}return f(e,[{key:"code",value:function(e,n,t){var r=(n||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(t=!0,e=i)}return(e=e.replace(/\n$/,"")+"\n",r)?'<pre><code class="'+this.options.langPrefix+_(r)+'">'+(t?e:_(e,!0))+"</code></pre>\n":"<pre><code>"+(t?e:_(e,!0))+"</code></pre>\n"}},{key:"blockquote",value:function(e){return"<blockquote>\n".concat(e,"</blockquote>\n")}},{key:"html",value:function(e){return e}},{key:"heading",value:function(e,n,t,r){if(this.options.headerIds){var i=this.options.headerPrefix+r.slug(t);return"<h".concat(n,' id="').concat(i,'">').concat(e,"</h").concat(n,">\n")}return"<h".concat(n,">").concat(e,"</h").concat(n,">\n")}},{key:"hr",value:function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}},{key:"list",value:function(e,n,t){var r=n?"ol":"ul";return"<"+r+(n&&1!==t?' start="'+t+'"':"")+">\n"+e+"</"+r+">\n"}},{key:"listitem",value:function(e){return"<li>".concat(e,"</li>\n")}},{key:"checkbox",value:function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}},{key:"paragraph",value:function(e){return"<p>".concat(e,"</p>\n")}},{key:"table",value:function(e,n){return n&&(n="<tbody>".concat(n,"</tbody>")),"<table>\n<thead>\n"+e+"</thead>\n"+n+"</table>\n"}},{key:"tablerow",value:function(e){return"<tr>\n".concat(e,"</tr>\n")}},{key:"tablecell",value:function(e,n){var t=n.header?"th":"td";return(n.align?"<".concat(t,' align="').concat(n.align,'">'):"<".concat(t,">"))+e+"</".concat(t,">\n")}},{key:"strong",value:function(e){return"<strong>".concat(e,"</strong>")}},{key:"em",value:function(e){return"<em>".concat(e,"</em>")}},{key:"codespan",value:function(e){return"<code>".concat(e,"</code>")}},{key:"br",value:function(){return this.options.xhtml?"<br/>":"<br>"}},{key:"del",value:function(e){return"<del>".concat(e,"</del>")}},{key:"link",value:function(e,n,t){if(null===(e=B(this.options.sanitize,this.options.baseUrl,e)))return t;var r='<a href="'+e+'"';return n&&(r+=' title="'+n+'"'),r+=">"+t+"</a>"}},{key:"image",value:function(e,n,t){if(null===(e=B(this.options.sanitize,this.options.baseUrl,e)))return t;var r='<img src="'.concat(e,'" alt="').concat(t,'"');return n&&(r+=' title="'.concat(n,'"')),r+=this.options.xhtml?"/>":">"}},{key:"text",value:function(e){return e}}]),e}(),W=function(){function e(){u(this,e)}return f(e,[{key:"strong",value:function(e){return e}},{key:"em",value:function(e){return e}},{key:"codespan",value:function(e){return e}},{key:"del",value:function(e){return e}},{key:"html",value:function(e){return e}},{key:"text",value:function(e){return e}},{key:"link",value:function(e,n,t){return""+t}},{key:"image",value:function(e,n,t){return""+t}},{key:"br",value:function(){return""}}]),e}(),q=function(){function e(){u(this,e),this.seen={}}return f(e,[{key:"serialize",value:function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(e,n){var t=e,r=0;if(this.seen.hasOwnProperty(t)){r=this.seen[e];do t=e+"-"+ ++r;while(this.seen.hasOwnProperty(t))}return n||(this.seen[e]=r,this.seen[t]=0),t}},{key:"slug",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=this.serialize(e);return this.getNextSafeSlug(t,n.dryrun)}}]),e}(),G=function(){function e(n){u(this,e),this.options=n||g,this.options.renderer=this.options.renderer||new H,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new W,this.slugger=new q}return f(e,[{key:"parse",value:function(e){var n,t,r,i,o,l,a,c,s,u,d,f,h,m,p,x,g,j,b,y=!(arguments.length>1)||void 0===arguments[1]||arguments[1],v="",w=e.length;for(n=0;n<w;n++){if(u=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(!1!==(b=this.options.extensions.renderers[u.type].call({parser:this},u))||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type))){v+=b||"";continue}switch(u.type){case"space":continue;case"hr":v+=this.renderer.hr();continue;case"heading":v+=this.renderer.heading(this.parseInline(u.tokens),u.depth,I(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":v+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(t=0,c="",a="",i=u.header.length;t<i;t++)a+=this.renderer.tablecell(this.parseInline(u.header[t].tokens),{header:!0,align:u.align[t]});for(c+=this.renderer.tablerow(a),s="",i=u.rows.length,t=0;t<i;t++){for(r=0,l=u.rows[t],a="",o=l.length;r<o;r++)a+=this.renderer.tablecell(this.parseInline(l[r].tokens),{header:!1,align:u.align[r]});s+=this.renderer.tablerow(a)}v+=this.renderer.table(c,s);continue;case"blockquote":s=this.parse(u.tokens),v+=this.renderer.blockquote(s);continue;case"list":for(t=0,d=u.ordered,f=u.start,h=u.loose,i=u.items.length,s="";t<i;t++)x=(p=u.items[t]).checked,g=p.task,m="",p.task&&(j=this.renderer.checkbox(x),h?p.tokens.length>0&&"paragraph"===p.tokens[0].type?(p.tokens[0].text=j+" "+p.tokens[0].text,p.tokens[0].tokens&&p.tokens[0].tokens.length>0&&"text"===p.tokens[0].tokens[0].type&&(p.tokens[0].tokens[0].text=j+" "+p.tokens[0].tokens[0].text)):p.tokens.unshift({type:"text",text:j}):m+=j),m+=this.parse(p.tokens,h),s+=this.renderer.listitem(m,g,x);v+=this.renderer.list(s,d,f);continue;case"html":v+=this.renderer.html(u.text);continue;case"paragraph":v+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(s=u.tokens?this.parseInline(u.tokens):u.text;n+1<w&&"text"===e[n+1].type;)s+="\n"+((u=e[++n]).tokens?this.parseInline(u.tokens):u.text);v+=y?this.renderer.paragraph(s):s;continue;default:var k='Token with "'+u.type+'" type was not found.';if(this.options.silent)return void console.error(k);throw Error(k)}}return v}},{key:"parseInline",value:function(e,n){n=n||this.renderer;var t,r,i,o="",l=e.length;for(t=0;t<l;t++){if(r=e[t],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(!1!==(i=this.options.extensions.renderers[r.type].call({parser:this},r))||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type))){o+=i||"";continue}switch(r.type){case"escape":case"text":o+=n.text(r.text);break;case"html":o+=n.html(r.text);break;case"link":o+=n.link(r.href,r.title,this.parseInline(r.tokens,n));break;case"image":o+=n.image(r.href,r.title,r.text);break;case"strong":o+=n.strong(this.parseInline(r.tokens,n));break;case"em":o+=n.em(this.parseInline(r.tokens,n));break;case"codespan":o+=n.codespan(r.text);break;case"br":o+=n.br();break;case"del":o+=n.del(this.parseInline(r.tokens,n));break;default:var a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw Error(a)}}return o}}],[{key:"parse",value:function(n,t){return new e(t).parse(n)}},{key:"parseInline",value:function(n,t){return new e(t).parseInline(n)}}]),e}(),Y=function(){function e(n){u(this,e),this.options=n||g}return f(e,[{key:"preprocess",value:function(e){return e}},{key:"postprocess",value:function(e){return e}}]),e}();function Q(e,n){return function(t,r,i){"function"==typeof r&&(i=r,r=null);var o=m({},r),l=(a=(r=m({},Z.defaults,o)).silent,c=r.async,s=i,function(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",a){var n="<p>An error occurred:</p><pre>"+_(e.message+"",!0)+"</pre>";return c?Promise.resolve(n):s?void s(null,n):n}if(c)return Promise.reject(e);if(s)return void s(e);throw e});if(null==t)return l(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return l(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if((u=r)&&u.sanitize&&!u.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options"),r.hooks&&(r.hooks.options=r),i){var a,c,s,u,d,f=r.highlight;try{r.hooks&&(t=r.hooks.preprocess(t)),d=e(t,r)}catch(e){return l(e)}var h=function(e){var t;if(!e)try{r.walkTokens&&Z.walkTokens(d,r.walkTokens),t=n(d,r),r.hooks&&(t=r.hooks.postprocess(t))}catch(n){e=n}return r.highlight=f,e?l(e):i(null,t)};if(!f||f.length<3||(delete r.highlight,!d.length))return h();var p=0;return Z.walkTokens(d,function(e){"code"===e.type&&(p++,setTimeout(function(){f(e.text,e.lang,function(n,t){if(n)return h(n);null!=t&&t!==e.text&&(e.text=t,e.escaped=!0),0==--p&&h()})},0))}),void(0===p&&h())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(t):t).then(function(n){return e(n,r)}).then(function(e){return r.walkTokens?Promise.all(Z.walkTokens(e,r.walkTokens)).then(function(){return e}):e}).then(function(e){return n(e,r)}).then(function(e){return r.hooks?r.hooks.postprocess(e):e}).catch(l);try{r.hooks&&(t=r.hooks.preprocess(t));var x=e(t,r);r.walkTokens&&Z.walkTokens(x,r.walkTokens);var g=n(x,r);return r.hooks&&(g=r.hooks.postprocess(g)),g}catch(e){return l(e)}}}function Z(e,n,t){return Q(V.lex,G.parse)(e,n,t)}function ee(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}h(Y,"passThroughHooks",new Set(["preprocess","postprocess"])),Z.options=Z.setOptions=function(e){return Z.defaults=m({},Z.defaults,e),g=Z.defaults,Z},Z.getDefaults=x,Z.defaults=g,Z.use=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];var r=Z.defaults.extensions||{renderers:{},childTokens:{}};n.forEach(function(e){var n=m({},e);if(n.async=Z.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(function(e){if(!e.name)throw Error("extension name required");if(e.renderer){var n=r.renderers[e.name];n?r.renderers[e.name]=function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=e.renderer.apply(this,r);return!1===o&&(o=n.apply(this,r)),o}:r.renderers[e.name]=e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");r[e.level]?r[e.level].unshift(e.tokenizer):r[e.level]=[e.tokenizer],e.start&&("block"===e.level?r.startBlock?r.startBlock.push(e.start):r.startBlock=[e.start]:"inline"===e.level&&(r.startInline?r.startInline.push(e.start):r.startInline=[e.start]))}e.childTokens&&(r.childTokens[e.name]=e.childTokens)}),n.extensions=r),e.renderer){var t=function(n){var t=i[n];i[n]=function(){for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];var a=e.renderer[n].apply(i,o);return!1===a&&(a=t.apply(i,o)),a}},i=Z.defaults.renderer||new H;for(var o in e.renderer)t(o);n.renderer=i}if(e.tokenizer){var l=function(n){var t=a[n];a[n]=function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];var l=e.tokenizer[n].apply(a,i);return!1===l&&(l=t.apply(a,i)),l}},a=Z.defaults.tokenizer||new K;for(var c in e.tokenizer)l(c);n.tokenizer=a}if(e.hooks){var s=function(n){var t=u[n];Y.passThroughHooks.has(n)?u[n]=function(r){if(Z.defaults.async)return Promise.resolve(e.hooks[n].call(u,r)).then(function(e){return t.call(u,e)});var i=e.hooks[n].call(u,r);return t.call(u,i)}:u[n]=function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];var l=e.hooks[n].apply(u,i);return!1===l&&(l=t.apply(u,i)),l}},u=Z.defaults.hooks||new Y;for(var d in e.hooks)s(d);n.hooks=u}if(e.walkTokens){var f=Z.defaults.walkTokens;n.walkTokens=function(n){var t=[];return t.push(e.walkTokens.call(this,n)),f&&(t=t.concat(f.call(this,n))),t}}Z.setOptions(n)})},Z.walkTokens=function(e,n){var t=[],r=!0,i=!1,o=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done);r=!0)!function(){var e=l.value;switch(t=t.concat(n.call(Z,e)),e.type){case"table":var r=!0,i=!1,o=void 0;try{for(var a,c=e.header[Symbol.iterator]();!(r=(a=c.next()).done);r=!0){var s=a.value;t=t.concat(Z.walkTokens(s.tokens,n))}}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}var u=!0,d=!1,f=void 0;try{for(var h,m=e.rows[Symbol.iterator]();!(u=(h=m.next()).done);u=!0){var p=h.value,x=!0,g=!1,j=void 0;try{for(var b,y=p[Symbol.iterator]();!(x=(b=y.next()).done);x=!0){var v=b.value;t=t.concat(Z.walkTokens(v.tokens,n))}}catch(e){g=!0,j=e}finally{try{x||null==y.return||y.return()}finally{if(g)throw j}}}}catch(e){d=!0,f=e}finally{try{u||null==m.return||m.return()}finally{if(d)throw f}}break;case"list":t=t.concat(Z.walkTokens(e.items,n));break;default:Z.defaults.extensions&&Z.defaults.extensions.childTokens&&Z.defaults.extensions.childTokens[e.type]?Z.defaults.extensions.childTokens[e.type].forEach(function(r){t=t.concat(Z.walkTokens(e[r],n))}):e.tokens&&(t=t.concat(Z.walkTokens(e.tokens,n)))}}()}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return t},Z.parseInline=Q(V.lexInline,G.parseInline),Z.Parser=G,Z.parser=G.parse,Z.Renderer=H,Z.TextRenderer=W,Z.Lexer=V,Z.lexer=V.lex,Z.Tokenizer=K,Z.Slugger=q,Z.Hooks=Y,Z.parse=Z,Z.options,Z.setOptions,Z.use,Z.walkTokens,Z.parseInline,G.parse,V.lex;let en=Object.entries,et=Object.setPrototypeOf,er=Object.isFrozen,ei=Object.getPrototypeOf,eo=Object.getOwnPropertyDescriptor,el=Object.freeze,ea=Object.seal,ec=Object.create,es="undefined"!=typeof Reflect&&Reflect,eu=es.apply,ed=es.construct;el||(el=function(e){return e}),ea||(ea=function(e){return e}),eu||(eu=function(e,n){for(var t=arguments.length,r=Array(t>2?t-2:0),i=2;i<t;i++)r[i-2]=arguments[i];return e.apply(n,r)}),ed||(ed=function(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return new e(...t)});let ef=eE(Array.prototype.forEach),eh=eE(Array.prototype.lastIndexOf),em=eE(Array.prototype.pop),ep=eE(Array.prototype.push),ex=eE(Array.prototype.splice),eg=Array.isArray,ej=eE(String.prototype.toLowerCase),eb=eE(String.prototype.toString),ey=eE(String.prototype.match),ev=eE(String.prototype.replace),ew=eE(String.prototype.indexOf),ek=eE(String.prototype.trim),e_=eE(Number.prototype.toString),eC=eE(Boolean.prototype.toString),eI="undefined"==typeof BigInt?null:eE(BigInt.prototype.toString),eS="undefined"==typeof Symbol?null:eE(Symbol.prototype.toString),eO=eE(Object.prototype.hasOwnProperty),eA=eE(Object.prototype.toString),eP=eE(RegExp.prototype.test),eB=(r=TypeError,function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];return ed(r,n)});function eE(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return eu(e,n,r)}}function ez(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ej;if(et&&et(e,null),!eg(n))return e;let r=n.length;for(;r--;){let i=n[r];if("string"==typeof i){let e=t(i);e!==i&&(er(n)||(n[r]=e),i=e)}e[i]=!0}return e}function eT(e){let n=ec(null);for(let r of en(e)){var t=function(e){if(Array.isArray(e))return e}(r)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o,l,a=[],c=!0,s=!1;try{o=(t=t.call(e)).next,!1;for(;!(c=(r=o.call(t)).done)&&(a.push(r.value),2!==a.length);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(s)throw i}}return a}}(r,2)||function(e,n){if(e){if("string"==typeof e)return ee(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ee(e,2):void 0}}(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let i=t[0],o=t[1];eO(e,i)&&(eg(o)?n[i]=function(e){for(let n=0;n<e.length;n++)eO(e,n)||(e[n]=null);return e}(o):o&&"object"==typeof o&&o.constructor===Object?n[i]=eT(o):n[i]=o)}return n}function eN(e,n){for(;null!==e;){let t=eo(e,n);if(t){if(t.get)return eE(t.get);if("function"==typeof t.value)return eE(t.value)}e=ei(e)}return function(){return null}}let eR=el(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),e$=el(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),eD=el(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),eM=el(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),eL=el(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),eK=el(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),eJ=el(["#text"]),eX=el(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),eU=el(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),eF=el(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),eV=el(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),eH=ea(/{{[\w\W]*|^[\w\W]*}}/g),eW=ea(/<%[\w\W]*|^[\w\W]*%>/g),eq=ea(/\${[\w\W]*/g),eG=ea(/^data-[\-\w.\u00B7-\uFFFF]+$/),eY=ea(/^aria-[\-\w]+$/),eQ=ea(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),eZ=ea(/^(?:\w+script|data):/i),e0=ea(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),e1=ea(/^html$/i),e2=ea(/^[a-z][.\w]*(-[.\w]+)+$/i),e8=ea(/<[/\w!]/g),e3=ea(/<[/\w]/g),e5=ea(/<\/no(script|embed|frames)/i),e4=ea(/\/>/i),e6=function(e,n){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let t=null,r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(t=n.getAttribute(r));let i="dompurify"+(t?"#"+t:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},e7=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},e9=function(e,n,t,r){return eO(e,n)&&eg(e[n])?ez(r.base?eT(r.base):{},e[n],r.transform):t};var ne=function e(){let n,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=n=>e(n);if(i.version="3.4.12",i.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return i.isSupported=!1,i;let o=r.document,l=o,a=l.currentScript;r.DocumentFragment;let c=r.HTMLTemplateElement,s=r.Node,u=r.Element,d=r.NodeFilter;void 0===r.NamedNodeMap&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let f=r.DOMParser,h=r.trustedTypes,m=u.prototype,p=eN(m,"cloneNode"),x=eN(m,"remove"),g=eN(m,"nextSibling"),j=eN(m,"childNodes"),b=eN(m,"parentNode"),y=eN(m,"shadowRoot"),v=eN(m,"attributes"),w=s&&s.prototype?eN(s.prototype,"nodeType"):null,k=s&&s.prototype?eN(s.prototype,"nodeName"):null;if("function"==typeof c){let e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let _="",C=!1,I=0,S=function(){if(I>0)throw eB('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},O=function(e){S(),I++;try{return n.createHTML(e)}finally{I--}},A=function(e){S(),I++;try{return n.createScriptURL(e)}finally{I--}},P=o,B=P.implementation,E=P.createNodeIterator,z=P.createDocumentFragment,T=P.getElementsByTagName,N=l.importNode,R=e7();i.isSupported="function"==typeof en&&"function"==typeof b&&B&&void 0!==B.createHTMLDocument;let $=eQ,D=null,M=ez({},[...eR,...e$,...eD,...eL,...eJ]),L=null,K=ez({},[...eX,...eU,...eF,...eV]),J=Object.seal(ec(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),X=null,U=null,F=Object.seal(ec(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),V=!0,H=!0,W=!1,q=!0,G=!1,Y=!0,Q=!1,Z=!1,ee=null,et=null,er=!1,ei=!1,eo=!1,es=!1,eu=!0,ed=!1,eE="user-content-",ne=!0,nn=!1,nt={},nr=null,ni=ez({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),no=null,nl=ez({},["audio","video","img","source","image","track"]),na=null,nc=ez({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ns="http://www.w3.org/1998/Math/MathML",nu="http://www.w3.org/2000/svg",nd="http://www.w3.org/1999/xhtml",nf=nd,nh=!1,nm=null,np=ez({},[ns,nu,nd],eb),nx=el(["mi","mo","mn","ms","mtext"]),ng=ez({},nx),nj=el(["annotation-xml"]),nb=ez({},nj),ny=ez({},["title","style","font","a","script"]),nv=null,nw=["application/xhtml+xml","text/html"],nk=null,n_=null,nC=o.createElement("form"),nI=function(e){return e instanceof RegExp||e instanceof Function},nS=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n_&&n_===e)return;e&&"object"==typeof e||(e={}),e=eT(e),nk="application/xhtml+xml"===(nv=-1===nw.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?eb:ej,D=e9(e,"ALLOWED_TAGS",M,{transform:nk}),L=e9(e,"ALLOWED_ATTR",K,{transform:nk}),nm=e9(e,"ALLOWED_NAMESPACES",np,{transform:eb}),na=e9(e,"ADD_URI_SAFE_ATTR",nc,{transform:nk,base:nc}),no=e9(e,"ADD_DATA_URI_TAGS",nl,{transform:nk,base:nl}),nr=e9(e,"FORBID_CONTENTS",ni,{transform:nk}),X=e9(e,"FORBID_TAGS",eT({}),{transform:nk}),U=e9(e,"FORBID_ATTR",eT({}),{transform:nk}),nt=!!eO(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?eT(e.USE_PROFILES):e.USE_PROFILES),V=!1!==e.ALLOW_ARIA_ATTR,H=!1!==e.ALLOW_DATA_ATTR,W=e.ALLOW_UNKNOWN_PROTOCOLS||!1,q=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,G=e.SAFE_FOR_TEMPLATES||!1,Y=!1!==e.SAFE_FOR_XML,Q=e.WHOLE_DOCUMENT||!1,ei=e.RETURN_DOM||!1,eo=e.RETURN_DOM_FRAGMENT||!1,es=e.RETURN_TRUSTED_TYPE||!1,er=e.FORCE_BODY||!1,eu=!1!==e.SANITIZE_DOM,ed=e.SANITIZE_NAMED_PROPS||!1,ne=!1!==e.KEEP_CONTENT,nn=e.IN_PLACE||!1,$=!function(e){try{return eP(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?eQ:e.ALLOWED_URI_REGEXP,nf="string"==typeof e.NAMESPACE?e.NAMESPACE:nd,ng=eO(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?eT(e.MATHML_TEXT_INTEGRATION_POINTS):ez({},nx),nb=eO(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?eT(e.HTML_INTEGRATION_POINTS):ez({},nj);let r=eO(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?eT(e.CUSTOM_ELEMENT_HANDLING):ec(null);if(J=ec(null),eO(r,"tagNameCheck")&&nI(r.tagNameCheck)&&(J.tagNameCheck=r.tagNameCheck),eO(r,"attributeNameCheck")&&nI(r.attributeNameCheck)&&(J.attributeNameCheck=r.attributeNameCheck),eO(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(J.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),ea(J),G&&(H=!1),eo&&(ei=!0),nt&&(D=ez({},eJ),L=ec(null),!0===nt.html&&(ez(D,eR),ez(L,eX)),!0===nt.svg&&(ez(D,e$),ez(L,eU),ez(L,eV)),!0===nt.svgFilters&&(ez(D,eD),ez(L,eU),ez(L,eV)),!0===nt.mathMl&&(ez(D,eL),ez(L,eF),ez(L,eV))),F.tagCheck=null,F.attributeCheck=null,eO(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?F.tagCheck=e.ADD_TAGS:eg(e.ADD_TAGS)&&(D===M&&(D=eT(D)),ez(D,e.ADD_TAGS,nk))),eO(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?F.attributeCheck=e.ADD_ATTR:eg(e.ADD_ATTR)&&(L===K&&(L=eT(L)),ez(L,e.ADD_ATTR,nk))),eO(e,"ADD_URI_SAFE_ATTR")&&eg(e.ADD_URI_SAFE_ATTR)&&ez(na,e.ADD_URI_SAFE_ATTR,nk),eO(e,"FORBID_CONTENTS")&&eg(e.FORBID_CONTENTS)&&(nr===ni&&(nr=eT(nr)),ez(nr,e.FORBID_CONTENTS,nk)),eO(e,"ADD_FORBID_CONTENTS")&&eg(e.ADD_FORBID_CONTENTS)&&(nr===ni&&(nr=eT(nr)),ez(nr,e.ADD_FORBID_CONTENTS,nk)),ne&&(D["#text"]=!0),Q&&ez(D,["html","head","body"]),D.table&&(ez(D,["tbody"]),delete X.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw eB('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw eB('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let t=n;n=e.TRUSTED_TYPES_POLICY;try{_=O("")}catch(e){throw n=t,e}}else null===e.TRUSTED_TYPES_POLICY?(n=void 0,_=""):(void 0===n&&(C||(t=e6(h,a),C=!0),n=t),n&&"string"==typeof _&&(_=O("")));el&&el(e),n_=e},nO=ez({},[...e$,...eD,...eM]),nA=ez({},[...eL,...eK]),nP=function(e){var n,t,r;let i=b(e);i&&i.tagName||(i={namespaceURI:nf,tagName:"template"});let o=ej(e.tagName),l=ej(i.tagName);return!!nm[e.namespaceURI]&&(e.namespaceURI===nu?(n=i).namespaceURI===nd?"svg"===o:n.namespaceURI===ns?"svg"===o&&("annotation-xml"===l||ng[l]):!!nO[o]:e.namespaceURI===ns?(t=i).namespaceURI===nd?"math"===o:t.namespaceURI===nu?"math"===o&&nb[l]:!!nA[o]:e.namespaceURI===nd?((r=i).namespaceURI!==nu||!!nb[l])&&(r.namespaceURI!==ns||!!ng[l])&&!nA[o]&&(ny[o]||!nO[o]):"application/xhtml+xml"===nv&&!!nm[e.namespaceURI])},nB=function(e){ep(i.removed,{element:e});try{b(e).removeChild(e)}catch(n){if(x(e),!b(e))throw eB("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},nE=function(e){nN(e);let n=j(e);if(n){let e=[];ef(n,n=>{ep(e,n)}),ef(e,e=>{try{x(e)}catch(e){}})}let t=v(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if("string"==typeof i)try{e.removeAttribute(i)}catch(e){}}},nz=function(e,n){try{ep(i.removed,{attribute:n.getAttributeNode(e),from:n})}catch(e){ep(i.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e)if(ei||eo)try{nB(n)}catch(e){}else try{n.setAttribute(e,"")}catch(e){}},nT=function(e){let n=v(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if("string"==typeof i&&!L[nk(i)])try{e.removeAttribute(i)}catch(e){}}},nN=function(e){let n=[e];for(;n.length>0;){let e=n.pop();(w?w(e):e.nodeType)===1&&nT(e);let t=j(e);if(t)for(let e=t.length-1;e>=0;--e)n.push(t[e])}},nR=function(e){if(!Y)return;let n=[e];for(;n.length>0;){let e=n.pop(),t=w?w(e):e.nodeType;if(7===t||8===t&&eP(e3,e.data)){try{x(e)}catch(e){}continue}if(1===t){let n=nk(k?k(e):e.nodeName);try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&"label"!==n&&"output"!==n&&e.removeAttribute("for")}catch(e){}}let r=j(e);if(r)for(let e=r.length-1;e>=0;--e)n.push(r[e])}},n$=function(e){let t=null,r=null;if(er)e="<remove></remove>"+e;else{let n=ey(e,/^[\r\n\t ]+/);r=n&&n[0]}"application/xhtml+xml"===nv&&nf===nd&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=n?O(e):e;if(nf===nd)try{t=new f().parseFromString(i,nv)}catch(e){}if(!t||!t.documentElement){t=B.createDocument(nf,"template",null);try{t.documentElement.innerHTML=nh?_:i}catch(e){}}let l=t.body||t.documentElement;return(e&&r&&l.insertBefore(o.createTextNode(r),l.childNodes[0]||null),nf===nd)?T.call(t,Q?"html":"body")[0]:Q?t.documentElement:l},nD=function(e){return E.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},nM=function(e){return e=ev(e,eH," "),e=ev(e,eW," "),e=ev(e,eq," ")},nL=function(e){var n;e.normalize();let t=E.call(e.ownerDocument||e,e,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null),r=t.nextNode();for(;r;)r.data=nM(r.data),r=t.nextNode();let i=null==(n=e.querySelectorAll)?void 0:n.call(e,"template");i&&ef(i,e=>{nJ(e.content)&&nL(e.content)})},nK=function(e){let n=k?k(e):null;return"string"==typeof n&&"form"===nk(n)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==v(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==w(e)||e.childNodes!==j(e))},nJ=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return 11===w(e)}catch(e){return!1}},nX=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return"number"==typeof w(e)}catch(e){return!1}};function nU(e,n,t){0!==e.length&&ef(e,e=>{e.call(i,n,t,n_)})}let nF=function(e,n){if(!X[n]&&nq(n)&&(J.tagNameCheck instanceof RegExp&&eP(J.tagNameCheck,n)||J.tagNameCheck instanceof Function&&J.tagNameCheck(n)))return!1;if(ne&&!nr[n]){let n=b(e),t=j(e);if(t&&n){let r=t.length;for(let i=r-1;i>=0;--i){let r=nn?t[i]:p(t[i],!0);n.insertBefore(r,g(e))}}}return nB(e),!0},nV=function(e,n){if(nU(R.beforeSanitizeElements,e,null),e!==n&&null===b(e))return!0;if(nK(e))return nB(e),!0;let t=nk(k?k(e):e.nodeName);if(nU(R.uponSanitizeElement,e,{tagName:t,allowedTags:D}),e!==n&&null===b(e))return!0;if(Y&&e.hasChildNodes()&&!nX(e.firstElementChild)&&eP(e8,e.textContent)&&eP(e8,e.innerHTML)||Y&&e.namespaceURI===nd&&"style"===t&&nX(e.firstElementChild)||7===e.nodeType||Y&&8===e.nodeType&&eP(e3,e.data))return nB(e),!0;if(X[t]||!(F.tagCheck instanceof Function&&F.tagCheck(t))&&!D[t]){let n=nF(e,t);return!1===n&&nU(R.afterSanitizeElements,e,null),n}if((w?w(e):e.nodeType)===1&&!nP(e)||("noscript"===t||"noembed"===t||"noframes"===t)&&eP(e5,e.innerHTML))return nB(e),!0;if(G&&3===e.nodeType){let n=nM(e.textContent);e.textContent!==n&&(ep(i.removed,{element:e.cloneNode()}),e.textContent=n)}return nU(R.afterSanitizeElements,e,null),!1},nH=function(e,n,t){if(U[n]||Y&&"patchsrc"===n||Y&&"for"===n&&"label"!==e&&"output"!==e||eu&&("id"===n||"name"===n)&&(t in o||t in nC))return!1;let r=L[n]||F.attributeCheck instanceof Function&&F.attributeCheck(n,e);if(H&&eP(eG,n));else if(V&&eP(eY,n));else if(r){if(na[n]);else if(eP($,ev(t,e0,"")));else if(("src"===n||"xlink:href"===n||"href"===n)&&"script"!==e&&0===ew(t,"data:")&&no[e]);else if(W&&!eP(eZ,ev(t,e0,"")));else if(t)return!1}else if(!(nq(e)&&(J.tagNameCheck instanceof RegExp&&eP(J.tagNameCheck,e)||J.tagNameCheck instanceof Function&&J.tagNameCheck(e))&&(J.attributeNameCheck instanceof RegExp&&eP(J.attributeNameCheck,n)||J.attributeNameCheck instanceof Function&&J.attributeNameCheck(n,e))||"is"===n&&J.allowCustomizedBuiltInElements&&(J.tagNameCheck instanceof RegExp&&eP(J.tagNameCheck,t)||J.tagNameCheck instanceof Function&&J.tagNameCheck(t))))return!1;return!0},nW=ez({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),nq=function(e){return!nW[ej(e)]&&eP(e2,e)},nG=function(e,t,r,i){if(n&&"object"==typeof h&&"function"==typeof h.getAttributeType&&!r)switch(h.getAttributeType(e,t)){case"TrustedHTML":return O(i);case"TrustedScriptURL":return A(i)}return i},nY=function(e,n,t,r){try{t?e.setAttributeNS(t,n,r):e.setAttribute(n,r),nK(e)?nB(e):em(i.removed)}catch(t){nz(n,e)}},nQ=function(e){nU(R.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||nK(e))return;let t={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L,forceKeepAttr:void 0},r=n.length,i=nk(e.nodeName);for(;r--;){let o=n[r],l=o.name,a=o.namespaceURI,c=o.value,s=nk(l),u="value"===l?c:ek(c);if(t.attrName=s,t.attrValue=u,t.keepAttr=!0,t.forceKeepAttr=void 0,nU(R.uponSanitizeAttribute,e,t),u=t.attrValue,ed&&("id"===s||"name"===s)&&0!==ew(u,eE)&&(nz(l,e),u=eE+u),Y&&eP(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===s&&ey(u,"href")){nz(l,e);continue}if(!t.forceKeepAttr){if(!t.keepAttr||!q&&eP(e4,u)||(G&&(u=nM(u)),!nH(i,s,u))){nz(l,e);continue}(u=nG(i,s,a,u))!==c&&nY(e,l,a,u)}}nU(R.afterSanitizeAttributes,e,null)},nZ=function(e){let n=null,t=nD(e);for(nU(R.beforeSanitizeShadowDOM,e,null);n=t.nextNode();)if(nU(R.uponSanitizeShadowNode,n,null),nV(n,e),nQ(n),nJ(n.content)&&nZ(n.content),(w?w(n):n.nodeType)===1){let e=y(n);nJ(e)&&(n0(e),nZ(e))}nU(R.afterSanitizeShadowDOM,e,null)},n0=function(e){let n=[{node:e,shadow:null}];for(;n.length>0;){let e=n.pop();if(e.shadow){nZ(e.shadow);continue}let t=e.node,r=(w?w(t):t.nodeType)===1,i=j(t);if(i)for(let e=i.length-1;e>=0;--e)n.push({node:i[e],shadow:null});if(r){let e=k?k(t):null;if("string"==typeof e&&"template"===nk(e)){let e=t.content;nJ(e)&&n.push({node:e,shadow:null})}}if(r){let e=y(t);nJ(e)&&n.push({node:null,shadow:e},{node:e,shadow:null})}}};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,a=null,c=null;if((nh=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!nX(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return e_(e);case"boolean":return eC(e);case"bigint":return eI?eI(e):"0";case"symbol":return eS?eS(e):"Symbol()";case"undefined":default:return eA(e);case"function":case"object":{if(null===e)return eA(e);let n=eN(e,"toString");if("function"==typeof n){let t=n(e);return"string"==typeof t?t:eA(t)}return eA(e)}}}(e)))throw eB("dirty is not a string, aborting");if(!i.isSupported)return e;Z?(D=ee,L=et):nS(t),(R.uponSanitizeElement.length>0||R.uponSanitizeAttribute.length>0)&&(D=eT(D)),R.uponSanitizeAttribute.length>0&&(L=eT(L)),i.removed=[];let s=nn&&"string"!=typeof e&&nX(e);if(s){nR(e);let n=k?k(e):e.nodeName;if("string"==typeof n){let t=nk(n);if(!D[t]||X[t])throw nE(e),eB("root node is forbidden and cannot be sanitized in-place")}if(nK(e))throw nE(e),eB("root node is clobbered and cannot be sanitized in-place");try{n0(e)}catch(n){throw nE(e),n}}else if(nX(e))1===(o=(r=n$("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o),n0(o);else{if(!ei&&!G&&!Q&&-1===e.indexOf("<"))return n&&es?O(e):e;if(!(r=n$(e)))return ei?null:es?_:""}r&&er&&nB(r.firstChild);let u=s?e:r,d=nD(u);try{for(;a=d.nextNode();)nV(a,u),nQ(a),nJ(a.content)&&nZ(a.content)}catch(n){throw s&&(nE(e),ef(i.removed,e=>{e.element&&nN(e.element)})),n}if(s)return ef(i.removed,e=>{e.element&&nN(e.element)}),G&&nL(e),e;if(ei){if(G&&nL(r),eo)for(c=z.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(L.shadowroot||L.shadowrootmode)&&(c=N.call(l,c,!0)),c}let f=Q?r.outerHTML:r.innerHTML;return Q&&D["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&eP(e1,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),G&&(f=nM(f)),n&&es?O(f):f},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};nS(e),Z=!0,ee=D,et=L},i.clearConfig=function(){n_=null,Z=!1,ee=null,et=null,n=t,_=""},i.isValidAttribute=function(e,n,t){return n_||nS({}),nH(nk(e),nk(n),t)},i.addHook=function(e,n){"function"!=typeof n||eO(R,e)&&ep(R[e],n)},i.removeHook=function(e,n){if(eO(R,e)){if(void 0!==n){let t=eh(R[e],n);return -1===t?void 0:ex(R[e],t,1)[0]}return em(R[e])}},i.removeHooks=function(e){eO(R,e)&&(R[e]=[])},i.removeAllHooks=function(){R=e7()},i}(),nn=["b","blockquote","br","center","code","dd","del","div","dl","dt","em","font","h1","h2","h3","h4","h5","h6","hr","i","ins","li","menu","ol","p","pre","span","strong","table","tbody","td","th","thead","tfoot","tr","u","ul"],nt=["img"],nr=["class","style","background"];function ni(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var no=function(e){var n,t=(0,o.Oc)().data.entries,r=(n=(0,l.useState)(0),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return ni(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ni(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=r[0],u=r[1],d=t[s];return(0,i.jsx)(c.p8,{width:700,height:700,theme:"amberpos",children:(0,i.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[t.length>1&&(0,i.jsx)(a.BJ.Item,{children:(0,i.jsx)(a.wn,{fill:!0,title:"Page ".concat(s+1,"/").concat(t.length),textAlign:"center",children:(0,i.jsxs)(a.BJ,{children:[(0,i.jsx)(a.BJ.Item,{grow:!0,basis:0,children:(0,i.jsx)(a.$n,{fluid:!0,content:"Previous",fontSize:"150%",icon:"arrow-left",lineHeight:2,disabled:s<=0,onClick:function(){return u(s-1)}})}),(0,i.jsx)(a.BJ.Item,{grow:!0,basis:0,children:(0,i.jsx)(a.$n,{fluid:!0,content:"Next",fontSize:"150%",icon:"arrow-right",lineHeight:2,disabled:s>=t.length-1,onClick:function(){return u(s+1)}})})]})})}),(0,i.jsxs)(a.BJ.Item,{children:[(0,i.jsx)("h1",{children:d.title&&d.title}),(0,i.jsx)("div",{className:"LoreConsole__entryText",dangerouslySetInnerHTML:{__html:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nn,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:nr,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:nt;return n&&(t=t.concat(i)),ne.sanitize(e,{ALLOWED_TAGS:t,FORBID_ATTR:r})}(Z(d.body,{breaks:!0,smartypants:!0,smartLists:!0,baseUrl:"thisshouldbreakhttp"}))}})]})]})})}},5531:function(e,n,t){"use strict";t.r(n),t.d(n,{MODsuit:()=>_,MODsuitContent:()=>k});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var s=function(e){var n=e.name,t=e.value,i=e.module_ref,a=(0,l.Oc)().act;return(0,r.jsx)(o.Q7,{value:t,minValue:-50,maxValue:50,stepPixelSize:5,step:1,width:"39px",onChange:function(e){return a("configure",{key:n,value:e,ref:i})}})},u=function(e){var n=e.name,t=e.value,i=e.module_ref,a=(0,l.Oc)().act;return(0,r.jsx)(o.$n.Checkbox,{checked:t,onClick:function(){return a("configure",{key:n,value:!t,ref:i})}})},d=function(e){var n=e.name,t=e.value,i=e.module_ref,a=(0,l.Oc)().act;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.$n,{icon:"paint-brush",onClick:function(){return a("configure",{key:n,ref:i})}}),(0,r.jsx)(o.BK,{color:t,mr:.5})]})},f=function(e){var n=e.name,t=e.value,i=e.values,a=e.module_ref,c=(0,l.Oc)().act;return(0,r.jsx)(o.ms,{displayText:t,options:i,selected:t,onSelected:function(e){return c("configure",{key:n,value:e,ref:a})}})},h=function(e){var n=e.name,t=e.display_name,i=e.type,l=e.value,a=e.values,c=e.module_ref,h={number:(0,r.jsx)(s,{name:n,value:l,module_ref:c}),bool:(0,r.jsx)(u,{name:n,value:l,module_ref:c}),color:(0,r.jsx)(d,{name:n,value:l,module_ref:c}),list:(0,r.jsx)(f,{name:n,value:l,values:a||[],module_ref:c})};return(0,r.jsxs)(o.az,{children:[t,": ",h[i]]})},m={rad_counter:function(e){var n=e.active,t=e.userradiated,i=e.usertoxins,l=void 0===i?0:i,a=e.usermaxtoxins,c=e.threatlevel;return(0,r.jsxs)(o.BJ,{fill:!0,textAlign:"center",children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{title:"Radiation Level",color:n&&t?"bad":"good",children:n&&t?"IRRADIATED!":"RADIATION-FREE"})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{title:"Toxins Level",children:(0,r.jsx)(o.z2,{value:n?l/(void 0===a?100:a):0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,r.jsx)(o.zv,{value:l})})})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{title:"Hazard Level",color:n&&c?"bad":"good",bold:!0,children:n&&c?c:0})})]})},health_analyzer:function(e){var n=e.active,t=e.userhealth,i=void 0===t?0:t,l=e.usermaxhealth,a=void 0===l?100:l,c=e.userbrute,s=void 0===c?0:c,u=e.userburn,d=void 0===u?0:u,f=e.usertoxin,h=void 0===f?0:f,m=e.useroxy,p=void 0===m?0:m;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.wn,{title:"Health",children:(0,r.jsx)(o.z2,{value:n?i/a:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,r.jsx)(o.zv,{value:n?i:0})})}),(0,r.jsxs)(o.BJ,{textAlign:"center",children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{title:"Brute",children:(0,r.jsx)(o.z2,{value:n?s/a:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,r.jsx)(o.zv,{value:n?s:0})})})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{title:"Burn",children:(0,r.jsx)(o.z2,{value:n?d/a:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,r.jsx)(o.zv,{value:n?d:0})})})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{title:"Toxin",children:(0,r.jsx)(o.z2,{value:n?h/a:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,r.jsx)(o.zv,{value:n?h:0})})})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{title:"Suffocation",children:(0,r.jsx)(o.z2,{value:n?p/a:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,r.jsx)(o.zv,{value:n?p:0})})})})]})]})},status_readout:function(e){var n=e.active,t=e.statustime,i=e.statusid,l=e.statushealth,a=void 0===l?0:l,c=e.statusmaxhealth,s=void 0===c?100:c,u=e.statusbrute,d=void 0===u?0:u,f=e.statusburn,h=void 0===f?0:f,m=e.statustoxin,p=void 0===m?0:m,x=e.statusoxy,g=void 0===x?0:x,j=e.statustemp,b=e.statusnutrition,y=e.statusfingerprints,v=e.statusdna,w=e.statusviruses;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.BJ,{textAlign:"center",children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{title:"Operation Time",children:n?t:"00:00:00"})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{title:"Operation Number",children:n?i||"0":"???"})})]}),(0,r.jsx)(o.wn,{title:"Health",children:(0,r.jsx)(o.z2,{value:n?a/s:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,r.jsx)(o.zv,{value:n?a:0})})}),(0,r.jsxs)(o.BJ,{textAlign:"center",children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{title:"Brute",children:(0,r.jsx)(o.z2,{value:n?d/s:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,r.jsx)(o.zv,{value:n?d:0})})})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{title:"Burn",children:(0,r.jsx)(o.z2,{value:n?h/s:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,r.jsx)(o.zv,{value:n?h:0})})})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{title:"Toxin",children:(0,r.jsx)(o.z2,{value:n?p/s:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,r.jsx)(o.zv,{value:p})})})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{title:"Suffocation",children:(0,r.jsx)(o.z2,{value:n?g/s:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,r.jsx)(o.zv,{value:g})})})})]}),(0,r.jsxs)(o.BJ,{textAlign:"center",children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{title:"Body Temperature",children:n?void 0===j?0:j:0})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{title:"Nutrition Status",children:n?void 0===b?0:b:0})})]}),(0,r.jsx)(o.wn,{title:"DNA",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Fingerprints",children:n?y:"???"}),(0,r.jsx)(o.Ki.Item,{label:"Unique Enzymes",children:n?v:"???"})]})}),!!n&&!!w&&(0,r.jsx)(o.wn,{title:"Diseases",children:(0,r.jsxs)(o.XI,{children:[(0,r.jsxs)(o.XI.Row,{header:!0,children:[(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:(0,r.jsx)(o.$n,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:(0,r.jsx)(o.$n,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:(0,r.jsx)(o.$n,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:(0,r.jsx)(o.$n,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),w.map(function(e){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:e.name}),(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:e.type}),(0,r.jsxs)(o.XI.Cell,{textAlign:"center",children:[e.stage,"/",e.maxstage]}),(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:e.cure})]},e.name)})]})})]})}},p=function(){return(0,r.jsxs)(o.wn,{align:"center",fill:!0,children:[(0,r.jsx)(o.In,{color:"red",name:"exclamation-triangle",size:15}),(0,r.jsx)(o.az,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},x=function(){return(0,r.jsx)(o.Rr,{children:(0,r.jsx)(o.BJ,{children:(0,r.jsx)(o.BJ.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},g=function(e){var n=e.configuration_data,t=e.module_ref,i=Object.keys(n);return(0,r.jsx)(o.Rr,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,r.jsxs)(o.BJ,{vertical:!0,children:[i.map(function(e){var i=n[e];return(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(h,{name:e,display_name:i.display_name,type:i.type,value:i.value,values:i.values,module_ref:t})},i.key)}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.az,{children:(0,r.jsx)(o.$n,{fluid:!0,onClick:e.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},j=function(e){switch(e){case 1:return"Use";case 2:return"Toggle";case 3:return"Select";default:return""}},b=function(){var e=(0,l.Oc)(),n=e.act,t=e.data,i=t.active,a=t.malfunctioning,c=t.locked,s=t.open,u=t.selected_module,d=t.complexity,f=t.complexity_max,h=t.wearer_name,m=t.wearer_job,p=t.link_call,x=t.link_id;return(0,r.jsx)(o.wn,{title:"Parameters",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Status",buttons:(0,r.jsx)(o.$n,{icon:"power-off",content:i?"Deactivate":"Activate",onClick:function(){return n("activate")}}),children:a?"Malfunctioning":i?"Active":"Inactive"}),(0,r.jsx)(o.Ki.Item,{label:"ID Lock",buttons:(0,r.jsx)(o.$n,{icon:c?"lock-open":"lock",content:c?"Unlock":"Lock",onClick:function(){return n("lock")}}),children:c?"Locked":"Unlocked"}),(0,r.jsx)(o.Ki.Item,{label:"MODLink",buttons:(0,r.jsx)(o.$n,{icon:"wifi",color:p?"good":"default",disabled:!x,content:p?"Calling ("+p+")":"Call ("+(x||"")+")",onClick:function(){return n("call")}}),children:p?"Call Active":"No Active Call"}),(0,r.jsx)(o.Ki.Item,{label:"Cover",children:s?"Open":"Closed"}),(0,r.jsx)(o.Ki.Item,{label:"Selected Module",children:u||"None"}),(0,r.jsxs)(o.Ki.Item,{label:"Complexity",children:[d," (",f,")"]}),(0,r.jsxs)(o.Ki.Item,{label:"Occupant",children:[h,", ",m]})]})})},y=function(){var e=(0,l.Oc)().data;e.active;var n=e.control,t=e.helmet,i=e.chestplate,a=e.gauntlets,c=e.boots,s=e.core,u=e.charge;return(0,r.jsxs)(o.wn,{title:"Hardware",children:[(0,r.jsx)(o.Nt,{title:"Parts",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Control Unit",children:n}),(0,r.jsx)(o.Ki.Item,{label:"Helmet",children:t||"None"}),(0,r.jsx)(o.Ki.Item,{label:"Chestplate",children:i||"None"}),(0,r.jsx)(o.Ki.Item,{label:"Gauntlets",children:a||"None"}),(0,r.jsx)(o.Ki.Item,{label:"Boots",children:c||"None"})]})}),(0,r.jsx)(o.Nt,{title:"Core",children:s&&(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Core Type",children:s}),(0,r.jsx)(o.Ki.Item,{label:"Core Charge",children:(0,r.jsx)(o.z2,{value:u/100,ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]},children:u+"%"})})]})||(0,r.jsx)(o.az,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},v=function(){var e=(0,l.Oc)().data,n=e.active,t=e.modules.filter(function(e){return!!e.id});return(0,r.jsx)(o.wn,{title:"Info",children:(0,r.jsx)(o.BJ,{vertical:!0,children:0!==t.length&&t.map(function(e){var t,i,l=m[e.id||""];return(0,r.jsxs)(o.BJ.Item,{children:[!n&&(0,r.jsx)(x,{}),(0,r.jsx)(l,(t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({},e),i=i={active:n},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}),t))]},e.ref)})||(0,r.jsx)(o.az,{textAlign:"center",children:"No Info Modules Detected"})})})},w=function(){var e,n=(0,l.Oc)(),t=n.act,a=n.data,s=a.complexity_max,u=a.modules,d=(e=(0,i.useState)(null),function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,2)||function(e,n){if(e){if("string"==typeof e)return c(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=d[0],h=d[1];return(0,r.jsx)(o.wn,{title:"Modules",fill:!0,children:(0,r.jsx)(o.BJ,{vertical:!0,children:0!==u.length&&u.map(function(e){return(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.Nt,{title:e.module_name,children:(0,r.jsxs)(o.wn,{children:[f===e.ref&&(0,r.jsx)(g,{configuration_data:e.configuration_data,module_ref:e.ref,onExit:function(){return h(null)}}),(0,r.jsxs)(o.XI,{children:[(0,r.jsxs)(o.XI.Row,{header:!0,children:[(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:(0,r.jsx)(o.$n,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:(0,r.jsx)(o.$n,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:(0,r.jsx)(o.$n,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:(0,r.jsx)(o.$n,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:(0,r.jsx)(o.$n,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:(0,r.jsx)(o.$n,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsxs)(o.XI.Cell,{textAlign:"center",children:[e.module_complexity,"/",s]}),(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:e.idle_power}),(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:e.active_power}),(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:e.use_power}),(0,r.jsxs)(o.XI.Cell,{textAlign:"center",children:[e.cooldown>0&&e.cooldown/10||"0","/",e.cooldown_time/10,"s"]}),(0,r.jsxs)(o.XI.Cell,{textAlign:"center",children:[(0,r.jsx)(o.$n,{onClick:function(){return t("select",{ref:e.ref})},icon:"bullseye",selected:e.module_active,tooltip:j(e.module_type),tooltipPosition:"left",disabled:!e.module_type}),(0,r.jsx)(o.$n,{onClick:function(){return h(e.ref)},icon:"cog",selected:f===e.ref,tooltip:"Configure",tooltipPosition:"left",disabled:0===Object.keys(e.configuration_data).length}),(0,r.jsx)(o.$n,{onClick:function(){return t("pin",{ref:e.ref})},icon:"thumbtack",selected:e.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!e.module_type})]})]})]}),(0,r.jsx)(o.az,{children:e.description})]})})},e.ref)})||(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.az,{textAlign:"center",children:"No Modules Detected"})})})})},k=function(){var e=(0,l.Oc)().data.interface_break;return(0,r.jsx)(o.wn,{fill:!0,scrollable:!e,children:!!e&&(0,r.jsx)(p,{})||(0,r.jsxs)(o.BJ,{vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(b,{})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(y,{})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(v,{})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(w,{})})]})})},_=function(){var e=(0,l.Oc)().data.ui_theme;return(0,r.jsx)(a.p8,{theme:e,width:400,height:620,children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsx)(o.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(k,{})})})})}},5247:function(e,n,t){"use strict";t.r(n),t.d(n,{MagnetController:()=>d});var r=t(8138),i=t(7790),o=t(6859),l=t(2864),a=t(3384),c=t(4744);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var u=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),d=function(e){var n=(0,l.Oc)(),t=n.act,d=n.data,f=d.autolink,h=d.code,m=d.frequency,p=d.linkedMagnets,x=d.magnetConfiguration,g=d.path,j=d.pathPosition,b=d.probing,y=d.powerState,v=d.speed;return(0,r.jsxs)(a.p8,{width:400,height:600,children:[(0,r.jsx)(c.ComplexModal,{}),(0,r.jsxs)(a.p8.Content,{scrollable:!0,children:[!f&&(0,r.jsx)(i.wn,{buttons:(0,r.jsx)(i.$n,{content:"Probe",icon:b?"spinner":"sync",iconSpin:!!b,disabled:b,onClick:function(){return t("probe_magnets")}}),title:"Magnet Linking",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Frequency",children:(0,o.Mg)(m/10,1)}),(0,r.jsx)(i.Ki.Item,{label:"Code",children:h})]})}),(0,r.jsx)(i.wn,{buttons:(0,r.jsx)(i.$n,{icon:y?"power-off":"times",content:y?"On":"Off",selected:y,onClick:function(){return t("toggle_power")}}),title:"Controller Configuration",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Speed",children:(0,r.jsx)(i.Ap,{value:v.value,minValue:v.min,maxValue:v.max,onChange:function(e,n){return t("set_speed",{speed:n})}})}),(0,r.jsxs)(i.Ki.Item,{label:"Path",children:[Array.from(u.entries()).map(function(e){var n=function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,2)||function(e,n){if(e){if("string"==typeof e)return s(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[0],l=n[1],a=l.icon,c=l.tooltip;return(0,r.jsx)(i.$n,{icon:a,tooltip:c,onClick:function(){return t("path_add",{code:o})}},o)}),(0,r.jsx)(i.$n.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",style:{float:"right"},tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){return t("path_clear")}}),(0,r.jsx)(i.$n,{icon:"file-import",style:{float:"right"},tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){return(0,c.modalOpen)("path_custom_input")}}),(0,r.jsx)(i.Y0,{children:g.map(function(e,n){var o=u.get(e)||{icon:"question"},l=o.icon,a=o.tooltip;return(0,r.jsx)(i.$n.Confirm,{selected:n+2===j,icon:l,confirmIcon:l,confirmContent:"",tooltip:a,onClick:function(){return t("path_remove",{index:n+1,code:e})}},n)})})]})]})}),p.map(function(e,n){var o=e.uid,l=e.powerState,a=e.electricityLevel,c=e.magneticField;return(0,r.jsx)(i.wn,{title:"Magnet #".concat(n+1," Configuration"),buttons:(0,r.jsx)(i.$n,{icon:l?"power-off":"times",content:l?"On":"Off",selected:l,onClick:function(){return t("toggle_magnet_power",{id:o})}}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Move Speed",children:(0,r.jsx)(i.Ap,{value:a,minValue:x.electricityLevel.min,maxValue:x.electricityLevel.max,onChange:function(e,n){return t("set_electricity_level",{id:o,electricityLevel:n})}})}),(0,r.jsx)(i.Ki.Item,{label:"Field Size",children:(0,r.jsx)(i.Ap,{value:c,minValue:x.magneticField.min,maxValue:x.magneticField.max,onChange:function(e,n){return t("set_magnetic_field",{id:o,magneticField:n})}})})]})},o)})]})]})}},9587:function(e,n,t){"use strict";t.r(n),t.d(n,{MaterialContainer:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=new Set(["metal","glass"]),c=function(){return(0,r.jsx)(l.p8,{width:300,height:400,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(s,{})})})},s=function(){return(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Metals",children:(0,r.jsxs)(i.XI,{className:"materials-table",children:[(0,r.jsxs)(i.XI.Row,{header:!0,children:[(0,r.jsx)(i.XI.Cell,{header:!0,pl:"0.5rem",py:"0.5rem",children:"Material"}),(0,r.jsx)(i.XI.Cell,{header:!0,children:"Sheets"}),(0,r.jsx)(u,{})]}),(0,r.jsx)(d,{})]})})},u=function(){if((0,o.Oc)().data.showPoints)return(0,r.jsx)(i.XI.Cell,{header:!0,children:"Points"})},d=function(){return(0,o.Oc)().data.materials.filter(function(e){return e.amount>=1||a.has(e.id)}).map(function(e){return(0,r.jsx)(f,{material:e},e.id)})},f=function(e){var n=e.material,t=n.id,l=n.amount,a=(0,o.Oc)().data,c=a.icon,s=a.showPoints,u=a.staticMaterials[t],d=u.iconState,f=u.name,h=u.points;return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsxs)(i.XI.Cell,{children:[d?(0,r.jsx)(i.Hg,{icon:c,icon_state:d,verticalAlign:"middle"}):(0,r.jsx)(i.In,{name:"sheet-plastic",verticalAlign:"middle"}),null!=f?f:t]}),(0,r.jsx)(i.XI.Cell,{color:l>=1?"good":"gray",children:l}),!!s&&h&&(0,r.jsx)(i.XI.Cell,{children:h})]})}},2433:function(e,n,t){"use strict";t.r(n),t.d(n,{MechBayConsole:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data.recharge_port,c=a&&a.mech,s=c&&c.cell,u=c&&c.name;return(0,r.jsx)(l.p8,{width:400,height:155,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.wn,{fill:!0,title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,r.jsx)(i.$n,{icon:"sync",content:"Sync",onClick:function(){return t("reconnect")}}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Integrity",children:!a&&(0,r.jsx)(i.IC,{children:"No power port detected. Please re-sync."})||!c&&(0,r.jsx)(i.IC,{children:"No mech detected."})||(0,r.jsx)(i.z2,{value:c.health/c.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,r.jsx)(i.Ki.Item,{label:"Power",children:!a&&(0,r.jsx)(i.IC,{children:"No power port detected. Please re-sync."})||!c&&(0,r.jsx)(i.IC,{children:"No mech detected."})||!s&&(0,r.jsx)(i.IC,{children:"No cell is installed."})||(0,r.jsxs)(i.z2,{value:s.charge/s.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,r.jsx)(i.zv,{value:s.charge})," / "+s.maxcharge]})})]})})})})}},3763:function(e,n,t){"use strict";t.r(n),t.d(n,{MechaControlConsole:()=>c});var r=t(8138),i=t(7790),o=t(3268),l=t(2864),a=t(3384),c=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data,s=c.beacons,u=c.stored_data;return u.length?(0,r.jsx)(a.p8,{width:420,height:500,children:(0,r.jsx)(a.p8.Content,{scrollable:!0,children:(0,r.jsx)(i.wn,{title:"Log",buttons:(0,r.jsx)(i.$n,{icon:"window-close",onClick:function(){return t("clear_log")}}),children:u.map(function(e){return(0,r.jsxs)(i.az,{children:[(0,r.jsxs)(i.az,{color:"label",children:["(",e.time,")"]}),(0,r.jsx)(i.az,{children:(0,o.jT)(e.message)})]},e.time)})})})}):(0,r.jsx)(a.p8,{width:420,height:500,children:(0,r.jsx)(a.p8.Content,{scrollable:!0,children:s.length&&s.map(function(e){return(0,r.jsx)(i.wn,{title:e.name,buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{icon:"comment",onClick:function(){return t("send_message",{mt:e.uid})},children:"Message"}),(0,r.jsx)(i.$n,{icon:"eye",onClick:function(){return t("get_log",{mt:e.uid})},children:"View Log"}),(0,r.jsx)(i.$n.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){return t("shock",{mt:e.uid})}})]}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Health",children:(0,r.jsx)(i.z2,{ranges:{good:[.75*e.maxHealth,1/0],average:[.5*e.maxHealth,.75*e.maxHealth],bad:[-1/0,.5*e.maxHealth]},value:e.health,maxValue:e.maxHealth})}),(0,r.jsx)(i.Ki.Item,{label:"Cell Charge",children:e.cell&&(0,r.jsx)(i.z2,{ranges:{good:[.75*e.cellMaxCharge,1/0],average:[.5*e.cellMaxCharge,.75*e.cellMaxCharge],bad:[-1/0,.5*e.cellMaxCharge]},value:e.cellCharge,maxValue:e.cellMaxCharge})||(0,r.jsx)(i.IC,{children:"No Cell Installed"})}),(0,r.jsxs)(i.Ki.Item,{label:"Air Tank",children:[e.airtank,"kPa"]}),(0,r.jsx)(i.Ki.Item,{label:"Pilot",children:e.pilot||"Unoccupied"}),(0,r.jsx)(i.Ki.Item,{label:"Location",children:(0,o.Sn)(e.location)||"Unknown"}),(0,r.jsx)(i.Ki.Item,{label:"Active Equipment",children:e.active||"None"}),e.cargoMax&&(0,r.jsx)(i.Ki.Item,{label:"Cargo Space",children:(0,r.jsx)(i.z2,{ranges:{bad:[.75*e.cargoMax,1/0],average:[.5*e.cargoMax,.75*e.cargoMax],good:[-1/0,.5*e.cargoMax]},value:e.cargoUsed,maxValue:e.cargoMax})})||null]})},e.name)})||(0,r.jsx)(i.IC,{children:"No mecha beacons found."})})})}},9548:function(e,n,t){"use strict";t.r(n),t.d(n,{MedicalRecords:()=>b});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864),c=t(3384),s=t(4744),u=t(7352),d=t(736),f=t(2264),h=t(7482);function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function p(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return m(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var x={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},g={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},j=function(e){(0,s.modalOpen)("edit",{field:e.edit,value:e.value})},b=function(e){var n,t=(0,a.Oc)().data,i=t.loginState,l=t.screen;return i.logged_in?(2===l?n=(0,r.jsx)(y,{}):3===l?n=(0,r.jsx)(w,{}):4===l?n=(0,r.jsx)(k,{}):5===l?n=(0,r.jsx)(S,{}):6===l?n=(0,r.jsx)(A,{}):7===l&&(n=(0,r.jsx)(P,{})),(0,r.jsxs)(c.p8,{width:800,height:900,children:[(0,r.jsx)(s.ComplexModal,{}),(0,r.jsx)(c.p8.Content,{children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(u.LoginInfo,{}),(0,r.jsx)(h.TemporaryNotice,{}),(0,r.jsx)(E,{}),n]})})]})):(0,r.jsx)(c.p8,{width:800,height:900,children:(0,r.jsx)(c.p8.Content,{children:(0,r.jsx)(d.LoginScreen,{})})})},y=function(){return(0,r.jsx)(f.default.Default,{sortId:"name",children:(0,r.jsx)(v,{})})},v=function(e){var n=(0,a.Oc)(),t=n.act,c=n.data.records,s=p((0,i.useState)(""),2),u=s[0],d=s[1],h=(0,i.useContext)(f.default),m=h.sortId,x=h.sortOrder;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.BJ,{fill:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){return t("screen",{screen:3})}})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.pd,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onChange:function(e){return d(e)}})})]})}),(0,r.jsx)(o.BJ.Item,{grow:!0,mt:.5,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,children:(0,r.jsxs)(o.XI,{className:"MedicalRecords__list",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(B,{id:"name",children:"Name"}),(0,r.jsx)(B,{id:"id",children:"ID"}),(0,r.jsx)(B,{id:"dna",children:"DNA"}),(0,r.jsx)(B,{id:"rank",children:"Assignment"}),(0,r.jsx)(B,{id:"p_stat",children:"Patient Status"}),(0,r.jsx)(B,{id:"m_stat",children:"Mental Status"})]}),c.filter((0,l.XZ)(u,function(e){return e.name+"|"+e.id+"|"+e.dna+"|"+e.rank+"|"+e.p_stat+"|"+e.m_stat})).sort(function(e,n){return e[m].localeCompare(n[m])*(x?1:-1)}).map(function(e){return(0,r.jsxs)(o.XI.Row,{className:"MedicalRecords__listRow--"+g[e.p_stat],onClick:function(){return t("view_record",{view_record:e.ref})},children:[(0,r.jsxs)(o.XI.Cell,{children:[(0,r.jsx)(o.In,{name:"user"})," ",e.name]}),(0,r.jsx)(o.XI.Cell,{children:e.id}),(0,r.jsx)(o.XI.Cell,{children:e.dna}),(0,r.jsx)(o.XI.Cell,{children:e.rank}),(0,r.jsx)(o.XI.Cell,{children:e.p_stat}),(0,r.jsx)(o.XI.Cell,{children:e.m_stat})]},e.id)})]})})})]})},w=function(e){var n=(0,a.Oc)().act;return(0,r.jsx)(o.BJ.Item,{grow:!0,textAlign:"center",children:(0,r.jsxs)(o.wn,{fill:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.$n,{fluid:!0,lineHeight:3,icon:"download",content:"Backup to Disk",disabled:!0})}),(0,r.jsxs)(o.BJ.Item,{grow:!0,children:[(0,r.jsx)(o.$n,{fluid:!0,lineHeight:3,icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.$n.Confirm,{fluid:!0,lineHeight:3,icon:"trash",content:"Delete All Medical Records",onClick:function(){return n("del_all_med_records")}})})]})})},k=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data,l=i.medical,c=i.printing;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BJ.Item,{height:"235px",children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,r.jsx)(o.$n,{icon:c?"spinner":"print",disabled:c,iconSpin:!!c,content:"Print Record",ml:"0.5rem",onClick:function(){return t("print_record")}}),children:(0,r.jsx)(_,{})})}),l&&l.fields?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,r.jsx)(o.$n.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Medical Record",onClick:function(){return t("del_med_record")}}),children:(0,r.jsx)(C,{})})}),(0,r.jsx)(I,{})]}):(0,r.jsx)(o.BJ.Item,{grow:!0,color:"bad",children:(0,r.jsx)(o.wn,{fill:!0,title:"Medical Data",buttons:(0,r.jsx)(o.$n,{icon:"pen",content:"Create New Record",onClick:function(){return t("new_med_record")}}),children:(0,r.jsx)(o.BJ,{fill:!0,children:(0,r.jsxs)(o.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,r.jsxs)(o.In.Stack,{children:[(0,r.jsx)(o.In,{name:"scroll",size:5,color:"gray"}),(0,r.jsx)(o.In,{name:"slash",size:5,color:"red"})]}),(0,r.jsx)("br",{}),"Medical records lost!"]})})})})]})},_=function(e){var n=(0,a.Oc)().data.general;return n&&n.fields?(0,r.jsxs)(o.BJ,{children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.Ki,{children:n.fields.map(function(e,n){return(0,r.jsxs)(o.Ki.Item,{label:e.field,children:[(0,r.jsx)(o.az,{height:"20px",inline:!0,children:e.value}),!!e.edit&&(0,r.jsx)(o.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return j(e)}})]},n)})})}),!!n.has_photos&&n.photos.map(function(e,n){return(0,r.jsxs)(o.BJ.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,r.jsx)("img",{src:e,style:{width:"96px",marginTop:"2.5rem",marginBottom:"0.5rem",imageRendering:"pixelated"}}),(0,r.jsx)("br",{}),"Photo #",n+1]},n)})]}):(0,r.jsx)(o.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(o.BJ.Item,{grow:!0,color:"bad",children:(0,r.jsx)(o.wn,{fill:!0,children:"General records lost!"})})})},C=function(e){var n=(0,a.Oc)(),t=(n.act,n.data).medical;return t&&t.fields?(0,r.jsx)(o.BJ,{children:(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.Ki,{children:t.fields.map(function(e,n){return(0,r.jsxs)(o.Ki.Item,{label:e.field,preserveWhitespace:!0,children:[(0,l.jT)(e.value),!!e.edit&&(0,r.jsx)(o.$n,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return j(e)}})]},n)})})})}):(0,r.jsx)(o.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(o.BJ.Item,{grow:!0,color:"bad",children:(0,r.jsx)(o.wn,{fill:!0,children:"Medical records lost!"})})})},I=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data.medical;return(0,r.jsx)(o.BJ.Item,{height:"150px",children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,r.jsx)(o.$n,{icon:"comment",content:"Add Entry",onClick:function(){return(0,s.modalOpen)("add_comment")}}),children:0===i.comments.length?(0,r.jsx)(o.az,{color:"label",children:"No comments found."}):i.comments.map(function(e,n){return(0,r.jsxs)(o.az,{children:[(0,r.jsx)(o.az,{color:"label",inline:!0,children:e.header}),(0,r.jsx)("br",{}),e.text,(0,r.jsx)(o.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return t("del_comment",{del_comment:n+1})}})]},n)})})})},S=function(){return(0,r.jsx)(f.default.Default,{sortId:"name",children:(0,r.jsx)(O,{})})},O=function(e){var n=(0,a.Oc)(),t=n.act,c=n.data.virus,s=p((0,i.useState)(""),2),u=s[0],d=s[1],h=(0,i.useContext)(f.default),m=h.sortId,g=h.sortOrder;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.pd,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onChange:function(e){return d(e)}})}),(0,r.jsx)(o.BJ,{fill:!0,vertical:!0,mt:.5,children:(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,children:(0,r.jsxs)(o.XI,{className:"MedicalRecords__list",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(B,{id:"name",children:"Name"}),(0,r.jsx)(B,{id:"max_stages",children:"Max Stages"}),(0,r.jsx)(B,{id:"severity",children:"Severity"})]}),c.filter((0,l.XZ)(u,function(e){return e.name+"|"+e.max_stages+"|"+e.severity})).sort(function(e,n){return e[m].localeCompare(n[m])*(g?1:-1)}).map(function(e){return(0,r.jsxs)(o.XI.Row,{className:"MedicalRecords__listVirus--"+e.severity,onClick:function(){return t("vir",{vir:e.D})},children:[(0,r.jsxs)(o.XI.Cell,{children:[(0,r.jsx)(o.In,{name:"virus"})," ",e.name]}),(0,r.jsx)(o.XI.Cell,{children:e.max_stages}),(0,r.jsx)(o.XI.Cell,{color:x[e.severity],children:e.severity})]},e.id)})]})})})})]})},A=function(e){var n=(0,a.Oc)(),t=(n.act,n.data).goals;return(0,r.jsx)(o.wn,{title:"Virology Goals",fill:!0,children:(0,r.jsx)(o.BJ.Item,{grow:!0,children:0!==t.length&&t.map(function(e){return(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.wn,{title:e.name,children:[(0,r.jsx)(o.XI,{children:(0,r.jsx)(o.XI.Row,{header:!0,children:(0,r.jsx)(o.XI.Cell,{textAlign:"center",children:(0,r.jsxs)(o.z2,{value:e.delivered,minValue:0,maxValue:e.deliverygoal,ranges:{good:[.5*e.deliverygoal,1/0],average:[.25*e.deliverygoal,.5*e.deliverygoal],bad:[-1/0,.25*e.deliverygoal]},children:[e.delivered," / ",e.deliverygoal," Units"]})})})}),(0,r.jsx)(o.az,{children:e.report})]})},e.id)})||(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.az,{textAlign:"center",children:"No Goals Detected"})})})})},P=function(e){var n=(0,a.Oc)(),t=(n.act,n.data).medbots;return 0===t.length?(0,r.jsx)(o.BJ.Item,{grow:!0,color:"bad",children:(0,r.jsx)(o.wn,{fill:!0,children:(0,r.jsx)(o.BJ,{fill:!0,children:(0,r.jsxs)(o.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,r.jsxs)(o.In.Stack,{children:[(0,r.jsx)(o.In,{name:"robot",size:5,color:"gray"}),(0,r.jsx)(o.In,{name:"slash",size:5,color:"red"})]}),(0,r.jsx)("br",{}),"There are no Medibots."]})})})}):(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,children:(0,r.jsxs)(o.XI,{className:"MedicalRecords__list",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(o.XI.Cell,{children:"Name"}),(0,r.jsx)(o.XI.Cell,{children:"Area"}),(0,r.jsx)(o.XI.Cell,{children:"Status"}),(0,r.jsx)(o.XI.Cell,{children:"Chemicals"})]}),t.map(function(e){return(0,r.jsxs)(o.XI.Row,{className:"MedicalRecords__listMedbot--"+e.on,children:[(0,r.jsxs)(o.XI.Cell,{children:[(0,r.jsx)(o.In,{name:"medical"})," ",e.name]}),(0,r.jsxs)(o.XI.Cell,{children:[e.area||"Unknown"," (",e.x,", ",e.y,")"]}),(0,r.jsx)(o.XI.Cell,{children:e.on?(0,r.jsx)(o.az,{color:"good",children:"Online"}):(0,r.jsx)(o.az,{color:"average",children:"Offline"})}),(0,r.jsx)(o.XI.Cell,{children:e.use_beaker?"Reservoir: "+e.total_volume+"/"+e.maximum_volume:"Using internal synthesizer"})]},e.id)})]})})})},B=function(e){var n=(0,i.useContext)(f.default),t=n.sortId,l=n.setSortId,a=n.sortOrder,c=n.setSortOrder,s=e.id,u=e.children;return(0,r.jsx)(o.XI.Cell,{children:(0,r.jsxs)(o.$n,{fluid:!0,color:t!==s&&"transparent",onClick:function(){t===s?c(!a):(l(s),c(!0))},children:[u,t===s&&(0,r.jsx)(o.In,{name:a?"sort-up":"sort-down",ml:"0.25rem;"})]})})},E=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data,l=i.screen,c=i.general;return(0,r.jsx)(o.BJ.Item,{m:0,children:(0,r.jsxs)(o.tU,{children:[(0,r.jsx)(o.tU.Tab,{icon:"list",selected:2===l,onClick:function(){t("screen",{screen:2})},children:"List Records"}),(0,r.jsx)(o.tU.Tab,{icon:"database",selected:5===l,onClick:function(){t("screen",{screen:5})},children:"Virus Database"}),(0,r.jsx)(o.tU.Tab,{icon:"vial",selected:6===l,onClick:function(){t("screen",{screen:6})},children:"Virology Goals"}),(0,r.jsx)(o.tU.Tab,{icon:"plus-square",selected:7===l,onClick:function(){return t("screen",{screen:7})},children:"Medibot Tracking"}),3===l&&(0,r.jsx)(o.tU.Tab,{icon:"wrench",selected:3===l,children:"Record Maintenance"}),4===l&&c&&!c.empty&&(0,r.jsxs)(o.tU.Tab,{icon:"file",selected:4===l,children:["Record: ",c.fields[0].value]})]})})};(0,s.modalRegisterBodyOverride)("virus",function(e){var n=e.args;return(0,r.jsx)(o.wn,{m:"-1rem",pb:"1.5rem",title:n.name||"Virus",children:(0,r.jsx)(o.az,{mx:"0.5rem",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Number of stages",children:n.max_stages}),(0,r.jsxs)(o.Ki.Item,{label:"Spread",children:[n.spread_text," Transmission"]}),(0,r.jsx)(o.Ki.Item,{label:"Possible cure",children:n.cure}),(0,r.jsx)(o.Ki.Item,{label:"Notes",children:n.desc}),(0,r.jsx)(o.Ki.Item,{label:"Severity",color:x[n.severity],children:n.severity})]})})})})},2666:function(e,n,t){"use strict";t.r(n),t.d(n,{MerchVendor:()=>d});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384),c=t(4900),s=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=e.product,c=e.productImage,s=e.productCategory,u=i.user_money;return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{collapsing:!0,children:(0,r.jsx)("img",{src:"data:image/jpeg;base64,".concat(c),style:{verticalAlign:"middle",width:"32px",margin:"0px"}})}),(0,r.jsx)(o.XI.Cell,{bold:!0,children:a.name}),(0,r.jsx)(o.XI.Cell,{collapsing:!0,textAlign:"center",children:(0,r.jsx)(o.$n,{disabled:a.price>u,icon:"shopping-cart",content:a.price,textAlign:"left",onClick:function(){return t("purchase",{name:a.name,category:s})}})})]})},u=function(e){var n=(0,l.Oc)().data,t=(0,i.useContext)(c.default).tabIndex,a=n.products,u=n.imagelist,d=["apparel","toy","decoration"];return(0,r.jsx)(o.XI,{children:a[d[t]].map(function(e){return(0,r.jsx)(s,{product:e,productImage:u[e.path],productCategory:d[t]},e.name)})})},d=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,s=i.user_cash,d=i.inserted_cash;return(0,r.jsx)(a.p8,{title:"Merch Computer",width:450,height:600,children:(0,r.jsx)(a.p8.Content,{scrollable:!0,children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.wn,{title:"User",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.az,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,r.jsx)("b",{children:d})," credits inserted."]}),(0,r.jsx)(o.$n,{disabled:!d,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){return t("change")}})]}),children:(0,r.jsxs)(o.BJ.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",null!==s&&(0,r.jsxs)(o.az,{mt:"0.5rem",children:["Your balance is ",(0,r.jsxs)("b",{children:[s||0," credits"]}),"."]})]})})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"Products",children:(0,r.jsxs)(c.default.Default,{tabIndex:1,children:[(0,r.jsx)(f,{}),(0,r.jsx)(u,{})]})})})]})})})},f=function(e){var n=(0,l.Oc)().data,t=(0,i.useContext)(c.default),a=t.tabIndex,s=t.setTabIndex;return n.login_state,(0,r.jsxs)(o.tU,{children:[(0,r.jsx)(o.tU.Tab,{icon:"dice",selected:1===a,onClick:function(){return s(1)},children:"Toys"}),(0,r.jsx)(o.tU.Tab,{icon:"flag",selected:2===a,onClick:function(){return s(2)},children:"Decorations"})]})}},6231:function(e,n,t){"use strict";t.r(n),t.d(n,{MiningVendor:()=>f});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d={Alphabetical:function(e,n){return e-n},Availability:function(e,n){return-(e.affordable-n.affordable)},Price:function(e,n){return e.price-n.price}},f=function(e){var n=u((0,i.useState)(!1),2),t=n[0],l=n[1],a=u((0,i.useState)(""),2),s=a[0],d=a[1],f=u((0,i.useState)("Alphabetical"),2),x=f[0],g=f[1],j=u((0,i.useState)(!1),2),b=j[0],y=j[1];return(0,r.jsx)(c.p8,{width:400,height:525,children:(0,r.jsx)(c.p8.Content,{children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(h,{}),(0,r.jsx)(p,{gridLayout:t,setGridLayout:l,setSearchText:d,sortOrder:x,setSortOrder:g,descending:b,setDescending:y}),(0,r.jsx)(m,{gridLayout:t,searchText:s,sortOrder:x,descending:b})]})})})},h=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data,l=i.has_id,c=i.id;return(0,r.jsx)(o.IC,{success:l,children:l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.az,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",c.name,".",(0,r.jsx)("br",{}),"You have ",c.points.toLocaleString("en-US")," points."]}),(0,r.jsx)(o.$n,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){return t("logoff")}}),(0,r.jsx)(o.az,{style:{clear:"both"}})]}):"Please insert an ID in order to make purchases."})},m=function(e){var n=(0,a.Oc)(),t=(n.act,n.data),i=t.has_id,c=t.id,s=t.items,u=e.gridLayout,f=e.searchText,h=e.sortOrder,m=e.descending,p=(0,l.XZ)(f,function(e){return e[0]}),g=!1,j=Object.entries(s).map(function(e,n){var t=Object.entries(e[1]).filter(p).map(function(e){return e[1].affordable=i&&c.points>=e[1].price,e[1]}).sort(d[h]);if(0!==t.length)return m&&(t=t.reverse()),g=!0,(0,r.jsx)(x,{title:e[0],items:t,gridLayout:u},e[0])});return(0,r.jsx)(o.BJ.Item,{grow:!0,mt:.5,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,children:g?j:(0,r.jsx)(o.az,{color:"label",children:"No items matching your criteria was found!"})})})},p=function(e){var n=e.gridLayout,t=e.setGridLayout,i=e.setSearchText,l=e.sortOrder,a=e.setSortOrder,c=e.descending,s=e.setDescending;return(0,r.jsx)(o.az,{children:(0,r.jsxs)(o.BJ,{fill:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.pd,{fluid:!0,mt:.2,placeholder:"Search by item name..",onChange:function(e){return i(e)}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{icon:n?"list":"table-cells-large",height:1.75,tooltip:n?"Toggle List Layout":"Toggle Grid Layout",tooltipPosition:"bottom-start",onClick:function(){return t(!n)}})}),(0,r.jsx)(o.BJ.Item,{basis:"30%",children:(0,r.jsx)(o.ms,{selected:l,options:Object.keys(d),width:"100%",onSelected:function(e){return a(e)}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{icon:c?"arrow-down":"arrow-up",height:1.75,tooltip:c?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){return s(!c)}})})]})})},x=function(e){var n,t,i=(0,a.Oc)(),l=i.act,c=i.data,s=e.title,u=e.items,d=e.gridLayout,f=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["title","items","gridLayout"]);return(0,r.jsx)(o.Nt,(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({open:!0,title:s},f),t=t={children:u.map(function(e){return d?(0,r.jsx)(o.c_,{mb:.5,imageSize:57.5,dmIcon:e.icon,dmIconState:e.icon_state,disabled:!c.has_id||c.id.points<e.price,tooltip:"".concat(e.name," - ").concat(e.desc),tooltipPosition:"top",onClick:function(){return l("purchase",{cat:s,name:e.name})},children:e.price.toLocaleString("en-US")},e.name):(0,r.jsx)(o.c_,{fluid:!0,mb:.5,imageSize:32,dmIcon:e.icon,dmIconState:e.icon_state,tooltip:e.desc,buttons:(0,r.jsx)(o.$n,{width:3.75,disabled:!c.has_id||c.id.points<e.price,onClick:function(){return l("purchase",{cat:s,name:e.name})},children:e.price.toLocaleString("en-US")}),children:(0,r.jsx)(o.az,{textAlign:"left",children:e.name})},e.name)})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))}},1972:function(e,n,t){"use strict";t.r(n),t.d(n,{NTRecruiter:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.gamestatus,s=a.cand_name,u=a.cand_birth,d=a.cand_age,f=a.cand_species,h=a.cand_planet,m=a.cand_job,p=a.cand_records,x=a.cand_curriculum,g=a.total_curriculums,j=a.reason;return 0===c?(0,r.jsx)(l.p8,{width:400,height:550,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsxs)(i.wn,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{pt:"45%",fontSize:"31px",color:"white",textAlign:"center",bold:!0,children:"Nanotrasen Recruiter Simulator"}),(0,r.jsx)(i.BJ.Item,{pt:"1%",fontSize:"16px",textAlign:"center",color:"label",children:"Work as the Nanotrasen recruiter and avoid hiring incompetent employees!"})]})}),(0,r.jsxs)(i.wn,{children:[(0,r.jsx)(i.$n,{textAlign:"center",lineHeight:2,fluid:!0,icon:"play",color:"green",content:"Begin Shift",onClick:function(){return t("start_game")}}),(0,r.jsx)(i.$n,{textAlign:"center",lineHeight:2,fluid:!0,icon:"info",color:"blue",content:"Guide",onClick:function(){return t("instructions")}})]})]})})}):1===c?(0,r.jsx)(l.p8,{width:400,height:550,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(i.wn,{fill:!0,color:"grey",title:"Guide",buttons:(0,r.jsx)(i.$n,{icon:"arrow-left",content:"Main Menu",onClick:function(){return t("back_to_menu")}}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"1#",color:"silver",children:["To win this game you must hire/dismiss ",(0,r.jsx)("b",{children:g})," candidates, one wrongly made choice leads to a game over."]}),(0,r.jsx)(i.Ki.Item,{label:"2#",color:"silver",children:"Make the right choice by truly putting yourself into the skin of a recruiter working for Nanotrasen!"}),(0,r.jsxs)(i.Ki.Item,{label:"3#",color:"silver",children:[(0,r.jsx)("b",{children:"Unique"})," characters may appear, pay attention to them!"]}),(0,r.jsx)(i.Ki.Item,{label:"4#",color:"silver",children:"Make sure to pay attention to details like age, planet names, the requested job and even the species of the candidate!"}),(0,r.jsxs)(i.Ki.Item,{label:"5#",color:"silver",children:["Not every employment record is good, remember to make your choice based on the ",(0,r.jsx)("b",{children:"company morals"}),"!"]}),(0,r.jsx)(i.Ki.Item,{label:"6#",color:"silver",children:"The planet of origin has no restriction on the species of the candidate, don't think too much when you see humans that came from Boron!"}),(0,r.jsxs)(i.Ki.Item,{label:"7#",color:"silver",children:["Pay attention to ",(0,r.jsx)("b",{children:"typos"})," and ",(0,r.jsx)("b",{children:"missing words"}),", these do make for bad applications!"]}),(0,r.jsxs)(i.Ki.Item,{label:"8#",color:"silver",children:["Remember, you are recruiting people to work at one of the many NT stations, so no hiring for"," ",(0,r.jsx)("b",{children:"jobs"})," that they ",(0,r.jsx)("b",{children:"don't offer"}),"!"]}),(0,r.jsxs)(i.Ki.Item,{label:"9#",color:"silver",children:["Keep your eyes open for incompatible ",(0,r.jsx)("b",{children:"naming schemes"}),", no company wants a Vox named Joe!"]}),(0,r.jsxs)(i.Ki.Item,{label:"10#",color:"silver",children:["For some unknown reason ",(0,r.jsx)("b",{children:"clowns"})," are never denied by the company, no matter what."]})]})})})})}):2===c?(0,r.jsx)(l.p8,{width:400,height:550,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,color:"label",fontSize:"14px",title:"Employment Applications",children:[(0,r.jsxs)(i.az,{fontSize:"24px",textAlign:"center",color:"silver",bold:!0,children:["Candidate Number #",x]}),(0,r.jsx)("br",{}),(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Name",color:"silver",children:(0,r.jsx)("b",{children:s})}),(0,r.jsx)(i.Ki.Item,{label:"Species",color:"silver",children:(0,r.jsx)("b",{children:f})}),(0,r.jsx)(i.Ki.Item,{label:"Age",color:"silver",children:(0,r.jsx)("b",{children:d})}),(0,r.jsx)(i.Ki.Item,{label:"Date of Birth",color:"silver",children:(0,r.jsx)("b",{children:u})}),(0,r.jsx)(i.Ki.Item,{label:"Planet of Origin",color:"silver",children:(0,r.jsx)("b",{children:h})}),(0,r.jsx)(i.Ki.Item,{label:"Requested Job",color:"silver",children:(0,r.jsx)("b",{children:m})}),(0,r.jsx)(i.Ki.Item,{label:"Employment Records",color:"silver",children:(0,r.jsx)("b",{children:p})})]})]})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{fill:!0,title:"Stamp the application!",color:"grey",textAlign:"center",children:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{grow:!0,basis:0,children:(0,r.jsx)(i.$n,{fluid:!0,color:"red",content:"Dismiss",fontSize:"150%",icon:"ban",lineHeight:4.5,onClick:function(){return t("dismiss")}})}),(0,r.jsx)(i.BJ.Item,{grow:!0,basis:0,children:(0,r.jsx)(i.$n,{fluid:!0,color:"green",content:"Hire",fontSize:"150%",icon:"arrow-circle-up",lineHeight:4.5,onClick:function(){return t("hire")}})})]})})})]})})}):3===c?(0,r.jsx)(l.p8,{width:400,height:550,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsxs)(i.wn,{pt:"40%",fill:!0,children:[(0,r.jsx)(i.BJ.Item,{bold:!0,color:"red",fontSize:"50px",textAlign:"center",children:"Game Over"}),(0,r.jsx)(i.BJ.Item,{fontSize:"15px",color:"label",textAlign:"center",children:j}),(0,r.jsxs)(i.BJ.Item,{color:"blue",fontSize:"20px",textAlign:"center",pt:"10px",children:["FINAL SCORE: ",x-1,"/",g]})]})}),(0,r.jsx)(i.wn,{children:(0,r.jsx)(i.$n,{lineHeight:4,fluid:!0,icon:"arrow-left",content:"Main Menu",onClick:function(){return t("back_to_menu")}})})]})})}):void 0}},452:function(e,n,t){"use strict";t.r(n),t.d(n,{Newscaster:()=>v});var r=t(8138),i=t(4530),o=t(7790),l=t(5490),a=t(2864),c=t(421),s=t(3384),u=t(4744),d=t(7482);function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function m(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function p(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function x(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||g(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,n){if(e){if("string"==typeof e)return f(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return f(e,n)}}var j=["security","engineering","medical","science","service","supply"],b={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},y=(0,i.createContext)(null),v=function(e){var n,t=(0,a.Oc)(),c=t.act,f=t.data,h=f.is_security,m=f.is_admin,p=f.is_silent,g=f.is_printing,j=f.screen,b=f.channels,v=f.channel_idx,C=void 0===v?-1:v,I=x((0,i.useState)(!1),2),O=I[0],A=I[1],P=x((0,i.useState)(""),2),B=P[0],E=P[1],z=x((0,i.useState)(!1),2),T=z[0],N=z[1],R=x((0,i.useState)([]),2),$=R[0],D=R[1];0===j||2===j?n=(0,r.jsx)(k,{}):1===j&&(n=(0,r.jsx)(_,{}));var M=b.reduce(function(e,n){return e+n.unread},0);return(0,r.jsxs)(s.p8,{theme:h&&"security",width:800,height:600,children:[(0,r.jsx)(y.Provider,{value:{viewingPhoto:B,setViewingPhoto:E},children:B?(0,r.jsx)(S,{}):(0,r.jsx)(u.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"})}),(0,r.jsx)(s.p8.Content,{children:(0,r.jsxs)(o.BJ,{fill:!0,children:[(0,r.jsx)(o.wn,{fill:!0,className:(0,l.Ly)(["Newscaster__menu",O&&"Newscaster__menu--open"]),children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsxs)(o.BJ.Item,{children:[(0,r.jsx)(w,{icon:"bars",title:"Toggle Menu",onClick:function(){return A(!O)}}),(0,r.jsx)(w,{icon:"newspaper",title:"Headlines",selected:0===j,onClick:function(){return c("headlines")},children:M>0&&(0,r.jsx)(o.az,{className:"Newscaster__menuButton--unread",children:M>=10?"9+":M})}),(0,r.jsx)(w,{icon:"briefcase",title:"Job Openings",selected:1===j,onClick:function(){return c("jobs")}}),(0,r.jsx)(o.cG,{})]}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:b.map(function(e){return(0,r.jsx)(w,{icon:e.icon,title:e.name,selected:2===j&&b[C-1]===e,onClick:function(){return c("channel",{uid:e.uid})},children:e.unread>0&&(0,r.jsx)(o.az,{className:"Newscaster__menuButton--unread",children:e.unread>=10?"9+":e.unread})},e)})}),(0,r.jsxs)(o.BJ.Item,{children:[(0,r.jsx)(o.cG,{}),(!!h||!!m)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){return(0,u.modalOpen)("wanted_notice")}}),(0,r.jsx)(w,{security:!0,icon:T?"minus-square":"minus-square-o",title:"Censor Mode: "+(T?"On":"Off"),mb:"0.5rem",onClick:function(){return N(!T)}}),(0,r.jsx)(o.cG,{})]}),(0,r.jsx)(w,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){return(0,u.modalOpen)("create_story")}}),(0,r.jsx)(w,{icon:"plus-circle",title:"New Channel",onClick:function(){return(0,u.modalOpen)("create_channel")}}),(0,r.jsx)(o.cG,{}),(0,r.jsx)(w,{icon:g?"spinner":"print",iconSpin:g,title:g?"Printing...":"Print Newspaper",onClick:function(){return c("print_newspaper")}}),(0,r.jsx)(w,{icon:p?"volume-mute":"volume-up",title:"Mute: "+(p?"On":"Off"),onClick:function(){return c("toggle_mute")}})]})]})}),(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,width:"100%",children:[(0,r.jsx)(d.TemporaryNotice,{}),(0,r.jsx)(y.Provider,{value:{viewingPhoto:B,setViewingPhoto:E,censorMode:T,fullStories:$,setFullStories:D},children:n})]})]})})]})},w=function(e){(0,a.Oc)().act;var n=e.icon,t=e.iconSpin,i=e.selected,c=void 0!==i&&i,s=e.security,u=e.onClick,d=e.title,f=e.children,x=p(e,["icon","iconSpin","selected","security","onClick","title","children"]);return(0,r.jsxs)(o.BJ,m(h({align:"center",className:(0,l.Ly)(["Newscaster__menuButton",c&&"Newscaster__menuButton--selected",void 0!==s&&s&&"Newscaster__menuButton--security"]),onClick:u},x),{children:[(0,r.jsxs)(o.BJ.Item,{children:[c&&(0,r.jsx)(o.az,{className:"Newscaster__menuButton--selectedBar"}),(0,r.jsx)(o.In,{name:void 0===n?"":n,spin:t,size:"2"})]}),(0,r.jsx)(o.BJ.Item,{className:"Newscaster__menuButton--title",children:d}),f]}))},k=function(e){var n=(0,a.Oc)(),t=n.act,l=n.data,c=l.screen,s=l.is_admin,d=l.channel_idx,f=l.channel_can_manage,p=l.channels,x=l.stories,g=l.wanted,j=(0,i.useContext)(y),b=j.fullStories,v=j.censorMode,w=2===c&&d>-1?p[d-1]:null;return(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[!!g&&(0,r.jsx)(C,{story:g,wanted:!0}),(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.In,{name:w?w.icon:"newspaper",mr:"0.5rem"}),w?w.name:"Headlines"]}),children:x.length>0?x.slice().reverse().map(function(e){return!b.includes(e.uid)&&e.body.length+3>128?m(h({},e),{body_short:e.body.substr(0,124)+"..."}):e}).map(function(e,n){return(0,r.jsx)(C,{story:e},n)}):(0,r.jsxs)(o.az,{className:"Newscaster__emptyNotice",children:[(0,r.jsx)(o.In,{name:"times",size:"3"}),(0,r.jsx)("br",{}),"There are no stories at this time."]})}),!!w&&(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,height:"40%",title:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.In,{name:"info-circle",mr:"0.5rem"}),"About"]}),buttons:(0,r.jsxs)(r.Fragment,{children:[v&&(0,r.jsx)(o.$n,{disabled:!!w.admin&&!s,selected:w.censored,icon:w.censored?"comment-slash":"comment",content:w.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){return t("censor_channel",{uid:w.uid})}}),(0,r.jsx)(o.$n,{disabled:!f,icon:"cog",content:"Manage",onClick:function(){return(0,u.modalOpen)("manage_channel",{uid:w.uid})}})]}),children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Description",children:w.description||"N/A"}),(0,r.jsx)(o.Ki.Item,{label:"Owner",children:w.author||"N/A"}),!!s&&(0,r.jsx)(o.Ki.Item,{label:"Ckey",children:w.author_ckey}),(0,r.jsx)(o.Ki.Item,{label:"Public",children:w.public?"Yes":"No"}),(0,r.jsxs)(o.Ki.Item,{label:"Total Views",children:[(0,r.jsx)(o.In,{name:"eye",mr:"0.5rem"}),x.reduce(function(e,n){return e+n.view_count},0).toLocaleString()]})]})})]})},_=function(e){var n=(0,a.Oc)(),t=(n.act,n.data),i=t.jobs,c=t.wanted,s=Object.entries(i).reduce(function(e,n){var t=x(n,2);return e+(t[0],t[1]).length},0);return(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[!!c&&(0,r.jsx)(C,{story:c,wanted:!0}),(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,m:0,title:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.In,{name:"briefcase",mr:"0.5rem"}),"Job Openings"]}),buttons:(0,r.jsx)(o.az,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:s>0?j.map(function(e){return Object.assign({},b[e],{id:e,jobs:i[e]})}).filter(function(e){return!!e&&e.jobs.length>0}).map(function(e){return(0,r.jsx)(o.wn,{className:(0,l.Ly)(["Newscaster__jobCategory","Newscaster__jobCategory--"+e.id]),title:e.title,buttons:(0,r.jsx)(o.az,{mt:"0.25rem",color:"label",children:e.fluff_text}),children:e.jobs.map(function(e){return(0,r.jsxs)(o.az,{class:(0,l.Ly)(["Newscaster__jobOpening",!!e.is_command&&"Newscaster__jobOpening--command"]),children:["• ",e.title]},e.title)})},e.id)}):(0,r.jsxs)(o.az,{className:"Newscaster__emptyNotice",children:[(0,r.jsx)(o.In,{name:"times",size:"3"}),(0,r.jsx)("br",{}),"There are no openings at this time."]})}),(0,r.jsxs)(o.wn,{height:"17%",children:["Interested in serving Nanotrasen?",(0,r.jsx)("br",{}),"Sign up for any of the above position now at the ",(0,r.jsx)("b",{children:"Head of Personnel's Office!"}),(0,r.jsx)("br",{}),(0,r.jsx)(o.az,{as:"small",color:"label",children:"By accepting employment at Nanotrasen or any of its installations, you additionally agree to the terms and conditions provided by the company, including Standard Operating Procedure and Space Law."})]})]})},C=function(e){var n=(0,a.Oc)(),t=n.act,s=n.data,u=e.story,d=e.wanted,h=void 0!==d&&d,m=s.is_admin,p=(0,i.useContext)(y),x=p.fullStories,j=p.setFullStories,b=p.censorMode;return(0,r.jsx)(o.wn,{className:(0,l.Ly)(["Newscaster__story",h&&"Newscaster__story--wanted"]),title:(0,r.jsxs)(r.Fragment,{children:[h&&(0,r.jsx)(o.In,{name:"exclamation-circle",mr:"0.5rem"}),2&u.censor_flags&&"[REDACTED]"||u.title||"News from "+u.author]}),buttons:(0,r.jsx)(o.az,{mt:"0.25rem",children:(0,r.jsxs)(o.az,{color:"label",children:[!h&&b&&(0,r.jsx)(o.az,{inline:!0,children:(0,r.jsx)(o.$n,{enabled:2&u.censor_flags,icon:2&u.censor_flags?"comment-slash":"comment",content:2&u.censor_flags?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){return t("censor_story",{uid:u.uid})}})}),(0,r.jsxs)(o.az,{inline:!0,children:[(0,r.jsx)(o.In,{name:"user"})," ",u.author," |\xa0",!!m&&(0,r.jsxs)(r.Fragment,{children:["ckey: ",u.author_ckey," |\xa0"]}),!h&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.In,{name:"eye"})," ",u.view_count.toLocaleString()," |\xa0"]}),(0,r.jsx)(o.In,{name:"clock"})," ",(0,c.fF)(u.publish_time,s.world_time)]})]})}),children:(0,r.jsx)(o.az,{children:2&u.censor_flags?"[REDACTED]":(0,r.jsxs)(r.Fragment,{children:[!!u.has_photo&&(0,r.jsx)(I,{name:"story_photo_"+u.uid+".png",style:{float:"right"},ml:"0.5rem"}),(u.body_short||u.body).split("\n").map(function(e,n){return(0,r.jsx)(o.az,{children:e||(0,r.jsx)("br",{})},n)}),u.body_short&&(0,r.jsx)(o.$n,{content:"Read more..",mt:"0.5rem",onClick:function(){return j(((function(e){if(Array.isArray(e))return f(e)})(x)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(x)||g(x)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([u.uid]))}}),(0,r.jsx)(o.az,{clear:"right"})]})})})},I=function(e){var n=e.name,t=p(e,["name"]),l=(0,i.useContext)(y).setViewingPhoto;return(0,r.jsx)(o.az,h({as:"img",className:"Newscaster__photo",src:n,onClick:function(){return l(n)}},t))},S=function(e){var n=(0,i.useContext)(y),t=n.viewingPhoto,l=n.setViewingPhoto;return(0,r.jsxs)(o.aF,{className:"Newscaster__photoZoom",children:[(0,r.jsx)(o.az,{as:"img",src:t}),(0,r.jsx)(o.$n,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){return l("")}})]})},O=function(e){var n=(0,a.Oc)(),t=(n.act,n.data),l=!!e.args.uid&&t.channels.filter(function(n){return n.uid===e.args.uid}).pop();if("manage_channel"===e.id&&!l)return void(0,u.modalClose)();var c="manage_channel"===e.id,s=!!e.args.is_admin,d=e.args.scanned_user,f=x((0,i.useState)((null==l?void 0:l.author)||d||"Unknown"),2),h=f[0],m=f[1],p=x((0,i.useState)((null==l?void 0:l.name)||""),2),g=p[0],j=p[1],b=x((0,i.useState)((null==l?void 0:l.description)||""),2),y=b[0],v=b[1],w=x((0,i.useState)((null==l?void 0:l.icon)||"newspaper"),2),k=w[0],_=w[1],C=x((0,i.useState)(!!c&&!!(null==l?void 0:l.public)),2),I=C[0],S=C[1],O=x((0,i.useState)((null==l?void 0:l.admin)===1),2),A=O[0],P=O[1];return(0,r.jsxs)(o.wn,{m:"-1rem",pb:"1.5rem",title:c?"Manage "+l.name:"Create New Channel",children:[(0,r.jsx)(o.az,{mx:"0.5rem",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Owner",children:(0,r.jsx)(o.pd,{disabled:!s,width:"100%",value:h,onChange:function(e){return m(e)}})}),(0,r.jsx)(o.Ki.Item,{label:"Name",children:(0,r.jsx)(o.pd,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:g,onChange:function(e){return j(e)}})}),(0,r.jsx)(o.Ki.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,r.jsx)(o.pd,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:y,onChange:function(e){return v(e)}})}),(0,r.jsxs)(o.Ki.Item,{label:"Icon",children:[(0,r.jsx)(o.pd,{disabled:!s,value:k,width:"35%",mr:"0.5rem",onChange:function(e){return _(e)}}),(0,r.jsx)(o.In,{name:k,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,r.jsx)(o.Ki.Item,{label:"Accept Public Stories?",children:(0,r.jsx)(o.$n,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"Yes":"No",onClick:function(){return S(!I)}})}),s&&(0,r.jsx)(o.Ki.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,r.jsx)(o.$n,{selected:A,icon:A?"lock":"lock-open",content:A?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){return P(!A)}})})]})}),(0,r.jsx)(o.$n.Confirm,{disabled:0===h.trim().length||0===g.trim().length,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,u.modalAnswer)(e.id,"",{author:h,name:g.substr(0,49),description:y.substr(0,128),icon:k,public:+!!I,admin_locked:+!!A})}})]})};(0,u.modalRegisterBodyOverride)("create_channel",O),(0,u.modalRegisterBodyOverride)("manage_channel",O),(0,u.modalRegisterBodyOverride)("create_story",function(e){var n=(0,a.Oc)(),t=n.act,l=n.data,c=l.photo,s=l.channels,d=l.channel_idx,f=void 0===d?-1:d,h=!!e.args.is_admin,m=e.args.scanned_user,p=s.slice().sort(function(e,n){if(f<0)return 0;var t=s[f-1];return t.uid===e.uid?-1:t.uid===n.uid?1:void 0}).filter(function(e){return h||!e.frozen&&(e.author===m||!!e.public)}),g=x((0,i.useState)(m||"Unknown"),2),j=g[0],b=g[1],y=x((0,i.useState)(p.length>0?p[0].name:""),2),v=y[0],w=y[1],k=x((0,i.useState)(""),2),_=k[0],C=k[1],S=x((0,i.useState)(""),2),O=S[0],A=S[1],P=x((0,i.useState)(!1),2),B=P[0],E=P[1];return(0,r.jsxs)(o.wn,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,r.jsx)(o.az,{mx:"0.5rem",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Author",children:(0,r.jsx)(o.pd,{disabled:!h,width:"100%",value:j,onChange:function(e){return b(e)}})}),(0,r.jsx)(o.Ki.Item,{label:"Channel",verticalAlign:"top",children:(0,r.jsx)(o.ms,{selected:v,options:p.map(function(e){return e.name}),mb:"0",width:"100%",onSelected:function(e){return w(e)}})}),(0,r.jsx)(o.Ki.Divider,{}),(0,r.jsx)(o.Ki.Item,{label:"Title",children:(0,r.jsx)(o.pd,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:_,onChange:function(e){return C(e)}})}),(0,r.jsx)(o.Ki.Item,{label:"Story Text",verticalAlign:"top",children:(0,r.jsx)(o.pd,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:O,onChange:function(e){return A(e)}})}),(0,r.jsx)(o.Ki.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,r.jsx)(o.$n,{icon:"image",selected:c,content:c?"Eject: "+c.name:"Insert Photo",tooltip:!c&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){return t(c?"eject_photo":"attach_photo")}})}),(0,r.jsx)(o.Ki.Item,{label:"Preview",verticalAlign:"top",children:(0,r.jsx)(o.wn,{noTopPadding:!0,title:_,maxHeight:"13.5rem",overflow:"auto",children:(0,r.jsxs)(o.az,{mt:"0.5rem",children:[!!c&&(0,r.jsx)(I,{name:"inserted_photo_"+c.uid+".png",style:{float:"right"}}),O.split("\n").map(function(e,n){return(0,r.jsx)(o.az,{children:e||(0,r.jsx)("br",{})},n)}),(0,r.jsx)(o.az,{clear:"right"})]})})}),h&&(0,r.jsx)(o.Ki.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,r.jsx)(o.$n,{selected:B,icon:B?"lock":"lock-open",content:B?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){return E(!B)}})})]})}),(0,r.jsx)(o.$n.Confirm,{disabled:0===j.trim().length||0===v.trim().length||0===_.trim().length||0===O.trim().length,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,u.modalAnswer)("create_story","",{author:j,channel:v,title:_.substr(0,127),body:O.substr(0,1023),admin_locked:+!!B})}})]})}),(0,u.modalRegisterBodyOverride)("wanted_notice",function(e){var n=(0,a.Oc)(),t=n.act,l=n.data,c=l.photo,s=l.wanted,d=!!e.args.is_admin,f=e.args.scanned_user,h=x((0,i.useState)((null==s?void 0:s.author)||f||"Unknown"),2),m=h[0],p=h[1],g=x((0,i.useState)((null==s?void 0:s.title.substr(8))||""),2),j=g[0],b=g[1],y=x((0,i.useState)((null==s?void 0:s.body)||""),2),v=y[0],w=y[1],k=x((0,i.useState)((null==s?void 0:s.admin_locked)===1),2),_=k[0],C=k[1];return(0,r.jsxs)(o.wn,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,r.jsx)(o.az,{mx:"0.5rem",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Authority",children:(0,r.jsx)(o.pd,{disabled:!d,width:"100%",value:m,onChange:function(e){return p(e)}})}),(0,r.jsx)(o.Ki.Item,{label:"Name",children:(0,r.jsx)(o.pd,{width:"100%",value:j,maxLength:"128",onChange:function(e){return b(e)}})}),(0,r.jsx)(o.Ki.Item,{label:"Description",verticalAlign:"top",children:(0,r.jsx)(o.pd,{multiline:!0,width:"100%",value:v,maxLength:"512",rows:"4",onChange:function(e){return w(e)}})}),(0,r.jsxs)(o.Ki.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,r.jsx)(o.$n,{icon:"image",selected:c,content:c?"Eject: "+c.name:"Insert Photo",tooltip:!c&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){return t(c?"eject_photo":"attach_photo")}}),!!c&&(0,r.jsx)(I,{name:"inserted_photo_"+c.uid+".png",style:{float:"right"}})]}),d&&(0,r.jsx)(o.Ki.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,r.jsx)(o.$n,{selected:_,icon:_?"lock":"lock-open",content:_?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){return C(!_)}})})]})}),(0,r.jsx)(o.$n.Confirm,{disabled:!s,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){t("clear_wanted_notice"),(0,u.modalClose)()}}),(0,r.jsx)(o.$n.Confirm,{disabled:0===m.trim().length||0===j.trim().length||0===v.trim().length,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){(0,u.modalAnswer)(e.id,"",{author:m,name:j.substr(0,127),description:v.substr(0,511),admin_locked:+!!_})}})]})})},6563:function(e,n,t){"use strict";t.r(n),t.d(n,{Noticeboard:()=>c});var r=t(8138),i=t(7790),o=t(3268),l=t(2864),a=t(3384),c=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data.papers;return(0,r.jsx)(a.p8,{width:600,height:300,theme:"noticeboard",children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsx)(i.BJ,{fill:!0,children:c.map(function(e){return(0,r.jsx)(i.BJ.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){return t("interact",{paper:e.ref})},onContextMenu:function(n){n.preventDefault(),t("showFull",{paper:e.ref})},children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,fontSize:.75,title:e.name,children:(0,o.jT)(e.contents)})},e.ref)})})})})}},5867:function(e,n,t){"use strict";t.r(n),t.d(n,{NuclearBomb:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data;return a.extended?(0,r.jsx)(l.p8,{width:350,height:290,children:(0,r.jsxs)(l.p8.Content,{children:[(0,r.jsx)(i.wn,{title:"Authorization",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Auth Disk",children:(0,r.jsx)(i.$n,{icon:a.authdisk?"eject":"id-card",selected:a.authdisk,content:a.diskname?a.diskname:"-----",tooltip:a.authdisk?"Eject Disk":"Insert Disk",onClick:function(){return t("auth")}})}),(0,r.jsx)(i.Ki.Item,{label:"Auth Code",children:(0,r.jsx)(i.$n,{icon:"key",disabled:!a.authdisk,selected:a.authcode,content:a.codemsg,onClick:function(){return t("code")}})})]})}),(0,r.jsx)(i.wn,{title:"Arming & Disarming",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Bolted to floor",children:(0,r.jsx)(i.$n,{icon:a.anchored?"check":"times",selected:a.anchored,disabled:!a.authdisk,content:a.anchored?"YES":"NO",onClick:function(){return t("toggle_anchor")}})}),(0,r.jsx)(i.Ki.Item,{label:"Time Left",children:(0,r.jsx)(i.$n,{icon:"stopwatch",content:a.time,disabled:!a.authfull,tooltip:"Set Timer",onClick:function(){return t("set_time")}})}),(0,r.jsx)(i.Ki.Item,{label:"Safety",children:(0,r.jsx)(i.$n,{icon:a.safety?"check":"times",selected:a.safety,disabled:!a.authfull,content:a.safety?"ON":"OFF",tooltip:a.safety?"Disable Safety":"Enable Safety",onClick:function(){return t("toggle_safety")}})}),(0,r.jsx)(i.Ki.Item,{label:"Arm/Disarm",children:(0,r.jsx)(i.$n,{icon:(a.timer,"bomb"),disabled:a.safety||!a.authfull,color:"red",content:a.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){return t("toggle_armed")}})})]})})]})}):(0,r.jsx)(l.p8,{width:350,height:115,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.wn,{title:"Deployment",children:(0,r.jsx)(i.$n,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){return t("deploy")}})})})})}},7579:function(e,n,t){"use strict";t.r(n),t.d(n,{NuclearRodFabricator:()=>f});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u="fabricate",d="materials",f=function(e){var n,t,c=(0,l.Oc)(e),f=c.data,h=c.act,m=s((0,i.useState)(null),2),p=m[0],x=m[1],g=s((0,i.useState)(null),2),j=g[0],b=g[1],y=s((0,i.useState)(u),2),v=y[0],w=y[1],k=s((0,i.useState)("fuel_rods"),2),_=k[0],C=k[1];return(0,r.jsx)(a.p8,{width:850,height:600,children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.tU,{children:[(0,r.jsx)(o.tU.Tab,{selected:v===u,onClick:function(){return w(u)},children:"Fabricate"}),(0,r.jsx)(o.tU.Tab,{selected:v===d,onClick:function(){return w(d)},children:"Materials"})]})}),(0,r.jsxs)(o.BJ.Item,{grow:!0,children:[v===u&&(0,r.jsxs)(o.BJ,{fill:!0,stretch:!0,children:[(0,r.jsx)(o.BJ.Item,{width:"50%",children:(0,r.jsxs)(o.wn,{title:"Available Designs",fill:!0,scrollable:!0,children:[(0,r.jsxs)(o.tU,{children:[(0,r.jsx)(o.tU.Tab,{icon:"atom",selected:"fuel_rods"===_,onClick:function(){return C("fuel_rods")},children:"Fuel Rods"}),(0,r.jsx)(o.tU.Tab,{icon:"cubes",selected:"moderator_rods"===_,onClick:function(){return C("moderator_rods")},children:"Moderator Rods"}),(0,r.jsx)(o.tU.Tab,{icon:"snowflake",selected:"coolant_rods"===_,onClick:function(){return C("coolant_rods")},children:"Coolant Rods"})]}),(0,r.jsx)(o.az,{mt:1,children:0===(t=f[_]||[]).length?(0,r.jsxs)(o.az,{color:"average",p:1,children:["No ",null==(n=[{key:"fuel_rods",title:"Fuel Rods"},{key:"moderator_rods",title:"Moderator Rods"},{key:"coolant_rods",title:"Coolant Rods"}].find(function(e){return e.key===_}))?void 0:n.title.toLowerCase()," available."]}):t.map(function(e,n){return(0,r.jsxs)(o.az,{p:1,mb:.5,style:{cursor:"pointer",backgroundColor:(null==p?void 0:p.type_path)===e.type_path?"rgba(80, 140, 255, 0.25)":(null==j?void 0:j.type_path)===e.type_path?"rgba(255,255,255,0.08)":"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.08)"},onClick:function(){return x(e)},onMouseEnter:function(){return b(e)},onMouseLeave:function(){return b(null)},children:[(0,r.jsx)(o.az,{bold:!0,children:e.name}),(0,r.jsx)(o.az,{fontSize:"0.85em",color:"label",children:e.desc})]},n)})})]})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsxs)(o.wn,{title:"Rod Information",fill:!0,children:[!p&&(0,r.jsx)(o.IC,{children:"Please select a rod design from the left."}),p&&(0,r.jsxs)(o.BJ,{vertical:!0,fill:!0,children:[(0,r.jsxs)(o.wn,{title:p.name,children:[(0,r.jsxs)(o.XI,{children:[(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{bold:!0,children:"Power Generation:"}),(0,r.jsxs)(o.XI.Cell,{children:[(p.power_amount||0)/1e3," KW"]})]}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{bold:!0,children:"Power Amplification:"}),(0,r.jsx)(o.XI.Cell,{children:p.power_amp_mod||1})]}),(0,r.jsx)(o.XI.Row,{children:(0,r.jsx)(o.XI.Cell,{colSpan:2,style:{paddingTop:"8px"}})}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{bold:!0,children:"Heat Generation:"}),(0,r.jsxs)(o.XI.Cell,{children:[p.heat_amount||0," joules"]})]}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{bold:!0,children:"Heat Amplification:"}),(0,r.jsx)(o.XI.Cell,{children:p.heat_amp_mod||1})]}),(0,r.jsx)(o.XI.Row,{children:(0,r.jsx)(o.XI.Cell,{colSpan:2,style:{paddingTop:"8px"}})}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{bold:!0,children:"Lifespan:"}),(0,r.jsxs)(o.XI.Cell,{children:[p.max_durability||0," cycles"]})]}),p.heat_enrichment&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.XI.Row,{children:(0,r.jsx)(o.XI.Cell,{colSpan:2,style:{paddingTop:"8px"}})}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{bold:!0,children:"Heat Enrichment:"}),(0,r.jsx)(o.XI.Cell,{children:p.heat_enrichment})]}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{bold:!0,children:"Heat Enrichment Requirement:"}),(0,r.jsx)(o.XI.Cell,{children:p.heat_enrichment_requirement||0})]})]}),p.power_enrichment&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.XI.Row,{children:(0,r.jsx)(o.XI.Cell,{colSpan:2,style:{paddingTop:"8px"}})}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{bold:!0,children:"Power Enrichment:"}),(0,r.jsx)(o.XI.Cell,{children:p.power_enrichment})]}),(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{bold:!0,children:"Power Enrichment Requirement:"}),(0,r.jsx)(o.XI.Cell,{children:p.power_enrichment_requirement||0})]})]})]}),p.neighbor_requirements&&p.neighbor_requirements.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.az,{mt:1,bold:!0,children:"Neighbor Requirements:"}),(0,r.jsx)(o.az,{ml:2,children:p.neighbor_requirements.map(function(e,n){return(0,r.jsx)(o.az,{children:e},n)})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.az,{mt:1,bold:!0,children:"Neighbor Requirements:"}),(0,r.jsx)(o.az,{ml:2,children:"None"})]})]}),(0,r.jsx)(o.cG,{}),(0,r.jsx)(o.wn,{title:"Required Materials",children:p.materials&&0!==Object.keys(p.materials).length?(0,r.jsx)(o.XI,{children:Object.entries(p.materials).map(function(e,n){var t=s(e,2),i=t[0],l=t[1],a=Object.entries(f.resources||{}).find(function(e){var n=s(e,2),t=n[0];return n[1],t===i}),c=(a?a[1].amount:0)>=l;return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{bold:!0,className:c?null:"color-red",children:i}),(0,r.jsx)(o.XI.Cell,{className:c?null:"color-red",children:l}),(0,r.jsxs)(o.XI.Cell,{className:c?null:"color-red",children:["(",Math.round(l/2e3)," sheets)"]})]},n)})}):(0,r.jsx)(o.az,{color:"average",children:"No materials required."})}),(0,r.jsx)(o.cG,{}),(0,r.jsx)(o.$n,{icon:"wrench",content:"Fabricate",color:"good",onClick:function(){return h("fabricate_rod",{type_path:p.type_path})}})]})]})})]}),v===d&&(0,r.jsx)(o.wn,{title:"Material Storage",fill:!0,children:f.resources&&0!==Object.keys(f.resources).length?(0,r.jsx)(o.XI,{children:Object.entries(f.resources).map(function(e,n){var t=s(e,2),i=t[0],l=t[1];return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{bold:!0,children:i}),(0,r.jsxs)(o.XI.Cell,{children:[l.amount," units"]}),(0,r.jsxs)(o.XI.Cell,{children:["(",l.sheets," sheets)"]}),(0,r.jsxs)(o.XI.Cell,{children:[(0,r.jsx)(o.$n,{content:"1",onClick:function(){return h("eject_material",{id:l.id,amount:"1"})}}),(0,r.jsx)(o.$n,{content:"C",onClick:function(){return h("eject_material",{id:l.id,amount:"custom"})}}),l.sheets>=5&&(0,r.jsx)(o.$n,{content:"5",onClick:function(){return h("eject_material",{id:l.id,amount:"5"})}}),(0,r.jsx)(o.$n,{content:"All",onClick:function(){return h("eject_material",{id:l.id,amount:l.sheets.toString()})}})]})]},n)})}):(0,r.jsx)(o.az,{color:"average",children:"No materials loaded."})})]})]})})})}},8007:function(e,n,t){"use strict";t.r(n),t.d(n,{NumberInputModal:()=>f});var r=t(8138),i=t(4530),o=t(7790),l=t(7686),a=t(2864),c=t(3384),s=t(1942),u=t(9472);function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var f=function(e){var n,t=(0,a.Oc)(),f=t.act,m=t.data,p=m.init_value,x=m.large_buttons,g=m.message,j=void 0===g?"":g,b=m.timeout,y=m.title,v=(n=(0,i.useState)(p),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return d(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=v[0],k=v[1],_=140+Math.max(Math.ceil(j.length/3),j.length>0&&x?5:0);return(0,r.jsxs)(c.p8,{title:y,width:270,height:_,children:[b&&(0,r.jsx)(u.Loader,{value:b}),(0,r.jsx)(c.p8.Content,{onKeyDown:function(e){var n=window.event?e.which:e.keyCode;n===l.Ri&&f("submit",{entry:w}),n===l.s6&&f("cancel")},children:(0,r.jsx)(o.wn,{fill:!0,children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.az,{color:"label",children:j})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(h,{input:w,onClick:function(e){e!==w&&k(e)},onChange:function(e){e!==w&&k(e)}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(s.InputButtons,{input:w})})]})})})]})},h=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data,l=i.min_value,c=i.max_value,s=i.init_value,u=i.round_value,d=e.input,f=e.onClick,h=e.onChange,m=Math.round(d!==l?Math.max(d/2,l):c/2),p=d===l&&l>0||1===d;return(0,r.jsxs)(o.BJ,{fill:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{disabled:d===l,icon:"angle-double-left",onClick:function(){return f(l)},tooltip:d===l?"Min":"Min (".concat(l,")")})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!u,minValue:l,maxValue:c,value:d,onChange:h,onEnter:function(e){return t("submit",{entry:e})}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{disabled:d===c,icon:"angle-double-right",onClick:function(){return f(c)},tooltip:d===c?"Max":"Max (".concat(c,")")})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{disabled:p,icon:"divide",onClick:function(){return f(m)},tooltip:p?"Split":"Split (".concat(m,")")})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{disabled:d===s,icon:"redo",onClick:function(){return f(s)},tooltip:s?"Reset (".concat(s,")"):"Reset"})})]})}},4965:function(e,n,t){"use strict";t.r(n),t.d(n,{ObjAccessModifier:()=>a});var r=t(8138),i=t(7790),o=t(3384),l=t(9281),a=function(){return(0,r.jsx)(o.p8,{width:500,height:565,children:(0,r.jsx)(o.p8.Content,{children:(0,r.jsx)(i.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(l.ChooseAccess,{})})})})}},6499:function(e,n,t){"use strict";t.r(n),t.d(n,{OperatingComputer:()=>d});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],c=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,1/0]},u=["bad","average","average","good","average","average","bad"],d=function(e){var n,t=(0,o.Oc)(),a=t.act,c=t.data,s=c.hasOccupant,u=c.choice;return n=u?(0,r.jsx)(m,{}):s?(0,r.jsx)(f,{}):(0,r.jsx)(h,{}),(0,r.jsx)(l.p8,{width:650,height:455,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.tU,{children:[(0,r.jsx)(i.tU.Tab,{selected:!u,icon:"user",onClick:function(){return a("choiceOff")},children:"Patient"}),(0,r.jsx)(i.tU.Tab,{selected:!!u,icon:"cog",onClick:function(){return a("choiceOn")},children:"Options"})]})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,children:n})})]})})})},f=function(e){var n=(0,o.Oc)().data.occupant,t=n.activeSurgeries;return(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,title:"Patient",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Name",children:n.name}),(0,r.jsx)(i.Ki.Item,{label:"Status",color:a[n.stat][0],children:a[n.stat][1]}),(0,r.jsx)(i.Ki.Item,{label:"Health",children:(0,r.jsx)(i.z2,{min:"0",max:n.maxHealth,value:n.health/n.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),c.map(function(e,t){return(0,r.jsx)(i.Ki.Item,{label:e[0]+" Damage",children:(0,r.jsx)(i.z2,{min:"0",max:"100",value:n[e[1]]/100,ranges:s,children:Math.round(n[e[1]])},t)},t)}),(0,r.jsx)(i.Ki.Item,{label:"Temperature",children:(0,r.jsxs)(i.z2,{min:"0",max:n.maxTemp,value:n.bodyTemperature/n.maxTemp,color:u[n.temperatureSuitability+3],children:[Math.round(n.btCelsius),"\xb0C, ",Math.round(n.btFaren),"\xb0F"]})}),!!n.hasBlood&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ki.Item,{label:"Blood Level",children:(0,r.jsxs)(i.z2,{min:"0",max:n.bloodMax,value:n.bloodLevel/n.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[n.bloodPercent,"%, ",n.bloodLevel,"cl"]})}),(0,r.jsxs)(i.Ki.Item,{label:"Pulse",children:[n.pulse," BPM"]})]})]})})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Active surgeries",level:"2",children:n.inSurgery&&t?t.map(function(e,n){return(0,r.jsx)(i.wn,{style:{textTransform:"capitalize"},title:e.name+" ("+e.location+")",children:(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Next Step",children:e.step},n)},n)},n)}):(0,r.jsx)(i.az,{color:"label",children:"No procedure ongoing."})})})]})},h=function(){return(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,r.jsx)(i.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.jsx)("br",{}),"No patient detected."]})})},m=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.verbose,c=l.health,s=l.healthAlarm,u=l.oxy,d=l.oxyAlarm,f=l.crit;return(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Loudspeaker",children:(0,r.jsx)(i.$n,{selected:a,icon:a?"toggle-on":"toggle-off",content:a?"On":"Off",onClick:function(){return t(a?"verboseOff":"verboseOn")}})}),(0,r.jsx)(i.Ki.Item,{label:"Health Announcer",children:(0,r.jsx)(i.$n,{selected:c,icon:c?"toggle-on":"toggle-off",content:c?"On":"Off",onClick:function(){return t(c?"healthOff":"healthOn")}})}),(0,r.jsx)(i.Ki.Item,{label:"Health Announcer Threshold",children:(0,r.jsx)(i.N6,{bipolar:!0,minValue:-100,maxValue:100,value:s,stepPixelSize:5,ml:"0",onChange:function(e,n){return t("health_adj",{new:n})}})}),(0,r.jsx)(i.Ki.Item,{label:"Oxygen Alarm",children:(0,r.jsx)(i.$n,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"On":"Off",onClick:function(){return t(u?"oxyOff":"oxyOn")}})}),(0,r.jsx)(i.Ki.Item,{label:"Oxygen Alarm Threshold",children:(0,r.jsx)(i.N6,{bipolar:!0,minValue:-100,maxValue:100,value:d,stepPixelSize:5,ml:"0",onChange:function(e,n){return t("oxy_adj",{new:n})}})}),(0,r.jsx)(i.Ki.Item,{label:"Critical Alert",children:(0,r.jsx)(i.$n,{selected:f,icon:f?"toggle-on":"toggle-off",content:f?"On":"Off",onClick:function(){return t(f?"critOff":"critOn")}})})]})}},7701:function(e,n,t){"use strict";t.r(n),t.d(n,{Orbit:()=>j});var r=t(8138),i=t(4530),o=t(7790),l=t(5490),a=t(3268),c=t(2864),s=t(3384);function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var f=/ \(([0-9]+)\)$/,h=function(e){return(0,a.XZ)(e,function(e){return e.name+(null!==e.assigned_role?"|"+e.assigned_role:"")})},m=function(e,n){return e<n?-1:e>n},p=function(e,n){var t=e.name,r=n.name;if(!t||!r)return 0;var i=t.match(f),o=r.match(f);return i&&o&&t.replace(f,"")===r.replace(f,"")?parseInt(i[1],10)-parseInt(o[1],10):m(t,r)},x=function(e){var n=e.searchText,t=e.source,i=e.title,l=e.color,a=e.sorted,c=t.filter(h(n));return a&&c.sort(p),t.length>0&&(0,r.jsx)(o.wn,{title:"".concat(i," - (").concat(t.length,")"),children:c.map(function(e){return(0,r.jsx)(g,{thing:e,color:l},e.name)})})},g=function(e){var n=(0,c.Oc)().act,t=e.color,i=e.thing;return(0,r.jsxs)(o.$n,{color:t,tooltip:i.assigned_role?(0,r.jsxs)(o.BJ,{children:[(0,r.jsx)(o.az,{as:"img",mr:"0.5em",className:(0,l.Ly)(["job_icons16x16",i.assigned_role_sprite])})," ",i.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){return n("orbit",{ref:i.ref})},children:[i.name,i.orbiters&&(0,r.jsxs)(o.az,{inline:!0,ml:1,children:["(",i.orbiters," ",(0,r.jsx)(o.In,{name:"eye"}),")"]})]})},j=function(e){var n=(0,c.Oc)(),t=n.act,l=n.data,a=l.alive,u=l.antagonists,f=l.highlights,j=l.response_teams,b=l.tourist,y=(l.auto_observe,l.dead),v=l.ssd,w=l.ghosts,k=l.misc,_=l.npcs,C=d((0,i.useState)(""),2),I=C[0],S=C[1],O={},A=!0,P=!1,B=void 0;try{for(var E,z=u[Symbol.iterator]();!(A=(E=z.next()).done);A=!0){var T=E.value;void 0===O[T.antag]&&(O[T.antag]=[]),O[T.antag].push(T)}}catch(e){P=!0,B=e}finally{try{A||null==z.return||z.return()}finally{if(P)throw B}}var N=Object.entries(O);N.sort(function(e,n){return m(e[0],n[0])});var R=function(e){for(var n=0,r=[N.map(function(e){var n=d(e,2);return n[0],n[1]}),b,f,a,w,v,y,_,k];n<r.length;n++){var i=r[n].filter(h(e)).sort(p)[0];if(void 0!==i){t("orbit",{ref:i.ref});break}}};return(0,r.jsx)(s.p8,{width:700,height:500,children:(0,r.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,r.jsx)(o.wn,{children:(0,r.jsxs)(o.BJ,{children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.In,{name:"search"})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.pd,{placeholder:"Search...",autoFocus:!0,fluid:!0,value:I,onChange:function(e){return S(e)},onEnter:function(e){return R(e)}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.cG,{vertical:!0})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{inline:!0,color:"transparent",tooltip:"Refresh",tooltipPosition:"bottom-start",icon:"sync-alt",onClick:function(){return t("refresh")}})})]})}),u.length>0&&(0,r.jsx)(o.wn,{title:"Antagonists",children:N.map(function(e){var n=d(e,2),t=n[0],i=n[1];return(0,r.jsx)(o.wn,{title:"".concat(t," - (").concat(i.length,")"),level:2,children:i.filter(h(I)).sort(p).map(function(e){return(0,r.jsx)(g,{color:"bad",thing:e},e.name)})},t)})}),f.length>0&&(0,r.jsx)(x,{title:"Highlights",source:f,searchText:I,color:"teal"}),(0,r.jsx)(x,{title:"Response Teams",source:j,searchText:I,color:"purple"}),(0,r.jsx)(x,{title:"Tourists",source:b,searchText:I,color:"violet"}),(0,r.jsx)(x,{title:"Alive",source:a,searchText:I,color:"good"}),(0,r.jsx)(x,{title:"Ghosts",source:w,searchText:I,color:"grey"}),(0,r.jsx)(x,{title:"SSD",source:v,searchText:I,color:"grey"}),(0,r.jsx)(x,{title:"Dead",source:y,searchText:I,sorted:!1}),(0,r.jsx)(x,{title:"NPCs",source:_,searchText:I,sorted:!1}),(0,r.jsx)(x,{title:"Misc",source:k,searchText:I,sorted:!1})]})})}},5802:function(e,n,t){"use strict";t.r(n),t.d(n,{OreRedemption:()=>f});var r=t(8138),i=t(7790),o=t(5490),l=t(2864),a=t(3384);function c(){return(c=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function s(e){if(null==e)throw TypeError("Cannot destructure "+e);return e}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function d(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}(0,t(2533).h)("OreRedemption");var f=function(e){return(0,r.jsx)(a.p8,{width:490,height:750,children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(h,{height:"100%"})}),(0,r.jsx)(m,{}),(0,r.jsx)(p,{})]})})})},h=function(e){var n=(0,l.Oc)(),t=n.act,o=n.data;o.id;var a=o.points,f=o.disk,h=c({},s(e));return(0,r.jsxs)(i.wn,d(u({},h),{children:[(0,r.jsxs)(i.az,{color:"average",textAlign:"center",children:[(0,r.jsx)(i.In,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,r.jsx)(i.cG,{}),(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Unclaimed Points",color:a>0?"good":"grey",bold:a>0&&"good",children:a.toLocaleString("en-US")+" pts"})}),(0,r.jsx)(i.cG,{}),f?(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Design disk",children:[(0,r.jsx)(i.$n,{selected:!0,bold:!0,icon:"eject",content:f.name,tooltip:"Ejects the design disk.",onClick:function(){return t("eject_disk")}}),(0,r.jsx)(i.$n,{disabled:!f.design||!f.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){return t("download")}})]}),(0,r.jsx)(i.Ki.Item,{label:"Stored design",children:(0,r.jsx)(i.az,{color:f.design&&(f.compatible?"good":"bad"),children:f.design||"N/A"})})]}):(0,r.jsx)(i.az,{color:"label",children:"No design disk inserted."})]}))},m=function(e){var n=(0,l.Oc)(),t=(n.act,n.data).sheets,o=c({},s(e));return(0,r.jsx)(i.BJ.Item,{grow:!0,height:"20%",children:(0,r.jsxs)(i.wn,d(u({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},o),{children:[(0,r.jsx)(x,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),t.map(function(e){return(0,r.jsx)(g,{ore:e},e.id)})]}))})},p=function(e){var n=(0,l.Oc)(),t=(n.act,n.data).alloys,o=c({},s(e));return(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsxs)(i.wn,d(u({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},o),{children:[(0,r.jsx)(x,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),t.map(function(e){return(0,r.jsx)(j,{ore:e},e.id)})]}))})},x=function(e){var n;return(0,r.jsx)(i.az,{className:"OreHeader",children:(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:e.title}),null==(n=e.columns)?void 0:n.map(function(e){return(0,r.jsx)(i.BJ.Item,{basis:e[1],textAlign:"center",color:"label",bold:!0,children:e[0]},e)})]})})},g=function(e){var n=(0,l.Oc)().act,t=e.ore;if(!t.value||!(t.amount<=0)||["metal","glass"].indexOf(t.id)>-1)return(0,r.jsx)(i.az,{className:"SheetLine",children:(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{basis:"45%",align:"middle",children:(0,r.jsxs)(i.BJ,{align:"center",children:[(0,r.jsx)(i.BJ.Item,{className:(0,o.Ly)(["materials32x32",t.id])}),(0,r.jsx)(i.BJ.Item,{children:t.name})]})}),(0,r.jsx)(i.BJ.Item,{basis:"20%",textAlign:"center",color:t.amount>=1?"good":"gray",bold:t.amount>=1,align:"center",children:t.amount.toLocaleString("en-US")}),(0,r.jsx)(i.BJ.Item,{basis:"20%",textAlign:"center",align:"center",children:t.value}),(0,r.jsx)(i.BJ.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,r.jsx)(i.Q7,{width:"40%",value:0,minValue:0,maxValue:Math.min(t.amount,50),step:1,stepPixelSize:6,onChange:function(e){return n(t.value?"sheet":"alloy",{id:t.id,amount:e})}})})]})})},j=function(e){var n=(0,l.Oc)().act,t=e.ore;return(0,r.jsx)(i.az,{className:"SheetLine",children:(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{basis:"7%",align:"middle",children:(0,r.jsx)(i.az,{className:(0,o.Ly)(["alloys32x32",t.id])})}),(0,r.jsx)(i.BJ.Item,{basis:"30%",textAlign:"middle",align:"center",children:t.name}),(0,r.jsx)(i.BJ.Item,{basis:"35%",textAlign:"middle",color:t.amount>=1?"good":"gray",align:"center",children:t.description}),(0,r.jsx)(i.BJ.Item,{basis:"10%",textAlign:"center",color:t.amount>=1?"good":"gray",bold:t.amount>=1,align:"center",children:t.amount.toLocaleString("en-US")}),(0,r.jsx)(i.BJ.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,r.jsx)(i.Q7,{width:"40%",value:0,minValue:0,maxValue:Math.min(t.amount,50),stepPixelSize:6,step:1,onChange:function(e){return n(t.value?"sheet":"alloy",{id:t.id,amount:e})}})})]})})}},4235:function(e,n,t){"use strict";t.r(n),t.d(n,{PAI:()=>u});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(483),c=t(222),s=function(e){try{n=c("./".concat(e,".jsx"))}catch(n){if("MODULE_NOT_FOUND"===n.code)return(0,a.z)("notFound",e);throw n}var n,t=n[e];return t||(0,a.z)("missingExport",e)},u=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.app_template,u=a.app_icon,d=a.app_title,f=s(c);return(0,r.jsx)(l.p8,{width:600,height:650,children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsx)(i.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{p:1,fill:!0,scrollable:!0,title:(0,r.jsxs)(i.az,{children:[(0,r.jsx)(i.In,{name:u,mr:1}),d,"pai_main_menu"!==c&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){return t("Back")}}),(0,r.jsx)(i.$n,{content:"Home",icon:"arrow-up",onClick:function(){return t("MASTER_back")}})]})]}),children:(0,r.jsx)(f,{})})})})})})}},2740:function(e,n,t){"use strict";t.r(n),t.d(n,{PDA:()=>u});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(483),c=t(2721),s=function(e){try{n=c("./".concat(e,".jsx"))}catch(n){if("MODULE_NOT_FOUND"===n.code)return(0,a.z)("notFound",e);throw n}var n,t=n[e];return t||(0,a.z)("missingExport",e)},u=function(e){var n=(0,o.Oc)(),t=(n.act,n.data),a=t.app;if(!t.owner)return(0,r.jsx)(l.p8,{width:350,height:105,children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsx)(i.wn,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var c=s(a.template);return(0,r.jsx)(l.p8,{width:600,height:650,children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(d,{})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,r.jsxs)(i.az,{children:[(0,r.jsx)(i.In,{name:a.icon,mr:1}),a.name]}),children:(0,r.jsx)(c,{})})}),(0,r.jsx)(i.BJ.Item,{mt:7.5,children:(0,r.jsx)(f,{})})]})})})},d=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.idInserted,c=l.idLink,s=l.stationTime,u=l.cartridge_name;return(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{ml:.5,children:(0,r.jsx)(i.$n,{icon:"id-card",color:"transparent",onClick:function(){return t("Authenticate")},content:a?c:"No ID Inserted"})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"sd-card",color:"transparent",onClick:function(){return t("Eject")},content:u?["Eject "+u]:"No Cartridge Inserted"})}),(0,r.jsx)(i.BJ.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:s})]})},f=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.app;return(0,r.jsx)(i.az,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,r.jsxs)(i.BJ,{fill:!0,children:[!!l.has_back&&(0,r.jsx)(i.BJ.Item,{basis:"33%",mr:-.5,children:(0,r.jsx)(i.$n,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){return t("Back")}})}),(0,r.jsx)(i.BJ.Item,{basis:l.has_back?"33%":"100%",children:(0,r.jsx)(i.$n,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.is_home?"disabled":"white",icon:"home",onClick:function(){t("Home")}})})]})})}},377:function(e,n,t){"use strict";t.r(n),t.d(n,{Pacman:()=>s});var r=t(8138),i=t(7790),o=t(9582),l=t(2864),a=t(7946),c=t(3384),s=function(e){var n=(0,l.Oc)(),t=n.act,s=n.data,u=s.active,d=s.anchored,f=s.broken,h=s.emagged,m=s.fuel_type,p=s.fuel_usage,x=s.fuel_stored,g=s.fuel_cap,j=s.is_ai,b=s.tmp_current,y=s.tmp_max,v=s.tmp_overheat,w=s.output_max,k=s.power_gen,_=s.output_set,C=s.has_fuel,I=Math.round(x/p*2),S=Math.round(I/60);return(0,r.jsx)(c.p8,{width:500,height:225,children:(0,r.jsxs)(c.p8.Content,{children:[(f||!d)&&(0,r.jsxs)(i.wn,{title:"Status",children:[!!f&&(0,r.jsx)(i.az,{color:"orange",children:"The generator is malfunctioning!"}),!f&&!d&&(0,r.jsx)(i.az,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!f&&!!d&&(0,r.jsxs)("div",{children:[(0,r.jsx)(i.wn,{title:"Status",buttons:(0,r.jsx)(i.$n,{icon:u?"power-off":"times",content:u?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!C,selected:u,onClick:function(){return t("toggle_power")}}),children:(0,r.jsxs)(i.so,{direction:"row",children:[(0,r.jsx)(i.so.Item,{width:"50%",className:"ml-1",children:(0,r.jsx)(i.Ki,{children:(0,r.jsxs)(i.Ki.Item,{label:"Power setting",children:[(0,r.jsx)(i.Q7,{value:_,minValue:1,maxValue:w*(h?2.5:1),step:1,className:"mt-1",onChange:function(e){return t("change_power",{change_power:e})}}),"(",(0,o.d5)(_*k),")"]})})}),(0,r.jsx)(i.so.Item,{width:"50%",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Temperature",children:(0,r.jsxs)(i.z2,{value:b/y,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[b," ℃"]})}),(0,r.jsxs)(i.Ki.Item,{label:"Status",children:[v>50&&(0,r.jsx)(i.az,{color:"red",children:"CRITICAL OVERHEAT!"}),v>20&&v<=50&&(0,r.jsx)(i.az,{color:"orange",children:"WARNING: Overheating!"}),v>1&&v<=20&&(0,r.jsx)(i.az,{color:"orange",children:"Temperature High"}),0===v&&(0,r.jsx)(i.az,{color:"green",children:"Optimal"})]})]})})]})}),(0,r.jsx)(i.wn,{title:"Fuel",buttons:(0,r.jsx)(i.$n,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:u||j||!C,onClick:function(){return t("eject_fuel")}}),children:(0,r.jsxs)(a.xA,{children:[(0,r.jsx)(a.xA.Column,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Type",children:m}),(0,r.jsx)(i.Ki.Item,{label:"Fuel level",children:(0,r.jsxs)(i.z2,{value:x/g,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(x/1e3)," dm\xb3"]})})]})}),(0,r.jsx)(a.xA.Column,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Fuel usage",children:[p/1e3," dm\xb3/s"]}),(0,r.jsxs)(i.Ki.Item,{label:"Fuel depletion",children:[!!C&&(p?I>120?"".concat(S," minutes"):"".concat(I," seconds"):"N/A"),!C&&(0,r.jsx)(i.az,{color:"red",children:"Out of fuel"})]})]})})]})})]})]})})}},9454:function(e,n,t){"use strict";t.r(n),t.d(n,{PanDEMIC:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n,t=(0,o.Oc)().data,a=t.reporting,u=t.analyzing,d=t.beakerLoaded,h=t.beakerContainsBlood,m=t.beakerContainsVirus,p=t.resistances,g=void 0===p?[]:p;return d?h?h&&!m&&(n=(0,r.jsx)(r.Fragment,{children:"No disease detected in provided blood sample."})):n=(0,r.jsx)(r.Fragment,{children:"No blood sample found in the loaded container."}):n=(0,r.jsx)(r.Fragment,{children:"No container loaded."}),(0,r.jsx)(l.p8,{width:700,height:640,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(c,{operating:u||a,name:"PanD.E.M.I.C"}),n&&!m?(0,r.jsx)(i.wn,{title:"Container Information",buttons:(0,r.jsx)(s,{fill:!0,vertical:!0}),children:(0,r.jsx)(i.IC,{children:n})}):(0,r.jsx)(f,{}),(null==g?void 0:g.length)>0&&(0,r.jsx)(x,{align:"bottom"})]})})})},c=function(e){var n=e.operating,t=(0,o.Oc)(),l=t.act,a=t.data,c=a.analyzing,s=a.analysisTime,u=a.analysisDuration,d=a.analysisDifficulty,f=a.totalContribution,h=a.analysisContributions,m=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ki.Item,{label:"Analysis Difficulty",children:Math.ceil(d)}),h.map(function(e,n){return(0,r.jsx)(i.Ki.Item,{label:e.factor,children:Math.floor(e.amount)},n)}),(0,r.jsx)(i.Ki.Item,{label:"Total",children:Math.floor(f)}),(0,r.jsx)(i.Ki.Item,{label:"Analysis Result",children:d-f<0?"Disease Analyzed Successfully":"Analysis Failed"})]});if(n)return c?(0,r.jsx)(i.Rr,{children:(0,r.jsx)(i.so,{mb:"30px",children:(0,r.jsxs)(i.so.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,r.jsx)(i.In,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,r.jsx)("br",{}),"Analyzing ",Math.floor(100-100*s/u),"%"]})})}):(0,r.jsx)(i.aF,{backgroundColor:"rgba(0, 0, 0, 1)",children:(0,r.jsx)(i.wn,{title:"Analysis Results",backgroundColor:"rgba(0, 0, 0, 1)",bold:!0,children:(0,r.jsxs)(i.BJ,{vertical:!0,children:[(0,r.jsx)(i.Ki,{children:m}),(0,r.jsx)(i.$n,{textAlign:"center",onClick:function(){return l("close_report")},children:"Close"})]})})})},s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.beakerLoaded;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{icon:"eject",content:"Eject",disabled:!l,onClick:function(){return t("eject_beaker")}}),(0,r.jsx)(i.$n.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!l,onClick:function(){return t("destroy_eject_beaker")}})]})},u=function(e){var n,t,l,a=(0,o.Oc)(),c=a.act,s=a.data,u=s.analysisDifficulty,d=s.analysisContributions,f=s.beakerContainsVirus,h=s.analyzing,m=s.canAnalyze,p=e.strain,x=p.commonName,g=p.description,j=p.strainID,b=p.sample_stage,y=p.known,v=p.diseaseAgent,w=p.bloodDNA,k=p.bloodType,_=p.possibleCures,C=p.transmissionRoute,I=p.isAdvanced,S=p.RequiredCures,O=p.Stabilized,A=p.StrainTracker,P=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ki.Item,{label:"Blood DNA",children:w?(0,r.jsx)("span",{style:{fontFamily:"'Courier New', monospace"},children:w}):"Undetectable"}),(0,r.jsx)(i.Ki.Item,{label:"Blood Type",children:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:null!=k?k:"Undetectable"}})})]});if(!f)return(0,r.jsx)(i.Ki,{children:P});var B=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ki.Item,{label:"Analysis Difficulty",children:Math.ceil(u)}),d.map(function(e,n){return(0,r.jsx)(i.Ki.Item,{label:e.factor,children:(0,r.jsx)(i.z2,{maxValue:Math.min(e.maxAmount,u),minValue:0,value:e.amount,ranges:{good:[.66*Math.min(e.maxAmount,u),1/0],average:[.33*Math.min(e.maxAmount,u),.66*Math.min(e.maxAmount,u)],bad:[-1/0,.33*Math.min(e.maxAmount,u)]},children:e.amount})},n)})]});if(I)return n=null!=x&&"Unknown"!==x?(0,r.jsx)(i.$n,{icon:"print",content:"Print Release Forms",disabled:!y,onClick:function(){return c("print_release_forms",{strain_index:e.strainIndex})},style:{marginLeft:"auto"}}):(0,r.jsx)(i.$n,{icon:"pen",content:null!=x&&"Unknown"!==x?"Rename Disease":"Name Disease",disabled:!y,onClick:function(){return c("name_strain",{strain_index:e.strainIndex})},style:{marginLeft:"auto"}}),I&&(t=(0,r.jsx)(i.$n,{content:"Analyze",disabled:!m||h,onClick:function(){return c("analyze_strain",{strain_index:e.strainIndex})}}),l=(0,r.jsx)(i.$n.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Delete Data",confirmContent:"Delete Data",disabled:!e.strain.known,onClick:function(){return c("remove_from_database",{strain_id:e.strain.strainFullID})}})),(0,r.jsxs)(i.BJ,{vertical:!0,children:[(0,r.jsxs)(i.BJ,{align:"left",children:[n,t,l]}),(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Common Name",className:"common-name-label",children:null!=x?x:"Unknown"}),g&&(0,r.jsx)(i.Ki.Item,{label:"Description",children:g}),(0,r.jsx)(i.Ki.Item,{label:"Strain ID",children:j}),m?B:"",(0,r.jsx)(i.Ki.Item,{label:"Sample Stage",children:b}),(0,r.jsx)(i.Ki.Item,{label:"Disease Agent",children:v}),P,(0,r.jsx)(i.Ki.Item,{label:"Spread Vector",children:null!=C?C:"None"}),(0,r.jsx)(i.Ki.Item,{label:"Possible Cures",children:null!=_?_:"None"}),(0,r.jsx)(i.Ki.Item,{label:"Required Cures",children:null!=S?S:"None"}),I?(0,r.jsx)(i.Ki.Item,{label:"Stabilized",children:1===O?"Yes":"No"}):"",I?(0,r.jsx)(i.Ki.Item,{label:"Tracked Strain",children:A&&""!==A?A:"None"}):""]})]})},d=function(e){var n,t=(0,o.Oc)(),l=t.act,a=!!t.data.synthesisCooldown,c=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{icon:a?"spinner":"clone",iconSpin:a,content:"Clone",disabled:a,onClick:function(){return l("clone_strain",{strain_index:e.strainIndex})}}),e.sectionButtons]});return(0,r.jsx)(i.so.Item,{children:(0,r.jsx)(i.wn,{title:null!=(n=e.sectionTitle)?n:"Strain Information",buttons:c,children:(0,r.jsx)(u,{strain:e.strain,strainIndex:e.strainIndex})})})},f=function(e){var n,t,l=(0,o.Oc)(),a=l.act,c=l.data,u=c.selectedStrainIndex,f=c.strains,h=f[u-1];if(0===f.length)return(0,r.jsx)(i.wn,{title:"Container Information",buttons:(0,r.jsx)(s,{}),children:(0,r.jsx)(i.IC,{children:"No disease detected in provided blood sample."})});if(1===f.length)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d,{strain:f[0],strainIndex:1,sectionButtons:(0,r.jsx)(s,{})}),(null==(t=f[0].symptoms)?void 0:t.length)>0&&(0,r.jsx)(m,{strain:f[0]})]});var p=(0,r.jsx)(s,{});return(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsxs)(i.wn,{title:"Culture Information",fill:!0,buttons:p,children:[(0,r.jsx)(i.so.Item,{children:(0,r.jsx)(i.tU,{children:f.map(function(e,n){var t;return(0,r.jsx)(i.tU.Tab,{icon:"virus",selected:u-1===n,onClick:function(){return a("switch_strain",{strain_index:n+1})},children:null!=(t=e.commonName)?t:"Unknown"},n)})})}),(0,r.jsx)(d,{strain:h,strainIndex:u}),(null==(n=h.symptoms)?void 0:n.length)>0&&(0,r.jsx)(m,{className:"remove-section-bottom-padding",strain:h})]})})},h=function(e){return e.reduce(function(e,n){return e+n},0)},m=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.predictions,c=l.symptom_names,s=l.analyzing,u=l.analysisDuration,d=e.strain,f=d.baseStats,m=d.symptoms,p=d.known;return(0,r.jsx)(i.so.Item,{grow:!0,children:(0,r.jsx)(i.wn,{title:"Infection Symptoms",fill:!0,className:e.className,children:(0,r.jsxs)(i.XI,{className:"symptoms-table",children:[(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:"Name"}),(0,r.jsx)(i.XI.Cell,{children:"Stealth"}),(0,r.jsx)(i.XI.Cell,{children:"Resistance"}),(0,r.jsx)(i.XI.Cell,{children:"Stage Speed"}),(0,r.jsx)(i.XI.Cell,{children:"Transmissibility"})]}),m.map(function(e,n){return(0,r.jsxs)(i.XI.Row,{children:[p||"UNKNOWN"!==e.name?(0,r.jsx)(i.XI.Cell,{children:e.name}):(0,r.jsx)(i.ms,{options:c.sort(function(e,n){return e.localeCompare(n)}),width:"180px",selected:a[n],disabled:s||-2===u,onSelected:function(e){return t("set_prediction",{pred_index:n+1,pred_value:e})}}),(0,r.jsx)(i.XI.Cell,{children:e.stealth}),(0,r.jsx)(i.XI.Cell,{children:e.resistance}),(0,r.jsx)(i.XI.Cell,{children:e.stageSpeed}),(0,r.jsx)(i.XI.Cell,{children:e.transmissibility})]},n)}),(0,r.jsx)(i.XI.Row,{className:"table-spacer"}),(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:"Base Stats"}),(0,r.jsx)(i.XI.Cell,{children:p?f.stealth:"UNKNOWN"}),(0,r.jsx)(i.XI.Cell,{children:p?f.resistance:"UNKNOWN"}),(0,r.jsx)(i.XI.Cell,{children:p?f.stageSpeed:"UNKNOWN"}),(0,r.jsx)(i.XI.Cell,{children:p?f.transmissibility:"UNKNOWN"})]}),(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{bold:!0,children:"Total"}),(0,r.jsx)(i.XI.Cell,{children:p?h(m.map(function(e){return e.stealth}))+f.stealth:"UNKNOWN"}),(0,r.jsx)(i.XI.Cell,{children:p?h(m.map(function(e){return e.resistance}))+f.resistance:"UNKNOWN"}),(0,r.jsx)(i.XI.Cell,{children:p?h(m.map(function(e){return e.stageSpeed}))+f.stageSpeed:"UNKNOWN"}),(0,r.jsx)(i.XI.Cell,{children:p?h(m.map(function(e){return e.transmissibility}))+f.transmissibility:"UNKNOWN"})]})]})})})},p=["flask","vial","eye-dropper"],x=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.synthesisCooldown,c=(l.beakerContainsVirus,l.resistances);return(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Antibodies",fill:!0,children:(0,r.jsx)(i.BJ,{wrap:!0,children:c.map(function(e,n){return(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.$n,{icon:p[n%p.length],disabled:!!a,onClick:function(){return t("clone_vaccine",{resistance_index:n+1})},mr:"0.5em"}),e]},n)})})})})}},3566:function(e,n,t){"use strict";t.r(n),t.d(n,{ParticleAccelerator:()=>u});var r=t(8138),i=t(7790),o=t(3268),l=t(2864),a=t(7946),c=t(3384),s=function(e){switch(e){case 1:return"north";case 2:return"south";case 4:return"east";case 8:return"west";case 5:return"northeast";case 6:return"southeast";case 9:return"northwest";case 10:return"southwest"}return""},u=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data,s=a.assembled,u=a.power,h=a.strength,m=a.max_strength,p=(a.icon,a.layout_1,a.layout_2,a.layout_3,a.orientation);return(0,r.jsx)(c.p8,{width:395,height:s?160:"north"===p||"south"===p?540:465,children:(0,r.jsxs)(c.p8.Content,{scrollable:!0,children:[(0,r.jsx)(i.wn,{title:"Control Panel",buttons:(0,r.jsx)(i.$n,{dmIcon:"sync",content:"Connect",onClick:function(){return t("scan")}}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Status",mb:"5px",children:(0,r.jsx)(i.az,{color:s?"good":"bad",children:s?"Operational":"Error: Verify Configuration"})}),(0,r.jsx)(i.Ki.Item,{label:"Power",children:(0,r.jsx)(i.$n,{icon:u?"power-off":"times",content:u?"On":"Off",selected:u,disabled:!s,onClick:function(){return t("power")}})}),(0,r.jsxs)(i.Ki.Item,{label:"Strength",children:[(0,r.jsx)(i.$n,{icon:"backward",disabled:!s||0===h,onClick:function(){return t("remove_strength")},mr:"4px"}),h,(0,r.jsx)(i.$n,{icon:"forward",disabled:!s||h===m,onClick:function(){return t("add_strength")},ml:"4px"})]})]})}),s?"":(0,r.jsx)(i.wn,{title:p?"EM Acceleration Chamber Orientation: "+(0,o.ZH)(p):"Place EM Acceleration Chamber Next To Console",children:0===p?"":"north"===p||"south"===p?(0,r.jsx)(f,{}):(0,r.jsx)(d,{})})]})})},d=function(e){var n=(0,l.Oc)(),t=(n.act,n.data);t.assembled,t.power,t.strength,t.max_strength;var o=t.icon,a=t.layout_1,c=t.layout_2,u=t.layout_3,d=t.orientation;return(0,r.jsxs)(i.XI,{children:[(0,r.jsx)(i.XI.Row,{width:"40px",children:("east"===d?a:u).slice().map(function(e){return(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.m_,{content:(0,r.jsxs)("span",{style:{wordWrap:"break-word"},children:[e.name," ",(0,r.jsx)("br",{})," ","Status: ".concat(e.status),(0,r.jsx)("br",{}),"Direction: ".concat(s(e.dir))]}),children:(0,r.jsx)(i.c_,{dmIcon:o,dmIconState:e.icon_state,dmDirection:e.dir,style:{borderStyle:"solid",borderWidth:"2px",borderColor:"good"===e.status?"green":"Incomplete"===e.status?"orange":"red",padding:"2px"}})})},e.name)})}),(0,r.jsx)(i.XI.Row,{width:"40px",children:c.slice().map(function(e){return(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.m_,{content:(0,r.jsxs)("span",{style:{wordWrap:"break-word"},children:[e.name," ",(0,r.jsx)("br",{})," ","Status: ".concat(e.status),(0,r.jsx)("br",{}),"Direction: ".concat(s(e.dir))]}),children:(0,r.jsx)(i.c_,{dmIcon:o,dmIconState:e.icon_state,dmDirection:e.dir,style:{borderStyle:"solid",borderWidth:"2px",borderColor:"good"===e.status?"green":"Incomplete"===e.status?"orange":"red",padding:"2px"}})})},e.name)})}),(0,r.jsx)(i.XI.Row,{width:"40px",children:("east"===d?u:a).slice().map(function(e){return(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.m_,{content:(0,r.jsxs)("span",{style:{wordWrap:"break-word"},children:[e.name," ",(0,r.jsx)("br",{})," ","Status: ".concat(e.status),(0,r.jsx)("br",{}),"Direction: ".concat(s(e.dir))]}),children:(0,r.jsx)(i.c_,{dmIcon:o,dmIconState:e.icon_state,dmDirection:e.dir,style:{borderStyle:"solid",borderWidth:"2px",borderColor:"good"===e.status?"green":"Incomplete"===e.status?"orange":"red",padding:"2px"}})})},e.name)})})]})},f=function(e){var n=(0,l.Oc)(),t=(n.act,n.data);t.assembled,t.power,t.strength,t.max_strength;var o=t.icon,c=t.layout_1,u=t.layout_2,d=t.layout_3,f=t.orientation;return(0,r.jsxs)(a.xA,{children:[(0,r.jsx)(a.xA.Column,{width:"40px",children:("north"===f?c:d).slice().map(function(e){return(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.m_,{content:(0,r.jsxs)("span",{style:{wordWrap:"break-word"},children:[e.name," ",(0,r.jsx)("br",{})," ","Status: ".concat(e.status),(0,r.jsx)("br",{}),"Direction: ".concat(s(e.dir))]}),children:(0,r.jsx)(i.c_,{dmIcon:o,dmIconState:e.icon_state,dmDirection:e.dir,style:{borderStyle:"solid",borderWidth:"2px",borderColor:"good"===e.status?"green":"Incomplete"===e.status?"orange":"red",padding:"2px"}})})},e.name)})}),(0,r.jsx)(a.xA.Column,{children:u.slice().map(function(e){return(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.m_,{content:(0,r.jsxs)("span",{style:{wordWrap:"break-word"},children:[e.name," ",(0,r.jsx)("br",{})," ","Status: ".concat(e.status),(0,r.jsx)("br",{}),"Direction: ".concat(s(e.dir))]}),children:(0,r.jsx)(i.c_,{dmIcon:o,dmIconState:e.icon_state,dmDirection:e.dir,style:{borderStyle:"solid",borderWidth:"2px",borderColor:"good"===e.status?"green":"Incomplete"===e.status?"orange":"red",padding:"2px"}})})},e.name)})}),(0,r.jsx)(a.xA.Column,{width:"40px",children:("north"===f?d:c).slice().map(function(e){return(0,r.jsx)(i.BJ.Item,{grow:!0,tooltip:e.status,children:(0,r.jsx)(i.m_,{content:(0,r.jsxs)("span",{style:{wordWrap:"break-word"},children:[e.name," ",(0,r.jsx)("br",{})," ","Status: ".concat(e.status),(0,r.jsx)("br",{}),"Direction: ".concat(s(e.dir))]}),children:(0,r.jsx)(i.c_,{dmIcon:o,dmIconState:e.icon_state,dmDirection:e.dir,style:{borderStyle:"solid",borderWidth:"2px",borderColor:"good"===e.status?"green":"Incomplete"===e.status?"orange":"red",padding:"2px"}})})},e.name)})})]})}},3371:function(e,n,t){"use strict";t.r(n),t.d(n,{PdaPainter:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)().data.has_pda;return(0,r.jsx)(l.p8,{width:510,height:505,children:(0,r.jsx)(l.p8.Content,{children:n?(0,r.jsx)(s,{}):(0,r.jsx)(c,{})})})},c=function(e){var n=(0,o.Oc)().act;return(0,r.jsx)(i.wn,{fill:!0,children:(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,r.jsx)(i.In,{name:"download",size:5,mb:"10px"}),(0,r.jsx)("br",{}),(0,r.jsx)(i.$n,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){return n("insert_pda")}})]})})})},s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.pda_colors;return(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(u,{})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,children:(0,r.jsx)(i.XI,{className:"PdaPainter__list",children:Object.keys(l).map(function(e){return(0,r.jsxs)(i.XI.Row,{onClick:function(){return t("choose_pda",{selectedPda:e})},children:[(0,r.jsx)(i.XI.Cell,{collapsing:!0,children:(0,r.jsx)("img",{src:"data:image/png;base64,".concat(l[e][0]),style:{verticalAlign:"middle",width:"32px",margin:"0px",imageRendering:"pixelated"}})}),(0,r.jsx)(i.XI.Cell,{children:e})]},e)})})})})]})},u=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.current_appearance,c=l.preview_appearance;return(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsxs)(i.wn,{title:"Current PDA",children:[(0,r.jsx)("img",{src:"data:image/jpeg;base64,".concat(a),style:{verticalAlign:"middle",width:"160px",margin:"0px",imageRendering:"pixelated"}}),(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){return t("eject_pda")}}),(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){return t("paint_pda")}})]}),(0,r.jsx)(i.wn,{title:"Preview",children:(0,r.jsx)("img",{src:"data:image/jpeg;base64,".concat(c),style:{verticalAlign:"middle",width:"160px",margin:"0px",imageRendering:"pixelated"}})})]})}},6144:function(e,n,t){"use strict";t.r(n),t.d(n,{PersonalCrafting:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,u=a.busy,d=a.category,f=a.display_craftable_only,h=a.display_compact,m=a.prev_cat,p=a.next_cat,x=a.subcategory,g=a.prev_subcat,j=a.next_subcat;return(0,r.jsx)(l.p8,{width:700,height:800,children:(0,r.jsxs)(l.p8.Content,{scrollable:!0,children:[!!u&&(0,r.jsxs)(i.Rr,{fontSize:"32px",children:[(0,r.jsx)(i.In,{name:"cog",spin:1})," Crafting..."]}),(0,r.jsxs)(i.wn,{title:d,buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{content:"Show Craftable Only",icon:f?"check-square-o":"square-o",selected:f,onClick:function(){return t("toggle_recipes")}}),(0,r.jsx)(i.$n,{content:"Compact Mode",icon:h?"check-square-o":"square-o",selected:h,onClick:function(){return t("toggle_compact")}})]}),children:[(0,r.jsxs)(i.az,{children:[(0,r.jsx)(i.$n,{content:m,icon:"arrow-left",onClick:function(){return t("backwardCat")}}),(0,r.jsx)(i.$n,{content:p,icon:"arrow-right",onClick:function(){return t("forwardCat")}})]}),x&&(0,r.jsxs)(i.az,{children:[(0,r.jsx)(i.$n,{content:g,icon:"arrow-left",onClick:function(){return t("backwardSubCat")}}),(0,r.jsx)(i.$n,{content:j,icon:"arrow-right",onClick:function(){return t("forwardSubCat")}})]}),h?(0,r.jsx)(c,{}):(0,r.jsx)(s,{})]})]})})},c=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.display_craftable_only,c=l.can_craft,s=l.cant_craft;return(0,r.jsx)(i.az,{mt:1,children:(0,r.jsxs)(i.Ki,{children:[c.map(function(e){return(0,r.jsxs)(i.Ki.Item,{label:e.name,children:[(0,r.jsx)(i.$n,{icon:"hammer",content:"Craft",onClick:function(){return t("make",{make:e.ref})}}),e.catalyst_text&&(0,r.jsx)(i.$n,{tooltip:e.catalyst_text,content:"Catalysts",color:"transparent"}),(0,r.jsx)(i.$n,{tooltip:e.req_text,content:"Requirements",color:"transparent"}),e.tool_text&&(0,r.jsx)(i.$n,{tooltip:e.tool_text,content:"Tools",color:"transparent"})]},e.name)}),!a&&s.map(function(e){return(0,r.jsxs)(i.Ki.Item,{label:e.name,children:[(0,r.jsx)(i.$n,{icon:"hammer",content:"Craft",disabled:!0}),e.catalyst_text&&(0,r.jsx)(i.$n,{tooltip:e.catalyst_text,content:"Catalysts",color:"transparent"}),(0,r.jsx)(i.$n,{tooltip:e.req_text,content:"Requirements",color:"transparent"}),e.tool_text&&(0,r.jsx)(i.$n,{tooltip:e.tool_text,content:"Tools",color:"transparent"})]},e.name)})]})})},s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.display_craftable_only,c=l.can_craft,s=l.cant_craft;return(0,r.jsxs)(i.az,{mt:1,children:[c.map(function(e){return(0,r.jsx)(i.wn,{title:e.name,buttons:(0,r.jsx)(i.$n,{icon:"hammer",content:"Craft",onClick:function(){return t("make",{make:e.ref})}}),children:(0,r.jsxs)(i.Ki,{children:[e.catalyst_text&&(0,r.jsx)(i.Ki.Item,{label:"Catalysts",children:e.catalyst_text}),(0,r.jsx)(i.Ki.Item,{label:"Requirements",children:e.req_text}),e.tool_text&&(0,r.jsx)(i.Ki.Item,{label:"Tools",children:e.tool_text})]})},e.name)}),!a&&s.map(function(e){return(0,r.jsx)(i.wn,{title:e.name,buttons:(0,r.jsx)(i.$n,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,r.jsxs)(i.Ki,{children:[e.catalyst_text&&(0,r.jsx)(i.Ki.Item,{label:"Catalysts",children:e.catalyst_text}),(0,r.jsx)(i.Ki.Item,{label:"Requirements",children:e.req_text}),e.tool_text&&(0,r.jsx)(i.Ki.Item,{label:"Tools",children:e.tool_text})]})},e.name)})]})}},2327:function(e,n,t){"use strict";t.r(n),t.d(n,{Photocopier:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data;return(0,r.jsx)(l.p8,{width:400,height:440,children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsxs)(i.wn,{title:"Photocopier",color:"silver",children:[(0,r.jsxs)(i.BJ,{mb:1,children:[(0,r.jsx)(i.BJ.Item,{width:12,children:"Copies:"}),(0,r.jsx)(i.BJ.Item,{width:"2em",bold:!0,children:a.copynumber}),(0,r.jsxs)(i.BJ.Item,{style:{float:"right"},children:[(0,r.jsx)(i.$n,{icon:"minus",textAlign:"center",content:"",onClick:function(){return t("minus")}}),(0,r.jsx)(i.$n,{icon:"plus",textAlign:"center",content:"",onClick:function(){return t("add")}})]})]}),(0,r.jsxs)(i.BJ,{mb:2,children:[(0,r.jsx)(i.BJ.Item,{width:12,children:"Toner:"}),(0,r.jsx)(i.BJ.Item,{bold:!0,children:a.toner})]}),(0,r.jsxs)(i.BJ,{mb:1,children:[(0,r.jsx)(i.BJ.Item,{width:12,children:"Inserted Document:"}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",disabled:!a.copyitem&&!a.mob,content:a.copyitem?a.copyitem:a.mob?a.mob+"'s ass!":"document",onClick:function(){return t("removedocument")}})})]}),(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{width:12,children:"Inserted Folder:"}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",disabled:!a.folder,content:a.folder?a.folder:"folder",onClick:function(){return t("removefolder")}})})]})]}),(0,r.jsx)(i.wn,{children:(0,r.jsx)(c,{})}),(0,r.jsx)(s,{})]})})})},c=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.issilicon;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{fluid:!0,icon:"copy",textAlign:"center",content:"Copy",onClick:function(){return t("copy")}}),(0,r.jsx)(i.$n,{fluid:!0,icon:"file-import",textAlign:"center",content:"Scan",onClick:function(){return t("scandocument")}}),!!l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{fluid:!0,icon:"file",color:"green",textAlign:"center",content:"Print Text",onClick:function(){return t("ai_text")}}),(0,r.jsx)(i.$n,{fluid:!0,icon:"image",color:"green",textAlign:"center",content:"Print Image",onClick:function(){return t("ai_pic")}})]})]})},s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data;return(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Scanned Files",children:l.files.map(function(e){return(0,r.jsx)(i.wn,{title:e.name,buttons:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.$n,{icon:"print",content:"Print",disabled:l.toner<=0,onClick:function(){return t("filecopy",{uid:e.uid})}}),(0,r.jsx)(i.$n.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){return t("deletefile",{uid:e.uid})}})]})},e.name)})})}},7331:function(e,n,t){"use strict";t.r(n),t.d(n,{PoolController:()=>u});var r=t(8138),i=t(7790),o=t(2864),l=t(3384);function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var c={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},s=function(e){var n,t,l=e.tempKey,a=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["tempKey"]),s=c[l];if(!s)return null;var u=(0,o.Oc)(),d=u.data,f=u.act,h=d.currentTemp,m=s.label,p=s.icon;return(0,r.jsxs)(i.$n,(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({color:"transparent",selected:l===h,onClick:function(){f("setTemp",{temp:l})}},a),t=t={children:[(0,r.jsx)(i.In,{name:p}),m]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))},u=function(e){var n=(0,o.Oc)().data,t=n.emagged,u=c[n.currentTemp]||c.normal,d=u.label,f=u.color,h=[],m=!0,p=!1,x=void 0;try{for(var g,j=Object.entries(c)[Symbol.iterator]();!(m=(g=j.next()).done);m=!0){var b,y=(b=g.value,function(e){if(Array.isArray(e))return e}(b)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(b,2)||function(e,n){if(e){if("string"==typeof e)return a(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,2)}}(b,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=y[0],w=y[1].requireEmag;(!w||w&&t)&&h.push(v)}}catch(e){p=!0,x=e}finally{try{m||null==j.return||j.return()}finally{if(p)throw x}}return(0,r.jsx)(l.p8,{width:350,height:285,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.wn,{title:"Status",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Current Temperature",children:(0,r.jsx)(i.az,{color:f,children:d})}),(0,r.jsx)(i.Ki.Item,{label:"Safety Status",children:t?(0,r.jsx)(i.az,{color:"red",children:"WARNING: OVERRIDDEN"}):(0,r.jsx)(i.az,{color:"good",children:"Nominal"})})]})}),(0,r.jsx)(i.wn,{fill:!0,title:"Temperature Selection",children:(0,r.jsx)(i.BJ.Item,{children:h.map(function(e){return(0,r.jsx)(s,{fluid:!0,tempKey:e},e)})})})]})})})}},5562:function(e,n,t){"use strict";t.r(n),t.d(n,{PortablePump:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=(n.act,n.data).has_holding_tank;return(0,r.jsx)(l.p8,{width:435,height:330,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(c,{}),(0,r.jsx)(s,{}),t?(0,r.jsx)(u,{}):(0,r.jsx)(i.wn,{fill:!0,title:"Holding Tank",children:(0,r.jsx)(i.az,{color:"average",bold:1,textAlign:"center",mt:2.5,children:"No Holding Tank Inserted."})})]})})})},c=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.on,c=l.direction,s=l.port_connected;return(0,r.jsx)(i.wn,{title:"Pump Settings",buttons:(0,r.jsx)(i.$n,{width:4,icon:"power-off",content:a?"On":"Off",color:a?null:"red",selected:a,onClick:function(){return t("power")}}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Pump Direction",children:(0,r.jsxs)(i.az,{children:[(0,r.jsx)(i.$n,{width:4,icon:"sign-in-alt",content:"In",selected:!c,onClick:function(){return t("set_direction",{direction:0})}}),(0,r.jsx)(i.$n,{width:4,icon:"sign-out-alt",content:"Out",selected:c,onClick:function(){return t("set_direction",{direction:1})}})]})}),(0,r.jsx)(i.Ki.Item,{label:"Port status",children:(0,r.jsx)(i.az,{color:s?"green":"average",bold:1,ml:.5,children:s?"Connected":"Disconnected"})})]})})},s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.tank_pressure,c=l.target_pressure,s=l.max_target_pressure,u=.7*s,d=.25*s;return(0,r.jsxs)(i.wn,{title:"Pressure Settings",children:[(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Stored pressure",children:(0,r.jsxs)(i.z2,{value:a,minValue:0,maxValue:s,ranges:{good:[u,1/0],average:[d,u],bad:[-1/0,d]},children:[a," kPa"]})})}),(0,r.jsxs)(i.BJ,{mt:1,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,color:"label",mt:.3,children:"Target pressure:"}),(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.$n,{icon:"undo",mr:.5,width:2.2,textAlign:"center",onClick:function(){return t("set_pressure",{pressure:101.325})}}),(0,r.jsx)(i.$n,{icon:"fast-backward",mr:.5,width:2.2,textAlign:"center",onClick:function(){return t("set_pressure",{pressure:0})}})]}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.Ap,{animated:!0,unit:"kPa",width:16.5,stepPixelSize:.22,minValue:0,maxValue:s,value:c,onChange:function(e,n){return t("set_pressure",{pressure:n})}})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"fast-forward",ml:.5,width:2.2,textAlign:"center",onClick:function(){return t("set_pressure",{pressure:s})}})})]})]})},u=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.holding_tank,c=l.max_target_pressure,s=.7*c,u=.25*c;return(0,r.jsxs)(i.wn,{fill:!0,title:"Holding Tank",buttons:(0,r.jsx)(i.$n,{onClick:function(){return t("remove_tank")},icon:"eject",children:"Eject"}),children:[(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{color:"label",children:"Tank Label:"}),(0,r.jsx)(i.BJ.Item,{color:"silver",ml:4.5,children:a.name})]}),(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{color:"label",mt:2,children:"Tank Pressure:"}),(0,r.jsx)(i.BJ.Item,{grow:!0,mt:1.5,children:(0,r.jsxs)(i.z2,{value:a.tank_pressure,minValue:0,maxValue:c,ranges:{good:[s,1/0],average:[u,s],bad:[-1/0,u]},children:[a.tank_pressure," kPa"]})})]})]})}},7920:function(e,n,t){"use strict";t.r(n),t.d(n,{PortableScrubber:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=(n.act,n.data).has_holding_tank;return(0,r.jsx)(l.p8,{width:435,height:300,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(c,{}),(0,r.jsx)(s,{}),t?(0,r.jsx)(u,{}):(0,r.jsx)(i.wn,{fill:!0,title:"Holding Tank",children:(0,r.jsx)(i.az,{color:"average",bold:1,textAlign:"center",mt:2.5,children:"No Holding Tank Inserted."})})]})})})},c=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.on,c=l.port_connected;return(0,r.jsx)(i.wn,{title:"Pump Settings",buttons:(0,r.jsx)(i.$n,{width:4,icon:"power-off",content:a?"On":"Off",color:a?null:"red",selected:a,onClick:function(){return t("power")}}),children:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{color:"label",children:"Port Status:"}),(0,r.jsx)(i.BJ.Item,{color:c?"green":"average",bold:1,ml:6,children:c?"Connected":"Disconnected"})]})})},s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.tank_pressure,c=l.rate,s=l.max_rate,u=.7*s,d=.25*s;return(0,r.jsxs)(i.wn,{title:"Pressure Settings",children:[(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Stored pressure",children:(0,r.jsxs)(i.z2,{value:a,minValue:0,maxValue:s,ranges:{good:[u,1/0],average:[d,u],bad:[-1/0,d]},children:[a," kPa"]})})}),(0,r.jsxs)(i.BJ,{mt:1,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,color:"label",mt:.3,children:"Target pressure:"}),(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.$n,{icon:"undo",mr:.5,width:2.2,textAlign:"center",onClick:function(){return t("set_rate",{rate:101.325})}}),(0,r.jsx)(i.$n,{icon:"fast-backward",mr:.5,width:2.2,textAlign:"center",onClick:function(){return t("set_rate",{rate:0})}})]}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.Ap,{animated:!0,unit:"kPa",width:16.5,stepPixelSize:.22,minValue:0,maxValue:s,value:c,onChange:function(e,n){return t("set_rate",{rate:n})}})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"fast-forward",ml:.5,width:2.2,textAlign:"center",onClick:function(){return t("set_rate",{rate:s})}})})]})]})},u=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.holding_tank,c=l.max_rate,s=.7*c,u=.25*c;return(0,r.jsxs)(i.wn,{fill:!0,title:"Holding Tank",buttons:(0,r.jsx)(i.$n,{onClick:function(){return t("remove_tank")},icon:"eject",children:"Eject"}),children:[(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{color:"label",children:"Tank Label:"}),(0,r.jsx)(i.BJ.Item,{color:"silver",ml:4.5,children:a.name})]}),(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{color:"label",mt:2,children:"Tank Pressure:"}),(0,r.jsx)(i.BJ.Item,{grow:!0,mt:1.5,children:(0,r.jsxs)(i.z2,{value:a.tank_pressure,minValue:0,maxValue:c,ranges:{good:[s,1/0],average:[u,s],bad:[-1/0,u]},children:[a.tank_pressure," kPa"]})})]})]})}},2854:function(e,n,t){"use strict";t.r(n),t.d(n,{PortableTurret:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(2723),c=function(e){var n=(0,o.Oc)(),t=n.act,c=n.data,s=c.locked,u=c.on,d=c.lethal,f=c.lethal_is_configurable,h=c.targetting_is_configurable,m=c.check_weapons,p=c.neutralize_noaccess,x=c.access_is_configurable,g=c.regions,j=c.selectedAccess,b=c.one_access,y=c.neutralize_norecord,v=c.neutralize_criminals,w=c.neutralize_all,k=c.neutralize_unidentified,_=c.neutralize_cyborgs;return(0,r.jsx)(l.p8,{width:475,height:750,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsxs)(i.IC,{children:["Swipe an ID card to ",s?"unlock":"lock"," this interface."]}),(0,r.jsx)(i.BJ.Item,{m:0,children:(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Status",children:(0,r.jsx)(i.$n,{icon:u?"power-off":"times",content:u?"On":"Off",selected:u,disabled:s,onClick:function(){return t("power")}})}),!!f&&(0,r.jsx)(i.Ki.Item,{label:"Lethals",children:(0,r.jsx)(i.$n,{icon:d?"exclamation-triangle":"times",content:d?"On":"Off",color:d?"bad":"",disabled:s,onClick:function(){return t("lethal")}})}),!!x&&(0,r.jsx)(i.Ki.Item,{label:"One Access Mode",children:(0,r.jsx)(i.$n,{icon:b?"address-card":"exclamation-triangle",content:b?"On":"Off",selected:b,disabled:s,onClick:function(){return t("one_access")}})})]})})}),!!h&&(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsxs)(i.wn,{title:"Humanoid Targets",children:[(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:v,content:"Wanted Criminals",disabled:s,onClick:function(){return t("autharrest")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:y,content:"No Sec Record",disabled:s,onClick:function(){return t("authnorecord")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:m,content:"Unauthorized Weapons",disabled:s,onClick:function(){return t("authweapon")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:p,content:"Unauthorized Access",disabled:s,onClick:function(){return t("authaccess")}})]}),(0,r.jsxs)(i.wn,{title:"Other Targets",children:[(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:k,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:s,onClick:function(){return t("authxeno")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:_,content:"Cyborgs",disabled:s,onClick:function(){return t("authborgs")}}),(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:w,content:"All Non-Synthetics",disabled:s,onClick:function(){return t("authsynth")}})]})]}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:!!x&&(0,r.jsx)(a.AccessList,{accesses:g,selectedList:j,accessMod:function(e){return t("set",{access:e})},grantAll:function(){return t("grant_all")},denyAll:function(){return t("clear_all")},grantDep:function(e){return t("grant_region",{region:e})},denyDep:function(e){return t("deny_region",{region:e})}})})]})})})}},1784:function(e,n,t){"use strict";t.r(n),t.d(n,{PowerMonitor:()=>m,PowerMonitorMainContent:()=>p});var r=t(8138),i=t(8587),o=t(4530),l=t(7790),a=t(6859),c=t(3268),s=t(2864),u=t(3384);function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,n){if(e){if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,n)}}var m=function(e){return(0,r.jsx)(u.p8,{width:600,height:650,children:(0,r.jsx)(u.p8.Content,{scrollable:!0,children:(0,r.jsx)(p,{})})})},p=function(e){var n=(0,s.Oc)(),t=(n.act,n.data),i=t.powermonitor,o=t.select_monitor;return(0,r.jsxs)(l.az,{m:0,children:[!i&&o&&(0,r.jsx)(x,{}),i&&(0,r.jsx)(g,{})]})},x=function(e){var n=(0,s.Oc)(),t=n.act,i=n.data.powermonitors;return(0,r.jsx)(l.wn,{title:"Select Power Monitor",children:i.map(function(e){return(0,r.jsx)(l.az,{children:(0,r.jsx)(l.$n,{content:e.Area,icon:"arrow-right",onClick:function(){return t("selectmonitor",{selectmonitor:e.uid})}})},e.uid)})})},g=function(e){var n=(0,s.Oc)(),t=n.act,u=n.data,d=u.powermonitor,m=u.history,p=u.apcs,x=u.select_monitor;if(u.no_powernet)y=(0,r.jsxs)(l.az,{color:"bad",textAlign:"center",children:[(0,r.jsx)(l.In,{name:"exclamation-triangle",size:2,my:"0.5rem"}),(0,r.jsx)("br",{}),"Warning: The monitor is not connected to power grid via cable!"]});else{var g,y,v,w=(g=(0,o.useState)("name"),function(e){if(Array.isArray(e))return e}(g)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(g,2)||h(g,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),k=w[0],_=w[1],C=m.supply[m.supply.length-1]||0,I=m.demand[m.demand.length-1]||0,S=m.supply.map(function(e,n){return[n,e]}),O=m.demand.map(function(e,n){return[n,e]}),A=(v=Math).max.apply(v,[6e5].concat(f(m.supply),f(m.demand))),P=p.map(function(e,n){var t,r;return t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({},e),r=r={id:e.Name+n},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t});switch(k){case"name":P=(0,i.Ul)(P,function(e){return e.Name});break;case"charge":P=(0,i.Ul)(P,function(e){return-e.CellPct});break;case"draw":P=(0,i.Ul)(P,function(e){return-e.Load})}y=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.so,{spacing:1,children:[(0,r.jsx)(l.so.Item,{width:"200px",children:(0,r.jsx)(l.wn,{children:(0,r.jsxs)(l.Ki,{children:[(0,r.jsx)(l.Ki.Item,{label:"Supply",children:(0,r.jsx)(l.z2,{value:C,minValue:0,maxValue:A,color:"green",children:(0,a.Mg)(C/1e3)+" kW"})}),(0,r.jsx)(l.Ki.Item,{label:"Draw",children:(0,r.jsx)(l.z2,{value:I,minValue:0,maxValue:A,color:"red",children:(0,a.Mg)(I/1e3)+" kW"})})]})})}),(0,r.jsx)(l.so.Item,{grow:1,children:(0,r.jsxs)(l.wn,{fill:!0,ml:1,children:[(0,r.jsx)(l.t1.Line,{fillPositionedParent:!0,data:S,rangeX:[0,S.length-1],rangeY:[0,A],strokeColor:"rgba(32, 177, 66, 1)",fillColor:"rgba(32, 177, 66, 0.25)"}),(0,r.jsx)(l.t1.Line,{fillPositionedParent:!0,data:O,rangeX:[0,O.length-1],rangeY:[0,A],strokeColor:"rgba(219, 40, 40, 1)",fillColor:"rgba(219, 40, 40, 0.25)"})]})})]}),(0,r.jsxs)(l.az,{mb:1,children:[(0,r.jsx)(l.az,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,r.jsx)(l.$n.Checkbox,{checked:"name"===k,content:"Name",onClick:function(){return _("name")}}),(0,r.jsx)(l.$n.Checkbox,{checked:"charge"===k,content:"Charge",onClick:function(){return _("charge")}}),(0,r.jsx)(l.$n.Checkbox,{checked:"draw"===k,content:"Draw",onClick:function(){return _("draw")}})]}),(0,r.jsxs)(l.XI,{children:[(0,r.jsxs)(l.XI.Row,{header:!0,children:[(0,r.jsx)(l.XI.Cell,{children:"Area"}),(0,r.jsx)(l.XI.Cell,{collapsing:!0,children:"Charge"}),(0,r.jsx)(l.XI.Cell,{textAlign:"right",children:"Draw"}),(0,r.jsx)(l.XI.Cell,{collapsing:!0,children:(0,r.jsx)(l.m_,{content:"Equipment",children:"Eqp"})}),(0,r.jsx)(l.XI.Cell,{collapsing:!0,children:(0,r.jsx)(l.m_,{content:"Lighting",children:"Lgt"})}),(0,r.jsx)(l.XI.Cell,{collapsing:!0,children:(0,r.jsx)(l.m_,{content:"Environment",children:"Env"})})]}),(0,i.Tj)(P,function(e,n){return(0,r.jsxs)(l.XI.Row,{className:"Table__row candystripe",children:[(0,r.jsx)(l.XI.Cell,{children:(0,c.jT)(e.Name)}),(0,r.jsx)(l.XI.Cell,{className:"Table__cell text-right text-nowrap",children:(0,r.jsx)(j,{charging:e.CellStatus,charge:e.CellPct})}),(0,r.jsx)(l.XI.Cell,{className:"Table__cell text-right text-nowrap",children:e.Load}),(0,r.jsx)(l.XI.Cell,{className:"Table__cell text-center text-nowrap",children:(0,r.jsx)(b,{status:e.Equipment})}),(0,r.jsx)(l.XI.Cell,{className:"Table__cell text-center text-nowrap",children:(0,r.jsx)(b,{status:e.Lights})}),(0,r.jsx)(l.XI.Cell,{className:"Table__cell text-center text-nowrap",children:(0,r.jsx)(b,{status:e.Environment})})]},e.id)})]})]})}return(0,r.jsx)(l.wn,{title:d,buttons:(0,r.jsx)(l.az,{m:0,children:x&&(0,r.jsx)(l.$n,{content:"Back",icon:"arrow-up",onClick:function(){return t("return")}})}),children:y})},j=function(e){var n=e.charging,t=e.charge,i="";switch(t){case"N":i=t>50?"battery-half":"battery-quarter";break;case"C":i="bolt";break;case"F":i="battery-full";break;case"M":i="slash"}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.In,{width:"18px",textAlign:"center",name:i,color:"N"===n&&(t>50?"yellow":"red")||"C"===n&&"yellow"||"F"===n&&"green"||"M"===n&&"orange"}),(0,r.jsx)(l.az,{inline:!0,width:"36px",textAlign:"right",children:(0,a.Mg)(t)+"%"})]})},b=function(e){switch(e.status){case"AOn":n=!0,t=!0;break;case"AOff":n=!0,t=!1;break;case"On":n=!1,t=!0;break;case"Off":n=!1,t=!1}var n,t,i=(t?"On":"Off")+" [".concat(n?"auto":"manual","]");return(0,r.jsx)(l.m_,{content:i,children:(0,r.jsx)(l.BK,{color:t?"good":"bad",content:n?void 0:"M"})})}},8011:function(e,n,t){"use strict";t.r(n),t.d(n,{PrisonerImplantManager:()=>u});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(4744),c=t(7352),s=t(736),u=function(e){var n=(0,o.Oc)(),t=n.act,u=n.data,d=u.loginState,f=u.prisonerInfo,h=u.chemicalInfo,m=u.trackingInfo;if(!d.logged_in)return(0,r.jsx)(l.p8,{theme:"security",width:500,height:850,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(s.LoginScreen,{})})});var p=[1,5,10];return(0,r.jsxs)(l.p8,{theme:"security",width:500,height:850,children:[(0,r.jsx)(a.ComplexModal,{}),(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(c.LoginInfo,{}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Prisoner",children:(0,r.jsx)(i.$n,{icon:f.name?"eject":"id-card",selected:f.name,content:f.name?f.name:"-----",tooltip:f.name?"Eject ID":"Insert ID",onClick:function(){return t("id_card")}})}),(0,r.jsxs)(i.Ki.Item,{label:"Points",children:[null!==f.points?f.points:"-/-",(0,r.jsx)(i.$n,{ml:2,icon:"minus-square",disabled:null===f.points,content:"Reset",onClick:function(){return t("reset_points")}})]}),(0,r.jsxs)(i.Ki.Item,{label:"Point Goal",children:[null!==f.goal?f.goal:"-/-",(0,r.jsx)(i.$n,{ml:2,icon:"pen",disabled:null===f.goal,content:"Edit",onClick:function(){return(0,a.modalOpen)("set_points")}})]}),(0,r.jsx)(i.Ki.Item,{children:(0,r.jsxs)("box",{hidden:null===f.goal,children:["1 minute of prison time should roughly equate to 150 points.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Sentences should not exceed 5000 points.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Permanent prisoners should not be given a point goal.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle."]})})]})})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Tracking Implants",children:m.map(function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.az,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,r.jsxs)(i.az,{bold:!0,children:["Subject: ",e.subject]}),(0,r.jsxs)(i.az,{children:[" ",(0,r.jsx)("br",{}),(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Location",children:e.location}),(0,r.jsx)(i.Ki.Item,{label:"Health",children:e.health}),(0,r.jsx)(i.Ki.Item,{label:"Prisoner",children:(0,r.jsx)(i.$n,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){return(0,a.modalOpen)("warn",{uid:e.uid})}})})]})]},e.subject)]}),(0,r.jsx)("br",{})]})})})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Chemical Implants",children:h.map(function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.az,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,r.jsxs)(i.az,{bold:!0,children:["Subject: ",e.name]}),(0,r.jsxs)(i.az,{children:[" ",(0,r.jsx)("br",{}),(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Remaining Reagents",children:e.volume})}),p.map(function(n){return(0,r.jsx)(i.$n,{mt:2,disabled:e.volume<n,icon:"syringe",content:"Inject ".concat(n,"u"),onClick:function(){return t("inject",{uid:e.uid,amount:n})}},n)})]},e.name)]}),(0,r.jsx)("br",{})]})})})})]})})]})}},2479:function(e,n,t){"use strict";t.r(n),t.d(n,{PrisonerShuttleConsole:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.can_go_home,s=a.emagged,u=a.id_inserted,d=a.id_name,f=a.id_points,h=a.id_goal,m=+!s,p=c?"Completed!":"Insufficient";s&&(p="ERR0R");var x="No ID inserted";return u?x=(0,r.jsx)(i.z2,{value:f/h,ranges:{good:[m,1/0],bad:[-1/0,m]},children:f+" / "+h+" "+p}):s&&(x="ERR0R COMPLETED?!@"),(0,r.jsx)(l.p8,{width:315,height:150,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Status",children:x}),(0,r.jsx)(i.Ki.Item,{label:"Shuttle controls",children:(0,r.jsx)(i.$n,{fluid:!0,content:"Move shuttle",disabled:!c,onClick:function(){return t("move_shuttle")}})}),(0,r.jsx)(i.Ki.Item,{label:"Inserted ID",children:(0,r.jsx)(i.$n,{fluid:!0,content:u?d:"-------------",onClick:function(){return t("handle_id")}})})]})})})}},9083:function(e,n,t){"use strict";t.r(n),t.d(n,{PrizeCounter:()=>u});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data,u=c.tickets,d=c.prizes,f=s((0,i.useState)(""),2),h=f[0],m=f[1],p=s((0,i.useState)(!1),2),x=p[0],g=p[1],j=(void 0===d?[]:d).filter(function(e){return e.name.toLowerCase().includes(h.toLowerCase())});return(0,r.jsx)(a.p8,{width:450,height:585,title:"Arcade Ticket Exchange",children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsx)(o.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"Available Prizes",buttons:(0,r.jsxs)(o.BJ,{children:[x&&(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.pd,{mt:.1,width:12.5,placeholder:"Search for a prize",value:h,onChange:function(e){return m(e)}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.$n,{fluid:!0,iconPosition:"right",icon:"ticket",disabled:!u,onClick:function(){return t("eject")},children:["Tickets: ",(0,r.jsx)("b",{children:u})]})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{icon:"search",tooltip:"Toggle search",tooltipPosition:"bottom-end",selected:x,onClick:function(){return g(!x)}})})]}),children:j.map(function(e){var n=e.cost>u;return(0,r.jsx)(o.c_,{fluid:!0,title:e.name,dmIcon:e.icon,dmIconState:e.icon_state,buttonsAlt:(0,r.jsxs)(o.$n,{bold:!0,fontSize:1.5,tooltip:n&&"Not enough tickets",disabled:n,onClick:function(){return t("purchase",{purchase:e.itemID})},children:[e.cost,(0,r.jsx)(o.In,{m:0,mt:.25,name:"ticket",color:n?"bad":"good",size:1.6})]}),children:e.desc},e.name)})})})})})})}},7692:function(e,n,t){"use strict";t.r(n),t.d(n,{QuirkMenu:()=>d});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,n)}}var u=function(e,n){var t=new Set(e);return n.reduce(function(e,n){return t.has(n.name)?e+(n.cost<0?Math.abs(n.cost):-n.cost):e},0)},d=function(){var e,n=(0,l.Oc)(),t=n.act,d=n.data,f=(e=(0,i.useState)(d.selected_quirks),function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,2)||s(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=f[0],m=f[1];(0,i.useEffect)(function(){return m(d.selected_quirks)},[d.selected_quirks]);var p=new Set(h),x=u(h,d.all_quirks),g=function(e){return e.cost<=0||x>=e.cost},j=function(e){var n=p.has(e.name);if(n){var r=u(h.filter(function(n){return n!==e.name}),d.all_quirks);if(e.cost<0&&r<0)return}else if(e.cost>0&&!g(e))return;m(n?h.filter(function(n){return n!==e.name}):((function(e){if(Array.isArray(e))return c(e)})(h)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(h)||s(h)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e.name])),t(n?"remove_quirk":"add_quirk",{path:e.path})},b=function(e,n,t,i){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.az,{p:.5,mb:1,color:t,style:{border:"1px solid ".concat(t),backgroundColor:"rgba(".concat("green"===t?"0,128,0":"255,0,0",",0.1)")},children:[(0,r.jsx)(o.In,{name:i})," ",n]}),e.map(function(e){var n=p.has(e.name),t=e.cost>0?"-".concat(e.cost):"+".concat(Math.abs(e.cost)),i=e.cost>0?"bad":"good",l=!1,a=n?"Remove":"Select",c=n?"bad":"good";if(n){var s=u(h.filter(function(n){return n!==e.name}),d.all_quirks);e.cost<0&&s<0&&(l=!0,a="Locked (Balance)",c="average")}else e.cost>0&&!g(e)&&(l=!0,a="Locked",c="average");return(0,r.jsx)(o.wn,{title:e.name,mb:1,buttons:(0,r.jsx)(o.$n,{color:c,content:a,disabled:l,onClick:function(){return j(e)},fluid:!0}),children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Description",children:e.desc}),(0,r.jsx)(o.Ki.Item,{label:"Effect",children:(0,r.jsx)(o.az,{color:i,bold:!0,children:t})})]})},e.name)})]})};return(0,r.jsx)(a.p8,{width:750,height:550,theme:"ntos",children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsxs)(o.BJ,{fill:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,basis:500,children:(0,r.jsx)(o.wn,{title:"Available Quirks",fill:!0,scrollable:!0,children:(0,r.jsxs)(o.BJ,{vertical:!0,children:[b(d.all_quirks.filter(function(e){return e.cost<0}),"Negative Quirks (Add Points)","green","minus-circle"),b(d.all_quirks.filter(function(e){return e.cost>0}),"Positive Quirks (Cost Points)","bad","plus-circle")]})})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.cG,{vertical:!0})}),(0,r.jsx)(o.BJ.Item,{basis:250,children:(0,r.jsxs)(o.BJ,{vertical:!0,fill:!0,children:[(0,r.jsx)(o.wn,{title:"Balance",children:(0,r.jsx)(o.az,{bold:!0,color:x>=0?"good":"bad",fontSize:"18px",children:x})}),(0,r.jsx)(o.wn,{title:"Selected Quirks",fill:!0,scrollable:!0,children:h.length?h.map(function(e){var n=d.all_quirks.find(function(n){return n.name===e});if(!n)return null;var t=n.cost>0?"-".concat(n.cost):"+".concat(Math.abs(n.cost)),i=n.cost>0?"var(--color-bad)":"var(--color-good)";return(0,r.jsx)(o.az,{mb:.5,p:.5,style:{borderLeft:"3px solid ".concat(i)},children:(0,r.jsxs)(o.BJ,{justify:"space-between",children:[(0,r.jsx)(o.az,{bold:!0,children:e}),(0,r.jsx)(o.az,{children:t})]})},e)}):(0,r.jsx)(o.az,{italic:!0,children:"No quirks selected."})})]})})]})})})}},7076:function(e,n,t){"use strict";t.r(n),t.d(n,{RCD:()=>s});var r=t(8138);t(4530);var i=t(7790),o=t(2864),l=t(3384),a=t(2723),c=t(4744),s=function(){return(0,r.jsxs)(l.p8,{width:480,height:670,children:[(0,r.jsx)(c.ComplexModal,{}),(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(u,{}),(0,r.jsx)(d,{}),(0,r.jsx)(h,{}),(0,r.jsx)(m,{})]})})]})},u=function(){var e=(0,o.Oc)().data,n=e.matter,t=e.max_matter,l=.7*t,a=.25*t;return(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Matter Storage",children:(0,r.jsx)(i.z2,{ranges:{good:[l,1/0],average:[a,l],bad:[-1/0,a]},value:n,maxValue:t,children:(0,r.jsx)(i.BJ.Item,{textAlign:"center",children:"".concat(n," / ").concat(t," units")})})})})},d=function(){return(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Construction Type",children:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(f,{mode_type:"Floors and Walls"}),(0,r.jsx)(f,{mode_type:"Airlocks"}),(0,r.jsx)(f,{mode_type:"Windows"}),(0,r.jsx)(f,{mode_type:"Deconstruction"})]})})})},f=function(e){var n=e.mode_type,t=(0,o.Oc)(),l=t.act,a=t.data.mode;return(0,r.jsx)(i.BJ.Item,{grow:!0,textAlign:"center",children:(0,r.jsx)(i.$n,{fluid:!0,color:"transparent",content:n,selected:+(a===n),onClick:function(){return l("mode",{mode:n})}})})},h=function(){var e=(0,o.Oc)(),n=e.act,t=e.data,l=t.door_name,a=t.electrochromic,s=t.airlock_glass;return(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Airlock Settings",children:(0,r.jsxs)(i.BJ,{textAlign:"center",children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.$n,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,r.jsxs)(r.Fragment,{children:["Rename: ",(0,r.jsx)("b",{children:l})]}),onClick:function(){return(0,c.modalOpen)("renameAirlock")}})}),(0,r.jsx)(i.BJ.Item,{children:1===s&&(0,r.jsx)(i.$n,{fluid:!0,icon:a?"toggle-on":"toggle-off",content:"Electrochromic",selected:a,onClick:function(){return n("electrochromic")}})})]})})})},m=function(){var e=(0,o.Oc)(),n=e.act,t=e.data,l=t.tab,c=t.locked,s=t.one_access,u=t.selected_accesses,d=t.regions;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.BJ.Item,{textAlign:"center",children:(0,r.jsxs)(i.tU,{fluid:!0,children:[(0,r.jsx)(i.tU.Tab,{icon:"cog",selected:1===l,onClick:function(){return n("set_tab",{tab:1})},children:"Airlock Types"}),(0,r.jsx)(i.tU.Tab,{selected:2===l,icon:"list",onClick:function(){return n("set_tab",{tab:2})},children:"Airlock Access"})]})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:1===l?(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Types",children:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(p,{check_number:0})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(p,{check_number:1})})]})}):2===l&&c?(0,r.jsx)(i.wn,{fill:!0,title:"Access",buttons:(0,r.jsx)(i.$n,{icon:"lock-open",content:"Unlock",onClick:function(){return n("set_lock",{new_lock:"unlock"})}}),children:(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,r.jsx)(i.In,{name:"lock",size:5,mb:3}),(0,r.jsx)("br",{}),"Airlock access selection is currently locked."]})})}):(0,r.jsx)(a.AccessList,{sectionButtons:(0,r.jsx)(i.$n,{icon:"lock",content:"Lock",onClick:function(){return n("set_lock",{new_lock:"lock"})}}),usedByRcd:1,rcdButtons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n.Checkbox,{checked:s,content:"One",onClick:function(){return n("set_one_access",{access:"one"})}}),(0,r.jsx)(i.$n.Checkbox,{checked:!s,width:4,content:"All",onClick:function(){return n("set_one_access",{access:"all"})}})]}),accesses:d,selectedList:u,accessMod:function(e){return n("set",{access:e})},grantAll:function(){return n("grant_all")},denyAll:function(){return n("clear_all")},grantDep:function(e){return n("grant_region",{region:e})},denyDep:function(e){return n("deny_region",{region:e})},grantableList:[]})})]})},p=function(e){var n=e.check_number,t=(0,o.Oc)(),l=t.act,a=t.data,c=a.door_types_ui_list,s=a.door_type,u=c.filter(function(e,t){return t%2===n});return(0,r.jsx)(i.BJ.Item,{children:u.map(function(e,n){return(0,r.jsx)(i.BJ,{mb:.5,children:(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.$n,{fluid:!0,selected:s===e.type,content:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("img",{src:"data:image/jpeg;base64,".concat(e.image),style:{verticalAlign:"middle",width:"32px",margin:"3px",marginRight:"6px",marginLeft:"-3px"}}),e.name]}),onClick:function(){return l("door_type",{door_type:e.type})}})})},n)})})}},1703:function(e,n,t){"use strict";t.r(n),t.d(n,{RPD:()=>s});var r=t(8138),i=t(7790),o=t(5490),l=t(2864),a=t(7946),c=t(3384),s=function(e){var n=(0,l.Oc)(),t=n.act,o=n.data,a=o.mainmenu,s=o.mode;return(0,r.jsx)(c.p8,{width:550,height:440,children:(0,r.jsx)(c.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.tU,{fluid:!0,children:a.map(function(e){return(0,r.jsx)(i.tU.Tab,{icon:e.icon,selected:e.mode===s,onClick:function(){return t("mode",{mode:e.mode})},children:e.category},e.category)})})}),function(e){switch(e){case 1:return(0,r.jsx)(u,{});case 2:return(0,r.jsx)(d,{});case 3:return(0,r.jsx)(h,{});case 4:return(0,r.jsx)(m,{});case 5:return(0,r.jsx)(p,{});case 6:return(0,r.jsx)(x,{});default:return"WE SHOULDN'T BE HERE!"}}(s)]})})})},u=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data,s=c.pipemenu,u=c.pipe_category,d=c.pipelist,h=c.whatpipe,m=c.iconrotation;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.tU,{fluid:!0,children:s.map(function(e){return(0,r.jsx)(i.tU.Tab,{textAlign:"center",selected:e.pipemode===u,onClick:function(){return t("pipe_category",{pipe_category:e.pipemode})},children:e.category},e.category)})})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.pd,{fluid:!0,placeholder:"Enter pipe label",onChange:function(e){return t("set_label",{set_label:e})}})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,basis:"50%",children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,children:(0,r.jsx)(a.xA,{children:(0,r.jsx)(a.xA.Column,{children:d.filter(function(e){return 1===e.pipe_type}).filter(function(e){return e.pipe_category===u}).map(function(e){return(0,r.jsx)(i.az,{children:(0,r.jsx)(i.$n,{fluid:!0,content:e.pipe_name,icon:"cog",selected:e.pipe_id===h,onClick:function(){return t("whatpipe",{whatpipe:e.pipe_id})},style:{marginBottom:"2px"}})},e.pipe_name)})})})})}),(0,r.jsx)(i.BJ.Item,{grow:!0,basis:"50%",children:(0,r.jsx)(i.wn,{fill:!0,children:(0,r.jsx)(a.xA,{children:(0,r.jsxs)(a.xA.Column,{children:[(0,r.jsx)(f,{}),d.filter(function(e){return 1===e.pipe_type&&e.pipe_id===h&&1!==e.orientations}).map(function(e){return(0,r.jsx)(i.az,{children:e.bendy?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a.xA,{children:[(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:4===m,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","southeast-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:4})},style:{marginBottom:"5px"}})}),(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:2===m,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","southwest-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:2})},style:{marginBottom:"5px"}})})]}),(0,r.jsxs)(a.xA,{children:[(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:1===m,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","northeast-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:1})},style:{marginBottom:"5px"}})}),(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:8===m,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","northwest-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:8})},style:{marginBottom:"5px"}})})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a.xA,{children:[(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:1===m,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","north-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:1})},style:{marginBottom:"5px"}})}),(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:4===m,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","east-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:4})},style:{marginBottom:"5px"}})})]}),4===e.orientations&&(0,r.jsxs)(a.xA,{children:[(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:2===m,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","south-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:2})},style:{marginBottom:"5px"}})}),(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:8===m,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","west-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:8})},style:{marginBottom:"5px"}})})]})]})},e.pipe_id)})]})})})})]})})]})},d=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data;c.pipe_category;var s=c.pipelist,u=c.whatdpipe,d=c.iconrotation;return c.auto_wrench_toggle,(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,basis:"50%",children:(0,r.jsx)(i.wn,{fill:!0,children:(0,r.jsx)(a.xA,{children:(0,r.jsx)(a.xA.Column,{children:s.filter(function(e){return 2===e.pipe_type}).map(function(e){return(0,r.jsx)(i.az,{children:(0,r.jsx)(i.$n,{fluid:!0,content:e.pipe_name,icon:"cog",selected:e.pipe_id===u,onClick:function(){return t("whatdpipe",{whatdpipe:e.pipe_id})},style:{marginBottom:"2px"}})},e.pipe_name)})})})})}),(0,r.jsx)(i.BJ.Item,{grow:!0,basis:"50%",children:(0,r.jsx)(i.wn,{fill:!0,children:(0,r.jsx)(a.xA,{children:(0,r.jsxs)(a.xA.Column,{children:[(0,r.jsx)(f,{}),s.filter(function(e){return 2===e.pipe_type&&e.pipe_id===u&&1!==e.orientations}).map(function(e){return(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsxs)(a.xA,{children:[(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:1===d,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","north-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:1})},style:{marginBottom:"5px"}})}),(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:4===d,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","east-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:4})},style:{marginBottom:"5px"}})})]}),4===e.orientations&&(0,r.jsxs)(a.xA,{children:[(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:2===d,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","south-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:2})},style:{marginBottom:"5px"}})}),(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:8===d,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","west-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:8})},style:{marginBottom:"5px"}})})]})]},e.pipe_id)})]})})})})]})})},f=function(e){var n=(0,l.Oc)(),t=n.act,o=n.data,a=o.iconrotation,c=o.auto_wrench_toggle;return(0,r.jsxs)(i.BJ,{mb:1,textAlign:"center",children:[(0,r.jsx)(i.BJ.Item,{basis:"50%",children:(0,r.jsx)(i.$n,{fluid:!0,content:"Auto-orientation",selected:0===a,onClick:function(){return t("iconrotation",{iconrotation:0})}})}),(0,r.jsx)(i.BJ.Item,{basis:"50%",children:(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:c,content:"Auto-anchor",onClick:function(){return t("auto_wrench_toggle")}})})]})},h=function(e){return(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,children:(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",children:[(0,r.jsx)(i.In,{name:"sync-alt",size:5,color:"gray",mb:5}),(0,r.jsx)("br",{}),"Device ready to rotate loose pipes..."]})})})})},m=function(e){return(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,children:(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",children:[(0,r.jsx)(i.In,{name:"arrows-alt-h",size:5,color:"gray",mb:5}),(0,r.jsx)("br",{}),"Device ready to flip loose pipes..."]})})})})},p=function(e){return(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,children:(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",children:[(0,r.jsx)(i.In,{name:"recycle",size:5,color:"gray",mb:5}),(0,r.jsx)("br",{}),"Device ready to eat loose pipes..."]})})})})},x=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data;c.pipe_category;var s=c.pipelist,u=c.whatttube,d=c.iconrotation;return(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,basis:"50%",children:(0,r.jsx)(i.wn,{fill:!0,children:(0,r.jsx)(a.xA,{children:(0,r.jsx)(a.xA.Column,{children:s.filter(function(e){return 3===e.pipe_type}).map(function(e){return(0,r.jsx)(i.az,{children:(0,r.jsx)(i.$n,{fluid:!0,content:e.pipe_name,icon:"cog",selected:e.pipe_id===u,onClick:function(){return t("whatttube",{whatttube:e.pipe_id})},style:{marginBottom:"2px"}})},e.pipe_name)})})})})}),(0,r.jsx)(i.BJ.Item,{grow:!0,basis:"50%",children:(0,r.jsx)(i.wn,{fill:!0,children:(0,r.jsx)(a.xA,{children:(0,r.jsxs)(a.xA.Column,{children:[(0,r.jsx)(f,{}),s.filter(function(e){return 3===e.pipe_type&&e.pipe_id===u&&1!==e.orientations}).map(function(e){return(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsxs)(a.xA,{children:[(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:1===d,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","north-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:1})},style:{marginBottom:"5px"}})}),(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:4===d,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","east-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:4})},style:{marginBottom:"5px"}})})]}),4===e.orientations&&(0,r.jsxs)(a.xA,{children:[(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:2===d,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","south-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:2})},style:{marginBottom:"5px"}})}),(0,r.jsx)(a.xA.Column,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",selected:8===d,content:(0,r.jsx)(i.az,{className:(0,o.Ly)(["rpd32x32","west-".concat(e.pipe_icon)])}),onClick:function(){return t("iconrotation",{iconrotation:8})},style:{marginBottom:"5px"}})})]})]},e.pipe_id)})]})})})})]})})}},8930:function(e,n,t){"use strict";t.r(n),t.d(n,{Radio:()=>u});var r=t(8138),i=t(8587),o=t(7790),l=t(6859),a=t(2864),c=t(421),s=t(3384),u=function(e){var n=(0,a.Oc)(),t=n.act,u=n.data,d=u.freqlock,f=u.frequency,h=u.minFrequency,m=u.maxFrequency,p=u.canReset,x=u.listening,g=u.broadcasting,j=u.loudspeaker,b=u.has_loudspeaker,y=u.ichannels,v=u.schannels,w=c.Fo.find(function(e){return e.freq===f}),k=!!w&&!!w.name,_=[];c.Fo.forEach(function(e){_[e.name]=e.color});var C=(0,i.Tj)(v,function(e,n){return{name:n,status:!!e}}),I=(0,i.Tj)(y,function(e,n){return{name:n,freq:e}});return(0,r.jsx)(s.p8,{width:375,height:130+21.2*C.length+11*I.length,children:(0,r.jsx)(s.p8.Content,{scrollable:!0,children:(0,r.jsx)(o.wn,{fill:!0,children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsxs)(o.Ki.Item,{label:"Frequency",children:[d&&(0,r.jsx)(o.az,{inline:!0,color:"light-gray",children:(0,l.Mg)(f/10,1)+" kHz"})||(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:h/10,maxValue:m/10,value:f/10,format:function(e){return(0,l.Mg)(e,1)},onChange:function(e){return t("frequency",{adjust:e-f/10})}}),(0,r.jsx)(o.$n,{icon:"undo",content:"",disabled:!p,tooltip:"Reset",onClick:function(){return t("frequency",{tune:"reset"})}})]}),k&&w&&(0,r.jsxs)(o.az,{inline:!0,color:w.color,ml:2,children:["[",w.name,"]"]})]}),(0,r.jsxs)(o.Ki.Item,{label:"Audio",children:[(0,r.jsx)(o.$n,{textAlign:"center",width:"37px",icon:x?"volume-up":"volume-mute",selected:x,color:x?"":"bad",tooltip:x?"Disable Incoming":"Enable Incoming",onClick:function(){return t("listen")}}),(0,r.jsx)(o.$n,{textAlign:"center",width:"37px",icon:g?"microphone":"microphone-slash",selected:g,tooltip:g?"Disable Hotmic":"Enable Hotmic",onClick:function(){return t("broadcast")}}),!!b&&(0,r.jsx)(o.$n,{ml:1,icon:"bullhorn",selected:j,content:"Loudspeaker",tooltip:j?"Disable Loudspeaker":"Enable Loudspeaker",onClick:function(){return t("loudspeaker")}})]}),0!==v.length&&(0,r.jsx)(o.Ki.Item,{label:"Keyed Channels",children:C.map(function(e){return(0,r.jsxs)(o.az,{children:[(0,r.jsx)(o.$n,{icon:e.status?"check-square-o":"square-o",selected:e.status,content:"",onClick:function(){return t("channel",{channel:e.name})}}),(0,r.jsx)(o.az,{inline:!0,color:_[e.name],children:e.name})]},e.name)})}),0!==I.length&&(0,r.jsx)(o.Ki.Item,{label:"Standard Channel",children:I.map(function(e){return(0,r.jsx)(o.$n,{icon:"arrow-right",content:e.name,selected:k&&w&&w.name===e.name,onClick:function(){return t("ichannel",{ichannel:e.freq})}},"i_"+e.name)})})]})})})})}},4097:function(e,n,t){"use strict";t.r(n),t.d(n,{RankedListInputModal:()=>h});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384),c=t(1942),s=t(9472);function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||f(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,n)}}var h=function(e){var n=(0,l.Oc)(),t=(n.act,n.data),u=t.items,f=t.message,h=void 0===f?"":f,p=t.timeout,x=t.title,g=d((0,i.useState)(void 0===u?[]:u),2),j=g[0],b=g[1],y=330+Math.ceil(h.length/3);return(0,r.jsxs)(a.p8,{title:x,width:325,height:y,children:[p&&(0,r.jsx)(s.Loader,{value:p}),(0,r.jsx)(a.p8.Content,{children:(0,r.jsx)(o.wn,{className:"ListInput__Section",fill:!0,title:h,children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(m,{filteredItems:j,setEditedItems:b})}),(0,r.jsx)(o.BJ.Item,{mt:.5,children:(0,r.jsx)(c.InputButtons,{input:j})})]})})})]})},m=function(e){var n=e.filteredItems,t=e.setEditedItems,l=d((0,i.useState)(null),2),a=l[0],c=l[1],s=function(e){c(e)},h=function(e){e.preventDefault()},m=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==a){var i=function(e){if(Array.isArray(e))return u(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||f(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i.splice(a,1)[0];null===r?i.push(o):i.splice(r,0,o),t(i),c(null),e.stopPropagation()}};return(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,onDrop:function(e){return m(e)},onDragOver:h,children:(0,r.jsx)(o.XI,{children:n.map(function(e,n){return(0,r.jsx)(o.XI.Row,{style:{padding:"8px"},draggable:!0,onDragStart:function(){return s(n)},onDragOver:h,onDrop:function(e){return m(e,n)},children:(0,r.jsx)(o.$n,{fluid:!0,py:"0.25rem",color:"transparent",style:{animation:"none",transition:"none",cursor:"move"},icon:"grip-lines",children:e.replace(/^\w/,function(e){return e.toUpperCase()})})},n)})})})}},4087:function(e,n,t){"use strict";t.r(n),t.d(n,{ReactorMonitor:()=>u});var r=t(8138),i=t(7790),o=t(6859),l=t(2864),a=t(421),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var u=function(e){var n,t,u=function(e){return Math.log2(16+Math.max(0,e))-4},d=(0,l.Oc)(),f=d.act,h=d.data,m=h.venting,p=h.NGCR_integrity,x=h.NGCR_power,g=h.NGCR_ambienttemp,j=h.NGCR_ambientpressure,b=h.NGCR_coefficient,y=h.NGCR_operatingpower,v=h.NGCR_throttle,w=h.gases,k=void 0===w?[]:w,_=(null!=k?k:[]).filter(function(e){return e.amount>=.01}).sort(function(e,n){return n.amount-e.amount}),C=(t=Math).max.apply(t,[1].concat(function(e){if(Array.isArray(e))return s(e)}(n=_.map(function(e){return e.portion}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,n){if(e){if("string"==typeof e)return s(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,void 0)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()));return(0,r.jsx)(c.p8,{width:550,height:500,children:(0,r.jsx)(c.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{width:"270px",children:(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,title:"Metrics",children:[(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Integrity",children:(0,r.jsx)(i.z2,{value:p/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,r.jsx)(i.Ki.Item,{label:"Power Generation",children:(0,r.jsx)(i.z2,{value:x,minValue:0,maxValue:2e3,ranges:x<=1e4?{good:[400,1/0],average:[200,400],bad:[-1/0,200]}:{good:[-1/0,1/0]},children:(0,o.Mg)(x<1e4?x:x/1e3)+(x<1e4?" KW":" MW")})}),(0,r.jsx)(i.Ki.Item,{label:"Reactivity Coefficient",children:(0,r.jsx)(i.z2,{value:b,minValue:1,maxValue:5.25,ranges:{bad:[1,1.55],average:[1.55,5.25],good:[5.25,1/0]},children:b.toFixed(2)})}),(0,r.jsx)(i.Ki.Item,{label:"Temperature",children:(0,r.jsx)(i.z2,{value:u(g),minValue:0,maxValue:u(1e4),ranges:{teal:[-1/0,u(80)],good:[u(80),u(373)],average:[u(373),u(1e3)],bad:[u(1e3),1/0]},children:(0,o.Mg)(g)+" K"})}),(0,r.jsx)(i.Ki.Item,{label:"Pressure",children:(0,r.jsx)(i.z2,{value:u(j),minValue:0,maxValue:u(5e4),ranges:{good:[u(1),u(1e3)],average:[-1/0,u(3e3)],bad:[u(3e3),1/0]},children:(0,o.Mg)(j)+" kPa"})}),(0,r.jsx)(i.Ki.Item,{label:"Control Rod Limiter",children:(0,r.jsx)(i.z2,{value:y,minValue:0,maxValue:100,ranges:{teal:[100,1/0],good:[70,99],average:[30,70],bad:[-1/0,30]},children:(0,o.Mg)(y)+" %"})})]}),(0,r.jsx)(i.wn,{title:"Desired Control Rod Limit",textAlign:"center",children:(0,r.jsx)(i.N6,{size:5,value:v,unit:"%",minValue:0,maxValue:100,step:1,stepPixelSize:2,onChange:function(e,n){return f("set_throttle",{NGCR_throttle:n})}})})]})}),(0,r.jsx)(i.BJ.Item,{grow:!0,basis:0,children:(0,r.jsx)(i.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,r.jsx)(i.$n,{icon:"power-off",content:m?"Vent Open":"Vent Closed",selected:m,onClick:function(){return f("toggle_vent")}}),children:(0,r.jsx)(i.Ki,{children:_.map(function(e){return(0,r.jsx)(i.Ki.Item,{label:(0,a.wM)(e.name,e.name),children:(0,r.jsx)(i.z2,{color:(0,a.b_)(e.name),value:e.portion,minValue:0,maxValue:C,children:(0,o.Mg)(e.amount)+" mol ("+e.portion+"%)"})},e.name)})})})})})})]})})})}},1876:function(e,n,t){"use strict";t.r(n),t.d(n,{ReagentGrinder:()=>s});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(3013),c=t(6696),s=function(e){var n=(0,o.Oc)(),t=(n.act,n.data),a=n.config,s=t.operating,h=a.title;return(0,r.jsx)(l.p8,{width:400,height:565,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(c.Operating,{operating:s,name:h}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(u,{})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(d,{})}),(0,r.jsx)(i.BJ.Item,{height:"30%",children:(0,r.jsx)(f,{})})]})})})},u=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.inactive;return(0,r.jsx)(i.wn,{title:"Controls",children:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",icon:"mortar-pestle",disabled:l,tooltip:l?"There are no contents":"Grind the contents",tooltipPosition:"bottom",content:"Grind",onClick:function(){return t("grind")}})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",icon:"blender",disabled:l,tooltip:l?"There are no contents":"Juice the contents",tooltipPosition:"bottom",content:"Juice",onClick:function(){return t("juice")}})})]})})},d=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.contents,c=l.limit,s=l.count,u=l.inactive;return(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Contents",buttons:(0,r.jsxs)(i.az,{children:[(0,r.jsxs)(i.az,{inline:!0,color:"label",mr:2,children:[s," / ",c," items"]}),(0,r.jsx)(i.$n,{icon:"eject",content:"Eject Contents",onClick:function(){return t("eject")},disabled:u,tooltip:u?"There are no contents":""})]}),children:(0,r.jsx)(i.XI,{className:"Ingredient__Table",children:a.map(function(e){return(0,r.jsxs)(i.XI.Row,{tr:5,children:[(0,r.jsx)("td",{children:(0,r.jsx)(i.XI.Cell,{bold:!0,children:e.name})}),(0,r.jsx)("td",{children:(0,r.jsxs)(i.XI.Cell,{collapsing:!0,textAlign:"center",children:[e.amount," ",e.units]})})]},e.name)})})})},f=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,c=l.beaker_loaded,s=l.beaker_current_volume,u=l.beaker_max_volume,d=l.beaker_contents;return(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Beaker",buttons:!!c&&(0,r.jsxs)(i.az,{children:[(0,r.jsxs)(i.az,{inline:!0,color:"label",mr:2,children:[s," / ",u," units"]}),(0,r.jsx)(i.$n,{icon:"eject",content:"Detach Beaker",onClick:function(){return t("detach")}})]}),children:(0,r.jsx)(a.BeakerContents,{beakerLoaded:c,beakerContents:d})})}},1569:function(e,n,t){"use strict";t.r(n),t.d(n,{ReagentsEditor:()=>g});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){u(e,n,t[n])})}return e}function h(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function m(e,n){return(m=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function p(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(x=function(){return!!e})()}var g=function(e){var n;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(e){var n,r,i;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return r=t,i=[e],r=d(r),u(n=function(e,n){var t;if(n&&("object"==((t=n)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)||"function"==typeof n))return n;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,x()?Reflect.construct(r,i||[],d(this).constructor):r.apply(this,i)),"handleSearchChange",function(e){n.setState({searchText:e})}),n.state={searchText:""},n}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e),n=[{key:"render",value:function(){var e=this,n=(0,a.Oc)(),t=n.act,i=n.data,s=i.reagentsInformation,u=i.reagents,d=Object.entries(u).map(function(e){var n=p(e,2),t=n[0];return h(f({},n[1],s[t]),{id:t})}).sort(function(e,n){return e.name.localeCompare(n.name)});""!==this.state.searchText&&(d=d.concat(Object.entries(s).filter(function(e){var n=p(e,2),t=n[0];return n[1],void 0===u[t]}).map(function(e){var n=p(e,2),t=n[0];return h(f({},n[1]),{id:t})}).sort(function(e,n){return e.name.localeCompare(n.name)})));var m=d.filter(function(n){var t=n.id,r=n.name;return(0,l.XZ)(e.state.searchText,function(){return"".concat(t,"|").concat(r)})({})}).map(function(e){var n=e.volume,t=e.uid;return void 0===n?(0,r.jsx)(b,{reagent:e},t):(0,r.jsx)(j,{reagent:e},t)});return(0,r.jsx)(c.p8,{width:400,height:480,children:(0,r.jsx)(c.p8.Content,{children:(0,r.jsx)(o.wn,{fill:!0,children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.BJ,{fill:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.pd,{fluid:!0,value:this.state.searchText,onChange:function(n){return e.handleSearchChange(n)}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{icon:"sync",tooltip:"Update Reagent Amounts",onClick:function(){return t("update_total")}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{icon:"fire-alt",tooltip:"Force Reagent Reaction",onClick:function(){return t("react_reagents")}})})]})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.XI,{className:"reagents-table",children:m})})]})})})})}}],function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(i.Component),j=function(e){var n=e.reagent,t=n.id,i=n.name,l=n.uid,c=n.volume,s=(0,a.Oc)().act;return(0,r.jsxs)(o.XI.Row,{className:"reagent-row",children:[(0,r.jsxs)(o.XI.Cell,{className:"volume-cell",children:[(0,r.jsxs)("div",{className:"volume-actions-wrapper",children:[(0,r.jsx)(o.$n.Confirm,{className:"condensed-button",icon:"trash-alt",confirmIcon:"question",iconColor:"red",confirmContent:"",color:"none",confirmColor:"none",onClick:function(){return s("delete_reagent",{uid:l})}}),(0,r.jsx)(o.$n,{className:"condensed-button",icon:"syringe",iconColor:"green",color:"none",onClick:function(){return s("edit_volume",{uid:l})}})]}),(0,r.jsx)("span",{className:"volume-label",children:null===c?"NULL":"".concat(c,"u")})]}),(0,r.jsxs)(o.XI.Cell,{children:[t," (",i,")"]})]})},b=function(e){var n=e.reagent,t=n.id,i=n.name,l=(0,a.Oc)().act;return(0,r.jsxs)(o.XI.Row,{className:"reagent-row absent-row",children:[(0,r.jsx)(o.XI.Cell,{className:"volume-cell",children:(0,r.jsx)(o.$n,{className:"condensed-button add-reagent-button",icon:"fill-drip",color:"none",onClick:function(){return l("add_reagent",{reagentID:t})}})}),(0,r.jsxs)(o.XI.Cell,{className:"reagent-absent-name-cell",children:[t," (",i,")"]})]})}},9510:function(e,n,t){"use strict";t.r(n),t.d(n,{RemoteSignaler:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(9298),c=function(e){var n=(0,o.Oc)(),t=n.act,c=n.data,s=c.on;return(0,r.jsx)(l.p8,{width:300,height:165,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.wn,{children:[(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Receiver",children:(0,r.jsx)(i.$n,{icon:"power-off",content:s?"On":"Off",color:s?null:"red",selected:s,onClick:function(){return t("recv_power")}})})}),(0,r.jsx)(a.Signaler,{data:c})]})})})}},5297:function(e,n,t){"use strict";t.r(n),t.d(n,{RequestConsole:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(){var e=(0,o.Oc)().data,n=e.screen,t=e.announcementConsole;return(0,r.jsx)(l.p8,{width:450,height:t?430:385,children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsx)(i.BJ,{fill:!0,vertical:!0,children:function(e){switch(e){case 0:return(0,r.jsx)(u,{});case 1:return(0,r.jsx)(d,{purpose:"ASSISTANCE"});case 2:return(0,r.jsx)(d,{purpose:"SUPPLIES"});case 3:return(0,r.jsx)(d,{purpose:"INFO"});case 4:return(0,r.jsx)(f,{type:"SUCCESS"});case 5:return(0,r.jsx)(f,{type:"FAIL"});case 6:return(0,r.jsx)(h,{type:"MESSAGES"});case 7:return(0,r.jsx)(m,{});case 8:return(0,r.jsx)(p,{});case 9:return(0,r.jsx)(x,{});case 10:return(0,r.jsx)(h,{type:"SHIPPING"});case 11:return(0,r.jsx)(g,{});default:return"WE SHOULDN'T BE HERE!"}}(n)})})})},c=function(e){var n=(0,o.Oc)().act,t=e.text,l=e.icon,a=e.screen;return(0,r.jsx)(i.$n,{fluid:!0,lineHeight:3,icon:l,onClick:function(){return n("setScreen",{setScreen:a})},children:t})},s=function(){var e=(0,o.Oc)().act;return(0,r.jsx)(i.$n,{icon:"arrow-left",onClick:function(){return e("setScreen",{setScreen:0})},children:"Back"})},u=function(){var e,n=(0,o.Oc)(),t=n.act,l=n.data,a=l.newmessagepriority,s=l.announcementConsole,u=l.silent;return e=3===a?(0,r.jsx)(i.Z8,{children:(0,r.jsx)(i.az,{color:"red",bold:!0,mb:1,children:"NEW PRIORITY MESSAGES"})}):a>0?(0,r.jsx)(i.az,{color:"red",bold:!0,mb:1,children:"There are new messages"}):(0,r.jsx)(i.az,{color:"label",mb:1,children:"There are no new messages"}),(0,r.jsx)(i.BJ.Item,{grow:!0,textAlign:"center",children:(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,title:"Main Menu",buttons:(0,r.jsx)(i.$n,{width:9,selected:!u,icon:u?"volume-mute":"volume-up",onClick:function(){return t("toggleSilent")},children:u?"Speaker Off":"Speaker On"}),children:[e,(0,r.jsx)(i.az,{children:(0,r.jsx)(c,{icon:a>0?"envelope-open-text":"envelope",screen:6,text:"View Messages"})}),(0,r.jsxs)(i.az,{mt:1,children:[(0,r.jsx)(c,{icon:"hand-paper",screen:1,text:"Request Assistance"}),(0,r.jsx)(c,{icon:"box",screen:2,text:"Request Supplies"}),(0,r.jsx)(c,{icon:"clipboard-list",screen:11,text:"Request Secondary Goal"}),(0,r.jsx)(c,{icon:"comment",screen:3,text:"Relay Anonymous Information"})]}),(0,r.jsxs)(i.az,{mt:1,children:[(0,r.jsx)(c,{icon:"tag",screen:9,text:"Print Shipping Label"}),(0,r.jsx)(c,{icon:"clipboard-list",screen:10,text:"View Shipping Logs"})]}),!!s&&(0,r.jsx)(i.az,{mt:1,children:(0,r.jsx)(c,{icon:"bullhorn",screen:8,text:"Send Station-Wide Announcement"})})]})})},d=function(e){var n,t=(0,o.Oc)(),l=t.act,a=t.data,c=a.department,u=a.assist_dept,d=a.supply_dept,f=a.info_dept,h=[];switch(e.purpose){case"ASSISTANCE":h=u,n="Request assistance from another department";break;case"SUPPLIES":h=d,n="Request supplies from another department";break;case"INFO":h=f,n="Relay information to another department"}return(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:n,buttons:(0,r.jsx)(s,{}),children:(0,r.jsx)(i.Ki,{children:h.filter(function(e){return e!==c}).map(function(e){return(0,r.jsxs)(i.Ki.Item,{label:e,textAlign:"right",className:"candystripe",children:[(0,r.jsx)(i.$n,{icon:"envelope",onClick:function(){return l("writeInput",{write:e,priority:2})},children:"Message"}),(0,r.jsx)(i.$n,{icon:"exclamation-circle",onClick:function(){return l("writeInput",{write:e,priority:3})},children:"High Priority"})]},e)})})})})},f=function(e){var n;switch(e.type){case"SUCCESS":n="Message sent successfully";break;case"FAIL":n="Unable to contact messaging server"}return(0,r.jsx)(i.wn,{fill:!0,title:n,buttons:(0,r.jsx)(s,{})})},h=function(e){var n,t=(0,o.Oc)(),l=(t.act,t.data),a=l.message_log,c=l.shipping_log,u=[];switch(e.type){case"MESSAGES":u=a,n="Message Log";break;case"SHIPPING":u=c,n="Shipping label print log"}return u.reverse(),(0,r.jsx)(i.BJ.Item,{grow:!0,textAlign:"center",children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:n,buttons:(0,r.jsx)(s,{}),children:u.map(function(e,n){return(0,r.jsxs)(i.az,{textAlign:"left",children:[e.map(function(e,n){return(0,r.jsx)("div",{children:e},n)}),(0,r.jsx)("hr",{})]},n)})})})},m=function(){var e=(0,o.Oc)(),n=e.act,t=e.data,l=t.recipient,a=t.message,c=t.msgVerified,u=t.msgStamped;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.BJ.Item,{grow:!0,textAlign:"center",children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,r.jsx)(s,{}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Recipient",children:l}),(0,r.jsx)(i.Ki.Item,{label:"Message",children:a}),(0,r.jsx)(i.Ki.Item,{label:"Validated by",color:"green",children:c}),(0,r.jsx)(i.Ki.Item,{label:"Stamped by",color:"blue",children:u})]})})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{children:(0,r.jsx)(i.$n,{fluid:!0,textAlign:"center",icon:"envelope",onClick:function(){return n("department",{department:l})},children:"Send Message"})})})]})},p=function(){var e=(0,o.Oc)(),n=e.act,t=e.data,l=t.message,a=t.announceAuth;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s,{}),(0,r.jsx)(i.$n,{icon:"edit",onClick:function(){return n("writeAnnouncement")},children:"Edit Message"})]}),children:l})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.wn,{children:[a?(0,r.jsx)(i.az,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,r.jsx)(i.az,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,r.jsx)(i.$n,{fluid:!0,mt:2,textAlign:"center",icon:"bullhorn",disabled:!(a&&l),onClick:function(){return n("sendAnnouncement")},children:"Send Announcement"})]})})]})},x=function(){var e=(0,o.Oc)(),n=e.act,t=e.data,l=t.shipDest,a=t.msgVerified,c=t.ship_dept;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.BJ.Item,{textAlign:"center",children:(0,r.jsxs)(i.wn,{title:"Print Shipping Label",buttons:(0,r.jsx)(s,{}),children:[(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Destination",children:l}),(0,r.jsx)(i.Ki.Item,{label:"Validated by",children:a})]}),(0,r.jsx)(i.$n,{fluid:!0,mt:1,textAlign:"center",icon:"print",disabled:!(l&&a),onClick:function(){return n("printLabel")},children:"Print Label"})]})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Destinations",children:(0,r.jsx)(i.Ki,{children:c.map(function(e){return(0,r.jsx)(i.Ki.Item,{label:e,textAlign:"right",className:"candystripe",children:(0,r.jsx)(i.$n,{selected:l===e,onClick:function(){return n("shipSelect",{shipSelect:e})},children:l===e?"Selected":"Select"})},e)})})})})]})},g=function(){var e=(0,o.Oc)(),n=e.act,t=e.data,l=t.secondaryGoalAuth,a=t.secondaryGoalEnabled;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,r.jsx)(s,{})})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsxs)(i.wn,{children:[a?l?(0,r.jsx)(i.az,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,r.jsx)(i.az,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,r.jsx)(i.az,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,r.jsx)(i.$n,{fluid:!0,mt:2,textAlign:"center",icon:"clipboard-list",disabled:!(l&&a),onClick:function(){return n("requestSecondaryGoal")},children:"Request Secondary Goal"})]})})]})}},4384:function(e,n,t){"use strict";t.r(n),t.d(n,{LinkMenu:()=>c,RndBackupConsole:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,s=a.network_name,u=a.has_disk,d=a.disk_name,f=a.linked,h=a.techs,m=a.last_timestamp;return(0,r.jsx)(l.p8,{width:900,height:600,children:(0,r.jsxs)(l.p8.Content,{scrollable:!0,children:[(0,r.jsxs)(i.wn,{title:"Device Info",children:[(0,r.jsx)(i.az,{mb:2,children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Current Network",children:f?(0,r.jsx)(i.$n,{content:s,icon:"unlink",selected:1,onClick:function(){return t("unlink")}}):"None"}),(0,r.jsx)(i.Ki.Item,{label:"Loaded Disk",children:u?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{content:d+" (Last backup: "+m+")",icon:"save",selected:1,onClick:function(){return t("eject_disk")}}),(0,r.jsx)(i.$n,{icon:"sign-in-alt",content:"Save all",onClick:function(){return t("saveall2disk")}}),(0,r.jsx)(i.$n,{icon:"sign-out-alt",content:"Load all",onClick:function(){return t("saveall2network")}})]}):"None"})]})}),!!f||(0,r.jsx)(c,{})]}),(0,r.jsx)(i.az,{mt:2,children:(0,r.jsx)(i.wn,{title:"Tech Info",children:(0,r.jsxs)(i.XI,{m:"0.5rem",children:[(0,r.jsxs)(i.XI.Row,{header:!0,children:[(0,r.jsx)(i.XI.Cell,{children:"Tech Name"}),(0,r.jsx)(i.XI.Cell,{children:"Network Level"}),(0,r.jsx)(i.XI.Cell,{children:"Disk Level"}),(0,r.jsx)(i.XI.Cell,{children:"Actions"})]}),Object.keys(h).map(function(e){return!(h[e].network_level>0||h[e].disk_level>0)||(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:h[e].name}),(0,r.jsx)(i.XI.Cell,{children:h[e].network_level||"None"}),(0,r.jsx)(i.XI.Cell,{children:h[e].disk_level||"None"}),(0,r.jsxs)(i.XI.Cell,{children:[(0,r.jsx)(i.$n,{icon:"sign-in-alt",content:"Load to network",disabled:!u||!f,onClick:function(){return t("savetech2network",{tech:e})}}),(0,r.jsx)(i.$n,{icon:"sign-out-alt",content:"Load to disk",disabled:!u||!f,onClick:function(){return t("savetech2disk",{tech:e})}})]})]},e)})]})})})]})})},c=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.controllers;return(0,r.jsx)(i.wn,{title:"Setup Linkage",children:(0,r.jsxs)(i.XI,{m:"0.5rem",children:[(0,r.jsxs)(i.XI.Row,{header:!0,children:[(0,r.jsx)(i.XI.Cell,{children:"Network Address"}),(0,r.jsx)(i.XI.Cell,{children:"Network ID"}),(0,r.jsx)(i.XI.Cell,{children:"Link"})]}),l.map(function(e){return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:e.addr}),(0,r.jsx)(i.XI.Cell,{children:e.net_id}),(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.$n,{content:"Link",icon:"link",onClick:function(){return t("linktonetworkcontroller",{target_controller:e.addr})}})})]},e.addr)})]})})}},4080:function(e,n,t){"use strict";t.r(n),t.d(n,{AnalyzerMenu:()=>a});var r=t(8138),i=t(7790),o=t(5490),l=t(2864),a=function(e){var n=(0,l.Oc)(),t=n.data,o=n.act,a=t.tech_levels,s=t.loaded_item,u=t.linked_analyzer,d=t.can_discover;return u?s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.wn,{title:"Object Analysis",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{content:"Deconstruct",icon:"microscope",onClick:function(){o("deconstruct")}}),(0,r.jsx)(i.$n,{content:"Eject",icon:"eject",onClick:function(){o("eject_item")}}),!d||(0,r.jsx)(i.$n,{content:"Discover",icon:"atom",onClick:function(){o("discover")}})]}),children:(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Name",children:s.name})})}),(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.XI,{id:"research-levels",children:[(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{}),(0,r.jsx)(i.XI.Cell,{header:!0,children:"Research Field"}),(0,r.jsx)(i.XI.Cell,{header:!0,children:"Current Level"}),(0,r.jsx)(i.XI.Cell,{header:!0,children:"Object Level"}),(0,r.jsx)(i.XI.Cell,{header:!0,children:"New Level"})]}),a.map(function(e){return(0,r.jsx)(c,{techLevel:e},e.id)})]})})]}):(0,r.jsx)(i.wn,{title:"Analysis Menu",children:"No item loaded. Standing by..."}):(0,r.jsx)(i.wn,{title:"Analysis Menu",children:"NO SCIENTIFIC ANALYZER LINKED TO CONSOLE"})},c=function(e){var n=e.techLevel,t=n.name,l=n.desc,a=n.level,c=n.object_level,s=n.ui_icon,u=null!=c,d=u&&c>=a?Math.max(c,a+1):a;return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.$n,{icon:"circle-info",tooltip:l})}),(0,r.jsxs)(i.XI.Cell,{children:[(0,r.jsx)(i.In,{name:s})," ",t]}),(0,r.jsx)(i.XI.Cell,{children:a}),u?(0,r.jsx)(i.XI.Cell,{children:c}):(0,r.jsx)(i.XI.Cell,{className:"research-level-no-effect",children:"-"}),(0,r.jsx)(i.XI.Cell,{className:(0,o.Ly)([d!==a&&"upgraded-level"]),children:d})]})}},9529:function(e,n,t){"use strict";t.r(n),t.d(n,{DataDiskMenu:()=>d});var r=t(8138),i=t(7790),o=t(2864),l="tech",a=function(e){var n=(0,o.Oc)(),t=n.data,l=n.act,a=t.disk_data;return a?(0,r.jsxs)(i.az,{children:[(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Name",children:a.name}),(0,r.jsx)(i.Ki.Item,{label:"Level",children:a.level}),(0,r.jsx)(i.Ki.Item,{label:"Description",children:a.desc})]}),(0,r.jsx)(i.az,{mt:"10px",children:(0,r.jsx)(i.$n,{content:"Upload to Database",icon:"arrow-up",onClick:function(){return l("updt_tech")}})})]}):null},c=function(e){var n=(0,o.Oc)(),t=n.data,l=n.act,a=t.disk_data;if(!a)return null;var c=a.name,s=a.lathe_types,u=a.materials,d=s.join(", ");return(0,r.jsxs)(i.az,{children:[(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Name",children:c}),d?(0,r.jsx)(i.Ki.Item,{label:"Lathe Types",children:d}):null,(0,r.jsx)(i.Ki.Item,{label:"Required Materials"})]}),u.map(function(e){return(0,r.jsxs)(i.az,{children:["- ",(0,r.jsx)("span",{style:{textTransform:"capitalize"},children:e.name})," x ",e.amount]},e.name)}),(0,r.jsx)(i.az,{mt:"10px",children:(0,r.jsx)(i.$n,{content:"Upload to Database",icon:"arrow-up",onClick:function(){return l("updt_design")}})})]})},s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.disk_data;return(0,r.jsx)(i.wn,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n.Confirm,{content:"Erase",icon:"eraser",disabled:!l,onClick:function(){return t("erase_disk")}}),(0,r.jsx)(i.$n,{content:"Eject",icon:"eject",onClick:function(){t("eject_disk")}})]})},e))},u=function(e){var n=(0,o.Oc)(),t=n.data,a=n.act,c=t.disk_type,u=t.to_copy,d=e.title;return(0,r.jsx)(s,{title:d,children:(0,r.jsx)(i.az,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,r.jsx)(i.Ki,{children:u.sort(function(e,n){return e.name.localeCompare(n.name)}).map(function(e){var n=e.name,t=e.id;return(0,r.jsx)(i.Ki.Item,{noColon:!0,label:n,children:(0,r.jsx)(i.$n,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){c===l?a("copy_tech",{id:t}):a("copy_design",{id:t})}})},t)})})})})},d=function(e){var n=(0,o.Oc)().data,t=n.disk_type,d=n.disk_data;if(!t)return(0,r.jsx)(i.wn,{title:"Data Disk",children:"No disk loaded."});switch(t){case"design":return d?(0,r.jsx)(s,{title:"Design Disk",children:(0,r.jsx)(c,{})}):(0,r.jsx)(u,{title:"Design Disk"});case l:if(d)return(0,r.jsx)(s,{title:"Technology Disk",children:(0,r.jsx)(a,{})});return(0,r.jsx)(u,{title:"Technology Disk"});default:return(0,r.jsx)(r.Fragment,{children:"UNRECOGNIZED DISK TYPE"})}}},1465:function(e,n,t){"use strict";t.r(n),t.d(n,{LatheCategory:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(5887),a=function(e){var n=(0,o.Oc)(),t=n.data,a=n.act,c=t.category,s=t.matching_designs,u=4===t.menu?"build":"imprint";return(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,height:36,title:c,children:[(0,r.jsx)(l.LatheMaterials,{}),(0,r.jsx)(i.XI,{className:"RndConsole__LatheCategory__MatchingDesigns",children:s.map(function(e){var n=e.id,t=e.name,o=e.can_build,l=e.materials;return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.$n,{icon:"print",content:t,disabled:o<1,onClick:function(){return a(u,{id:n,amount:1})}})}),(0,r.jsx)(i.XI.Cell,{children:o>=5?(0,r.jsx)(i.$n,{content:"x5",onClick:function(){return a(u,{id:n,amount:5})}}):null}),(0,r.jsx)(i.XI.Cell,{children:o>=10?(0,r.jsx)(i.$n,{content:"x10",onClick:function(){return a(u,{id:n,amount:10})}}):null}),(0,r.jsx)(i.XI.Cell,{children:l.map(function(e){return(0,r.jsxs)(r.Fragment,{children:[" | ",(0,r.jsxs)("span",{className:e.is_red?"color-red":null,children:[e.amount," ",e.name]})]})})})]},n)})})]})}},4154:function(e,n,t){"use strict";t.r(n),t.d(n,{LatheChemicalStorage:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=n.data,l=n.act,a=t.loaded_chemicals,c=4===t.menu;return(0,r.jsxs)(i.wn,{title:"Chemical Storage",children:[(0,r.jsx)(i.$n,{content:"Purge All",icon:"trash",onClick:function(){l(c?"disposeallP":"disposeallI")}}),(0,r.jsx)(i.Ki,{children:a.map(function(e){var n=e.volume,t=e.name,o=e.id;return(0,r.jsx)(i.Ki.Item,{label:"* ".concat(n," of ").concat(t),children:(0,r.jsx)(i.$n,{content:"Purge",icon:"trash",onClick:function(){l(c?"disposeP":"disposeI",{id:o})}})},o)})})]})}},8563:function(e,n,t){"use strict";t.r(n),t.d(n,{LatheMainMenu:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(5887),a=t(6013),c=function(e){var n=(0,o.Oc)(),t=n.data,c=n.act,s=t.menu,u=t.categories;return(0,r.jsxs)(i.wn,{title:(4===s?"Protolathe":"Circuit Imprinter")+" Menu",children:[(0,r.jsx)(l.LatheMaterials,{}),(0,r.jsx)(a.LatheSearch,{}),(0,r.jsx)(i.cG,{}),(0,r.jsx)(i.so,{wrap:"wrap",children:u.map(function(e){return(0,r.jsx)(i.so,{style:{flexBasis:"50%",marginBottom:"6px"},children:(0,r.jsx)(i.$n,{icon:"arrow-right",content:e,onClick:function(){c("setCategory",{category:e})}})},e)})})]})}},7635:function(e,n,t){"use strict";t.r(n),t.d(n,{LatheMaterialStorage:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=n.data,l=n.act,a=t.loaded_materials;return(0,r.jsx)(i.wn,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,r.jsx)(i.XI,{children:a.map(function(e){var n=e.id,o=e.amount,a=e.name,c=function(e){l(4===t.menu?"lathe_ejectsheet":"imprinter_ejectsheet",{id:n,amount:e})},s=Math.floor(o/2e3),u=o<1;return(0,r.jsxs)(i.XI.Row,{className:u?"color-grey":"color-yellow",children:[(0,r.jsxs)(i.XI.Cell,{minWidth:"210px",children:["* ",o," of ",a]}),(0,r.jsxs)(i.XI.Cell,{minWidth:"110px",children:["(",s," sheet",1===s?"":"s",")"]}),(0,r.jsx)(i.XI.Cell,{children:o>=2e3?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{content:"1x",icon:"eject",onClick:function(){return c(1)}}),(0,r.jsx)(i.$n,{content:"C",icon:"eject",onClick:function(){return c("custom")}}),o>=1e4?(0,r.jsx)(i.$n,{content:"5x",icon:"eject",onClick:function(){return c(5)}}):null,(0,r.jsx)(i.$n,{content:"All",icon:"eject",onClick:function(){return c(50)}})]}):null})]},n)})})})}},5887:function(e,n,t){"use strict";t.r(n),t.d(n,{LatheMaterials:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)().data,t=n.total_materials,l=n.max_materials,a=n.max_chemicals,c=n.total_chemicals;return(0,r.jsx)(i.az,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,r.jsxs)(i.XI,{width:"auto",children:[(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{bold:!0,children:"Material Amount:"}),(0,r.jsx)(i.XI.Cell,{children:t}),l?(0,r.jsx)(i.XI.Cell,{children:" / "+l}):null]}),(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{bold:!0,children:"Chemical Amount:"}),(0,r.jsx)(i.XI.Cell,{children:c}),a?(0,r.jsx)(i.XI.Cell,{children:" / "+a}):null]})]})})}},9760:function(e,n,t){"use strict";t.r(n),t.d(n,{LatheMenu:()=>p});var r=t(8138),i=t(7790),o=t(2864),l=t(2247),a=t(1465),c=t(4154),s=t(8563),u=t(7635);function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var f=i.tU.Tab,h=function(e){var n,t=(0,o.Oc)(),i=t.act,a=t.data,c=(n=a.menu===l.MENU.LATHE?["nav_protolathe",a.submenu_protolathe]:["nav_imprinter",a.submenu_imprinter],function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return d(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],u=c[1],h=e.menu,m=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["menu"]);return(0,r.jsx)(f,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({selected:u===h,onClick:function(){return i(s,{menu:h})}},m))},m=function(e){switch(e){case l.PRINTER_MENU.MAIN:return(0,r.jsx)(s.LatheMainMenu,{});case l.PRINTER_MENU.SEARCH:return(0,r.jsx)(a.LatheCategory,{});case l.PRINTER_MENU.MATERIALS:return(0,r.jsx)(u.LatheMaterialStorage,{});case l.PRINTER_MENU.CHEMICALS:return(0,r.jsx)(c.LatheChemicalStorage,{})}},p=function(e){var n=(0,o.Oc)().data,t=n.menu,a=n.linked_lathe,c=n.linked_imprinter;return t!==l.MENU.LATHE||a?t!==l.MENU.IMPRINTER||c?(0,r.jsxs)(i.az,{children:[(0,r.jsxs)(i.tU,{children:[(0,r.jsx)(h,{menu:l.PRINTER_MENU.MAIN,icon:"bars",children:"Main Menu"}),(0,r.jsx)(h,{menu:l.PRINTER_MENU.MATERIALS,icon:"layer-group",children:"Materials"}),(0,r.jsx)(h,{menu:l.PRINTER_MENU.CHEMICALS,icon:"flask-vial",children:"Chemicals"})]}),m(n.menu===l.MENU.LATHE?n.submenu_protolathe:n.submenu_imprinter)]}):(0,r.jsx)(i.az,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,r.jsx)(i.az,{children:"NO PROTOLATHE LINKED TO CONSOLE"})}},6013:function(e,n,t){"use strict";t.r(n),t.d(n,{LatheSearch:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)().act;return(0,r.jsx)(i.az,{children:(0,r.jsx)(i.pd,{placeholder:"Search...",onEnter:function(e){return n("search",{to_search:e})}})})}},7726:function(e,n,t){"use strict";t.r(n),t.d(n,{LinkMenu:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data.controllers;return(0,r.jsx)(l.p8,{width:800,height:550,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.wn,{title:"Setup Linkage",children:(0,r.jsxs)(i.XI,{m:"0.5rem",children:[(0,r.jsxs)(i.XI.Row,{header:!0,children:[(0,r.jsx)(i.XI.Cell,{children:"Network Address"}),(0,r.jsx)(i.XI.Cell,{children:"Network ID"}),(0,r.jsx)(i.XI.Cell,{children:"Link"})]}),a.map(function(e){return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:e.addr}),(0,r.jsx)(i.XI.Cell,{children:e.net_id}),(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.$n,{content:"Link",icon:"link",onClick:function(){return t("linktonetworkcontroller",{target_controller:e.addr})}})})]},e.addr)})]})})})})}},3321:function(e,n,t){"use strict";t.r(n),t.d(n,{SettingsMenu:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){return(0,r.jsxs)(i.az,{children:[(0,r.jsx)(a,{}),(0,r.jsx)(c,{})]})},a=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data;l.sync;var a=l.admin;return(0,r.jsx)(i.wn,{title:"Settings",children:(0,r.jsxs)(i.so,{direction:"column",align:"flex-start",children:[(0,r.jsx)(i.$n,{color:"red",icon:"unlink",content:"Disconnect from Research Network",onClick:function(){t("unlink")}}),1===a?(0,r.jsx)(i.$n,{icon:"gears",color:"red",content:"[ADMIN] Maximize research levels",onClick:function(){return t("maxresearch")}}):null]})})},c=function(e){var n=(0,o.Oc)(),t=n.data,l=n.act,a=t.linked_analyzer,c=t.linked_lathe,s=t.linked_imprinter;return(0,r.jsx)(i.wn,{title:"Linked Devices",buttons:(0,r.jsx)(i.$n,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){return l("find_device")}}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Scientific Analyzer",children:(0,r.jsx)(i.$n,{icon:"unlink",disabled:!a,content:a?"Unlink":"Undetected",onClick:function(){return l("disconnect",{item:"analyze"})}})}),(0,r.jsx)(i.Ki.Item,{label:"Protolathe",children:(0,r.jsx)(i.$n,{icon:"unlink",disabled:!c,content:c?"Unlink":"Undetected",onClick:function(){l("disconnect",{item:"lathe"})}})}),(0,r.jsx)(i.Ki.Item,{label:"Circuit Imprinter",children:(0,r.jsx)(i.$n,{icon:"unlink",disabled:!s,content:s?"Unlink":"Undetected",onClick:function(){return l("disconnect",{item:"imprinter"})}})})]})})}},2247:function(e,n,t){"use strict";t.r(n),t.d(n,{MENU:()=>h,PRINTER_MENU:()=>m,RndConsole:()=>g});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(4080),c=t(9529),s=t(9760),u=t(7726),d=t(3321),f=i.tU.Tab,h={MAIN:0,DISK:2,ANALYZE:3,LATHE:4,IMPRINTER:5,SETTINGS:6},m={MAIN:0,SEARCH:1,MATERIALS:2,CHEMICALS:3},p=function(e){switch(e){case h.MAIN:return(0,r.jsx)(b,{});case h.DISK:return(0,r.jsx)(c.DataDiskMenu,{});case h.ANALYZE:return(0,r.jsx)(a.AnalyzerMenu,{});case h.LATHE:case h.IMPRINTER:return(0,r.jsx)(s.LatheMenu,{});case h.SETTINGS:return(0,r.jsx)(d.SettingsMenu,{});default:return"UNKNOWN MENU"}},x=function(e){var n=(0,o.Oc)(),t=n.act,i=n.data.menu,l=e.menu,a=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["menu"]);return(0,r.jsx)(f,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({selected:i===l,onClick:function(){return t("nav",{menu:l})}},a))},g=function(e){var n=(0,o.Oc)(),t=(n.act,n.data);if(!t.linked)return(0,r.jsx)(u.LinkMenu,{});var a=t.menu,c=t.linked_analyzer,s=t.linked_lathe,d=t.linked_imprinter;return t.wait_message,(0,r.jsx)(l.p8,{width:800,height:550,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.az,{className:"RndConsole",children:[(0,r.jsxs)(i.tU,{children:[(0,r.jsx)(x,{icon:"flask",menu:h.MAIN,children:"Research"}),!!c&&(0,r.jsx)(x,{icon:"microscope",menu:h.ANALYZE,children:"Analyze"}),!!s&&(0,r.jsx)(x,{icon:"print",menu:h.LATHE,children:"Protolathe"}),!!d&&(0,r.jsx)(x,{icon:"memory",menu:h.IMPRINTER,children:"Imprinter"}),(0,r.jsx)(x,{icon:"floppy-disk",menu:h.DISK,children:"Disk"}),(0,r.jsx)(x,{icon:"cog",menu:h.SETTINGS,children:"Settings"})]}),p(a),(0,r.jsx)(j,{})]})})})},j=function(e){var n=(0,o.Oc)().data.wait_message;return n?(0,r.jsx)(i.az,{className:"RndConsole__Overlay",children:(0,r.jsx)(i.az,{className:"RndConsole__Overlay__Wrapper",children:(0,r.jsx)(i.IC,{color:"black",children:n})})}):null},b=function(e){var n=(0,o.Oc)().data.tech_levels;return(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.XI,{id:"research-levels",children:[(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{}),(0,r.jsx)(i.XI.Cell,{header:!0,children:"Research Field"}),(0,r.jsx)(i.XI.Cell,{header:!0,children:"Level"})]}),n.map(function(e){var n=e.id,t=e.name,o=e.desc,l=e.level,a=e.ui_icon;return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.$n,{icon:"circle-info",tooltip:o})}),(0,r.jsxs)(i.XI.Cell,{children:[(0,r.jsx)(i.In,{name:a})," ",t]}),(0,r.jsx)(i.XI.Cell,{children:l})]},n)})]})})}},7280:function(e,n,t){"use strict";t.r(n),t.d(n,{RndNetController:()=>d});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=function(e){var n=(0,a.Oc)();(n.act,n.data).ion;var t=u((0,i.useState)(0),2),l=t[0],s=t[1];return(0,r.jsx)(c.p8,{width:900,height:600,children:(0,r.jsxs)(c.p8.Content,{scrollable:!0,children:[(0,r.jsxs)(o.tU,{children:[(0,r.jsx)(o.tU.Tab,{icon:"wrench",selected:0===l,onClick:function(){return s(0)},children:"Network Management"},"ConfigPage"),(0,r.jsx)(o.tU.Tab,{icon:"floppy-disk",selected:1===l,onClick:function(){return s(1)},children:"Design Management"},"DesignPage")]}),function(e){switch(e){case 0:return(0,r.jsx)(f,{});case 1:return(0,r.jsx)(h,{});default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}(l)]})})},f=function(e){var n=(0,a.Oc)(),t=n.act,l=n.data,c=u((0,i.useState)("ALL"),2),s=c[0],d=c[1],f=l.network_password,h=l.network_name,m=l.devices,p=[];p.push(s),"MSC"===s&&(p.push("BCK"),p.push("PGN"));var x="ALL"===s?m:m.filter(function(e){return p.indexOf(e.dclass)>-1});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.wn,{title:"Network Configuration",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Network Name",children:(0,r.jsx)(o.$n,{content:h||"Unset",selected:h,icon:"edit",onClick:function(){return t("network_name")}})}),(0,r.jsx)(o.Ki.Item,{label:"Network Password",children:(0,r.jsx)(o.$n,{content:f||"Unset",selected:f,icon:"lock",onClick:function(){return t("network_password")}})})]})}),(0,r.jsxs)(o.wn,{title:"Connected Devices",children:[(0,r.jsxs)(o.tU,{children:[(0,r.jsx)(o.tU.Tab,{selected:"ALL"===s,onClick:function(){return d("ALL")},icon:"network-wired",children:"All Devices"},"AllDevices"),(0,r.jsx)(o.tU.Tab,{selected:"SRV"===s,onClick:function(){return d("SRV")},icon:"server",children:"R&D Servers"},"RNDServers"),(0,r.jsx)(o.tU.Tab,{selected:"RDC"===s,onClick:function(){return d("RDC")},icon:"desktop",children:"R&D Consoles"},"RDConsoles"),(0,r.jsx)(o.tU.Tab,{selected:"MFB"===s,onClick:function(){return d("MFB")},icon:"industry",children:"Exosuit Fabricators"},"Mechfabs"),(0,r.jsx)(o.tU.Tab,{selected:"MSC"===s,onClick:function(){return d("MSC")},icon:"microchip",children:"Miscellaneous Devices"},"Misc")]}),(0,r.jsxs)(o.XI,{m:"0.5rem",children:[(0,r.jsxs)(o.XI.Row,{header:!0,children:[(0,r.jsx)(o.XI.Cell,{children:"Device Name"}),(0,r.jsx)(o.XI.Cell,{children:"Device ID"}),(0,r.jsx)(o.XI.Cell,{children:"Unlink"})]}),x.map(function(e){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e.name}),(0,r.jsx)(o.XI.Cell,{children:e.id}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.$n,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){return t("unlink_device",{dclass:e.dclass,uid:e.id})}})})]},e.id)})]})]})]})},h=function(e){var n=(0,a.Oc)(),t=n.act,c=n.data.designs,s=u((0,i.useState)(""),2),d=s[0],f=s[1];return(0,r.jsxs)(o.wn,{title:"Design Management",children:[(0,r.jsx)(o.pd,{fluid:!0,placeholder:"Search for designs",mb:2,onChange:function(e){return f(e)}}),c.filter((0,l.XZ)(d,function(e){return e.name})).map(function(e){return(0,r.jsx)(o.$n.Checkbox,{fluid:!0,content:e.name,checked:!e.blacklisted,onClick:function(){return t(e.blacklisted?"unblacklist_design":"blacklist_design",{d_uid:e.uid})}},e.name)})]})}},5156:function(e,n,t){"use strict";t.r(n),t.d(n,{RndServer:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,u=a.active,d=a.network_name;return(0,r.jsx)(l.p8,{width:600,height:500,resizable:!0,children:(0,r.jsxs)(l.p8.Content,{scrollable:!0,children:[(0,r.jsx)(i.wn,{title:"Server Configuration",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Machine power",children:(0,r.jsx)(i.$n,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){return t("toggle_active")}})}),(0,r.jsx)(i.Ki.Item,{label:"Link status",children:null===d?(0,r.jsx)(i.az,{color:"red",children:"Unlinked"}):(0,r.jsx)(i.az,{color:"green",children:"Linked"})})]})}),null===d?(0,r.jsx)(s,{}):(0,r.jsx)(c,{})]})})},c=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.network_name;return(0,r.jsx)(i.wn,{title:"Network Info",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Connected network ID",children:l}),(0,r.jsx)(i.Ki.Item,{label:"Unlink",children:(0,r.jsx)(i.$n,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){return t("unlink")}})})]})})},s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.controllers;return(0,r.jsx)(i.wn,{title:"Detected Cores",children:(0,r.jsxs)(i.XI,{m:"0.5rem",children:[(0,r.jsxs)(i.XI.Row,{header:!0,children:[(0,r.jsx)(i.XI.Cell,{children:"Network ID"}),(0,r.jsx)(i.XI.Cell,{children:"Link"})]}),l.map(function(e){return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:e.netname}),(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.$n,{content:"Link",icon:"link",onClick:function(){return t("link",{addr:e.addr})}})})]},e.addr)})]})})}},7868:function(e,n,t){"use strict";t.r(n),t.d(n,{RobotSelfDiagnosis:()=>s});var r=t(8138),i=t(7790),o=t(3268),l=t(2864),a=t(3384),c=function(e,n){var t=e/n;return t<=.2?"good":t<=.5?"average":"bad"},s=function(e){var n=(0,l.Oc)().data.component_data;return(0,r.jsx)(a.p8,{width:280,height:480,children:(0,r.jsx)(a.p8.Content,{scrollable:!0,children:n.map(function(e,n){return(0,r.jsx)(i.wn,{title:(0,o.ZH)(e.name),children:e.installed<=0?(0,r.jsx)(i.IC,{m:-.5,height:3.5,color:"red",style:{fontStyle:"normal"},children:(0,r.jsx)(i.so,{height:"100%",children:(0,r.jsx)(i.so.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:-1===e.installed?"Destroyed":"Missing"})})}):(0,r.jsxs)(i.so,{children:[(0,r.jsx)(i.so.Item,{width:"72%",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Brute Damage",color:c(e.brute_damage,e.max_damage),children:e.brute_damage}),(0,r.jsx)(i.Ki.Item,{label:"Burn Damage",color:c(e.electronic_damage,e.max_damage),children:e.electronic_damage})]})}),(0,r.jsx)(i.so.Item,{width:"50%",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Powered",color:e.powered?"good":"bad",children:e.powered?"Yes":"No"}),(0,r.jsx)(i.Ki.Item,{label:"Enabled",color:e.status?"good":"bad",children:e.status?"Yes":"No"})]})})]})},n)})})})}},1696:function(e,n,t){"use strict";t.r(n),t.d(n,{RoboticsControlConsole:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,s=a.can_hack,u=a.safety,d=a.show_lock_all,f=a.cyborgs;return(0,r.jsx)(l.p8,{width:500,height:460,children:(0,r.jsxs)(l.p8.Content,{scrollable:!0,children:[!!d&&(0,r.jsxs)(i.wn,{title:"Emergency Lock Down",children:[(0,r.jsx)(i.$n,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return t("arm",{})}}),(0,r.jsx)(i.$n,{icon:"lock",disabled:u,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){return t("masslock",{})}})]}),(0,r.jsx)(c,{cyborgs:void 0===f?[]:f,can_hack:s})]})})},c=function(e){var n=e.cyborgs;e.can_hack;var t=(0,o.Oc)(),l=t.act,a=t.data,c="Detonate";return(a.detonate_cooldown>0&&(c+=" ("+a.detonate_cooldown+"s)"),n.length)?n.map(function(e){return(0,r.jsx)(i.wn,{title:e.name,buttons:(0,r.jsxs)(r.Fragment,{children:[!!e.hackable&&!e.emagged&&(0,r.jsx)(i.$n,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return l("hackbot",{uid:e.uid})}}),(0,r.jsx)(i.$n.Confirm,{icon:e.locked_down?"unlock":"lock",color:e.locked_down?"good":"default",content:e.locked_down?"Release":"Lockdown",disabled:!a.auth,onClick:function(){return l("stopbot",{uid:e.uid})}}),(0,r.jsx)(i.$n.Confirm,{icon:"bomb",content:c,disabled:!a.auth||a.detonate_cooldown>0,color:"bad",onClick:function(){return l("killbot",{uid:e.uid})}})]}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Status",children:(0,r.jsx)(i.az,{color:e.status?"bad":e.locked_down?"average":"good",children:e.status?"Not Responding":e.locked_down?"Locked Down":"Nominal"})}),(0,r.jsx)(i.Ki.Item,{label:"Location",children:(0,r.jsx)(i.az,{children:e.locstring})}),(0,r.jsx)(i.Ki.Item,{label:"Integrity",children:(0,r.jsx)(i.z2,{color:e.health>50?"good":"bad",value:e.health/100})}),"number"==typeof e.charge&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ki.Item,{label:"Cell Charge",children:(0,r.jsx)(i.z2,{color:e.charge>30?"good":"bad",value:e.charge/100})}),(0,r.jsx)(i.Ki.Item,{label:"Cell Capacity",children:(0,r.jsx)(i.az,{color:e.cell_capacity<3e4?"average":"good",children:e.cell_capacity})})]})||(0,r.jsx)(i.Ki.Item,{label:"Cell",children:(0,r.jsx)(i.az,{color:"bad",children:"No Power Cell"})}),!!e.is_hacked&&(0,r.jsx)(i.Ki.Item,{label:"Safeties",children:(0,r.jsx)(i.az,{color:"bad",children:"DISABLED"})}),(0,r.jsx)(i.Ki.Item,{label:"Module",children:e.module}),(0,r.jsx)(i.Ki.Item,{label:"Master AI",children:(0,r.jsx)(i.az,{color:e.synchronization?"default":"average",children:e.synchronization||"None"})})]})},e.uid)}):(0,r.jsx)(i.IC,{children:"No cyborg units detected within access parameters."})}},5826:function(e,n,t){"use strict";t.r(n),t.d(n,{Safe:()=>c});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384),c=function(e){var n=(0,l.Oc)(),t=(n.act,n.data),i=t.dial,c=t.open;return t.locked,t.contents,(0,r.jsx)(a.p8,{theme:"safe",width:600,height:800,children:(0,r.jsxs)(a.p8.Content,{children:[(0,r.jsxs)(o.az,{className:"Safe--engraving",children:[(0,r.jsx)(s,{}),(0,r.jsxs)(o.az,{children:[(0,r.jsx)(o.az,{className:"Safe--engraving--hinge",top:"25%"}),(0,r.jsx)(o.az,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,r.jsx)(o.In,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,r.jsx)("br",{}),c?(0,r.jsx)(u,{}):(0,r.jsx)(o.az,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*i+"deg)",zIndex:0}})]}),!c&&(0,r.jsx)(d,{})]})})},s=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.dial,c=i.open,s=i.locked,u=function(e,n){return(0,r.jsx)(o.$n,{disabled:c||n&&!s,icon:"arrow-"+(n?"right":"left"),content:(n?"Right":"Left")+" "+e,iconRight:n,onClick:function(){return t(n?"turnleft":"turnright",{num:e})},style:{zIndex:10}})};return(0,r.jsxs)(o.az,{className:"Safe--dialer",children:[(0,r.jsx)(o.$n,{disabled:s,icon:c?"lock":"lock-open",content:c?"Close":"Open",mb:"0.5rem",onClick:function(){return t("open")}}),(0,r.jsx)("br",{}),(0,r.jsx)(o.az,{position:"absolute",children:[u(50),u(10),u(1)]}),(0,r.jsx)(o.az,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[u(1,!0),u(10,!0),u(50,!0)]}),(0,r.jsx)(o.az,{className:"Safe--dialer--number",children:a})]})},u=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data.contents;return(0,r.jsx)(o.az,{className:"Safe--contents",overflow:"auto",children:a.map(function(e,n){return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsxs)(o.$n,{mb:"0.5rem",onClick:function(){return t("retrieve",{index:n+1})},children:[(0,r.jsx)(o.az,{as:"img",src:e.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),e.name]}),(0,r.jsx)("br",{})]},e)})})},d=function(e){return(0,r.jsxs)(o.wn,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,r.jsxs)(o.az,{children:["1. Turn the dial left to the first number.",(0,r.jsx)("br",{}),"2. Turn the dial right to the second number.",(0,r.jsx)("br",{}),"3. Continue repeating this process for each number, switching between left and right each time.",(0,r.jsx)("br",{}),"4. Open the safe."]}),(0,r.jsx)(o.az,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},1892:function(e,n,t){"use strict";t.r(n),t.d(n,{SatelliteControl:()=>u,SatelliteControlFooter:()=>h,SatelliteControlMapView:()=>f,SatelliteControlSatellitesList:()=>d});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(7946),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var u=function(e){var n,t=(0,l.Oc)(),a=t.act,u=t.data,m=(n=(0,i.useState)(u.tabIndex),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return s(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=m[0],x=m[1],g=function(e){x(e),a("set_tab_index",{tab_index:e})};return(0,r.jsx)(c.p8,{width:800,height:600,children:(0,r.jsx)(c.p8.Content,{children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,scrollable:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsxs)(o.tU,{children:[(0,r.jsx)(o.tU.Tab,{icon:"table",selected:0===p,onClick:function(){return g(0)},children:"Satellites"},"Satellites"),(0,r.jsx)(o.tU.Tab,{icon:"map-marked-alt",selected:1===p,onClick:function(){return g(1)},children:"Map View"},"MapView")]})}),function(e){switch(e){case 0:return(0,r.jsx)(d,{});case 1:return(0,r.jsx)(f,{});default:return"WE SHOULDN'T BE HERE!"}}(p),(0,r.jsx)(h,{})]})})})},d=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data.satellites;return(0,r.jsx)(o.wn,{title:"Satellite Network Control",children:(0,r.jsx)(o.Ki,{children:i.map(function(e){return(0,r.jsxs)(o.Ki.Item,{label:"#"+e.id,children:[e.mode," ",(0,r.jsx)(o.$n,{content:e.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){return t("toggle",{id:e.id})}})]},e.id)})})})},f=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,c=i.satellites,s=i.has_goal,u=i.defended,d=i.collisions,f=i.fake_meteors,h=i.zoom,m=i.offsetX,p=i.offsetY,x=0;return(0,r.jsx)(o.az,{height:"100vh",mb:"0.5rem",overflow:"hidden",children:(0,r.jsxs)(a.tx,{zoom:h,offsetX:m,offsetY:p,onZoom:function(e){return t("set_zoom",{zoom:e})},onOffsetChange:function(e,n){return t("set_offset",{offset_x:n.offsetX,offset_y:n.offsetY})},children:[c.map(function(e){return(0,r.jsx)(a.tx.MarkerIcon,{x:e.x,y:e.y,icon:"satellite",tooltip:e.active?"Shield Satellite":"Inactive Shield Satellite",color:e.active?"white":"grey",onClick:function(){return t("toggle",{id:e.id})}},x++)}),s&&u.map(function(e){return(0,r.jsx)(a.tx.MarkerIcon,{x:e.x,y:e.y,icon:"circle",tooltip:"Successful Defense",color:"blue"},x++)}),s&&d.map(function(e){return(0,r.jsx)(a.tx.MarkerIcon,{x:e.x,y:e.y,icon:"x",tooltip:"Meteor Hit",color:"red"},x++)}),s&&f.map(function(e){return(0,r.jsx)(a.tx.MarkerIcon,{x:e.x,y:e.y,icon:"meteor",tooltip:"Incoming Meteor",color:"white"},x++)})]})})},h=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.notice,c=i.notice_color,s=i.has_goal,u=i.coverage,d=i.coverage_goal,f=i.testing;return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.wn,{title:"Station Shield Coverage",children:(0,r.jsxs)(o.BJ,{fill:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:1,children:(0,r.jsxs)(o.z2,{color:u>=d?"good":"average",value:u,maxValue:100,children:[u,"%"]})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{content:"Check coverage",disabled:f,onClick:function(){return t("begin_test")}})})]})})}),(0,r.jsx)(o.BJ.Item,{color:c,children:a})]})}},7943:function(e,n,t){"use strict";t.r(n),t.d(n,{SecureStorage:()=>s});var r=t(8138),i=t(7790),o=t(7686),l=t(5490),a=t(2864),c=t(3384),s=function(e){return(0,r.jsx)(c.p8,{theme:"securestorage",height:500,width:280,children:(0,r.jsx)(c.p8.Content,{children:(0,r.jsx)(i.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(d,{})})})})})},u=function(e){var n=(0,a.Oc)().act,t=window.event?e.which:e.keyCode;if(t===o.Ri){e.preventDefault(),n("keypad",{digit:"E"});return}if(t===o.s6){e.preventDefault(),n("keypad",{digit:"C"});return}if(t===o.ye){e.preventDefault(),n("backspace");return}if(t>=o.Pm&&t<=o.Wy){e.preventDefault(),n("keypad",{digit:t-o.Pm});return}if(t>=o.hr&&t<=o.C){e.preventDefault(),n("keypad",{digit:t-o.hr});return}},d=function(e){var n=(0,a.Oc)(),t=(n.act,n.data),o=t.locked,c=t.no_passcode,s=t.emagged,d=t.user_entered_code;return(0,r.jsx)(i.wn,{fill:!0,className:"SecureStorage",onKeyDown:function(e){return u(e)},children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{height:7.3,children:(0,r.jsx)(i.az,{className:(0,l.Ly)(["SecureStorage__displayBox","SecureStorage__displayBox--"+(c?"":o?"bad":"good")]),height:"100%",children:s?"ERROR":d})}),(0,r.jsx)(i.BJ.Item,{align:"center",children:(0,r.jsx)(i.XI,{collapsing:!0,children:[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]].map(function(e){return(0,r.jsx)(i.XI.Row,{children:e.map(function(e){return(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(f,{number:e})},e)})},e[0])})})})]})})},f=function(e){var n=(0,a.Oc)(),t=n.act;n.data;var o=e.number;return(0,r.jsx)(i.$n,{bold:!0,fluid:!0,textAlign:"center",fontSize:"55px",lineHeight:1.25,width:"80px",className:(0,l.Ly)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+o]),onClick:function(){return t("keypad",{digit:o})},children:o})}},8589:function(e,n,t){"use strict";t.r(n),t.d(n,{SecurityRecords:()=>g});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864),c=t(3384),s=t(4744),u=t(7352),d=t(736),f=t(2264),h=t(7482);function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},x=function(e){(0,s.modalOpen)("edit",{field:e.edit,value:e.value})},g=function(e){var n,t=(0,a.Oc)(),i=(t.act,t.data),l=i.loginState,f=i.currentPage;return l.logged_in?(1===f?n=(0,r.jsx)(b,{}):2===f&&(n=(0,r.jsx)(k,{})),(0,r.jsxs)(c.p8,{theme:"security",width:800,height:900,children:[(0,r.jsx)(s.ComplexModal,{}),(0,r.jsx)(c.p8.Content,{children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(u.LoginInfo,{}),(0,r.jsx)(h.TemporaryNotice,{}),(0,r.jsx)(j,{}),n]})})]})):(0,r.jsx)(c.p8,{theme:"security",width:800,height:900,children:(0,r.jsx)(c.p8.Content,{children:(0,r.jsx)(d.LoginScreen,{})})})},j=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data,l=i.currentPage,c=i.general;return(0,r.jsx)(o.BJ.Item,{m:0,children:(0,r.jsxs)(o.tU,{children:[(0,r.jsx)(o.tU.Tab,{icon:"list",selected:1===l,onClick:function(){return t("page",{page:1})},children:"List Records"}),2===l&&c&&!c.empty&&(0,r.jsxs)(o.tU.Tab,{icon:"file",selected:2===l,children:["Record: ",c.fields[0].value]})]})})},b=function(e){var n,t=(n=(0,i.useState)(""),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return m(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=t[0],a=t[1];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(w,{setSearchText:a})}),(0,r.jsx)(o.BJ.Item,{grow:!0,mt:.5,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,children:(0,r.jsx)(f.default.Default,{sortId:"name",children:(0,r.jsx)(y,{searchText:l})})})})]})},y=function(e){var n=(0,a.Oc)(),t=n.act,c=n.data.records,s=e.searchText,u=(0,i.useContext)(f.default),d=u.sortId,h=u.sortOrder;return(0,r.jsxs)(o.XI,{className:"SecurityRecords__list",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(v,{id:"name",children:"Name"}),(0,r.jsx)(v,{id:"id",children:"ID"}),(0,r.jsx)(v,{id:"rank",children:"Assignment"}),(0,r.jsx)(v,{id:"fingerprint",children:"Fingerprint"}),(0,r.jsx)(v,{id:"status",children:"Criminal Status"})]}),c.filter((0,l.XZ)(s,function(e){return e.name+"|"+e.id+"|"+e.rank+"|"+e.fingerprint+"|"+e.status})).sort(function(e,n){return e[d].localeCompare(n[d])*(h?1:-1)}).map(function(e){return(0,r.jsxs)(o.XI.Row,{className:"SecurityRecords__listRow--"+p[e.status],onClick:function(){return t("view",{uid_gen:e.uid_gen,uid_sec:e.uid_sec})},children:[(0,r.jsxs)(o.XI.Cell,{children:[(0,r.jsx)(o.In,{name:"user"})," ",e.name]}),(0,r.jsx)(o.XI.Cell,{children:e.id}),(0,r.jsx)(o.XI.Cell,{children:e.rank}),(0,r.jsx)(o.XI.Cell,{children:e.fingerprint}),(0,r.jsx)(o.XI.Cell,{children:e.status})]},e.id)})]})},v=function(e){var n=(0,i.useContext)(f.default),t=n.sortId,l=n.setSortId,a=n.sortOrder,c=n.setSortOrder,s=e.id,u=e.children;return(0,r.jsx)(o.XI.Cell,{children:(0,r.jsxs)(o.$n,{color:t!==s&&"transparent",fluid:!0,onClick:function(){t===s?c(!a):(l(s),c(!0))},children:[u,t===s&&(0,r.jsx)(o.In,{name:a?"sort-up":"sort-down",ml:"0.25rem;"})]})})},w=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data.isPrinting,l=e.setSearchText;return(0,r.jsxs)(o.BJ,{fill:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){return t("new_general")}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{disabled:i,icon:i?"spinner":"print",iconSpin:!!i,content:"Print Cell Log",onClick:function(){return(0,s.modalOpen)("print_cell_log")}})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.pd,{fluid:!0,placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",onChange:function(e){return l(e)}})})]})},k=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data,c=i.isPrinting,s=i.general,u=i.security;return s&&s.fields?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.$n,{disabled:c,icon:c?"spinner":"print",iconSpin:!!c,content:"Print Record",onClick:function(){return t("print_record")}}),(0,r.jsx)(o.$n.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){return t("delete_general")}})]}),children:(0,r.jsx)(_,{})})}),u&&u.fields?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,r.jsx)(o.$n.Confirm,{icon:"trash",disabled:u.empty,content:"Delete Record",onClick:function(){return t("delete_security")}}),children:(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.Ki,{children:u.fields.map(function(e,n){return(0,r.jsxs)(o.Ki.Item,{label:e.field,preserveWhitespace:!0,children:[(0,l.jT)(e.value),!!e.edit&&(0,r.jsx)(o.$n,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return x(e)}})]},n)})})})})}),(0,r.jsx)(C,{})]}):(0,r.jsx)(o.BJ.Item,{grow:!0,color:"bad",children:(0,r.jsx)(o.wn,{fill:!0,title:"Security Data",buttons:(0,r.jsx)(o.$n,{icon:"pen",content:"Create New Record",onClick:function(){return t("new_security")}}),children:(0,r.jsx)(o.BJ,{fill:!0,children:(0,r.jsxs)(o.BJ.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,r.jsxs)(o.In.Stack,{children:[(0,r.jsx)(o.In,{name:"scroll",size:5,color:"gray"}),(0,r.jsx)(o.In,{name:"slash",size:5,color:"red"})]}),(0,r.jsx)("br",{}),"Security records lost!"]})})})})]}):(0,r.jsx)(o.az,{color:"bad",children:"General records lost!"})},_=function(e){var n=(0,a.Oc)().data.general;return n&&n.fields?(0,r.jsxs)(o.BJ,{children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.Ki,{children:n.fields.map(function(e,n){return(0,r.jsxs)(o.Ki.Item,{label:e.field,preserveWhitespace:!0,children:[(0,l.jT)(""+e.value),!!e.edit&&(0,r.jsx)(o.$n,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return x(e)}})]},n)})})}),!!n.has_photos&&n.photos.map(function(e,n){return(0,r.jsxs)(o.BJ.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,r.jsx)("img",{src:e,style:{width:"96px",marginTop:"5rem",marginBottom:"0.5rem",imageRendering:"pixelated"}}),(0,r.jsx)("br",{}),"Photo #",n+1]},n)})]}):(0,r.jsx)(o.BJ,{fill:!0,vertical:!0,children:(0,r.jsx)(o.BJ.Item,{grow:!0,color:"bad",children:(0,r.jsx)(o.wn,{fill:!0,children:"General records lost!"})})})},C=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data.security;return(0,r.jsx)(o.BJ.Item,{height:"150px",children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,r.jsx)(o.$n,{icon:"comment",content:"Add Entry",onClick:function(){return(0,s.modalOpen)("comment_add")}}),children:0===i.comments.length?(0,r.jsx)(o.az,{color:"label",children:"No comments found."}):i.comments.map(function(e,n){return(0,r.jsxs)(o.az,{preserveWhitespace:!0,children:[(0,r.jsx)(o.az,{color:"label",inline:!0,children:e.header||"Auto-generated"}),(0,r.jsx)("br",{}),e.text||e,(0,r.jsx)(o.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return t("comment_delete",{id:n+1})}})]},n)})})})}},6906:function(e,n,t){"use strict";t.r(n),t.d(n,{SeedExtractor:()=>f});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384),c=t(4744);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=(0,i.createContext)({searchTextState:["",function(){}],vendAmountState:[1,function(){}],sortIdState:["name",function(){}],sortOrderState:[!0,function(){}]}),f=function(e){var n=(0,i.useState)(""),t=(0,i.useState)(1),l=(0,i.useState)("name"),s=(0,i.useState)(!0);return(0,r.jsxs)(a.p8,{theme:"hydroponics",width:800,height:400,children:[(0,r.jsx)(c.ComplexModal,{}),(0,r.jsx)(a.p8.Content,{children:(0,r.jsx)(d.Provider,{value:{searchTextState:n,vendAmountState:t,sortIdState:l,sortOrderState:s},children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(x,{})}),(0,r.jsx)(m,{})]})})})]})},h=function(e){var n=function(e,n){return e===n},t=function(e,n){return e>=n},r=function(e,n){return e<=n},i=e.split(" "),o=[],l=!0,a=!1,c=void 0;try{for(var s,u=i[Symbol.iterator]();!(l=(s=u.next()).done);l=!0){var d=function(){var e=s.value.split(":");if(0===e.length)return"continue";if(1===e.length)return o.push(function(n){return(n.name+" ("+n.variant+")").toLocaleLowerCase().includes(e[0].toLocaleLowerCase())}),"continue";if(e.length>2)return{v:function(e){return!1}};var i=void 0,l=n;if("-"===e[1][e[1].length-1]?(l=r,i=Number(e[1].substring(0,e[1].length-1))):"+"===e[1][e[1].length-1]?(l=t,i=Number(e[1].substring(0,e[1].length-1))):i=Number(e[1]),isNaN(i))return{v:function(e){return!1}};switch(e[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":o.push(function(e){return l(e.lifespan,i)});break;case"e":case"end":case"endurance":o.push(function(e){return l(e.endurance,i)});break;case"m":case"mat":case"maturation":o.push(function(e){return l(e.maturation,i)});break;case"pr":case"prod":case"production":o.push(function(e){return l(e.production,i)});break;case"y":case"yield":o.push(function(e){return l(e.yield,i)});break;case"po":case"pot":case"potency":o.push(function(e){return l(e.potency,i)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":o.push(function(e){return l(e.amount,i)});break;default:return{v:function(e){return!1}}}}();if("object"==(d&&"undefined"!=typeof Symbol&&d.constructor===Symbol?"symbol":typeof d))return d.v}}catch(e){a=!0,c=e}finally{try{l||null==u.return||u.return()}finally{if(a)throw c}}return function(e){var n=!0,t=!1,r=void 0;try{for(var i,l=o[Symbol.iterator]();!(n=(i=l.next()).done);n=!0)if(!(0,i.value)(e))return!1}catch(e){t=!0,r=e}finally{try{n||null==l.return||l.return()}finally{if(t)throw r}}return!0}},m=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data,c=(0,i.useContext)(d),s=c.searchTextState,f=c.vendAmountState,m=c.sortIdState,x=c.sortOrderState,g=u(s,2),j=g[0];g[1];var b=u(f,2),y=b[0];b[1];var v=u(m,2),w=v[0];v[1];var k=u(x,2),_=k[0];k[1];var C=a.icons,I=a.seeds;return(0,r.jsx)(o.BJ.Item,{grow:!0,mt:.5,children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,children:(0,r.jsxs)(o.XI,{className:"SeedExtractor__list",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(p,{id:"name",children:"Name"}),(0,r.jsx)(p,{id:"lifespan",children:"Lifespan"}),(0,r.jsx)(p,{id:"endurance",children:"Endurance"}),(0,r.jsx)(p,{id:"maturation",children:"Maturation"}),(0,r.jsx)(p,{id:"production",children:"Production"}),(0,r.jsx)(p,{id:"yield",children:"Yield"}),(0,r.jsx)(p,{id:"potency",children:"Potency"}),(0,r.jsx)(p,{id:"amount",children:"Stock"})]}),0===I.length?"No seeds present.":I.filter(h(j)).sort(function(e,n){var t=_?1:-1;return"number"==typeof e[w]?(e[w]-n[w])*t:e[w].localeCompare(n[w])*t}).map(function(e){return(0,r.jsxs)(o.XI.Row,{onClick:function(){return t("vend",{seed_id:e.id,seed_variant:e.variant,vend_amount:y})},children:[(0,r.jsxs)(o.XI.Cell,{children:[(0,r.jsx)("img",{src:"data:image/jpeg;base64,".concat(C[e.image]),style:{verticalAlign:"middle",width:"32px",margin:"0px"}}),e.name]}),(0,r.jsx)(o.XI.Cell,{children:e.lifespan}),(0,r.jsx)(o.XI.Cell,{children:e.endurance}),(0,r.jsx)(o.XI.Cell,{children:e.maturation}),(0,r.jsx)(o.XI.Cell,{children:e.production}),(0,r.jsx)(o.XI.Cell,{children:e.yield}),(0,r.jsx)(o.XI.Cell,{children:e.potency}),(0,r.jsx)(o.XI.Cell,{children:e.amount})]},e.id)})]})})})},p=function(e){var n=(0,i.useContext)(d),t=n.sortIdState,l=n.sortOrderState,a=u(t,2),c=a[0],s=a[1],f=u(l,2),h=f[0],m=f[1],p=e.id,x=e.children;return(0,r.jsx)(o.XI.Cell,{children:(0,r.jsxs)(o.$n,{color:c!==p&&"transparent",fluid:!0,onClick:function(){c===p?m(!h):(s(p),m(!0))},children:[x,c===p&&(0,r.jsx)(o.In,{name:h?"sort-up":"sort-down",ml:"0.25rem;"})]})})},x=function(e){var n=(0,i.useContext)(d),t=n.searchTextState,l=n.vendAmountState,a=u(t,2),c=a[0],s=a[1],f=u(l,2),h=f[0],m=f[1];return(0,r.jsxs)(o.BJ,{fill:!0,children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.pd,{placeholder:"Search by name, variant, potency:70+, production:3-, ...",fluid:!0,onChange:function(e){return s(e)},value:c})}),(0,r.jsxs)(o.BJ.Item,{children:["Vend amount:",(0,r.jsx)(o.pd,{placeholder:"1",onChange:function(e){return m(Number(e)>=1?Number(e):1)},value:"".concat(h)})]})]})}},631:function(e,n,t){"use strict";t.r(n),t.d(n,{ShuttleConsole:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data;return(0,r.jsx)(l.p8,{width:350,height:150,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Location",children:a.status?a.status:(0,r.jsx)(i.IC,{color:"red",children:"Shuttle Missing"})}),!!a.shuttle&&(!!a.docking_ports_len&&(0,r.jsx)(i.Ki.Item,{label:"Send to ",children:a.docking_ports.map(function(e){return(0,r.jsx)(i.$n,{icon:"chevron-right",content:e.name,onClick:function(){return t("move",{move:e.id})}},e.name)})})||(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ki.Item,{label:"Status",color:"red",children:(0,r.jsx)(i.IC,{color:"red",children:"Shuttle Locked"})}),!!a.admin_controlled&&(0,r.jsx)(i.Ki.Item,{label:"Authorization",children:(0,r.jsx)(i.$n,{icon:"exclamation-circle",content:"Request Authorization",disabled:!a.status,onClick:function(){return t("request")}})})]}))]})})})})}},5060:function(e,n,t){"use strict";t.r(n),t.d(n,{ShuttleManipulator:()=>s});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var s=function(e){var n,t=(n=(0,i.useState)(0),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return c(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=t[0],s=t[1];return(0,r.jsx)(a.p8,{width:650,height:700,children:(0,r.jsx)(a.p8.Content,{scrollable:!0,children:(0,r.jsxs)(o.az,{fillPositionedParent:!0,children:[(0,r.jsxs)(o.tU,{children:[(0,r.jsx)(o.tU.Tab,{selected:0===l,onClick:function(){return s(0)},icon:"info-circle",children:"Status"},"Status"),(0,r.jsx)(o.tU.Tab,{selected:1===l,onClick:function(){return s(1)},icon:"file-import",children:"Templates"},"Templates"),(0,r.jsx)(o.tU.Tab,{selected:2===l,onClick:function(){return s(2)},icon:"tools",children:"Modification"},"Modification")]}),function(e){switch(e){case 0:return(0,r.jsx)(u,{});case 1:return(0,r.jsx)(d,{});case 2:return(0,r.jsx)(f,{});default:return"WE SHOULDN'T BE HERE!"}}(l)]})})})},u=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data.shuttles;return(0,r.jsx)(o.az,{children:i.map(function(e){return(0,r.jsx)(o.wn,{title:e.name,children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"ID",children:e.id}),(0,r.jsx)(o.Ki.Item,{label:"Shuttle Timer",children:e.timeleft}),(0,r.jsx)(o.Ki.Item,{label:"Shuttle Mode",children:e.mode}),(0,r.jsx)(o.Ki.Item,{label:"Shuttle Status",children:e.status}),(0,r.jsxs)(o.Ki.Item,{label:"Actions",children:[(0,r.jsx)(o.$n,{content:"Jump To",icon:"location-arrow",onClick:function(){return t("jump_to",{type:"mobile",id:e.id})}}),(0,r.jsx)(o.$n,{content:"Fast Travel",icon:"fast-forward",onClick:function(){return t("fast_travel",{id:e.id})}})]})]})},e.name)})})},d=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.templates_tabs,c=i.existing_shuttle,s=i.templates;return(0,r.jsxs)(o.az,{children:[(0,r.jsx)(o.tU,{children:a.map(function(e){return(0,r.jsx)(o.tU.Tab,{selected:e===c.id,icon:"file",onClick:function(){return t("select_template_category",{cat:e})},children:e},e)})}),!!c&&s[c.id].templates.map(function(e){return(0,r.jsx)(o.wn,{title:e.name,children:(0,r.jsxs)(o.Ki,{children:[e.description&&(0,r.jsx)(o.Ki.Item,{label:"Description",children:e.description}),e.admin_notes&&(0,r.jsx)(o.Ki.Item,{label:"Admin Notes",children:e.admin_notes}),(0,r.jsx)(o.Ki.Item,{label:"Actions",children:(0,r.jsx)(o.$n,{content:"Load Template",icon:"download",onClick:function(){return t("select_template",{shuttle_id:e.shuttle_id})}})})]})},e.name)})]})},f=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.existing_shuttle,c=i.selected;return(0,r.jsxs)(o.az,{children:[a?(0,r.jsx)(o.wn,{title:"Selected Shuttle: "+a.name,children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Status",children:a.status}),a.timer&&(0,r.jsx)(o.Ki.Item,{label:"Timer",children:a.timeleft}),(0,r.jsx)(o.Ki.Item,{label:"Actions",children:(0,r.jsx)(o.$n,{content:"Jump To",icon:"location-arrow",onClick:function(){return t("jump_to",{type:"mobile",id:a.id})}})})]})}):(0,r.jsx)(o.wn,{title:"Selected Shuttle: None"}),c?(0,r.jsx)(o.wn,{title:"Selected Template: "+c.name,children:(0,r.jsxs)(o.Ki,{children:[c.description&&(0,r.jsx)(o.Ki.Item,{label:"Description",children:c.description}),c.admin_notes&&(0,r.jsx)(o.Ki.Item,{label:"Admin Notes",children:c.admin_notes}),(0,r.jsxs)(o.Ki.Item,{label:"Actions",children:[(0,r.jsx)(o.$n,{content:"Preview",icon:"eye",onClick:function(){return t("preview",{shuttle_id:c.shuttle_id})}}),(0,r.jsx)(o.$n,{content:"Load",icon:"download",onClick:function(){return t("load",{shuttle_id:c.shuttle_id})}})]})]})}):(0,r.jsx)(o.wn,{title:"Selected Template: None"})]})}},6448:function(e,n,t){"use strict";t.r(n),t.d(n,{SingularityMonitor:()=>c});var r=t(8138),i=t(7790),o=t(6859),l=t(2864),a=t(3384),c=function(e){var n=(0,l.Oc)();return 0===(n.act,n.data).active?(0,r.jsx)(s,{}):(0,r.jsx)(u,{})},s=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data.singularities;return(0,r.jsx)(a.p8,{width:450,height:185,children:(0,r.jsx)(a.p8.Content,{scrollable:!0,children:(0,r.jsx)(i.wn,{fill:!0,title:"Detected Singularities",buttons:(0,r.jsx)(i.$n,{icon:"sync",content:"Refresh",onClick:function(){return t("refresh")}}),children:(0,r.jsx)(i.XI,{children:(void 0===c?[]:c).map(function(e){return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:e.singularity_id+". "+e.area_name}),(0,r.jsx)(i.XI.Cell,{collapsing:!0,color:"label",children:"Stage:"}),(0,r.jsx)(i.XI.Cell,{collapsing:!0,width:"120px",children:(0,r.jsx)(i.z2,{value:e.stage,minValue:0,maxValue:6,ranges:{good:[1,2],average:[3,4],bad:[5,6]},children:(0,o.Mg)(e.stage)})}),(0,r.jsx)(i.XI.Cell,{collapsing:!0,children:(0,r.jsx)(i.$n,{content:"Details",onClick:function(){return t("view",{view:e.singularity_id})}})})]},e.singularity_id)})})})})})},u=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data;c.active;var s=c.singulo_stage,u=c.singulo_potential_stage,d=c.singulo_energy,f=c.singulo_high,h=c.singulo_low,m=c.generators;return(0,r.jsx)(a.p8,{width:550,height:185,children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{width:"270px",children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Metrics",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Stage",children:(0,r.jsx)(i.z2,{value:s,minValue:0,maxValue:6,ranges:{good:[1,2],average:[3,4],bad:[5,6]},children:(0,o.Mg)(s)})}),(0,r.jsx)(i.Ki.Item,{label:"Potential Stage",children:(0,r.jsx)(i.z2,{value:u,minValue:0,maxValue:6,ranges:{good:[1,s+.5],average:[s+.5,s+1.5],bad:[s+1.5,s+2]},children:(0,o.Mg)(u)})}),(0,r.jsx)(i.Ki.Item,{label:"Energy",children:(0,r.jsx)(i.z2,{value:d,minValue:h,maxValue:f,ranges:{good:[.67*f+.33*h,f],average:[.33*f+.67*h,.67*f+.33*h],bad:[h,.33*f+.67*h]},children:(0,o.Mg)(d)+"MJ"})})]})})}),(0,r.jsx)(i.BJ.Item,{grow:!0,basis:0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Field Generators",buttons:(0,r.jsx)(i.$n,{icon:"arrow-left",content:"Back",onClick:function(){return t("back")}}),children:(0,r.jsx)(i.Ki,{children:(void 0===m?[]:m).map(function(e){return(0,r.jsx)(i.Ki.Item,{label:"Remaining Charge",children:(0,r.jsx)(i.z2,{value:e.charge,minValue:0,maxValue:125,ranges:{good:[80,125],average:[30,80],bad:[0,30]},children:(0,o.Mg)(e.charge)})},e.gen_index)})})})})]})})})}},1495:function(e,n,t){"use strict";t.r(n),t.d(n,{Sleeper:()=>f});var r=t(8138),i=t(7790),o=t(6859),l=t(2864),a=t(3384),c=[["good","Alive"],["average","Critical"],["bad","DEAD"]],s=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],u={average:[.25,.5],bad:[.5,1/0]},d=["bad","average","average","good","average","average","bad"],f=function(e){var n=(0,l.Oc)(),t=(n.act,n.data).hasOccupant?(0,r.jsx)(h,{}):(0,r.jsx)(j,{});return(0,r.jsx)(a.p8,{width:550,height:760,children:(0,r.jsx)(a.p8.Content,{scrollable:!0,children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:t}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(x,{})})]})})})},h=function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m,{}),(0,r.jsx)(p,{}),(0,r.jsx)(g,{})]})},m=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data,s=a.occupant,u=a.auto_eject_dead;return(0,r.jsx)(i.wn,{title:"Occupant",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.az,{color:"label",inline:!0,children:"Auto-eject if dead:\xa0"}),(0,r.jsx)(i.$n,{icon:u?"toggle-on":"toggle-off",selected:u,content:u?"On":"Off",onClick:function(){return t("auto_eject_dead_"+(u?"off":"on"))}}),(0,r.jsx)(i.$n,{icon:"user-slash",content:"Eject",onClick:function(){return t("ejectify")}})]}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Name",children:s.name}),(0,r.jsx)(i.Ki.Item,{label:"Health",children:(0,r.jsx)(i.z2,{minValue:0,maxValue:s.maxHealth,value:s.health,ranges:{good:[.5*s.maxHealth,1/0],average:[0,.5*s.maxHealth],bad:[-1/0,0]},children:(0,o.LI)(s.health,0)})}),(0,r.jsx)(i.Ki.Item,{label:"Status",color:c[s.stat][0],children:c[s.stat][1]}),(0,r.jsx)(i.Ki.Item,{label:"Temperature",children:(0,r.jsxs)(i.z2,{minValue:0,maxValue:s.maxTemp,value:s.bodyTemperature,color:d[s.temperatureSuitability+3],children:[(0,o.LI)(s.btCelsius,0),"\xb0C, ",(0,o.LI)(s.btFaren,0),"\xb0F"]})}),!!s.hasBlood&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ki.Item,{label:"Blood Level",children:(0,r.jsxs)(i.z2,{minValue:0,maxValue:s.bloodMax,value:s.bloodLevel,ranges:{bad:[-1/0,.6*s.bloodMax],average:[.6*s.bloodMax,.9*s.bloodMax],good:[.9*s.bloodMax,1/0]},children:[s.bloodPercent,"%, ",s.bloodLevel,"cl"]})}),(0,r.jsxs)(i.Ki.Item,{label:"Pulse",verticalAlign:"middle",children:[s.pulse," BPM"]})]})]})})},p=function(e){var n=(0,l.Oc)().data.occupant;return(0,r.jsx)(i.wn,{title:"Occupant Damage",children:(0,r.jsx)(i.Ki,{children:s.map(function(e,t){var l=n[e[1]],a="number"==typeof l?l:0;return(0,r.jsx)(i.Ki.Item,{label:e[0],children:(0,r.jsx)(i.z2,{minValue:0,maxValue:100,value:a,ranges:u,children:(0,o.LI)(a,0)},t)},t)})})})},x=function(e){var n=(0,l.Oc)(),t=n.act,o=n.data,a=o.hasOccupant,c=o.isBeakerLoaded,s=o.beakerMaxSpace,u=o.beakerFreeSpace,d=o.dialysis&&u>0;return(0,r.jsx)(i.wn,{title:"Dialysis",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{disabled:!c||u<=0||!a,selected:d,icon:d?"toggle-on":"toggle-off",content:d?"Active":"Inactive",onClick:function(){return t("togglefilter")}}),(0,r.jsx)(i.$n,{disabled:!c,icon:"eject",content:"Eject",onClick:function(){return t("removebeaker")}})]}),children:c?(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Remaining Space",children:(0,r.jsxs)(i.z2,{minValue:0,maxValue:s,value:u,ranges:{good:[.5*s,1/0],average:[.25*s,.5*s],bad:[-1/0,.25*s]},children:[u,"u"]})})}):(0,r.jsx)(i.az,{color:"label",children:"No beaker loaded."})})},g=function(e){var n=(0,l.Oc)(),t=n.act,o=n.data,a=o.occupant,c=o.chemicals,s=o.maxchem,u=o.amounts;return(0,r.jsx)(i.wn,{title:"Occupant Chemicals",children:c.map(function(e,n){var o,l="";return e.overdosing?(l="bad",o=(0,r.jsxs)(i.az,{color:"bad",children:[(0,r.jsx)(i.In,{name:"exclamation-circle"}),"\xa0 Overdosing!"]})):e.od_warning&&(l="average",o=(0,r.jsxs)(i.az,{color:"average",children:[(0,r.jsx)(i.In,{name:"exclamation-triangle"}),"\xa0 Close to overdosing"]})),(0,r.jsx)(i.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,r.jsx)(i.wn,{title:e.title,buttons:o,children:(0,r.jsxs)(i.BJ,{children:[(0,r.jsxs)(i.z2,{minValue:0,maxValue:s,value:e.occ_amount,color:l,mr:"0.5rem",children:[e.pretty_amount,"/",s,"u"]}),u.map(function(n,o){return(0,r.jsx)(i.$n,{disabled:!e.injectable||e.occ_amount+n>s||2===a.stat,icon:"syringe",content:"Inject ".concat(n,"u"),mb:"0",height:"19px",onClick:function(){return t("chemical",{chemid:e.id,amount:n})}},o)})]})})},n)})})},j=function(e){return(0,r.jsx)(i.wn,{fill:!0,textAlign:"center",children:(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{grow:!0,align:"center",color:"label",children:[(0,r.jsx)(i.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,r.jsx)("br",{}),"No occupant detected."]})})})}},6526:function(e,n,t){"use strict";t.r(n),t.d(n,{SlotMachine:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n,t=(0,o.Oc)(),a=t.act,c=t.data;return null===c.money?(0,r.jsx)(l.p8,{width:350,height:90,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.wn,{children:[(0,r.jsx)(i.az,{children:"Could not scan your card or could not find account!"}),(0,r.jsx)(i.az,{children:"Please wear or hold your ID and try again."})]})})}):(n=1===c.plays?c.plays+" player has tried their luck today!":c.plays+" players have tried their luck today!",(0,r.jsx)(l.p8,{width:300,height:151,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.wn,{children:[(0,r.jsx)(i.az,{lineHeight:2,children:n}),(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Credits Remaining",children:(0,r.jsx)(i.zv,{value:c.money})}),(0,r.jsx)(i.Ki.Item,{label:"10 credits to spin",children:(0,r.jsx)(i.$n,{icon:"coins",disabled:c.working,content:c.working?"Spinning...":"Spin",onClick:function(){return a("spin")}})})]}),(0,r.jsx)(i.az,{bold:!0,lineHeight:2,color:c.resultlvl,children:c.result})]})})}))}},1645:function(e,n,t){"use strict";t.r(n),t.d(n,{Smartfridge:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.secure,s=a.can_dry,u=a.drying,d=a.contents;return(0,r.jsx)(l.p8,{width:500,height:500,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[!!c&&(0,r.jsx)(i.IC,{children:"Secure Access: Please have your identification ready."}),(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,title:s?"Drying rack":"Contents",buttons:!!s&&(0,r.jsx)(i.$n,{width:4,icon:u?"power-off":"times",content:u?"On":"Off",selected:u,onClick:function(){return t("drying")}}),children:[!d&&(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,r.jsxs)(i.In.Stack,{children:[(0,r.jsx)(i.In,{name:"cookie-bite",size:5,color:"brown"}),(0,r.jsx)(i.In,{name:"slash",size:5,color:"red"})]}),(0,r.jsx)("br",{}),"No products loaded."]})}),!!d&&d.slice().sort(function(e,n){return e.display_name.localeCompare(n.display_name)}).map(function(e){return(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{width:"55%",children:e.display_name}),(0,r.jsxs)(i.BJ.Item,{width:"25%",children:["(",e.quantity," in stock)"]}),(0,r.jsxs)(i.BJ.Item,{width:13,children:[(0,r.jsx)(i.$n,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){return t("vend",{index:e.vend,amount:1})}}),(0,r.jsx)(i.Q7,{width:"40px",minValue:0,value:0,maxValue:e.quantity,step:1,stepPixelSize:3,onChange:function(n){return t("vend",{index:e.vend,amount:n})}}),(0,r.jsx)(i.$n,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){return t("vend",{index:e.vend,amount:e.quantity})}})]})]},e)})]})]})})})}},1399:function(e,n,t){"use strict";t.r(n),t.d(n,{Smes:()=>c});var r=t(8138),i=t(7790),o=t(9582),l=t(2864),a=t(3384),c=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data,s=c.capacityPercent,u=(c.capacity,c.charge),d=c.inputAttempt,f=c.inputting,h=c.inputLevel,m=c.inputLevelMax,p=c.inputAvailable,x=c.outputPowernet,g=c.outputAttempt,j=c.outputting,b=c.outputLevel,y=c.outputLevelMax,v=c.outputUsed,w=s>=100&&"good"||f&&"average"||"bad";return(0,r.jsx)(a.p8,{width:340,height:360,children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.wn,{title:"Stored Energy",children:(0,r.jsx)(i.z2,{value:.01*s,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,r.jsx)(i.wn,{title:"Input",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Charge Mode",buttons:(0,r.jsx)(i.$n,{icon:d?"sync-alt":"times",selected:d,onClick:function(){return t("tryinput")},children:d?"Auto":"Off"}),children:(0,r.jsx)(i.az,{color:w,children:s>=100&&"Fully Charged"||f&&"Charging"||"Not Charging"})}),(0,r.jsx)(i.Ki.Item,{label:"Target Input",children:(0,r.jsxs)(i.BJ,{width:"100%",children:[(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.$n,{icon:"fast-backward",disabled:0===h,onClick:function(){return t("input",{target:"min"})}}),(0,r.jsx)(i.$n,{icon:"backward",disabled:0===h,onClick:function(){return t("input",{adjust:-1e4})}})]}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.Ap,{value:h/1e3,fillValue:p/1e3,minValue:0,maxValue:m/1e3,step:5,stepPixelSize:4,format:function(e){return(0,o.d5)(1e3*e,1)},onChange:function(e,n){return t("input",{target:1e3*n})}})}),(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.$n,{icon:"forward",disabled:h===m,onClick:function(){return t("input",{adjust:1e4})}}),(0,r.jsx)(i.$n,{icon:"fast-forward",disabled:h===m,onClick:function(){return t("input",{target:"max"})}})]})]})}),(0,r.jsx)(i.Ki.Item,{label:"Available",children:(0,o.d5)(p)})]})}),(0,r.jsx)(i.wn,{fill:!0,title:"Output",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Output Mode",buttons:(0,r.jsx)(i.$n,{icon:g?"power-off":"times",selected:g,onClick:function(){return t("tryoutput")},children:g?"On":"Off"}),children:(0,r.jsx)(i.az,{color:j&&"good"||u>0&&"average"||"bad",children:x?j?"Sending":u>0?"Not Sending":"No Charge":"Not Connected"})}),(0,r.jsx)(i.Ki.Item,{label:"Target Output",children:(0,r.jsxs)(i.BJ,{width:"100%",children:[(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.$n,{icon:"fast-backward",disabled:0===b,onClick:function(){return t("output",{target:"min"})}}),(0,r.jsx)(i.$n,{icon:"backward",disabled:0===b,onClick:function(){return t("output",{adjust:-1e4})}})]}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.Ap,{value:b/1e3,minValue:0,maxValue:y/1e3,step:5,stepPixelSize:4,format:function(e){return(0,o.d5)(1e3*e,1)},onChange:function(e,n){return t("output",{target:1e3*n})}})}),(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.$n,{icon:"forward",disabled:b===y,onClick:function(){return t("output",{adjust:1e4})}}),(0,r.jsx)(i.$n,{icon:"fast-forward",disabled:b===y,onClick:function(){return t("output",{target:"max"})}})]})]})}),(0,r.jsx)(i.Ki.Item,{label:"Outputting",children:(0,o.d5)(v)})]})})]})})})}},1343:function(e,n,t){"use strict";t.r(n),t.d(n,{SolarControl:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(7946),a=t(3384),c=function(e){var n=(0,o.Oc)(),t=n.act,c=n.data,s=c.generated,u=c.generated_ratio,d=c.tracking_state,f=c.tracking_rate,h=c.connected_panels,m=c.connected_tracker,p=c.cdir,x=c.direction,g=c.rotating_direction;return(0,r.jsx)(a.p8,{width:490,height:277,children:(0,r.jsxs)(a.p8.Content,{children:[(0,r.jsx)(i.wn,{title:"Status",buttons:(0,r.jsx)(i.$n,{icon:"sync",content:"Scan for new hardware",onClick:function(){return t("refresh")}}),children:(0,r.jsxs)(l.xA,{children:[(0,r.jsx)(l.xA.Column,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Solar tracker",color:m?"good":"bad",children:m?"OK":"N/A"}),(0,r.jsx)(i.Ki.Item,{label:"Solar panels",color:h>0?"good":"bad",children:h})]})}),(0,r.jsx)(l.xA.Column,{size:2,children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Power output",children:(0,r.jsx)(i.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:u,children:s+" W"})}),(0,r.jsxs)(i.Ki.Item,{label:"Panel orientation",children:[p,"\xb0 (",x,")"]}),(0,r.jsxs)(i.Ki.Item,{label:"Tracker rotation",children:[2===d&&(0,r.jsx)(i.az,{children:" Automated "}),1===d&&(0,r.jsxs)(i.az,{children:[" ",f,"\xb0/h (",g,")"," "]}),0===d&&(0,r.jsx)(i.az,{children:" Tracker offline "})]})]})})]})}),(0,r.jsx)(i.wn,{title:"Controls",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Panel orientation",children:[2!==d&&(0,r.jsx)(i.Q7,{unit:"\xb0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:p,onChange:function(e){return t("cdir",{cdir:e})}}),2===d&&(0,r.jsx)(i.az,{lineHeight:"19px",children:" Automated "})]}),(0,r.jsxs)(i.Ki.Item,{label:"Tracker status",children:[(0,r.jsx)(i.$n,{icon:"times",content:"Off",selected:0===d,onClick:function(){return t("track",{track:0})}}),(0,r.jsx)(i.$n,{icon:"clock-o",content:"Timed",selected:1===d,onClick:function(){return t("track",{track:1})}}),(0,r.jsx)(i.$n,{icon:"sync",content:"Auto",selected:2===d,disabled:!m,onClick:function(){return t("track",{track:2})}})]}),(0,r.jsxs)(i.Ki.Item,{label:"Tracker rotation",children:[1===d&&(0,r.jsx)(i.Q7,{unit:"\xb0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:f,format:function(e){return(Math.sign(e)>0?"+":"-")+Math.abs(e)},onChange:function(e){return t("tdir",{tdir:e})}}),0===d&&(0,r.jsx)(i.az,{lineHeight:"19px",children:" Tracker offline "}),2===d&&(0,r.jsx)(i.az,{lineHeight:"19px",children:" Automated "})]})]})})]})})}},4263:function(e,n,t){"use strict";t.r(n),t.d(n,{SpawnersMenu:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data.spawners||[];return(0,r.jsx)(l.p8,{width:700,height:600,children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsx)(i.wn,{children:a.map(function(e){return(0,r.jsxs)(i.wn,{mb:.5,title:e.name+" ("+e.amount_left+" left)",level:2,buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{icon:"chevron-circle-right",content:"Jump",onClick:function(){return t("jump",{ID:e.uids})}}),(0,r.jsx)(i.$n,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){return t("spawn",{ID:e.uids})}})]}),children:[(0,r.jsx)(i.az,{style:{whiteSpace:"pre-wrap"},mb:1,fontSize:"16px",children:e.desc}),!!e.fluff&&(0,r.jsx)(i.az,{style:{whiteSpace:"pre-wrap"},textColor:"#878787",fontSize:"14px",children:e.fluff}),!!e.important_info&&(0,r.jsx)(i.az,{style:{whiteSpace:"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:e.important_info})]},e.name)})})})})}},8729:function(e,n,t){"use strict";t.r(n),t.d(n,{SpecMenu:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){return(0,r.jsx)(l.p8,{width:1100,height:600,theme:"nologo",children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(c,{}),(0,r.jsx)(s,{}),(0,r.jsx)(u,{}),(0,r.jsx)(d,{})]})})})},c=function(e){var n=(0,o.Oc)(),t=n.act;return n.data.subclasses,(0,r.jsx)(i.BJ.Item,{grow:!0,basis:"25%",children:(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,r.jsx)(i.$n,{content:"Choose",onClick:function(){return t("hemomancer")}}),children:[(0,r.jsx)("h3",{children:"Focuses on blood magic and the manipulation of blood around you."}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Vampiric claws"}),": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Blood Barrier"}),": Unlocked at 250 blood, allows you to select two turfs and create a wall between them."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Blood tendrils"}),": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Sanguine pool"}),": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Predator senses"}),": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Blood eruption"}),": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Full power"}),(0,r.jsx)(i.cG,{}),(0,r.jsx)("b",{children:"The blood bringers rite"}),": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly."]})]})})},s=function(e){var n=(0,o.Oc)(),t=n.act;return n.data.subclasses,(0,r.jsx)(i.BJ.Item,{grow:!0,basis:"25%",children:(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,r.jsx)(i.$n,{content:"Choose",onClick:function(){return t("umbrae")}}),children:[(0,r.jsx)("h3",{children:"Focuses on darkness, stealth ambushing and mobility."}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Cloak of darkness"}),": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Shadow anchor"}),": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Shadow snare"}),": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Dark passage"}),": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Extinguish"}),": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms."]}),(0,r.jsx)("b",{children:"Shadow boxing"}),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Full power"}),(0,r.jsx)(i.cG,{}),(0,r.jsx)("b",{children:"Eternal darkness"}),": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage."]}),(0,r.jsx)("p",{children:"In addition, you also gain permanent X-ray vision."})]})})},u=function(e){var n=(0,o.Oc)(),t=n.act;return n.data.subclasses,(0,r.jsx)(i.BJ.Item,{grow:!0,basis:"25%",children:(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,r.jsx)(i.$n,{content:"Choose",onClick:function(){return t("gargantua")}}),children:[(0,r.jsx)("h3",{children:"Focuses on tenacity and melee damage."}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Rejuvenate"}),": Will heal you at an increased rate based on how much damage you have taken."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Blood swell"}),": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Seismic stomp"}),": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Blood rush"}),": Unlocked at 250 blood, gives you a short speed boost when cast."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Blood swell II"}),": Unlocked at 400 blood, increases all melee damage by 10."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Overwhelming force"}),": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Demonic grasp"}),": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Charge"}),": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Full Power"}),(0,r.jsx)(i.cG,{}),(0,r.jsx)("b",{children:"Desecrated Duel"}),": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages."]})]})})},d=function(e){var n=(0,o.Oc)(),t=n.act;return n.data.subclasses,(0,r.jsx)(i.BJ.Item,{grow:!0,basis:"25%",children:(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,r.jsx)(i.$n,{content:"Choose",onClick:function(){return t("dantalion")}}),children:[(0,r.jsx)("h3",{children:"Focuses on thralling and illusions."}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Enthrall"}),": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Thrall cap"}),": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Thrall commune"}),": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Subspace swap"}),": Unlocked at 250 blood, allows you to swap positions with a target."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Pacify"}),": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Decoy"}),": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Rally thralls"}),": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Blood bond"}),": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"Full Power"}),(0,r.jsx)(i.cG,{}),(0,r.jsx)("b",{children:"Mass Hysteria"}),": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals."]})]})})}},9469:function(e,n,t){"use strict";t.r(n),t.d(n,{StackCraft:()=>d});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=function(){return(0,r.jsx)(c.p8,{width:350,height:500,children:(0,r.jsx)(c.p8.Content,{children:(0,r.jsx)(f,{})})})},f=function(e){var n=(0,a.Oc)().data,t=n.amount,c=n.recipes,s=u((0,i.useState)(""),2),d=s[0],f=s[1],m=h(c,(0,l.XZ)(d)),p=u((0,i.useState)(!1),2),g=p[0],j=p[1];return(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,title:"Amount: "+t,buttons:(0,r.jsxs)(r.Fragment,{children:[g&&(0,r.jsx)(o.pd,{width:12.5,value:d,placeholder:"Find recipe",onChange:function(e){return f(e)}}),(0,r.jsx)(o.$n,{ml:.5,tooltip:"Search",tooltipPosition:"bottom-end",icon:"magnifying-glass",selected:g,onClick:function(){return j(!g)}})]}),children:m?(0,r.jsx)(x,{recipes:m}):(0,r.jsx)(o.IC,{children:"No recipes found!"})})},h=function(e,n){var t=Object.fromEntries(Object.entries(e).flatMap(function(e){var t=u(e,2),r=t[0],i=t[1];if(n(r))return[e];if(m(i)){var o=h(i,n);if(void 0!==o)return[[r,o]]}return[]}).sort(function(e,n){var t=u(e,2),r=t[0],i=t[1],o=u(n,2),l=o[0],a=o[1];return m(i)!==m(a)?m(i)?-1:1:r.localeCompare(l)}));return Object.keys(t).length?t:void 0},m=function(e){return void 0===e.uid},p=function(e){var n=(0,a.Oc)().act,t=e.recipe,i=Math.min(e.max_possible_multiplier,Math.floor(t.max_result_amount/t.result_amount)),l=[5,10,25],c=[],s=!0,u=!1,d=void 0;try{for(var f,h=l[Symbol.iterator]();!(s=(f=h.next()).done);s=!0)!function(){var e=f.value;i>=e&&c.push((0,r.jsx)(o.$n,{bold:!0,fontSize:.85,width:"32px",content:e*t.result_amount+"x",onClick:function(){return n("make",{recipe_uid:t.uid,multiplier:e})}}))}()}catch(e){u=!0,d=e}finally{try{s||null==h.return||h.return()}finally{if(u)throw d}}return -1===l.indexOf(i)&&c.push((0,r.jsx)(o.$n,{bold:!0,fontSize:.85,width:"32px",content:i*t.result_amount+"x",onClick:function(){return n("make",{recipe_uid:t.uid,multiplier:i})}})),(0,r.jsx)(r.Fragment,{children:c.map(function(e){return e})})},x=function(e){return Object.entries(e.recipes).map(function(e){var n=u(e,2),t=n[0],i=n[1];return m(i)?(0,r.jsx)(o.Nt,{title:t,child_mt:0,childStyles:{padding:"0.5em",backgroundColor:"rgba(62, 97, 137, 0.15)",border:"1px solid rgba(255, 255, 255, 0.1)",borderTop:"none",borderRadius:"0 0 0.33em 0.33em"},children:(0,r.jsx)(o.az,{p:1,pb:.25,children:(0,r.jsx)(x,{recipes:i})})},t):(0,r.jsx)(g,{title:t,recipe:i},t)})},g=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data.amount,l=e.title,c=e.recipe,s=c.result_amount,u=c.required_amount,d=c.max_result_amount,f=c.uid,h=c.icon,m=c.icon_state,x=c.image,g="".concat(s>1?"".concat(s,"x "):"").concat(l),j="".concat(u," sheet").concat(u>1?"s":""),b=c.required_amount>i?0:Math.floor(i/c.required_amount);return(0,r.jsx)(o.c_,{fluid:!0,base64:x,dmIcon:h,dmIconState:m,imageSize:32,disabled:!b,tooltip:j,buttons:d>1&&b>1&&(0,r.jsx)(p,{recipe:c,max_possible_multiplier:b}),onClick:function(){return t("make",{recipe_uid:f,multiplier:1})},children:g})}},5592:function(e,n,t){"use strict";t.r(n),t.d(n,{StationAlertConsole:()=>a,StationAlertConsoleContent:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(){return(0,r.jsx)(l.p8,{width:325,height:500,children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsx)(c,{})})})},c=function(e){var n=(0,o.Oc)().data.alarms||[],t=n.Fire||[],l=n.Atmosphere||[],a=n.Power||[];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.wn,{title:"Fire Alarms",children:(0,r.jsxs)("ul",{children:[0===t.length&&(0,r.jsx)("li",{className:"color-good",children:"Systems Nominal"}),t.map(function(e){return(0,r.jsx)("li",{className:"color-average",children:e},e)})]})}),(0,r.jsx)(i.wn,{title:"Atmospherics Alarms",children:(0,r.jsxs)("ul",{children:[0===l.length&&(0,r.jsx)("li",{className:"color-good",children:"Systems Nominal"}),l.map(function(e){return(0,r.jsx)("li",{className:"color-average",children:e},e)})]})}),(0,r.jsx)(i.wn,{title:"Power Alarms",children:(0,r.jsxs)("ul",{children:[0===a.length&&(0,r.jsx)("li",{className:"color-good",children:"Systems Nominal"}),a.map(function(e){return(0,r.jsx)("li",{className:"color-average",children:e},e)})]})})]})}},5651:function(e,n,t){"use strict";t.r(n),t.d(n,{StationTraitsPanel:()=>m});var r=t(8138),i=t(8587),o=t(4530),l=t(7790),a=t(2864),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||d(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}}var f=function(e){var n=(0,a.Oc)(),t=n.act,c=n.data,f=c.future_station_traits,h=u((0,o.useState)(null),2),m=h[0],p=h[1],x=Object.fromEntries(c.valid_station_traits.map(function(e){return[e.name,e.path]})),g=Object.keys(x);return g.sort(),(0,r.jsxs)(l.az,{children:[(0,r.jsxs)(l.BJ,{fill:!0,children:[(0,r.jsx)(l.BJ.Item,{grow:!0,children:(0,r.jsx)(l.ms,{displayText:!m&&"Select trait to add...",onSelected:p,options:g,selected:m,width:"100%"})}),(0,r.jsx)(l.BJ.Item,{children:(0,r.jsx)(l.$n,{color:"green",icon:"plus",onClick:function(){if(m){var e=x[m],n=[e];if(f){var r,i=f.map(function(e){return e.path});if(-1!==i.indexOf(e))return;n=(r=n).concat.apply(r,function(e){if(Array.isArray(e))return s(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||d(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}t("setup_future_traits",{station_traits:n})}},children:"Add"})})]}),(0,r.jsx)(l.cG,{}),Array.isArray(f)?f.length>0?(0,r.jsx)(l.BJ,{vertical:!0,fill:!0,children:f.map(function(e){return(0,r.jsx)(l.BJ.Item,{children:(0,r.jsxs)(l.BJ,{fill:!0,children:[(0,r.jsx)(l.BJ.Item,{grow:!0,children:e.name}),(0,r.jsx)(l.BJ.Item,{children:(0,r.jsx)(l.$n,{color:"red",icon:"times",onClick:function(){t("setup_future_traits",{station_traits:(0,i.pb)((0,i.Tj)(f,function(e){return e.path}),function(n){return n!==e.path})})},children:"Delete"})})]})},e.path)})}):(0,r.jsxs)(l.az,{textAlign:"center",children:[(0,r.jsx)(l.az,{children:"No station traits will run next round."}),(0,r.jsx)(l.$n,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){return t("clear_future_traits")},children:"Run Station Traits Normally"})]}):(0,r.jsxs)(l.az,{textAlign:"center",children:[(0,r.jsx)(l.az,{children:"No future station traits are planned."}),(0,r.jsx)(l.$n,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){return t("setup_future_traits",{station_traits:[]})},children:"Prevent station traits from running next round"})]})]})},h=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data;return i.current_traits.length>0?(0,r.jsx)(l.BJ,{vertical:!0,fill:!0,children:i.current_traits.map(function(e){return(0,r.jsx)(l.BJ.Item,{children:(0,r.jsxs)(l.BJ,{fill:!0,children:[(0,r.jsx)(l.BJ.Item,{grow:!0,children:e.name}),(0,r.jsx)(l.BJ.Item,{children:(0,r.jsx)(l.$n.Confirm,{content:"Revert",color:"red",disabled:i.too_late_to_revert||!e.can_revert,tooltip:!e.can_revert&&"This trait is not revertable."||i.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){return t("revert",{ref:e.ref})}})})]})},e.ref)})}):(0,r.jsx)(l.az,{textAlign:"center",children:"There are no active station traits."})},m=function(e){var n,t=u((0,o.useState)(1),2),i=t[0],a=t[1];switch(i){case 0:n=(0,r.jsx)(f,{});break;case 1:n=(0,r.jsx)(h,{});break;default:throw Error("Unhandled case: ".concat(i))}return(0,r.jsx)(c.p8,{title:"Modify Station Traits",height:350,width:350,children:(0,r.jsx)(c.p8.Content,{scrollable:!0,children:(0,r.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(l.BJ.Item,{children:(0,r.jsxs)(l.tU,{children:[(0,r.jsx)(l.tU.Tab,{icon:"eye",selected:1===i,onClick:function(){return a(1)},children:"View"}),(0,r.jsx)(l.tU.Tab,{icon:"edit",selected:0===i,onClick:function(){return a(0)},children:"Edit"})]})}),(0,r.jsxs)(l.BJ.Item,{m:0,children:[(0,r.jsx)(l.cG,{}),n]})]})})})}},5724:function(e,n,t){"use strict";t.r(n),t.d(n,{StripMenu:()=>x});var r=t(8138),i=t(8587),o=t(7790),l=t(8595),a=t(2864),c=t(3384),s=function(e){return 0===e?5:9},u="64px",d=function(e){return"".concat(e[0],"/").concat(e[1])},f=function(e){var n=e.align,t=e.children;return(0,r.jsx)(o.az,{style:{position:"absolute",left:"left"===n?"6px":"48px",textAlign:n,textShadow:"2px 2px 2px #000",top:"2px"},children:t})},h={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},m={eyes:{displayName:"eyewear",gridSpot:d([0,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:d([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:d([1,1]),image:"inventory-mask.png"},neck:{displayName:"neck",gridSpot:d([1,0]),image:"inventory-neck.png"},pet_collar:{displayName:"collar",gridSpot:d([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:d([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:d([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:d([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:d([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:d([1,4])},jumpsuit:{displayName:"uniform",gridSpot:d([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:d([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:d([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:d([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,r.jsx)(f,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:d([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,r.jsx)(f,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:d([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:d([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:d([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:d([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:d([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:d([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:d([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:d([4,4]),image:"inventory-pda.png"}},p={eyes:{displayName:"eyewear",gridSpot:d([0,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:d([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:d([1,1]),image:"inventory-mask.png"},neck:{displayName:"neck",gridSpot:d([1,0]),image:"inventory-neck.png"},pet_collar:{displayName:"collar",gridSpot:d([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:d([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:d([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:d([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:d([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:d([1,4])},jumpsuit:{displayName:"uniform",gridSpot:d([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:d([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:d([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:d([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,r.jsx)(f,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:d([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,r.jsx)(f,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:d([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:d([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:d([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:d([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:d([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:d([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:d([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:d([4,8]),image:"inventory-pda.png"}},x=function(e){var n=(0,a.Oc)(),t=n.act,f=n.data,x=new Map;if(0===f.show_mode){var g=!0,j=!1,b=void 0;try{for(var y,v=Object.keys(f.items)[Symbol.iterator]();!(g=(y=v.next()).done);g=!0){var w=y.value;x.set(m[w].gridSpot,w)}}catch(e){j=!0,b=e}finally{try{g||null==v.return||v.return()}finally{if(j)throw b}}}else{var k=!0,_=!1,C=void 0;try{for(var I,S=Object.keys(f.items)[Symbol.iterator]();!(k=(I=S.next()).done);k=!0){var O=I.value;x.set(p[O].gridSpot,O)}}catch(e){_=!0,C=e}finally{try{k||null==S.return||S.return()}finally{if(_)throw C}}}return 0===x.size?(0,r.jsx)(c.p8,{title:"Stripping ".concat(f.name),width:64*s(f.show_mode)+6*(s(f.show_mode)+1),height:390,theme:"nologo",children:(0,r.jsx)(c.p8.Content,{style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},children:(0,r.jsx)(o.BJ,{fill:!0,children:(0,r.jsx)(o.BJ.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:"No slots"})})})}):(0,r.jsx)(c.p8,{title:"Stripping ".concat(f.name),width:64*s(f.show_mode)+6*(s(f.show_mode)+1),height:390,theme:"nologo",children:(0,r.jsx)(c.p8.Content,{style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},children:(0,r.jsx)(o.BJ,{fill:!0,vertical:!0,children:(0,i.y1)(0,5).map(function(e){return(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.BJ,{fill:!0,children:(0,i.y1)(0,s(f.show_mode)).map(function(n){var i,a,c,s=d([e,n]),p=x.get(s);if(!p)return(0,r.jsx)(o.BJ.Item,{style:{width:u,height:u}},s);var g=f.items[p],j=m[p];return null===g?c=j.displayName:"name"in g?(a=(0,r.jsx)(o._V,{src:"data:image/jpeg;base64,".concat(g.icon),height:"100%",width:"100%",style:{imageRendering:"pixelated",verticalAlign:"middle"}}),c=g.name):"obscured"in g&&(a=(0,r.jsx)(o.In,{name:1===g.obscured?"ban":"eye-slash",size:3,ml:0,mt:2.5,color:"white",style:{textAlign:"center",height:"100%",width:"100%"}}),c="obscured ".concat(j.displayName)),null!==g&&"alternates"in g&&null!==g.alternates&&(i=g.alternates),(0,r.jsx)(o.BJ.Item,{style:{width:u,height:u},children:(0,r.jsxs)(o.az,{style:{position:"relative",width:"100%",height:"100%"},children:[(0,r.jsxs)(o.$n,{onClick:function(){t("use",{key:p})},fluid:!0,color:(null==g?void 0:g.interacting)?"average":null,tooltip:c,style:{position:"relative",width:"100%",height:"100%",padding:0,backgroundColor:(null==g?void 0:g.cantstrip)?"transparent":"none"},children:[j.image&&(0,r.jsx)(o._V,{src:(0,l.l)(j.image),opacity:.7,style:{position:"absolute",width:"32px",height:"32px",left:"50%",top:"50%",transform:"translateX(-50%) translateY(-50%) scale(2)"}}),(0,r.jsx)(o.az,{style:{position:"relative"},children:a}),j.additionalComponent]}),(0,r.jsx)(o.BJ,{direction:"row-reverse",children:void 0!==i&&i.map(function(e,n){var i=1.8*n;return(0,r.jsx)(o.BJ.Item,{width:"100%",children:(0,r.jsx)(o.$n,{onClick:function(){t("alt",{key:p,action_key:e})},tooltip:h[e].text,width:"1.8em",style:{background:"rgba(0, 0, 0, 0.6)",position:"absolute",bottom:0,right:"".concat(i,"em"),zIndex:2+n},children:(0,r.jsx)(o.In,{name:h[e].icon})})},n)})})]})},s)})})},e)})})})})}},2975:function(e,n,t){"use strict";t.r(n),t.d(n,{SuitStorage:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)().data.uv;return(0,r.jsx)(l.p8,{width:400,height:260,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[!!n&&(0,r.jsx)(i.Rr,{backgroundColor:"black",opacity:.85,children:(0,r.jsx)(i.BJ,{children:(0,r.jsxs)(i.BJ.Item,{bold:!0,textAlign:"center",mb:1,children:[(0,r.jsx)(i.In,{name:"spinner",spin:1,size:4,mb:4}),(0,r.jsx)("br",{}),"Disinfection of contents in progress..."]})})}),(0,r.jsx)(c,{}),(0,r.jsx)(u,{})]})})})},c=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.helmet,c=l.suit,u=l.magboots,d=l.mask,f=l.storage,h=l.open,m=l.locked;return(0,r.jsx)(i.wn,{fill:!0,title:"Stored Items",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{content:"Start Disinfection Cycle",icon:"radiation",textAlign:"center",onClick:function(){return t("cook")}}),(0,r.jsx)(i.$n,{content:m?"Unlock":"Lock",icon:m?"unlock":"lock",disabled:h,onClick:function(){return t("toggle_lock")}})]}),children:h&&!m?(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(s,{object:a,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,r.jsx)(s,{object:c,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,r.jsx)(s,{object:u,label:"Boots",missingText:"boots",eject:"dispense_boots"}),(0,r.jsx)(s,{object:d,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,r.jsx)(s,{object:f,label:"Storage",missingText:"storage item",eject:"dispense_storage"})]}):(0,r.jsx)(i.BJ,{fill:!0,children:(0,r.jsxs)(i.BJ.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,r.jsx)(i.In,{name:m?"lock":"exclamation-circle",size:"5",mb:3}),(0,r.jsx)("br",{}),m?"The unit is locked.":"The unit is closed."]})})})},s=function(e){var n=(0,o.Oc)(),t=n.act;n.data;var l=e.object,a=e.label,c=e.missingText,s=e.eject;return(0,r.jsx)(i.Ki.Item,{label:a,children:(0,r.jsx)(i.az,{my:.5,children:l?(0,r.jsx)(i.$n,{my:-1,icon:"eject",content:l,onClick:function(){return t(s)}}):(0,r.jsxs)(i.az,{color:"silver",bold:!0,children:["No ",c," found."]})})})},u=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.open,c=l.locked;return(0,r.jsx)(i.wn,{children:(0,r.jsx)(i.$n,{fluid:!0,content:a?"Close Suit Storage Unit":"Open Suit Storage Unit",icon:a?"times-circle":"expand",color:a?"red":"green",disabled:c,textAlign:"center",onClick:function(){return t("toggle_open")}})})}},4835:function(e,n,t){"use strict";t.r(n),t.d(n,{SupermatterMonitor:()=>u});var r=t(8138),i=t(7790),o=t(6859),l=t(2864),a=t(421),c=t(3384);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var u=function(){var e=(0,l.Oc)();return 0===(e.act,e.data).active?(0,r.jsx)(f,{}):(0,r.jsx)(h,{})},d=function(e){return Math.log2(16+Math.max(0,e))-4},f=function(){var e=(0,l.Oc)(),n=e.act,t=e.data.supermatters;return(0,r.jsx)(c.p8,{width:450,height:250,children:(0,r.jsx)(c.p8.Content,{scrollable:!0,children:(0,r.jsx)(i.wn,{fill:!0,title:"Detected Supermatters",buttons:(0,r.jsx)(i.$n,{icon:"sync",content:"Refresh",onClick:function(){return n("refresh")}}),children:(0,r.jsx)(i.XI,{children:(void 0===t?[]:t).map(function(e){return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:e.supermatter_id+". "+e.area_name}),(0,r.jsx)(i.XI.Cell,{collapsing:!0,color:"label",children:"Integrity:"}),(0,r.jsx)(i.XI.Cell,{collapsing:!0,width:"120px",children:(0,r.jsx)(i.z2,{value:e.integrity/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,r.jsx)(i.XI.Cell,{collapsing:!0,children:(0,r.jsx)(i.$n,{content:"Details",onClick:function(){return n("view",{view:e.supermatter_id})}})})]},e.supermatter_id)})})})})})},h=function(){var e,n,t=(0,l.Oc)(),u=t.act,f=t.data,h=f.SM_integrity,m=f.SM_power,p=f.SM_pre_reduction_power,x=f.SM_ambienttemp,g=f.SM_ambientpressure,j=f.SM_moles,b=f.SM_gas_coefficient,y=f.gases,v=void 0===y?[]:y,w=(null!=v?v:[]).filter(function(e){return e.amount>=.01}).sort(function(e,n){return n.amount-e.amount}),k=(n=Math).max.apply(n,[1].concat(function(e){if(Array.isArray(e))return s(e)}(e=w.map(function(e){return e.portion}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return s(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()));return(0,r.jsx)(c.p8,{width:550,height:270,children:(0,r.jsx)(c.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{width:"270px",children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Metrics",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Integrity",children:(0,r.jsx)(i.z2,{value:h/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,r.jsx)(i.Ki.Item,{label:"Peak EER",children:(0,r.jsx)(i.z2,{value:p,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.Mg)(p)+" MeV/cm3"})}),(0,r.jsx)(i.Ki.Item,{label:"Nominal EER",children:(0,r.jsx)(i.z2,{value:m,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.Mg)(m)+" MeV/cm3"})}),(0,r.jsx)(i.Ki.Item,{label:"Gas Coefficient",children:(0,r.jsx)(i.z2,{value:b,minValue:1,maxValue:5.25,ranges:{bad:[1,1.55],average:[1.55,5.25],good:[5.25,1/0]},children:b.toFixed(2)})}),(0,r.jsx)(i.Ki.Item,{label:"Temperature",children:(0,r.jsx)(i.z2,{value:d(x),minValue:0,maxValue:d(1e4),ranges:{teal:[-1/0,d(80)],good:[d(80),d(373)],average:[d(373),d(1e3)],bad:[d(1e3),1/0]},children:(0,o.Mg)(x)+" K"})}),(0,r.jsx)(i.Ki.Item,{label:"Mole Per Tile",children:(0,r.jsx)(i.z2,{value:j,minValue:0,maxValue:12e3,ranges:{teal:[-1/0,100],average:[100,11333],good:[11333,12e3],bad:[12e3,1/0]},children:(0,o.Mg)(j)+" mol"})}),(0,r.jsx)(i.Ki.Item,{label:"Pressure",children:(0,r.jsx)(i.z2,{value:d(g),minValue:0,maxValue:d(5e4),ranges:{good:[d(1),d(300)],average:[-1/0,d(1e3)],bad:[d(1e3),1/0]},children:(0,o.Mg)(g)+" kPa"})})]})})}),(0,r.jsx)(i.BJ.Item,{grow:!0,basis:0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,r.jsx)(i.$n,{icon:"arrow-left",content:"Back",onClick:function(){return u("back")}}),children:(0,r.jsx)(i.Ki,{children:w.map(function(e){return(0,r.jsx)(i.Ki.Item,{label:(0,a.wM)(e.name,e.name),children:(0,r.jsx)(i.z2,{color:(0,a.b_)(e.name),value:e.portion,minValue:0,maxValue:k,children:(0,o.Mg)(e.amount)+" mol ("+e.portion+"%)"})},e.name)})})})})]})})})}},2266:function(e,n,t){"use strict";t.r(n),t.d(n,{SyndicateComputerSimple:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data;return(0,r.jsx)(l.p8,{theme:"syndicate",width:400,height:400,children:(0,r.jsx)(l.p8.Content,{children:a.rows.map(function(e){return(0,r.jsxs)(i.wn,{title:e.title,buttons:(0,r.jsx)(i.$n,{content:e.buttontitle,disabled:e.buttondisabled,tooltip:e.buttontooltip,tooltipPosition:"left",onClick:function(){return t(e.buttonact)}}),children:[e.status,!!e.bullets&&(0,r.jsx)(i.az,{children:e.bullets.map(function(e){return(0,r.jsx)(i.az,{children:e},e)})})]},e.title)})})})}},8073:function(e,n,t){"use strict";t.r(n),t.d(n,{TEG:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){return e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},c=function(e){var n=(0,o.Oc)(),t=n.act,c=n.data;return c.error?(0,r.jsx)(l.p8,{width:500,height:400,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.wn,{title:"Error",children:[c.error,(0,r.jsx)(i.$n,{icon:"circle",content:"Recheck",onClick:function(){return t("check")}})]})})}):(0,r.jsx)(l.p8,{width:500,height:400,children:(0,r.jsxs)(l.p8.Content,{children:[(0,r.jsx)(i.wn,{title:"Cold Loop ("+c.cold_dir+")",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Cold Inlet",children:[a(c.cold_inlet_temp)," K, ",a(c.cold_inlet_pressure)," kPa"]}),(0,r.jsxs)(i.Ki.Item,{label:"Cold Outlet",children:[a(c.cold_outlet_temp)," K, ",a(c.cold_outlet_pressure)," kPa"]})]})}),(0,r.jsx)(i.wn,{title:"Hot Loop ("+c.hot_dir+")",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Hot Inlet",children:[a(c.hot_inlet_temp)," K, ",a(c.hot_inlet_pressure)," kPa"]}),(0,r.jsxs)(i.Ki.Item,{label:"Hot Outlet",children:[a(c.hot_outlet_temp)," K, ",a(c.hot_outlet_pressure)," kPa"]})]})}),(0,r.jsxs)(i.wn,{title:"Power Output",children:[a(c.output_power)," W",!!c.warning_switched&&(0,r.jsx)(i.az,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,r.jsx)(i.az,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,r.jsx)(i.az,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}},5808:function(e,n,t){"use strict";t.r(n),t.d(n,{TachyonArray:()=>a,TachyonArrayContent:()=>c});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,s=a.records,u=void 0===s?[]:s,d=a.explosion_target,f=a.toxins_tech,h=a.printing;return(0,r.jsx)(l.p8,{width:500,height:600,children:(0,r.jsxs)(l.p8.Content,{scrollable:!0,children:[(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Shift's Target",children:d}),(0,r.jsx)(i.Ki.Item,{label:"Current Toxins Level",children:f}),(0,r.jsxs)(i.Ki.Item,{label:"Administration",children:[(0,r.jsx)(i.$n,{icon:"print",content:"Print All Logs",disabled:!u.length||h,align:"center",onClick:function(){return t("print_logs")}}),(0,r.jsx)(i.$n.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!u.length,color:"bad",align:"center",onClick:function(){return t("delete_logs")}})]})]})}),u.length?(0,r.jsx)(c,{}):(0,r.jsx)(i.IC,{children:"No Records"})]})})},c=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.records;return(0,r.jsx)(i.wn,{title:"Logged Explosions",children:(0,r.jsx)(i.so,{children:(0,r.jsx)(i.so.Item,{children:(0,r.jsxs)(i.XI,{m:"0.5rem",children:[(0,r.jsxs)(i.XI.Row,{header:!0,children:[(0,r.jsx)(i.XI.Cell,{children:"Time"}),(0,r.jsx)(i.XI.Cell,{children:"Epicenter"}),(0,r.jsx)(i.XI.Cell,{children:"Actual Size"}),(0,r.jsx)(i.XI.Cell,{children:"Theoretical Size"})]}),(void 0===l?[]:l).map(function(e){return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:e.logged_time}),(0,r.jsx)(i.XI.Cell,{children:e.epicenter}),(0,r.jsx)(i.XI.Cell,{children:e.actual_size_message}),(0,r.jsx)(i.XI.Cell,{children:e.theoretical_size_message}),(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.$n.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){return t("delete_record",{index:e.index})}})})]},e.index)})]})})})})}},5125:function(e,n,t){"use strict";t.r(n),t.d(n,{Tank:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n,t=(0,o.Oc)(),a=t.act,c=t.data;return n=c.has_mask?(0,r.jsx)(i.Ki.Item,{label:"Mask",children:(0,r.jsx)(i.$n,{fluid:!0,width:"76%",icon:c.connected?"check":"times",content:c.connected?"Internals On":"Internals Off",selected:c.connected,onClick:function(){return a("internals")}})}):(0,r.jsx)(i.Ki.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,r.jsx)(l.p8,{width:325,height:135,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Tank Pressure",children:(0,r.jsx)(i.z2,{value:c.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:c.tankPressure+" kPa"})}),(0,r.jsxs)(i.Ki.Item,{label:"Release Pressure",children:[(0,r.jsx)(i.$n,{icon:"fast-backward",disabled:c.ReleasePressure===c.minReleasePressure,tooltip:"Min",onClick:function(){return a("pressure",{pressure:"min"})}}),(0,r.jsx)(i.Q7,{animated:!0,value:parseFloat(c.releasePressure),width:"65px",unit:"kPa",minValue:c.minReleasePressure,maxValue:c.maxReleasePressure,onChange:function(e){return a("pressure",{pressure:e})}}),(0,r.jsx)(i.$n,{icon:"fast-forward",disabled:c.ReleasePressure===c.maxReleasePressure,tooltip:"Max",onClick:function(){return a("pressure",{pressure:"max"})}}),(0,r.jsx)(i.$n,{icon:"undo",content:"",disabled:c.ReleasePressure===c.defaultReleasePressure,tooltip:"Reset",onClick:function(){return a("pressure",{pressure:"reset"})}})]}),n]})})})})}},7112:function(e,n,t){"use strict";t.r(n),t.d(n,{TankDispenser:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.o_tanks,s=a.p_tanks;return(0,r.jsx)(l.p8,{width:250,height:105,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.wn,{children:[(0,r.jsx)(i.az,{children:(0,r.jsx)(i.$n,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:0===c,icon:"arrow-circle-down",onClick:function(){return t("oxygen")}})}),(0,r.jsx)(i.az,{children:(0,r.jsx)(i.$n,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+s+")",disabled:0===s,icon:"arrow-circle-down",onClick:function(){return t("plasma")}})})]})})})}},3283:function(e,n,t){"use strict";t.r(n),t.d(n,{TcommsCore:()=>s});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var s=function(e){var n,t=(0,l.Oc)(),s=(t.act,t.data).ion,m=(n=(0,i.useState)(0),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return c(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=m[0],x=m[1];return(0,r.jsx)(a.p8,{width:900,height:520,children:(0,r.jsxs)(a.p8.Content,{scrollable:!0,children:[1===s&&(0,r.jsx)(u,{}),(0,r.jsxs)(o.tU,{children:[(0,r.jsx)(o.tU.Tab,{icon:"wrench",selected:0===p,onClick:function(){return x(0)},children:"Configuration"},"ConfigPage"),(0,r.jsx)(o.tU.Tab,{icon:"link",selected:1===p,onClick:function(){return x(1)},children:"Device Linkage"},"LinkagePage"),(0,r.jsx)(o.tU.Tab,{icon:"user-times",selected:2===p,onClick:function(){return x(2)},children:"User Filtering"},"FilterPage")]}),function(e){switch(e){case 0:return(0,r.jsx)(d,{});case 1:return(0,r.jsx)(f,{});case 2:return(0,r.jsx)(h,{});default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}(p)]})})},u=function(){return(0,r.jsx)(o.IC,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},d=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.active,c=i.sectors_available,s=i.nttc_toggle_jobs,u=i.nttc_toggle_job_color,d=i.nttc_toggle_name_color,f=i.nttc_toggle_command_bold,h=i.nttc_job_indicator_type,m=i.nttc_setting_language,p=i.network_id;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.wn,{title:"Status",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Machine Power",children:(0,r.jsx)(o.$n,{content:a?"On":"Off",selected:a,icon:"power-off",onClick:function(){return t("toggle_active")}})}),(0,r.jsx)(o.Ki.Item,{label:"Sector Coverage",children:c})]})}),(0,r.jsx)(o.wn,{title:"Radio Configuration",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Job Announcements",children:(0,r.jsx)(o.$n,{content:s?"On":"Off",selected:s,icon:"user-tag",onClick:function(){return t("nttc_toggle_jobs")}})}),(0,r.jsx)(o.Ki.Item,{label:"Job Departmentalisation",children:(0,r.jsx)(o.$n,{content:u?"On":"Off",selected:u,icon:"clipboard-list",onClick:function(){return t("nttc_toggle_job_color")}})}),(0,r.jsx)(o.Ki.Item,{label:"Name Departmentalisation",children:(0,r.jsx)(o.$n,{content:d?"On":"Off",selected:d,icon:"user-tag",onClick:function(){return t("nttc_toggle_name_color")}})}),(0,r.jsx)(o.Ki.Item,{label:"Command Amplification",children:(0,r.jsx)(o.$n,{content:f?"On":"Off",selected:f,icon:"volume-up",onClick:function(){return t("nttc_toggle_command_bold")}})})]})}),(0,r.jsx)(o.wn,{title:"Advanced",children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Job Announcement Format",children:(0,r.jsx)(o.$n,{content:h||"Unset",selected:h,icon:"pencil-alt",onClick:function(){return t("nttc_job_indicator_type")}})}),(0,r.jsx)(o.Ki.Item,{label:"Language Conversion",children:(0,r.jsx)(o.$n,{content:m||"Unset",selected:m,icon:"globe",onClick:function(){return t("nttc_setting_language")}})}),(0,r.jsx)(o.Ki.Item,{label:"Network ID",children:(0,r.jsx)(o.$n,{content:p||"Unset",selected:p,icon:"server",onClick:function(){return t("network_id")}})})]})}),(0,r.jsxs)(o.wn,{title:"Maintenance",children:[(0,r.jsx)(o.$n,{content:"Import Configuration",icon:"file-import",onClick:function(){return t("import")}}),(0,r.jsx)(o.$n,{content:"Export Configuration",icon:"file-export",onClick:function(){return t("export")}})]})]})},f=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.link_password,c=i.relay_entries;return(0,r.jsxs)(o.wn,{title:"Device Linkage",children:[(0,r.jsx)(o.Ki,{children:(0,r.jsx)(o.Ki.Item,{label:"Linkage Password",children:(0,r.jsx)(o.$n,{content:a||"Unset",selected:a,icon:"lock",onClick:function(){return t("change_password")}})})}),(0,r.jsxs)(o.XI,{m:"0.5rem",children:[(0,r.jsxs)(o.XI.Row,{header:!0,children:[(0,r.jsx)(o.XI.Cell,{children:"Network Address"}),(0,r.jsx)(o.XI.Cell,{children:"Network ID"}),(0,r.jsx)(o.XI.Cell,{children:"Sector"}),(0,r.jsx)(o.XI.Cell,{children:"Status"}),(0,r.jsx)(o.XI.Cell,{children:"Unlink"})]}),c.map(function(e){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e.addr}),(0,r.jsx)(o.XI.Cell,{children:e.net_id}),(0,r.jsx)(o.XI.Cell,{children:e.sector}),(0,r.jsx)(o.XI.Cell,{children:1===e.status?(0,r.jsx)(o.az,{color:"green",children:"Online"}):(0,r.jsx)(o.az,{color:"red",children:"Offline"})}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.$n,{content:"Unlink",icon:"unlink",onClick:function(){return t("unlink",{addr:e.addr})}})})]},e.addr)})]})]})},h=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data.filtered_users;return(0,r.jsx)(o.wn,{title:"User Filtering",buttons:(0,r.jsx)(o.$n,{content:"Add User",icon:"user-plus",onClick:function(){return t("add_filter")}}),children:(0,r.jsxs)(o.XI,{m:"0.5rem",children:[(0,r.jsxs)(o.XI.Row,{header:!0,children:[(0,r.jsx)(o.XI.Cell,{style:{width:"90%"},children:"User"}),(0,r.jsx)(o.XI.Cell,{style:{width:"10%"},children:"Actions"})]}),i.map(function(e){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.$n,{content:"Remove",icon:"user-times",onClick:function(){return t("remove_filter",{user:e})}})})]},e)})]})})}},431:function(e,n,t){"use strict";t.r(n),t.d(n,{TcommsRelay:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,u=a.linked,d=a.active,f=a.network_id;return(0,r.jsx)(l.p8,{width:600,height:292,children:(0,r.jsxs)(l.p8.Content,{scrollable:!0,children:[(0,r.jsx)(i.wn,{title:"Relay Configuration",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Machine Power",children:(0,r.jsx)(i.$n,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){return t("toggle_active")}})}),(0,r.jsx)(i.Ki.Item,{label:"Network ID",children:(0,r.jsx)(i.$n,{content:f||"Unset",selected:f,icon:"server",onClick:function(){return t("network_id")}})}),(0,r.jsx)(i.Ki.Item,{label:"Link Status",children:1===u?(0,r.jsx)(i.az,{color:"green",children:"Linked"}):(0,r.jsx)(i.az,{color:"red",children:"Unlinked"})})]})}),1===u?(0,r.jsx)(c,{}):(0,r.jsx)(s,{})]})})},c=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.linked_core_id,c=l.linked_core_addr,s=l.hidden_link;return(0,r.jsx)(i.wn,{title:"Link Status",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Linked Core ID",children:a}),(0,r.jsx)(i.Ki.Item,{label:"Linked Core Address",children:c}),(0,r.jsx)(i.Ki.Item,{label:"Hidden Link",children:(0,r.jsx)(i.$n,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){return t("toggle_hidden_link")}})}),(0,r.jsx)(i.Ki.Item,{label:"Unlink",children:(0,r.jsx)(i.$n,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){return t("unlink")}})})]})})},s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.cores;return(0,r.jsx)(i.wn,{title:"Detected Cores",children:(0,r.jsxs)(i.XI,{m:"0.5rem",children:[(0,r.jsxs)(i.XI.Row,{header:!0,children:[(0,r.jsx)(i.XI.Cell,{children:"Network Address"}),(0,r.jsx)(i.XI.Cell,{children:"Network ID"}),(0,r.jsx)(i.XI.Cell,{children:"Sector"}),(0,r.jsx)(i.XI.Cell,{children:"Link"})]}),l.map(function(e){return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{children:e.addr}),(0,r.jsx)(i.XI.Cell,{children:e.net_id}),(0,r.jsx)(i.XI.Cell,{children:e.sector}),(0,r.jsx)(i.XI.Cell,{children:(0,r.jsx)(i.$n,{content:"Link",icon:"link",onClick:function(){return t("link",{addr:e.addr})}})})]},e.addr)})]})})}},5605:function(e,n,t){"use strict";t.r(n),t.d(n,{Teleporter:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.targetsTeleport?a.targetsTeleport:{},s=a.calibrated,u=a.calibrating,d=a.powerstation,f=a.regime,h=a.teleporterhub,m=a.target,p=a.locked,x=a.adv_beacon_allowed,g=a.advanced_beacon_locking;return(0,r.jsx)(l.p8,{width:350,height:325,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsx)(i.BJ,{fill:!0,vertical:!0,children:(0,r.jsxs)(i.BJ.Item,{grow:!0,children:[(!d||!h)&&(0,r.jsxs)(i.wn,{fill:!0,title:"Error",children:[h,!d&&(0,r.jsx)(i.az,{color:"bad",children:" Powerstation not linked "}),d&&!h&&(0,r.jsx)(i.az,{color:"bad",children:" Teleporter hub not linked "})]}),d&&h&&(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,title:"Status",buttons:(0,r.jsx)(r.Fragment,{children:!!x&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.az,{inline:!0,color:"label",children:"Advanced Beacon Locking:\xa0"}),(0,r.jsx)(i.$n,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"Enabled":"Disabled",onClick:function(){return t("advanced_beacon_locking",{on:+!g})}})]})}),children:[(0,r.jsxs)(i.BJ,{mb:1,children:[(0,r.jsx)(i.BJ.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,r.jsxs)(i.BJ.Item,{children:[0===f&&(0,r.jsx)(i.ms,{width:18.2,selected:m,disabled:u,options:Object.keys(c),color:"None"!==m?"default":"bad",onSelected:function(e){return t("settarget",{x:c[e].x,y:c[e].y,z:c[e].z,tptarget:c[e].pretarget})}}),1===f&&(0,r.jsx)(i.ms,{width:18.2,selected:m,disabled:u,options:Object.keys(c),color:"None"!==m?"default":"bad",onSelected:function(e){return t("settarget",{x:c[e].x,y:c[e].y,z:c[e].z,tptarget:c[e].pretarget})}}),2===f&&(0,r.jsx)(i.az,{children:m})]})]}),(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{width:8.5,color:"label",children:"Regime:"}),(0,r.jsx)(i.BJ.Item,{grow:!0,textAlign:"center",children:(0,r.jsx)(i.$n,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:1===f?"good":null,onClick:function(){return t("setregime",{regime:1})}})}),(0,r.jsx)(i.BJ.Item,{grow:!0,textAlign:"center",children:(0,r.jsx)(i.$n,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:0===f?"good":null,onClick:function(){return t("setregime",{regime:0})}})}),(0,r.jsx)(i.BJ.Item,{grow:!0,textAlign:"center",children:(0,r.jsx)(i.$n,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:2===f?"good":null,disabled:!p,onClick:function(){return t("setregime",{regime:2})}})})]}),(0,r.jsxs)(i.BJ,{label:"Calibration",mt:1,children:[(0,r.jsx)(i.BJ.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,r.jsxs)(i.BJ.Item,{children:["None"!==m&&(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{width:15.8,textAlign:"center",mt:.5,children:u&&(0,r.jsx)(i.az,{color:"average",children:"In Progress"})||s&&(0,r.jsx)(i.az,{color:"good",children:"Optimal"})||(0,r.jsx)(i.az,{color:"bad",children:"Sub-Optimal"})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.$n,{icon:"sync-alt",tooltip:"Calibrates the hub. \\ Accidents may occur when the \\ calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!s||!!u,onClick:function(){return t("calibrate")}})})]}),"None"===m&&(0,r.jsx)(i.az,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(p&&d&&h&&2===f)&&(0,r.jsx)(i.wn,{title:"GPS",children:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.$n,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){return t("load")}}),(0,r.jsx)(i.$n,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){return t("eject")}})]})})]})})})})}},8336:function(e,n,t){"use strict";t.r(n),t.d(n,{TelescienceConsole:()=>s});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var s=function(e){var n,t=(0,l.Oc)(),s=t.act,u=t.data,d=u.last_msg,f=u.linked_pad,h=u.held_gps,m=u.lastdata,p=u.power_levels,x=u.current_max_power,g=u.current_power,j=u.current_bearing,b=u.current_elevation,y=u.current_sector,v=u.working,w=u.max_z,k=(n=(0,i.useState)(j),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return c(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),_=k[0],C=k[1];return(0,r.jsx)(a.p8,{width:400,height:500,children:(0,r.jsxs)(a.p8.Content,{children:[(0,r.jsx)(o.wn,{title:"Status",children:(0,r.jsxs)(r.Fragment,{children:[d,!(m.length>0)||(0,r.jsx)("ul",{children:m.map(function(e){return(0,r.jsx)("li",{children:e},e)})})]})}),(0,r.jsx)(o.wn,{title:"Telepad Status",children:1===f?(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Current Bearing",children:(0,r.jsxs)(o.az,{inline:!0,position:"relative",children:[(0,r.jsx)(o.Q7,{unit:"\xb0",width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:360,disabled:v,value:j,onChange:function(e){C(e),s("setbear",{bear:e})}}),(0,r.jsx)(o.In,{ml:1,size:1,name:"arrow-up",rotation:_})]})}),(0,r.jsx)(o.Ki.Item,{label:"Current Elevation",children:(0,r.jsx)(o.Q7,{width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:100,disabled:v,value:b,onChange:function(e){return s("setelev",{elev:e})}})}),(0,r.jsx)(o.Ki.Item,{label:"Power Level",children:p.map(function(e,n){return(0,r.jsx)(o.$n,{content:e,selected:g===e,disabled:n>=x-1||v,onClick:function(){return s("setpwr",{pwr:n+1})}},e)})}),(0,r.jsx)(o.Ki.Item,{label:"Target Sector",children:(0,r.jsx)(o.Q7,{width:6.1,lineHeight:1.5,step:1,minValue:2,maxValue:w,value:y,disabled:v,onChange:function(e){return s("setz",{newz:e})}})}),(0,r.jsxs)(o.Ki.Item,{label:"Telepad Actions",children:[(0,r.jsx)(o.$n,{content:"Send",disabled:v,onClick:function(){return s("pad_send")}}),(0,r.jsx)(o.$n,{content:"Receive",disabled:v,onClick:function(){return s("pad_receive")}})]}),(0,r.jsxs)(o.Ki.Item,{label:"Crystal Maintenance",children:[(0,r.jsx)(o.$n,{content:"Recalibrate Crystals",disabled:v,onClick:function(){return s("recal_crystals")}}),(0,r.jsx)(o.$n,{content:"Eject Crystals",disabled:v,onClick:function(){return s("eject_crystals")}})]})]}):(0,r.jsx)(r.Fragment,{children:"No pad linked to console. Please use a multitool to link a pad."})}),(0,r.jsx)(o.wn,{title:"GPS Actions",children:1===h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.$n,{disabled:0===h||v,content:"Eject GPS",onClick:function(){return s("eject_gps")}}),(0,r.jsx)(o.$n,{disabled:0===h||v,content:"Store Coordinates",onClick:function(){return s("store_to_gps")}})]}):(0,r.jsx)(r.Fragment,{children:"Please insert a GPS to store coordinates to it."})})]})})}},1745:function(e,n,t){"use strict";t.r(n),t.d(n,{TempGun:()=>c});var r=t(8138),i=t(7790),o=t(6859),l=t(2864),a=t(3384),c=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data,f=c.target_temperature,h=c.temperature,m=c.max_temp,p=c.min_temp;return(0,r.jsx)(a.p8,{width:250,height:121,children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Target Temperature",children:[(0,r.jsx)(i.Q7,{animate:!0,step:10,stepPixelSize:6,minValue:p,maxValue:m,value:f,format:function(e){return(0,o.Mg)(e,2)},width:"50px",onChange:function(e){return t("target_temperature",{target_temperature:e})}}),"\xb0C"]}),(0,r.jsx)(i.Ki.Item,{label:"Current Temperature",children:(0,r.jsxs)(i.az,{color:s(h),bold:h>500-273.15,children:[(0,r.jsx)(i.zv,{value:(0,o.LI)(h,2)}),"\xb0C"]})}),(0,r.jsx)(i.Ki.Item,{label:"Power Cost",children:(0,r.jsx)(i.az,{color:d(h),children:u(h)})})]})})})})},s=function(e){return e<=-100?"blue":e<=0?"teal":e<=100?"green":e<=200?"orange":"red"},u=function(e){return e<=100-273.15?"High":e<=250-273.15?"Medium":e<=300-273.15?"Low":e<=400-273.15?"Medium":"High"},d=function(e){return e<=100-273.15?"red":e<=250-273.15?"orange":e<=300-273.15?"green":e<=400-273.15?"orange":"red"}},4273:function(e,n,t){"use strict";t.r(n),t.d(n,{TextInputModal:()=>m,removeAllSkiplines:()=>h,sanitizeMultiline:()=>f});var r=t(8138),i=t(4530),o=t(7790),l=t(925),a=t(2864),c=t(3384),s=t(1942),u=t(9472);function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var f=function(e){return e.replace(/(\n|\r\n){3,}/,"\n\n")},h=function(e){return e.replace(/[\r\n]+/,"")},m=function(e){var n,t=(0,a.Oc)(),m=t.act,p=t.data,x=p.large_buttons,g=p.max_length,j=p.message,b=void 0===j?"":j,y=p.multiline,v=p.placeholder,w=p.timeout,k=p.title,_=(n=(0,i.useState)((void 0===v?"":v)||""),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return d(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),C=_[0],I=_[1],S=y||C.length>=30,O=135+(b.length>30?Math.ceil(b.length/4):0)+75*!!S+(b.length&&x?5:0);return(0,r.jsxs)(c.p8,{title:k,width:325,height:O,children:[w&&(0,r.jsx)(u.Loader,{value:w}),(0,r.jsx)(c.p8.Content,{onKeyDown:function(e){e.key!==l._.Enter||S&&e.shiftKey||m("submit",{entry:C}),(0,l.KL)(e.key)&&m("cancel")},children:(0,r.jsx)(o.wn,{fill:!0,children:(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.az,{color:"label",children:b})}),(0,r.jsx)(o.BJ.Item,{grow:!0,children:(0,r.jsx)(o.fs,{autoFocus:!0,autoSelect:!0,fluid:!0,height:y||C.length>=30?"100%":"1.8rem",maxLength:g,onEscape:function(){return m("cancel")},onChange:function(e){e!==C&&I(y?f(e):h(e))},placeholder:"Type something...",value:C})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(s.InputButtons,{input:C,message:"".concat(C.length,"/").concat(g||"∞")})})]})})})]})}},9449:function(e,n,t){"use strict";t.r(n),t.d(n,{ThermoMachine:()=>c});var r=t(8138),i=t(7790),o=t(6859),l=t(2864),a=t(3384),c=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data;return(0,r.jsx)(a.p8,{width:300,height:225,children:(0,r.jsxs)(a.p8.Content,{children:[(0,r.jsx)(i.wn,{title:"Status",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Temperature",children:[(0,r.jsx)(i.zv,{value:c.temperature,format:function(e){return(0,o.Mg)(e,2)}})," K"]}),(0,r.jsxs)(i.Ki.Item,{label:"Pressure",children:[(0,r.jsx)(i.zv,{value:c.pressure,format:function(e){return(0,o.Mg)(e,2)}})," kPa"]})]})}),(0,r.jsx)(i.wn,{title:"Controls",buttons:(0,r.jsx)(i.$n,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){return t("power")}}),children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Setting",textAlign:"center",children:(0,r.jsx)(i.$n,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){return t("cooling")}})}),(0,r.jsxs)(i.Ki.Item,{label:"Target Temperature",children:[(0,r.jsx)(i.$n,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){return t("target",{target:c.min})}}),(0,r.jsx)(i.Q7,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onChange:function(e){return t("target",{target:e})}}),(0,r.jsx)(i.$n,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){return t("target",{target:c.max})}}),(0,r.jsx)(i.$n,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){return t("target",{target:c.initial})}})]})]})})]})})}},1760:function(e,n,t){"use strict";t.r(n),t.d(n,{TransferValve:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.tank_one,s=a.tank_two,u=a.attached_device,d=a.valve;return(0,r.jsx)(l.p8,{width:460,height:285,children:(0,r.jsxs)(l.p8.Content,{scrollable:!0,children:[(0,r.jsx)(i.wn,{children:(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Valve Status",children:(0,r.jsx)(i.$n,{icon:d?"unlock":"lock",content:d?"Open":"Closed",disabled:!c||!s,onClick:function(){return t("toggle")}})})})}),(0,r.jsx)(i.wn,{title:"Assembly",buttons:(0,r.jsx)(i.$n,{icon:"cog",content:"Configure Assembly",disabled:!u,onClick:function(){return t("device")}}),children:(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Attachment",children:u?(0,r.jsx)(i.$n,{icon:"eject",content:u,disabled:!u,onClick:function(){return t("remove_device")}}):(0,r.jsx)(i.az,{color:"average",children:"No Assembly"})})})}),(0,r.jsx)(i.wn,{title:"Attachment One",children:(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Attachment",children:c?(0,r.jsx)(i.$n,{icon:"eject",content:c,disabled:!c,onClick:function(){return t("tankone")}}):(0,r.jsx)(i.az,{color:"average",children:"No Tank"})})})}),(0,r.jsx)(i.wn,{title:"Attachment Two",children:(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Attachment",children:s?(0,r.jsx)(i.$n,{icon:"eject",content:s,disabled:!s,onClick:function(){return t("tanktwo")}}):(0,r.jsx)(i.az,{color:"average",children:"No Tank"})})})})]})})}},6971:function(e,n,t){"use strict";t.r(n),t.d(n,{TurbineComputer:()=>s});var r=t(8138),i=t(7790),o=t(9582),l=t(6859),a=t(2864),c=t(3384),s=function(e){var n=(0,a.Oc)(),t=n.act,o=n.data,l=o.compressor,s=o.compressor_broken,f=o.turbine,h=o.turbine_broken,m=o.online,p=o.throttle,x=(o.preBurnTemperature,o.bearingDamage),g=!!(l&&!s&&f&&!h);return(0,r.jsx)(c.p8,{width:400,height:415,children:(0,r.jsxs)(c.p8.Content,{children:[(0,r.jsx)(i.wn,{title:"Status",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{icon:m?"power-off":"times",content:m?"Online":"Offline",selected:m,disabled:!g,onClick:function(){return t("toggle_power")}}),(0,r.jsx)(i.$n,{icon:"times",content:"Disconnect",onClick:function(){return t("disconnect")}})]}),children:g?(0,r.jsx)(d,{}):(0,r.jsx)(u,{})}),x>=100?(0,r.jsx)(i.BJ,{mb:"30px",fontsize:"256px",children:(0,r.jsx)(i.BJ.Item,{bold:!0,color:"red",fontsize:"256px",textAlign:"center",children:"Bearings Inoperable, Repair Required"})}):(0,r.jsx)(i.wn,{title:"Throttle",children:g?(0,r.jsx)(i.N6,{size:3,value:p,unit:"%",minValue:0,maxValue:100,step:1,stepPixelSize:1,tickWhileDragging:!0,onChange:function(e,n){return t("set_throttle",{throttle:n})}}):""})]})})},u=function(e){var n=(0,a.Oc)().data,t=n.compressor,o=n.compressor_broken,l=n.turbine,c=n.turbine_broken;return n.online,(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Compressor Status",color:!t||o?"bad":"good",children:o?t?"Offline":"Missing":"Online"}),(0,r.jsx)(i.Ki.Item,{label:"Turbine Status",color:!l||c?"bad":"good",children:c?l?"Offline":"Missing":"Online"})]})},d=function(e){var n=(0,a.Oc)().data,t=n.rpm,c=n.temperature,s=n.power,u=n.bearingDamage,d=n.preBurnTemperature,f=n.postBurnTemperature,h=n.thermalEfficiency,m=n.compressionRatio,p=n.gasThroughput;return(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Turbine Speed",children:[(0,l.Mg)(t,2)," RPM"]}),(0,r.jsxs)(i.Ki.Item,{label:"Effective Compression Ratio",children:[(0,l.Mg)(m,2),":1"]}),(0,r.jsxs)(i.Ki.Item,{label:"Gasmix Pre Burn Temp",children:[(0,l.Mg)(d,2)," K"]}),(0,r.jsxs)(i.Ki.Item,{label:"Gasmix Post Burn Temp",children:[(0,l.Mg)(f,2)," K"]}),(0,r.jsxs)(i.Ki.Item,{label:"Compressor Temp",children:[(0,l.Mg)(c,2)," K"]}),(0,r.jsxs)(i.Ki.Item,{label:"Thermal Efficiency",children:[(0,l.Mg)(100*h,2)," %"]}),(0,r.jsxs)(i.Ki.Item,{label:"Gas Throughput",children:[(0,l.Mg)(p,2)," mol/s"]}),(0,r.jsx)(i.Ki.Item,{label:"Generated Power",children:(0,o.d5)(s)}),(0,r.jsx)(i.Ki.Item,{label:"Bearing Damage",children:(0,r.jsx)(i.z2,{value:u,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,l.Mg)(u)+"%"})})]})}},8380:function(e,n,t){"use strict";t.r(n),t.d(n,{Uplink:()=>m});var r=t(8138),i=t(8587),o=t(4530),l=t(7790),a=t(3268),c=t(2864),s=t(3384),u=t(4744);function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h=function(e){switch(e){case 0:return(0,r.jsx)(p,{});case 1:return(0,r.jsx)(x,{});case 2:return(0,r.jsx)(v,{});default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},m=function(e){var n=(0,c.Oc)(),t=n.act,i=n.data.cart,a=f((0,o.useState)(0),2),d=a[0],m=a[1];return(0,r.jsxs)(s.p8,{width:900,height:600,theme:"syndicate",children:[(0,r.jsx)(u.ComplexModal,{}),(0,r.jsx)(s.p8.Content,{scrollable:!0,children:(0,r.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(l.BJ.Item,{children:(0,r.jsxs)(l.tU,{children:[(0,r.jsx)(l.tU.Tab,{selected:0===d,onClick:function(){m(0)},icon:"store",children:"View Market"},"PurchasePage"),(0,r.jsxs)(l.tU.Tab,{selected:1===d,onClick:function(){m(1)},icon:"shopping-cart",children:["View Shopping Cart ",i&&i.length?"("+i.length+")":""]},"Cart"),(0,r.jsx)(l.tU.Tab,{selected:2===d,onClick:function(){m(2)},icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,r.jsx)(l.tU.Tab,{onClick:function(){return t("lock")},icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,r.jsx)(l.BJ.Item,{grow:!0,children:h(d)})]})})]})},p=function(e){var n=(0,c.Oc)(),t=n.act,s=n.data,u=s.crystals,d=s.cats,h=f((0,o.useState)(d[0].items),2),m=h[0],p=h[1],x=f((0,o.useState)(""),2),g=x[0],b=x[1],y=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e=(0,i.pb)(e,function(e){return!!e.name}),n){var t=(0,a.XZ)(n,function(e){var n="".concat(e.name,"|").concat(e.desc,"|").concat(e.cost,"tc");return e.hijack_only&&(n+="|hijack"),n});e=(0,i.pb)(e,function(e){return t(e)})}return(0,i.Ul)(e,function(e){return e.name})},v=function(e){if(b(e),""===e)return p(d[0].items);p(y(d.map(function(e){return e.items}).flat(),e))},w=f((0,o.useState)(1),2),k=w[0],_=w[1];return(0,r.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(l.BJ,{vertical:!0,children:(0,r.jsx)(l.BJ.Item,{children:(0,r.jsx)(l.wn,{title:"Current Balance: "+u+"TC",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.$n.Checkbox,{content:"Show Descriptions",checked:k,onClick:function(){return _(!k)}}),(0,r.jsx)(l.$n,{content:"Random Item",icon:"question",onClick:function(){return t("buyRandom")}}),(0,r.jsx)(l.$n,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){return t("refund")}})]}),children:(0,r.jsx)(l.pd,{fluid:!0,placeholder:"Search Equipment",value:g,onChange:function(e){v(e)}})})})}),(0,r.jsxs)(l.BJ,{fill:!0,mt:.3,children:[(0,r.jsx)(l.BJ.Item,{width:"30%",children:(0,r.jsx)(l.wn,{fill:!0,scrollable:!0,children:(0,r.jsx)(l.tU,{vertical:!0,children:d.map(function(e){return(0,r.jsx)(l.tU.Tab,{selected:""===g&&e.items===m,onClick:function(){p(e.items),b("")},children:e.cat},e.cat)})})})}),(0,r.jsx)(l.BJ.Item,{grow:!0,children:(0,r.jsx)(l.wn,{fill:!0,scrollable:!0,children:(0,r.jsx)(l.BJ,{vertical:!0,children:m.map(function(e){return(0,r.jsx)(l.BJ.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,r.jsx)(j,{i:e,showDecription:k},(0,a.jT)(e.name))},(0,a.jT)(e.name))})})})})]})]})},x=function(e){var n=(0,c.Oc)(),t=n.act,i=n.data,s=i.cart,u=i.crystals,d=i.cart_price,h=f((0,o.useState)(0),2),m=h[0],p=h[1];return(0,r.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(l.BJ.Item,{grow:!0,children:(0,r.jsx)(l.wn,{fill:!0,scrollable:!0,title:"Current Balance: "+u+"TC",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.$n.Checkbox,{content:"Show Descriptions",checked:m,onClick:function(){return p(!m)}}),(0,r.jsx)(l.$n,{content:"Empty Cart",icon:"trash",onClick:function(){return t("empty_cart")},disabled:!s}),(0,r.jsx)(l.$n,{content:"Purchase Cart ("+d+"TC)",icon:"shopping-cart",onClick:function(){return t("purchase_cart")},disabled:!s||d>u})]}),children:(0,r.jsx)(l.BJ,{vertical:!0,children:s?s.map(function(e){return(0,r.jsx)(l.BJ.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,r.jsx)(j,{i:e,showDecription:m,buttons:(0,r.jsx)(y,{i:e})})},(0,a.jT)(e.name))}):(0,r.jsx)(l.az,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,r.jsx)(g,{})]})},g=function(e){var n=(0,c.Oc)(),t=n.act,i=n.data,o=i.cats,a=i.lucky_numbers;return(0,r.jsx)(l.BJ.Item,{grow:!0,children:(0,r.jsx)(l.wn,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,r.jsx)(l.$n,{icon:"dice",content:"See more suggestions",onClick:function(){return t("shuffle_lucky_numbers")}}),children:(0,r.jsx)(l.BJ,{wrap:!0,children:a.map(function(e){return o[e.cat].items[e.item]}).filter(function(e){return null!=e}).map(function(e,n){return(0,r.jsx)(l.BJ.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",grow:!0,children:(0,r.jsx)(j,{i:e})},n)})})})})},j=function(e){var n=e.i,t=e.showDecription,i=e.buttons,o=void 0===i?(0,r.jsx)(b,{i:n}):i;return(0,r.jsx)(l.wn,{title:(0,a.jT)(n.name),buttons:o,children:(void 0===t?1:t)?(0,r.jsx)(l.az,{italic:!0,children:(0,a.jT)(n.desc)}):null})},b=function(e){var n=(0,c.Oc)(),t=n.act,i=n.data,o=e.i,a=i.crystals;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.$n,{icon:"shopping-cart",color:1===o.hijack_only&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){return t("add_to_cart",{item:o.obj_path})},disabled:o.cost>a}),(0,r.jsx)(l.$n,{content:"Buy ("+o.cost+"TC)"+(o.refundable?" [Refundable]":""),color:1===o.hijack_only&&"red",tooltip:1===o.hijack_only&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){return t("buyItem",{item:o.obj_path})},disabled:o.cost>a})]})},y=function(e){var n=(0,c.Oc)(),t=n.act,i=n.data,o=e.i;return i.exploitable,(0,r.jsxs)(l.BJ,{children:[(0,r.jsx)(l.$n,{icon:"times",content:"("+o.cost*o.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){return t("remove_from_cart",{item:o.obj_path})}}),(0,r.jsx)(l.$n,{icon:"minus",tooltip:0===o.limit&&"Discount already redeemed!",ml:"5px",onClick:function(){return t("set_cart_item_quantity",{item:o.obj_path,quantity:--o.amount})},disabled:o.amount<=0}),(0,r.jsx)(l.$n.Input,{value:"".concat(o.amount),width:"45px",tooltipPosition:"bottom-end",tooltip:0===o.limit&&"Discount already redeemed!",onCommit:function(e){return t("set_cart_item_quantity",{item:o.obj_path,quantity:e})},disabled:-1!==o.limit&&o.amount>=o.limit&&o.amount<=0}),(0,r.jsx)(l.$n,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:0===o.limit&&"Discount already redeemed!",onClick:function(){return t("set_cart_item_quantity",{item:o.obj_path,quantity:++o.amount})},disabled:-1!==o.limit&&o.amount>=o.limit})]})},v=function(e){var n=(0,c.Oc)(),t=n.act,s=n.data,u=s.exploitable,d=s.selected_record,h=f((0,o.useState)(""),2),m=h[0],p=h[1],x=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(0,i.pb)(e,function(e){return!!e.name});if(n){var r=(0,a.XZ)(n,function(e){return e.name});t=(0,i.pb)(t,function(e){return r(e)})}return(0,i.Ul)(t,function(e){return e.name})}(u,m);return(0,r.jsxs)(l.BJ,{fill:!0,children:[(0,r.jsx)(l.BJ.Item,{width:"30%",children:(0,r.jsxs)(l.wn,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,r.jsx)(l.pd,{fluid:!0,mb:1,placeholder:"Search Crew",onChange:function(e){return p(e)}}),(0,r.jsx)(l.tU,{vertical:!0,children:x&&x.map(function(e){return(0,r.jsx)(l.tU.Tab,{selected:e.name===d.name,onClick:function(){return t("view_record",{uid_gen:e.uid_gen})},children:e.name},e.uid_gen)})})]})}),(0,r.jsx)(l.BJ.Item,{grow:!0,children:(0,r.jsx)(l.wn,{fill:!0,scrollable:!0,title:d.name,children:(0,r.jsxs)(l.BJ,{children:[(0,r.jsx)(l.BJ.Item,{children:(0,r.jsxs)(l.Ki,{children:[(0,r.jsx)(l.Ki.Item,{label:"Age",children:d.age}),(0,r.jsx)(l.Ki.Item,{label:"Fingerprint",children:d.fingerprint}),(0,r.jsx)(l.Ki.Item,{label:"Rank",children:d.rank}),(0,r.jsx)(l.Ki.Item,{label:"Sex",children:d.sex}),(0,r.jsx)(l.Ki.Item,{label:"Species",children:d.species}),(0,r.jsx)(l.Ki.Item,{label:"NT Relation",children:d.nt_relation})]})}),!!d.has_photos&&d.photos.map(function(e,n){return(0,r.jsxs)(l.BJ.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,r.jsx)("img",{src:e,style:{width:"96px",marginTop:"1rem",marginBottom:"0.5rem",imageRendering:"pixelated"}}),(0,r.jsx)("br",{}),"Photo #",n+1]},n)})]})})})]})}},1638:function(e,n,t){"use strict";t.r(n),t.d(n,{Vending:()=>u});var r=t(8138),i=t(7790),o=t(2864),l=t(3384);function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function c(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return a(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=e.product,c=e.productStock,s=e.productIcon,u=e.productIconState,d=l.locked,f=l.bypass_lock,h=(l.user,l.usermoney),m=l.inserted_cash,p=l.vend_ready;l.inserted_item_name;var x="ERROR!",g="";d&&f?(x="FREE ("+a.price+")",g="arrow-circle-down"):d&&0!==a.price?(x=a.price,g="shopping-cart"):(x="FREE",g="arrow-circle-down");var j=!p||0===c||d&&!f&&a.price>h&&a.price>m;return(0,r.jsxs)(i.XI.Row,{children:[(0,r.jsx)(i.XI.Cell,{collapsing:!0,children:(0,r.jsx)(i.Hg,{verticalAlign:"middle",icon:s,icon_state:u,fallback:(0,r.jsx)(i.In,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,r.jsx)(i.XI.Cell,{bold:!0,children:a.name}),(0,r.jsx)(i.XI.Cell,{collapsing:!0,textAlign:"center",children:(0,r.jsxs)(i.az,{color:c<=0&&"bad"||c<=a.max_amount/2&&"average"||"good",children:[c," in stock"]})}),(0,r.jsx)(i.XI.Cell,{collapsing:!0,textAlign:"center",children:(0,r.jsx)(i.$n,{fluid:!0,disabled:j,icon:g,content:x,textAlign:"left",onClick:function(){return t("vend",{inum:a.inum})}})})]})},u=function(e){var n,t=(0,o.Oc)(),a=t.act,u=t.data,d=u.user,f=u.usermoney,h=u.inserted_cash,m=u.product_records,p=u.hidden_records,x=u.stock,g=(u.vend_ready,u.inserted_item_name),j=u.panel_open,b=u.speaker,y=u.locked,v=u.bypass_lock;return n=c(void 0===m?[]:m),u.extended_inventory&&(n=c(n).concat(c(void 0===p?[]:p))),n=n.filter(function(e){return!!e}),(0,r.jsx)(l.p8,{title:"Vending Machine",width:450,height:Math.min((!y||v?230:171)+32*n.length,585),children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(!y||!!v)&&(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Configuration",children:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"pen-to-square",content:"Rename Vendor",onClick:function(){return a("rename",{})}})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"pen-to-square",content:"Change Vendor Appearance",onClick:function(){return a("change_appearance",{})}})})]})})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"User",buttons:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{children:!!g&&(0,r.jsx)(i.$n,{fluid:!0,icon:"eject",content:(0,r.jsx)("span",{style:{textTransform:"capitalize"},children:g}),onClick:function(){return a("eject_item",{})}})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{disabled:!h,icon:"money-bill-wave-alt",content:h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("b",{children:h})," credits"]}):"Dispense Change",tooltip:h?"Dispense Change":null,textAlign:"left",onClick:function(){return a("change")}})})]}),children:d&&(0,r.jsxs)(i.az,{children:["Welcome, ",(0,r.jsx)("b",{children:d.name}),", ",(0,r.jsx)("b",{children:d.job||"Unemployed"}),"!",(0,r.jsx)("br",{}),"Your balance is ",(0,r.jsxs)("b",{children:[f," credits"]}),".",(0,r.jsx)("br",{})]})})}),!!j&&(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Maintenance",children:(0,r.jsx)(i.$n,{icon:b?"check":"volume-mute",selected:b,content:"Speaker",textAlign:"left",onClick:function(){return a("toggle_voice",{})}})})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,title:"Products",children:(0,r.jsx)(i.XI,{children:n.map(function(e){return(0,r.jsx)(s,{product:e,productStock:x[e.name],productIcon:e.icon,productIconState:e.icon_state},e.name)})})})})]})})})}},2144:function(e,n,t){"use strict";t.r(n),t.d(n,{VolumeMixer:()=>c});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(3384),c=function(e){var n=(0,l.Oc)(),t=n.act,c=n.data.channels;return(0,r.jsx)(a.p8,{width:350,height:Math.min(95+50*c.length,565),children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsx)(o.wn,{fill:!0,scrollable:!0,children:c.map(function(e,n){return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(o.az,{fontSize:"1.25rem",color:"label",mt:n>0&&"0.5rem",children:e.name}),(0,r.jsx)(o.az,{mt:"0.5rem",children:(0,r.jsxs)(o.BJ,{children:[(0,r.jsx)(o.BJ.Item,{mr:.5,children:(0,r.jsx)(o.$n,{width:"24px",color:"transparent",children:(0,r.jsx)(o.In,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){return t("volume",{channel:e.num,volume:0})}})})}),(0,r.jsx)(o.BJ.Item,{grow:!0,mx:"0.5rem",children:(0,r.jsx)(o.Ap,{minValue:0,maxValue:100,stepPixelSize:3.13,value:e.volume,onChange:function(n,r){return t("volume",{channel:e.num,volume:r})}})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{width:"24px",color:"transparent",children:(0,r.jsx)(o.In,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){return t("volume",{channel:e.num,volume:100})}})})})]})})]},e.num)})})})})}},7063:function(e,n,t){"use strict";t.r(n),t.d(n,{VotePanel:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.remaining,s=a.question,u=a.choices,d=a.user_vote,f=a.counts,h=a.show_counts;return(0,r.jsx)(l.p8,{width:400,height:360,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.wn,{fill:!0,scrollable:!0,title:s,children:[(0,r.jsxs)(i.az,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),u.map(function(e){return(0,r.jsx)(i.az,{children:(0,r.jsx)(i.$n,{mb:1,fluid:!0,lineHeight:3,multiLine:e,content:e+(h?" ("+(f[e]||0)+")":""),onClick:function(){return t("vote",{target:e})},selected:e===d})},e)})]})})})}},7983:function(e,n,t){"use strict";t.r(n),t.d(n,{Wires:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data,c=a.wires||[],s=a.status||[],u=56+23*c.length+(status?0:15+17*s.length);return(0,r.jsx)(l.p8,{width:350,height:u,children:(0,r.jsx)(l.p8.Content,{children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{grow:!0,children:(0,r.jsx)(i.wn,{fill:!0,scrollable:!0,children:(0,r.jsx)(i.Ki,{children:c.map(function(e){return(0,r.jsx)(i.Ki.Item,{className:"candystripe",label:e.color_name,labelColor:e.seen_color,color:e.seen_color,buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{content:e.cut?"Mend":"Cut",onClick:function(){return t("cut",{wire:e.color})}}),(0,r.jsx)(i.$n,{content:"Pulse",onClick:function(){return t("pulse",{wire:e.color})}}),(0,r.jsx)(i.$n,{content:e.attached?"Detach":"Attach",onClick:function(){return t("attach",{wire:e.color})}})]}),children:!!e.wire&&(0,r.jsxs)("i",{children:["(",e.wire,")"]})},e.seen_color)})})})}),!!s.length&&(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{children:s.map(function(e){return(0,r.jsx)(i.az,{color:"lightgray",children:e},e)})})})]})})})}},8167:function(e,n,t){"use strict";t.r(n),t.d(n,{WizardApprenticeContract:()=>a});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data.used;return(0,r.jsx)(l.p8,{width:500,height:555,children:(0,r.jsxs)(l.p8.Content,{scrollable:!0,children:[(0,r.jsxs)(i.wn,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,r.jsx)("p",{children:"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points."}),a?(0,r.jsx)(i.az,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,r.jsx)(i.wn,{title:"Which school of magic is your apprentice studying?",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,r.jsx)("br",{}),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,r.jsx)("br",{}),(0,r.jsx)(i.$n,{content:"Select",disabled:a,onClick:function(){return t("fire")}})]}),(0,r.jsx)(i.Ki.Divider,{}),(0,r.jsxs)(i.Ki.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,r.jsx)("br",{}),"They know Teleport, Blink and Ethereal Jaunt.",(0,r.jsx)("br",{}),(0,r.jsx)(i.$n,{content:"Select",disabled:a,onClick:function(){return t("translocation")}})]}),(0,r.jsx)(i.Ki.Divider,{}),(0,r.jsxs)(i.Ki.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,r.jsx)("br",{}),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,r.jsx)("br",{}),(0,r.jsx)(i.$n,{content:"Select",disabled:a,onClick:function(){return t("restoration")}})]}),(0,r.jsx)(i.Ki.Divider,{}),(0,r.jsxs)(i.Ki.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,r.jsx)("br",{}),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,r.jsx)("br",{}),(0,r.jsx)(i.$n,{content:"Select",disabled:a,onClick:function(){return t("stealth")}})]}),(0,r.jsx)(i.Ki.Divider,{}),(0,r.jsxs)(i.Ki.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,r.jsx)("br",{}),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping."," ",(0,r.jsx)("br",{}),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,r.jsx)("br",{}),(0,r.jsx)(i.$n,{content:"Select",disabled:a,onClick:function(){return t("honk")}})]}),(0,r.jsx)(i.Ki.Divider,{})]})})]})})}},234:function(e,n,t){"use strict";t.r(n),t.d(n,{ZLevelManager:()=>u});var r=t(8138),i=t(7790),o=t(2864),l=t(3384),a=t(4530);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var s=function(e){var n=(0,o.Oc)().act,t=e.coords,l=t.x,a=t.y,c=t.z;return(0,r.jsx)(i.$n,{onClick:function(){return n("jump_to_coords",{x:l,y:a,z:c})},children:"JMP"})},u=function(){var e,n=(0,o.Oc)().data.levels,t=(e=(0,a.useState)(1),function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,2)||function(e,n){if(e){if("string"==typeof e)return c(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=t[0],d=t[1],f=n["".concat(u)],h=function(e){if(void 0===e||0==f.linkage)return"None";if(e.zpos==f.zpos)return"Looped";var t=n["".concat(e.zpos)];return(0,r.jsxs)(i.$n,{onClick:function(){return d(e.zpos)},children:[t.name," (",e.zpos,")"]})};return(0,r.jsx)(l.p8,{width:600,height:500,title:"Z-Level Manager",children:(0,r.jsx)(l.p8.Content,{scrollable:!0,children:(0,r.jsxs)(i.BJ,{fill:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{fill:!0,fitted:!0,children:(0,r.jsx)(i.tU,{vertical:!0,children:Object.values(n).map(function(e,n){return(0,r.jsxs)(i.tU.Tab,{color:"transparent",selected:e.zpos===u,onClick:function(){return d(n+1)},children:[e.name," (",e.zpos,")"]},n+1)})})})}),(0,r.jsx)(i.BJ.Item,{grow:!0,children:f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.wn,{title:"".concat(f.name," (").concat(f.zpos,")"),children:(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsxs)(i.BJ.Item,{children:["Traits: ",f.traits.join(", ")]}),(0,r.jsxs)(i.BJ.Item,{children:["Connections:",(0,r.jsx)("br",{}),"North: ",h(n["".concat(f.neighbors.north)]),(0,r.jsx)("br",{}),"South: ",h(n["".concat(f.neighbors.south)]),(0,r.jsx)("br",{}),"East: ",h(n["".concat(f.neighbors.east)]),(0,r.jsx)("br",{}),"West: ",h(n["".concat(f.neighbors.west)]),(0,r.jsx)("br",{})]})]})}),!!f.ruins.length&&(0,r.jsx)(i.wn,{title:"Known Ruins",children:(0,r.jsx)(i.BJ,{vertical:!0,fill:!0,children:(0,r.jsx)(i.Ki,{children:f.ruins.toSorted(function(e,n){return e.name.localeCompare(n.name)}).map(function(e){return(0,r.jsxs)(i.Ki.Item,{label:e.name,buttons:(0,r.jsx)(s,{coords:e.coords}),className:"candystripe",children:["(",e.coords.x,",",e.coords.y,",",e.coords.z,")"]})})})})})]})})]})})})}},2723:function(e,n,t){"use strict";t.r(n),t.d(n,{AccessList:()=>s});var r=t(8138),i=t(8587),o=t(4530),l=t(7790);function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var c={0:{icon:"times-circle",color:"bad"},1:{icon:"stop-circle",color:null},2:{icon:"check-circle",color:"good"}},s=function(e){var n,t,s=e.sectionButtons,u=e.usedByRcd,d=e.rcdButtons,f=e.accesses,h=void 0===f?[]:f,m=e.selectedList,p=void 0===m?[]:m,x=e.grantableList,g=void 0===x?[]:x,j=e.accessMod,b=e.grantAll,y=e.denyAll,v=e.grantDep,w=e.denyDep,k=(n=(0,o.useState)(null==(t=h[0])?void 0:t.name),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return a(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),_=k[0],C=k[1],I=h.find(function(e){return e.name===_}),S=[];I&&(S=(0,i.Ul)(I.accesses,function(e){return e.desc}));var O=function(e){var n=!1,t=!1,r=!0,i=!1,o=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done);r=!0){var c=l.value;p.includes(c.ref)?n=!0:t=!0}}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return!n&&t?0:n&&t?1:2};return(0,r.jsx)(l.wn,{fill:!0,scrollable:!0,title:"Access",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.$n,{icon:"check-double",content:"Select All",color:"good",onClick:function(){return b()}}),(0,r.jsx)(l.$n,{icon:"undo",content:"Deselect All",color:"bad",onClick:function(){return y()}}),void 0===s?null:s]}),children:(0,r.jsxs)(l.BJ,{children:[(0,r.jsx)(l.BJ.Item,{grow:!0,basis:"25%",children:(0,r.jsx)(l.tU,{vertical:!0,children:h.map(function(e){var n=e.accesses||[],t=c[O(n)].icon,i=c[O(n)].color;return(0,r.jsx)(l.tU.Tab,{color:i,icon:t,selected:e.name===_,onClick:function(){return C(e.name)},children:e.name},e.name)})})}),(0,r.jsx)(l.BJ.Item,{children:(0,r.jsx)(l.cG,{vertical:!0})}),(0,r.jsxs)(l.BJ.Item,{grow:!0,basis:"80%",children:[(0,r.jsxs)(l.BJ,{mb:1,children:[(0,r.jsx)(l.BJ.Item,{grow:!0,children:(0,r.jsx)(l.$n,{fluid:!0,icon:"check",content:"Select All In Region",color:"good",onClick:function(){return I&&v(I.regid)}})}),(0,r.jsx)(l.BJ.Item,{grow:!0,children:(0,r.jsx)(l.$n,{fluid:!0,icon:"times",content:"Deselect All In Region",color:"bad",onClick:function(){return I&&w(I.regid)}})})]}),!!(void 0!==u&&u)&&(0,r.jsx)(l.az,{my:1.5,children:(0,r.jsx)(l.Ki,{children:(0,r.jsx)(l.Ki.Item,{label:"Require",children:void 0===d?null:d})})}),S.map(function(e){return(0,r.jsx)(l.$n.Checkbox,{fluid:!0,content:e.desc,disabled:g.length>0&&!g.includes(e.ref)&&!p.includes(e.ref),checked:p.includes(e.ref),onClick:function(){return j(e.ref)}},e.desc)})]})]})})}},7276:function(e,n,t){"use strict";t.r(n),t.d(n,{AtmosScan:()=>l});var r=t(8138),i=t(8587),o=t(7790),l=function(e){var n=e.aircontents;return(0,r.jsx)(o.az,{children:(0,r.jsx)(o.Ki,{children:(0,i.pb)(n,function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}).map(function(e){var n,t,i,l,a;return(0,r.jsxs)(o.Ki.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,i=e.poor_low,l=e.poor_high,a=e.bad_high,n<t?"bad":n<i?"average":n>l?"average":n>a?"bad":"good"),children:[e.val,e.units]},e.entry)})})})}},3013:function(e,n,t){"use strict";t.r(n),t.d(n,{BeakerContents:()=>o});var r=t(8138),i=t(7790),o=function(e){var n=e.beakerLoaded,t=e.beakerContents,o=void 0===t?[]:t,l=e.buttons;return(0,r.jsx)(i.BJ,{vertical:!0,children:n?0===o.length?(0,r.jsx)(i.BJ.Item,{color:"label",children:"Beaker is empty."}):o.map(function(e,n){var t;return(0,r.jsxs)(i.BJ,{children:[(0,r.jsxs)(i.BJ.Item,{color:"label",grow:!0,children:[(t=e.volume)+" unit"+(1===t?"":"s")," of ",e.name]},e.name),!!l&&(0,r.jsx)(i.BJ.Item,{children:l(e,n)})]},e.name)}):(0,r.jsx)(i.BJ.Item,{color:"label",children:"No beaker loaded."})})}},9226:function(e,n,t){"use strict";t.r(n),t.d(n,{BotStatus:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.locked,c=l.noaccess,s=l.maintpanel,u=l.on,d=l.autopatrol,f=l.canhack,h=l.emagged,m=l.remote_disabled;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.IC,{children:["Swipe an ID card to ",a?"unlock":"lock"," this interface."]}),(0,r.jsx)(i.wn,{title:"General Settings",children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Status",children:(0,r.jsx)(i.$n,{icon:u?"power-off":"times",content:u?"On":"Off",selected:u,disabled:c,onClick:function(){return t("power")}})}),void 0!==d&&(0,r.jsx)(i.Ki.Item,{label:"Patrol",children:(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:d,content:"Auto Patrol",disabled:c,onClick:function(){return t("autopatrol")}})}),!!s&&(0,r.jsx)(i.Ki.Item,{label:"Maintenance Panel",children:(0,r.jsx)(i.az,{color:"bad",children:"Panel Open!"})}),(0,r.jsx)(i.Ki.Item,{label:"Safety System",children:(0,r.jsx)(i.az,{color:h?"bad":"good",children:h?"DISABLED!":"Enabled"})}),!!f&&(0,r.jsx)(i.Ki.Item,{label:"Hacking",children:(0,r.jsx)(i.$n,{icon:"terminal",content:h?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){return t("hack")}})}),(0,r.jsx)(i.Ki.Item,{label:"Remote Access",children:(0,r.jsx)(i.$n.Checkbox,{fluid:!0,checked:!m,content:"AI Remote Control",disabled:c,onClick:function(){return t("disableremote")}})})]})})]})}},4744:function(e,n,t){"use strict";t.r(n),t.d(n,{ComplexModal:()=>h,modalAnswer:()=>d,modalClose:()=>f,modalOpen:()=>s,modalRegisterBodyOverride:()=>u});var r=t(8138),i=t(4530),o=t(7790),l=t(2864);function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var c={},s=function(e,n){var t=(0,l.Oc)(),r=t.act,i=t.data;r("modal_open",{id:e,arguments:JSON.stringify(Object.assign(i.modal?i.modal.args:{},n||{}))})},u=function(e,n){c[e]=n},d=function(e,n,t){var r=(0,l.Oc)(),i=r.act,o=r.data;o.modal&&i("modal_answer",{id:e,answer:n,arguments:JSON.stringify(Object.assign(o.modal.args||{},t||{}))})},f=function(e){(0,(0,l.Oc)().act)("modal_close",{id:e})},h=function(e){var n,t,s,u=(0,l.Oc)().data;if(u.modal){var h=u.modal,m=h.id,p=h.text,x=h.type,g=(0,r.jsx)(o.$n,{mt:-1.25,icon:"arrow-left",style:{float:"right",zIndex:1},onClick:function(){return f()},children:"Cancel"}),j="auto";if(c[m])t=c[m](u.modal);else if("input"===x){var b,y=(b=(0,i.useState)(u.modal.value),function(e){if(Array.isArray(e))return e}(b)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(b,2)||function(e,n){if(e){if("string"==typeof e)return a(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,2)}}(b,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=y[0],w=y[1];n=function(e){return d(m,v)},t=(0,r.jsx)(o.pd,{value:u.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(e){w(e)}}),s=(0,r.jsxs)(o.az,{mt:"0.5rem",children:[(0,r.jsx)(o.$n,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return f()}}),(0,r.jsx)(o.$n,{icon:"check",color:"good",m:"0",style:{float:"right"},onClick:function(){return d(m,v)},children:"Confirm"}),(0,r.jsx)(o.az,{style:{clear:"both"}})]})}else if("choice"===x){var k,_="object"==((k=u.modal.choices)&&"undefined"!=typeof Symbol&&k.constructor===Symbol?"symbol":typeof k)?Object.values(u.modal.choices):u.modal.choices;t=(0,r.jsx)(o.ms,{options:_,selected:u.modal.value,width:"100%",my:"0.5rem",onSelected:function(e){return d(m,e)}}),j="initial"}else"bento"===x?t=(0,r.jsx)(o.BJ,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:u.modal.choices.map(function(e,n){return(0,r.jsx)(o.BJ.Item,{flex:"1 1 auto",children:(0,r.jsx)(o.$n,{selected:n+1===parseInt(u.modal.value,10),onClick:function(){return d(m,n+1)},children:(0,r.jsx)("img",{src:e})})},n)})}):"boolean"===x&&(s=(0,r.jsxs)(o.az,{mt:"0.5rem",children:[(0,r.jsx)(o.$n,{icon:"times",color:"bad",style:{float:"left"},mb:"0",onClick:function(){return d(m,0)},children:u.modal.no_text}),(0,r.jsx)(o.$n,{icon:"check",color:"good",style:{float:"right"},m:"0",onClick:function(){return d(m,1)},children:u.modal.yes_text}),(0,r.jsx)(o.az,{style:{clear:"both"}})]}));return(0,r.jsxs)(o.aF,{maxWidth:e.maxWidth||window.innerWidth/2+"px",maxHeight:e.maxHeight||window.innerHeight/2+"px",onEnter:n,mx:"auto",overflowY:j,"padding-bottom":"5px",children:[p&&(0,r.jsx)(o.az,{inline:!0,children:p}),c[m]&&g,t,s]})}}},2639:function(e,n,t){"use strict";t.r(n),t.d(n,{CrewManifest:()=>d});var r=t(8138),i=t(7790),o=t(3268),l=t(2864),a=t(421).lm.department,c=["Captain","Station Commander","Head of Command","Commanding Officer","Head of Personnel","Head of Service","Crew Relations Officer","Head of Security","Security Director","Sheriff","Chief Engineer","Engineering Director","Engine Foreman","Senior Engineer","Research Director","Senior Researcher","Chief Research Officer","Chief Medical Officer","Senior Physician","Medical Director","Quartermaster","Chief Logistics Officer","Supply Director","Requisitions Foreman"],s=function(e){if(-1!==c.indexOf(e))return!0},u=function(e){return e.length>0&&(0,r.jsxs)(i.XI,{children:[(0,r.jsxs)(i.XI.Row,{header:!0,color:"white",children:[(0,r.jsx)(i.XI.Cell,{width:"50%",children:"Name"}),(0,r.jsx)(i.XI.Cell,{width:"35%",children:"Rank"}),(0,r.jsx)(i.XI.Cell,{width:"15%",children:"Active"})]}),e.map(function(e){var n;return(0,r.jsxs)(i.XI.Row,{color:(n=e.rank,-1!==c.indexOf(n)?"green":"orange"),bold:s(e.rank),children:[(0,r.jsx)(i.XI.Cell,{children:(0,o.jT)(e.name)}),(0,r.jsx)(i.XI.Cell,{children:(0,o.jT)(e.rank)}),(0,r.jsx)(i.XI.Cell,{children:e.active})]},e.name+e.rank)})]})},d=function(e){if((0,l.Oc)().act,e.data)n=e.data;else{var n;n=(0,l.Oc)().data}var t=n.manifest,o=t.heads,c=t.sec,s=t.eng,d=t.med,f=t.sci,h=t.ser,m=t.sup,p=t.misc;return(0,r.jsxs)(i.az,{children:[(0,r.jsx)(i.wn,{title:(0,r.jsx)(i.az,{backgroundColor:a.command,m:-1,pt:1,pb:1,children:(0,r.jsx)(i.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:u(o)}),(0,r.jsx)(i.wn,{title:(0,r.jsx)(i.az,{backgroundColor:a.security,m:-1,pt:1,pb:1,children:(0,r.jsx)(i.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:u(c)}),(0,r.jsx)(i.wn,{title:(0,r.jsx)(i.az,{backgroundColor:a.engineering,m:-1,pt:1,pb:1,children:(0,r.jsx)(i.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:u(s)}),(0,r.jsx)(i.wn,{title:(0,r.jsx)(i.az,{backgroundColor:a.medical,m:-1,pt:1,pb:1,children:(0,r.jsx)(i.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:u(d)}),(0,r.jsx)(i.wn,{title:(0,r.jsx)(i.az,{backgroundColor:a.science,m:-1,pt:1,pb:1,children:(0,r.jsx)(i.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:u(f)}),(0,r.jsx)(i.wn,{title:(0,r.jsx)(i.az,{backgroundColor:a.service,m:-1,pt:1,pb:1,children:(0,r.jsx)(i.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:u(h)}),(0,r.jsx)(i.wn,{title:(0,r.jsx)(i.az,{backgroundColor:a.supply,m:-1,pt:1,pb:1,children:(0,r.jsx)(i.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:u(m)}),(0,r.jsx)(i.wn,{title:(0,r.jsx)(i.az,{m:-1,pt:1,pb:1,children:(0,r.jsx)(i.az,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:u(p)})]})}},1942:function(e,n,t){"use strict";t.r(n),t.d(n,{InputButtons:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.large_buttons,c=l.swapped_buttons,s=e.input,u=e.message,d=e.disabled,f=(0,r.jsx)(i.$n,{color:"good",textAlign:"center",bold:!!a,fluid:!!a,tooltip:!!a&&u,disabled:!!d,width:!a&&6,onClick:function(){return t("submit",{entry:s})},children:"Submit"}),h=(0,r.jsx)(i.$n,{color:"bad",textAlign:"center",bold:!!a,fluid:!!a,width:!a&&6,onClick:function(){return t("cancel")},children:"Cancel"});return(0,r.jsxs)(i.BJ,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[(0,r.jsx)(i.BJ.Item,{grow:a,children:h}),!a&&u&&(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.az,{color:"label",textAlign:"center",children:u})}),(0,r.jsx)(i.BJ.Item,{grow:a,children:f})]})}},1992:function(e,n,t){"use strict";t.r(n),t.d(n,{InterfaceLockNoticeBox:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=e.siliconUser,c=void 0===a?l.siliconUser:a,s=e.locked,u=void 0===s?l.locked:s,d=e.normallyLocked,f=void 0===d?l.normallyLocked:d,h=e.onLockStatusChange,m=void 0===h?function(){return t("lock")}:h,p=e.accessText;return c?(0,r.jsx)(i.IC,{color:c&&"grey",children:(0,r.jsxs)(i.so,{align:"center",children:[(0,r.jsx)(i.so.Item,{children:"Interface lock status:"}),(0,r.jsx)(i.so.Item,{grow:"1"}),(0,r.jsx)(i.so.Item,{children:(0,r.jsx)(i.$n,{m:"0",color:f?"red":"green",icon:f?"lock":"unlock",content:f?"Locked":"Unlocked",onClick:function(){m&&m(!u)}})})]})}):(0,r.jsxs)(i.IC,{children:["Swipe ",void 0===p?"an ID card":p," to ",u?"unlock":"lock"," this interface."]})}},9472:function(e,n,t){"use strict";t.r(n),t.d(n,{Loader:()=>l});var r=t(8138),i=t(7790),o=t(6859),l=function(e){var n=e.value;return(0,r.jsx)("div",{className:"AlertModal__Loader",children:(0,r.jsx)(i.az,{className:"AlertModal__LoaderProgress",style:{width:100*(0,o.J$)(n)+"%"}})})}},7352:function(e,n,t){"use strict";t.r(n),t.d(n,{LoginInfo:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.loginState;if(l)return(0,r.jsx)(i.IC,{info:!0,children:(0,r.jsxs)(i.BJ,{children:[(0,r.jsxs)(i.BJ.Item,{grow:!0,mt:.5,children:["Logged in as: ",a.name," (",a.rank,")"]}),(0,r.jsxs)(i.BJ.Item,{children:[(0,r.jsx)(i.$n,{icon:"eject",disabled:!a.id,content:"Eject ID",color:"good",onClick:function(){return t("login_eject")}}),(0,r.jsx)(i.$n,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){return t("login_logout")}})]})]})})}},736:function(e,n,t){"use strict";t.r(n),t.d(n,{LoginScreen:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.loginState,c=l.isAI,s=l.isRobot,u=l.isAdmin;return(0,r.jsx)(i.wn,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,r.jsx)(i.so,{height:"100%",align:"center",justify:"center",children:(0,r.jsxs)(i.so.Item,{textAlign:"center",mt:"-2rem",children:[(0,r.jsxs)(i.az,{fontSize:"1.5rem",bold:!0,children:[(0,r.jsx)(i.In,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,r.jsxs)(i.az,{color:"label",my:"1rem",children:["ID:",(0,r.jsx)(i.$n,{icon:"id-card",content:a.id?a.id:"----------",ml:"0.5rem",onClick:function(){return t("login_insert")}})]}),(0,r.jsx)(i.$n,{icon:"sign-in-alt",disabled:!a.id,content:"Login",onClick:function(){return t("login_login",{login_type:1})}}),!!c&&(0,r.jsx)(i.$n,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){return t("login_login",{login_type:2})}}),!!s&&(0,r.jsx)(i.$n,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){return t("login_login",{login_type:3})}}),!!u&&(0,r.jsx)(i.$n,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){return t("login_login",{login_type:4})}})]})})})}},6696:function(e,n,t){"use strict";t.r(n),t.d(n,{Operating:()=>o});var r=t(8138),i=t(7790),o=function(e){var n=e.operating,t=e.name;if(n)return(0,r.jsx)(i.Rr,{children:(0,r.jsx)(i.so,{mb:"30px",children:(0,r.jsxs)(i.so.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,r.jsx)(i.In,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,r.jsx)("br",{}),"The ",t," is processing..."]})})})}},6888:function(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>a});var r=t(8138),i=t(4530);function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var l=Object.assign((0,i.createContext)(null),{Default:function(e){var n,t=(n=(0,i.useState)(""),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return o(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=t[0],c=t[1];return(0,r.jsx)(l.Provider,{value:{searchText:a,setSearchText:c},children:e.children})}});let a=l},9298:function(e,n,t){"use strict";t.r(n),t.d(n,{Signaler:()=>a});var r=t(8138),i=t(7790),o=t(6859),l=t(2864),a=function(e){var n=(0,l.Oc)().act,t=e.data,a=t.code,c=t.frequency,s=t.minFrequency,u=t.maxFrequency;return(0,r.jsxs)(i.wn,{children:[(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Frequency",children:(0,r.jsx)(i.Q7,{animate:!0,step:.2,stepPixelSize:6,minValue:s/10,maxValue:u/10,value:c/10,format:function(e){return(0,o.Mg)(e,1)},width:"80px",onChange:function(e){return n("freq",{freq:e})}})}),(0,r.jsx)(i.Ki.Item,{label:"Code",children:(0,r.jsx)(i.Q7,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:a,width:"80px",onChange:function(e){return n("code",{code:e})}})})]}),(0,r.jsx)(i.$n,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return n("signal")}})]})}},4455:function(e,n,t){"use strict";t.r(n),t.d(n,{SimpleRecords:()=>u});var r=t(8138),i=t(8587),o=t(4530),l=t(7790),a=t(3268),c=t(2864);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var u=function(e){var n=e.data.records;return(0,r.jsx)(l.az,{children:n?(0,r.jsx)(f,{data:e.data,recordType:e.recordType}):(0,r.jsx)(d,{data:e.data})})},d=function(e){var n,t=(0,c.Oc)().act,u=e.data.recordsList,d=(n=(0,o.useState)(""),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return s(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=d[0],h=d[1],m=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(0,i.pb)(u,function(e){return null==e?void 0:e.Name});return n&&(t=(0,i.pb)(t,(0,a.XZ)(n,function(e){return e.Name}))),(0,i.Ul)(t,function(e){return e.Name})}(u,f);return(0,r.jsxs)(l.az,{children:[(0,r.jsx)(l.pd,{fluid:!0,mb:1,placeholder:"Search records...",onChange:function(e){return h(e)}}),m.map(function(e){return(0,r.jsx)(l.az,{children:(0,r.jsx)(l.$n,{mb:.5,content:e.Name,icon:"user",onClick:function(){return t("Records",{target:e.uid})}})},e)})]})},f=function(e){(0,c.Oc)().act;var n,t=e.data.records,i=t.general,o=t.medical,a=t.security;switch(e.recordType){case"MED":n=(0,r.jsx)(l.wn,{level:2,title:"Medical Data",children:o?(0,r.jsxs)(l.Ki,{children:[(0,r.jsx)(l.Ki.Item,{label:"Blood Type",children:o.blood_type}),(0,r.jsx)(l.Ki.Item,{label:"Minor Disabilities",children:o.mi_dis}),(0,r.jsx)(l.Ki.Item,{label:"Details",children:o.mi_dis_d}),(0,r.jsx)(l.Ki.Item,{label:"Major Disabilities",children:o.ma_dis}),(0,r.jsx)(l.Ki.Item,{label:"Details",children:o.ma_dis_d}),(0,r.jsx)(l.Ki.Item,{label:"Allergies",children:o.alg}),(0,r.jsx)(l.Ki.Item,{label:"Details",children:o.alg_d}),(0,r.jsx)(l.Ki.Item,{label:"Current Diseases",children:o.cdi}),(0,r.jsx)(l.Ki.Item,{label:"Details",children:o.cdi_d}),(0,r.jsx)(l.Ki.Item,{label:"Important Notes",preserveWhitespace:!0,children:o.notes})]}):(0,r.jsx)(l.az,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":n=(0,r.jsx)(l.wn,{level:2,title:"Security Data",children:a?(0,r.jsxs)(l.Ki,{children:[(0,r.jsx)(l.Ki.Item,{label:"Criminal Status",children:a.criminal}),(0,r.jsx)(l.Ki.Item,{label:"Minor Crimes",children:a.mi_crim}),(0,r.jsx)(l.Ki.Item,{label:"Details",children:a.mi_crim_d}),(0,r.jsx)(l.Ki.Item,{label:"Major Crimes",children:a.ma_crim}),(0,r.jsx)(l.Ki.Item,{label:"Details",children:a.ma_crim_d}),(0,r.jsx)(l.Ki.Item,{label:"Important Notes",preserveWhitespace:!0,children:a.notes})]}):(0,r.jsx)(l.az,{color:"red",bold:!0,children:"Security record lost!"})})}return(0,r.jsxs)(l.az,{children:[(0,r.jsx)(l.wn,{title:"General Data",children:i?(0,r.jsxs)(l.Ki,{children:[(0,r.jsx)(l.Ki.Item,{label:"Name",children:i.name}),(0,r.jsx)(l.Ki.Item,{label:"Sex",children:i.sex}),(0,r.jsx)(l.Ki.Item,{label:"Species",children:i.species}),(0,r.jsx)(l.Ki.Item,{label:"Age",children:i.age}),(0,r.jsx)(l.Ki.Item,{label:"Rank",children:i.rank}),(0,r.jsx)(l.Ki.Item,{label:"Fingerprint",children:i.fingerprint}),(0,r.jsx)(l.Ki.Item,{label:"Physical Status",children:i.p_stat}),(0,r.jsx)(l.Ki.Item,{label:"Mental Status",children:i.m_stat})]}):(0,r.jsx)(l.az,{color:"red",bold:!0,children:"General record lost!"})}),n]})}},2264:function(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>c});var r=t(8138),i=t(4530);function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function l(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return o(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var a=Object.assign((0,i.createContext)(null),{Default:function(e){var n,t=l((0,i.useState)(e.sortId),2),o=t[0],c=t[1],s=l((0,i.useState)(null==(n=e.sortOrder)||n),2),u=s[0],d=s[1];return(0,r.jsx)(a.Provider,{value:{sortId:o,setSortId:c,sortOrder:u,setSortOrder:d},children:e.children})}});let c=a},4900:function(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>a});var r=t(8138),i=t(4530);function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var l=Object.assign((0,i.createContext)(null),{Default:function(e){var n,t=(n=(0,i.useState)(e.tabIndex),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return o(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=t[0],c=t[1];return(0,r.jsx)(l.Provider,{value:{tabIndex:a,setTabIndex:c},children:e.children})}});let a=l},7482:function(e,n,t){"use strict";t.r(n),t.d(n,{TemporaryNotice:()=>a});var r=t(8138),i=t(7790),o=t(2864);function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var a=function(e){var n=(0,o.Oc)(),t=n.act,a=n.data.temp;if(a){var c,s,u=l({},a.style,!0);return(0,r.jsx)(i.IC,(c=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){l(e,n,t[n])})}return e}({},u),s=s={children:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.BJ.Item,{grow:!0,mt:.5,children:a.text}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.$n,{icon:"times-circle",onClick:function(){return t("cleartemp")}})})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(s)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(s)).forEach(function(e){Object.defineProperty(c,e,Object.getOwnPropertyDescriptor(s,e))}),c))}}},162:function(e,n,t){"use strict";t.r(n),t.d(n,{goonstation_PTL:()=>c});var r=t(8138),i=t(7790),o=t(9582),l=t(2864),a=t(3384),c=function(e){var n=(0,l.Oc)().data,t=n.total_earnings,c=n.total_energy;return n.name,(0,r.jsx)(a.p8,{title:"Power Transmission Laser",width:"310",height:"485",children:(0,r.jsxs)(a.p8.Content,{children:[(0,r.jsx)(s,{}),(0,r.jsx)(u,{}),(0,r.jsx)(d,{}),(0,r.jsxs)(i.IC,{success:!0,children:["Earned Credits : ",t?(0,o.up)(t):0]}),(0,r.jsxs)(i.IC,{success:!0,children:["Energy Sold : ",c?(0,o.QL)(c,0,"J"):"0 J"]})]})})},s=function(e){var n=(0,l.Oc)().data,t=n.max_capacity,a=n.held_power,c=n.input_total,s=n.max_grid_load;return(0,r.jsxs)(i.wn,{title:"Status",children:[(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Reserve energy",children:a?(0,o.QL)(a,0,"J"):"0 J"})}),(0,r.jsx)(i.z2,{mt:"0.5em",mb:"0.5em",ranges:{good:[.8,1/0],average:[.5,.8],bad:[-1/0,.5]},value:a/t}),(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Grid Saturation"})}),(0,r.jsx)(i.z2,{mt:"0.5em",ranges:{good:[.8,1/0],average:[.5,.8],bad:[-1/0,.5]},value:Math.min(c,t-a)/s})]})},u=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data,c=a.input_total,s=a.accepting_power,u=a.sucking_power,d=a.input_number,f=a.power_format;return(0,r.jsxs)(i.wn,{title:"Input Controls",children:[(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Input Circuit",buttons:(0,r.jsx)(i.$n,{icon:"power-off",color:s?"green":"red",onClick:function(){return t("toggle_input")},children:s?"Enabled":"Disabled"}),children:(0,r.jsx)(i.az,{color:u&&"good"||s&&"average"||"bad",children:u&&"Online"||s&&"Idle"||"Offline"})}),(0,r.jsx)(i.Ki.Item,{label:"Input Level",children:c?(0,o.d5)(c):"0 W"})]}),(0,r.jsxs)(i.az,{mt:"0.5em",children:[(0,r.jsx)(i.Q7,{mr:"0.5em",animated:!0,size:1.25,inline:!0,step:1,stepPixelSize:2,minValue:0,maxValue:999,value:d,onChange:function(e){return t("set_input",{set_input:e})}}),(0,r.jsx)(i.$n,{selected:1===f,onClick:function(){return t("inputW")},children:"W"}),(0,r.jsx)(i.$n,{selected:1e3===f,onClick:function(){return t("inputKW")},children:"KW"}),(0,r.jsx)(i.$n,{selected:1e6===f,onClick:function(){return t("inputMW")},children:"MW"}),(0,r.jsx)(i.$n,{selected:1e9===f,onClick:function(){return t("inputGW")},children:"GW"})]})]})},d=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data,c=a.output_total,s=a.firing,u=a.accepting_power,d=a.output_number,f=a.output_multiplier,h=a.target,m=a.held_power;return(0,r.jsxs)(i.wn,{title:"Output Controls",children:[(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Laser Circuit",buttons:(0,r.jsxs)(i.BJ,{children:[(0,r.jsx)(i.$n,{icon:"crosshairs",color:""===h?"green":"red",onClick:function(){return t("target")},children:h}),(0,r.jsx)(i.$n,{icon:"power-off",color:s?"green":"red",disabled:!s&&m<1e6,onClick:function(){return t("toggle_output")},children:s?"Enabled":"Disabled"})]}),children:(0,r.jsx)(i.az,{color:s&&"good"||u&&"average"||"bad",children:s&&"Online"||u&&"Idle"||"Offline"})}),(0,r.jsx)(i.Ki.Item,{label:"Output Level",children:c?c<0?"-"+(0,o.d5)(Math.abs(c)):(0,o.d5)(c):"0 W"})]}),(0,r.jsxs)(i.az,{mt:"0.5em",children:[(0,r.jsx)(i.Q7,{mr:"0.5em",size:1.25,animated:!0,inline:!0,step:1,stepPixelSize:2,minValue:0,maxValue:999,ranges:{bad:[-1/0,-1]},value:d,onChange:function(e){return t("set_output",{set_output:e})}}),(0,r.jsx)(i.$n,{selected:1e6===f,onClick:function(){return t("outputMW")},children:"MW"}),(0,r.jsx)(i.$n,{selected:1e9===f,onClick:function(){return t("outputGW")},children:"GW"})]})]})}},2817:function(e,n,t){"use strict";t.r(n),t.d(n,{pai_atmosphere:()=>l});var r=t(8138),i=t(2864),o=t(7276),l=function(e){var n=(0,i.Oc)(),t=(n.act,n.data);return(0,r.jsx)(o.AtmosScan,{aircontents:t.app_data.aircontents})}},7716:function(e,n,t){"use strict";t.r(n),t.d(n,{pai_bioscan:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=(n.act,n.data).app_data,l=t.holder,a=t.dead,c=t.health,s=t.brute,u=t.oxy,d=t.tox,f=t.burn;return(t.temp,l)?(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Status",children:a?(0,r.jsx)(i.az,{bold:!0,color:"red",children:"Dead"}):(0,r.jsx)(i.az,{bold:!0,color:"green",children:"Alive"})}),(0,r.jsx)(i.Ki.Item,{label:"Health",children:(0,r.jsx)(i.z2,{min:0,max:1,value:c/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,r.jsx)(i.Ki.Item,{label:"Oxygen Damage",children:(0,r.jsx)(i.az,{color:"blue",children:u})}),(0,r.jsx)(i.Ki.Item,{label:"Toxin Damage",children:(0,r.jsx)(i.az,{color:"green",children:d})}),(0,r.jsx)(i.Ki.Item,{label:"Burn Damage",children:(0,r.jsx)(i.az,{color:"orange",children:f})}),(0,r.jsx)(i.Ki.Item,{label:"Brute Damage",children:(0,r.jsx)(i.az,{color:"red",children:s})})]}):(0,r.jsx)(i.az,{color:"red",children:"Error: No biological host found."})}},1091:function(e,n,t){"use strict";t.r(n),t.d(n,{pai_directives:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.app_data,a=l.master,c=l.dna,s=l.prime,u=l.supplemental;return(0,r.jsxs)(i.az,{children:[(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Master",children:a?a+" ("+c+")":"None"}),a&&(0,r.jsx)(i.Ki.Item,{label:"Request DNA",children:(0,r.jsx)(i.$n,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){return t("getdna")}})}),(0,r.jsx)(i.Ki.Item,{label:"Prime Directive",children:s}),(0,r.jsx)(i.Ki.Item,{label:"Supplemental Directives",children:u||"None"})]}),(0,r.jsx)(i.az,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,r.jsx)(i.az,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}},9316:function(e,n,t){"use strict";t.r(n),t.d(n,{pai_doorjack:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n,t,l=(0,o.Oc)(),a=l.act,c=l.data.app_data,s=c.cable,u=c.machine,d=c.inprogress,f=c.progress;return c.aborted,n=u?(0,r.jsx)(i.$n,{selected:!0,content:"Connected"}):(0,r.jsx)(i.$n,{content:s?"Extended":"Retracted",color:s?"orange":null,onClick:function(){return a("cable")}}),u&&(t=(0,r.jsxs)(i.Ki.Item,{label:"Hack",children:[(0,r.jsx)(i.z2,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:f,maxValue:100}),d?(0,r.jsx)(i.$n,{mt:1,color:"red",content:"Abort",onClick:function(){return a("cancel")}}):(0,r.jsx)(i.$n,{mt:1,content:"Start",onClick:function(){return a("jack")}})]})),(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Cable",children:n}),t]})}},5042:function(e,n,t){"use strict";t.r(n),t.d(n,{pai_main_menu:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.app_data,a=l.available_software,c=l.installed_software,s=l.installed_toggles,u=l.available_ram,d=l.emotions,f=l.current_emotion,h=l.speech_verbs,m=l.current_speech_verb,p=l.available_chassises,x=l.current_chassis,g=[];return c.map(function(e){return g[e.key]=e.name}),s.map(function(e){return g[e.key]=e.name}),(0,r.jsx)(i.az,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Available RAM",children:u}),(0,r.jsxs)(i.Ki.Item,{label:"Available Software",children:[a.filter(function(e){return!g[e.key]}).map(function(e){return(0,r.jsx)(i.$n,{content:e.name+" ("+e.cost+")",icon:e.icon,disabled:e.cost>u,onClick:function(){return t("purchaseSoftware",{key:e.key})}},e.key)}),0===a.filter(function(e){return!g[e.key]}).length&&"No software available!"]}),(0,r.jsxs)(i.Ki.Item,{label:"Installed Software",children:[c.filter(function(e){return"mainmenu"!==e.key}).map(function(e){return(0,r.jsx)(i.$n,{content:e.name,icon:e.icon,onClick:function(){return t("startSoftware",{software_key:e.key})}},e.key)}),0===c.length&&"No software installed!"]}),(0,r.jsxs)(i.Ki.Item,{label:"Installed Toggles",children:[s.map(function(e){return(0,r.jsx)(i.$n,{content:e.name,icon:e.icon,selected:e.active,onClick:function(){return t("setToggle",{toggle_key:e.key})}},e.key)}),0===s.length&&"No toggles installed!"]}),(0,r.jsx)(i.Ki.Item,{label:"Select Emotion",children:d.map(function(e){return(0,r.jsx)(i.$n,{content:e.name,selected:e.id===f,onClick:function(){return t("setEmotion",{emotion:e.id})}},e.id)})}),(0,r.jsx)(i.Ki.Item,{label:"Select Speaking State",children:h.map(function(e){return(0,r.jsx)(i.$n,{content:e.name,selected:e.name===m,onClick:function(){return t("setSpeechStyle",{speech_state:e.name})}},e.id)})}),(0,r.jsx)(i.Ki.Item,{label:"Select Chassis Type",children:p.map(function(e){return(0,r.jsx)(i.$n,{content:e.name,selected:e.icon===x,onClick:function(){return t("setChassis",{chassis_to_change:e.icon})}},e.id)})})]})})}},702:function(e,n,t){"use strict";t.r(n),t.d(n,{pai_manifest:()=>l});var r=t(8138),i=t(2864),o=t(2639),l=function(e){var n=(0,i.Oc)(),t=(n.act,n.data);return(0,r.jsx)(o.CrewManifest,{data:t.app_data})}},9513:function(e,n,t){"use strict";t.r(n),t.d(n,{pai_medrecords:()=>l});var r=t(8138),i=t(2864),o=t(4455),l=function(e){var n=(0,i.Oc)().data;return(0,r.jsx)(o.SimpleRecords,{data:n.app_data,recordType:"MED"})}},984:function(e,n,t){"use strict";t.r(n),t.d(n,{pai_messenger:()=>l});var r=t(8138),i=t(2864),o=t(3260),l=function(e){var n=(0,i.Oc)(),t=(n.act,n.data);return t.app_data.active_convo?(0,r.jsx)(o.ActiveConversation,{data:t.app_data}):(0,r.jsx)(o.MessengerList,{data:t.app_data})}},9028:function(e,n,t){"use strict";t.r(n),t.d(n,{pai_radio:()=>a});var r=t(8138),i=t(7790),o=t(6859),l=t(2864),a=function(e){var n=(0,l.Oc)(),t=n.act,a=n.data.app_data,c=a.minFrequency,s=a.maxFrequency,u=a.frequency,d=a.broadcasting;return(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Frequency",children:[(0,r.jsx)(i.Q7,{animate:!0,step:.2,stepPixelSize:6,minValue:c/10,maxValue:s/10,value:u/10,format:function(e){return(0,o.Mg)(e,1)},onChange:function(e){return t("freq",{freq:e})}}),(0,r.jsx)(i.$n,{tooltip:"Reset",icon:"undo",onClick:function(){return t("freq",{freq:"145.9"})}})]}),(0,r.jsx)(i.Ki.Item,{label:"Broadcast Nearby Speech",children:(0,r.jsx)(i.$n,{onClick:function(){return t("toggleBroadcast")},selected:d,content:d?"Enabled":"Disabled"})})]})}},6838:function(e,n,t){"use strict";t.r(n),t.d(n,{pai_secrecords:()=>l});var r=t(8138),i=t(2864),o=t(4455),l=function(e){var n=(0,i.Oc)().data;return(0,r.jsx)(o.SimpleRecords,{data:n.app_data,recordType:"SEC"})}},4244:function(e,n,t){"use strict";t.r(n),t.d(n,{pai_signaler:()=>l});var r=t(8138),i=t(2864),o=t(9298),l=function(e){var n=(0,i.Oc)(),t=(n.act,n.data);return(0,r.jsx)(o.Signaler,{data:t.app_data})}},8539:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_atmos_scan:()=>l});var r=t(8138),i=t(2864),o=t(7276),l=function(e){var n=(0,i.Oc)().data;return(0,r.jsx)(o.AtmosScan,{aircontents:n.aircontents})}},5246:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_cookbook:()=>u});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(e){var n=(0,a.Oc)(),t=n.act,c=n.data,u=c.categories,d=c.current_category,f=c.recipes,h=c.search_text,m=s((0,i.useState)(f),2);m[0],m[1];var p=s((0,i.useState)(h),2),x=p[0],g=p[1];return(0,r.jsxs)(o.az,{children:[u.sort().map(function(e,n){return(0,r.jsx)(o.$n,{onClick:function(){return t("set_category",{name:e,search_text:x})},children:e},n)}),d&&(0,r.jsx)(o.wn,{title:d,buttons:(0,r.jsx)(o.pd,{width:"200px",placeholder:"Search ".concat(d),value:x,onChange:function(e){return g(e)}}),children:(0,r.jsx)(o.BJ,{vertical:!0,children:f.filter((0,l.XZ)(x,function(e){return e.name+"|"+e.container+"|"+e.instructions.toString()})).sort(function(e,n){return null==e?void 0:e.name.localeCompare(null==n?void 0:n.name)}).map(function(e,n){return(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.wn,{title:(0,l.jT)(e.name),children:(0,r.jsxs)(o.BJ,{children:[(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.Hg,{icon:e.icon,icon_state:e.icon_state,style:{width:"64px",height:"64px"}})}),(0,r.jsxs)(o.BJ.Item,{children:[e.container,":",(0,r.jsx)("ol",{children:e.instructions.map(function(e,t){return(0,r.jsx)("li",{children:e},"".concat(n,"-").concat(t))})})]})]})})},n)})})})]})}},2336:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_games:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.games;return(0,r.jsx)(i.az,{children:l.map(function(e){return(0,r.jsxs)(i.$n,{width:"33%",textAlign:"center",color:"transparent",onClick:function(){return t("play",{id:e.id})},children:[(0,r.jsx)(i.In.Stack,{height:"96px",children:"Minesweeper"===e.name?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.In,{ml:"4px",mt:"10px",name:"flag",size:"6",color:"gray",rotation:30}),(0,r.jsx)(i.In,{ml:"20px",mt:"4px",name:"bomb",size:"3",color:"black"})]}):(0,r.jsx)(i.In,{name:"gamepad",size:"6"})}),(0,r.jsx)(i.az,{children:e.name})]},e.name)})})}},3606:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_janitor:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=(n.act,n.data).janitor,l=t.user_loc,a=t.mops,c=t.buckets,s=t.cleanbots,u=t.carts,d=t.janicarts;return(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Current Location",children:[l.x,",",l.y]}),a&&(0,r.jsx)(i.Ki.Item,{label:"Mop Locations",children:a.map(function(e){return(0,r.jsxs)(i.az,{children:[e.x,",",e.y," (",e.dir,") - ",e.status]},e)})}),c&&(0,r.jsx)(i.Ki.Item,{label:"Mop Bucket Locations",children:c.map(function(e){return(0,r.jsxs)(i.az,{children:[e.x,",",e.y," (",e.dir,") - [",e.volume,"/",e.max_volume,"]"]},e)})}),s&&(0,r.jsx)(i.Ki.Item,{label:"Cleanbot Locations",children:s.map(function(e){return(0,r.jsxs)(i.az,{children:[e.x,",",e.y," (",e.dir,") - ",e.status]},e)})}),u&&(0,r.jsx)(i.Ki.Item,{label:"Janitorial Cart Locations",children:u.map(function(e){return(0,r.jsxs)(i.az,{children:[e.x,",",e.y," (",e.dir,") - [",e.volume,"/",e.max_volume,"]"]},e)})}),d&&(0,r.jsx)(i.Ki.Item,{label:"Janicart Locations",children:d.map(function(e){return(0,r.jsxs)(i.az,{children:[e.x,",",e.y," (",e.direction_from_user,")"]},e)})})]})}},2526:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_main_menu:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data,a=l.owner,c=l.ownjob,s=l.idInserted,u=l.categories,d=l.pai,f=l.notifying;return(0,r.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Owner",color:"average",children:[a,", ",c]}),(0,r.jsx)(i.Ki.Item,{label:"ID",children:(0,r.jsx)(i.$n,{icon:"sync",content:"Update PDA Info",disabled:!s,onClick:function(){return t("UpdateInfo")}})})]})})}),(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.wn,{title:"Functions",children:(0,r.jsx)(i.Ki,{children:u.map(function(e){var n=l.apps[e];return n&&n.length?(0,r.jsx)(i.Ki.Item,{label:e,children:n.map(function(e){return(0,r.jsx)(i.$n,{icon:e.uid in f?e.notify_icon:e.icon,iconSpin:e.uid in f,color:e.uid in f?"red":"transparent",content:e.name,onClick:function(){return t("StartProgram",{program:e.uid})}},e.uid)})},e):null})})})}),(0,r.jsx)(i.BJ.Item,{children:!!d&&(0,r.jsxs)(i.wn,{title:"pAI",children:[(0,r.jsx)(i.$n,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){return t("pai",{option:1})}}),(0,r.jsx)(i.$n,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){return t("pai",{option:2})}})]})})]})}},4642:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_manifest:()=>l});var r=t(8138),i=t(2864),o=t(2639),l=function(e){var n=(0,i.Oc)();return n.act,n.data,(0,r.jsx)(o.CrewManifest,{})}},1212:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_medical:()=>l});var r=t(8138),i=t(2864),o=t(4455),l=function(e){var n=(0,i.Oc)().data;return(0,r.jsx)(o.SimpleRecords,{data:n,recordType:"MED"})}},3260:function(e,n,t){"use strict";t.r(n),t.d(n,{ActiveConversation:()=>d,MessengerList:()=>f,pda_messenger:()=>u});var r=t(8138),i=t(8587),o=t(4530),l=t(7790),a=t(2864);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(e){var n=(0,a.Oc)(),t=(n.act,n.data);return t.active_convo?(0,r.jsx)(d,{data:t}):(0,r.jsx)(f,{data:t})},d=function(e){var n=(0,a.Oc)().act,t=e.data,c=t.convo_name,u=t.convo_job,d=t.messages,f=t.active_convo,h=s((0,o.useState)(!1),2),m=h[0],p=h[1],x=(0,r.jsx)(l.wn,{fill:!0,scrollable:!0,title:"Conversation with "+c+" ("+u+")",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.$n,{icon:"eye",selected:m,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){return p(!m)}}),(0,r.jsx)(l.$n,{icon:"comment",onClick:function(){return n("Message",{target:f})},content:"Reply"})]}),children:(0,i.pb)(d,function(e){return e.target===f}).map(function(e,n){return(0,r.jsxs)(l.az,{textAlign:e.sent?"right":"left",position:"relative",mb:1,children:[(0,r.jsx)(l.In,{fontSize:2.5,color:e.sent?"#4d9121":"#cd7a0d",position:"absolute",left:e.sent?null:"0px",right:e.sent?"0px":null,bottom:"-4px",style:{zIndex:"0",transform:e.sent?"scale(-1, 1)":null},name:"comment"}),(0,r.jsxs)(l.az,{inline:!0,backgroundColor:e.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:e.sent?"left":"right",style:{zIndex:"1",borderRadius:"10px",wordBreak:"normal"},children:[e.sent?"You:":"Them:"," ",e.message]})]},n)})});return m&&(x=(0,r.jsx)(l.wn,{fill:!0,scrollable:!0,title:"Conversation with "+c+" ("+u+")",buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.$n,{icon:"eye",selected:m,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){return p(!m)}}),(0,r.jsx)(l.$n,{icon:"comment",onClick:function(){return n("Message",{target:f})},content:"Reply"})]}),children:(0,i.pb)(d,function(e){return e.target===f}).map(function(e,n){return(0,r.jsxs)(l.az,{color:e.sent?"#4d9121":"#cd7a0d",style:{wordBreak:"normal"},children:[e.sent?"You:":"Them:"," ",(0,r.jsx)(l.az,{inline:!0,children:e.message})]},n)})})),(0,r.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,r.jsx)(l.BJ.Item,{mb:.5,children:(0,r.jsx)(l.Ki,{children:(0,r.jsx)(l.Ki.Item,{label:"Messenger Functions",children:(0,r.jsx)(l.$n.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){return n("Clear",{option:"Convo"})}})})})}),x]})},f=function(e){var n=(0,a.Oc)().act,t=e.data,i=t.convopdas,c=t.pdas,u=t.charges,d=t.silent,f=t.toff,m=t.ringtone_list,p=t.ringtone,x=s((0,o.useState)(""),2),g=x[0],j=x[1];return(0,r.jsxs)(l.BJ,{fill:!0,vertical:!0,children:[(0,r.jsxs)(l.BJ.Item,{mb:5,children:[(0,r.jsx)(l.Ki,{children:(0,r.jsxs)(l.Ki.Item,{label:"Messenger Functions",children:[(0,r.jsxs)(l.$n,{selected:!d,icon:d?"volume-mute":"volume-up",onClick:function(){return n("Toggle Ringer")},children:["Ringer: ",d?"Off":"On"]}),(0,r.jsxs)(l.$n,{color:f?"bad":"green",icon:"power-off",onClick:function(){return n("Toggle Messenger")},children:["Messenger: ",f?"Off":"On"]}),(0,r.jsx)(l.$n,{icon:"trash",color:"bad",onClick:function(){return n("Clear",{option:"All"})},children:"Delete All Conversations"}),(0,r.jsxs)(l.BJ,{children:[(0,r.jsx)(l.BJ.Item,{children:(0,r.jsx)(l.$n,{icon:"bell",onClick:function(){return n("Ringtone")},children:"Set Custom Ringtone"})}),(0,r.jsx)(l.BJ.Item,{grow:1,children:(0,r.jsx)(l.ms,{selected:p,fluid:!0,options:Object.keys(m),onSelected:function(e){return n("Available_Ringtones",{selected_ringtone:e})}})})]})]})}),!f&&(0,r.jsxs)(l.az,{children:[!!u&&(0,r.jsx)(l.az,{mt:.5,mb:1,children:(0,r.jsx)(l.Ki,{children:(0,r.jsxs)(l.Ki.Item,{label:"Cartridge Special Function",children:[u," charges left."]})})}),!i.length&&!c.length&&(0,r.jsx)(l.az,{children:"No current conversations"})||(0,r.jsxs)(l.az,{children:["Search:"," ",(0,r.jsx)(l.pd,{mt:.5,value:g,onChange:function(e){j(e)}})]})]})||(0,r.jsx)(l.az,{color:"bad",children:"Messenger Offline."})]}),(0,r.jsx)(h,{title:"Current Conversations",data:t,pdas:i,msgAct:"Select Conversation",searchTerm:g}),(0,r.jsx)(h,{title:"Other PDAs",pdas:c,msgAct:"Message",data:t,searchTerm:g})]})},h=function(e){var n=(0,a.Oc)().act,t=e.data,i=e.pdas,o=e.title,c=e.msgAct,s=e.searchTerm,u=t.charges,d=t.plugins;return i&&i.length?(0,r.jsx)(l.wn,{fill:!0,scrollable:!0,title:o,children:i.filter(function(e){return e.Name.toLowerCase().includes(s.toLowerCase())}).map(function(e){return(0,r.jsxs)(l.BJ,{m:.5,children:[(0,r.jsx)(l.BJ.Item,{grow:!0,children:(0,r.jsx)(l.$n,{fluid:!0,icon:"arrow-circle-down",content:e.Name,onClick:function(){return n(c,{target:e.uid})}})}),(0,r.jsx)(l.BJ.Item,{children:!!u&&d.map(function(t){return(0,r.jsx)(l.$n,{icon:t.icon,content:t.name,onClick:function(){return n("Messenger Plugin",{plugin:t.uid,target:e.uid})}},t.uid)})})]},e.uid)})}):(0,r.jsx)(l.wn,{title:o,children:"No PDAs found."})}},3067:function(e,n,t){"use strict";t.r(n),t.d(n,{MineSweeperGame:()=>u,MineSweeperLeaderboard:()=>d,pda_minesweeper:()=>s});var r=t(8138),i=t(4530),o=t(7790),l=t(2864),a=t(2264);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var s=function(e){var n,t=(0,l.Oc)();t.act,t.data;var a=(n=(0,i.useState)("Game"),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return c(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],f=a[1],h={Game:"Leaderboard",Leaderboard:"Game"};return(0,r.jsxs)(o.BJ,{fill:!0,vertical:!0,textAlign:"center",children:[(0,r.jsx)(o.BJ.Item,{grow:!0,children:"Game"===s?(0,r.jsx)(u,{}):(0,r.jsx)(d,{})}),(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{fluid:!0,color:"transparent",fontSize:2,lineHeight:1.75,icon:"Game"===s?"book":"gamepad",onClick:function(){return f(h[s])},children:h[s]})})]})},u=function(e){var n=(0,l.Oc)(),t=n.act,i=n.data,a=i.matrix,c=i.flags,s=i.bombs,u={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"},d=function(e,n,r){t("Square",{X:e,Y:n,mode:r})};return(0,r.jsxs)(o.BJ,{children:[(0,r.jsx)(o.BJ.Item,{children:Object.keys(a).map(function(e){return(0,r.jsx)(o.az,{children:Object.keys(a[e]).map(function(n){return(0,r.jsx)(o.$n,{m:.25,height:2,width:2,className:a[e][n].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:a[e][n].open?a[e][n].bomb?"bomb":"":a[e][n].flag?"flag":"",textColor:a[e][n].open?a[e][n].bomb?"black":u[a[e][n].around]:a[e][n].flag?"red":"gray",onClick:function(t){return d(e,n,"bomb")},onContextMenu:function(t){event.preventDefault(),d(e,n,"flag")},children:a[e][n].open&&!a[e][n].bomb&&a[e][n].around?a[e][n].around:" "},n)})},e)})}),(0,r.jsx)(o.BJ.Item,{grow:!0,className:"Minesweeper__infobox",children:(0,r.jsxs)(o.BJ,{vertical:!0,textAlign:"left",pt:1,children:[(0,r.jsxs)(o.BJ.Item,{pl:2,fontSize:2,children:[(0,r.jsx)(o.In,{name:"bomb",color:"gray"})," : ",s]}),(0,r.jsx)(o.BJ.Divider,{}),(0,r.jsxs)(o.BJ.Item,{pl:2,fontSize:2,children:[(0,r.jsx)(o.In,{name:"flag",color:"red"})," : ",c]})]})})]})},d=function(e){return(0,r.jsx)(a.default.Default,{sortId:"time",sortOrder:!1,children:(0,r.jsx)(f,{})})},f=function(e){var n=(0,l.Oc)(),t=(n.act,n.data).leaderboard,c=(0,i.useContext)(a.default),s=c.sortId,u=c.sortOrder;return(0,r.jsxs)(o.XI,{className:"Minesweeper__list",children:[(0,r.jsxs)(o.XI.Row,{bold:!0,children:[(0,r.jsx)(h,{id:"name",children:"Nick"}),(0,r.jsx)(h,{id:"time",children:"Time"})]}),t&&t.sort(function(e,n){return e[s].localeCompare(n[s])*(u?1:-1)}).map(function(e,n){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e.name}),(0,r.jsx)(o.XI.Cell,{children:e.time})]},n)})]})},h=function(e){var n=(0,i.useContext)(a.default),t=n.sortId,l=n.setSortId,c=n.sortOrder,s=n.setSortOrder,u=e.id,d=e.children;return(0,r.jsx)(o.XI.Cell,{children:(0,r.jsxs)(o.$n,{fluid:!0,color:"transparent",onClick:function(){t===u?s(!c):(l(u),s(!0))},children:[d,t===u&&(0,r.jsx)(o.In,{name:c?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},5030:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_mule:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=(n.act,n.data).mulebot.active;return(0,r.jsx)(i.az,{children:t?(0,r.jsx)(c,{}):(0,r.jsx)(a,{})})},a=function(e){var n=(0,o.Oc)(),t=n.act;return n.data.mulebot.bots.map(function(e){return(0,r.jsx)(i.az,{children:(0,r.jsx)(i.$n,{content:e.Name,icon:"cog",onClick:function(){return t("control",{bot:e.uid})}})},e.Name)})},c=function(e){var n,t=(0,o.Oc)(),l=t.act,a=t.data.mulebot,c=a.botstatus,s=a.active,u=c.mode,d=c.loca,f=c.load,h=c.powr,m=c.dest,p=c.home,x=c.retn,g=c.pick;switch(u){case 0:n="Ready";break;case 1:n="Loading/Unloading";break;case 2:case 12:n="Navigating to delivery location";break;case 3:n="Navigating to Home";break;case 4:n="Waiting for clear path";break;case 5:case 6:n="Calculating navigation path";break;case 7:n="Unable to locate destination";break;default:n=u}return(0,r.jsxs)(i.wn,{title:s,children:[-1===u&&(0,r.jsx)(i.az,{color:"red",bold:!0,children:"Waiting for response..."}),(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Location",children:d}),(0,r.jsx)(i.Ki.Item,{label:"Status",children:n}),(0,r.jsxs)(i.Ki.Item,{label:"Power",children:[h,"%"]}),(0,r.jsx)(i.Ki.Item,{label:"Home",children:p}),(0,r.jsx)(i.Ki.Item,{label:"Destination",children:(0,r.jsx)(i.$n,{content:m?m+" (Set)":"None (Set)",onClick:function(){return l("target")}})}),(0,r.jsx)(i.Ki.Item,{label:"Current Load",children:(0,r.jsx)(i.$n,{content:f?f+" (Unload)":"None",disabled:!f,onClick:function(){return l("unload")}})}),(0,r.jsx)(i.Ki.Item,{label:"Auto Pickup",children:(0,r.jsx)(i.$n,{content:g?"Yes":"No",selected:g,onClick:function(){return l("set_pickup_type",{autopick:+!g})}})}),(0,r.jsx)(i.Ki.Item,{label:"Auto Return",children:(0,r.jsx)(i.$n,{content:x?"Yes":"No",selected:x,onClick:function(){return l("set_auto_return",{autoret:+!x})}})}),(0,r.jsxs)(i.Ki.Item,{label:"Controls",children:[(0,r.jsx)(i.$n,{content:"Stop",icon:"stop",onClick:function(){return l("stop")}}),(0,r.jsx)(i.$n,{content:"Proceed",icon:"play",onClick:function(){return l("start")}}),(0,r.jsx)(i.$n,{content:"Return Home",icon:"home",onClick:function(){return l("home")}})]})]})]})}},9749:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_nanobank:()=>u});var r=t(8138),i=t(4530),o=t(7790),l=t(3268),a=t(2864);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),!n||o.length!==n);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(e){var n=(0,a.Oc)(),t=(n.act,n.data),l=t.logged_in,c=t.owner_name,u=t.money,h=s((0,i.useState)(1),2),m=h[0],p=h[1];return l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.az,{children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Account Name",children:c}),(0,r.jsxs)(o.Ki.Item,{label:"Account Balance",children:["$",u]})]})}),(0,r.jsxs)(o.az,{children:[(0,r.jsx)(d,{tabIndex:m,setTabIndex:p}),(0,r.jsx)(f,{tabIndex:m})]})]}):(0,r.jsx)(x,{})},d=function(e){var n=(0,a.Oc)().data.is_premium,t=e.tabIndex,i=e.setTabIndex;return(0,r.jsxs)(o.tU,{mt:2,children:[(0,r.jsxs)(o.tU.Tab,{selected:1===t,onClick:function(){return i(1)},children:[(0,r.jsx)(o.In,{mr:1,name:"list"}),"Transfers"]}),(0,r.jsxs)(o.tU.Tab,{selected:2===t,onClick:function(){return i(2)},children:[(0,r.jsx)(o.In,{mr:1,name:"list"}),"Account Actions"]}),(0,r.jsxs)(o.tU.Tab,{selected:3===t,onClick:function(){return i(3)},children:[(0,r.jsx)(o.In,{mr:1,name:"list"}),"Transaction History"]}),!!n&&(0,r.jsxs)(o.tU.Tab,{selected:4===t,onClick:function(){return i(4)},children:[(0,r.jsx)(o.In,{mr:1,name:"list"}),"Supply Orders"]})]})},f=function(e){var n=(0,a.Oc)().data.db_status,t=e.tabIndex;if(!n)return(0,r.jsx)(o.az,{children:"Account Database Connection Severed"});switch(t){case 1:return(0,r.jsx)(h,{});case 2:return(0,r.jsx)(m,{});case 3:return(0,r.jsx)(p,{});case 4:return(0,r.jsx)(j,{});default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},h=function(e){var n,t=(0,a.Oc)(),c=t.act,u=t.data,d=u.requests,f=u.available_accounts,h=u.money,m=s((0,i.useState)("selectedAccount"),2),p=m[0],x=m[1],g=s((0,i.useState)("transferAmount"),2),j=g[0],b=g[1],y=s((0,i.useState)(""),2),v=y[0],w=y[1],k=[];return f.map(function(e){return k[e.name]=e.UID}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.Ki,{children:[(0,r.jsxs)(o.Ki.Item,{label:"Account",children:[(0,r.jsx)(o.pd,{placeholder:"Search by account name",onChange:function(e){return w(e)}}),(0,r.jsx)(o.ms,{mt:.6,width:"190px",options:f.filter((0,l.XZ)(v,function(e){return e.name})).map(function(e){return e.name}),selected:null==(n=f.filter(function(e){return e.UID===p})[0])?void 0:n.name,onSelected:function(e){return x(k[e])}})]}),(0,r.jsx)(o.Ki.Item,{label:"Amount",children:(0,r.jsx)(o.pd,{placeholder:"Up to 5000",onChange:function(e){return b(e)}})}),(0,r.jsxs)(o.Ki.Item,{label:"Actions",children:[(0,r.jsx)(o.$n.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:h<j||!p,content:"Send",onClick:function(){return c("transfer",{amount:j,transfer_to_account:p})}}),(0,r.jsx)(o.$n,{bold:!0,icon:"hand-holding-usd",width:"auto",disabled:!p,content:"Request",onClick:function(){return c("transfer_request",{amount:j,transfer_to_account:p})}})]})]}),(0,r.jsx)(o.wn,{level:3,title:"Requests",children:d.map(function(e){return(0,r.jsxs)(o.az,{mt:1,ml:1,children:[(0,r.jsxs)("b",{children:["Request from ",e.requester]}),(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Amount",children:e.amount}),(0,r.jsxs)(o.Ki.Item,{label:"Time",children:[e.time," Minutes ago"]}),(0,r.jsxs)(o.Ki.Item,{label:"Actions",children:[(0,r.jsx)(o.$n.Confirm,{icon:"thumbs-up",color:"good",disabled:h<e.amount,content:"Accept",onClick:function(){return c("resolve_transfer_request",{accepted:1,requestUID:e.request_id})}}),(0,r.jsx)(o.$n,{icon:"thumbs-down",color:"bad",content:"Deny",onClick:function(){return c("resolve_transfer_request",{requestUID:e.request_id})}})]})]})]},e.UID)})})]})},m=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data,l=i.security_level,c=i.department_members,s=i.auto_approve,u=i.auto_approve_amount,d=i.is_department_account,f=i.is_premium;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.Ki,{children:[(0,r.jsxs)(o.Ki.Item,{label:"Account Security",children:[(0,r.jsx)(o.$n,{icon:"user-lock",selected:1===l,content:"Account Number Only",tooltip:"Set Account security so that only having the account number is required for transactions",onClick:function(){return t("set_security",{new_security_level:1})}}),(0,r.jsx)(o.$n,{icon:"user-lock",selected:2===l,content:"Require Pin Entry",tooltip:"Set Account security so that pin entry is required for transactions",onClick:function(){return t("set_security",{new_security_level:2})}})]}),(0,r.jsx)(o.Ki.Item,{label:"Logout",children:(0,r.jsx)(o.$n,{icon:"sign-out-alt",width:"auto",content:"Logout",onClick:function(){return t("logout")}})}),(0,r.jsx)(o.Ki.Item,{label:"NanoBank Premium",children:(0,r.jsx)(o.$n,{icon:"coins",width:"auto",tooltip:"Upgrade your NanoBank to Premium for 250 Credits! Allows you to remotely approve department cargo orders on the supply console!",color:f?"yellow":"good",content:f?"Already Purchased":"Purchase Premium",onClick:function(){return t("purchase_premium")}})})]}),!!d&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.cG,{}),(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Auto Approve Orders",children:(0,r.jsx)(o.$n,{color:s?"good":"bad",content:s?"Yes":"No",onClick:function(){return t("toggle_auto_approve")}})}),(0,r.jsx)(o.Ki.Item,{label:"Auto Approve Purchases when",children:(0,r.jsx)(o.pd,{placeholder:"# Credits",value:u,onChange:function(e){return t("set_approve_amount",{approve_amount:e})}})})]}),(0,r.jsx)(o.cG,{}),(0,r.jsxs)(o.XI,{children:[(0,r.jsxs)(o.XI.Row,{header:!0,children:[(0,r.jsx)(o.XI.Cell,{children:"Name"}),(0,r.jsx)(o.XI.Cell,{children:"Occupation"}),(0,r.jsx)(o.XI.Cell,{children:"Can Approve Crates"})]}),c.map(function(e){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e.name}),(0,r.jsx)(o.XI.Cell,{children:e.job}),(0,r.jsx)(o.XI.Cell,{children:(0,r.jsx)(o.$n,{color:e.can_approve?"good":"bad",content:e.can_approve?"Yes":"No",onClick:function(){return t("toggle_member_approval",{member:e.name})}})})]},e)})]})]})]})},p=function(e){var n=(0,a.Oc)(),t=(n.act,n.data).transaction_log;return(0,r.jsxs)(o.XI,{children:[(0,r.jsxs)(o.XI.Row,{header:!0,children:[(0,r.jsx)(o.XI.Cell,{children:"Timestamp"}),(0,r.jsx)(o.XI.Cell,{children:"Reason"}),(0,r.jsx)(o.XI.Cell,{children:"Value"}),(0,r.jsx)(o.XI.Cell,{children:"Terminal"})]}),t.map(function(e){return(0,r.jsxs)(o.XI.Row,{children:[(0,r.jsx)(o.XI.Cell,{children:e.time}),(0,r.jsx)(o.XI.Cell,{children:e.purpose}),(0,r.jsxs)(o.XI.Cell,{color:e.is_deposit?"green":"red",children:["$",e.amount]}),(0,r.jsx)(o.XI.Cell,{children:e.target_name})]},e)})]})},x=function(e){var n=(0,a.Oc)(),t=n.act,l=n.data,c=s((0,i.useState)(null),2),u=c[0],d=c[1],f=s((0,i.useState)(null),2),h=f[0],m=f[1],p=l.card_account_num,x=u||p;return(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Account ID",children:(0,r.jsx)(o.pd,{placeholder:"Account ID",onChange:function(e){return d(e)}})}),(0,r.jsx)(o.Ki.Item,{label:"Pin",children:(0,r.jsx)(o.pd,{placeholder:"Account Pin",onChange:function(e){return m(e)}})}),(0,r.jsx)(o.Ki.Item,{children:(0,r.jsx)(o.$n,{content:"Login",icon:"sign-in-alt",disabled:!u&&!p,onClick:function(){return t("login",{account_num:x,account_pin:h})}})})]})},g=function(e){var n,t,i=e.request;switch(i.department){case"Engineering":t="CE",n="orange";break;case"Medical":t="CMO",n="teal";break;case"Science":t="RD",n="purple";break;case"Supply":t="CT",n="brown";break;case"Service":t="HOP",n="olive";break;case"Security":t="HOS",n="red";break;case"Command":t="CAP",n="blue";break;case"Assistant":t="Any Head",n="grey";break;default:t="None",n="grey"}return(0,r.jsxs)(o.BJ,{fill:!0,children:[(0,r.jsx)(o.BJ.Item,{mt:.5,children:"Approval Required:"}),!!i.req_cargo_approval&&(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!i.req_head_approval&&(0,r.jsx)(o.BJ.Item,{children:(0,r.jsx)(o.$n,{color:n,content:t,disabled:i.req_cargo_approval,icon:"user-tie",tooltip:i.req_cargo_approval?"This Order first requires approval from the QM before the ".concat(t," can approve it"):"This Order requires approval from the ".concat(t," still")})})]})},j=function(e){var n=(0,a.Oc)(),t=n.act,i=n.data.supply_requests;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.az,{bold:!0,children:"Requests"}),(0,r.jsx)(o.XI,{children:i.map(function(e){return(0,r.jsxs)(o.XI.Row,{className:"Cargo_RequestList",children:[(0,r.jsxs)(o.XI.Cell,{mb:1,children:[(0,r.jsxs)(o.az,{children:["Order #",e.ordernum,": ",e.supply_type," (",e.cost," credits) for ",(0,r.jsx)("b",{children:e.orderedby})," with"," ",e.department?"The ".concat(e.department," Department"):"Their Personal"," Account"]}),(0,r.jsxs)(o.az,{italic:!0,children:["Reason: ",e.comment]}),(0,r.jsx)(g,{request:e})]}),(0,r.jsxs)(o.BJ.Item,{textAlign:"right",children:[(0,r.jsx)(o.$n,{content:"Approve",color:"green",disabled:!e.can_approve,onClick:function(){return t("approve_crate",{ordernum:e.ordernum})}}),(0,r.jsx)(o.$n,{content:"Deny",color:"red",disabled:!e.can_deny,onClick:function(){return t("deny_crate",{ordernum:e.ordernum})}})]})]},e.ordernum)})})]})}},3194:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_notes:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.note;return(0,r.jsxs)(i.az,{children:[(0,r.jsx)(i.wn,{children:l}),(0,r.jsx)(i.$n,{icon:"pen",onClick:function(){return t("Edit")},content:"Edit"})]})}},4702:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_power:()=>l});var r=t(8138),i=t(2864),o=t(1784),l=function(e){var n=(0,i.Oc)();return n.act,n.data,(0,r.jsx)(o.PowerMonitorMainContent,{})}},6651:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_secbot:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=(n.act,n.data).beepsky.active;return(0,r.jsx)(i.az,{children:t?(0,r.jsx)(c,{}):(0,r.jsx)(a,{})})},a=function(e){var n=(0,o.Oc)(),t=n.act;return n.data.beepsky.bots.map(function(e){return(0,r.jsx)(i.az,{children:(0,r.jsx)(i.$n,{content:e.Name,icon:"cog",onClick:function(){return t("control",{bot:e.uid})}})},e.Name)})},c=function(e){var n,t=(0,o.Oc)(),l=t.act,a=t.data.beepsky,c=a.botstatus,s=a.active,u=c.mode,d=c.loca;switch(u){case 0:n="Ready";break;case 1:n="Apprehending target";break;case 2:case 3:n="Arresting target";break;case 4:n="Starting patrol";break;case 5:n="On patrol";break;case 6:n="Responding to summons"}return(0,r.jsxs)(i.wn,{title:s,children:[-1===u&&(0,r.jsx)(i.az,{color:"red",bold:!0,children:"Waiting for response..."}),(0,r.jsxs)(i.Ki,{children:[(0,r.jsx)(i.Ki.Item,{label:"Location",children:d}),(0,r.jsx)(i.Ki.Item,{label:"Status",children:n}),(0,r.jsxs)(i.Ki.Item,{label:"Controls",children:[(0,r.jsx)(i.$n,{content:"Go",icon:"play",onClick:function(){return l("go")}}),(0,r.jsx)(i.$n,{content:"Stop",icon:"stop",onClick:function(){return l("stop")}}),(0,r.jsx)(i.$n,{content:"Summon",icon:"arrow-down",onClick:function(){return l("summon")}})]})]})]})}},7155:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_security:()=>l});var r=t(8138),i=t(2864),o=t(4455),l=function(e){var n=(0,i.Oc)().data;return(0,r.jsx)(o.SimpleRecords,{data:n,recordType:"SEC"})}},7024:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_signaler:()=>l});var r=t(8138),i=t(2864),o=t(9298),l=function(e){var n=(0,i.Oc)(),t=(n.act,n.data);return(0,r.jsx)(o.Signaler,{data:t})}},7148:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_status_display:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=n.act,l=n.data.records;return(0,r.jsx)(i.az,{children:(0,r.jsxs)(i.Ki,{children:[(0,r.jsxs)(i.Ki.Item,{label:"Code",children:[(0,r.jsx)(i.$n,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){return t("Status",{statdisp:0})}}),(0,r.jsx)(i.$n,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){return t("Status",{statdisp:1})}}),(0,r.jsx)(i.$n,{color:"transparent",icon:"edit",content:"Message",onClick:function(){return t("Status",{statdisp:2})}}),(0,r.jsx)(i.$n,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){return t("Status",{statdisp:3,alert:"redalert"})}}),(0,r.jsx)(i.$n,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){return t("Status",{statdisp:3,alert:"default"})}}),(0,r.jsx)(i.$n,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){return t("Status",{statdisp:3,alert:"lockdown"})}}),(0,r.jsx)(i.$n,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){return t("Status",{statdisp:3,alert:"biohazard"})}})]}),(0,r.jsx)(i.Ki.Item,{label:"Message line 1",children:(0,r.jsx)(i.$n,{content:l.message1+" (set)",icon:"pen",onClick:function(){return t("SetMessage",{msgnum:1})}})}),(0,r.jsx)(i.Ki.Item,{label:"Message line 2",children:(0,r.jsx)(i.$n,{content:l.message2+" (set)",icon:"pen",onClick:function(){return t("SetMessage",{msgnum:2})}})})]})})}},7632:function(e,n,t){"use strict";t.r(n),t.d(n,{pda_supplyrecords:()=>l});var r=t(8138),i=t(7790),o=t(2864),l=function(e){var n=(0,o.Oc)(),t=(n.act,n.data).supply,l=t.shuttle_loc,a=t.shuttle_time,c=t.shuttle_moving,s=t.approved,u=t.approved_count,d=t.requests,f=t.requests_count;return(0,r.jsxs)(i.az,{children:[(0,r.jsx)(i.Ki,{children:(0,r.jsx)(i.Ki.Item,{label:"Shuttle Status",children:c?(0,r.jsxs)(i.az,{children:["In transit ",a]}):(0,r.jsx)(i.az,{children:l})})}),(0,r.jsx)(i.wn,{mt:1,title:"Requested Orders",children:f>0&&d.map(function(e){return(0,r.jsxs)(i.az,{children:["#",e.Number,' - "',e.Name,'" for "',e.OrderedBy,'"']},e)})}),(0,r.jsx)(i.wn,{title:"Approved Orders",children:u>0&&s.map(function(e){return(0,r.jsxs)(i.az,{children:["#",e.Number,' - "',e.Name,'" for "',e.ApprovedBy,'"']},e)})})]})}},9136:function(e,n,t){"use strict";t.d(n,{P:()=>d});var r=t(8138),i=t(4530),o=t(1128),l=t(5490),a=t(3375);function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function s(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function u(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e){var n=e.className,t=e.theme,i=void 0===t?"nanotrasen":t,o=e.children,d=u(e,["className","theme","children"]);return document.documentElement.className="theme-".concat(i),(0,r.jsx)("div",{className:"theme-"+i,children:(0,r.jsx)("div",s(c({className:(0,l.Ly)(["Layout",n,(0,a.WP)(d)])},(0,a.Fl)(d)),{children:o}))})}d.Content=function(e){var n=e.className,t=e.scrollable,d=e.children,f=u(e,["className","scrollable","children"]),h=(0,i.useRef)(null);return(0,i.useEffect)(function(){var e=h.current;return e&&t&&(0,o.tk)(e),function(){e&&t&&(0,o.WK)(e)}},[]),(0,r.jsx)("div",s(c({className:(0,l.Ly)(["Layout__content",t&&"Layout__content--scrollable",n,(0,a.WP)(f)]),ref:h},(0,a.Fl)(f)),{children:d}))}},2372:function(e,n,t){"use strict";t(8138),t(7790),t(5490),t(2864),t(1956),t(9136)},7655:function(e,n,t){"use strict";t.d(n,{c:()=>s});var r=t(8138),i=t(7790),o=t(2316),l=t(5490),a=t(3268),c=t(2864);function s(e){var n=e.className,t=e.title,s=e.status,u=e.canClose,d=e.fancy,f=e.onDragStart,h=e.onClose,m=e.children;c.J3.dispatch;var p="string"==typeof t&&t===t.toLowerCase()&&(0,a.Sn)(t)||t;return(0,r.jsxs)("div",{className:(0,l.Ly)(["TitleBar",n]),children:[(0,r.jsx)("div",{className:"TitleBar__dragZone",onMouseDown:function(e){return d&&f&&f(e)}}),void 0===s?(0,r.jsx)(i.In,{className:"TitleBar__statusIcon",name:"tools",opacity:.5}):(0,r.jsx)(i.In,{className:"TitleBar__statusIcon",color:function(e){switch(e){case o.KA:return"good";case o.bz:return"average";case o.KS:default:return"bad"}}(s),name:s===o.KS?"eye-slash":"eye"}),(0,r.jsx)("div",{className:"TitleBar__title",children:p}),!!m&&(0,r.jsx)("div",{className:"TitleBar__buttons",children:m}),!1,!!(d&&u)&&(0,r.jsx)("div",{className:"TitleBar__close",onClick:h,children:(0,r.jsx)(i.In,{className:"TitleBar__close--icon",name:"times"})})]})}t(3123)},7334:function(e,n,t){"use strict";t.d(n,{p:()=>b});var r=t(8138),i=t(4530),o=t(2316),l=t(5490),a=t(3268),c=t(2864),s=t(1956),u=t(6400),d=t(2533),f=t(9136),h=t(7655);function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}function x(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}var g=(0,d.h)("Window"),j=[400,600],b=function(e){var n,t,d=e.canClose,b=void 0===d||d,y=e.theme,v=e.title,w=e.children,k=e.buttons,_=e.width,C=e.height,I=(0,c.Oc)(),S=I.config,O=I.suspended,A=(0,s.Lo)().debugLayout,P=(n=(0,i.useState)(!1),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return m(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),B=P[0],E=P[1];(0,i.useLayoutEffect)(function(){Byond.winset(Byond.windowId,{"is-visible":!1}),E(!0)},[]);var z=S.window.scale;(0,i.useEffect)(function(){if(!O&&B){var e,n;return Byond.winset(Byond.windowId,{"can-close":!!b}),g.log("mounting"),n=x(p({},S.window),{size:j}),_&&C&&(n.size=[_,C]),(null==(e=S.window)?void 0:e.key)&&(0,u.y9)(S.window.key),(0,u.C8)(n),Byond.winset(Byond.windowId,{"is-visible":!0}),g.log("set to visible"),function(){g.log("unmounting")}}},[B,_,C,z]);var T=c.J3.dispatch,N=null==(t=S.window)?void 0:t.fancy,R=S.user&&(S.user.observer?S.status<o.KS:S.status<o.KA);return O?null:(0,r.jsxs)(f.P,{className:"Window",theme:y,children:[(0,r.jsx)(h.c,{title:v||(0,a.jT)(S.title),status:S.status,fancy:N,onDragStart:u.BF,onClose:function(){g.log("pressed close"),T((0,c.JV)())},canClose:b,children:k}),(0,r.jsxs)("div",{className:(0,l.Ly)(["Window__rest",void 0!==A&&A&&"debug-layout"]),children:[!O&&w,R&&(0,r.jsx)("div",{className:"Window__dimmer"})]}),N&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"Window__resizeHandle__e",onMouseDown:(0,u.nZ)(1,0)}),(0,r.jsx)("div",{className:"Window__resizeHandle__s",onMouseDown:(0,u.nZ)(0,1)}),(0,r.jsx)("div",{className:"Window__resizeHandle__se",onMouseDown:(0,u.nZ)(1,1)})]})]})};b.Content=function(e){var n=e.className,t=e.fitted,i=e.children,o=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["className","fitted","children"]);return(0,r.jsx)(f.P.Content,x(p({className:(0,l.Ly)(["Window__content",n])},o),{children:t&&i||(0,r.jsx)("div",{className:"Window__contentPadding",children:i})}))}},3384:function(e,n,t){"use strict";t.d(n,{p8:()=>r.p}),t(9136),t(2372);var r=t(7334)},2533:function(e,n,t){"use strict";function r(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return r(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.d(n,{h:()=>l,v:()=>a});var o=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Generic",t=arguments.length,r=Array(t>2?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];if(e>=2){var l=[n].concat(i(r)).map(function(e){var n;return"string"==typeof e?e:(null!=(n=Error)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)?e.stack||String(e):JSON.stringify(e)}).filter(function(e){return e}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",ns:n,message:l})}},l=function(e){return{debug:function(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];return o.apply(void 0,[0,e].concat(i(t)))},log:function(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];return o.apply(void 0,[1,e].concat(i(t)))},info:function(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];return o.apply(void 0,[2,e].concat(i(t)))},warn:function(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];return o.apply(void 0,[3,e].concat(i(t)))},error:function(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];return o.apply(void 0,[4,e].concat(i(t)))}}},a=l()},2901:function(e,n,t){"use strict";t.d(n,{P7:()=>c,Su:()=>s,XX:()=>u});var r,i=t(9227),o=t(1843);(0,t(2533).h)("renderer");var l=!0,a=!1;function c(){l=l||"resumed",a=!1}function s(){a=!0}function u(e){if(i.k.mark("render/start"),!r){var n=document.getElementById("react-root");r=(0,o.createRoot)(n)}r.render(e),i.k.mark("render/finish"),!a&&l&&(l=!1)}},483:function(e,n,t){"use strict";t.d(n,{l:()=>f,z:()=>s});var r=t(8138),i=t(7790),o=t(2864),l=t(1956),a=t(3384),c=t(4808),s=function(e,n){return function(){return(0,r.jsx)(a.p8,{children:(0,r.jsxs)(a.p8.Content,{scrollable:!0,children:["notFound"===e&&(0,r.jsxs)("div",{children:["Interface ",(0,r.jsx)("b",{children:n})," was not found."]}),"missingExport"===e&&(0,r.jsxs)("div",{children:["Interface ",(0,r.jsx)("b",{children:n})," is missing an export."]})]})})}};function u(){return(0,r.jsx)(a.p8,{children:(0,r.jsx)(a.p8.Content,{scrollable:!0})})}function d(){return(0,r.jsx)(a.p8,{height:130,title:"Loading",width:150,children:(0,r.jsx)(a.p8.Content,{children:(0,r.jsxs)(i.BJ,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,r.jsx)(i.BJ.Item,{children:(0,r.jsx)(i.In,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,r.jsx)(i.BJ.Item,{children:"Please wait..."})]})})})}function f(){var e,n=(0,o.Oc)(),t=n.suspended,r=n.config;if((0,l.Lo)().kitchenSink,t)return u;if(null==r?void 0:r.refreshing)return d;for(var i=null==r?void 0:r.interface,a=[function(e){return"./".concat(e,".tsx")},function(e){return"./".concat(e,".jsx")},function(e){return"./".concat(e,"/index.tsx")},function(e){return"./".concat(e,"/index.jsx")}];!e&&a.length>0;){var f=a.shift()(i);try{e=c(f)}catch(e){if("MODULE_NOT_FOUND"!==e.code)throw e}}if(!e)return s("notFound",i);var h=e[i];return h||s("missingExport",i)}},7997:function(e,n,t){"use strict";t.r(n),t.d(n,{meta:()=>c});var r=t(8138),i=t(4530),o=t(7790),l=t(2533);function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var c={title:"ByondUi",render:function(){return(0,r.jsx)(s,{})}},s=function(e){var n,t=(n=(0,i.useState)("Byond.winset('".concat(Byond.windowId,"', {\n 'is-visible': true,\n})")),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return a(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=t[0],s=t[1];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.wn,{title:"Button",children:(0,r.jsx)(o.D1,{params:{type:"button",text:"Button"}})}),(0,r.jsx)(o.wn,{title:"Make BYOND calls",buttons:(0,r.jsx)(o.$n,{icon:"chevron-right",onClick:function(){return setTimeout(function(){try{var e=Function("return ("+c+")")();e&&e.then?(l.v.log("Promise"),e.then(l.v.log)):l.v.log(e)}catch(e){l.v.log(e)}})},children:"Evaluate"}),children:(0,r.jsx)(o.az,{as:"textarea",width:"100%",height:"10em",onChange:function(e){return s(e.target.value)},children:c})})]})}},6498:function(e,n,t){"use strict";t.r(n),t.d(n,{meta:()=>a});var r=t(8138),i=t(1699),o=t(7790),l=t(9582),a={title:"Storage",render:function(){return(0,r.jsx)(c,{})}},c=function(e){return window.localStorage?(0,r.jsx)(o.wn,{title:"Local Storage",buttons:(0,r.jsx)(o.$n,{icon:"recycle",onClick:function(){localStorage.clear(),i.IG.clear()},children:"Clear"}),children:(0,r.jsxs)(o.Ki,{children:[(0,r.jsx)(o.Ki.Item,{label:"Keys in use",children:localStorage.length}),(0,r.jsx)(o.Ki.Item,{label:"Remaining space",children:(0,l.QL)(localStorage.remainingSpace,0,"B")})]})}):(0,r.jsx)(o.IC,{children:"Local storage is not available."})}},9615:function(e,n,t){"use strict";t.r(n),t.d(n,{meta:()=>c});var r=t(8138),i=t(4530),o=t(7790),l=t(7218);function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var c={title:"Themes",render:function(){return(0,r.jsx)(s,{})}},s=function(e){var n,t=(n=(0,i.useContext)(l.D),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],l=!0,a=!1;try{for(i=i.call(e);!(l=(t=i.next()).done)&&(o.push(t.value),2!==o.length);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==i.return||i.return()}finally{if(a)throw r}}return o}}(n,2)||function(e,n){if(e){if("string"==typeof e)return a(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=t[0],s=t[1];return(0,r.jsx)(o.wn,{children:(0,r.jsx)(o.Ki,{children:(0,r.jsx)(o.Ki.Item,{label:"Use theme",children:(0,r.jsx)(o.pd,{placeholder:"theme_name",value:c,onChange:function(e){return s(e)}})})})})}},5810:function(e,n,t){"use strict";e.exports={}},8232:function(e,n,t){"use strict";e.exports={}},5153:function(e,n,t){"use strict";e.exports={}},4620:function(e,n,t){"use strict";e.exports={}},9258:function(e,n,t){"use strict";e.exports={}},3001:function(e,n,t){"use strict";e.exports={}},4648:function(e,n,t){"use strict";e.exports={}},5616:function(e,n,t){"use strict";e.exports={}},9782:function(e,n,t){"use strict";e.exports={}},9770:function(e,n,t){"use strict";e.exports={}},2186:function(e,n,t){"use strict";e.exports={}},6070:function(e,n,t){"use strict";e.exports={}},8523:function(e,n,t){"use strict";e.exports={}},4372:function(e,n,t){"use strict";e.exports={}},8500:function(e,n,t){"use strict";e.exports={}},3761:function(e,n,t){"use strict";t.r(n),t.d(n,{sendLogEntry:()=>l,sendMessage:()=>o,setupHotReloading:()=>a,subscribe:()=>i});let r=[];function i(e){r.push(e)}function o(e){}function l(e,n){}function a(){}}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.m=t,i.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return i.d(n,{a:n}),n},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(t,r){if(1&r&&(t=this(t)),8&r||"object"==typeof t&&t&&(4&r&&t.__esModule||16&r&&"function"==typeof t.then))return t;var o=Object.create(null);i.r(o);var l={};e=e||[null,n({}),n([]),n(n)];for(var a=2&r&&t;"object"==typeof a&&!~e.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach(e=>{l[e]=()=>t[e]});return l.default=()=>t,i.d(o,l),o},i.d=(e,n)=>{for(var t in n)i.o(n,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},i.k=e=>""+e+".css",i.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),i.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.p="/",i.rv=()=>"1.5.8",i.ruid="bundler=rspack@1.5.8",(()=>{"use strict";var e,n=i(8138);i(5810),i(8232),i(5153),i(4620),i(9258),i(3001),i(4648),i(5616),i(2186),i(6070),i(8523),i(4372),i(8500),i(9782),i(9770);var t=i(9227),r=i(1128),o=i(1874),l=i(2864),a=i(4530),c=i(8595),s=i(2533);function u(){return(0,a.useEffect)(function(){0===Object.keys(Byond.iconRefMap).length&&(function e(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return fetch(n,t).catch(function(){return new Promise(function(i){setTimeout(function(){e(n,t,r).then(i)},r)})})})((0,c.l)("icon_ref_map.json")).then(function(e){return e.json()}).then(function(e){return Byond.iconRefMap=e}).catch(function(e){return s.v.log(e)})},[]),null}function d(){return(0,n.jsx)(a.Suspense,{fallback:null,children:(0,n.jsx)(u,{})})}function f(){var e=(0,i(483).l)(l.J3);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e,{}),(0,n.jsx)(d,{})]})}var h=function(){document.addEventListener("click",function(e){for(var n=e.target;;){if(!n||n===document.body)return;if("a"===String(n.tagName).toLowerCase())break;n=n.parentElement}var t=n.getAttribute("href")||"";if(!("?"===t.charAt(0)||t.startsWith("byond://"))){e.preventDefault();var r=t;r.toLowerCase().startsWith("www")&&(r="https://"+r),Byond.sendMessage({type:"openLink",url:r})}})},m=i(2901),p=i(5900);function x(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function g(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return x(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return x(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var j=void 0,b=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var o=e,l=!0,a=!1,c=void 0;try{for(var s,u=n[Symbol.iterator]();!(l=(s=u.next()).done);l=!0){var d=s.value;Array.isArray(d)?o=b.apply(void 0,g(d)).apply(j,[o].concat(g(r))):d&&(o=d.apply(void 0,[o].concat(g(r))))}}catch(e){a=!0,c=e}finally{try{l||null==u.return||u.return()}finally{if(a)throw c}}return o}},y=i(1956);function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function w(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return v(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var k=(0,s.h)("store");t.k.mark("inception",null==(e=window.performance)?void 0:e.timeOrigin),t.k.mark("init");var _=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.sideEffects,r=n.reducer,i=n.middleware,o=b([(0,p.HY)({debug:y.A$,backend:l.jB}),r]),a=void 0===t||t?w((null==i?void 0:i.pre)||[]).concat([c.h,l.pX],w((null==i?void 0:i.post)||[])):[],s=p.Tw.apply(void 0,w(a)),u=(0,p.y$)(o,s);return window.__store__=u,window.__augmentStack__=(e=u,function(n,t){(t=t||Error(n.split("\n")[0])).stack=t.stack||n,k.log("FatalError:",t);var r,i,o=e.getState(),l=null==o||null==(r=o.backend)?void 0:r.config;return n+"\nUser Agent: "+navigator.userAgent+"\nState: "+JSON.stringify({ckey:null==l||null==(i=l.client)?void 0:i.ckey,interface:null==l?void 0:l.interface,window:null==l?void 0:l.window})}),u}();!function e(){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):((0,l.H$)(_),(0,r.y4)(),(0,o.Bm)({keyUpVerb:"Key_Up",keyDownVerb:"Key_Down",verbParamsFn:function(e,n){return"".concat(e,' "').concat(n,'"')}}),h(),_.subscribe(function(){return(0,m.XX)((0,n.jsx)(f,{}))}),Byond.subscribe(function(e,n){return _.dispatch({type:e,payload:n})}))}()})()})(); |