{"version":3,"file":"chunk.502.8f30ebe423239c99776a.js","names":["REPEAT_COUNT","typedCommands","commands","onlyCommand","repeats","Number","exec","length","includes","join","COMMANDS_THAT_STAY","Set","aliasSteps","alias","String","replace","split","map","step","trim","filter","text","count","command","commandArguments","match","arguments","formatAlias","steps","reverseStep","r","SHORT_DIRECTIONS","oppositeOf","directionOf","reverseAlias","results","reversedSteps","finishReversedSteps","push","kind","reverse","has","toLowerCase","collapseAlias","collapsedSteps","repeatedCommand","finishRepeats","stepRepeats","Math","min","Array","isArray","DIRECTION_TABLE","Object","fromEntries","long","short","DO_LIST","COUNTED_COMMAND","WATER_MOVE","longDirection","word","find","row","swimOf","way","commandsAfloat","Map","commandsAshore","commandOf","isAfloat","set","workedOutCommand","get","tidied","test","verb","direction","sameCommand","first","second","swimDirectionOf","isSwim","back","CostGraph","constructor","graph","roomIds","forEachNode","node","id","this","placeOf","place","firstLink","Int32Array","linkTargets","linkCosts","linkExtraCosts","forEach","forEachLinkedNode","link","data","cost","extraCost","linkTarget","from","linkCost","Float64Array","linkExtraCost","isSettled","Uint8Array","isWanted","costsFrom","fromId","targetIds","forceCost","fill","Infinity","targetPlaces","waitingCount","undefined","frontier","A","a","b","start","room","pop","next","nextCost","MINUTES_IN_A_DAY","minuteOfDay","minutes","floor","minutesOf","time","hours","timeOf","minute","pad","number","padStart","isWithinTimes","starts","ends","timesHold","earliest","latest","inside","_classPrivateFieldInitSpec","e","t","_checkPrivateRedeclaration","TypeError","_classPrivateFieldGet","s","_assertClassBrand","_classPrivateFieldSet","n","LEAVING_KINDS","up","down","zone","ROOM_NUMBER","EMPTY_BOUNDS","min_x","min_y","max_x","max_y","nameOrder","Intl","Collator","sensitivity","roomLabel","zoneName","roomName","runningTotals","differences","totals","total","index","entryAt","table","position","levelKey","zoneId","level","boundsOf","rooms","bounds","x","y","max","decodeZones","columns","zones","name","parentId","parent","defaultLevel","default_level","bottomLevel","bottom_level","topLevel","top_level","worldOffset","world_offset","worldSquare","world_square","isSameSpot","every","value","addedSpot","spot","shift","takenAwaySpot","decodeRooms","download","colour","colours","room_names","otherNames","entries","other_room_names","roomId","positions","withLocalExits","exits","localExits","rowsFrom","fromIds","local","size","exit","addRow","rows","each","label","isRemoved","to","isLocal","isUnconfirmed","Boolean","costs","decodeExits","exit_labels","local_exits","exitsFrom","roomExits","DEFAULT_ROOM_COLOUR","WATER_ROOM_COLOUR","TERRAINS","land","water","both","descriptionKey","description","ruleNameKey","decodedDownloads","WeakMap","isWithinSteps","mostSteps","nextOf","reached","edge","flatMap","add","spotIndexKey","_MapData_brand","WeakSet","_exitRows","_roomsBySpot","_siteExitsFrom","_roomKindSets","_descriptionKeys","_roomsByDescription","_localTerrains","_rowsReferredTo","_remappedSpots","_exitsFromWithHidden","_zonesOffsetOnWorld","_gridRoomsByWorldSpot","_roomsLeadingInto","_roomOptions","MapData","renames","foundRooms","foundZones","remapped","listedExits","descriptions","localDescriptions","terrains","siteDescriptions","groupBy","keys","decoded","roomColourRules","room_colour_rules","zoneRoomColourRules","zone_room_colour_rules","fordNames","ford_names","remappedRooms","delete","found","addFoundZone","_addRoom","call","siteName","knownLocalExits","_exits","added","slice","downloaded","exitsByRoom","hiddenRows","exit_kinds","hidden","roomKinds","room_kinds","mapVersion","map_version","placement","actionRows","action","automaticRows","automatic","unconfirmedRows","unconfirmed","words","ruleQuests","rules","ruleQuestNames","sort","doorsByRow","doors","door","rule","random","flat","keyNames","key","ruleItems","conditions","condition","item","routeColumns","shore_crossings","_shoreCrossingRows","roomsByLevel","values","levelRooms","addFoundRoom","addFoundExit","_allExitRowsFrom","before","after","_leadInto","siteExitsFrom","isRoomKind","roomsDescribedAs","isDescribedAs","siteTerrainOf","terrainOf","isWater","isWaterRoom","isColouredAsWater","isWaterAndLandRoom","isWaterOnlyRoom","isShoreCrossing","isLand","isHiddenExit","isRemovableExit","roomAtSpot","exitsFromWithHidden","isRemappedSpot","takenSpots","taken","o","spotKey","worldPlace","outer","offset","square","owner","roomsOverBorderAt","_roomsOnWorldSpot","other","roomOneStep","placementIn","stepFrom","gridZoneId","gridZoneOf","inZone","beside","isGridZone","gridNeighbourAt","worldSpot","_gridRoomAtWorldSpot","siteRoomBehind","nearRoomId","isWithinExits","toId","mostExits","isWithinZones","fromZoneId","toZoneId","mostZones","neighbours","_zoneNeighbours","spacing","zone_spacings","room_spacing","siteNameOf","roomsLeadingInto","unmappedExits","listed","mapped","zone_id","zone_name","isNew","spotTakenBy","isRemapped","levelView","levelNumber","isInteger","_neighbourRooms","drawnIds","leaving","exitBetween","_exitKinds","toRoom","_leavingExit","doorwaySpots","compassStep","stepX","stepY","stubs","_compassStep","level_steps","_viewRoom","isUnconfirmedExit","roomOptions","_listRoomOptions","searchRooms","wanted","numberedRoom","_roomNumbered","matches","option","searchText","_newRoomColour","passed","near_room","spot_taken_by","like_direction","is_water","isPlacedAnywhere","zoneOfRoom","assign","inWater","waterOnly","isShore","waterId","otherId","isCounted","_worldSpotOf","reach","stepsX","stepsY","worldX","worldY","worldLevel","shiftX","shiftY","neighbourZone","isWadeable","isFord","isBridge","hasWaterBelow","isHidden","isAction","isAutomatic","isCommandUnknown","touchesDeepWater","isRemovable","isLocked","compass_steps","to_name","to_level","to_zone_id","to_zone_name","namedRooms","roomsPerName","nameKey","compare","sign","levelStep","LIKE_DIRECTION_FROM","typed","DIRECTION_SYNONYMS","upstairs","downstairs","likeDirectionOf","likeDirection","how","isLongDirection","hasOwn","named","nearestFree","ring","most_rings_searched","abs","REGION_STATES","free","battle","evil","WARSCAPE_LINE","readRegionLine","line","region","state","WAR_REGIONS","homeSide","WINNERS","REPORT_OUTCOMES","pattern","winner","stateAfter","warRegion","readScoutReport","report","outcome","RegExp","_reportLines","ScoutReportReader","read","startsWith","EXIT_WITH_OWN_COMMANDS","LEADING_DO","BLOCKED_EXIT_COST","ALIAS_ERRORS","alreadyThere","noPath","startUnknown","roomNotFound","badForceCost","exitCommand","E","repeatedCommands","remaining","MAXIMUM_REPEATS_PER_STEP","buildAlias","stepCommands","currentCommand","parseForceCost","buildExitGraph","exitRules","allowsBlocked","chosenExits","currentFromId","isBlocked","extraCostOf","addChosenExits","addLink","labelFor","clear","isClosed","chosen","walkNotes","links","notes","usesActions","takes","health","endurance","note","JSON","stringify","effect","RULE_EFFECTS","costsHealth","amount","costsEndurance","_graph","_costGraph","_graphWithBlocked","_RouteFinder_brand","RouteFinder","graphWithBlocked","roomPath","hasNode","nodesFromTheEnd","Gc","oriented","distance","_toNode","_fromNode","walk","path","getLink","_alias","i","planTrip","startId","returnToStart","onProgress","ids","done","kept","isCutOff","unreachableCounts","_","reduce","_other","worst","keptCosts","order","l","YH","stops","legs","leg","_leg","parts","randomExit","changingWays","waitsFor","part","f7","cutOffIds","randomExitsPassed","error","blockedBy","_legToBlockedExit","randomStep","findIndex","_landingRooms","changingStep","_alternativeCommands","waitingStep","comesFirst","others","_stopToWait","_stopAtChangingWays","linksToRandomExit","ways","dearestWay","linkAt","blockedStep","stopRoomId","blocked","toRoomId","blockingNotes","walked","firstStep","afterSteps","_wayOn","_walkedUpTo","_costThrough","alternativeRowsOf","randomRowsOf","checkAliasRequest","mapData","fromRoomId","parsedForceCost","TAKES_NOTHING","aliasAnswer","request","cannotPass","dangerous","notLanding","USES_WORD","UNLOCKS","LOCKED","UNSURE_RULE_COST","QUEST_DONE_CONDITION","DO_LIST_START","conditionHolds","traveller","isDark","inRankRange","alignments","trueAlignment","displayedAlignment","race","members","race_groups","isOne","findName","negated","side","sideOf","SIDES","servant","profession","guild","isMember","isWithin","at_least","at_most","records","placeRecord","record","questNames","some","quest","questsDone","items","itemsCarried","ageSeconds","at_least_hours","younger_than_hours","canSeeInDark","regions","gameTime","questsAskedAbout","quests","loose","itemsOnKeyring","keyring","atLeast","atMost","namesInOrder","rankOf","raceName","races","conditionsHold","context","result","holds","rulesMap","exitKinds","_ExitRules_brand","_rowsClosedForGood","ExitRules","_words","_traveller","closedRows","blockingNotesByRow","filledLabels","extraCosts","notesByRow","notLandingRows","randomRows","shoreCrossingRows","alternativeRows","alternatives","darkRooms","dark","rowsInto","_applyDefaults","_applyDoor","_apply","isDangerous","_needsUnsetSecret","_closeForGood","isAcrossWater","isThroughWater","names","secretNames","missing","fillSecrets","secrets","setAt","carried","move","unlock","_addNote","isUnsure","lockedNote","bash","pick","SECRET_NAME","BUILT_IN_SECRETS","mordor_gate_password","changesAtReboot","UPTIME","SECONDS_IN","d","h","m","DURATION_PART","matchAll","written","secret","durationInSeconds","seconds","unit","readSecretsAndUptime","uptime","uptimeSeconds","SERVANT_GREETING","CLEAN_RECORD","emptyTraveller","QUESTS_LINE","QUESTS_HEADING","isQuestsAnswer","lines","questsCommand","questName","listedQuests","LINE_BREAK","isListed","sameName","questsDoneAfter","askedAbout","isTravellerSet","empty","localeCompare","escapeForPattern","alternativesPattern","CHARINFO_FIELD","SCORE_LEVEL_LINE","TITLE_LINE_START","ITEM_MARKS","itemsListed","listStart","readTraveller","changes","allLines","onKeyring","recordWordings","wording","alignmentLine","disguiseLine","recordLine","titleAlignment","hasAlignMe","hasDisguise","rawLine","readCharinfoFields","findRace","cleanEverywhere","record_places","field","parseInt","tripCost","at","cheapestNeighbours","roomCount","costOf","cheapest","isFull","dearerPlace","splice","RoomQueue","waiting","isEmpty","take","TripImprover","cheapestTo","cheapestFrom","forward","backward","countTotals","firstChanged","previous","lastPlace","placeAfter","placeBefore","fromPlace","toPlace","reversingGain","last","movingGain","roomsAround","tryReversing","touched","stretch","tryMoving","run","target","reversalsAround","here","neighbour","there","movesAround","extent","improveAround","improve","useOrder","perturb","randomBetween","secondCut","START","earliestFirstCut","latestThirdCut","firstCut","thirdCut","firstPiece","secondPiece","searchAround","timeBudgetMs","hasRoomToPerturb","seed","low","high","stopAt","performance","now","mostFailedAttempts","best","bestCost","failedAttempts","orderTrip","improver","left","splitAlias","maximumLength","current","longer","startRouteFinder","Worker","URL","p","u","module","exports","_eai_d","_eai_r","esc","__esModule","default","window","emberAutoImportDynamic","specifier","prototype","emberAutoImportSync","EAI_DISCOVERED_EXTERNALS_START","EAI_DISCOVERED_EXTERNALS_END","then","all","Promise","require","define"],"sources":["webpack://__ember_auto_import__/app/utils/alias.js","webpack://__ember_auto_import__/app/utils/commands.js","webpack://__ember_auto_import__/app/utils/cost-graph.js","webpack://__ember_auto_import__/app/utils/game-times.js","webpack://__ember_auto_import__/app/utils/map-data.js","webpack://__ember_auto_import__/app/utils/map-placement.js","webpack://__ember_auto_import__/app/utils/regions.js","webpack://__ember_auto_import__/app/utils/route-alias.js","webpack://__ember_auto_import__/app/utils/route-rules.js","webpack://__ember_auto_import__/app/utils/secrets.js","webpack://__ember_auto_import__/app/utils/traveller.js","webpack://__ember_auto_import__/app/utils/trip.js","webpack://__ember_auto_import__/app/workers/start-route-finder.js","webpack://__ember_auto_import__/tmp/broccoli--79-GkeKRfmXUXLD/cache-100-webpack_bundler_ember_auto_import_webpack/app.cjs"],"sourcesContent":["0; //eaimeta@70e063a35619d71f0,\"t2t-quests-gui/utils/commands\"eaimeta@70e063a35619d71f\n// Reversing and collapsing \"do\" aliases, such as \"do 2n,e,open door,n\".\nimport { SHORT_DIRECTIONS, directionOf, oppositeOf } from 't2t-quests-gui/utils/commands';\n\n// The most times one step of an alias may repeat a command, as in \"40n\".\nexport const MAXIMUM_REPEATS_PER_STEP = 40;\n// The most times a command typed on its own, without \"do\", may repeat, as in\n// \"10s\".\nexport const MAXIMUM_REPEATS_WITHOUT_DO = 10;\n// How the route finder writes an alias: \"do n,2e,open door\".\nexport const ALIAS_PREFIX = 'do ';\nexport const ALIAS_SEPARATOR = ',';\nconst REPEAT_COUNT = /^(\\d+)/;\n\n// What to type for these commands: one the game takes on its own as it is,\n// else a \"do\" list of them.\nexport function typedCommands(commands) {\n  const [onlyCommand] = commands;\n  const repeats = Number(REPEAT_COUNT.exec(onlyCommand ?? '')?.[1] ?? 1);\n  const isTypedAlone = commands.length === 1 && !onlyCommand.includes(ALIAS_SEPARATOR) && repeats <= MAXIMUM_REPEATS_WITHOUT_DO;\n  return isTypedAlone ? onlyCommand : ALIAS_PREFIX + commands.join(ALIAS_SEPARATOR);\n}\n\n// Commands that don't move, so they stay as they are when reversed.\nconst COMMANDS_THAT_STAY = new Set(['l', 'look', 'glance']);\n\n// The steps of an alias, without \"do\", as { count, command, arguments, text }.\n// count is null when the step has no number in front.\nexport function aliasSteps(alias) {\n  return String(alias ?? '').replace(/[\\r\\n]/g, '').split(',').map(step => step.replace(/^\\s*do\\s+/, '').trim()).filter(step => step !== '' && step !== 'do').map(text => {\n    const [, count, command, commandArguments] = text.match(/^(\\d*)(\\S*)\\s*(.*)$/);\n    return {\n      count: count === '' ? null : Number(count),\n      command,\n      arguments: commandArguments,\n      text\n    };\n  });\n}\nexport function formatAlias(steps) {\n  return `do ${steps.join(', ')}`;\n}\nfunction reverseStep(step) {\n  const repeats = step.count > 1 ? String(step.count) : '';\n  return repeats + SHORT_DIRECTIONS[oppositeOf(directionOf(step.command))];\n}\n\n// The way back along an alias. Directions are reversed and looking stays as\n// it is; any other command, such as \"open door\", can't be reversed\n// automatically, so the result is split there. Returns, in order:\n//   { kind: 'alias', alias: 'do s,2w' }       steps reversed automatically\n//   { kind: 'manual', command: 'open door' }  a step to reverse by hand\nexport function reverseAlias(alias) {\n  const results = [];\n  let reversedSteps = [];\n  const finishReversedSteps = () => {\n    if (reversedSteps.length > 0) {\n      results.push({\n        kind: 'alias',\n        alias: formatAlias(reversedSteps)\n      });\n      reversedSteps = [];\n    }\n  };\n  for (const step of aliasSteps(alias).reverse()) {\n    if (COMMANDS_THAT_STAY.has(step.command.toLowerCase())) {\n      reversedSteps.push(step.text);\n    } else if (directionOf(step.command) && step.arguments === '') {\n      reversedSteps.push(reverseStep(step));\n    } else {\n      finishReversedSteps();\n      results.push({\n        kind: 'manual',\n        command: step.text\n      });\n    }\n  }\n  finishReversedSteps();\n  return results;\n}\n\n// The alias with repeated commands merged, as \"n,north,2n,e\" becomes\n// \"do 4n, e\", with directions in their short form. A step repeats a command\n// at most MAXIMUM_REPEATS_PER_STEP times. Commands with arguments, such as\n// \"open door\", are kept as written. alias may also be a list of steps, such\n// as the exits of a path on the map.\nexport function collapseAlias(alias) {\n  const collapsedSteps = [];\n  let repeatedCommand = null;\n  let repeats = 0;\n  const finishRepeats = () => {\n    while (repeats > 0) {\n      const stepRepeats = Math.min(repeats, MAXIMUM_REPEATS_PER_STEP);\n      collapsedSteps.push(stepRepeats > 1 ? `${stepRepeats}${repeatedCommand}` : repeatedCommand);\n      repeats -= stepRepeats;\n    }\n    repeatedCommand = null;\n  };\n  const steps = aliasSteps(Array.isArray(alias) ? alias.join(',') : alias);\n  for (const step of steps) {\n    if (step.arguments !== '' || step.command === '') {\n      finishRepeats();\n      collapsedSteps.push(step.text);\n      continue;\n    }\n    const command = SHORT_DIRECTIONS[directionOf(step.command)] ?? step.command;\n    if (command !== repeatedCommand) {\n      finishRepeats();\n      repeatedCommand = command;\n    }\n    repeats += step.count ?? 1;\n  }\n  finishRepeats();\n  return collapsedSteps.length > 0 ? formatAlias(collapsedSteps) : '';\n}","0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n// What's typed to take an exit, written one way to compare, as in\n// api/src/t2t_quests/services/commands.py (tests/fixtures/command-cases.js).\n\n// Each direction's long form, short form and way back.\nconst DIRECTION_TABLE = [['north', 'n', 'south'], ['northeast', 'ne', 'southwest'], ['east', 'e', 'west'], ['southeast', 'se', 'northwest'], ['south', 's', 'north'], ['southwest', 'sw', 'northeast'], ['west', 'w', 'east'], ['northwest', 'nw', 'southeast'], ['up', 'u', 'down'], ['down', 'd', 'up']];\nexport const SHORT_DIRECTIONS = Object.fromEntries(DIRECTION_TABLE.map(([long, short]) => [long, short]));\nconst DO_LIST = /^do\\s+/;\nconst COUNTED_COMMAND = /^\\d+\\s*\\D/;\nconst WATER_MOVE = /^(swim|launch|land) (\\S+)$/;\nconst LANDING = 'land';\n\n// The long form of a direction typed either way, or null.\nfunction longDirection(word) {\n  return DIRECTION_TABLE.find(row => row[0] === word || row[1] === word)?.[0] ?? null;\n}\n\n// The swim that way, as `swim e` for east.\nexport function swimOf(way) {\n  return `swim ${SHORT_DIRECTIONS[longDirection(way)] ?? way}`;\n}\n\n// Each text's command, afloat and not, as the map's few hundred exit labels\n// are looked up over and over.\nconst commandsAfloat = new Map();\nconst commandsAshore = new Map();\n\n// What the text means, or null for none: a direction long, a swim as\n// `swim n` (as `launch n` is too), `land n` and, unless afloat, `n` as\n// `north`, a `do` list as its first command, and anything else, a counted\n// command such as `2knock on gate` included, as typed in lower case.\nexport function commandOf(text, {\n  isAfloat = false\n} = {}) {\n  const commands = isAfloat ? commandsAfloat : commandsAshore;\n  if (!commands.has(text)) {\n    commands.set(text, workedOutCommand(text, isAfloat));\n  }\n  return commands.get(text);\n}\nfunction workedOutCommand(text, isAfloat) {\n  const tidied = String(text ?? '').trim().toLowerCase().replace(/\\s+/g, ' ');\n  if (DO_LIST.test(tidied)) {\n    return workedOutCommand(tidied.replace(DO_LIST, '').split(',')[0], isAfloat);\n  }\n  const [, verb, way] = WATER_MOVE.exec(tidied) ?? [];\n  const direction = COUNTED_COMMAND.test(tidied) ? null : longDirection(way ?? tidied);\n  if (!direction) {\n    return tidied || null;\n  }\n  return verb === LANDING || !verb && !isAfloat ? direction : swimOf(direction);\n}\nexport function sameCommand(first, second) {\n  const command = commandOf(first);\n  return command !== null && command === commandOf(second);\n}\n\n// The long direction of a plain direction command, or null.\nexport function directionOf(command) {\n  return longDirection(commandOf(command) ?? '');\n}\n\n// The direction a swim goes, or null for any other command.\nexport function swimDirectionOf(command) {\n  const [, verb, way] = WATER_MOVE.exec(commandOf(command) ?? '') ?? [];\n  return verb ? longDirection(way) : null;\n}\nexport function isSwim(command) {\n  return swimDirectionOf(command) !== null;\n}\n\n// The command back the way a plain direction or a swim went, or null.\nexport function oppositeOf(command) {\n  const direction = directionOf(command) ?? swimDirectionOf(command);\n  const back = DIRECTION_TABLE.find(row => row[0] === direction)?.[2];\n  if (!back) {\n    return null;\n  }\n  return isSwim(command) ? swimOf(back) : back;\n}","0; //eaimeta@70e063a35619d71f0,\"tinyqueue\"eaimeta@70e063a35619d71f\n// The exit graph's rooms and links in typed arrays, for searching many rooms'\n// costs quickly: rooms are numbered from 0, and the links leaving room r are\n// those from firstLink[r] up to firstLink[r + 1].\nimport TinyQueue from 'tinyqueue';\nexport default class CostGraph {\n  constructor(graph) {\n    const roomIds = [];\n    graph.forEachNode(node => {\n      roomIds.push(node.id);\n    });\n    this.placeOf = new Map(roomIds.map((id, place) => [id, place]));\n    this.firstLink = new Int32Array(roomIds.length + 1);\n    const linkTargets = [];\n    const linkCosts = [];\n    const linkExtraCosts = [];\n    roomIds.forEach((id, place) => {\n      this.firstLink[place] = linkTargets.length;\n      graph.forEachLinkedNode(id, (node, link) => {\n        linkTargets.push(this.placeOf.get(node.id));\n        linkCosts.push(link.data.cost);\n        linkExtraCosts.push(link.data.extraCost ?? 0);\n      }, true);\n    });\n    this.firstLink[roomIds.length] = linkTargets.length;\n    this.linkTarget = Int32Array.from(linkTargets);\n    this.linkCost = Float64Array.from(linkCosts);\n    this.linkExtraCost = Float64Array.from(linkExtraCosts);\n    this.cost = new Float64Array(roomIds.length);\n    this.isSettled = new Uint8Array(roomIds.length);\n    this.isWanted = new Uint8Array(roomIds.length);\n  }\n\n  // The cheapest cost from one room to each of targetIds, Infinity for any it\n  // can't reach, with every link costing forceCost when that isn't 0, plus\n  // its rules' extra cost. The search stops once every target is reached.\n  costsFrom(fromId, targetIds, forceCost) {\n    const {\n      cost,\n      isSettled,\n      isWanted\n    } = this;\n    cost.fill(Infinity);\n    isSettled.fill(0);\n    isWanted.fill(0);\n    const targetPlaces = targetIds.map(id => this.placeOf.get(id));\n    let waitingCount = 0;\n    for (const place of targetPlaces) {\n      if (place !== undefined && !isWanted[place]) {\n        isWanted[place] = 1;\n        waitingCount += 1;\n      }\n    }\n    const frontier = new TinyQueue([], (a, b) => cost[a] - cost[b]);\n    const start = this.placeOf.get(fromId);\n    if (start !== undefined) {\n      cost[start] = 0;\n      frontier.push(start);\n    }\n    while (frontier.length && waitingCount) {\n      const room = frontier.pop();\n      if (isSettled[room]) {\n        continue;\n      }\n      isSettled[room] = 1;\n      if (isWanted[room]) {\n        waitingCount -= 1;\n      }\n      for (let link = this.firstLink[room]; link < this.firstLink[room + 1]; link++) {\n        const next = this.linkTarget[link];\n        const nextCost = cost[room] + (forceCost || this.linkCost[link]) + this.linkExtraCost[link];\n        if (nextCost < cost[next]) {\n          cost[next] = nextCost;\n          frontier.push(next);\n        }\n      }\n    }\n    return targetPlaces.map(place => place !== undefined && isSettled[place] ? cost[place] : Infinity);\n  }\n}","0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n// Times of the game's day, in minutes into it, kept apart from the clock so\n// the route worker can use them.\n\nexport const MINUTES_IN_A_DAY = 24 * 60;\nexport const MINUTES_IN_AN_HOUR = 60;\nexport function minuteOfDay(minutes) {\n  return (Math.floor(minutes) % MINUTES_IN_A_DAY + MINUTES_IN_A_DAY) % MINUTES_IN_A_DAY;\n}\n\n// \"HH:MM\" as minutes into the day.\nexport function minutesOf(time) {\n  const [hours, minutes] = time.split(':').map(Number);\n  return hours * MINUTES_IN_AN_HOUR + minutes;\n}\nexport function timeOf(minutes) {\n  const minute = minuteOfDay(minutes);\n  const hours = Math.floor(minute / MINUTES_IN_AN_HOUR);\n  const pad = number => String(number).padStart(2, '0');\n  return `${pad(hours)}:${pad(minute % MINUTES_IN_AN_HOUR)}`;\n}\n\n// Whether the minute is in the stretch of the day from starts up to ends,\n// which may run past midnight.\nexport function isWithinTimes(minute, starts, ends) {\n  return starts <= ends ? minute >= starts && minute < ends : minute >= starts || minute < ends;\n}\n\n// Whether every minute from earliest to latest is in the stretch from starts\n// up to ends: true, false when none is, or null when some are.\nexport function timesHold(earliest, latest, starts, ends) {\n  let inside = 0;\n  for (let minute = earliest; minute <= latest; minute++) {\n    inside += isWithinTimes(minuteOfDay(minute), starts, ends) ? 1 : 0;\n  }\n  const count = latest - earliest + 1;\n  return inside === count ? true : inside === 0 ? false : null;\n}","0; //eaimeta@70e063a35619d71f0,\"t2t-quests-gui/utils/commands\",0,\"t2t-quests-gui/utils/map-placement\",0,\"t2t-quests-gui/utils/route-rules\"eaimeta@70e063a35619d71f\nfunction _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n// The whole map from GET /api/map/data, decoded into lookups by id. The\n// download's layout is described in docs/API.md.\n\nimport { commandOf, directionOf, swimDirectionOf, sameCommand } from 't2t-quests-gui/utils/commands';\nimport { spotKey, stepFrom } from 't2t-quests-gui/utils/map-placement';\nimport { ruleQuestNames } from 't2t-quests-gui/utils/route-rules';\nexport const LEAVING_KINDS = {\n  up: 'up',\n  down: 'down',\n  zone: 'zone'\n};\n\n// The room pickers show at most this many rooms.\nexport const ROOM_SEARCH_LIMIT = 50;\n// How many steps of its grid from a zone's rooms the rooms of the zones\n// beside it are drawn on its map.\nconst NEIGHBOUR_STEPS = 2;\n// Between a room option's label and its other names, which no search holds.\nconst SEARCH_TEXT_SEPARATOR = '\\n';\nconst ROOM_LABEL_SEPARATOR = ' - ';\n// The parent of a site's zone at the top, though a zone the player found may\n// have this id.\nconst NO_PARENT_ZONE = -1;\nconst ROOM_NUMBER = /^\\d+$/;\nconst EMPTY_BOUNDS = {\n  min_x: 0,\n  min_y: 0,\n  max_x: 0,\n  max_y: 0\n};\nconst nameOrder = new Intl.Collator('en', {\n  sensitivity: 'base'\n});\nfunction roomLabel(zoneName, roomName) {\n  return zoneName + ROOM_LABEL_SEPARATOR + roomName;\n}\n\n// The running totals of a column of differences: the ids they encode.\nfunction runningTotals(differences) {\n  const totals = new Array(differences.length);\n  let total = 0;\n  for (let index = 0; index < differences.length; index++) {\n    total += differences[index];\n    totals[index] = total;\n  }\n  return totals;\n}\nfunction entryAt(table, position) {\n  return position === null ? null : table[position];\n}\nfunction levelKey(zoneId, level) {\n  return `${zoneId} ${level}`;\n}\nfunction boundsOf(rooms) {\n  if (rooms.length === 0) {\n    return {\n      ...EMPTY_BOUNDS\n    };\n  }\n  const bounds = {\n    min_x: Infinity,\n    min_y: Infinity,\n    max_x: -Infinity,\n    max_y: -Infinity\n  };\n  for (const {\n    x,\n    y\n  } of rooms) {\n    bounds.min_x = Math.min(bounds.min_x, x);\n    bounds.min_y = Math.min(bounds.min_y, y);\n    bounds.max_x = Math.max(bounds.max_x, x);\n    bounds.max_y = Math.max(bounds.max_y, y);\n  }\n  return bounds;\n}\nfunction decodeZones(columns) {\n  const zones = new Map();\n  columns.id.forEach((id, index) => {\n    zones.set(id, {\n      id,\n      name: columns.name[index],\n      parentId: columns.parent[index],\n      defaultLevel: columns.default_level[index],\n      bottomLevel: columns.bottom_level[index],\n      topLevel: columns.top_level[index],\n      worldOffset: columns.world_offset?.[index] ?? null,\n      worldSquare: columns.world_square?.[index] ?? null\n    });\n  });\n  return zones;\n}\nfunction isSameSpot(first, second) {\n  if (!first || !second) {\n    return first === second;\n  }\n  return first.every((value, index) => value === second[index]);\n}\nfunction addedSpot(spot, shift) {\n  return spot.map((value, index) => value + shift[index]);\n}\nfunction takenAwaySpot(spot, shift) {\n  return spot.map((value, index) => value - shift[index]);\n}\nfunction decodeRooms(download) {\n  const columns = download.rooms;\n  const rooms = new Map();\n  runningTotals(columns.id).forEach((id, index) => {\n    rooms.set(id, {\n      id,\n      zoneId: columns.zone[index],\n      x: columns.x[index],\n      y: columns.y[index],\n      level: columns.level[index],\n      colour: entryAt(download.colours, columns.colour[index]),\n      name: entryAt(download.room_names, columns.name[index])\n    });\n  });\n  const otherNames = Object.entries(download.other_room_names ?? {});\n  for (const [roomId, positions] of otherNames) {\n    const room = rooms.get(Number(roomId));\n    if (room) {\n      room.otherNames = positions.map(position => entryAt(download.room_names, position));\n    }\n  }\n  return rooms;\n}\n\n// A player's own exit costs what the cheapest exit from its room does, as\n// the download's costs include the rooms', which the browser doesn't have;\n// this when its room has none.\nconst LEAST_EXIT_COST = 1;\n\n// The exits with the player's own, { from, to, label, isUnconfirmed },\n// marked isLocal, and isUnconfirmed for one nobody has walked: an exit from\n// the same room with the same command leads where theirs does, keeping its\n// row; any other is added with the next row, which no rule or kind names.\n// Each exit's row stays its place in the list, which is changed in place.\n// rowsFrom, each room's exit rows, is kept up to date with the rows added,\n// when given.\nfunction withLocalExits(exits, localExits, rowsFrom = new Map()) {\n  const fromIds = new Set(localExits.map(local => local.from));\n  if (rowsFrom.size === 0) {\n    for (const exit of exits) {\n      if (fromIds.has(exit.from)) {\n        addRow(rowsFrom, exit.from, exit.row);\n      }\n    }\n  }\n  for (const local of localExits) {\n    const rows = rowsFrom.get(local.from) ?? [];\n    const row = rows.find(each => sameCommand(exits[each].label, local.label));\n    if (row !== undefined) {\n      exits[row] = local.isRemoved ? {\n        ...exits[row],\n        isRemoved: true\n      } : {\n        ...exits[row],\n        to: local.to,\n        isLocal: true,\n        isUnconfirmed: Boolean(local.isUnconfirmed)\n      };\n      continue;\n    }\n    if (local.isRemoved) {\n      continue;\n    }\n    const costs = rows.map(each => exits[each].cost);\n    exits.push({\n      row: exits.length,\n      from: local.from,\n      to: local.to,\n      cost: costs.length ? Math.min(...costs) : LEAST_EXIT_COST,\n      label: local.label,\n      isLocal: true,\n      isUnconfirmed: Boolean(local.isUnconfirmed)\n    });\n    addRow(rowsFrom, local.from, exits.length - 1);\n  }\n  return exits;\n}\nfunction addRow(rowsFrom, fromId, row) {\n  if (!rowsFrom.has(fromId)) {\n    rowsFrom.set(fromId, []);\n  }\n  rowsFrom.get(fromId).push(row);\n}\n\n// download needs only its exits and exit_labels, and local_exits, the\n// player's own, if any. Exits come sorted by the room they leave, then by\n// exit id, so each room's exits are one run of the columns.\nexport function decodeExits(download) {\n  const columns = download.exits;\n  const fromIds = runningTotals(columns.from);\n  const downloaded = fromIds.map((from, index) => ({\n    row: index,\n    from,\n    to: from + columns.to[index],\n    cost: columns.cost[index],\n    label: entryAt(download.exit_labels, columns.label[index])\n  }));\n  const exits = withLocalExits([...downloaded], download.local_exits ?? []);\n  const exitsFrom = new Map();\n  for (const exit of exits.filter(each => !each.isRemoved)) {\n    const roomExits = exitsFrom.get(exit.from);\n    if (roomExits) {\n      roomExits.push(exit);\n    } else {\n      exitsFrom.set(exit.from, [exit]);\n    }\n  }\n  return {\n    exits,\n    exitsFrom\n  };\n}\nconst HAS_ITEM_CONDITION = 'has_item';\n// A room the player found takes the colour the site gives rooms of its name,\n// or the colour of rooms nobody has coloured, zMUD's default as imported.\nexport const DEFAULT_ROOM_COLOUR = '#ffff1f';\n// The water blue of map-rules/room-colours.json, which a room found in the\n// water takes when its name has no colour.\nexport const WATER_ROOM_COLOUR = '#4a8fe0';\n// A room's terrain, as the site names them.\nexport const TERRAINS = {\n  land: 'land',\n  water: 'water',\n  both: 'both'\n};\n\n// A description as rooms are matched by it: the text the game marks as one,\n// its spaces and line breaks evened out.\nfunction descriptionKey(description) {\n  return (description ?? '').replace(/\\s+/g, ' ').trim();\n}\n\n// A name as the site's colour and ford rules match it.\nfunction ruleNameKey(name) {\n  return (name ?? '').trim().toLowerCase();\n}\n\n// Each download decoded once, as the map is built again from it whenever the\n// player's changes do: { zones, rooms, exits, exitsFrom }, none of them\n// changed afterwards.\nconst decodedDownloads = new WeakMap();\nfunction decodedDownload(download) {\n  let decoded = decodedDownloads.get(download);\n  if (!decoded) {\n    decoded = {\n      zones: decodeZones(download.zones),\n      rooms: decodeRooms(download),\n      ...decodeExits({\n        ...download,\n        local_exits: []\n      })\n    };\n    decodedDownloads.set(download, decoded);\n  }\n  return decoded;\n}\n\n// The download's exits with the player's own, and each room's exits, built\n// afresh only for the rooms the player's exits leave.\nfunction exitsWithLocal(decoded, localExits) {\n  const exits = withLocalExits([...decoded.exits], localExits);\n  const exitsFrom = new Map(decoded.exitsFrom);\n  const added = exits.slice(decoded.exits.length);\n  for (const fromId of new Set(localExits.map(exit => exit.from))) {\n    const downloaded = (decoded.exitsFrom.get(fromId) ?? []).map(exit => exits[exit.row]);\n    exitsFrom.set(fromId, [...downloaded, ...added.filter(exit => exit.from === fromId)].filter(exit => !exit.isRemoved));\n  }\n  return {\n    exits,\n    exitsFrom\n  };\n}\n\n// Whether to is at most mostSteps steps from from, each step going to the\n// places nextOf gives.\nfunction isWithinSteps(from, to, mostSteps, nextOf) {\n  const reached = new Set([from]);\n  let edge = [from];\n  for (let step = 0; step < mostSteps && !reached.has(to); step++) {\n    edge = edge.flatMap(nextOf).filter(next => !reached.has(next));\n    edge.forEach(next => reached.add(next));\n    if (!edge.length) {\n      break;\n    }\n  }\n  return reached.has(to);\n}\nfunction spotIndexKey(zoneId, [x, y, level]) {\n  return `${zoneId} ${x} ${y} ${level}`;\n}\nvar _MapData_brand = /*#__PURE__*/new WeakSet();\nvar _exitRows = /*#__PURE__*/new WeakMap();\nvar _roomsBySpot = /*#__PURE__*/new WeakMap();\nvar _siteExitsFrom = /*#__PURE__*/new WeakMap();\nvar _roomKindSets = /*#__PURE__*/new WeakMap();\nvar _descriptionKeys = /*#__PURE__*/new WeakMap();\nvar _roomsByDescription = /*#__PURE__*/new WeakMap();\nvar _localTerrains = /*#__PURE__*/new WeakMap();\nvar _rowsReferredTo = /*#__PURE__*/new WeakMap();\nvar _remappedSpots = /*#__PURE__*/new WeakMap();\nvar _exitsFromWithHidden = /*#__PURE__*/new WeakMap();\nvar _zonesOffsetOnWorld = /*#__PURE__*/new WeakMap();\nvar _gridRoomsByWorldSpot = /*#__PURE__*/new WeakMap();\nvar _roomsLeadingInto = /*#__PURE__*/new WeakMap();\nvar _roomOptions = /*#__PURE__*/new WeakMap();\nexport default class MapData {\n  // download is the parsed GET /api/map/data response. localChanges are the\n  // player's own corrections, not on the site's map yet: renames, a Map of\n  // room id to name; exits, each { from, to, label, isUnconfirmed }; the\n  // rooms they found, each { id, zone, x, y, level, name, near_room,\n  // spot_taken_by }, ids below 0; the zones they found for some of those,\n  // each { id, name, parent, near_room }, ids below 0; and remapped, the ids\n  // of rooms they hid to walk again; listedExits, a Map of room id to the\n  // land exits the game listed where they differed from the map's;\n  // terrains, a Map of room id to the terrain they found it has.\n  constructor(download, {\n    renames = new Map(),\n    exits: localExits = [],\n    rooms: foundRooms = [],\n    zones: foundZones = [],\n    remapped = [],\n    listedExits = new Map(),\n    descriptions: localDescriptions = new Map(),\n    terrains = new Map()\n  } = {}, siteDescriptions = {}) {\n    // Each room's exit rows, removed ones included, made the first time an\n    // exit is found and kept up to date from then on.\n    _classPrivateMethodInitSpec(this, _MapData_brand);\n    _classPrivateFieldInitSpec(this, _exitRows, null);\n    _classPrivateFieldInitSpec(this, _roomsBySpot, null);\n    _classPrivateFieldInitSpec(this, _siteExitsFrom, void 0);\n    _classPrivateFieldInitSpec(this, _roomKindSets, new Map());\n    _classPrivateFieldInitSpec(this, _descriptionKeys, void 0);\n    _classPrivateFieldInitSpec(this, _roomsByDescription, void 0);\n    _classPrivateFieldInitSpec(this, _localTerrains, void 0);\n    _classPrivateFieldInitSpec(this, _rowsReferredTo, void 0);\n    _classPrivateFieldInitSpec(this, _remappedSpots, null);\n    _classPrivateFieldInitSpec(this, _exitsFromWithHidden, void 0);\n    _classPrivateFieldInitSpec(this, _zonesOffsetOnWorld, null);\n    _classPrivateFieldInitSpec(this, _gridRoomsByWorldSpot, null);\n    // Each room's set of rooms with an exit into it, made when first asked\n    // for and kept up to date as exits are found.\n    _classPrivateFieldInitSpec(this, _roomsLeadingInto, null);\n    _classPrivateFieldInitSpec(this, _roomOptions, null);\n    // Room ids by their description as descriptionKey makes it, and each\n    // described room's, the player's own taking the site's place.\n    _classPrivateFieldSet(_descriptionKeys, this, new Map([...Object.entries(siteDescriptions).map(([roomId, description]) => [Number(roomId), descriptionKey(description)]), ...[...localDescriptions].map(([roomId, description]) => [roomId, descriptionKey(description)])]));\n    _classPrivateFieldSet(_roomsByDescription, this, Map.groupBy(_classPrivateFieldGet(_descriptionKeys, this).keys(), roomId => _classPrivateFieldGet(_descriptionKeys, this).get(roomId)));\n    // The land exits the game listed for rooms, where the player found them\n    // different from the map's, by room id.\n    this.listedExits = listedExits;\n    _classPrivateFieldSet(_localTerrains, this, terrains);\n    const decoded = decodedDownload(download);\n    // The colour the site gives rooms of each name, by ruleNameKey, and\n    // the colours names take in one zone and the zones inside it, by zone id.\n    this.roomColourRules = download.room_colour_rules ?? {};\n    this.zoneRoomColourRules = download.zone_room_colour_rules ?? {};\n    // The names, by ruleNameKey, of rooms drawn as fords.\n    this.fordNames = new Set(download.ford_names ?? []);\n    this.zones = new Map([...decoded.zones].map(([id, zone]) => [id, {\n      ...zone\n    }]));\n    this.rooms = new Map(decoded.rooms);\n    // Rooms the player hid to walk again: kept apart, drawn faintly, and\n    // left out of following, so rooms found there take their places.\n    this.remappedRooms = new Map();\n    for (const roomId of remapped) {\n      const room = this.rooms.get(roomId);\n      if (room) {\n        this.remappedRooms.set(roomId, room);\n        this.rooms.delete(roomId);\n      }\n    }\n    foundZones.forEach(found => this.addFoundZone(found));\n    foundRooms.forEach(found => _assertClassBrand(_MapData_brand, this, _addRoom).call(this, found));\n    for (const [roomId, name] of renames) {\n      const room = this.rooms.get(roomId);\n      if (room) {\n        this.rooms.set(roomId, {\n          ...room,\n          siteName: room.name,\n          name,\n          isLocal: true\n        });\n      }\n    }\n    // A player's exit between rooms not on this map, as when a room found\n    // was removed without its exits, is left out.\n    const knownLocalExits = localExits.filter(exit => this.rooms.has(exit.from) && (exit.isRemoved || this.rooms.has(exit.to)));\n    const {\n      exits: _exits,\n      exitsFrom\n    } = exitsWithLocal(decoded, knownLocalExits);\n    _classPrivateFieldSet(_siteExitsFrom, this, decoded.exitsFrom);\n    // Every exit, by the room it leaves and then exit id:\n    // { row, from, to, cost, label }, label being null when it has none and\n    // row its place in the download's exit columns.\n    this.exits = _exits;\n    this.exitsByRoom = exitsFrom;\n    // Each room's exits, those into rooms hidden to walk again included.\n    _classPrivateFieldSet(_exitsFromWithHidden, this, new Map(exitsFrom));\n    if (this.remappedRooms.size) {\n      for (const [roomId, roomExits] of exitsFrom) {\n        if (this.remappedRooms.has(roomId)) {\n          exitsFrom.delete(roomId);\n        } else {\n          exitsFrom.set(roomId, roomExits.filter(exit => !this.remappedRooms.has(exit.to)));\n        }\n      }\n    }\n    this.hiddenRows = new Set(download.exit_kinds.hidden);\n    // Room ids by what's known of them: { dark, water, described }.\n    this.roomKinds = download.room_kinds;\n    // The map's version, which corrections are sent with.\n    this.mapVersion = download.map_version ?? null;\n    // The values new rooms are placed by (utils/map-placement).\n    this.placement = download.placement;\n    this.actionRows = new Set(download.exit_kinds.action);\n    this.automaticRows = new Set(download.exit_kinds.automatic ?? []);\n    this.unconfirmedRows = new Set(download.exit_kinds.unconfirmed);\n    // The words rules use, for the traveller's choices.\n    this.words = download.words;\n    // The quests rules ask whether the traveller has done.\n    this.ruleQuests = [...new Set(download.rules.flatMap(ruleQuestNames))].sort();\n    // Keys, each { id, name, unlock, unlock_shared }, and the locked door on\n    // each exit row, { key (a position in keys, or null), name, bash, pick,\n    // relocks }.\n    this.keys = download.keys ?? [];\n    this.doorsByRow = new Map((download.doors ?? []).flatMap(door => door.exits.map(row => [row, door])));\n    // The exit rows a door, rule or random exit refers to, which the site\n    // won't remove as not in the game.\n    _classPrivateFieldSet(_rowsReferredTo, this, new Set([...this.doorsByRow.keys(), ...download.rules.flatMap(rule => rule.exits ?? []), ...download.exit_kinds.random.flat()]));\n    this.keyNames = [...new Set(this.keys.map(key => key.name))].sort();\n    // The items rules ask whether the traveller carries, by name, keys\n    // included.\n    this.ruleItems = [...new Set([...download.rules.flatMap(rule => rule.conditions.filter(condition => condition.kind === HAS_ITEM_CONDITION).map(condition => condition.item)), ...this.keyNames])].sort();\n    // What route-finding needs of the download, for decoding again\n    // elsewhere.\n    this.routeColumns = {\n      local_exits: knownLocalExits,\n      exits: download.exits,\n      exit_labels: download.exit_labels,\n      exit_kinds: {\n        ...download.exit_kinds,\n        shore_crossings: _assertClassBrand(_MapData_brand, this, _shoreCrossingRows).call(this)\n      },\n      room_kinds: download.room_kinds,\n      rules: download.rules,\n      words: download.words,\n      keys: download.keys ?? [],\n      doors: download.doors ?? []\n    };\n    this.roomsByLevel = new Map();\n    for (const room of this.rooms.values()) {\n      const key = levelKey(room.zoneId, room.level);\n      const levelRooms = this.roomsByLevel.get(key);\n      if (levelRooms) {\n        levelRooms.push(room);\n      } else {\n        this.roomsByLevel.set(key, [room]);\n      }\n    }\n  }\n\n  // A room the player found, put on the map as it's found, before the map\n  // is built again with it: found as localChanges' rooms take them.\n  addFoundRoom(found) {\n    const room = _assertClassBrand(_MapData_brand, this, _addRoom).call(this, found);\n    const key = levelKey(room.zoneId, room.level);\n    this.roomsByLevel.set(key, [...(this.roomsByLevel.get(key) ?? []), room]);\n    _classPrivateFieldGet(_roomsBySpot, this)?.set(spotIndexKey(room.zoneId, [room.x, room.y, room.level]), room.id);\n    _classPrivateFieldSet(_gridRoomsByWorldSpot, this, null);\n  }\n\n  // A zone the player found, as localChanges' zones take them: { id, name,\n  // parent, near_room }. Its levels are those of the rooms put in it, the\n  // first giving the level it opens on.\n  addFoundZone({\n    id,\n    name,\n    parent\n  }) {\n    _classPrivateFieldSet(_zonesOffsetOnWorld, this, null);\n    this.zones.set(id, {\n      id,\n      name,\n      parentId: parent,\n      defaultLevel: null,\n      bottomLevel: null,\n      topLevel: null,\n      isLocal: true\n    });\n  }\n\n  // An exit the player found, put on the map the same way: { from, to,\n  // label, isUnconfirmed }, as localChanges' exits take them.\n  addFoundExit(found) {\n    const rowsFrom = _assertClassBrand(_MapData_brand, this, _allExitRowsFrom).call(this);\n    withLocalExits(this.exits, [found], rowsFrom);\n    const roomExits = rowsFrom.get(found.from).map(row => this.exits[row]).filter(exit => !exit.isRemoved);\n    const before = this.exitsByRoom.get(found.from) ?? [];\n    const after = roomExits.filter(exit => !this.remappedRooms.has(exit.to));\n    _classPrivateFieldGet(_exitsFromWithHidden, this).set(found.from, roomExits);\n    this.exitsByRoom.set(found.from, after);\n    _assertClassBrand(_MapData_brand, this, _leadInto).call(this, found.from, before, after);\n  }\n  // The room's exits on the site's map, before any of the player's.\n  siteExitsFrom(roomId) {\n    return _classPrivateFieldGet(_siteExitsFrom, this).get(roomId) ?? [];\n  }\n\n  // Whether the site's map has the room as one of roomKinds' kinds.\n  isRoomKind(kind, roomId) {\n    if (!_classPrivateFieldGet(_roomKindSets, this).has(kind)) {\n      _classPrivateFieldGet(_roomKindSets, this).set(kind, new Set(this.roomKinds[kind] ?? []));\n    }\n    return _classPrivateFieldGet(_roomKindSets, this).get(kind).has(roomId);\n  }\n  // The rooms known by this description, the site's or the player's.\n  roomsDescribedAs(description) {\n    return _classPrivateFieldGet(_roomsByDescription, this).get(descriptionKey(description)) ?? [];\n  }\n  isDescribedAs(roomId, description) {\n    const key = _classPrivateFieldGet(_descriptionKeys, this).get(roomId);\n    return key !== undefined && key === descriptionKey(description);\n  }\n  // The room's terrain on the site's map: land, water, or both where it's\n  // waded, walked into and swum.\n  siteTerrainOf(roomId) {\n    if (this.isRoomKind('waded', roomId)) {\n      return TERRAINS.both;\n    }\n    return this.isRoomKind('water', roomId) ? TERRAINS.water : TERRAINS.land;\n  }\n\n  // The room's terrain as the player found it, else as found with the room,\n  // else the site's.\n  terrainOf(roomId) {\n    if (roomId === null) {\n      return TERRAINS.land;\n    }\n    const found = this.rooms.get(roomId)?.isWater ? TERRAINS.water : null;\n    return _classPrivateFieldGet(_localTerrains, this).get(roomId) ?? found ?? this.siteTerrainOf(roomId);\n  }\n\n  // Whether the room is in the water, wholly or where it's waded.\n  isWaterRoom(roomId) {\n    return this.terrainOf(roomId) !== TERRAINS.land;\n  }\n\n  // Whether the room is waded: walked into as well as swum, as in the Bay of\n  // Belfalas.\n  // Drawn as water by its colour, whatever its terrain says.\n  isColouredAsWater(roomId) {\n    return this.rooms.get(Number(roomId))?.colour?.toLowerCase() === WATER_ROOM_COLOUR;\n  }\n  isWaterAndLandRoom(roomId) {\n    return this.terrainOf(roomId) === TERRAINS.both;\n  }\n  isWaterOnlyRoom(roomId) {\n    return this.isWaterRoom(roomId) && !this.isWaterAndLandRoom(roomId);\n  }\n\n  // The rows of every exit isShoreCrossing gives, the rooms in the water\n  // being worked out once rather than for each exit.\n\n  // Whether the exit joins a land room and a water-only room, either way.\n  isShoreCrossing({\n    from,\n    to\n  }) {\n    const isLand = roomId => !this.isWaterRoom(roomId);\n    return isLand(from) && this.isWaterOnlyRoom(to) || this.isWaterOnlyRoom(from) && isLand(to);\n  }\n\n  // Whether the site's map hides the exit, one of siteExitsFrom's.\n  isHiddenExit(exit) {\n    return this.hiddenRows.has(exit.row);\n  }\n\n  // Whether the site could remove the exit as not in the game: no door,\n  // rule or random exit refers to it (open questions aren't downloaded).\n  isRemovableExit(exit) {\n    return !exit.isLocal && !_classPrivateFieldGet(_rowsReferredTo, this).has(exit.row);\n  }\n  // The id of the room on this spot ([x, y, level]) of the zone, or null.\n  roomAtSpot(zoneId, spot) {\n    if (!_classPrivateFieldGet(_roomsBySpot, this)) {\n      _classPrivateFieldSet(_roomsBySpot, this, new Map());\n      for (const room of this.rooms.values()) {\n        _classPrivateFieldGet(_roomsBySpot, this).set(spotIndexKey(room.zoneId, [room.x, room.y, room.level]), room.id);\n      }\n    }\n    return _classPrivateFieldGet(_roomsBySpot, this).get(spotIndexKey(zoneId, spot)) ?? null;\n  }\n  // The room's exits, those into rooms hidden to walk again included, as\n  // the game lists them all.\n  exitsFromWithHidden(roomId) {\n    return _classPrivateFieldGet(_exitsFromWithHidden, this).get(roomId) ?? [];\n  }\n\n  // Whether a room hidden to walk again was on this spot ([x, y, level]) of\n  // the zone.\n  isRemappedSpot(zoneId, spot) {\n    if (!_classPrivateFieldGet(_remappedSpots, this)) {\n      _classPrivateFieldSet(_remappedSpots, this, new Set([...this.remappedRooms.values()].map(room => spotIndexKey(room.zoneId, [room.x, room.y, room.level]))));\n    }\n    return _classPrivateFieldGet(_remappedSpots, this).has(spotIndexKey(zoneId, spot));\n  }\n\n  // The spots the zone's rooms are on, as utils/map-placement keeps them.\n  takenSpots(zoneId) {\n    const taken = new Set();\n    for (const room of this.rooms.values()) {\n      if (room.zoneId === zoneId) {\n        taken.add(spotKey([room.x, room.y, room.level]));\n      }\n    }\n    return taken;\n  }\n  zone(zoneId) {\n    return this.zones.get(Number(zoneId));\n  }\n\n  // The zone's place on the world grid as its rooms take it, { owner,\n  // offset, square }, the owner being the zone it was set on, which the\n  // zones inside it taking it share; or null off the world grid. A zone the\n  // player found takes the place of the zone it's in.\n  worldPlace(zoneId) {\n    const zone = this.zones.get(zoneId);\n    if (!zone) {\n      return null;\n    }\n    const hasParent = zone.isLocal || zone.parentId !== NO_PARENT_ZONE;\n    const outer = hasParent ? this.worldPlace(zone.parentId) : null;\n    if (zone.isLocal) {\n      return outer;\n    }\n    const {\n      worldOffset: offset,\n      worldSquare: square\n    } = zone;\n    if (!offset && !square) {\n      return null;\n    }\n    const takesOuterPlace = outer && isSameSpot(outer.offset, offset) && isSameSpot(outer.square, square);\n    return takesOuterPlace ? outer : {\n      owner: zone.id,\n      offset,\n      square\n    };\n  }\n  // The rooms of other zones on the world spot this spot of the zone has,\n  // when both zones are placed on the world grid by offsets set on\n  // different zones; a town drawn as a square takes no part.\n  roomsOverBorderAt(zoneId, spot) {\n    return _assertClassBrand(_MapData_brand, this, _roomsOnWorldSpot).call(this, zoneId, spot, (other, place) => other.place.owner !== place.owner);\n  }\n\n  // The rooms on the world spot this spot of the zone has, of the other\n  // zones placed on the world grid by an offset that isCounted(other, place)\n  // takes, place being the zone's; none when the zone isn't placed by one.\n\n  // The room on the spot one step of the room's zone's grid the way a\n  // direction goes, on its level (or the level above or below for up and\n  // down): in its zone or the zone a found zone is in, else the one room of\n  // another zone on that spot of the world grid; or null. See \"Exits both\n  // rooms list\" in SPEC.md.\n  roomOneStep(roomId, direction) {\n    const room = this.rooms.get(roomId);\n    const placement = room ? this.placementIn(room.zoneId) : null;\n    if (!placement) {\n      return null;\n    }\n    const spot = stepFrom([room.x, room.y, room.level], direction, 1, placement);\n    const gridZoneId = this.gridZoneOf(room.zoneId);\n    const inZone = this.roomAtSpot(room.zoneId, spot) ?? this.roomAtSpot(gridZoneId, spot);\n    if (inZone !== null) {\n      return inZone;\n    }\n    const beside = _assertClassBrand(_MapData_brand, this, _roomsOnWorldSpot).call(this, room.zoneId, spot, other => ![room.zoneId, gridZoneId].includes(other.id));\n    return beside.length === 1 ? beside[0] : null;\n  }\n\n  // Whether the zone is laid out beside others on the world grid: it set its\n  // own place there, or it's directly inside the zone that did and shares\n  // it. Zones deeper inside, zones with a grid of their own, towns drawn as\n  // a square and zones the player found aren't.\n  isGridZone(zoneId) {\n    const zone = this.zones.get(zoneId);\n    const place = this.worldPlace(zoneId);\n    return Boolean(zone && !zone.isLocal && place?.offset && (place.owner === zone.id || zone.parentId === place.owner));\n  }\n  // The room of another grid zone on this spot of the grid zone, or null.\n  gridNeighbourAt(zoneId, spot) {\n    if (!this.isGridZone(zoneId)) {\n      return null;\n    }\n    const worldSpot = addedSpot(spot, this.worldPlace(zoneId).offset);\n    const roomId = _assertClassBrand(_MapData_brand, this, _gridRoomAtWorldSpot).call(this, worldSpot);\n    return roomId !== null && this.rooms.get(roomId).zoneId !== zoneId ? roomId : null;\n  }\n\n  // The rooms of other grid zones within NEIGHBOUR_STEPS of the level's\n  // rooms, each with its spot on this zone's grid as x and y.\n\n  // The room of the site's map a room found while playing was found from,\n  // through any rooms found before it; the room itself when it's the site's.\n  siteRoomBehind(roomId) {\n    let id = roomId;\n    while (id !== undefined && id !== null && id < 0) {\n      id = this.rooms.get(id)?.nearRoomId;\n    }\n    return id ?? null;\n  }\n\n  // Whether toId is at most mostExits exits from fromId.\n  isWithinExits(fromId, toId, mostExits) {\n    return isWithinSteps(fromId, toId, mostExits, id => this.exitsFrom(id).map(exit => exit.to));\n  }\n\n  // Whether the zones are at most mostZones apart, counting a step for each\n  // exit from one zone's grid to another's.\n  isWithinZones(fromZoneId, toZoneId, mostZones) {\n    const neighbours = _assertClassBrand(_MapData_brand, this, _zoneNeighbours).call(this);\n    return isWithinSteps(this.gridZoneOf(fromZoneId), this.gridZoneOf(toZoneId), mostZones, zoneId => [...(neighbours.get(zoneId) ?? [])]);\n  }\n  // The zone whose grid the zone's rooms are on: its own, or for a zone the\n  // player found, the one it was found from.\n  gridZoneOf(zoneId) {\n    const zone = this.zones.get(zoneId);\n    return zone?.isLocal ? zone.parentId : zoneId;\n  }\n\n  // The values new rooms are placed by in the zone, with its rooms its\n  // usual step apart, or null without the values.\n  placementIn(zoneId) {\n    if (!this.placement) {\n      return null;\n    }\n    const spacing = this.placement.zone_spacings?.[this.gridZoneOf(zoneId)];\n    return spacing ? {\n      ...this.placement,\n      room_spacing: spacing\n    } : this.placement;\n  }\n\n  // The room's name on the site's map, before any rename of the player's.\n  siteNameOf(roomId) {\n    const room = this.rooms.get(Number(roomId)) ?? this.remappedRooms.get(Number(roomId));\n    return room ? room.siteName ?? room.name : undefined;\n  }\n  defaultLevel(zoneId) {\n    return this.zone(zoneId)?.defaultLevel;\n  }\n  exitsFrom(roomId) {\n    return this.exitsByRoom.get(roomId) ?? [];\n  }\n\n  // The rooms with an exit into this room, other than itself.\n  roomsLeadingInto(roomId) {\n    if (!_classPrivateFieldGet(_roomsLeadingInto, this)) {\n      _classPrivateFieldSet(_roomsLeadingInto, this, new Map());\n      for (const [fromId, exits] of this.exitsByRoom) {\n        for (const {\n          to\n        } of exits) {\n          if (!_classPrivateFieldGet(_roomsLeadingInto, this).has(to)) {\n            _classPrivateFieldGet(_roomsLeadingInto, this).set(to, new Set());\n          }\n          _classPrivateFieldGet(_roomsLeadingInto, this).get(to).add(fromId);\n        }\n      }\n    }\n    const leading = _classPrivateFieldGet(_roomsLeadingInto, this).get(roomId) ?? new Set();\n    return [...leading].filter(fromId => fromId !== roomId);\n  }\n  // The exits the game listed for the room that its map exits lack, as\n  // listed: the game's way on to rooms nobody has walked yet.\n  unmappedExits(roomId) {\n    const listed = this.listedExits.get(roomId) ?? [];\n    const mapped = new Set(this.exitsFrom(roomId).map(exit => commandOf(exit.label)));\n    return listed.filter(label => !mapped.has(commandOf(label)));\n  }\n\n  // { id, name, otherNames, zone_id, zone_name, level }, or undefined for no\n  // such room. isRemapped says it's one the player hid to walk again.\n  room(roomId) {\n    const room = this.rooms.get(Number(roomId)) ?? this.remappedRooms.get(Number(roomId));\n    if (!room) {\n      return undefined;\n    }\n    return {\n      id: room.id,\n      name: room.name,\n      otherNames: room.otherNames ?? [],\n      zone_id: room.zoneId,\n      zone_name: this.zones.get(room.zoneId)?.name ?? null,\n      level: room.level,\n      isLocal: Boolean(room.isLocal),\n      isNew: Boolean(room.isNew),\n      spotTakenBy: room.spotTakenBy ?? null,\n      isRemapped: this.remappedRooms.has(room.id),\n      unmappedExits: this.unmappedExits(room.id)\n    };\n  }\n\n  // One level of a zone, as the zone-map component's @level takes it, or\n  // undefined when there is no such zone or the level is outside its range.\n  levelView(zoneId, level) {\n    const zone = this.zone(zoneId);\n    const levelNumber = Number(level);\n    const isInRange = zone && Number.isInteger(levelNumber) && levelNumber >= zone.bottomLevel && levelNumber <= zone.topLevel;\n    if (!isInRange) {\n      return undefined;\n    }\n    const levelRooms = this.roomsByLevel.get(levelKey(zone.id, levelNumber)) ?? [];\n    const neighbours = _assertClassBrand(_MapData_brand, this, _neighbourRooms).call(this, zone, levelRooms);\n    const drawnIds = new Set([...levelRooms, ...neighbours].map(room => room.id));\n    const exits = [];\n    const leaving = [];\n    const exitBetween = exit => ({\n      from: exit.from,\n      to: exit.to,\n      name: exit.label,\n      ..._assertClassBrand(_MapData_brand, this, _exitKinds).call(this, exit)\n    });\n    for (const room of levelRooms) {\n      for (const exit of this.exitsFrom(room.id)) {\n        const toRoom = this.rooms.get(exit.to);\n        if (!toRoom) {\n          continue;\n        }\n        const isWithinLevel = toRoom.zoneId === zone.id && toRoom.level === levelNumber;\n        if (isWithinLevel || drawnIds.has(toRoom.id)) {\n          exits.push(exitBetween(exit));\n        } else {\n          leaving.push(_assertClassBrand(_MapData_brand, this, _leavingExit).call(this, exit, toRoom, zone.id, levelNumber));\n        }\n      }\n    }\n    // A neighbour's exits are drawn only to rooms the map draws.\n    for (const room of neighbours) {\n      for (const exit of this.exitsFrom(room.id)) {\n        if (drawnIds.has(exit.to)) {\n          exits.push(exitBetween(exit));\n        }\n      }\n    }\n    const remapped = [...this.remappedRooms.values()].filter(room => room.zoneId === zone.id && room.level === levelNumber);\n    // A doorway's room in the other zone is drawn a step away, so the level\n    // takes it in.\n    const doorwaySpots = leaving.filter(exit => exit.compassStep).map(exit => {\n      const from = this.rooms.get(exit.from);\n      const [stepX, stepY] = exit.compassStep;\n      return {\n        x: from.x + stepX,\n        y: from.y + stepY\n      };\n    });\n    const stubs = levelRooms.flatMap(room => this.unmappedExits(room.id).map(label => ({\n      from: room.id,\n      name: label,\n      compassStep: _assertClassBrand(_MapData_brand, this, _compassStep).call(this, label, zone.id),\n      kind: this.placement?.level_steps?.[directionOf(label)] ? directionOf(label) : null\n    })));\n    return {\n      zone: {\n        id: zone.id,\n        name: zone.name\n      },\n      stubs,\n      level: levelNumber,\n      bottom_level: zone.bottomLevel,\n      top_level: zone.topLevel,\n      bounds: boundsOf([...levelRooms, ...neighbours, ...doorwaySpots, ...remapped]),\n      remapped: remapped.map(({\n        id,\n        x,\n        y\n      }) => ({\n        id,\n        x,\n        y\n      })),\n      spacing: this.placementIn(zone.id)?.room_spacing ?? null,\n      rooms: [...levelRooms.map(room => _assertClassBrand(_MapData_brand, this, _viewRoom).call(this, room, room)), ...neighbours.map(room => _assertClassBrand(_MapData_brand, this, _viewRoom).call(this, this.rooms.get(room.id), room, {\n        id: room.zoneId,\n        name: this.zones.get(room.zoneId)?.name ?? null,\n        level: room.level\n      }))],\n      exits,\n      leaving\n    };\n  }\n\n  // A room as a level view gives it, drawn at place's x and y; neighbourZone\n  // is { id, name, level } for a room of another zone drawn along the\n  // border, level being the room's level in its zone.\n\n  // Whether nobody has gone along the exit yet: the player's own mark for\n  // an exit of theirs, else the site's.\n  isUnconfirmedExit(exit) {\n    return exit.isLocal ? Boolean(exit.isUnconfirmed) : this.unconfirmedRows.has(exit.row);\n  }\n  // Rooms as the pickers offer them, { id, label } with the label\n  // \"Zone - Room\", by zone and then room name. A name used for more than one\n  // room of a zone, whatever the letters' case, is left out, as it couldn't\n  // be told apart.\n  get roomOptions() {\n    if (!_classPrivateFieldGet(_roomOptions, this)) {\n      _classPrivateFieldSet(_roomOptions, this, _assertClassBrand(_MapData_brand, this, _listRoomOptions).call(this));\n    }\n    return _classPrivateFieldGet(_roomOptions, this);\n  }\n  // The first ROOM_SEARCH_LIMIT room options whose label holds the text,\n  // whatever the letters' case, after the room numbered so, if any.\n  searchRooms(text) {\n    const wanted = String(text).toLowerCase();\n    const numberedRoom = _assertClassBrand(_MapData_brand, this, _roomNumbered).call(this, wanted);\n    const matches = numberedRoom ? [numberedRoom] : [];\n    for (const option of this.roomOptions) {\n      if (matches.length === ROOM_SEARCH_LIMIT) {\n        break;\n      }\n      if (option.id !== numberedRoom?.id && option.searchText.includes(wanted)) {\n        matches.push({\n          id: option.id,\n          label: option.label\n        });\n      }\n    }\n    return matches;\n  }\n\n  // { id, label } of the room with the id the text gives, or null. Found\n  // even where its name is used twice in its zone.\n}\nfunction _allExitRowsFrom() {\n  if (!_classPrivateFieldGet(_exitRows, this)) {\n    _classPrivateFieldSet(_exitRows, this, new Map());\n    for (const exit of this.exits) {\n      addRow(_classPrivateFieldGet(_exitRows, this), exit.from, exit.row);\n    }\n  }\n  return _classPrivateFieldGet(_exitRows, this);\n}\n// Moves the room's place in the index of rooms leading into others, if\n// made, from where its exits led before to where they lead now.\nfunction _leadInto(fromId, before, after) {\n  if (!_classPrivateFieldGet(_roomsLeadingInto, this)) {\n    return;\n  }\n  for (const {\n    to\n  } of before) {\n    _classPrivateFieldGet(_roomsLeadingInto, this).get(to)?.delete(fromId);\n  }\n  for (const {\n    to\n  } of after) {\n    if (!_classPrivateFieldGet(_roomsLeadingInto, this).has(to)) {\n      _classPrivateFieldGet(_roomsLeadingInto, this).set(to, new Set());\n    }\n    _classPrivateFieldGet(_roomsLeadingInto, this).get(to).add(fromId);\n  }\n}\n// The colour a room new to the map takes: the colour its zone, or the\n// nearest zone it's inside, gives its name, else the colour the name has\n// everywhere, else the default.\nfunction _newRoomColour(name, zoneId) {\n  const key = ruleNameKey(name);\n  const passed = new Set();\n  let id = zoneId;\n  while (this.zones.has(id) && !passed.has(id)) {\n    const colour = this.zoneRoomColourRules[id]?.[key];\n    if (colour) {\n      return colour;\n    }\n    passed.add(id);\n    id = this.zones.get(id).parentId;\n  }\n  return this.roomColourRules[key] ?? DEFAULT_ROOM_COLOUR;\n}\nfunction _addRoom({\n  id,\n  zone,\n  x,\n  y,\n  level,\n  name,\n  near_room,\n  spot_taken_by,\n  command,\n  like_direction,\n  is_water\n}) {\n  const colour = _assertClassBrand(_MapData_brand, this, _newRoomColour).call(this, name, zone);\n  const room = {\n    id,\n    zoneId: zone,\n    x,\n    y,\n    level,\n    colour: is_water && colour === DEFAULT_ROOM_COLOUR ? WATER_ROOM_COLOUR : colour,\n    name,\n    isLocal: true,\n    isNew: true,\n    spotTakenBy: spot_taken_by ?? null,\n    isWater: Boolean(is_water),\n    nearRoomId: near_room,\n    // Nothing told which way it went from the room it was found from.\n    isPlacedAnywhere: !(directionOf(command) ?? like_direction)\n  };\n  this.rooms.set(id, room);\n  const zoneOfRoom = this.zones.get(zone);\n  if (zoneOfRoom?.defaultLevel === null) {\n    Object.assign(zoneOfRoom, {\n      defaultLevel: level,\n      bottomLevel: level,\n      topLevel: level\n    });\n  } else if (zoneOfRoom) {\n    zoneOfRoom.bottomLevel = Math.min(zoneOfRoom.bottomLevel, level);\n    zoneOfRoom.topLevel = Math.max(zoneOfRoom.topLevel, level);\n  }\n  return room;\n}\nfunction _shoreCrossingRows() {\n  const inWater = new Set([...this.rooms.keys()].filter(roomId => this.isWaterRoom(roomId)));\n  const waterOnly = new Set([...inWater].filter(roomId => !this.isWaterAndLandRoom(roomId)));\n  const isShore = (waterId, otherId) => waterOnly.has(waterId) && !inWater.has(otherId);\n  return this.exits.filter(({\n    from,\n    to\n  }) => isShore(to, from) || isShore(from, to)).map(exit => exit.row);\n}\nfunction _roomsOnWorldSpot(zoneId, spot, isCounted) {\n  const place = this.worldPlace(zoneId);\n  if (!place?.offset) {\n    return [];\n  }\n  _classPrivateFieldGet(_zonesOffsetOnWorld, this) ?? _classPrivateFieldSet(_zonesOffsetOnWorld, this, [...this.zones.keys()].map(id => ({\n    id,\n    place: this.worldPlace(id)\n  })).filter(zone => zone.place?.offset));\n  const worldSpot = addedSpot(spot, place.offset);\n  return _classPrivateFieldGet(_zonesOffsetOnWorld, this).filter(other => isCounted(other, place)).map(other => this.roomAtSpot(other.id, takenAwaySpot(worldSpot, other.place.offset))).filter(roomId => roomId !== null);\n}\n// The room of a grid zone on this spot of the world grid, or null.\nfunction _gridRoomAtWorldSpot(worldSpot) {\n  if (!_classPrivateFieldGet(_gridRoomsByWorldSpot, this)) {\n    _classPrivateFieldSet(_gridRoomsByWorldSpot, this, new Map());\n    for (const room of this.rooms.values()) {\n      if (this.isGridZone(room.zoneId)) {\n        _classPrivateFieldGet(_gridRoomsByWorldSpot, this).set(spotKey(_assertClassBrand(_MapData_brand, this, _worldSpotOf).call(this, room)), room.id);\n      }\n    }\n  }\n  return _classPrivateFieldGet(_gridRoomsByWorldSpot, this).get(spotKey(worldSpot)) ?? null;\n}\nfunction _worldSpotOf(room) {\n  const {\n    offset\n  } = this.worldPlace(room.zoneId);\n  return addedSpot([room.x, room.y, room.level], offset);\n}\nfunction _neighbourRooms(zone, levelRooms) {\n  const step = this.placementIn(zone.id)?.room_spacing;\n  if (!step || !this.isGridZone(zone.id)) {\n    return [];\n  }\n  const {\n    offset\n  } = this.worldPlace(zone.id);\n  const neighbours = new Map();\n  const reach = [];\n  for (let stepsX = -NEIGHBOUR_STEPS; stepsX <= NEIGHBOUR_STEPS; stepsX++) {\n    for (let stepsY = -NEIGHBOUR_STEPS; stepsY <= NEIGHBOUR_STEPS; stepsY++) {\n      reach.push([stepsX * step, stepsY * step]);\n    }\n  }\n  for (const room of levelRooms) {\n    const [worldX, worldY, worldLevel] = addedSpot([room.x, room.y, room.level], offset);\n    for (const [shiftX, shiftY] of reach) {\n      const roomId = _assertClassBrand(_MapData_brand, this, _gridRoomAtWorldSpot).call(this, [worldX + shiftX, worldY + shiftY, worldLevel]);\n      const isNeighbour = roomId !== null && this.rooms.get(roomId).zoneId !== zone.id;\n      if (isNeighbour && !neighbours.has(roomId)) {\n        const [x, y] = takenAwaySpot(_assertClassBrand(_MapData_brand, this, _worldSpotOf).call(this, this.rooms.get(roomId)), offset);\n        neighbours.set(roomId, {\n          ...this.rooms.get(roomId),\n          x,\n          y\n        });\n      }\n    }\n  }\n  return [...neighbours.values()];\n}\nfunction _zoneNeighbours() {\n  const neighbours = new Map();\n  for (const [roomId, exits] of this.exitsByRoom) {\n    const fromZoneId = this.gridZoneOf(this.rooms.get(roomId)?.zoneId);\n    for (const exit of exits) {\n      const toZoneId = this.gridZoneOf(this.rooms.get(exit.to)?.zoneId);\n      if (fromZoneId === undefined || toZoneId === undefined) {\n        continue;\n      }\n      if (!neighbours.has(fromZoneId)) {\n        neighbours.set(fromZoneId, new Set());\n      }\n      neighbours.get(fromZoneId).add(toZoneId);\n    }\n  }\n  return neighbours;\n}\nfunction _viewRoom(room, place, neighbourZone = null) {\n  const {\n    id,\n    name,\n    colour,\n    isLocal,\n    isNew,\n    spotTakenBy,\n    zoneId,\n    level\n  } = room;\n  return {\n    id,\n    name,\n    otherNames: room.otherNames ?? [],\n    x: place.x,\n    y: place.y,\n    colour,\n    isLocal: Boolean(isLocal),\n    isNew: Boolean(isNew),\n    spotTakenBy: spotTakenBy ?? null,\n    isWater: this.isWaterRoom(id),\n    isWadeable: this.isWaterAndLandRoom(id),\n    isFord: this.fordNames.has(ruleNameKey(name)),\n    isBridge: this.isRoomKind('bridge', id),\n    hasWaterBelow: this.isWaterRoom(this.roomAtSpot(zoneId, [room.x, room.y, level - 1])),\n    neighbourZone\n  };\n}\nfunction _exitKinds(exit) {\n  const door = this.doorsByRow.get(exit.row);\n  return {\n    isLocal: Boolean(exit.isLocal),\n    isUnconfirmed: this.isUnconfirmedExit(exit),\n    isHidden: this.hiddenRows.has(exit.row),\n    isAction: this.actionRows.has(exit.row),\n    isAutomatic: this.automaticRows.has(exit.row),\n    isCommandUnknown: exit.label === null && !this.automaticRows.has(exit.row),\n    isShoreCrossing: this.isShoreCrossing(exit),\n    // Nothing is walked to or from deep water, whatever the exit's called.\n    touchesDeepWater: this.isWaterOnlyRoom(exit.from) || this.isWaterOnlyRoom(exit.to),\n    isRemovable: this.isRemovableExit(exit),\n    isLocked: Boolean(door),\n    key: door ? this.keys[door.key] ?? null : null\n  };\n}\n// How far a compass direction, walked or swum, goes on the zone's grid, as\n// [x, y], or null for any other command.\nfunction _compassStep(label, zoneId) {\n  const placement = this.placementIn(zoneId);\n  const compassStep = placement?.compass_steps?.[directionOf(label) ?? swimDirectionOf(label)];\n  if (!compassStep) {\n    return null;\n  }\n  return compassStep.map(step => step * placement.room_spacing);\n}\n// compassStep is the step to where the room it leads to is drawn, for an\n// exit into another zone by a compass direction: a doorway.\nfunction _leavingExit(exit, toRoom, zoneId, level) {\n  let kind = LEAVING_KINDS.zone;\n  if (toRoom.zoneId === zoneId) {\n    kind = toRoom.level > level ? LEAVING_KINDS.up : LEAVING_KINDS.down;\n  }\n  return {\n    from: exit.from,\n    to: exit.to,\n    name: exit.label,\n    to_name: toRoom.name,\n    to_level: toRoom.level,\n    to_zone_id: toRoom.zoneId,\n    to_zone_name: this.zones.get(toRoom.zoneId)?.name ?? null,\n    kind,\n    compassStep: kind === LEAVING_KINDS.zone ? _assertClassBrand(_MapData_brand, this, _compassStep).call(this, exit.label, zoneId) : null,\n    ..._assertClassBrand(_MapData_brand, this, _exitKinds).call(this, exit)\n  };\n}\nfunction _listRoomOptions() {\n  const namedRooms = [];\n  const roomsPerName = new Map();\n  for (const room of this.rooms.values()) {\n    const zoneName = this.zones.get(room.zoneId)?.name;\n    if (zoneName === null || zoneName === undefined || room.name === null) {\n      continue;\n    }\n    const label = roomLabel(zoneName, room.name);\n    const nameKey = [zoneName, room.name].join('\\n').toLowerCase();\n    namedRooms.push({\n      id: room.id,\n      zoneName,\n      roomName: room.name,\n      otherNames: room.otherNames ?? [],\n      label,\n      nameKey\n    });\n    roomsPerName.set(nameKey, (roomsPerName.get(nameKey) ?? 0) + 1);\n  }\n  return namedRooms.filter(room => roomsPerName.get(room.nameKey) === 1).sort((first, second) => nameOrder.compare(first.zoneName, second.zoneName) || nameOrder.compare(first.roomName, second.roomName)).map(({\n    id,\n    label,\n    otherNames\n  }) => ({\n    id,\n    label,\n    searchText: [label, ...otherNames].join(SEARCH_TEXT_SEPARATOR).toLowerCase()\n  }));\n}\nfunction _roomNumbered(text) {\n  if (!ROOM_NUMBER.test(text)) {\n    return null;\n  }\n  const room = this.rooms.get(Number(text));\n  if (!room) {\n    return null;\n  }\n  const zoneName = this.zones.get(room.zoneId)?.name ?? '';\n  return {\n    id: room.id,\n    label: roomLabel(zoneName, room.name ?? '')\n  };\n}","0; //eaimeta@70e063a35619d71f0,\"t2t-quests-gui/utils/commands\"eaimeta@70e063a35619d71f\nimport { directionOf, oppositeOf } from 't2t-quests-gui/utils/commands';\n\n// Where a room new to the map goes: one grid step from the room it was\n// reached from, or the nearest free spot to that, as the site places them\n// when a correction is applied. placement is the map\n// download's section of the values this depends on. Spots are [x, y, level];\n// tests/fixtures/map-placement-cases.js is checked on both sides.\n\n// Where the room one step through command from spot wants to be; sign -1\n// steps back against the command. Commands that aren't directions stay on\n// the spot.\nexport function stepFrom(spot, command, sign, placement) {\n  const [x, y, level] = spot;\n  const word = directionOf(command);\n  const compassStep = placement.compass_steps[word];\n  if (compassStep) {\n    const [stepX, stepY] = compassStep;\n    const spacing = placement.room_spacing;\n    return [x + sign * stepX * spacing, y + sign * stepY * spacing, level];\n  }\n  const levelStep = placement.level_steps[word];\n  if (levelStep) {\n    return [x, y, level + sign * levelStep];\n  }\n  return spot;\n}\n\n// How the direction a command that isn't one goes on the map was decided:\n// given when it was typed, a direction word in the command, or the way back\n// the room reached lists.\nexport const LIKE_DIRECTION_FROM = {\n  typed: 'typed',\n  command: 'command',\n  exits: 'exits'\n};\nconst DIRECTION_SYNONYMS = {\n  upstairs: 'up',\n  downstairs: 'down'\n};\n\n// The direction on the map a move by a command that isn't a direction goes,\n// best guessed: { direction, how }, how one of LIKE_DIRECTION_FROM, or null.\n// likeDirection is the one typed with it, if any; listedExits those the room\n// reached lists. Short forms such as `n` don't count as words in the\n// command, as they're too often something else.\nexport function likeDirectionOf({\n  command,\n  likeDirection,\n  listedExits\n}, placement) {\n  if (likeDirection) {\n    return {\n      direction: likeDirection,\n      how: LIKE_DIRECTION_FROM.typed\n    };\n  }\n  const isLongDirection = word => Object.hasOwn(placement.compass_steps, word) || Object.hasOwn(placement.level_steps, word);\n  for (const word of (command ?? '').toLowerCase().split(/\\s+/)) {\n    const named = DIRECTION_SYNONYMS[word] ?? (isLongDirection(word) && word);\n    if (named) {\n      return {\n        direction: named,\n        how: LIKE_DIRECTION_FROM.command\n      };\n    }\n  }\n  // A room with a single exit, a direction, is left the way it was entered.\n  const back = listedExits.length === 1 ? oppositeOf(listedExits[0]) : null;\n  return back ? {\n    direction: back,\n    how: LIKE_DIRECTION_FROM.exits\n  } : null;\n}\n\n// How a spot is kept in a set of those taken.\nexport function spotKey([x, y, level]) {\n  return `${x} ${y} ${level}`;\n}\n\n// The wanted spot if it's free, else the first free one in the rings of\n// rooms around it, nearest ring first, each ring from its top left corner\n// down each column in turn; null when every spot within reach is taken.\n// taken is a Set of spotKey()s.\nexport function nearestFree(taken, wanted, placement) {\n  if (!taken.has(spotKey(wanted))) {\n    return wanted;\n  }\n  const [x, y, level] = wanted;\n  const spacing = placement.room_spacing;\n  for (let ring = 1; ring <= placement.most_rings_searched; ring++) {\n    for (let stepX = -ring; stepX <= ring; stepX++) {\n      for (let stepY = -ring; stepY <= ring; stepY++) {\n        if (Math.max(Math.abs(stepX), Math.abs(stepY)) !== ring) {\n          continue;\n        }\n        const spot = [x + stepX * spacing, y + stepY * spacing, level];\n        if (!taken.has(spotKey(spot))) {\n          return spot;\n        }\n      }\n    }\n  }\n  return null;\n}","0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\nfunction _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n// Who holds each region of the war, as `warscape brief` lists them, one to\n// a line: \"GON:  Free\", \"HAR: Battle\", \"MOR:  Evil\".\nexport const REGION_STATES = {\n  free: 'free',\n  battle: 'battle',\n  evil: 'evil'\n};\nconst WARSCAPE_LINE = /^\\s*([A-Z]{2,3}):\\s+(Free|Battle|Evil)\\s*$/;\n\n// { region, state } from one of warscape's lines, or null for any other.\nexport function readRegionLine(text) {\n  const line = WARSCAPE_LINE.exec(text);\n  return line ? {\n    region: line[1],\n    state: line[2].toLowerCase()\n  } : null;\n}\n\n// The regions as scout reports name them, with warscape's name for each and\n// the side whose home it is. A longer name comes before a shorter one in it.\nconst WAR_REGIONS = [{\n  name: 'Southern Gondor',\n  region: 'SG',\n  homeSide: REGION_STATES.free\n}, {\n  name: 'Gondor',\n  region: 'GON',\n  homeSide: REGION_STATES.free\n}, {\n  name: 'Rohan',\n  region: 'ROH',\n  homeSide: REGION_STATES.free\n}, {\n  name: 'Lothlorien',\n  region: 'LOT',\n  homeSide: REGION_STATES.free\n}, {\n  name: 'Rhovanion',\n  region: 'ROV',\n  homeSide: REGION_STATES.free\n}, {\n  name: 'Harondor',\n  region: 'HAR',\n  homeSide: REGION_STATES.evil\n}, {\n  name: 'Rhun',\n  region: 'RHU',\n  homeSide: REGION_STATES.evil\n}, {\n  name: 'Umbar',\n  region: 'UMB',\n  homeSide: REGION_STATES.evil\n}, {\n  name: 'Near Harad',\n  region: 'NH',\n  homeSide: REGION_STATES.evil\n}];\nconst WINNERS = {\n  attackers: 'attackers',\n  defenders: 'defenders'\n};\nconst REPORT_START = 'After fierce fighting,';\n// \"…the men of Gondor have taken control of Harondor.\", \"…Southern Gondor\n// has fallen!\", \"…the defenders have reclaimed Harondor!\"\nconst REPORT_OUTCOMES = [{\n  pattern: /have taken control of (.+?)[.!]/,\n  winner: WINNERS.attackers\n}, {\n  pattern: /^After fierce fighting, (.+?) has fallen!/,\n  winner: WINNERS.attackers\n}, {\n  pattern: /have reclaimed (.+?)!/,\n  winner: WINNERS.defenders\n}];\n// A report runs over a few lines, to its first \"!\".\nconst REPORT_END = '!';\nconst MAXIMUM_REPORT_LINES = 4;\nfunction otherSide(side) {\n  return side === REGION_STATES.free ? REGION_STATES.evil : REGION_STATES.free;\n}\nfunction stateAfter(warRegion, winner) {\n  return winner === WINNERS.defenders ? warRegion.homeSide : otherSide(warRegion.homeSide);\n}\n\n// { region, state } from a whole scout report, with state null when the\n// outcome isn't one known, or null when the region isn't known.\nexport function readScoutReport(report) {\n  for (const {\n    pattern,\n    winner\n  } of REPORT_OUTCOMES) {\n    const outcome = pattern.exec(report);\n    if (outcome) {\n      const warRegion = WAR_REGIONS.find(({\n        name\n      }) => name === outcome[1]);\n      return warRegion ? {\n        region: warRegion.region,\n        state: stateAfter(warRegion, winner)\n      } : null;\n    }\n  }\n  const named = WAR_REGIONS.find(({\n    name\n  }) => new RegExp(`\\\\b${name}\\\\b`).test(report));\n  return named ? {\n    region: named.region,\n    state: null\n  } : null;\n}\n\n// Reads scout reports from the game's lines as they come, joining the lines\n// each runs over.\nvar _reportLines = /*#__PURE__*/new WeakMap();\nexport class ScoutReportReader {\n  constructor() {\n    _classPrivateFieldInitSpec(this, _reportLines, []);\n  }\n  // What readScoutReport makes of a report once its last line has come,\n  // otherwise null.\n  read(line) {\n    const text = line.trim();\n    if (text.startsWith(REPORT_START)) {\n      _classPrivateFieldSet(_reportLines, this, [text]);\n    } else if (_classPrivateFieldGet(_reportLines, this).length && text) {\n      _classPrivateFieldGet(_reportLines, this).push(text);\n    } else if (!_classPrivateFieldGet(_reportLines, this).length) {\n      return null;\n    }\n    const report = _classPrivateFieldGet(_reportLines, this).join(' ').replace(/\\s+/g, ' ');\n    const isWhole = !text || report.includes(REPORT_END) || _classPrivateFieldGet(_reportLines, this).length === MAXIMUM_REPORT_LINES;\n    if (!isWhole) {\n      return null;\n    }\n    _classPrivateFieldSet(_reportLines, this, []);\n    return readScoutReport(report);\n  }\n}","0; //eaimeta@70e063a35619d71f0,\"ngraph.graph\",0,\"ngraph.path\",0,\"./alias\",0,\"./commands\",0,\"./cost-graph\",0,\"./route-rules\",0,\"./trip\"eaimeta@70e063a35619d71f\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n// The shortest walk between two rooms of the map, as a \"do ...\" alias.\nimport createGraph from 'ngraph.graph';\nimport { aStar } from 'ngraph.path';\nimport { MAXIMUM_REPEATS_PER_STEP, typedCommands } from './alias';\nimport { SHORT_DIRECTIONS } from './commands';\nimport CostGraph from './cost-graph';\nimport { RULE_EFFECTS } from './route-rules';\nimport { orderTrip, splitAlias } from './trip';\n\n// An exit whose name starts with this holds its own commands.\nconst EXIT_WITH_OWN_COMMANDS = /^do /;\nconst LEADING_DO = /^do\\s*/;\nexport const NO_FORCED_COST = 0;\n// What an exit closed to the traveller by a rule costs where routes may go\n// through such exits: more than any walk across the map, so one is taken\n// only where there's no other way, and as few as can be.\nexport const BLOCKED_EXIT_COST = 1e9;\nconst NOT_FOUND = -1;\n// Ways on from random exits are worked out this many deep; past that, a\n// random exit is treated as landing where the route needs.\nconst MOST_RANDOM_EXITS_FOLLOWED = 3;\n\n// Why no alias could be made, as the keys of their messages under\n// alias.errors in the translations.\nexport const ALIAS_ERRORS = {\n  alreadyThere: 'already_there',\n  // The map's exits don't join the two rooms.\n  noPath: 'no_path',\n  // The map doesn't have the room the route starts from.\n  startUnknown: 'start_unknown',\n  roomNotFound: 'room_not_found',\n  badForceCost: 'bad_force_cost'\n};\n\n// What to type to take an exit with this map label: directions in their\n// short form, e.g. \"ne\", and anything else as it is. null when the exit has\n// no name.\nexport function exitCommand(label) {\n  if (label === null || label === undefined) {\n    return null;\n  }\n  return Object.hasOwn(SHORT_DIRECTIONS, label) ? SHORT_DIRECTIONS[label] : label;\n}\n\n// A command repeated count times, e.g. (3, \"n\") gives [\"3n\"] and (45, \"n\")\n// [\"40n\", \"5n\"].\nexport function repeatedCommands(count, command) {\n  if (!command) {\n    return [];\n  }\n  const commands = [];\n  let remaining = count;\n  while (remaining > MAXIMUM_REPEATS_PER_STEP) {\n    commands.push(`${MAXIMUM_REPEATS_PER_STEP}${command}`);\n    remaining -= MAXIMUM_REPEATS_PER_STEP;\n  }\n  commands.push(remaining > 1 ? `${remaining}${command}` : command);\n  return commands;\n}\n\n// The alias for walking each step in turn. Repeats of the same step merge\n// into one counted command. An exit whose name starts with \"do \" holds its\n// own commands, which go in as they are and never merge. A step with no\n// command (an exit with no name) is left out. A single command the game\n// takes on its own goes without \"do\".\nexport function buildAlias(stepCommands) {\n  const commands = [];\n  let currentCommand = null;\n  let count = 1;\n  for (const command of stepCommands) {\n    if (currentCommand && command && currentCommand === command) {\n      count += 1;\n    } else {\n      commands.push(...repeatedCommands(count, currentCommand));\n      count = 1;\n      currentCommand = command;\n    }\n    if (currentCommand && EXIT_WITH_OWN_COMMANDS.test(currentCommand)) {\n      commands.push(currentCommand.replace(LEADING_DO, ''));\n      count = 1;\n      currentCommand = null;\n    }\n  }\n  commands.push(...repeatedCommands(count, currentCommand));\n  return typedCommands(commands);\n}\n\n// The force cost from an address: a whole number, 0 or more, with nothing\n// given meaning no forced cost. null when it isn't one.\nexport function parseForceCost(value) {\n  if (value === null || value === undefined || String(value).trim() === '') {\n    return NO_FORCED_COST;\n  }\n  const forceCost = Number(value);\n  return Number.isInteger(forceCost) && forceCost >= NO_FORCED_COST ? forceCost : null;\n}\n\n// The graph of every exit the rules leave open, joining two rooms at most\n// once: by the cheaper exit, its rules' extra cost included, or the one with\n// the lower exit id when they cost the same. Each link holds { cost,\n// extraCost, command, row, isBlocked }. exitRules is an ExitRules\n// (utils/route-rules), or null for none. With allowsBlocked, exits the rules\n// close to the traveller are in it too, at BLOCKED_EXIT_COST, marked\n// isBlocked.\nexport function buildExitGraph(exits, exitRules = null, {\n  allowsBlocked = false\n} = {}) {\n  const graph = createGraph();\n  const chosenExits = new Map();\n  let currentFromId = null;\n  const isBlocked = exit => allowsBlocked && Boolean(exitRules?.isBlocked(exit.row));\n  const extraCostOf = exit => (exitRules?.extraCost(exit.row) ?? 0) + (isBlocked(exit) ? BLOCKED_EXIT_COST : 0);\n  const addChosenExits = () => {\n    for (const exit of chosenExits.values()) {\n      graph.addLink(exit.from, exit.to, {\n        cost: exit.cost,\n        extraCost: extraCostOf(exit),\n        command: exitCommand(exitRules?.labelFor(exit) ?? exit.label),\n        row: exit.row,\n        isBlocked: isBlocked(exit)\n      });\n    }\n    chosenExits.clear();\n  };\n\n  // The exits are in order of the room they leave, then exit id.\n  for (const exit of exits) {\n    if (exit.from !== currentFromId) {\n      addChosenExits();\n      currentFromId = exit.from;\n    }\n    const isClosed = exitRules?.isClosed(exit.row) && !isBlocked(exit);\n    if (exit.isRemoved || isClosed) {\n      continue;\n    }\n    const chosen = chosenExits.get(exit.to);\n    const cost = exit.cost + extraCostOf(exit);\n    if (!chosen || cost < chosen.cost + extraCostOf(chosen)) {\n      chosenExits.set(exit.to, exit);\n    }\n  }\n  addChosenExits();\n  return graph;\n}\n\n// A link's cost: forceCost in place of its own when that isn't 0, and its\n// rules' extra cost either way.\nexport function linkCost(data, forceCost) {\n  return (forceCost || data.cost) + data.extraCost;\n}\n\n// The notes of the rules a walk's links pass, each once; whether any link\n// is an action exit, which the game's hunt can't follow; and the HP and EP\n// the whole walk takes, counting each time a rule is passed.\nfunction walkNotes(links, exitRules) {\n  const notes = new Map();\n  let usesActions = false;\n  const takes = {\n    health: 0,\n    endurance: 0\n  };\n  for (const {\n    row\n  } of links) {\n    for (const note of exitRules?.notes(row) ?? []) {\n      notes.set(JSON.stringify(note), note);\n      if (note.effect === RULE_EFFECTS.costsHealth) {\n        takes.health += note.amount;\n      } else if (note.effect === RULE_EFFECTS.costsEndurance) {\n        takes.endurance += note.amount;\n      }\n    }\n    usesActions ||= Boolean(exitRules?.isAction(row));\n  }\n  return {\n    notes: [...notes.values()],\n    usesActions,\n    takes\n  };\n}\n\n// Finds aliases over a list of exits, { row, from, to, cost, label }, in\n// order of the room they leave and then exit id, as MapData.exits holds\n// them, with the ExitRules for the traveller, or null for none. The graphs\n// are built on first use.\nvar _graph = /*#__PURE__*/new WeakMap();\nvar _costGraph = /*#__PURE__*/new WeakMap();\nvar _graphWithBlocked = /*#__PURE__*/new WeakMap();\nvar _RouteFinder_brand = /*#__PURE__*/new WeakSet();\nexport class RouteFinder {\n  constructor(exits, exitRules = null) {\n    _classPrivateMethodInitSpec(this, _RouteFinder_brand);\n    _classPrivateFieldInitSpec(this, _graph, null);\n    _classPrivateFieldInitSpec(this, _costGraph, null);\n    _classPrivateFieldInitSpec(this, _graphWithBlocked, null);\n    this.exits = exits;\n    this.exitRules = exitRules;\n  }\n  get graph() {\n    _classPrivateFieldGet(_graph, this) ?? _classPrivateFieldSet(_graph, this, buildExitGraph(this.exits, this.exitRules));\n    return _classPrivateFieldGet(_graph, this);\n  }\n  // The graph with the exits rules close to the traveller in it too, for\n  // finding how far a route with no way through can go.\n  get graphWithBlocked() {\n    _classPrivateFieldGet(_graphWithBlocked, this) ?? _classPrivateFieldSet(_graphWithBlocked, this, buildExitGraph(this.exits, this.exitRules, {\n      allowsBlocked: true\n    }));\n    return _classPrivateFieldGet(_graphWithBlocked, this);\n  }\n\n  // The room ids along the cheapest walk, start first, or null when there\n  // is none.\n  roomPath(fromId, toId, forceCost = NO_FORCED_COST, graph = this.graph) {\n    if (!graph.hasNode(fromId) || !graph.hasNode(toId)) {\n      return null;\n    }\n    const search = aStar(graph, {\n      oriented: true,\n      distance: (_toNode, _fromNode, link) => linkCost(link.data, forceCost)\n    });\n    const nodesFromTheEnd = search.find(fromId, toId);\n    if (nodesFromTheEnd.length === 0) {\n      return null;\n    }\n    return nodesFromTheEnd.map(node => node.id).reverse();\n  }\n\n  // { stepCommands, cost, links } for walking a path of room ids.\n  walk(path, forceCost) {\n    const stepCommands = [];\n    const links = [];\n    let cost = 0;\n    for (let step = 1; step < path.length; step++) {\n      const {\n        data\n      } = this.graph.getLink(path[step - 1], path[step]);\n      stepCommands.push(data.command);\n      links.push(data);\n      cost += linkCost(data, forceCost);\n    }\n    return {\n      stepCommands,\n      cost,\n      links\n    };\n  }\n\n  // { alias, path, stepCommands, cost, notes, usesActions, takes } for the\n  // cheapest walk, path holding its room ids and stepCommands the command\n  // for each step, as walkNotes gives the last three, or { error } when\n  // there is none. A walk\n  // through an exit that lands in one of several rooms at random stops\n  // there, with randomExit: { ways }, the way on from each room it can land\n  // in, as alias gives them with the roomId; its cost is the dearest way's.\n  alias(fromId, toId, forceCost = NO_FORCED_COST) {\n    return _assertClassBrand(_RouteFinder_brand, this, _alias).call(this, fromId, toId, forceCost, 0);\n  }\n  // The cheapest cost from one room to each of targetIds, Infinity for any it\n  // can't reach.\n  costsFrom(fromId, targetIds, forceCost = NO_FORCED_COST) {\n    _classPrivateFieldGet(_costGraph, this) ?? _classPrivateFieldSet(_costGraph, this, new CostGraph(this.graph));\n    return _classPrivateFieldGet(_costGraph, this).costsFrom(fromId, targetIds, forceCost);\n  }\n\n  // A trip from startId through every one of roomIds, ordered to cost as\n  // little as can be found, and back to the start with returnToStart.\n  // onProgress(done, total) follows the cost searches. Rooms cut off from the\n  // others are left out, in cutOffIds.\n  planTrip(startId, roomIds, returnToStart, forceCost, onProgress) {\n    const ids = [...new Set([startId, ...roomIds])];\n    const costs = ids.map((id, done) => {\n      const found = this.costsFrom(id, ids, forceCost);\n      onProgress?.(done + 1, ids.length);\n      return found;\n    });\n    const kept = reachableTogether(costs);\n    const keptCosts = kept.map(a => kept.map(b => costs[a][b]));\n    const order = orderTrip(keptCosts, returnToStart).map(place => kept[place]);\n    const stops = returnToStart ? [...order, order[0]] : order;\n    const legs = stops.slice(1).map((to, step) => {\n      const [fromId, toId] = [ids[stops[step]], ids[to]];\n      const leg = _assertClassBrand(_RouteFinder_brand, this, _leg).call(this, fromId, toId, forceCost);\n      return {\n        fromId,\n        toId,\n        ...leg,\n        alias: buildAlias(leg.stepCommands)\n      };\n    });\n    const parts = tripParts(legs);\n    return {\n      roomIds: order.map(place => ids[place]),\n      cutOffIds: ids.filter((_, place) => !kept.includes(place)),\n      legs: legs.map(({\n        fromId,\n        toId,\n        path,\n        cost,\n        alias,\n        randomExit,\n        changingWays,\n        waitsFor\n      }) => ({\n        fromId,\n        toId,\n        path,\n        cost,\n        alias,\n        randomExit,\n        changingWays: changingWays ?? null,\n        waitsFor: waitsFor ?? null\n      })),\n      parts,\n      commands: parts.flatMap(part => part.commands),\n      cost: legs.reduce((total, leg) => total + leg.cost, 0),\n      ...walkNotes(legs.flatMap(leg => leg.links), this.exitRules)\n    };\n  }\n}\n\n// The trip's commands, in parts that each end at a random exit, at steps\n// whose ways change, at a way with no command, or at the end of the trip:\n// { commands, randomExit, changingWays, waitsFor }, commands split to fit the\n// game's limit, randomExit the way on from each landing, and changingWays and\n// waitsFor as RouteFinder.alias gives them, each null when the part doesn't\n// end so.\nfunction _alias(fromId, toId, forceCost, randomExitsPassed) {\n  const leg = _assertClassBrand(_RouteFinder_brand, this, _leg).call(this, fromId, toId, forceCost, randomExitsPassed);\n  if (leg.error) {\n    return leg;\n  }\n  return {\n    alias: leg.stepCommands.length ? buildAlias(leg.stepCommands) : null,\n    path: leg.path,\n    stepCommands: leg.stepCommands,\n    cost: leg.cost,\n    ...walkNotes(leg.links, this.exitRules),\n    ...(leg.randomExit ? {\n      randomExit: leg.randomExit\n    } : {}),\n    ...(leg.changingWays ? {\n      changingWays: leg.changingWays\n    } : {}),\n    ...(leg.waitsFor ? {\n      waitsFor: leg.waitsFor\n    } : {}),\n    ...(leg.blockedBy ? {\n      blockedBy: leg.blockedBy\n    } : {})\n  };\n}\n// { path, stepCommands, links, cost, randomExit } for the cheapest walk,\n// or { error }. A walk through a random exit stops there: path, commands\n// and links go as far as it, randomExit has the way on from each room it\n// can land in, and the cost is the dearest way's.\nfunction _leg(fromId, toId, forceCost, randomExitsPassed = 0) {\n  const path = this.roomPath(fromId, toId, forceCost);\n  if (!path) {\n    return _assertClassBrand(_RouteFinder_brand, this, _legToBlockedExit).call(this, fromId, toId, forceCost, randomExitsPassed);\n  }\n  const {\n    stepCommands,\n    cost,\n    links\n  } = this.walk(path, forceCost);\n  const randomStep = randomExitsPassed < MOST_RANDOM_EXITS_FOLLOWED ? links.findIndex(link => _assertClassBrand(_RouteFinder_brand, this, _landingRooms).call(this, link.row).length > 1) : NOT_FOUND;\n  const changingStep = links.findIndex(link => _assertClassBrand(_RouteFinder_brand, this, _alternativeCommands).call(this, link.row));\n  const waitingStep = links.findIndex(link => this.exitRules?.isAutomatic(link.row));\n  const comesFirst = (step, ...others) => step !== NOT_FOUND && others.every(other => other === NOT_FOUND || step < other);\n  if (comesFirst(waitingStep, changingStep, randomStep)) {\n    return _assertClassBrand(_RouteFinder_brand, this, _stopToWait).call(this, {\n      path,\n      stepCommands,\n      links\n    }, waitingStep, toId, forceCost, randomExitsPassed);\n  }\n  if (comesFirst(changingStep, randomStep)) {\n    return _assertClassBrand(_RouteFinder_brand, this, _stopAtChangingWays).call(this, {\n      path,\n      stepCommands,\n      links\n    }, changingStep, toId, forceCost, randomExitsPassed);\n  }\n  if (randomStep === NOT_FOUND) {\n    return {\n      path,\n      stepCommands,\n      links,\n      cost,\n      randomExit: null\n    };\n  }\n  const linksToRandomExit = links.slice(0, randomStep + 1);\n  const ways = _assertClassBrand(_RouteFinder_brand, this, _landingRooms).call(this, links[randomStep].row).map(roomId => ({\n    roomId,\n    ...(roomId === toId ? {\n      alias: null,\n      cost: 0,\n      notes: [],\n      usesActions: false\n    } : _assertClassBrand(_RouteFinder_brand, this, _alias).call(this, roomId, toId, forceCost, randomExitsPassed + 1))\n  }));\n  const dearestWay = Math.max(...ways.map(way => way.error ? Infinity : way.cost));\n  return {\n    path: path.slice(0, randomStep + 2),\n    stepCommands: stepCommands.slice(0, randomStep + 1),\n    links: linksToRandomExit,\n    cost: linksToRandomExit.reduce((total, link) => total + linkCost(link, forceCost), 0) + dearestWay,\n    randomExit: {\n      ways\n    }\n  };\n}\n// With no way through, the walk as far as the first exit a rule closes\n// to the traveller on the way that passes the fewest such exits, for the\n// player to get past themselves: blockedBy holds the room it stops in,\n// the exit's command and the room it leads to, and what the rules say of\n// it. { error } when the map's exits don't join the rooms at all. A walk\n// that stops sooner, as at a random exit, is given as it is.\nfunction _legToBlockedExit(fromId, toId, forceCost, randomExitsPassed) {\n  const path = this.roomPath(fromId, toId, forceCost, this.graphWithBlocked);\n  if (!path) {\n    return {\n      error: ALIAS_ERRORS.noPath\n    };\n  }\n  const linkAt = step => this.graphWithBlocked.getLink(path[step], path[step + 1]).data;\n  const blockedStep = path.findIndex((_, step) => step < path.length - 1 && linkAt(step).isBlocked);\n  if (blockedStep === NOT_FOUND) {\n    return {\n      error: ALIAS_ERRORS.noPath\n    };\n  }\n  const stopRoomId = path[blockedStep];\n  const blocked = linkAt(blockedStep);\n  const blockedBy = {\n    roomId: stopRoomId,\n    toRoomId: path[blockedStep + 1],\n    command: blocked.command,\n    notes: this.exitRules.blockingNotes(blocked.row)\n  };\n  if (stopRoomId === fromId) {\n    const nothingWalked = {\n      path: [fromId],\n      stepCommands: [],\n      links: []\n    };\n    return {\n      ...nothingWalked,\n      cost: 0,\n      randomExit: null,\n      blockedBy\n    };\n  }\n  const leg = _assertClassBrand(_RouteFinder_brand, this, _leg).call(this, fromId, stopRoomId, forceCost, randomExitsPassed);\n  const stopsSooner = leg.error || leg.randomExit || leg.changingWays || leg.waitsFor;\n  return stopsSooner ? leg : {\n    ...leg,\n    blockedBy\n  };\n}\n// A walk reaching steps whose way on changes, one of a set of exits\n// working at a time, stops before them: changingWays holds the commands to\n// try at each, how many steps in a row change, and the way on from the\n// room after them, as alias gives it with the roomId.\nfunction _stopAtChangingWays(walked, firstStep, toId, forceCost, randomExitsPassed) {\n  const {\n    path,\n    links\n  } = walked;\n  let afterSteps = firstStep;\n  while (afterSteps < links.length && _assertClassBrand(_RouteFinder_brand, this, _alternativeCommands).call(this, links[afterSteps].row)) {\n    afterSteps += 1;\n  }\n  const way = _assertClassBrand(_RouteFinder_brand, this, _wayOn).call(this, path[afterSteps], toId, forceCost, randomExitsPassed);\n  return {\n    ..._assertClassBrand(_RouteFinder_brand, this, _walkedUpTo).call(this, walked, firstStep),\n    cost: _assertClassBrand(_RouteFinder_brand, this, _costThrough).call(this, links, afterSteps, forceCost, way),\n    randomExit: null,\n    changingWays: {\n      commands: _assertClassBrand(_RouteFinder_brand, this, _alternativeCommands).call(this, links[firstStep].row),\n      steps: afterSteps - firstStep,\n      way\n    }\n  };\n}\n// A walk reaching a way with no command that takes the player on by\n// itself, as a caravan does, stops before it: waitsFor holds the way on\n// from the room it leads to, as alias gives it with the roomId.\nfunction _stopToWait(walked, step, toId, forceCost, randomExitsPassed) {\n  const way = _assertClassBrand(_RouteFinder_brand, this, _wayOn).call(this, walked.path[step + 1], toId, forceCost, randomExitsPassed);\n  return {\n    ..._assertClassBrand(_RouteFinder_brand, this, _walkedUpTo).call(this, walked, step),\n    cost: _assertClassBrand(_RouteFinder_brand, this, _costThrough).call(this, walked.links, step + 1, forceCost, way),\n    randomExit: null,\n    waitsFor: {\n      way\n    }\n  };\n}\n// The path, commands and links of a walk as far as the start of a step.\nfunction _walkedUpTo({\n  path,\n  stepCommands,\n  links\n}, step) {\n  return {\n    path: path.slice(0, step + 1),\n    stepCommands: stepCommands.slice(0, step),\n    links: links.slice(0, step)\n  };\n}\n// The way on from a room to where the walk is going, as alias gives it with\n// the roomId; alias null when it's already there.\nfunction _wayOn(roomId, toId, forceCost, randomExitsPassed) {\n  return {\n    roomId,\n    ...(roomId === toId ? {\n      alias: null,\n      cost: 0,\n      notes: [],\n      usesActions: false\n    } : _assertClassBrand(_RouteFinder_brand, this, _alias).call(this, roomId, toId, forceCost, randomExitsPassed))\n  };\n}\n// The cost of the walk's first steps and then the way on.\nfunction _costThrough(links, steps, forceCost, way) {\n  const walked = links.slice(0, steps).reduce((total, link) => total + linkCost(link, forceCost), 0);\n  return walked + (way.error ? Infinity : way.cost);\n}\n// The commands of the set of alternative exits a row is one of, or null\n// for an ordinary exit.\nfunction _alternativeCommands(row) {\n  const rows = this.exitRules?.alternativeRowsOf(row);\n  return rows ? rows.map(each => exitCommand(this.exits[each].label)) : null;\n}\n// The rooms a random exit's row can land in, or [] for an ordinary exit.\n// An exit mapped twice to the same room isn't random.\nfunction _landingRooms(row) {\n  const rows = this.exitRules?.randomRowsOf(row) ?? [];\n  return [...new Set(rows.map(each => this.exits[each].to))];\n}\nfunction tripParts(legs) {\n  const parts = [];\n  let stepCommands = [];\n  for (const leg of legs) {\n    stepCommands.push(...leg.stepCommands);\n    if (leg.randomExit || leg.changingWays || leg.waitsFor) {\n      parts.push({\n        stepCommands,\n        randomExit: leg.randomExit ?? null,\n        changingWays: leg.changingWays ?? null,\n        waitsFor: leg.waitsFor ?? null\n      });\n      stepCommands = [];\n    }\n  }\n  if (stepCommands.length || parts.length === 0) {\n    parts.push({\n      stepCommands,\n      randomExit: null,\n      changingWays: null,\n      waitsFor: null\n    });\n  }\n  return parts.filter(part => part.stepCommands.length || part.changingWays || part.waitsFor).map(({\n    stepCommands: commands,\n    randomExit,\n    changingWays,\n    waitsFor\n  }) => ({\n    commands: commands.length ? splitAlias(buildAlias(commands)) : [],\n    randomExit,\n    changingWays,\n    waitsFor\n  }));\n}\n\n// The first room of a trip, its start, as an index into its costs.\nconst TRIP_START = 0;\n\n// The rooms, by index into costs, that can all reach each other: the room\n// with most ways in or out it can't take is dropped until none is left. The\n// start is always kept.\nfunction reachableTogether(costs) {\n  const isCutOff = (room, other) => costs[room][other] === Infinity || costs[other][room] === Infinity;\n  const unreachableCounts = costs.map((_, room) => costs.reduce((count, _other, other) => other !== room && isCutOff(room, other) ? count + 1 : count, 0));\n  const kept = new Set(costs.keys());\n  for (;;) {\n    let worst = null;\n    for (const room of kept) {\n      if (room !== TRIP_START && unreachableCounts[room] > (unreachableCounts[worst] ?? 0)) {\n        worst = room;\n      }\n    }\n    if (worst === null) {\n      return [...kept];\n    }\n    kept.delete(worst);\n    for (const room of kept) {\n      if (isCutOff(room, worst)) {\n        unreachableCounts[room] -= 1;\n      }\n    }\n  }\n}\n\n// What the alias between two rooms needs, checked before any route-finding:\n// { fromId, toId, forceCost, from, to } with the two rooms as MapData.room()\n// gives them, or { error } with one of ALIAS_ERRORS. The ids and force cost\n// may be strings, as from an address.\nexport function checkAliasRequest(mapData, fromRoomId, toRoomId, forceCost) {\n  const fromId = Number(fromRoomId);\n  const toId = Number(toRoomId);\n  if (fromId === toId) {\n    return {\n      error: ALIAS_ERRORS.alreadyThere\n    };\n  }\n  const from = mapData.room(fromId);\n  const to = mapData.room(toId);\n  if (!from || !to) {\n    return {\n      error: ALIAS_ERRORS.roomNotFound\n    };\n  }\n  const parsedForceCost = parseForceCost(forceCost);\n  if (parsedForceCost === null) {\n    return {\n      error: ALIAS_ERRORS.badForceCost\n    };\n  }\n  return {\n    fromId,\n    toId,\n    forceCost: parsedForceCost,\n    from,\n    to\n  };\n}\nconst TAKES_NOTHING = {\n  health: 0,\n  endurance: 0\n};\n\n// The answer to an alias request: { from, to, alias, path, stepCommands,\n// notes, usesActions, takes, randomExit, changingWays, waitsFor, blockedBy }, or\n// { error } when the route finder found none.\nexport function aliasAnswer(request, {\n  alias,\n  path,\n  stepCommands,\n  error,\n  notes,\n  usesActions,\n  takes,\n  randomExit,\n  changingWays,\n  waitsFor,\n  blockedBy\n}) {\n  return error ? {\n    error\n  } : {\n    from: request.from,\n    to: request.to,\n    alias,\n    path: path ?? [],\n    stepCommands: stepCommands ?? [],\n    notes: notes ?? [],\n    usesActions: Boolean(usesActions),\n    takes: takes ?? TAKES_NOTHING,\n    randomExit: randomExit ?? null,\n    changingWays: changingWays ?? null,\n    waitsFor: waitsFor ?? null,\n    blockedBy: blockedBy ?? null\n  };\n}","0; //eaimeta@70e063a35619d71f0,\"./secrets\",0,\"./traveller\",0,\"./game-times\",0,\"./regions\",0,\"./commands\"eaimeta@70e063a35619d71f\nfunction _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n// What the map's rules and the traveller make of each exit: closed, costing\n// more, or carrying notes. Rules come from the map download (docs/API.md);\n// the traveller is as utils/traveller makes it.\nimport { fillSecrets, secretNames } from './secrets';\nimport { SIDES, findName } from './traveller';\nimport { minutesOf, timesHold } from './game-times';\nimport { REGION_STATES } from './regions';\nimport { isSwim } from './commands';\nexport const RULE_EFFECTS = {\n  cannotPass: 'cannot_pass',\n  dangerous: 'dangerous',\n  costsHealth: 'costs_health',\n  costsEndurance: 'costs_endurance',\n  note: 'note',\n  notLanding: 'not_landing'\n};\n\n// The note on an exit whose command uses one of the traveller's secrets.\nexport const USES_WORD = 'uses_word';\n// The notes on a locked door: unlocked with a key the traveller carries, or\n// locked to them.\nexport const UNLOCKS = 'unlocks';\nexport const LOCKED = 'locked';\n\n// A rule that may close the way, for a traveller who hasn't said enough to\n// tell, is avoided at this cost rather than closed: the cost the API gives\n// a dangerous rule with no amount (DEFAULT_DANGER_COST in\n// api/src/t2t_quests/services/map_rules.py).\nexport const UNSURE_RULE_COST = 10000;\nconst QUEST_DONE_CONDITION = 'quest_done';\nconst SECONDS_IN_AN_HOUR = 60 * 60;\nconst DO_LIST_START = /^do\\s+/i;\n\n// Whether a condition holds for the traveller: true, false, or null when\n// the traveller doesn't say enough to tell.\nexport function conditionHolds(condition, traveller, words, {\n  isDark\n}) {\n  switch (condition.kind) {\n    case 'true_alignment':\n      return inRankRange(words.alignments, traveller.trueAlignment, condition);\n    case 'displayed_alignment':\n      return inRankRange(words.alignments, traveller.displayedAlignment ?? traveller.trueAlignment, condition);\n    case 'race':\n      {\n        if (!traveller.race) {\n          return null;\n        }\n        const members = words.race_groups[condition.race] ?? [condition.race];\n        const isOne = Boolean(findName(members, traveller.race));\n        return condition.negated ? !isOne : isOne;\n      }\n    case 'side':\n      {\n        const side = sideOf(traveller.race, words);\n        return side === null ? null : side === condition.side;\n      }\n    case 'servant':\n      return isServant(traveller, words) === condition.servant;\n    case 'profession':\n      return traveller.profession ? Boolean(findName([condition.profession], traveller.profession)) : null;\n    case 'guild':\n      {\n        if (traveller.guild === null || traveller.guild === undefined) {\n          return null;\n        }\n        const isMember = Boolean(findName([condition.guild], traveller.guild));\n        return condition.negated ? !isMember : isMember;\n      }\n    case 'level':\n      return traveller.level === null || traveller.level === undefined ? null : isWithin(traveller.level, condition.at_least, condition.at_most);\n    case 'record':\n      {\n        if (!traveller.records) {\n          return null;\n        }\n        const placeRecord = Object.entries(traveller.records).find(([place]) => findName([condition.place], place));\n        return inRankRange(words.records.map(record => record.name), placeRecord?.[1] ?? null, condition);\n      }\n    case QUEST_DONE_CONDITION:\n      {\n        // The game's list leaves out quests done before it kept track, so a\n        // quest not known to be done may still have been.\n        const isAnyDone = questNames(condition).some(quest => findName(traveller.questsDone ?? [], quest));\n        return isAnyDone ? condition.done : null;\n      }\n    case 'has_item':\n      {\n        const items = itemsCarried(traveller);\n        if (items === null) {\n          return null;\n        }\n        const has = Boolean(findName(items, condition.item));\n        return has === (condition.has ?? true);\n      }\n    case 'age':\n      {\n        if (traveller.ageSeconds === null || traveller.ageSeconds === undefined) {\n          return null;\n        }\n        const hours = traveller.ageSeconds / SECONDS_IN_AN_HOUR;\n        return (condition.at_least_hours === undefined || condition.at_least_hours === null || hours >= condition.at_least_hours) && (condition.younger_than_hours === undefined || condition.younger_than_hours === null || hours < condition.younger_than_hours);\n      }\n    case 'cannot_see':\n      return isDark && !traveller.canSeeInDark;\n    case 'region':\n      {\n        const state = traveller.regions?.[condition.region];\n        return state ? state === REGION_STATES.free === condition.free : null;\n      }\n    case 'game_time':\n      {\n        const time = traveller.gameTime;\n        return time ? timesHold(time.earliest, time.latest, minutesOf(condition.starts), minutesOf(condition.ends)) : null;\n      }\n    default:\n      return null;\n  }\n}\n\n// A quest_done condition's quests: one, or several any of which will do.\nexport function questNames(condition) {\n  return [condition.quest].flat();\n}\n\n// The quests a rule's conditions ask whether the traveller has done.\nexport function ruleQuestNames(rule) {\n  return rule.conditions.filter(condition => condition.kind === QUEST_DONE_CONDITION).flatMap(questNames);\n}\n\n// What a rule's note says of the quests the rule asks about: nothing for a\n// rule asking about none.\nfunction questsAskedAbout(rule) {\n  const quests = ruleQuestNames(rule);\n  return quests.length ? {\n    quests\n  } : {};\n}\n\n// Every item the traveller is known to carry, loose or on a keyring, or\n// null when neither is known.\nexport function itemsCarried(traveller) {\n  const {\n    itemsCarried: loose = null,\n    itemsOnKeyring: keyring = null\n  } = traveller;\n  if (loose === null && keyring === null) {\n    return null;\n  }\n  return [...(loose ?? []), ...(keyring ?? [])];\n}\nfunction isWithin(value, atLeast, atMost) {\n  return (atLeast === undefined || atLeast === null || value >= atLeast) && (atMost === undefined || atMost === null || value <= atMost);\n}\nfunction inRankRange(namesInOrder, name, {\n  at_least: atLeast,\n  at_most: atMost\n}) {\n  if (!name) {\n    return null;\n  }\n  const rankOf = wanted => namesInOrder.findIndex(each => findName([each], wanted));\n  return isWithin(rankOf(name), atLeast ? rankOf(atLeast) : null, atMost ? rankOf(atMost) : null);\n}\nfunction sideOf(raceName, words) {\n  if (!raceName) {\n    return null;\n  }\n  return words.races.find(race => findName([race.name], raceName))?.side ?? null;\n}\nfunction isServant(traveller, words) {\n  if (sideOf(traveller.race, words) === SIDES.evil) {\n    return false;\n  }\n  return traveller.servant ?? false;\n}\n\n// Every condition holding is true, one failing false, otherwise null.\nexport function conditionsHold(conditions, traveller, words, context) {\n  let result = true;\n  for (const condition of conditions) {\n    const holds = conditionHolds(condition, traveller, words, context);\n    if (holds === false) {\n      return false;\n    }\n    if (holds === null) {\n      result = null;\n    }\n  }\n  return result;\n}\n\n// What ExitRules takes of the map: MapData.routeColumns with the exits\n// decoded from them.\nexport function rulesMap(routeColumns, exits) {\n  return {\n    exits,\n    rules: routeColumns.rules,\n    exitKinds: routeColumns.exit_kinds,\n    roomKinds: routeColumns.room_kinds,\n    words: routeColumns.words,\n    keys: routeColumns.keys,\n    doors: routeColumns.doors\n  };\n}\n\n// For each exit row of the download: whether it's closed, its extra cost,\n// and the notes of the rules on it, the rules on the room it enters\n// included. exits are MapData.exits, each with its row.\nvar _ExitRules_brand = /*#__PURE__*/new WeakSet();\nvar _rowsClosedForGood = /*#__PURE__*/new WeakMap();\nexport class ExitRules {\n  constructor({\n    exits,\n    rules,\n    exitKinds,\n    roomKinds,\n    words: _words,\n    keys = [],\n    doors = []\n  }, _traveller) {\n    // The defaults that need no rule: links whose command isn't known,\n    // commands needing a secret the traveller hasn't set, and swims and shore\n    // crossings, which walks never take, unless asked for a route through\n    // water to show rather than walk.\n    _classPrivateMethodInitSpec(this, _ExitRules_brand);\n    // Rows no player gets through by walking, whatever they do: those with\n    // no command, needing what the traveller lacks, or where a random exit\n    // never lands.\n    _classPrivateFieldInitSpec(this, _rowsClosedForGood, new Set());\n    this.closedRows = new Set();\n    // The notes of the rules that close an exit to this traveller for\n    // certain, by row: the exits a route may stop before for the player to\n    // get past themselves.\n    this.blockingNotesByRow = new Map();\n    // The labels of exits whose $names the traveller has secrets for, by\n    // row, with the secrets put in.\n    this.filledLabels = new Map();\n    this.extraCosts = new Map();\n    this.notesByRow = new Map();\n    this.actionRows = new Set(exitKinds.action);\n    // Rows of random exits that, for this traveller, aren't where they land.\n    this.notLandingRows = new Set();\n    // Each random exit's rows, by each of its rows.\n    this.randomRows = new Map(exitKinds.random.flatMap(rows => rows.map(row => [row, rows])));\n    this.shoreCrossingRows = new Set(exitKinds.shore_crossings ?? []);\n    // Ways with no command that take the player on by themselves.\n    this.automaticRows = new Set(exitKinds.automatic ?? []);\n    // Each set of alternative exits, only one of which works at a time and\n    // which one changing, by each of its rows.\n    this.alternativeRows = new Map((exitKinds.alternatives ?? []).flatMap(rows => rows.map(row => [row, rows])));\n    const darkRooms = new Set(roomKinds.dark);\n    const rowsInto = new Map();\n    for (const exit of exits) {\n      const rows = rowsInto.get(exit.to);\n      rows ? rows.push(exit.row) : rowsInto.set(exit.to, [exit.row]);\n      _assertClassBrand(_ExitRules_brand, this, _applyDefaults).call(this, exit, _traveller);\n    }\n    for (const door of doors) {\n      for (const row of door.exits) {\n        _assertClassBrand(_ExitRules_brand, this, _applyDoor).call(this, exits[row], door, keys[door.key] ?? null, _traveller);\n      }\n    }\n    for (const rule of rules) {\n      if (rule.exits) {\n        for (const row of rule.exits) {\n          const from = exits[row].from;\n          _assertClassBrand(_ExitRules_brand, this, _apply).call(this, rule, row, _traveller, _words, darkRooms.has(from));\n        }\n      }\n      for (const roomId of rule.rooms ?? []) {\n        for (const row of rowsInto.get(roomId) ?? []) {\n          _assertClassBrand(_ExitRules_brand, this, _apply).call(this, rule, row, _traveller, _words, darkRooms.has(roomId));\n        }\n      }\n    }\n  }\n  // The exit's label with its words put in.\n  labelFor(exit) {\n    return this.filledLabels.get(exit.row) ?? exit.label;\n  }\n  isClosed(row) {\n    return this.closedRows.has(row);\n  }\n\n  // Whether nothing but rules saying the traveller can't pass closes the\n  // exit, so the player may yet get through it themselves.\n  isBlocked(row) {\n    return this.blockingNotesByRow.has(row) && !_classPrivateFieldGet(_rowsClosedForGood, this).has(row);\n  }\n  // What the rules blocking the exit say of it, those saying nothing left\n  // out.\n  blockingNotes(row) {\n    return (this.blockingNotesByRow.get(row) ?? []).filter(Boolean);\n  }\n  extraCost(row) {\n    return this.extraCosts.get(row) ?? 0;\n  }\n  notes(row) {\n    return this.notesByRow.get(row) ?? [];\n  }\n\n  // Whether a rule says the exit is dangerous to the traveller, or may be.\n  isDangerous(row) {\n    return this.notes(row).some(note => note.effect === RULE_EFFECTS.dangerous);\n  }\n  isAction(row) {\n    return this.actionRows.has(row);\n  }\n  isAutomatic(row) {\n    return this.automaticRows.has(row);\n  }\n\n  // The rows of the set of alternative exits this row is one of, or null.\n  alternativeRowsOf(row) {\n    return this.alternativeRows.get(row) ?? null;\n  }\n\n  // The rows of the random exit this row is one of, those it doesn't land\n  // by left out, or null.\n  randomRowsOf(row) {\n    return this.randomRows.get(row)?.filter(each => !this.notLandingRows.has(each)) ?? null;\n  }\n}\nfunction _applyDefaults(exit, traveller) {\n  if (_assertClassBrand(_ExitRules_brand, this, _needsUnsetSecret).call(this, exit, traveller)) {\n    _assertClassBrand(_ExitRules_brand, this, _closeForGood).call(this, exit.row);\n    return;\n  }\n  const isAcrossWater = isSwim(exit.label) || this.shoreCrossingRows.has(exit.row);\n  const isClosed = exit.label === null && !this.automaticRows.has(exit.row) || isAcrossWater && !traveller.isThroughWater;\n  if (isClosed) {\n    _assertClassBrand(_ExitRules_brand, this, _closeForGood).call(this, exit.row);\n  }\n}\n// Whether the exit's command needs a secret the traveller doesn't have.\n// One whose secrets are known gets its label filled in and a note for\n// each.\nfunction _needsUnsetSecret(exit, traveller) {\n  const names = secretNames(exit.label);\n  if (names.length === 0) {\n    return false;\n  }\n  const {\n    text,\n    missing\n  } = fillSecrets(exit.label, traveller.secrets);\n  if (missing.length) {\n    return true;\n  }\n  this.filledLabels.set(exit.row, text);\n  this.notesByRow.set(exit.row, names.map(word => ({\n    effect: USES_WORD,\n    word,\n    setAt: traveller.secrets[word].setAt\n  })));\n  return false;\n}\n// A locked door is unlocked on the way with a key the traveller carries.\n// One the traveller certainly can't unlock closes the way, for routes to\n// stop before it, as bashing or picking it often fails; one they may hold\n// the key to is avoided, and routes say so.\nfunction _applyDoor(exit, door, key, traveller) {\n  if (!exit?.label || this.closedRows.has(exit.row)) {\n    return;\n  }\n  const carried = itemsCarried(traveller);\n  const hasKey = Boolean(key && carried && findName(carried, key.name));\n  if (hasKey) {\n    const label = this.filledLabels.get(exit.row) ?? exit.label;\n    const move = label.replace(DO_LIST_START, '');\n    this.filledLabels.set(exit.row, `do unlock ${exit.label} door with ${key.unlock}, ${move}`);\n    _assertClassBrand(_ExitRules_brand, this, _addNote).call(this, exit.row, {\n      effect: UNLOCKS,\n      key: key.name\n    });\n    return;\n  }\n  const isUnsure = Boolean(key) && carried === null;\n  const lockedNote = {\n    effect: LOCKED,\n    key: key?.name ?? null,\n    bash: door.bash,\n    pick: door.pick,\n    isUnsure\n  };\n  if (!isUnsure) {\n    this.closedRows.add(exit.row);\n    const blockingNotes = this.blockingNotesByRow.get(exit.row) ?? [];\n    this.blockingNotesByRow.set(exit.row, [...blockingNotes, lockedNote]);\n    return;\n  }\n  this.extraCosts.set(exit.row, (this.extraCosts.get(exit.row) ?? 0) + UNSURE_RULE_COST);\n  _assertClassBrand(_ExitRules_brand, this, _addNote).call(this, exit.row, lockedNote);\n}\nfunction _apply(rule, row, traveller, words, isDark) {\n  const holds = conditionsHold(rule.conditions, traveller, words, {\n    isDark\n  });\n  if (holds === false) {\n    return;\n  }\n  const isUnsure = holds === null;\n  // Unsure whether it lands there, the landing stays one of the random\n  // exit's.\n  if (rule.effect === RULE_EFFECTS.notLanding) {\n    if (!isUnsure) {\n      _assertClassBrand(_ExitRules_brand, this, _closeForGood).call(this, row);\n      this.notLandingRows.add(row);\n    }\n    return;\n  }\n  if (rule.effect === RULE_EFFECTS.note) {\n    _assertClassBrand(_ExitRules_brand, this, _addNote).call(this, row, {\n      effect: rule.effect,\n      note: rule.note,\n      isUnsure,\n      ...questsAskedAbout(rule)\n    });\n    return;\n  }\n  if (rule.effect === RULE_EFFECTS.cannotPass && !isUnsure) {\n    this.closedRows.add(row);\n    const blockingNotes = this.blockingNotesByRow.get(row) ?? [];\n    this.blockingNotesByRow.set(row, [...blockingNotes, rule.note ?? null]);\n    return;\n  }\n  const extraCost = rule.effect === RULE_EFFECTS.cannotPass ? UNSURE_RULE_COST : rule.amount;\n  this.extraCosts.set(row, (this.extraCosts.get(row) ?? 0) + extraCost);\n  _assertClassBrand(_ExitRules_brand, this, _addNote).call(this, row, {\n    effect: rule.effect,\n    amount: rule.amount,\n    note: rule.note,\n    isUnsure,\n    ...questsAskedAbout(rule)\n  });\n}\nfunction _addNote(row, note) {\n  const notes = this.notesByRow.get(row) ?? [];\n  notes.push(note);\n  this.notesByRow.set(row, notes);\n}\nfunction _closeForGood(row) {\n  this.closedRows.add(row);\n  _classPrivateFieldGet(_rowsClosedForGood, this).add(row);\n}","0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n// Secrets: named words the player keeps in this browser, such as the Mordor\n// gate password, used as $name in exits' commands and in typed commands.\n// Each is { value, setAt }, setAt being when it was set, in milliseconds\n// since 1970.\n\n// $ and a name of letters, digits and underscores, such as\n// \"say $mordor_gate_password\".\nconst SECRET_NAME = /\\$(\\w+)/g;\n\n// The secrets the client knows how to learn from the game: the text that\n// sets each, which may be wrapped across lines, and whether it changes at\n// each reboot.\nexport const BUILT_IN_SECRETS = {\n  mordor_gate_password: {\n    pattern: /the password for the Black Gate is\\s+'([^']+)'/i,\n    changesAtReboot: true\n  }\n};\n\n// The game's uptime, e.g. \"The Two Towers has been up for 3d 9h 59m 45s.\"\nconst UPTIME = /has been up for ((?:\\d+[dhms]\\s*)+)\\./;\nconst SECONDS_IN = {\n  d: 86400,\n  h: 3600,\n  m: 60,\n  s: 1\n};\nconst DURATION_PART = /(\\d+)([dhms])/g;\n\n// The names of the secrets the text uses.\nexport function secretNames(text) {\n  return [...(text ?? '').matchAll(SECRET_NAME)].map(match => match[1]);\n}\n\n// The text with each $name replaced by its secret's value: { text, missing },\n// missing naming the secrets that aren't set, which are left as they are.\nexport function fillSecrets(text, secrets) {\n  const missing = [];\n  const filled = text.replace(SECRET_NAME, (written, name) => {\n    const secret = secrets?.[name];\n    if (!secret) {\n      missing.push(name);\n      return written;\n    }\n    return secret.value;\n  });\n  return {\n    text: filled,\n    missing\n  };\n}\nexport function durationInSeconds(text) {\n  let seconds = 0;\n  for (const [, count, unit] of text.matchAll(DURATION_PART)) {\n    seconds += Number(count) * SECONDS_IN[unit];\n  }\n  return seconds;\n}\n\n// The secrets the text sets, { name: value }, and the game's uptime in\n// seconds, or null when it doesn't say.\nexport function readSecretsAndUptime(text) {\n  const secrets = {};\n  for (const [name, {\n    pattern\n  }] of Object.entries(BUILT_IN_SECRETS)) {\n    const match = text.match(pattern);\n    if (match) {\n      secrets[name] = match[1];\n    }\n  }\n  const uptime = text.match(UPTIME);\n  return {\n    secrets,\n    uptimeSeconds: uptime ? durationInSeconds(uptime[1]) : null\n  };\n}","0; //eaimeta@70e063a35619d71f0,\"./secrets\"eaimeta@70e063a35619d71f\n// Who a route is for, as the \"Route for\" panel and the Play page set it, and\n// reading it from the game's `align me`, `charinfo` and `score`. A part not\n// known is null.\n\nimport { durationInSeconds } from './secrets';\nexport const SIDES = {\n  free: 'free',\n  evil: 'evil'\n};\n\n// The guild of a traveller who isn't in one.\nexport const NO_GUILD = '';\n\n// How Sauron's own greet a character who serves him. Nothing the game says\n// shows that a character doesn't.\nconst SERVANT_GREETING = /\\bbowing to you, servant of Sauron\\b/i;\n\n// A record nobody has reported on.\nexport const CLEAN_RECORD = 'clean';\nexport function emptyTraveller() {\n  return {\n    trueAlignment: null,\n    // Null when it's the same as the true alignment.\n    displayedAlignment: null,\n    race: null,\n    // A free-race character serves Sauron only when the game or the player\n    // says so.\n    servant: false,\n    profession: null,\n    // The guild's name, NO_GUILD when in none, or null when not known.\n    guild: null,\n    level: null,\n    // { place: record name }, places left out not being known, or null when\n    // none are.\n    records: null,\n    // Quest names, or null when not known.\n    questsDone: null,\n    // How long the character has been played, in seconds, as charinfo gives\n    // it, or null when not known.\n    ageSeconds: null,\n    // The items rules ask about that the traveller carries, loose and on a\n    // keyring, as the game names them; each null when not known.\n    itemsCarried: null,\n    itemsOnKeyring: null,\n    // { region: state } as `warscape brief` gives them, or null when not\n    // read yet.\n    regions: null,\n    canSeeInDark: false\n  };\n}\n\n// A quest's line in the game's `quests` list: its number, a * when it's\n// tracked, its name and how many times it's been done.\nconst QUESTS_LINE = /^\\s*\\d+\\s*\\|\\s*\\*?\\s*(.+?)\\s*\\|\\s*\\d+\\s*$/;\n// The list's heading, and what the game says when no quest done matches.\nconst QUESTS_HEADING = /^\\s*#\\s*\\|\\s*Quest\\s*\\|\\s*# Done\\s*$/;\nconst NO_QUESTS_MATCHING = 'No quests matching specified filter done.';\n\n// Whether the lines are the game's answer to a `quests <word>`: its list,\n// or its saying no quest done matches.\nexport function isQuestsAnswer(lines) {\n  return lines.some(line => QUESTS_LINE.test(line) || QUESTS_HEADING.test(line) || line.trim() === NO_QUESTS_MATCHING);\n}\n\n// The list's name column cuts names this long or longer short.\nconst QUESTS_NAME_WIDTH = 30;\n// The game's `quests` takes a quest's whole name to list only that quest.\nexport function questsCommand(questName) {\n  return `quests ${questName}`;\n}\n\n// The quests the text of a `quests` list names.\nexport function listedQuests(text) {\n  return text.split(LINE_BREAK).map(line => QUESTS_LINE.exec(line)?.[1]).filter(Boolean);\n}\nfunction isListed(listed, questName) {\n  return listed.some(name => sameName(name, questName) || name.length >= QUESTS_NAME_WIDTH && questName.toLowerCase().startsWith(name.toLowerCase()));\n}\n\n// The quests done after a `quests <word>` answer: each of askedAbout that\n// it lists is done. One it doesn't list may still have been done, before\n// the game kept track of quests, so what was known of it stays as it was.\nexport function questsDoneAfter(text, askedAbout, questsDone) {\n  const listed = listedQuests(text);\n  const done = new Set(questsDone ?? []);\n  for (const quest of askedAbout) {\n    if (isListed(listed, quest)) {\n      done.add(quest);\n    }\n  }\n  return [...done];\n}\n\n// Whether any part a rule could ask about has been set.\nexport function isTravellerSet(traveller) {\n  const empty = emptyTraveller();\n  return Object.keys(empty).some(part => JSON.stringify(traveller[part] ?? null) !== JSON.stringify(empty[part] ?? null));\n}\nexport function sameName(first, second) {\n  return typeof first === 'string' && typeof second === 'string' && first.localeCompare(second, 'en', {\n    sensitivity: 'base'\n  }) === 0;\n}\nexport function findName(names, wanted) {\n  return names.find(name => sameName(name, wanted)) ?? null;\n}\nfunction escapeForPattern(text) {\n  return text.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n}\n\n// Longest first, so \"Shadowspawn of Mordor\" wins over a shorter name.\nfunction alternativesPattern(names) {\n  return [...names].sort((first, second) => second.length - first.length).map(escapeForPattern).join('|');\n}\nconst LINE_BREAK = /\\r?\\n/;\nconst CHARINFO_FIELD = /(Race|Profession|Level|Alignment|Age):\\s+(\\S+(?: \\S+)*)/g;\nconst SCORE_LEVEL_LINE = /^Level (\\d+) (\\S+),/;\nconst TITLE_LINE_START = /^\\S+ the (\\S+) .*\\(/;\nconst INVENTORY_START = 'You are carrying the following on your person:';\nconst KEYRING_START = 'You dig around in your keyring and find:';\nconst NOTHING_CARRIED_TEXT = 'You are not carrying any items right now.';\n// An inventory line's marks: a leading * and trailing (worn), (open) and\n// the like, and the full stop.\nconst ITEM_MARKS = /^\\*|(\\s*\\([^()]*\\))+\\.?$|\\.$/g;\n\n// Which of the items are listed after the line starting the list, or null\n// when the text has no such list.\nfunction itemsListed(lines, listStart, items) {\n  const start = lines.findIndex(line => line.trim() === listStart);\n  if (start === -1) {\n    return null;\n  }\n  const listed = lines.slice(start + 1).map(line => line.trim().replace(ITEM_MARKS, '').trim());\n  return items.filter(item => findName(listed, item));\n}\n\n// What the text shows of the traveller, as changes to make: any of\n// `align me`'s lines (\"You are Angelic.\", \"You are disguised as Demonic.\",\n// \"You are suspected of killing someone in Mordor.\"), `charinfo`'s fields\n// and `score`'s title and level lines, and which of the items rules ask\n// about `inventory` and `i keyring` list. words is the map download's\n// words. An `align me` giving the alignment also gives a clean record for\n// every place it doesn't name.\nexport function readTraveller(text, words, items = []) {\n  const changes = {};\n  const allLines = text.split(LINE_BREAK);\n  const carried = itemsListed(allLines, INVENTORY_START, items);\n  if (carried) {\n    changes.itemsCarried = carried;\n  } else if (allLines.some(line => line.trim() === NOTHING_CARRIED_TEXT)) {\n    changes.itemsCarried = [];\n  }\n  const onKeyring = itemsListed(allLines, KEYRING_START, items);\n  if (onKeyring) {\n    changes.itemsOnKeyring = onKeyring;\n  }\n  const alignments = alternativesPattern(words.alignments);\n  const recordWordings = words.records.filter(record => record.wording);\n  const alignmentLine = new RegExp(`^You are (${alignments})\\\\.$`, 'i');\n  const disguiseLine = new RegExp(`^You are disguised as (${alignments})\\\\.$`, 'i');\n  const recordLine = new RegExp(`^You are (${alternativesPattern(recordWordings.map(record => record.wording))}) in (.+?)[.!]$`, 'i');\n  const titleAlignment = new RegExp(`\\\\((${alignments})\\\\)\\\\s*$`, 'i');\n  const records = {};\n  let hasAlignMe = false;\n  let hasDisguise = false;\n  for (const rawLine of allLines) {\n    const line = rawLine.trim();\n    let match = line.match(alignmentLine);\n    if (match) {\n      changes.trueAlignment = findName(words.alignments, match[1]);\n      hasAlignMe = true;\n      continue;\n    }\n    match = line.match(disguiseLine);\n    if (match) {\n      changes.displayedAlignment = findName(words.alignments, match[1]);\n      hasDisguise = true;\n      continue;\n    }\n    if (SERVANT_GREETING.test(line)) {\n      changes.servant = true;\n      continue;\n    }\n    match = line.match(recordLine);\n    if (match) {\n      const record = recordWordings.find(each => sameName(each.wording, match[1]));\n      records[match[2]] = record.name;\n      continue;\n    }\n    readCharinfoFields(line, words, changes);\n    match = line.match(SCORE_LEVEL_LINE);\n    if (match) {\n      changes.level = Number(match[1]);\n      changes.profession = match[2];\n      continue;\n    }\n    match = line.match(titleAlignment);\n    if (match && TITLE_LINE_START.test(line)) {\n      changes.displayedAlignment = findName(words.alignments, match[1]);\n      const race = findRace(words, line.match(TITLE_LINE_START)[1]);\n      if (race) {\n        changes.race = race;\n      }\n    }\n  }\n  if (hasAlignMe) {\n    const cleanEverywhere = Object.fromEntries(words.record_places.map(place => [place, CLEAN_RECORD]));\n    changes.records = {\n      ...cleanEverywhere,\n      ...records\n    };\n    if (!hasDisguise) {\n      changes.displayedAlignment = null;\n    }\n  } else if (Object.keys(records).length) {\n    changes.records = records;\n  }\n  if (changes.displayedAlignment && changes.displayedAlignment === changes.trueAlignment) {\n    changes.displayedAlignment = null;\n  }\n  return changes;\n}\nfunction raceNames(words) {\n  return words.races.map(race => race.name);\n}\n\n// The race of this name among the game's words, as they spell it, or null.\nexport function findRace(words, name) {\n  return findName(raceNames(words), name);\n}\nfunction readCharinfoFields(line, words, changes) {\n  for (const [, field, value] of line.matchAll(CHARINFO_FIELD)) {\n    if (field === 'Race') {\n      const race = findRace(words, value);\n      if (race) {\n        changes.race = race;\n      }\n    } else if (field === 'Profession') {\n      changes.profession = value;\n    } else if (field === 'Level') {\n      const level = parseInt(value, 10);\n      if (Number.isInteger(level)) {\n        changes.level = level;\n      }\n    } else if (field === 'Alignment') {\n      changes.trueAlignment = findName(words.alignments, value);\n    } else if (field === 'Age') {\n      changes.ageSeconds = durationInSeconds(value);\n    }\n  }\n}","0; //eaimeta@70e063a35619d71f0,\"./alias\"eaimeta@70e063a35619d71f\n// Planning a trip that visits several rooms, and the alias for it, split into\n// commands the game takes.\n//\n// Ordering the rooms is a travelling salesman problem with costs that may\n// differ each way. Nearest neighbour gives a first order, then 2-opt and\n// Or-opt moves improve it, trying only moves that make an edge to one of a\n// room's cheapest neighbours, and only around rooms whose part of the trip\n// has changed. With time to spare, iterated local search then repeatedly\n// perturbs the best order found and improves it again, keeping it if cheaper.\nimport { aliasSteps, typedCommands } from './alias';\n\n// The longest single command, in characters, known to work in the game.\nexport const MAXIMUM_COMMAND_LENGTH = 600;\n// The start is the first room of an order.\nconst START = 0;\n// The most rooms an Or-opt move carries.\nconst MOST_MOVED = 3;\n// How many of its cheapest neighbours, each way, a room's moves consider.\nconst NEIGHBOURS_PER_ROOM = 16;\n// How long iterated local search may run unless told otherwise.\nconst DEFAULT_TIME_BUDGET_MS = 1000;\n// Where the perturbations' random numbers start.\nconst SEED = 1;\n// Iterated local search also stops after this many perturbations per room\n// in a row fail to find a cheaper order, so small trips finish at once.\nconst FAILED_ATTEMPTS_PER_ROOM = 10;\n// The most rooms in each of the two pieces a double bridge swaps.\nconst LONGEST_SWAPPED_PIECE = 50;\n// Park-Miller minimal standard random numbers.\nconst RANDOM_MULTIPLIER = 16807;\nconst RANDOM_MODULUS = 2147483647;\n\n// costs[a][b] is the cost from room a to room b. With returnToStart the trip\n// ends back at the start.\nexport function tripCost(costs, order, returnToStart) {\n  let total = 0;\n  for (let step = 1; step < order.length; step++) {\n    total += costs[order[step - 1]][order[step]];\n  }\n  return returnToStart ? total + costs[order.at(-1)][order[START]] : total;\n}\n\n// Repeatable random whole numbers from low to high inclusive.\nfunction randomBetweenFrom(seed) {\n  let state = seed % RANDOM_MODULUS || 1;\n  return (low, high) => {\n    state = state * RANDOM_MULTIPLIER % RANDOM_MODULUS;\n    return low + state % (high - low + 1);\n  };\n}\n\n// Each time to the cheapest room not yet visited.\nfunction nearestFirst(costs) {\n  const order = [START];\n  const left = new Set(costs.keys());\n  left.delete(START);\n  while (left.size) {\n    const here = order.at(-1);\n    let best = null;\n    for (const room of left) {\n      if (best === null || costs[here][room] < costs[here][best]) {\n        best = room;\n      }\n    }\n    order.push(best);\n    left.delete(best);\n  }\n  return order;\n}\n\n// For each room, at most count other rooms in order of costOf(room, other),\n// cheapest first.\nfunction cheapestNeighbours(roomCount, count, costOf) {\n  return Array.from({\n    length: roomCount\n  }, (_, room) => {\n    const cheapest = [];\n    for (let other = 0; other < roomCount; other++) {\n      const cost = costOf(room, other);\n      const isFull = cheapest.length === count;\n      if (other === room || cost === Infinity || isFull && cost >= cheapest.at(-1).cost) {\n        continue;\n      }\n      const dearerPlace = cheapest.findIndex(kept => kept.cost > cost);\n      cheapest.splice(dearerPlace === -1 ? cheapest.length : dearerPlace, 0, {\n        other,\n        cost\n      });\n      if (cheapest.length > count) {\n        cheapest.pop();\n      }\n    }\n    return cheapest.map(kept => kept.other);\n  });\n}\n\n// Rooms waiting to have their moves tried, in the order they were added,\n// each at most once.\nclass RoomQueue {\n  constructor(rooms) {\n    this.waiting = new Set();\n    rooms.forEach(room => this.add(room));\n  }\n  get isEmpty() {\n    return this.waiting.size === 0;\n  }\n  add(room) {\n    if (room !== undefined) {\n      this.waiting.add(room);\n    }\n  }\n  take() {\n    const [room] = this.waiting;\n    this.waiting.delete(room);\n    return room;\n  }\n}\n\n// Places are positions in the order; a place of undefined is off either end\n// of an open trip. Running totals of the costs forwards and backwards along\n// the trip give a reversed stretch's cost at once.\nclass TripImprover {\n  constructor(costs, order, returnToStart) {\n    this.costs = costs;\n    this.order = order;\n    this.returnToStart = returnToStart;\n    this.cheapestTo = cheapestNeighbours(order.length, NEIGHBOURS_PER_ROOM, (room, other) => costs[room][other]);\n    this.cheapestFrom = cheapestNeighbours(order.length, NEIGHBOURS_PER_ROOM, (room, other) => costs[other][room]);\n    this.placeOf = new Int32Array(order.length);\n    this.forward = new Float64Array(order.length);\n    this.backward = new Float64Array(order.length);\n    this.countTotals();\n  }\n\n  // Positions of rooms, and running totals of costs along the order, for the\n  // places from firstChanged on.\n  countTotals(firstChanged = START) {\n    const {\n      costs,\n      order,\n      placeOf,\n      forward,\n      backward\n    } = this;\n    for (let place = firstChanged; place < order.length; place++) {\n      const room = order[place];\n      placeOf[room] = place;\n      if (place > START) {\n        const previous = order[place - 1];\n        forward[place] = forward[place - 1] + costs[previous][room];\n        backward[place] = backward[place - 1] + costs[room][previous];\n      }\n    }\n  }\n  get lastPlace() {\n    return this.order.length - 1;\n  }\n  placeAfter(place) {\n    if (place < this.lastPlace) {\n      return place + 1;\n    }\n    return this.returnToStart ? START : undefined;\n  }\n  placeBefore(place) {\n    if (place > START) {\n      return place - 1;\n    }\n    return this.returnToStart ? this.lastPlace : undefined;\n  }\n\n  // The cost of going from one place to another; nothing off either end.\n  cost(fromPlace, toPlace) {\n    if (fromPlace === undefined || toPlace === undefined) {\n      return 0;\n    }\n    return this.costs[this.order[fromPlace]][this.order[toPlace]];\n  }\n\n  // How much reversing the stretch from first to last saves.\n  reversingGain(first, last) {\n    const before = first - 1;\n    const after = this.placeAfter(last);\n    const asIs = this.cost(before, first) + (this.forward[last] - this.forward[first]) + this.cost(last, after);\n    const reversed = this.cost(before, last) + (this.backward[last] - this.backward[first]) + this.cost(first, after);\n    return asIs - reversed;\n  }\n\n  // How much moving the run from first to last to just after place saves.\n  movingGain(first, last, place) {\n    const before = first - 1;\n    const after = this.placeAfter(last);\n    const placeAfter = this.placeAfter(place);\n    const saved = this.cost(before, first) + this.cost(last, after) - this.cost(before, after);\n    const added = this.cost(place, first) + this.cost(last, placeAfter) - this.cost(place, placeAfter);\n    return saved - added;\n  }\n\n  // The rooms either side of the stretch from first to last, and its ends.\n  roomsAround(first, last) {\n    const places = [first - 1, first, last, this.placeAfter(last)];\n    return places.map(place => this.order[place]);\n  }\n\n  // Reverses the stretch from first to last if that's cheaper, giving the\n  // rooms whose neighbours changed.\n  tryReversing(first, last) {\n    const isStretchValid = last !== undefined && first > START && last > first && last <= this.lastPlace;\n    if (!isStretchValid) {\n      return null;\n    }\n    // Not \"<= 0\": a gain of NaN, from unreachable rooms, must not count.\n    if (!(this.reversingGain(first, last) > 0)) {\n      return null;\n    }\n    const touched = this.roomsAround(first, last);\n    const stretch = this.order.slice(first, last + 1).reverse();\n    this.order.splice(first, stretch.length, ...stretch);\n    this.countTotals(first);\n    return touched;\n  }\n\n  // Moves the run from first to last to just after place if that's cheaper,\n  // giving the rooms whose neighbours changed.\n  tryMoving(first, last, place) {\n    const isRunValid = first > START && last >= first && last <= this.lastPlace;\n    const isPlaceOutsideRun = place < first - 1 || place > last;\n    if (!isRunValid || place === undefined || !isPlaceOutsideRun) {\n      return null;\n    }\n    if (!(this.movingGain(first, last, place) > 0)) {\n      return null;\n    }\n    const touched = [...this.roomsAround(first, last), this.order[place], this.order[this.placeAfter(place)]];\n    const length = last - first + 1;\n    const run = this.order.splice(first, length);\n    const target = place < first ? place + 1 : place + 1 - length;\n    this.order.splice(target, 0, ...run);\n    this.countTotals(Math.min(first, target));\n    return touched;\n  }\n\n  // Reversals that make an edge from room to, or to room from, one of its\n  // cheapest neighbours.\n  *reversalsAround(room) {\n    const here = this.placeOf[room];\n    for (const neighbour of this.cheapestTo[room]) {\n      const there = this.placeOf[neighbour];\n      // room, then the reversed stretch ending at neighbour.\n      yield [here + 1, there];\n      // room starting the reversed stretch, neighbour just after it.\n      yield [here, this.placeBefore(there)];\n    }\n    for (const neighbour of this.cheapestFrom[room]) {\n      const there = this.placeOf[neighbour];\n      // neighbour, then the reversed stretch ending at room.\n      yield [there + 1, here];\n      // neighbour starting the reversed stretch, room just after it.\n      yield [there, this.placeBefore(here)];\n    }\n  }\n\n  // Moves of a run that make an edge from room to, or to room from, one of\n  // its cheapest neighbours: the run starting or ending at room, or room\n  // being where a neighbour's run lands next to.\n  *movesAround(room) {\n    const here = this.placeOf[room];\n    for (let length = 1; length <= MOST_MOVED; length++) {\n      const extent = length - 1;\n      for (const neighbour of this.cheapestFrom[room]) {\n        const there = this.placeOf[neighbour];\n        // The run starting at room, moved to follow neighbour.\n        yield [here, here + extent, there];\n        // The run ending at neighbour, moved to precede room.\n        yield [there - extent, there, this.placeBefore(here)];\n      }\n      for (const neighbour of this.cheapestTo[room]) {\n        const there = this.placeOf[neighbour];\n        // The run ending at room, moved to precede neighbour.\n        yield [here - extent, here, this.placeBefore(there)];\n        // The run starting at neighbour, moved to follow room.\n        yield [there, there + extent, here];\n      }\n    }\n  }\n\n  // The rooms whose neighbours changed after one improving move around room,\n  // or null when none helps.\n  improveAround(room) {\n    for (const [first, last] of this.reversalsAround(room)) {\n      const touched = this.tryReversing(first, last);\n      if (touched) {\n        return touched;\n      }\n    }\n    for (const [first, last, place] of this.movesAround(room)) {\n      const touched = this.tryMoving(first, last, place);\n      if (touched) {\n        return touched;\n      }\n    }\n    return null;\n  }\n\n  // Improves the order until no move helps around the rooms given or any\n  // room a move touches.\n  improve(rooms = this.order) {\n    const waiting = new RoomQueue(rooms);\n    while (!waiting.isEmpty) {\n      const room = waiting.take();\n      const touched = this.improveAround(room);\n      if (touched) {\n        waiting.add(room);\n        touched.forEach(other => waiting.add(other));\n      }\n    }\n    return this.order;\n  }\n  useOrder(order) {\n    this.order = order;\n    this.countTotals();\n  }\n\n  // A double bridge: the order after the start is cut into four pieces and\n  // the middle two swapped, nothing reversed. Gives the rooms either side of\n  // each new join.\n  perturb(randomBetween) {\n    const {\n      lastPlace\n    } = this;\n    const secondCut = randomBetween(START + 2, lastPlace);\n    const earliestFirstCut = Math.max(START + 1, secondCut - LONGEST_SWAPPED_PIECE);\n    const latestThirdCut = Math.min(lastPlace + 1, secondCut + LONGEST_SWAPPED_PIECE);\n    const firstCut = randomBetween(earliestFirstCut, secondCut - 1);\n    const thirdCut = randomBetween(secondCut + 1, latestThirdCut);\n    const {\n      order\n    } = this;\n    const firstPiece = order.slice(firstCut, secondCut);\n    const secondPiece = order.slice(secondCut, thirdCut);\n    order.splice(firstCut, thirdCut - firstCut, ...secondPiece, ...firstPiece);\n    this.countTotals(firstCut);\n    const joins = [firstCut, firstCut + secondPiece.length, thirdCut];\n    return joins.flatMap(join => [order[join - 1], order[this.placeAfter(join - 1)]]);\n  }\n\n  // Perturbs the best order and improves it again until the time is up or\n  // perturbing keeps failing, keeping each cheaper order found.\n  searchAround(timeBudgetMs) {\n    const hasRoomToPerturb = this.lastPlace >= START + 2;\n    if (timeBudgetMs <= 0 || !hasRoomToPerturb) {\n      return this.order;\n    }\n    const randomBetween = randomBetweenFrom(SEED);\n    const stopAt = performance.now() + timeBudgetMs;\n    const mostFailedAttempts = FAILED_ATTEMPTS_PER_ROOM * this.order.length;\n    let best = [...this.order];\n    let bestCost = tripCost(this.costs, best, this.returnToStart);\n    let failedAttempts = 0;\n    while (performance.now() < stopAt && failedAttempts < mostFailedAttempts) {\n      this.improve(this.perturb(randomBetween));\n      const cost = tripCost(this.costs, this.order, this.returnToStart);\n      if (cost < bestCost) {\n        best = [...this.order];\n        bestCost = cost;\n        failedAttempts = 0;\n      } else {\n        this.useOrder([...best]);\n        failedAttempts++;\n      }\n    }\n    return best;\n  }\n}\n\n// The order to visit every room in, the start (room 0) first, as indexes into\n// costs. A timeBudgetMs of 0 stops at the first order no single move helps.\nexport function orderTrip(costs, returnToStart, {\n  timeBudgetMs = DEFAULT_TIME_BUDGET_MS\n} = {}) {\n  const improver = new TripImprover(costs, nearestFirst(costs), returnToStart);\n  improver.improve();\n  return improver.searchAround(timeBudgetMs);\n}\n\n// An alias's steps as commands of at most maximumLength characters each,\n// split only between steps.\nexport function splitAlias(alias, maximumLength = MAXIMUM_COMMAND_LENGTH) {\n  const steps = aliasSteps(alias).map(step => step.text);\n  const commands = [];\n  let current = [];\n  for (const step of steps) {\n    const longer = typedCommands([...current, step]);\n    if (current.length && longer.length > maximumLength) {\n      commands.push(typedCommands(current));\n      current = [];\n    }\n    current.push(step);\n  }\n  if (current.length) {\n    commands.push(typedCommands(current));\n  }\n  return commands;\n}","0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n// Starts the route-finding Web Worker. It is bundled by webpack, which\n// recognises this form of new Worker(), so this file and the worker are\n// handled by ember-auto-import (see allowAppImports in ember-cli-build.js).\nexport default function startRouteFinder() {\n  return new Worker(new URL('./route-finder.js', import.meta.url));\n}","\nmodule.exports = (function(){\n  var d = _eai_d;\n  var r = _eai_r;\n  window.emberAutoImportDynamic = function(specifier) {\n    if (arguments.length === 1) {\n      return r('_eai_dyn_' + specifier);\n    } else {\n      return r('_eai_dynt_' + specifier)(Array.prototype.slice.call(arguments, 1))\n    }\n  };\n  window.emberAutoImportSync = function(specifier) {\n    return r('_eai_sync_' + specifier)(Array.prototype.slice.call(arguments, 1))\n  };\n  function esc(m) {\n    return m && m.__esModule ? m : Object.assign({ default: m }, m);\n  }\n    d('@bbob/parser', [EAI_DISCOVERED_EXTERNALS_START, '@bbob/parser', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@bbob/parser')); });\n    d('@ember/-internals/browser-environment/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/browser-environment/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/browser-environment/index.js')); });\n    d('@ember/-internals/container/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/container/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/container/index.js')); });\n    d('@ember/-internals/deprecations/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/deprecations/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/deprecations/index.js')); });\n    d('@ember/-internals/environment/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/environment/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/environment/index.js')); });\n    d('@ember/-internals/error-handling/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/error-handling/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/error-handling/index.js')); });\n    d('@ember/-internals/glimmer/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/glimmer/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/glimmer/index.js')); });\n    d('@ember/-internals/meta/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/meta/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/meta/index.js')); });\n    d('@ember/-internals/meta/lib/meta', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/meta/lib/meta', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/meta/lib/meta.js')); });\n    d('@ember/-internals/metal/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/metal/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/metal/index.js')); });\n    d('@ember/-internals/owner/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/owner/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/owner/index.js')); });\n    d('@ember/-internals/routing/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/routing/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/routing/index.js')); });\n    d('@ember/-internals/runtime/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/runtime/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/runtime/index.js')); });\n    d('@ember/-internals/runtime/lib/ext/rsvp', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/runtime/lib/ext/rsvp', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/runtime/lib/ext/rsvp.js')); });\n    d('@ember/-internals/runtime/lib/mixins/-proxy', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/runtime/lib/mixins/-proxy', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/runtime/lib/mixins/-proxy.js')); });\n    d('@ember/-internals/runtime/lib/mixins/comparable', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/runtime/lib/mixins/comparable', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/runtime/lib/mixins/comparable.js')); });\n    d('@ember/-internals/string/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/string/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/string/index.js')); });\n    d('@ember/-internals/utility-types/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/utility-types/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/utility-types/index.js')); });\n    d('@ember/-internals/utils/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/utils/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/utils/index.js')); });\n    d('@ember/-internals/views/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/views/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/views/index.js')); });\n    d('@ember/-internals/views/lib/compat/attrs', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/views/lib/compat/attrs', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/views/lib/compat/attrs.js')); });\n    d('@ember/-internals/views/lib/mixins/action_support', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/views/lib/mixins/action_support', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/views/lib/mixins/action_support.js')); });\n    d('@ember/-internals/views/lib/system/utils', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/views/lib/system/utils', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/views/lib/system/utils.js')); });\n    d('@ember/-internals/views/lib/views/core_view', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/views/lib/views/core_view', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/views/lib/views/core_view.js')); });\n    d('@ember/-internals/views/lib/views/states', [EAI_DISCOVERED_EXTERNALS_START, '@ember/-internals/views/lib/views/states', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/-internals/views/lib/views/states.js')); });\n    d('@ember/application', [EAI_DISCOVERED_EXTERNALS_START, '@ember/application', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/application/index.js')); });\n    d('@ember/application/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/application/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/application/index.js')); });\n    d('@ember/application/instance', [EAI_DISCOVERED_EXTERNALS_START, '@ember/application/instance', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/application/instance.js')); });\n    d('@ember/application/namespace', [EAI_DISCOVERED_EXTERNALS_START, '@ember/application/namespace', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/application/namespace.js')); });\n    d('@ember/array/-internals', [EAI_DISCOVERED_EXTERNALS_START, '@ember/array/-internals', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/array/-internals.js')); });\n    d('@ember/array/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/array/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/array/index.js')); });\n    d('@ember/array/lib/make-array', [EAI_DISCOVERED_EXTERNALS_START, '@ember/array/lib/make-array', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/array/lib/make-array.js')); });\n    d('@ember/array/mutable', [EAI_DISCOVERED_EXTERNALS_START, '@ember/array/mutable', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/array/mutable.js')); });\n    d('@ember/array/proxy', [EAI_DISCOVERED_EXTERNALS_START, '@ember/array/proxy', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/array/proxy.js')); });\n    d('@ember/canary-features/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/canary-features/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/canary-features/index.js')); });\n    d('@ember/component', [EAI_DISCOVERED_EXTERNALS_START, '@ember/component', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/component/index.js')); });\n    d('@ember/component/helper', [EAI_DISCOVERED_EXTERNALS_START, '@ember/component/helper', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/component/helper.js')); });\n    d('@ember/component/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/component/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/component/index.js')); });\n    d('@ember/component/template-only', [EAI_DISCOVERED_EXTERNALS_START, '@ember/component/template-only', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/component/template-only.js')); });\n    d('@ember/controller', [EAI_DISCOVERED_EXTERNALS_START, '@ember/controller', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/controller/index.js')); });\n    d('@ember/controller/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/controller/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/controller/index.js')); });\n    d('@ember/debug', [EAI_DISCOVERED_EXTERNALS_START, '@ember/debug', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/debug/index.js')); });\n    d('@ember/debug/container-debug-adapter', [EAI_DISCOVERED_EXTERNALS_START, '@ember/debug/container-debug-adapter', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/debug/container-debug-adapter.js')); });\n    d('@ember/debug/data-adapter', [EAI_DISCOVERED_EXTERNALS_START, '@ember/debug/data-adapter', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/debug/data-adapter.js')); });\n    d('@ember/debug/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/debug/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/debug/index.js')); });\n    d('@ember/debug/lib/capture-render-tree', [EAI_DISCOVERED_EXTERNALS_START, '@ember/debug/lib/capture-render-tree', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/debug/lib/capture-render-tree.js')); });\n    d('@ember/debug/lib/deprecate', [EAI_DISCOVERED_EXTERNALS_START, '@ember/debug/lib/deprecate', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/debug/lib/deprecate.js')); });\n    d('@ember/debug/lib/handlers', [EAI_DISCOVERED_EXTERNALS_START, '@ember/debug/lib/handlers', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/debug/lib/handlers.js')); });\n    d('@ember/debug/lib/inspect', [EAI_DISCOVERED_EXTERNALS_START, '@ember/debug/lib/inspect', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/debug/lib/inspect.js')); });\n    d('@ember/debug/lib/testing', [EAI_DISCOVERED_EXTERNALS_START, '@ember/debug/lib/testing', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/debug/lib/testing.js')); });\n    d('@ember/debug/lib/warn', [EAI_DISCOVERED_EXTERNALS_START, '@ember/debug/lib/warn', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/debug/lib/warn.js')); });\n    d('@ember/deprecated-features/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/deprecated-features/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/deprecated-features/index.js')); });\n    d('@ember/destroyable', [EAI_DISCOVERED_EXTERNALS_START, '@ember/destroyable', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/destroyable/index.js')); });\n    d('@ember/destroyable/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/destroyable/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/destroyable/index.js')); });\n    d('@ember/engine/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/engine/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/engine/index.js')); });\n    d('@ember/engine/instance', [EAI_DISCOVERED_EXTERNALS_START, '@ember/engine/instance', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/engine/instance.js')); });\n    d('@ember/engine/lib/engine-parent', [EAI_DISCOVERED_EXTERNALS_START, '@ember/engine/lib/engine-parent', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/engine/lib/engine-parent.js')); });\n    d('@ember/enumerable/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/enumerable/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/enumerable/index.js')); });\n    d('@ember/enumerable/mutable', [EAI_DISCOVERED_EXTERNALS_START, '@ember/enumerable/mutable', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/enumerable/mutable.js')); });\n    d('@ember/helper/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/helper/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/helper/index.js')); });\n    d('@ember/instrumentation/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/instrumentation/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/instrumentation/index.js')); });\n    d('@ember/modifier/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/modifier/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/modifier/index.js')); });\n    d('@ember/object', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/index.js')); });\n    d('@ember/object/-internals', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object/-internals', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/-internals.js')); });\n    d('@ember/object/compat', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object/compat', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/compat.js')); });\n    d('@ember/object/computed', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object/computed', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/computed.js')); });\n    d('@ember/object/core', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object/core', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/core.js')); });\n    d('@ember/object/evented', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object/evented', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/evented.js')); });\n    d('@ember/object/events', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object/events', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/events.js')); });\n    d('@ember/object/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/index.js')); });\n    d('@ember/object/internals', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object/internals', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/internals.js')); });\n    d('@ember/object/lib/computed/computed_macros', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object/lib/computed/computed_macros', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/lib/computed/computed_macros.js')); });\n    d('@ember/object/lib/computed/reduce_computed_macros', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object/lib/computed/reduce_computed_macros', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/lib/computed/reduce_computed_macros.js')); });\n    d('@ember/object/mixin', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object/mixin', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/mixin.js')); });\n    d('@ember/object/observable', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object/observable', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/observable.js')); });\n    d('@ember/object/observers', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object/observers', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/observers.js')); });\n    d('@ember/object/promise-proxy-mixin', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object/promise-proxy-mixin', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/promise-proxy-mixin.js')); });\n    d('@ember/object/proxy', [EAI_DISCOVERED_EXTERNALS_START, '@ember/object/proxy', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/object/proxy.js')); });\n    d('@ember/owner/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/owner/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/owner/index.js')); });\n    d('@ember/renderer/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/renderer/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/renderer/index.js')); });\n    d('@ember/routing/-internals', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/-internals', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/-internals.js')); });\n    d('@ember/routing/hash-location', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/hash-location', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/hash-location.js')); });\n    d('@ember/routing/history-location', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/history-location', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/history-location.js')); });\n    d('@ember/routing/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/index.js')); });\n    d('@ember/routing/lib/cache', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/lib/cache', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/lib/cache.js')); });\n    d('@ember/routing/lib/controller_for', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/lib/controller_for', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/lib/controller_for.js')); });\n    d('@ember/routing/lib/dsl', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/lib/dsl', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/lib/dsl.js')); });\n    d('@ember/routing/lib/generate_controller', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/lib/generate_controller', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/lib/generate_controller.js')); });\n    d('@ember/routing/lib/location-utils', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/lib/location-utils', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/lib/location-utils.js')); });\n    d('@ember/routing/lib/query_params', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/lib/query_params', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/lib/query_params.js')); });\n    d('@ember/routing/lib/router_state', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/lib/router_state', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/lib/router_state.js')); });\n    d('@ember/routing/lib/routing-service', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/lib/routing-service', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/lib/routing-service.js')); });\n    d('@ember/routing/lib/utils', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/lib/utils', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/lib/utils.js')); });\n    d('@ember/routing/none-location', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/none-location', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/none-location.js')); });\n    d('@ember/routing/route', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/route', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/route.js')); });\n    d('@ember/routing/router', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/router', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/router.js')); });\n    d('@ember/routing/router-service', [EAI_DISCOVERED_EXTERNALS_START, '@ember/routing/router-service', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/routing/router-service.js')); });\n    d('@ember/runloop/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/runloop/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/runloop/index.js')); });\n    d('@ember/service', [EAI_DISCOVERED_EXTERNALS_START, '@ember/service', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/service/index.js')); });\n    d('@ember/service/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/service/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/service/index.js')); });\n    d('@ember/template', [EAI_DISCOVERED_EXTERNALS_START, '@ember/template', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/template/index.js')); });\n    d('@ember/template-compilation/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/template-compilation/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/template-compilation/index.js')); });\n    d('@ember/template-factory', [EAI_DISCOVERED_EXTERNALS_START, '@ember/template-factory', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/template-factory/index.js')); });\n    d('@ember/template-factory/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/template-factory/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/template-factory/index.js')); });\n    d('@ember/template/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/template/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/template/index.js')); });\n    d('@ember/test-waiters', [EAI_DISCOVERED_EXTERNALS_START, '@ember/test-waiters', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@ember/test-waiters')); });\n    d('@ember/test/adapter', [EAI_DISCOVERED_EXTERNALS_START, '@ember/test/adapter', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/test/adapter.js')); });\n    d('@ember/test/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/test/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/test/index.js')); });\n    d('@ember/utils/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/utils/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/utils/index.js')); });\n    d('@ember/utils/lib/compare', [EAI_DISCOVERED_EXTERNALS_START, '@ember/utils/lib/compare', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/utils/lib/compare.js')); });\n    d('@ember/utils/lib/is_blank', [EAI_DISCOVERED_EXTERNALS_START, '@ember/utils/lib/is_blank', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/utils/lib/is_blank.js')); });\n    d('@ember/utils/lib/is_empty', [EAI_DISCOVERED_EXTERNALS_START, '@ember/utils/lib/is_empty', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/utils/lib/is_empty.js')); });\n    d('@ember/utils/lib/is_none', [EAI_DISCOVERED_EXTERNALS_START, '@ember/utils/lib/is_none', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/utils/lib/is_none.js')); });\n    d('@ember/utils/lib/is_present', [EAI_DISCOVERED_EXTERNALS_START, '@ember/utils/lib/is_present', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/utils/lib/is_present.js')); });\n    d('@ember/utils/lib/is-equal', [EAI_DISCOVERED_EXTERNALS_START, '@ember/utils/lib/is-equal', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/utils/lib/is-equal.js')); });\n    d('@ember/utils/lib/type-of', [EAI_DISCOVERED_EXTERNALS_START, '@ember/utils/lib/type-of', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/utils/lib/type-of.js')); });\n    d('@ember/version/index', [EAI_DISCOVERED_EXTERNALS_START, '@ember/version/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@ember/version/index.js')); });\n    d('@floating-ui/dom', [EAI_DISCOVERED_EXTERNALS_START, '@floating-ui/dom', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@floating-ui/dom')); });\n    d('@fortawesome/ember-fontawesome/components/fa-icon', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/ember-fontawesome/components/fa-icon', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/ember-fontawesome/components/fa-icon')); });\n    d('@fortawesome/fontawesome-svg-core', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/fontawesome-svg-core', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/fontawesome-svg-core')); });\n    d('@fortawesome/fontawesome-svg-core/styles.css', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/fontawesome-svg-core/styles.css', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/fontawesome-svg-core/styles.css')); });\n    d('@fortawesome/free-regular-svg-icons/faClipboard', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-regular-svg-icons/faClipboard', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-regular-svg-icons/faClipboard')); });\n    d('@fortawesome/free-regular-svg-icons/faCopy', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-regular-svg-icons/faCopy', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-regular-svg-icons/faCopy')); });\n    d('@fortawesome/free-solid-svg-icons/faAngleDown', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faAngleDown', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faAngleDown')); });\n    d('@fortawesome/free-solid-svg-icons/faAngleLeft', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faAngleLeft', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faAngleLeft')); });\n    d('@fortawesome/free-solid-svg-icons/faAngleRight', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faAngleRight', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faAngleRight')); });\n    d('@fortawesome/free-solid-svg-icons/faAnglesDown', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faAnglesDown', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faAnglesDown')); });\n    d('@fortawesome/free-solid-svg-icons/faAnglesUp', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faAnglesUp', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faAnglesUp')); });\n    d('@fortawesome/free-solid-svg-icons/faAngleUp', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faAngleUp', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faAngleUp')); });\n    d('@fortawesome/free-solid-svg-icons/faArrowDown', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faArrowDown', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faArrowDown')); });\n    d('@fortawesome/free-solid-svg-icons/faArrowDownWideShort', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faArrowDownWideShort', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faArrowDownWideShort')); });\n    d('@fortawesome/free-solid-svg-icons/faArrowLeft', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faArrowLeft', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faArrowLeft')); });\n    d('@fortawesome/free-solid-svg-icons/faArrowRight', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faArrowRight', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faArrowRight')); });\n    d('@fortawesome/free-solid-svg-icons/faArrowsRotate', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faArrowsRotate', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faArrowsRotate')); });\n    d('@fortawesome/free-solid-svg-icons/faArrowUp', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faArrowUp', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faArrowUp')); });\n    d('@fortawesome/free-solid-svg-icons/faArrowUpShortWide', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faArrowUpShortWide', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faArrowUpShortWide')); });\n    d('@fortawesome/free-solid-svg-icons/faBackward', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faBackward', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faBackward')); });\n    d('@fortawesome/free-solid-svg-icons/faBan', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faBan', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faBan')); });\n    d('@fortawesome/free-solid-svg-icons/faBars', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faBars', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faBars')); });\n    d('@fortawesome/free-solid-svg-icons/faBell', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faBell', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faBell')); });\n    d('@fortawesome/free-solid-svg-icons/faBroom', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faBroom', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faBroom')); });\n    d('@fortawesome/free-solid-svg-icons/faCheck', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faCheck', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faCheck')); });\n    d('@fortawesome/free-solid-svg-icons/faCircleCheck', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faCircleCheck', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faCircleCheck')); });\n    d('@fortawesome/free-solid-svg-icons/faCircleDot', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faCircleDot', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faCircleDot')); });\n    d('@fortawesome/free-solid-svg-icons/faCircleExclamation', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faCircleExclamation', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faCircleExclamation')); });\n    d('@fortawesome/free-solid-svg-icons/faCircleInfo', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faCircleInfo', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faCircleInfo')); });\n    d('@fortawesome/free-solid-svg-icons/faCirclePause', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faCirclePause', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faCirclePause')); });\n    d('@fortawesome/free-solid-svg-icons/faCircleQuestion', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faCircleQuestion', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faCircleQuestion')); });\n    d('@fortawesome/free-solid-svg-icons/faClock', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faClock', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faClock')); });\n    d('@fortawesome/free-solid-svg-icons/faClockRotateLeft', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faClockRotateLeft', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faClockRotateLeft')); });\n    d('@fortawesome/free-solid-svg-icons/faCompass', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faCompass', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faCompass')); });\n    d('@fortawesome/free-solid-svg-icons/faDownload', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faDownload', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faDownload')); });\n    d('@fortawesome/free-solid-svg-icons/faEye', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faEye', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faEye')); });\n    d('@fortawesome/free-solid-svg-icons/faEyeSlash', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faEyeSlash', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faEyeSlash')); });\n    d('@fortawesome/free-solid-svg-icons/faFlag', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faFlag', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faFlag')); });\n    d('@fortawesome/free-solid-svg-icons/faFlagCheckered', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faFlagCheckered', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faFlagCheckered')); });\n    d('@fortawesome/free-solid-svg-icons/faGear', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faGear', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faGear')); });\n    d('@fortawesome/free-solid-svg-icons/faGhost', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faGhost', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faGhost')); });\n    d('@fortawesome/free-solid-svg-icons/faHandPointer', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faHandPointer', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faHandPointer')); });\n    d('@fortawesome/free-solid-svg-icons/faHashtag', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faHashtag', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faHashtag')); });\n    d('@fortawesome/free-solid-svg-icons/faHeartCrack', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faHeartCrack', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faHeartCrack')); });\n    d('@fortawesome/free-solid-svg-icons/faHeartPulse', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faHeartPulse', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faHeartPulse')); });\n    d('@fortawesome/free-solid-svg-icons/faHourglassEnd', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faHourglassEnd', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faHourglassEnd')); });\n    d('@fortawesome/free-solid-svg-icons/faHourglassHalf', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faHourglassHalf', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faHourglassHalf')); });\n    d('@fortawesome/free-solid-svg-icons/faKey', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faKey', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faKey')); });\n    d('@fortawesome/free-solid-svg-icons/faList', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faList', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faList')); });\n    d('@fortawesome/free-solid-svg-icons/faLocationDot', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faLocationDot', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faLocationDot')); });\n    d('@fortawesome/free-solid-svg-icons/faLock', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faLock', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faLock')); });\n    d('@fortawesome/free-solid-svg-icons/faMagnifyingGlass', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faMagnifyingGlass', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faMagnifyingGlass')); });\n    d('@fortawesome/free-solid-svg-icons/faMagnifyingGlassMinus', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faMagnifyingGlassMinus', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faMagnifyingGlassMinus')); });\n    d('@fortawesome/free-solid-svg-icons/faMagnifyingGlassPlus', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faMagnifyingGlassPlus', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faMagnifyingGlassPlus')); });\n    d('@fortawesome/free-solid-svg-icons/faMap', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faMap', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faMap')); });\n    d('@fortawesome/free-solid-svg-icons/faMinus', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faMinus', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faMinus')); });\n    d('@fortawesome/free-solid-svg-icons/faPaperPlane', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faPaperPlane', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faPaperPlane')); });\n    d('@fortawesome/free-solid-svg-icons/faPen', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faPen', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faPen')); });\n    d('@fortawesome/free-solid-svg-icons/faPenToSquare', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faPenToSquare', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faPenToSquare')); });\n    d('@fortawesome/free-solid-svg-icons/faPersonRunning', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faPersonRunning', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faPersonRunning')); });\n    d('@fortawesome/free-solid-svg-icons/faPersonWalking', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faPersonWalking', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faPersonWalking')); });\n    d('@fortawesome/free-solid-svg-icons/faPlay', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faPlay', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faPlay')); });\n    d('@fortawesome/free-solid-svg-icons/faPlug', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faPlug', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faPlug')); });\n    d('@fortawesome/free-solid-svg-icons/faPlus', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faPlus', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faPlus')); });\n    d('@fortawesome/free-solid-svg-icons/faPowerOff', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faPowerOff', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faPowerOff')); });\n    d('@fortawesome/free-solid-svg-icons/faRightLeft', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faRightLeft', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faRightLeft')); });\n    d('@fortawesome/free-solid-svg-icons/faRotateLeft', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faRotateLeft', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faRotateLeft')); });\n    d('@fortawesome/free-solid-svg-icons/faRoute', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faRoute', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faRoute')); });\n    d('@fortawesome/free-solid-svg-icons/faServer', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faServer', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faServer')); });\n    d('@fortawesome/free-solid-svg-icons/faShieldHalved', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faShieldHalved', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faShieldHalved')); });\n    d('@fortawesome/free-solid-svg-icons/faShirt', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faShirt', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faShirt')); });\n    d('@fortawesome/free-solid-svg-icons/faShoePrints', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faShoePrints', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faShoePrints')); });\n    d('@fortawesome/free-solid-svg-icons/faShuffle', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faShuffle', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faShuffle')); });\n    d('@fortawesome/free-solid-svg-icons/faSkull', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faSkull', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faSkull')); });\n    d('@fortawesome/free-solid-svg-icons/faStairs', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faStairs', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faStairs')); });\n    d('@fortawesome/free-solid-svg-icons/faStop', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faStop', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faStop')); });\n    d('@fortawesome/free-solid-svg-icons/faTerminal', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faTerminal', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faTerminal')); });\n    d('@fortawesome/free-solid-svg-icons/faToggleOn', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faToggleOn', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faToggleOn')); });\n    d('@fortawesome/free-solid-svg-icons/faTowerBroadcast', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faTowerBroadcast', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faTowerBroadcast')); });\n    d('@fortawesome/free-solid-svg-icons/faTrash', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faTrash', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faTrash')); });\n    d('@fortawesome/free-solid-svg-icons/faTriangleExclamation', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faTriangleExclamation', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faTriangleExclamation')); });\n    d('@fortawesome/free-solid-svg-icons/faUser', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faUser', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faUser')); });\n    d('@fortawesome/free-solid-svg-icons/faUsers', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faUsers', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faUsers')); });\n    d('@fortawesome/free-solid-svg-icons/faWater', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faWater', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faWater')); });\n    d('@fortawesome/free-solid-svg-icons/faXmark', [EAI_DISCOVERED_EXTERNALS_START, '@fortawesome/free-solid-svg-icons/faXmark', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@fortawesome/free-solid-svg-icons/faXmark')); });\n    d('@glimmer/component', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/component', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('@glimmer/component')); });\n    d('@glimmer/destroyable/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/destroyable/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/destroyable/index.js')); });\n    d('@glimmer/encoder/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/encoder/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/encoder/index.js')); });\n    d('@glimmer/env/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/env/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/env/index.js')); });\n    d('@glimmer/global-context/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/global-context/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/global-context/index.js')); });\n    d('@glimmer/manager/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/manager/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/manager/index.js')); });\n    d('@glimmer/node/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/node/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/node/index.js')); });\n    d('@glimmer/opcode-compiler/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/opcode-compiler/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/opcode-compiler/index.js')); });\n    d('@glimmer/owner/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/owner/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/owner/index.js')); });\n    d('@glimmer/program/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/program/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/program/index.js')); });\n    d('@glimmer/reference/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/reference/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/reference/index.js')); });\n    d('@glimmer/runtime/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/runtime/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/runtime/index.js')); });\n    d('@glimmer/tracking', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/tracking', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/tracking/index.js')); });\n    d('@glimmer/tracking/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/tracking/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/tracking/index.js')); });\n    d('@glimmer/tracking/primitives/cache/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/tracking/primitives/cache/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/tracking/primitives/cache/index.js')); });\n    d('@glimmer/util/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/util/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/util/index.js')); });\n    d('@glimmer/validator/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/validator/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/validator/index.js')); });\n    d('@glimmer/vm/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/vm/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/vm/index.js')); });\n    d('@glimmer/wire-format/index', [EAI_DISCOVERED_EXTERNALS_START, '@glimmer/wire-format/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@glimmer/wire-format/index.js')); });\n    d('@simple-dom/document/index', [EAI_DISCOVERED_EXTERNALS_START, '@simple-dom/document/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/@simple-dom/document/index.js')); });\n    d('backburner.js/index', [EAI_DISCOVERED_EXTERNALS_START, 'backburner.js/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/backburner.js/index.js')); });\n    d('bootstrap', [EAI_DISCOVERED_EXTERNALS_START, 'bootstrap', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('bootstrap')); });\n    d('colord', [EAI_DISCOVERED_EXTERNALS_START, 'colord', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('colord')); });\n    d('colord/plugins/a11y', [EAI_DISCOVERED_EXTERNALS_START, 'colord/plugins/a11y', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('colord/plugins/a11y')); });\n    d('comlink', [EAI_DISCOVERED_EXTERNALS_START, 'comlink', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('comlink')); });\n    d('copy-to-clipboard', [EAI_DISCOVERED_EXTERNALS_START, 'copy-to-clipboard', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('copy-to-clipboard')); });\n    d('dag-map/index', [EAI_DISCOVERED_EXTERNALS_START, 'dag-map/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/dag-map/index.js')); });\n    d('ember-basic-dropdown/components/basic-dropdown', [EAI_DISCOVERED_EXTERNALS_START, 'ember-basic-dropdown/components/basic-dropdown', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-basic-dropdown/components/basic-dropdown')); });\n    d('ember-basic-dropdown/components/basic-dropdown-content', [EAI_DISCOVERED_EXTERNALS_START, 'ember-basic-dropdown/components/basic-dropdown-content', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-basic-dropdown/components/basic-dropdown-content')); });\n    d('ember-basic-dropdown/components/basic-dropdown-trigger', [EAI_DISCOVERED_EXTERNALS_START, 'ember-basic-dropdown/components/basic-dropdown-trigger', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-basic-dropdown/components/basic-dropdown-trigger')); });\n    d('ember-basic-dropdown/components/basic-dropdown-wormhole', [EAI_DISCOVERED_EXTERNALS_START, 'ember-basic-dropdown/components/basic-dropdown-wormhole', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-basic-dropdown/components/basic-dropdown-wormhole')); });\n    d('ember-basic-dropdown/modifiers/basic-dropdown-trigger', [EAI_DISCOVERED_EXTERNALS_START, 'ember-basic-dropdown/modifiers/basic-dropdown-trigger', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-basic-dropdown/modifiers/basic-dropdown-trigger')); });\n    d('ember-concurrency', [EAI_DISCOVERED_EXTERNALS_START, 'ember-concurrency', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-concurrency')); });\n    d('ember-concurrency/async-arrow-runtime', [EAI_DISCOVERED_EXTERNALS_START, 'ember-concurrency/async-arrow-runtime', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-concurrency/async-arrow-runtime')); });\n    d('ember-concurrency/helpers/cancel-all', [EAI_DISCOVERED_EXTERNALS_START, 'ember-concurrency/helpers/cancel-all', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-concurrency/helpers/cancel-all')); });\n    d('ember-concurrency/helpers/perform', [EAI_DISCOVERED_EXTERNALS_START, 'ember-concurrency/helpers/perform', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-concurrency/helpers/perform')); });\n    d('ember-concurrency/helpers/task', [EAI_DISCOVERED_EXTERNALS_START, 'ember-concurrency/helpers/task', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-concurrency/helpers/task')); });\n    d('ember-element-helper/helpers/element', [EAI_DISCOVERED_EXTERNALS_START, 'ember-element-helper/helpers/element', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-element-helper/helpers/element')); });\n    d('ember-intl/helpers/format-date', [EAI_DISCOVERED_EXTERNALS_START, 'ember-intl/helpers/format-date', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-intl/helpers/format-date')); });\n    d('ember-intl/helpers/format-date-range', [EAI_DISCOVERED_EXTERNALS_START, 'ember-intl/helpers/format-date-range', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-intl/helpers/format-date-range')); });\n    d('ember-intl/helpers/format-display-name', [EAI_DISCOVERED_EXTERNALS_START, 'ember-intl/helpers/format-display-name', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-intl/helpers/format-display-name')); });\n    d('ember-intl/helpers/format-list', [EAI_DISCOVERED_EXTERNALS_START, 'ember-intl/helpers/format-list', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-intl/helpers/format-list')); });\n    d('ember-intl/helpers/format-message', [EAI_DISCOVERED_EXTERNALS_START, 'ember-intl/helpers/format-message', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-intl/helpers/format-message')); });\n    d('ember-intl/helpers/format-number', [EAI_DISCOVERED_EXTERNALS_START, 'ember-intl/helpers/format-number', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-intl/helpers/format-number')); });\n    d('ember-intl/helpers/format-relative-time', [EAI_DISCOVERED_EXTERNALS_START, 'ember-intl/helpers/format-relative-time', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-intl/helpers/format-relative-time')); });\n    d('ember-intl/helpers/format-time', [EAI_DISCOVERED_EXTERNALS_START, 'ember-intl/helpers/format-time', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-intl/helpers/format-time')); });\n    d('ember-intl/helpers/t', [EAI_DISCOVERED_EXTERNALS_START, 'ember-intl/helpers/t', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-intl/helpers/t')); });\n    d('ember-intl/helpers/t-key', [EAI_DISCOVERED_EXTERNALS_START, 'ember-intl/helpers/t-key', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-intl/helpers/t-key')); });\n    d('ember-intl/services/intl', [EAI_DISCOVERED_EXTERNALS_START, 'ember-intl/services/intl', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-intl/services/intl')); });\n    d('ember-load-initializers', [EAI_DISCOVERED_EXTERNALS_START, 'ember-load-initializers', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-load-initializers')); });\n    d('ember-modifier', [EAI_DISCOVERED_EXTERNALS_START, 'ember-modifier', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-modifier')); });\n    d('ember-page-title/helpers/page-title', [EAI_DISCOVERED_EXTERNALS_START, 'ember-page-title/helpers/page-title', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-page-title/helpers/page-title')); });\n    d('ember-page-title/services/page-title', [EAI_DISCOVERED_EXTERNALS_START, 'ember-page-title/services/page-title', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-page-title/services/page-title')); });\n    d('ember-power-select/components/power-select', [EAI_DISCOVERED_EXTERNALS_START, 'ember-power-select/components/power-select', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-power-select/components/power-select')); });\n    d('ember-power-select/components/power-select/before-options', [EAI_DISCOVERED_EXTERNALS_START, 'ember-power-select/components/power-select/before-options', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-power-select/components/power-select/before-options')); });\n    d('ember-power-select/components/power-select/input', [EAI_DISCOVERED_EXTERNALS_START, 'ember-power-select/components/power-select/input', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-power-select/components/power-select/input')); });\n    d('ember-power-select/components/power-select/label', [EAI_DISCOVERED_EXTERNALS_START, 'ember-power-select/components/power-select/label', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-power-select/components/power-select/label')); });\n    d('ember-power-select/components/power-select/no-matches-message', [EAI_DISCOVERED_EXTERNALS_START, 'ember-power-select/components/power-select/no-matches-message', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-power-select/components/power-select/no-matches-message')); });\n    d('ember-power-select/components/power-select/options', [EAI_DISCOVERED_EXTERNALS_START, 'ember-power-select/components/power-select/options', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-power-select/components/power-select/options')); });\n    d('ember-power-select/components/power-select/placeholder', [EAI_DISCOVERED_EXTERNALS_START, 'ember-power-select/components/power-select/placeholder', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-power-select/components/power-select/placeholder')); });\n    d('ember-power-select/components/power-select/power-select-group', [EAI_DISCOVERED_EXTERNALS_START, 'ember-power-select/components/power-select/power-select-group', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-power-select/components/power-select/power-select-group')); });\n    d('ember-power-select/components/power-select/search-message', [EAI_DISCOVERED_EXTERNALS_START, 'ember-power-select/components/power-select/search-message', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-power-select/components/power-select/search-message')); });\n    d('ember-power-select/components/power-select/trigger', [EAI_DISCOVERED_EXTERNALS_START, 'ember-power-select/components/power-select/trigger', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-power-select/components/power-select/trigger')); });\n    d('ember-power-select/helpers/ember-power-select-is-array', [EAI_DISCOVERED_EXTERNALS_START, 'ember-power-select/helpers/ember-power-select-is-array', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-power-select/helpers/ember-power-select-is-array')); });\n    d('ember-power-select/helpers/ember-power-select-is-equal', [EAI_DISCOVERED_EXTERNALS_START, 'ember-power-select/helpers/ember-power-select-is-equal', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-power-select/helpers/ember-power-select-is-equal')); });\n    d('ember-power-select/helpers/ember-power-select-is-group', [EAI_DISCOVERED_EXTERNALS_START, 'ember-power-select/helpers/ember-power-select-is-group', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-power-select/helpers/ember-power-select-is-group')); });\n    d('ember-power-select/helpers/ember-power-select-is-selected-present', [EAI_DISCOVERED_EXTERNALS_START, 'ember-power-select/helpers/ember-power-select-is-selected-present', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-power-select/helpers/ember-power-select-is-selected-present')); });\n    d('ember-resolver', [EAI_DISCOVERED_EXTERNALS_START, 'ember-resolver', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-resolver')); });\n    d('ember-style-modifier/modifiers/style', [EAI_DISCOVERED_EXTERNALS_START, 'ember-style-modifier/modifiers/style', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-style-modifier/modifiers/style')); });\n    d('ember-truth-helpers/helpers/and', [EAI_DISCOVERED_EXTERNALS_START, 'ember-truth-helpers/helpers/and', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-truth-helpers/helpers/and')); });\n    d('ember-truth-helpers/helpers/eq', [EAI_DISCOVERED_EXTERNALS_START, 'ember-truth-helpers/helpers/eq', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-truth-helpers/helpers/eq')); });\n    d('ember-truth-helpers/helpers/gt', [EAI_DISCOVERED_EXTERNALS_START, 'ember-truth-helpers/helpers/gt', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-truth-helpers/helpers/gt')); });\n    d('ember-truth-helpers/helpers/gte', [EAI_DISCOVERED_EXTERNALS_START, 'ember-truth-helpers/helpers/gte', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-truth-helpers/helpers/gte')); });\n    d('ember-truth-helpers/helpers/is-array', [EAI_DISCOVERED_EXTERNALS_START, 'ember-truth-helpers/helpers/is-array', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-truth-helpers/helpers/is-array')); });\n    d('ember-truth-helpers/helpers/is-empty', [EAI_DISCOVERED_EXTERNALS_START, 'ember-truth-helpers/helpers/is-empty', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-truth-helpers/helpers/is-empty')); });\n    d('ember-truth-helpers/helpers/is-equal', [EAI_DISCOVERED_EXTERNALS_START, 'ember-truth-helpers/helpers/is-equal', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-truth-helpers/helpers/is-equal')); });\n    d('ember-truth-helpers/helpers/lt', [EAI_DISCOVERED_EXTERNALS_START, 'ember-truth-helpers/helpers/lt', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-truth-helpers/helpers/lt')); });\n    d('ember-truth-helpers/helpers/lte', [EAI_DISCOVERED_EXTERNALS_START, 'ember-truth-helpers/helpers/lte', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-truth-helpers/helpers/lte')); });\n    d('ember-truth-helpers/helpers/not', [EAI_DISCOVERED_EXTERNALS_START, 'ember-truth-helpers/helpers/not', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-truth-helpers/helpers/not')); });\n    d('ember-truth-helpers/helpers/not-eq', [EAI_DISCOVERED_EXTERNALS_START, 'ember-truth-helpers/helpers/not-eq', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-truth-helpers/helpers/not-eq')); });\n    d('ember-truth-helpers/helpers/or', [EAI_DISCOVERED_EXTERNALS_START, 'ember-truth-helpers/helpers/or', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-truth-helpers/helpers/or')); });\n    d('ember-truth-helpers/helpers/xor', [EAI_DISCOVERED_EXTERNALS_START, 'ember-truth-helpers/helpers/xor', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-truth-helpers/helpers/xor')); });\n    d('ember/version', [EAI_DISCOVERED_EXTERNALS_START, 'ember/version', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/ember/version.js')); });\n    d('lru-cache', [EAI_DISCOVERED_EXTERNALS_START, 'lru-cache', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('lru-cache')); });\n    d('route-recognizer/index', [EAI_DISCOVERED_EXTERNALS_START, 'route-recognizer/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/route-recognizer/index.js')); });\n    d('router_js/index', [EAI_DISCOVERED_EXTERNALS_START, 'router_js/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/router_js/index.js')); });\n    d('rsvp/index', [EAI_DISCOVERED_EXTERNALS_START, 'rsvp/index', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('ember-source/rsvp/index.js')); });\n    d('t2t-game-text', [EAI_DISCOVERED_EXTERNALS_START, 't2t-game-text', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('t2t-game-text')); });\n    d('t2t-quests-gui/utils/alias', [EAI_DISCOVERED_EXTERNALS_START, 't2t-quests-gui/utils/alias', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('t2t-quests-gui/utils/alias')); });\n    d('t2t-quests-gui/utils/commands', [EAI_DISCOVERED_EXTERNALS_START, 't2t-quests-gui/utils/commands', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('t2t-quests-gui/utils/commands')); });\n    d('t2t-quests-gui/utils/game-times', [EAI_DISCOVERED_EXTERNALS_START, 't2t-quests-gui/utils/game-times', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('t2t-quests-gui/utils/game-times')); });\n    d('t2t-quests-gui/utils/map-data', [EAI_DISCOVERED_EXTERNALS_START, 't2t-quests-gui/utils/map-data', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('t2t-quests-gui/utils/map-data')); });\n    d('t2t-quests-gui/utils/map-placement', [EAI_DISCOVERED_EXTERNALS_START, 't2t-quests-gui/utils/map-placement', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('t2t-quests-gui/utils/map-placement')); });\n    d('t2t-quests-gui/utils/regions', [EAI_DISCOVERED_EXTERNALS_START, 't2t-quests-gui/utils/regions', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('t2t-quests-gui/utils/regions')); });\n    d('t2t-quests-gui/utils/route-alias', [EAI_DISCOVERED_EXTERNALS_START, 't2t-quests-gui/utils/route-alias', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('t2t-quests-gui/utils/route-alias')); });\n    d('t2t-quests-gui/utils/route-rules', [EAI_DISCOVERED_EXTERNALS_START, 't2t-quests-gui/utils/route-rules', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('t2t-quests-gui/utils/route-rules')); });\n    d('t2t-quests-gui/utils/secrets', [EAI_DISCOVERED_EXTERNALS_START, 't2t-quests-gui/utils/secrets', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('t2t-quests-gui/utils/secrets')); });\n    d('t2t-quests-gui/utils/traveller', [EAI_DISCOVERED_EXTERNALS_START, 't2t-quests-gui/utils/traveller', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('t2t-quests-gui/utils/traveller')); });\n    d('t2t-quests-gui/workers/start-route-finder', [EAI_DISCOVERED_EXTERNALS_START, 't2t-quests-gui/workers/start-route-finder', EAI_DISCOVERED_EXTERNALS_END], function() { return esc(require('t2t-quests-gui/workers/start-route-finder')); });\n    d('_eai_dyn_@svgdotjs/svg.js', [], function() { return import('@svgdotjs/svg.js'); });\n    d('_eai_dyn_d3-quadtree', [], function() { return import('d3-quadtree'); });\n    d('_eai_dyn_d3-selection', [], function() { return import('d3-selection'); });\n    d('_eai_dyn_d3-transition', [], function() { return import('d3-transition'); });\n    d('_eai_dyn_d3-zoom', [], function() { return import('d3-zoom'); });\n})();\n"],"mappings":";;;AAKO,MAODA,EAAe;AAId,SAASC,EAAcC,GAC5B,MAAOC,GAAeD,EAChBE,EAAUC,OAAOL,EAAaM,KAAKH,GAAe,MAAM,IAAM;AAEpE,OADyC,IAApBD,EAASK,SAAiBJ,EAAYK,SAR9B,MAQ2DJ,GAXhD,GAYlBD,EAVI,MAUyBD,EAASO,KAT/B,IAU/B,CAGA,MAAMC,EAAqB,IAAIC,IAAI,CAAC,IAAK,OAAQ;AAI1C,SAASC,EAAWC,GACzB,OAAOC,OAAOD,GAAS,IAAIE,QAAQ,UAAW,IAAIC,MAAM,KAAKC,IAAIC,GAAQA,EAAKH,QAAQ,YAAa,IAAII,QAAQC,OAAOF,GAAiB,KAATA,GAAwB,OAATA,GAAeD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