Merge v2 into architect

This commit is contained in:
Frederic Jung 2026-10-30 08:01:42 +01:00
commit 235ff2f9b5
No known key found for this signature in database
83 changed files with 1847 additions and 1121 deletions

View file

@ -43,8 +43,8 @@ These are what the game promises, held up by `tests/gameplay-rules.test.js` (one
| Id | Rule | Why |
| --- | --- | --- |
| M1 | On-call is the classic game: it equals `RULE_DEF`, and a save without rules loads as On-call. The seeded suites (`tests/game.test.js`, `tests/rules.test.js`) are its behaviour. | Old saves never change under them. |
| M2 | Presets are ordered: Change Freeze never harsher than On-call, BGP at 3 a.m. never gentler (chaos, lead times, market, inbox; and a seeded year of incidents). | The names promise it. |
| M3 | Every subsystem that can annoy the player reads a rule: outages and events (`chaos`), DDoS, the peering inbox, sold-out routes, de-peering and hardware prices (`market`), lead times (`lead`), the clock. A quiet ruleset gives a quiet year. | Rules are presets of flags, not separate code. |
| M2 | Presets are ordered: Change Freeze never harsher than On-call, BGP at 3 a.m. never gentler (chaos, lead times, market; and a seeded year of incidents). | The names promise it. |
| M3 | Every subsystem that can annoy the player reads a rule: outages and events (`chaos`), DDoS, sold-out routes, de-peering and hardware prices (`market`), lead times (`lead`), the clock. A quiet ruleset gives a quiet year. | Rules are presets of flags, not separate code. |
| M4 | Scenarios and the weekly challenge always run On-call plus their own `S.scn.rules`. | Fair scores. |
| M5 | Sandbox has no locked feature: open gates, every level, own cables, endless money. | It is a sandbox. |
@ -62,3 +62,4 @@ These are what the game promises, held up by `tests/gameplay-rules.test.js` (one
| --- | --- | --- |
| F1 | A new network gets a gentle start: no outage before day 45, no event before day 40 and only good news before day 50, nothing sold out for 90 days, hardware prices hold for 180, and a new customer loses no mood for 15 days. | New players learn before they get punished. |
| F2 | On On-call, a simple build in a start city (broadband, the cheapest 100G transit, an exchange port with the route server) makes money within 3 months, in Frankfurt, New York, Singapore and Johannesburg. | Seeded today it turns a profit in month 1 or 2; a balance change that breaks this makes the start too hard. |
| F3 | A specialist path (#187) only brings a customer type in below its level when the network can already serve it, or nearly: the spotted cities have POPs, the latency is met, the fiber carries at least three quarters of the smallest order. | Capability, not luck: an offer you cannot fulfil with a reasonable build is a trap. |

View file

@ -8,13 +8,19 @@ All notable changes to this project are documented here. The project follows
## [2.0.0] — 2026-10-29
- The peering inbox is gone: your peering policy now answers every peering request for you. Open accepts everyone, Selective accepts small networks on the exchange and newcomers with an up-to-date PeeringDB and quietly declines the rest, and Closed declines them all; once a week the NOC log sums it up, like "Peering desk: 7 new sessions at DE-KICKS and HAMS-IX, 3 declined (Selective)". Max-prefix alerts, the button that raised every limit at once, max-prefix outages at exchanges, your peering reputation and the Large Peering Model are gone too. The policy picker sits in the Networks tab, saved games keep their policy, and a game that hired the AI simply stops paying for it.
- Scenario tuning: every handmade scenario now asks for what its story is about, with shorter clocks where it was won in a tenth of the time. Mind the Gap, Cape to Cairo and Order and Progress count cities and IX.brrr ports only when your network joins them up; Fibre to the Basement also wants 500 Gbps served; in Anchors Away nobody sells transit in Tallinn and ships really do drag their anchors over the Baltic links, while the Great Firewall's losses no longer break your 99.5% streak; in the Cogentle Spat, Goggle wants a lot more of your traffic before it peers; Flood Season's terabit floods count when your scrubbing or Flowspec took them; Stepping Stones and Mid-Atlantic Accent start with 5M, enough to light the whole 1.6T chain. Gangnam Style Peering is now really about sender pays: Seoul transit carries a fee on every Gbps, the three incumbents only peer over a paid PNI, and Korean users notice every millisecond, so you win by hauling cheap Tokyo transit while keeping Seoul fast and in profit.
- Customers now call when your network can already serve them, not only when your level says so (#187). A fast path between two finance cities brings trading firms, lit dark fiber brings AI interconnects, two diverse paths in one country bring sovereign clouds and broadband in a big city brings cloud gaming, each at its smallest size and with a note on what they spotted; your level still makes them bigger and more frequent.
- Routers, line systems and optics one level above yours can be had early as a vendor demo unit (#187). Ask the vendor, wait about two weeks, then pay 60% over list until your level catches up; and you can dig your own dark fiber from level 2 as a pioneer, at 60% more than the level 3 price.
- Take a seat on a new consortium subsea cable (#173). Capacity conferences offer them, and now and then a consortium calls from level 2: pay your share of the build, wait for the ship, then own one, two or four fiber pairs and light them with your own optics, your way onto your own subsea glass before Tier 1. A cut on that cable cuts your pairs too.
- Pick a charter in your first month of a Normal game: Global backbone (the game as you know it, and the default) or Low-latency boutique (#187). The boutique gets more trading firms, pays them 40% more and has its own win, Speed of Light: beat the fastest leased latency on three finance routes with your own glass while two latency customers pay you. It comes with a badge and shows on your share card.
- A new start screen with four doors: Puzzles, Sandbox, Normal, and Scenarios & weekly. Every network now picks its rules when it starts, and they stay locked for that network; your saved games carry on exactly as before.
- Puzzles: small networks that carry real traffic, routed exactly like the main game (#190). Each puzzle has flows to deliver (eyeballs pulling from a content origin, circuits between two cities with a latency cap, best-effort traffic that may drop), and the map shows every link's load as it fills. Earn up to three stars: everything delivered, under budget, and still delivered when any single trench or cable is cut. Build with the real tools: link sizes from 10G to 800G, parallel links in the same trench or on a diverse route (also from the link panel), routers with real ports and limits, routing metrics, standby, lowest-latency paths for circuits, and the redundancy check. The whole world is open: any city can get a POP if it helps. Parallel links show their count and sizes, and selecting a city lights up every path it has. Eighteen puzzles in five packs, each teaching one idea: Fat Pipes, Router Rodeo, Traffic Cops, N-1 Club and Grand Tour. No clock, no bills, nothing breaks, and your main game is never touched.
- A new weekly puzzle every Sunday morning, the same for everyone: a themed puzzle with its own traffic, such as an ocean crossing, a ring, a latency sprint, island hopping or a detour around a busy hub, with its own name and a budget tuned so three stars take a smart design. The Puzzles door says "New this Sunday!" until you have played it, the list counts down to the next one, and your streak and share line use the week's name. A new puzzle week starts on Sunday at 06:00 Berlin time; offline, the game still has a weekly puzzle of its own.
- A new weekly scenario every Sunday morning too, the same for everyone: a themed crisis such as a cut cable, a peering spat, a big event, a flood week, island hopping, a race for low latency, a push across a continent or a shoestring budget, in about a year of game days. It sits at the top of Scenarios & weekly with a countdown and a "New this Sunday!" badge, has its own goal and progress card, a par to beat, a weekly streak and a result line to share. Offline, the classic weekly challenge stands in.
- Hire a NOC intern and give them standing orders: from customer level 2, Kevin from the night shift, Anycast Annie or Tracy Route runs your rules once a game day and pays exactly what your own clicks would. Keep transit above a multiple of its peak, add or swap routers above a load, take free caches, peer at every IX and PNI with the big networks every week, sign ready customers and decline tiny ones, rush repairs, light more fiber and retire small parallel waves. Each order has a pause switch, its own settings, a monthly budget and per-POP exceptions, never breaks a customer's or a bank's transit requirement, and shows what it adds to your monthly bill. The Ops sheet opens with the intern's mood and a weekly shift report, which is also the one notice a week the intern leaves in the NOC (#98, #100, #102, #181, #185, #192, #177).
- Tier 1 now works like the real thing: peer with the Tier 1 club and their customers come along for free (#85). A PNI or an exchange session reaches the networks you peer with and everyone who buys transit from them, so you no longer chase every tiny ISP for the win; only networks that buy transit from nobody, like the content giants and the big incumbents, still need peering of their own. Small networks and more real eyeball ISPs now buy transit from real-world upstreams, a peer's customers are tried after your direct peers and before transit (so peering widely still pays), the traceroute shows the hand-off, and the Road to Tier 1 card counts who already comes along. Games already won stay won.
- Normal comes in three flavours. Change Freeze has a third of the outages and no DDoS floods, delivers PNIs, cross-connects and builds in days instead of months (#151), and skips the peering inbox, hardware shortages, sold-out routes and de-peering at exchanges. On-call is the classic game. BGP at 3 a.m. brings almost twice the outages, lasting half as long again, and twice the DDoS. The HUD and the share card show which one you picked.
- Normal comes in three flavours. Change Freeze has a third of the outages and no DDoS floods, delivers PNIs, cross-connects and builds in days instead of months (#151), and skips hardware shortages, sold-out routes and de-peering at exchanges. On-call is the classic game. BGP at 3 a.m. brings almost twice the outages, lasting half as long again, and twice the DDoS. The HUD and the share card show which one you picked.
- Sandbox is a real sandbox now (#188): everything is unlocked from day one, your own subsea cable included, money never runs out, deliveries are quick, and you pick how much chaos you want, from none to spicy.
- Keep several networks on one device, and play two of them side by side in two browser windows. The title screen lists your networks, newest first, with their day, tier, cash and when you last played; tap one to continue it, or use ⋯ to export or delete it. Starting a scenario, the weekly challenge or a new network, or importing a save, now adds a network instead of replacing the one you have, and you can rename a network from the menu. Each window remembers its own network when you reload it. If a network is already open in another window, you can switch to it or take it over, and the other window steps aside instead of both saving over each other. Your existing save carries on as your first network.
- Badges now come in variants: games under the Change Freeze rules earn frosted Freeze-dried badges, and games under BGP at 3 a.m. earn fiery ones worth bragging about. Earning a badge under harder rules than before upgrades it in your collection on this device, and the badge list counts how many of each kind you have. On-call games earn the standard badges; Sandbox and puzzles earn none.
@ -49,6 +55,8 @@ All notable changes to this project are documented here. The project follows
- When a new release changes prices so that this week's or a coming week's puzzle no longer adds up, that puzzle gets a fair new budget, and only its stars start again. Weeks that are over keep theirs.
- The Networks list shows 100 networks at a time, with a button for the rest, so it opens quickly now that every country has its own networks.
- A tidier start screen: language first, then your network's name, the doors, three compact difficulty buttons with the chosen one explained below, and one drop-down for your home city with the five suggested homes at the top.
- Pick your own AS number next to your network's name when you start (#135). Leave it empty and the game picks one, and the round green arrow in the name box suggests another name.
- Every network in a POP's PNI list now shows how you reach it today and whether a PNI there is worth the cross-connect (#175, #172). A chip says PNI here (with size and load), PNI elsewhere, which exchanges you peer at, whose customer cone carries it, transit only or not reached; a value line shows how much of its traffic leaves from that POP over transit, exchanges or other PNIs, and what a PNI there would save or cost a month. The best candidates get a ⭐ Worth it tag, the list sorts them first, filters to All, Via transit, Worth it or Already PNI, and groups networks by type, with idle groups folded. The same chip shows in the Networks tab and in the bulk PNI preview.
## [1.37.0] — 2026-10-28

View file

@ -30,7 +30,7 @@ hoisted across files, and top-level statements run in path order. Find code by n
| `40-progress/` | Customer types (`BIZ_T`), `LEVELS` and their requirements, `GOALS`; the per-save ruleset (`S.rules`, `rule()`, `PRESETS`, `chaosMul()`, `leadDays()`) |
| `50-state.js` | The globals `S`, `R`, `UI`; `emptyR()` |
| `60-features/` | Banks and loans, scenarios and the weekly challenge, puzzles and the published weekly puzzle, conferences, the tutorial, traceroute, the share card, `newGame()`, the offer trial (`autoOffer()`), standing orders (`S.ops`, `opsDay()`, run from `dayTick()`) |
| `70-rules/` | Formatting helpers and market rules: exchanges, PNIs, the peering inbox, peering policy and snubs, DE-KICKS, sold-out routes, hot ports and the Tier 1/2/3 rank |
| `70-rules/` | Formatting helpers and market rules: exchanges, PNIs, the peering desk (requests answered by policy), peering policy and snubs, DE-KICKS, sold-out routes, hot ports and the Tier 1/2/3 rank |
| `80-simulation/` | Dijkstra, RouteScript, `compute()`, monthly prices, `sanitize()`/`migrate()`, customer requirements, events, geography pricing and latency, second sites and service |
| `85-incidents/` | `addInc()`, DDoS and scrubbing, `fireFailure()`, `clearInc()`, `fireEvent()` |
| `88-days/` | `dayTick()`, new offers, badges, `checkGoals()` |

View file

@ -35,7 +35,7 @@ fell back to English. Long sentences as keys made dictionary diffs hard to read
- **`npm run i18n:check`** verifies that every label used in `src/` is defined in English, every
English label is used, every translation keeps its English's placeholders, HTML tags and plural forms,
and every dictionary is sorted.
- **Saves:** a few things in a save hold text to show later (the peering inbox log, sold-out reasons,
- **Saves:** a few things in a save hold text to show later (sold-out reasons,
attack names). New saves hold labels. Saves from before labels (1.34 and older) hold the English text; `tr()` maps it
back to its label the first time it sees one, so old saves still show the player's language.
- **Translators** read `src/i18n/en.js` next to their file; both are sorted by the same labels, so the

View file

@ -6,7 +6,7 @@
// static markup, in the inlined English and in every translation file, and the page ends up about the
// size it was when the English text itself was the key.
//
// Labels passed to N_() are kept whole: those are the ones the game stores (in saves, in the inbox log)
// Labels passed to N_() are kept whole: those are the ones the game stores (in saves)
// and shows later, and an id would mean something else in the next release.
const { CALL } = require('../legacy/labels');
const D = require('./dict');

View file

@ -0,0 +1,75 @@
// The reference player for the handmade scenarios (tests/scenarios-playtest.test.js), the sibling of scenario-bot.js
// (which plays the weekly ones). It plays inside the real game, headless, through the game's own actions, one plan
// step at a time whenever the bank allows it, plus the upkeep a careful human does every week: hot waves a size up, hot
// transit and exchange ports a LAG member, new peers at every exchange, routers before they fill.
//
// A plan is a list of steps, each [op, ...args]:
// ['bb', c] POP and broadband ['tr', c, tier] the cheapest transit there ['ix', c, tier] every exchange
// ['pop', c] a POP only ['link', a, b, tier, cable] a wave (routers upgraded first, a swap a day)
// ['hire', orders, params] the NOC intern on standing orders, as soon as the level allows
// ['wait', day] until that day ['served', g] until g Gbps are served ['prep', c, g] capacity for an event
// ['scrub', c, tier] a scrubbing center ['pnis'] a PNI with every unreached network that takes one
// ['pni', c, net, tier] one PNI with that network there ['last', c] transit there only as a last resort
// ['loans'] take every loan the banks offer, from now on (the cheese plans)
const REF = String.raw`(()=>{
const Q=window.__ref={log:[]};
const quiet=f=>{const t=window.toast;window.toast=()=>{};try{return f();}finally{window.toast=t;}};
Q.reserve=()=>Math.max(40000,1.3*(R.costMo||0));
Q.can=x=>S.cash>=x+Q.reserve();
Q.cheap=c=>NETS.filter(n=>n.price&&sellsAt(n,c)&&!(Q.avoid||[]).includes(n.id)&&!S.transit.some(t=>t.city===c&&t.net===n.id)).sort((a,b)=>a.price*netMult(a,c)-b.price*netMult(b,c))[0];
Q.pop=c=>{if(!S.pops[c])ACT.buildPop({city:c});return !!S.pops[c];};
Q.bb=c=>{Q.pop(c);if(S.pops[c]&&!S.pops[c].bb)ACT.launchBB({city:c});return !!(S.pops[c]&&S.pops[c].bb);};
Q.tr=(c,tier=1)=>{Q.pop(c);const n=Q.cheap(c);if(!n)return true;ACT.buyTransit({city:c,net:n.id,tier});return true;};
Q.last=c=>{for(const t of S.transit)if(t.city===c)ACT.setPref({kind:'t',id:t.id,v:'low'});return true;};
Q.ix=(c,tier=1)=>{if(!S.pops[c])return false;for(const x of ixIdsIn(c)){if(!ixName(x))continue;if(S.ixp[x]===undefined)ACT.buyIx({city:x,tier,signed:true});if(S.ixp[x]===undefined)continue;if(!S.rs[x])ACT.rs({city:x});ACT.peerAll({city:x});}return true;};
// A wave: big waves need big routers at both ends, and a router swap takes a day, so the step waits (null) until they fit.
Q.link=(a,b,tier=1,via)=>{for(const c of [a,b])Q.pop(c);if(!S.pops[a]||!S.pops[b])return false;
for(const c of [a,b])for(let k=0;k<4&&!waveOk(a,b,tier);k++){const g0=S.pops[c].rgen||0;ACT.upRouter({city:c});if((S.pops[c].rgen||0)===g0)break;}
if(!waveOk(a,b,tier))return null;const n0=S.links.length;UI.via=via||null;UI.route=null;openLinkModal(a,b);ACT.buildLink({tier});closeModal();return S.links.length>n0;};
Q.hire=(orders,par)=>{Q.wantHire=[orders||['transit','routers','repair'],par||{}];return true;};
Q.hire0=(orders,par)=>{if(!opsCanHire()||!Q.can(20000))return false;if(!opsHired()){ACT.opsHire({id:'kevin'});closeModal();}if(!opsHired())return false;
for(const k of orders)if(!S.ops.on[k])ACT.opsToggle({k});for(const k in par)for(const [p,v] of Object.entries(par[k]))for(let i=0;i<8&&opsP(k,p)!==v;i++)ACT.opsParam({k,p});closeModal();return true;};
Q.pnis=(tier=0)=>{for(const n of NETS.filter(n=>!R.reachable[n.id]).sort((a,b)=>NSH[b.id]-NSH[a.id])){const b=pniBatch(n.id,tier);if(!b||!b.orders.length||!Q.can(b.cost))continue;ACT.pniAll({net:n.id,tier});}return true;};
Q.pni=(c,net,tier=0)=>{if(!S.pni.some(p=>p.city===c&&p.net===net))ACT.pni({city:c,net,tier});closeModal();return S.pni.some(p=>p.city===c&&p.net===net);};
Q.scrub=(c,tier=0)=>{ACT.buildScrub({city:c,tier});return true;};
Q.loans=()=>{Q.loan=true;return true;};
Q.served=g=>R.served>=g||null;
Q.wait=d=>S.day>=d||null;
// Before an event: transit for the event on top of the usual peak, and routers that can take it.
Q.prep=(c,g)=>{const need=(S.stats.peak||R.served||0)*1.2+g*1.15,cap=()=>S.transit.filter(t=>t.city===c).reduce((a,t)=>a+PORT[t.tier].g*(t.n||1),0);
for(let k=0;k<12&&cap()<need;k++){const t=S.transit.filter(t=>t.city===c).sort((a,b)=>PORT[a.tier].g*(a.n||1)-PORT[b.tier].g*(b.n||1))[0];if(!t)break;const c0=cap();
if(t.tier<PORT.length-1&&PORT[t.tier+1].g>=need/4&&portOk(c,t.tier+1))ACT.buyTransit({city:c,net:t.net,tier:t.tier+1});else ACT.lagT({id:t.id,d:1});
if(cap()===c0){if(t.tier<PORT.length-1&&!portOk(c,t.tier+1))ACT.upRouter({city:c});else break;}}
for(let k=0;k<4;k++){const p=S.pops[c];if(!p||(p.routers||1)>=RMAX)break;const r0=p.routers||1;ACT.addRouter({city:c});if((p.routers||1)===r0)break;}return true;};
Q.est={pop:c=>S.pops[c]?0:popCost(c),bb:c=>(S.pops[c]?0:popCost(c))+bbCost(c),tr:()=>20000,pni:()=>20000,ix:()=>25000,hire:()=>0,scrub:(c,t)=>SCRUB_TIERS[t||0].cost,
link:(a,b,t)=>(S.pops[a]?0:popCost(a))+(S.pops[b]?0:popCost(b))+waveMo(kmBetween(a,b),isSub(a,b),t)*2+20000};
Q.upkeep=()=>{
for(const l of S.links){if(l.kind!=='wave'||l.tier>=LT.length-1||linkDown(l)||(R.load[l.id]||0)<LT[l.tier].g*0.75)continue;
if(!waveOk(l.a,l.b,l.tier+1))for(const c of [l.a,l.b])if(!waveOk(l.a,l.b,l.tier+1)&&Q.can(80000))ACT.upRouter({city:c});
if(Q.can(Math.round(waveMo(l.km,l.sub,l.tier+1)*(l.mult||1))*2))ACT.upLink({id:l.id,tier:l.tier+1});}
for(const x in S.ixp)if(!(S.myIx&&S.myIx[x]))ACT.peerAll({city:x});
if(!(opsHired()&&S.ops.on.transit))for(const t of S.transit.slice()){const u=(R.useT&&R.useT[t.id])||0,cap=lagCap(PORT[t.tier].g,t.n);if(u<cap*0.75)continue;
if((t.n||1)<2||t.tier>=PORT.length-1||!portOk(t.city,t.tier+1)){if(Q.can(PORT[t.tier].setup+20000))ACT.lagT({id:t.id,d:1});if(lagCap(PORT[t.tier].g,t.n)===cap&&Q.can(80000))ACT.upRouter({city:t.city});}
else if(Q.can(PORT[t.tier+1].setup+30000))ACT.buyTransit({city:t.city,net:t.net,tier:t.tier+1});}
for(const x in S.ixp){if(S.myIx&&S.myIx[x])continue;const u=(R.useIx&&R.useIx[x])||0;if(u>=lagCap(PORT[S.ixp[x]].g,(S.ixn||{})[x])*0.75&&Q.can(30000))ACT.lagIx({city:x,d:1});}
if(!(opsHired()&&S.ops.on.routers))for(const c in S.pops){if((R.nodeLoad[c]||0)/(R.nodeCap[c]||nodeCap(c)||1)>0.8&&Q.can(80000)){if((S.pops[c].routers||1)<2)ACT.addRouter({city:c});else ACT.upRouter({city:c});}}};
Q.step=()=>{for(let k=0;k<6;k++){const s=Q.steps[Q.i];if(!s)return;const [op,...a]=s;
if(Q.est[op]&&!Q.can(Q.est[op](...a)))return;const ok=Q[op](...a);if(ok===null)return;Q.log.push(S.day+' '+op+' '+a.join(',')+(ok?'':' (failed)'));Q.i++;}};
Q.day=()=>quiet(()=>{if(Q.wantHire&&Q.hire0(...Q.wantHire)){Q.log.push(S.day+' hired');Q.wantHire=null;}
if(Q.loan)for(const o of (S.loanOffers||[]).slice())ACT.takeLoan({id:o.id});closeModal();
Q.step();if(S.day%7===0)Q.upkeep();});
Q.start=(steps,o={})=>quiet(()=>{Q.steps=steps;Q.i=0;Q.avoid=o.avoid||[];Q.step();});
})()`;
// Starts scenario `id` (with `seed`, or its own), plays `plan` for up to `days` days (default: the scenario's), and
// returns the day it was won (or null), whether the network went broke, and the end state.
function play(ev, id, plan, { seed, days, avoid } = {}) {
ev(`localStorage.removeItem('sot-scn');beginGame('Ref',SCN.find(x=>x.id==='${id}').city,{scn:SCN.find(x=>x.id==='${id}')${seed ? ',seed:' + seed : ''}});if(UI.pendGame)ACT.pitchSkip();UI.speed=0;closeModal()`);
if (ev('typeof __ref') === 'undefined') ev(REF);
ev(`__ref.start(${JSON.stringify(plan)},${JSON.stringify({ avoid })})`);
const n = days || ev('S.scn.days');
return JSON.parse(ev(`(()=>{let won=null;for(let i=0;i<${n};i++){__ref.day();dayTick();closeModal();if(S.scn.done){won=S.scn.done;break;}if(S.lost||S.scn.failed)break;}
return JSON.stringify({won,lost:!!S.lost,day:S.day,limit:S.scn.days,cash:Math.round(S.cash),served:Math.round(R.served)});})()`));
}
module.exports = { REF, play };

View file

@ -757,6 +757,7 @@
"city_panel.second_site_and_metro_ring":"Zweiter Standort und Metro-Ring",
"city_panel.sell_internet_to_homes_here_starts":"Verkauf hier Internet an Haushalte. Startet bei etwa {start} und wächst Richtung {max}, solange der Service gut ist. Bringt jeden Monat {rate} pro ausgeliefertem Gbps.",
"city_panel.sells_pnis_down_to_1g":"verkauft PNIs ab 1G",
"city_panel.sender_pays_fee_per_gbps":"Sender zahlt: +{fee} pro Gbps Transit",
"city_panel.served_in_city":"Ausgeliefert in {city}",
"city_panel.serving_v":"liefert {v}",
"city_panel.shut_this_pop_down_its_links":"Diesen POP abschalten: Seine Links, Ports und Caches fallen mit weg, und allen Kunden, die davon abhängen, wird gekündigt. Dafür zahlst du eine Vertragsstrafe.",
@ -808,7 +809,6 @@
"common.aug":"Aug",
"common.auto":"Auto",
"common.auto_enrolled":"automatisch gebucht",
"common.average":"Durchschnitt",
"common.avoid":"Meiden",
"common.back":"Zurück",
"common.back_to_the_map":"Zurück zur Karte",
@ -824,7 +824,6 @@
"common.bgp_hijack":"BGP-Hijack",
"common.bgp_sessions":"BGP-Sessions",
"common.big_league":"Erste Liga",
"common.black_hole":"Schwarzes Loch",
"common.blitz":"Blitz",
"common.boot_time":"Bootzeit",
"common.boot_times":"Bootzeiten",
@ -832,7 +831,6 @@
"common.box_6ee3":"− Box",
"common.build_time":"Bauzeit",
"common.building":"im Bau",
"common.bumped":"verdrängt",
"common.bunker_two":"Bunker Zwei",
"common.busiest_links":"Meistgenutzte Links",
"common.business_customers":"Geschäftskunden",
@ -994,8 +992,6 @@
"common.import_a_save":"Spielstand importieren",
"common.in_progress":"läuft",
"common.in_use":"Belegt",
"common.inbox":"Posteingang",
"common.inbox_zero":"Inbox Zero.",
"common.incident":"Störung",
"common.incidents":"Störungen",
"common.incidents_survived":"Überstandene Störungen",
@ -1123,7 +1119,6 @@
"common.oops":"Hoppla",
"common.open":"Öffnen",
"common.open_bank":"Bank öffnen",
"common.open_inbox":"Posteingang öffnen",
"common.open_infra":"Infra öffnen",
"common.open_lease":"Miete öffnen",
"common.open_noc":"NOC öffnen",
@ -1148,7 +1143,6 @@
"common.peered_ce2f":"Gepeert ✓",
"common.peering":"Peering",
"common.peering_first":"Peering First",
"common.peering_inbox":"Peering-Posteingang",
"common.peering_policy":"Peering-Policy",
"common.peering_ratio":"Peering-Quote",
"common.peering_spat":"Peering-Streit",
@ -1197,7 +1191,6 @@
"common.remove_port":"Port entfernen",
"common.remove_script":"Skript entfernen",
"common.request":"Anfragen",
"common.responsive":"Reagiert",
"common.resume":"Fortsetzen",
"common.retention_offer":"Halteangebot",
"common.revenue":"Umsatz",
@ -1303,7 +1296,6 @@
"common.to":"Nach",
"common.toaster_wrangler":"Toaster-Bändiger",
"common.today":"Heute",
"common.today_4203":"heute",
"common.toggle_sound":"Sound an/aus",
"common.too_far_for_this_cable":"zu weit für dieses Kabel",
"common.traceroute":"Traceroute",
@ -1365,7 +1357,6 @@
"common.your_network":"Dein Netz",
"common.your_pop":"Dein POP",
"common.your_pops":"Deine POPs",
"common.your_reputation":"Dein Ruf",
"common.zombie_route":"Zombie-Route",
"compute.attack_hauled_to_scrubbing_in_city":"Angriff zum Scrubbing nach {city} geschleppt",
"compute.courtesy_route_to_new_networks":"Gefälligkeits-Route zu neuen Netzen",
@ -1612,8 +1603,6 @@
"failures.a_kilometre_of_copper_went_missing":"Ein Kilometer „Kupfer“ ist aus deinem Graben {a}–{b} verschwunden. Es war deine Glasfaser. Der Schrotthändler hat sie mit einem Zettel zurückgeschickt.",
"failures.a_landslide_in_the_andes_buried":"Ein Erdrutsch in den Anden hat deine Glasfaser {a}–{b} verschüttet.",
"failures.a_llama_herd_trampled_the_fiber":"Eine Lamaherde hat die Glasfasermarkierung an {a}–{b} niedergetrampelt. Dann hat ein Bagger die Glasfaser gefunden.",
"failures.a_member_at_ix_leaked_the":"Ein Mitglied am {ix} hat die komplette Routing-Tabelle in den Route Server geleakt. Überall haben Max-Prefix-Limits ausgelöst. Dein Peering dort ist down.",
"failures.a_member_at_ix_leaked_the_5563":"Ein Mitglied am {ix} hat die komplette Routing-Tabelle in den Route Server geleakt. Überall haben Max-Prefix-Limits ausgelöst. Dein Peering dort, in {city}, ist down.",
"failures.a_new_tech_in_a_tidied":"Ein neuer Techniker in {a} hat das Kabelchaos „aufgeräumt“. Dein Link {a}–{b} gehörte zum Chaos.",
"failures.a_new_tech_in_city_used":"Ein neuer Techniker in {city} hat Vegemite als Wärmeleitpaste benutzt. Es leitet Geschmack, nicht Wärme, und dein Router ist gar geworden.",
"failures.a_optic_on_a_b_overheated":"Eine {optic} auf {a}–{b} ist überhitzt und jetzt ein sehr teurer Schlüsselanhänger.",
@ -1680,7 +1669,6 @@
"failures.load_shedding_stage_n_in_city":"Lastabwurf Stufe {n} in {city}, und du hast keinen Generator. Kauf einen: Hier ist das nicht optional.",
"failures.load_shedding_took_out_site_in":"Lastabwurf hat {site} in {city} lahmgelegt. {other} lief weiter, also arbeitet der POP mit halber Kapazität. Alles, was nur am dunklen Standort angeschlossen ist, ist offline.",
"failures.magpie_swooping_season_the_field":"Elstern-Angriffssaison: Die Techniker an {a}–{b} verlassen den Transporter nicht, und deine Glasfaser bleibt durchtrennt.",
"failures.max_prefix_meltdown":"Max-Prefix-Kernschmelze",
"failures.metro_ring_cut":"Metro-Ring gekappt",
"failures.microbursts_on_a_b_overflow_shallow":"Microbursts auf {a}–{b} lassen flache Router-Buffer überlaufen: 0,5 % Verlust zur Spitzenzeit, und jeder Videocall merkt es.",
"failures.microbursts_on_a_b_your_deep":"<b>Microbursts auf {a}–{b}.</b><br>Deine Router mit tiefen Buffern haben sie aufgesaugt. Niemand hat was gemerkt.",
@ -1772,7 +1760,6 @@
"fiber_and_hardware.those_optics_need_the_regen_site":"<b>Diese Optiken brauchen den Regen-Standort.</b><br>Entferne zuerst die Langstreckenkanäle oder behalte den Standort.",
"fiber_modals.a_fiber_pair_of_your_own":"Ein eigenes Faserpaar. Das Glas ist billig, die Technik nicht: Du kaufst ein Line System mit einem Verstärker alle {km} km und dann Optiken für jeden Kanal. Deine Technik kann ausfallen, und du reparierst sie.",
"fiber_modals.a_fiber_pair_on_cable_km":"Ein Faserpaar auf {cable}, {km} km. Es teilt sich das Kabel mit den Waves aller anderen, Anker inklusive.",
"fiber_modals.build_your_own_level_3":"Selbst bauen <small>Level 3</small>",
"fiber_modals.build_your_own_price_n_days":"Selbst bauen <small>{price} · ~{n} Tage</small>",
"fiber_modals.dark_fiber_across_the_chinese_border":"Dark Fiber über die chinesische Grenze ist nicht zu haben. Kauf stattdessen eine grenzüberschreitende Wave.",
"fiber_modals.dark_fiber_unlocks_at_customer_level":"Dark Fiber wird ab Kundenlevel 2 freigeschaltet. Du brauchst die Größe, damit sich eigene optische Technik lohnt.",
@ -1796,11 +1783,8 @@
"fiber_modals.your_pop_needs_a_fabric_port":"Dein POP · braucht dort einen Fabric-Port",
"game_and_settings.delete_and_start_over":"Löschen und neu anfangen",
"game_and_settings.export_save_download_a_file":"Spielstand exportieren <small>Datei herunterladen</small>",
"game_and_settings.import_a_save_from_a_file":"Spielstand importieren <small>aus einer Datei</small>",
"game_and_settings.import_failed_that_save_is_damaged":"<b>Import fehlgeschlagen.</b><br>Dieser Spielstand ist beschädigt und konnte nicht geladen werden. Dein aktuelles Spiel ist unberührt.",
"game_and_settings.name_and_everything_it_owns_will":"{name} und alles, was dazugehört, wird gelöscht. Das lässt sich nicht rückgängig machen.",
"game_and_settings.scenarios_amp_weekly_challenge":"Szenarien &amp; Wochen-Challenge",
"game_and_settings.share_your_network_image_card":"Dein Netz teilen <small>Bildkarte</small>",
"game_and_settings.start_a_new_network":"Ein neues Netz starten?",
"game_and_settings.welcome_back_name_imported_and_saved":"<b>Willkommen zurück, {name}.</b><br>Importiert und auf diesem Gerät gespeichert.",
"game_and_settings.your_game_saves_itself_every_few":"Dein Spiel speichert sich alle paar Sekunden auf diesem Gerät.",
@ -1871,7 +1855,7 @@
"help.each_pop_s_router_model_caps":"Das Router-Modell eines POPs begrenzt seinen schnellsten Port (100G, 400G, 800G, 1.6T) und wie viel er weiterleiten kann. Größere Waves und Ports brauchen an beiden Enden bessere Router. Bessere Modelle werden mit deinem Kundenlevel freigeschaltet. Mit nur einem Router heißen Upgrades einen Tag Ausfallzeit.",
"help.event_networks_a_final_a_festival":"Event-Netze (ein Finale, ein Festival, eine Keynote) brauchen für ein paar Tage einen Kapazitätsschub in einer Stadt und zahlen einmal am Ende, anteilig danach, wie viel der Menge du bedient hast; unter 70 % zahlst du eine Vertragsstrafe. SD-WAN-Ketten verbinden 3–6 deiner POPs als Hub-and-Spoke, also verärgert eine kaputte Speiche den ganzen Vertrag. Sobald du eigene Dark Fiber betreibst, wollen Carrier freie Kanäle als Alien Waves mieten, und auf selbst gebauter Glasfaser ein freies Paar.",
"help.events_chains_and_wholesale":"Events, Ketten und Wholesale",
"help.every_ix_port_brings_peering":"Jeder IX-Port bringt Peering-Anfragen und Max-Prefix-Alarme mit, im Tab Netze. Eine Session, die ihr Limit sprengt, bleibt down, bis du nachsiehst: Heb das Limit bei Wachstum an, lass sie bei einem Leak down. Ignorierst du deine Post, werden selektive Netze wählerischer.",
"help.every_ix_port_brings_requests":"Jeder IX-Port bringt Peering-Anfragen, und deine Peering-Policy im Netze-Tab beantwortet sie: Offen nimmt alle an, Selektiv nimmt die Netze, mit denen sich Peering lohnt, und lehnt den Rest still ab, Geschlossen lehnt alle ab. Einmal pro Woche fasst das NOC-Log es zusammen.",
"help.every_link_has_latency_high":"Jeder Link hat Latenz. Hochfrequenzhändler zahlen ein Vermögen für eine Verbindung innerhalb ihres Latenzbudgets; route sie über „Niedrigste Latenz“. Backup-Kunden ist das egal, also route sie „Landschaftlich“ über deine ruhigen Links, damit die vollen frei bleiben.",
"help.home_broadband_users_they_mostly":"Heim-Breitband-Nutzer. Sie laden meist von CDNs herunter und zahlen dir pro ausgeliefertem Gbps. Bedien sie gut, und sie vermehren sich.",
"help.how_the_internet_works_here":"So funktioniert das Internet hier",
@ -1885,7 +1869,7 @@
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) ist transitfrei. Du peerst mit jedem Riesen auf dem Planeten und zahlst niemandem etwas, um das Internet zu erreichen. Hat dich {days} Tage und {n} Störungen gekostet.",
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG und Co. kommen jedes Jahr vorbei. Melde dich im Tab Deals für $8k an. In den 45 Tagen danach brauchen selektive Netze mit Präsenz in dieser Region nur halb so viel Traffic wie sonst, bevor sie mit dir peeren. Manchmal gewinnst du auch die Tombola.",
"help.once_auto_te_is_installed_you":"Sobald Auto-TE installiert ist, kannst du es im Tab NOC programmieren. Zu den Regeln gehören <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> und <code>blackhole ddos</code>. Prüfen spielt einen Probelauf mit dem Live-Traffic durch; Deployen macht es echt, Fehler inklusive.",
"help.one_game_four_doors_puzzles_are":"Ein Spiel, vier Türen, und die Regeln wählst du beim Start eines Netzes, danach sind sie festgelegt. Rätsel sind kleine Knoten zum Entwirren, ohne Uhr. Sandbox gibt dir eine Milliarde Dollar, alle Freischaltungen (dein eigenes Seekabel inklusive) und so viel Chaos, wie du willst, aber keine Abzeichen. Normal gibt es dreifach: Change Freeze (wenige Ausfälle, Lieferungen in Tagen, kein Postfach, keine Engpässe), Rufbereitschaft (das klassische Spiel) und BGP um 3 Uhr nachts (mehr und längere Ausfälle, mehr DDoS). Szenarien sind handgebaute Herausforderungen mit Ziel und Frist, und die Wochen-Challenge gibt allen eine Woche lang dieselbe Welt. Teile dein Ergebnis mit der Karte im Menü.",
"help.one_game_four_doors_and_the":"Ein Spiel, vier Türen, und die Regeln wählst du beim Start eines Netzes, danach sind sie festgelegt. Rätsel sind kleine Knoten zum Entwirren, ohne Uhr. Sandbox gibt dir eine Milliarde Dollar, alle Freischaltungen (dein eigenes Seekabel inklusive) und so viel Chaos, wie du willst, aber keine Abzeichen. Normal gibt es dreifach: Change Freeze (wenige Ausfälle, Lieferungen in Tagen, keine Engpässe), Rufbereitschaft (das klassische Spiel) und BGP um 3 Uhr nachts (mehr und längere Ausfälle, mehr DDoS). Szenarien sind handgebaute Herausforderungen mit Ziel und Frist, und die Wochen-Challenge gibt allen eine Woche lang dieselbe Welt. Teile dein Ergebnis mit der Karte im Menü.",
"help.open_peers_with_anyone_selective":"Offene Netze peeren mit allen. Selektive wollen erst Traffic sehen. Restriktive (Tier 1s) peeren nur mit Riesen, über PNIs. Paid Peering heißt genau das: Du zahlst. Große selektive Netze haben auch Launen: In manchen Städten lehnen sie ein paar Monate lang neue Peers ab oder nehmen nur PNIs, und ab und zu bauen sie eine Session ab, die du schon hattest. Versuch es in einer anderen Stadt oder mit einem PNI und frag später nochmal.",
"help.out_of_port_speed_bundle_up":"Port zu langsam? Bündle bis zu 8 identische Ports zum selben Transit-Anbieter, IX oder PNI zu einem LAG. Jedes Mitglied kostet einen vollen Port; Flow-Hashing ist nie perfekt gleichmäßig, also trägt ein Bündel etwa 95 % der Summe.",
"help.pni_lead_times":"PNI-Lieferzeiten",
@ -2010,15 +1994,11 @@
"hud_and_panels.has_errors_not_running":"hat Fehler, läuft nicht",
"hud_and_panels.incidents_so_far":"Bisherige Störungen",
"hud_and_panels.install_auto_te_cost_mo_mo":"Auto-TE installieren <small>{cost} + {mo}/Monat</small>",
"hud_and_panels.large_peering_model_is_on_it":"Das Large Peering Model kümmert sich drum.",
"hud_and_panels.lv_n":"Lv {n}",
"hud_and_panels.n_incident":{"one":"{n} Störung","other":"{n} Störungen"},
"hud_and_panels.n_message_waiting_for_an_answer":{"one":"{n} Nachricht wartet auf eine Antwort.","other":"{n} Nachrichten warten auf eine Antwort."},
"hud_and_panels.n_more_networks":{"one":"+{n} weiteres Netz","other":"+{n} weitere Netze"},
"hud_and_panels.n_networks_d_days_left":"{n} Netze · noch {d} Tage",
"hud_and_panels.n_new_notification":{"one":"{n} neue Benachrichtigung","other":"{n} neue Benachrichtigungen"},
"hud_and_panels.n_rules_live":"{n} Regeln aktiv",
"hud_and_panels.n_session_is_down_on_its":{"one":"{n} Session ist wegen ihres Max-Prefix-Limits down.","other":"{n} Sessions sind wegen ihres Max-Prefix-Limits down."},
"hud_and_panels.n_small_networks":"{n} kleine Netze",
"hud_and_panels.n_special_requirement":{"one":"{n} Sonderwunsch","other":"{n} Sonderwünsche"},
"hud_and_panels.n_unhappy_customer_price_mo_at":{"one":"{n} unzufriedener Kunde, {price}/Monat gefährdet","other":"{n} unzufriedene Kunden, {price}/Monat gefährdet"},
@ -2594,6 +2574,7 @@
"ops.by_hand_note":"Für den Moment, in dem alles sofort erledigt sein soll: jeder Peer an jedem Exchange, ein Redundanz-Kit, PNIs mit allen.",
"ops.caches_rent":"Kostenlos ins Rack, aber jede Box kostet {price}/Monat für Platz und Strom.",
"ops.cheapest":"Günstigster",
"ops.day_d":"Tag {d}",
"ops.ff_desc":"hat einen Port in {city} „TODO: später fixen (nicht fixen)“ beschriftet",
"ops.ff_hostname":"hat den Router in {city} in router-final-FINAL-v2 umbenannt",
"ops.ff_lag":"hat in {city} ein Transit-LAG-Member zu viel bestellt. Läuft, also bleibt es.",
@ -2632,8 +2613,6 @@
"ops.l_snag":{"one":"ist bei {where} hängen geblieben und hat den Auftrag pausiert, bis du draufschaust","other":"ist bei {n} Aufträgen hängen geblieben ({where}) und hat sie pausiert, bis du draufschaust"},
"ops.l_transit":{"one":"hat Transit in {where} aufgestockt","other":"hat {n}-mal Transit aufgestockt ({where})"},
"ops.locked":"Das NOC stellt ab Kundenlevel {lv} Praktikanten ein.",
"ops.lpm_off":"Die Peering-Inbox bleibt deine Sache. Dafür gibt es das Large Peering Model; {name} macht keine E-Mails.",
"ops.lpm_on":"Das Large Peering Model beantwortet die Peering-Inbox. {name} geht ihm aus dem Weg.",
"ops.mood_annie":"Annie hat drei Fragen beantwortet, bevor du sie gestellt hast, vom nächstgelegenen Schreibtisch aus.",
"ops.mood_broke":"{name} hat schon eine Einkaufsliste für das Budget des nächsten Monats.",
"ops.mood_busy":"{name} hatte eine volle Woche und ist beim dritten Energydrink.",
@ -2746,61 +2725,14 @@
"page.series_of_tubes_build_the_internet":"Series of Tubes: Bau das Internet, eine Röhre nach der anderen",
"page.world_map_of_your_network":"Weltkarte deines Netzes",
"page.x":"<?php echo \"sorry\"; ?>",
"peering_inbox.accept_all_requests":"Alle Anfragen annehmen",
"peering_inbox.an_ai_agent_that_answers_every":"Ein KI-Agent, der jeden Tag jede Peering-Anfrage und jeden Max-Prefix-Alarm für dich beantwortet. {price}/Jahr. Trainiert mit zwanzig Jahren Peering-Mailinglisten.",
"peering_inbox.answered_your_mail_a_accepted_d":"Hat deine Mails beantwortet: {a} angenommen, {d} abgelehnt.",
"peering_inbox.asked_netchill_s_peering_team_to":"Hat das Peering-Team von NetChill gebeten, „bitte mehr Netchill bereitzustellen“.",
"peering_inbox.configured_lim_prefixes_received_got":"Konfiguriert: {lim} Präfixe. Empfangen: {got}.",
"peering_inbox.day_d":"Tag {d}",
"peering_inbox.dear_sir_or_madam_please_peer":"Sehr geehrte Damen und Herren, bitte peeren Sie. Wir haben drei Präfixe und sehr große Pläne.",
"peering_inbox.decline_all_requests":"Alle Anfragen ablehnen",
"peering_inbox.declined_who_at_ix_not_a":"{who} am {ix} abgelehnt: „passt strategisch nicht“. Hat es aber.",
"peering_inbox.every_exchange_port_brings_mail":"Jeder Exchange-Port bringt Post. Beantworte Peering-Anfragen und sieh dir Sessions an, die ihr Max-Prefix-Limit erreicht haben: Ist das Wachstum oder ein Route Leak? Unbeantwortete Mails bringen dir einen schlechten Ruf ein, und selektive Netze bekommen das mit.",
"peering_inbox.everyone_who_asks_gets_a_session":"Jeder, der fragt, bekommt eine Session, und die Route Server laufen. Viele winzige Peers und viele Max-Prefix-Alarme.",
"peering_inbox.fewer_requests_and_you_answer_them":"Weniger Anfragen, und du beantwortest sie selbst. Keine Route Server: Geh zu jedem Exchange und frag die Netze an, die du willst.",
"peering_inbox.fire_the_ai":"KI feuern",
"peering_inbox.good_call_it_was_a_route":"<b>Gut erkannt: Es war ein Route Leak.</b><br>{who} hat eine vertippte Route-Map gefunden. Die Session kommt in ein paar Tagen von selbst zurück.",
"peering_inbox.greetings_we_are_a_fast_growing":"Grüße. Wir sind ein schnell wachsendes Netz. Letztes Jahr hatten wir einen Kunden, dieses Jahr sind es zwei.",
"peering_inbox.hello_please_find_attached_our":"Hallo, anbei unsere Peering-Anfrage als Word-Dokument, eingescannt von einem Ausdruck.",
"peering_inbox.hey_quick_one_can_you_peer":"Hey, kurze Frage: Kannst du mit uns am {ix} peeren? Wir haben einen sehr wichtigen Minecraft-Server.",
"peering_inbox.hi_we_would_like_to_peer":"Hi! Wir würden gern mit dir am {ix} peeren. Unser PeeringDB-Eintrag ist aktuell.",
"peering_inbox.hire_it_mo_mo":"Anheuern <small>{mo}/Monat</small>",
"peering_inbox.inbox_zero_enjoy_it_while_it":"Inbox Zero. Genieß es, solange es anhält.",
"peering_inbox.keep_it_down":"Down lassen",
"peering_inbox.kept_who_down_at_ix_for":"{who} am {ix} wegen „verdächtigen Wachstums“ down gelassen. Sie waren um einen Kunden gewachsen.",
"peering_inbox.kept_who_down_at_ix_it":"{who} am {ix} down gelassen: Es war ein Route Leak. Volltreffer.",
"peering_inbox.large_peering_model":"Large Peering Model",
"peering_inbox.large_peering_model_is_answering":"Das Large Peering Model beantwortet deine Mails",
"peering_inbox.max_prefix_limit_hit_who_at":"<b>Max-Prefix-Limit erreicht: {who} am {ix}.</b><br>Die Session bleibt down, bis du sie dir ansiehst.",
"peering_inbox.max_prefix_limit_hit_who_at_5c56":"Max-Prefix-Limit erreicht: {who} am {ix}",
"peering_inbox.mostly_ignores_email":"Ignoriert Mails meistens",
"peering_inbox.n_day_ago":{"one":"vor {n} Tag","other":"vor {n} Tagen"},
"peering_inbox.n_unanswered":{"one":"{n} unbeantwortet","other":"{n} unbeantwortet"},
"peering_inbox.no_mail_yet_buy_an_ix":"Noch keine Post. Kauf einen IX-Port, dann kommt sie.",
"peering_inbox.nobody_asks_and_no_route_servers":"Niemand fragt, und keine Route Server. Kunden hören, dass du schwer erreichbar bist, also rufen weniger an, und dein Ruf sinkt.",
"peering_inbox.open_to_all":"Offen für alle",
"peering_inbox.opened_a_ticket_with_itself_to":"Hat bei sich selbst ein Ticket eröffnet, um die eigenen Entscheidungen zu prüfen. Es hat sie genehmigt.",
"peering_inbox.peering_request_fifth_attempt_is":"Peering-Anfrage, fünfter Versuch. Ist da jemand?",
"peering_inbox.peeringdb_last_updated_n_year_ago":{"one":"PeeringDB zuletzt vor {n} Jahr aktualisiert","other":"PeeringDB zuletzt vor {n} Jahren aktualisiert"},
"peering_inbox.peeringdb_updated_last_month":"PeeringDB letzten Monat aktualisiert",
"peering_inbox.please_configure_sessions_with_us_at":"Bitte konfiguriere Sessions mit uns am {ix}. Wir machen unsere nächste Woche, oder die Woche danach.",
"peering_inbox.price_year_it_never_sleeps_never":"{price}/Jahr. Schläft nie, beschwert sich nie und liegt oft falsch.",
"peering_inbox.raise_all_max_prefix_limits":"Alle Max-Prefix-Limits anheben",
"peering_inbox.raise_the_limit":"Limit anheben",
"peering_inbox.raised_the_max_prefix_limit_for":"Hat das Max-Prefix-Limit für {who} am {ix} auf {n} angehoben. Sie wirkten nett.",
"peering_inbox.raised_the_max_prefix_limit_for_7b4b":"Hat das Max-Prefix-Limit für {who} am {ix} angehoben. Diesmal zu Recht.",
"peering_inbox.replied_to_a_peering_request_with":"Hat eine Peering-Anfrage mit einem Haiku über BGP beantwortet. Noch keine Antwort.",
"peering_inbox.session_with_who_is_back_up":"<b>Die Session mit {who} ist wieder up.</b><br>Neues Limit: {n} Präfixe. Sie versprechen, PeeringDB zu aktualisieren.",
"peering_inbox.signed_you_up_for_a_webinar":"Hat dich für ein Webinar über „Peering im Zeitalter der KI“ angemeldet.",
"peering_inbox.that_was_a_route_leak_who":"<b>Das war ein Route Leak.</b><br>{who} hat {n} Präfixe announced: eine volle Tabelle. Lass die Session nächstes Mal down.",
"peering_inbox.the_session_stays_down_who_will":"<b>Die Session bleibt down.</b><br>{who} aktualisiert PeeringDB und fragt nochmal. Irgendwann.",
"peering_inbox.their_peeringdb_says_lim_last":{"one":"Laut ihrer PeeringDB {lim}, zuletzt vor {n} Jahr aktualisiert.","other":"Laut ihrer PeeringDB {lim}, zuletzt vor {n} Jahren aktualisiert."},
"peering_inbox.tidied_up_a_session_it_decided":"Hat eine Session aufgeräumt, die es für ungenutzt hielt: {who} am {ix} de-peert.",
"peering_inbox.updated_your_peeringdb_record_your":"Hat deinen PeeringDB-Eintrag aktualisiert. Deine NOC-Telefonnummer gehört jetzt einer Pizzeria.",
"peering_inbox.we_noticed_you_are_at_ix":"Wir haben gesehen, dass du am {ix} bist. Wir auch. Wollen wir?",
"peering_inbox.who_asked_a_mailing_list_whether":"<b>{who} hat auf einer Mailingliste gefragt, ob jemand einen funktionierenden Kontakt bei {me} hat.</b><br>Ihre Peering-Anfrage lag einen Monat in deinem Postfach.",
"peering_inbox.who_at_ix_was_sending_a":"{who} am {ix} hat eine volle Tabelle geschickt, und das Max-Prefix-Limit war das Einzige, was das aufgehalten hat. Mit angehobenem Limit zeigen die Präfixe von {net} jetzt in deren Keller. Traffic zu {net} über Transit wird ein paar Tage lang geblackholt.",
"peering_inbox.wrote_a_thousand_word_apology_to":"Hat eine tausend Wörter lange Entschuldigung an ein Netz geschrieben, mit dem du nie gepeert hast.",
"peering_desk.closed_desc":"Jede Peering-Anfrage wird abgelehnt, und keine Route Server. Kunden hören, dass du schwer erreichbar bist, also rufen weniger an.",
"peering_desk.n_more_exchanges":{"one":"{n} weiterer Exchange","other":"{n} weitere Exchanges"},
"peering_desk.n_new_sessions_at_ix":{"one":"Peering-Desk: {n} neue Session an {ix} ({pol}).","other":"Peering-Desk: {n} neue Sessions an {ix} ({pol})."},
"peering_desk.n_new_sessions_at_ix_declined":{"one":"Peering-Desk: {n} neue Session an {ix}, {d} abgelehnt ({pol}).","other":"Peering-Desk: {n} neue Sessions an {ix}, {d} abgelehnt ({pol})."},
"peering_desk.n_requests_declined":{"one":"Peering-Desk: {n} Anfrage abgelehnt ({pol}).","other":"Peering-Desk: {n} Anfragen abgelehnt ({pol})."},
"peering_desk.open_desc":"Jedes Netz, das fragt, bekommt eine Session, und die Route Server laufen.",
"peering_desk.open_to_all":"Offen für alle",
"peering_desk.selective_desc":"Kleine Netze am Exchange und Neulinge mit aktueller PeeringDB bekommen eine Session, der Rest wird still abgelehnt. Keine Route Server: Frag an jedem Exchange die Netze an, die du willst.",
"peering_policy.a_new_vp_wants_to_monetise":"Ein neuer VP will in diesem Markt „Interconnection monetarisieren“.",
"peering_policy.already_reach_you_through_your":"Erreichen dich hier schon über deinen Transit-Provider und finden das in Ordnung.",
"peering_policy.moved_everything_in_this_city_to":"Haben in dieser Stadt alles auf PNIs umgestellt. Bitte lies ihre PearingDB-Seite, alle 40 Seiten davon.",
@ -2843,6 +2775,34 @@
"pni_all.pni_size":"PNI-Größe",
"pni_all.setup_total":"Einrichtung gesamt",
"pni_all.traffic_charges_apply":"Dazu kommen Traffic-Gebühren von {price} pro Gbps.",
"pni_list.chip_not_reached":"Nicht erreichbar",
"pni_list.chip_peers_at":"Peering an {list}",
"pni_list.chip_pni_at":"PNI in {list}",
"pni_list.chip_pni_elsewhere":"PNI woanders: {list}",
"pni_list.chip_pni_here":"PNI hier · {port} · {p}",
"pni_list.chip_pni_here_on_order":"PNI hier · bestellt",
"pni_list.chip_via_a_cone":"Über den Cone eines Peers",
"pni_list.chip_via_cone":"Über den Cone von {net}",
"pni_list.chip_via_transit":"Über Transit",
"pni_list.f_all":"Alle",
"pni_list.f_pni":"Schon PNI",
"pni_list.f_transit":"Über Transit",
"pni_list.f_worth":"Lohnt sich",
"pni_list.list_more":"{list} +{n}",
"pni_list.little_to_gain_here":"Hier gibt's wenig zu holen: {g}",
"pni_list.n_here":"{g} hier",
"pni_list.n_networks_w_worth_it":{"one":"{n} Netz · {w} lohnt sich","other":"{n} Netze · {w} lohnen sich"},
"pni_list.nothing_matches":"Kein Netz hier passt zu diesem Filter.",
"pni_list.saves_minus_cost":"Spart {saved} Transit im Monat; der PNI kostet {cost} im Monat.",
"pni_list.sort_az":"Sortierung: A–Z",
"pni_list.sort_worth":"Sortierung: lohnende zuerst",
"pni_list.via_drop":"{g} verworfen",
"pni_list.via_haul":"{g} über den Backbone",
"pni_list.via_ix":"{g} IX",
"pni_list.via_transit":"{g} Transit",
"pni_list.with_port":"{port}-PNI: {val}",
"pni_list.worth_it":"Lohnt sich",
"pni_list.worth_rule":"⭐ Lohnt sich: Ein PNI hier spart mehr Transit, als er im Monat kostet, trägt mindestens 1 Gbps, die du heute verwirfst, oder nimmt mindestens 1 Gbps von einem Exchange-Port, der zu 80 % voll ist.",
"pnis.a_new_region_is_coming_online":"Eine neue Region geht bald online. Sie geht seit 2019 bald online.",
"pnis.about_n_days_to_go_nothing":"Noch etwa {n} Tage. Nichts zu tun außer warten oder nachhaken.",
"pnis.augment_with_net_delivered_in_city":"<b>Erweiterung mit {net} in {city} geliefert.</b><br>Jetzt {port}.",
@ -2894,16 +2854,18 @@
"progress.a_port_on_ix_brrr_manaus":"Ein Port am IX.brrr Manaus",
"progress.broadband_in_city":"Breitband in {city}",
"progress.carnaval_delivered_in_full":"Karneval vollständig ausgeliefert",
"progress.city_on_your_network":"{city} in deinem Netz",
"progress.customer_level_lv_of_max":"Kundenlevel {lv} von {max}",
"progress.days_in_a_row_at_g":"Tage am Stück mit {g} oder mehr",
"progress.days_in_a_row_with_99":"Tage am Stück mit 99,5 % bedient",
"progress.done_in_d_days":"Geschafft in {d} Tagen!",
"progress.floods_that_got_through":"Fluten, die durchgekommen sind",
"progress.ix_brrr_ports":"IX.brrr-Ports",
"progress.ix_brrr_ports_on_your_backbone":"IX.brrr-Ports an deinem Backbone",
"progress.monthly_profit":"Monatsgewinn",
"progress.n_of_m":"{n} von {m}",
"progress.next_name_unlocks_what":"Als Nächstes: {name} schaltet {what} frei",
"progress.not_tier_1_right_now_why":"Gerade nicht Tier 1: {why}.",
"progress.pop_in_city":"POP in {city}",
"progress.seoul_served_well":"Seoul gut versorgt (geliefert und schnell)",
"progress.terabit_floods_held":"Abgewehrte Terabit-Fluten",
"progress.under_attack_now":"Gerade unter Beschuss",
"progress.your_score_peak_traffic":"Dein Ergebnis: Spitzen-Traffic",
@ -3281,7 +3243,7 @@
"routing_and_routers.unplug_something_first_used_ports":"<b>Steck zuerst etwas aus.</b><br>{used} Ports sind belegt, und mit einem Router weniger gibt es nur {max}.",
"rules.a_billion_dollars_every_unlock_your":"Eine Milliarde Dollar, alles freigeschaltet, dein eigenes Seekabel.",
"rules.a_cut_now_and_then":"Ab und zu ein Bagger.",
"rules.a_third_of_the_outages_no_ddos":"Ein Drittel der Ausfälle, kein DDoS. PNIs und Bauten in Tagen. Kein Postfach, keine Lieferengpässe, keine ausverkauften Routen, kein De-Peering.",
"rules.a_third_of_the_outages_no_ddos_pnis":"Ein Drittel der Ausfälle, kein DDoS. PNIs und Bauten in Tagen. Keine Lieferengpässe, keine ausverkauften Routen, kein De-Peering.",
"rules.bgp_at_3_a_m":"BGP um 3 Uhr nachts",
"rules.change_freeze":"Change Freeze",
"rules.chaos_calm":"Ruhig",
@ -3298,7 +3260,7 @@
"rules.on_call":"Rufbereitschaft",
"rules.one_small_network_one_tricky_goal":"Ein kleines Netz, ein kniffliges Ziel.",
"rules.puzzle":"Rätsel",
"rules.real_lead_times_real_outages_a":"Echte Lieferzeiten, echte Ausfälle, ein volles Peering-Postfach. Das klassische Spiel.",
"rules.real_lead_times_real_outages_a_real":"Echte Lieferzeiten, echte Ausfälle, ein echter Markt. Das klassische Spiel.",
"rules.rules_are_locked_for_this_network":"{rules}: Die Regeln sind für dieses Netz festgelegt.",
"rules.the_real_thing_your_pager_has":"Das echte Spiel. Dein Pager hat Meinungen.",
"rules.your_pager_never_sleeps":"Dein Pager schläft nie.",
@ -3332,15 +3294,15 @@
"scenarios.1_6t_on_every_hop_from":"1.6T auf jedem Hop von Miami nach Madrid und von Lissabon nach Lagos, und 100 Gbps bedient",
"scenarios.90_days_in_a_row_with":"90 Tage am Stück mit 99,5 % der Nachfrage bedient",
"scenarios.99_reach_and_150_gbps_served":"99 % Reichweite und 150 Gbps bedient",
"scenarios.99_reach_and_200_gbps_served":"99 % Reichweite und 200 Gbps bedient, ohne pleitezugehen",
"scenarios.a_path_from_cape_town_to":"Ein Pfad von Kapstadt nach Kairo, POPs in Lagos und Nairobi, und 150 Gbps bedient",
"scenarios.a_path_from_cape_town_to_cairo_lagos":"Ein Pfad von Kapstadt nach Kairo, Lagos und Nairobi auch in deinem Netz, und 150 Gbps bedient",
"scenarios.a_path_from_los_angeles_to":"Ein Pfad von Los Angeles nach Sydney mit 1.6T auf jedem Hop, ein Pfad von Los Angeles nach Tokio, und 150 Gbps bedient",
"scenarios.a_path_from_marseille_to_singapore":"Ein Pfad von Marseille nach Singapur, und 80 Gbps zwischen Asien und dem Rest deines Netzes, 30 Tage am Stück",
"scenarios.amsterdam_hosting_capital_of_europe":"Amsterdam, Hosting-Hauptstadt Europas, mitten in der Botnetz-Hochsaison. Jeder smarte Toaster, jedes Babyfon und jeder ungepatchte Kühlschrank der Welt hat sich für eine Seite entschieden, und es ist nicht deine. Alle paar Tage eine Flut, immer mehr davon im Terabit-Bereich, während auch alles andere weiter kaputtgeht. Du startest mit größerer Hardware freigeschaltet, und die wirst du brauchen.",
"scenarios.broadband_in_sydney_melbourne":"Breitband in Sydney, Melbourne, Brisbane, Adelaide und Perth, und zwei verschiedene Kabel nach Übersee",
"scenarios.broadband_in_sydney_melbourne_served":"Breitband in Sydney, Melbourne, Brisbane, Adelaide und Perth, zwei verschiedene Kabel nach Übersee, und 500 Gbps bedient",
"scenarios.cape_to_cairo":"Vom Kap nach Kairo",
"scenarios.cape_town_build_a_network_across":"Kapstadt. Bau ein Netz quer durch Afrika: Jede Grenze will ihre eigene Genehmigung, und die Hälfte der Stromnetze ist nicht auf deiner Seite.",
"scenarios.cogentle_and_goggle_are_not_speaking":"Cogentle und Goggle reden nicht miteinander, und diesmal für immer. Kauf den billigen Transit, wenn du dich traust.",
"scenarios.connect_panama_city_to_bogota_lima":"Bogotá, Lima, Santiago und São Paulo mit Panama-Stadt verbunden, und 150 Gbps bedient",
"scenarios.deliver_carnaval_in_full":"Liefere den Karneval vollständig aus",
"scenarios.every_cable_through_the_red_sea":"Jedes Kabel durchs Rote Meer ist gekappt, und der Hop nach Ägypten auch. Bring Marseille trotzdem mit Singapur ins Gespräch: um Afrika herum, über Land oder andersherum um den Planeten.",
"scenarios.every_ix_is_run_by_de":"Jeder IX wird von DE-KICKS betrieben",
@ -3352,22 +3314,22 @@
"scenarios.mid_atlantic_accent":"Mittelatlantischer Akzent",
"scenarios.only_spatzle_ix":"Nur Spätzle-IX",
"scenarios.order_and_progress":"Ordnung und Fortschritt",
"scenarios.ponta_delgada_in_the_azores_halfway":"Ponta Delgada auf den Azoren, mitten im Atlantik. Florida–Spanien und Lissabon–Lagos sind einfach zu lang für eine 1.6T-Wave: direkt hinüber trägt jede nur 1.2T. Lande auf den Inseln dazwischen, starte das Licht neu, und jeder Hop läuft mit 1.6T oder besser. Du startest mit freigeschalteter 1.6T-Hardware.",
"scenarios.pops_in_bogota_lima_santiago_and":"POPs in Bogotá, Lima, Santiago und São Paulo, und 150 Gbps bedient",
"scenarios.ports_on_15_ix_brrr_exchanges":"Ports an 15 IX.brrr-Exchanges, einer davon in Manaus, und 200 Gbps bedient",
"scenarios.ponta_delgada_azores_lisbon_lagos":"Ponta Delgada auf den Azoren, mitten im Atlantik. Florida–Spanien ist einfach zu lang für eine 1.6T-Wave: direkt hinüber trägt sie nur 1.2T. Lande auf den Inseln dazwischen, starte das Licht neu, und jeder Hop läuft mit 1.6T oder besser. Lissabon–Lagos schafft 1.6T am Stück, aber teuer: über die Kanaren ist es billiger. Du startest mit freigeschalteter 1.6T-Hardware.",
"scenarios.ports_on_15_ix_brrr_exchanges_backbone":"Ports an 15 IX.brrr-Exchanges, die dein Backbone mit São Paulo verbindet, einer davon in Manaus, und 200 Gbps bedient",
"scenarios.reach_50_of_the_internet_and":"Erreiche 50 % des Internets und bediene 300 Gbps",
"scenarios.red_sea_crisis":"Krise im Roten Meer",
"scenarios.rio_from_scratch_carnaval_starts_in":"Rio, ganz von vorn. Der Karneval beginnt in 90 Tagen und will fünf Tage am Stück 400 Gbps. Die ganze Welt schaut zu.",
"scenarios.sandbox_mode_a_billion_dollars_chaos":"<b>Sandbox-Modus</b><br>Eine Milliarde Dollar und alles freigeschaltet. Chaos: {chaos}. Bau das Internet, das du immer wolltest, und halt einen Ersatzbagger bereit.",
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Sandbox-Modus</b><br>Eine Milliarde Dollar, alles freigeschaltet, und nichts geht jemals kaputt. Bau das Internet, das du schon immer wolltest.",
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. Brasilien ist ein Kontinent: vierzig IX.brrr-Exchanges, Tausende Provedores und der Amazonas zwischen dir und dem Norden.",
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Seoul. Die schnellsten, hungrigsten Privatkunden der Welt, Transit zum vierfachen Preis und drei Platzhirsche, die dir jedes Gigabit in Rechnung stellen, das du ihnen schickst.",
"scenarios.seoul_sender_pays_d":"Seoul, wo der Sender zahlt. Jedes Gbps, das ein Carrier nach Korea liefert, kostet dich zusätzlich zur Transitrechnung eine Sender-pays-Gebühr, die drei Platzhirsche reden nur über einen bezahlten PNI, Gigabit für zu Hause kostet so viel wie ein Bibimbap, und koreanische Nutzer merken jede Millisekunde. Transit in Tokio ist billig, wenn deine Kunden die Reise aushalten.",
"scenarios.seoul_sender_pays_goal":"{g} Gbps ausgeliefert, Seoul gut versorgt ({q} %), 99 % Reichweite und ein Monatsgewinn",
"scenarios.shark_season_subsea_cuts_twice_as":"Haisaison: Seekabelschnitte doppelt so wahrscheinlich",
"scenarios.start_in_panama_city_nothing_crosses":"Start in Panama-Stadt. Über Land kommt nichts durch den Darién Gap, und die Anden stehen allem anderen im Weg.",
"scenarios.start_in_stuttgart_where_nobody":"Start in Stuttgart, wo niemand Transit verkauft. Erreiche das Internet nur über Peering, PNIs, Caches und deine eigene Glasfaser. Kein Transit, nirgends, niemals.",
"scenarios.start_with_only_100k":"Start mit nur $100k",
"scenarios.sydney_2013_the_toilet_paper_group":"Sydney, 2013. Die Toilet Paper Group hat ihre eigene Glasfaser in die Keller von Wohnhäusern verlegt, und das nationale Netz hat „Rosinenpickerei“ geschrien. Du bist dran: Lass das Nearly Broadband Network links liegen, zahl die Abgabe und sei als Erster da.",
"scenarios.tallinn_ships_drag_their_anchors":"Tallinn. Schiffe schleifen ihre Anker dreimal so oft wie üblich über die Ostseekabel.",
"scenarios.tallinn_nobody_sells_transit_anchors":"Tallinn, wo niemand Transit verkauft: dein Internet liegt jenseits des Wassers. Schiffe schleifen ihre Anker dreimal so oft wie üblich über die Ostseekabel.",
"scenarios.the_cogentle_spat":"Der Cogentle-Zoff",
"scenarios.transit_costs_30_more":"Transit kostet 30 % mehr",
"scenarios.twice_the_failures":"Doppelt so viele Ausfälle",
@ -3421,6 +3383,7 @@
"sites_and_service.level_n":"Level {n}",
"sites_and_service.n_ports":"{n} Ports",
"sites_and_service.no_path_right_now":"gerade kein Pfad",
"sites_and_service.p_of_city_s_traffic_comes_from_kr":"<b>{p} des Traffics von {city} kommt aus {to}: {ms} ms Round Trip.</b> Koreanische Nutzer merken alles über 8 ms, und ab 40 ms gilt Breitband als schlechter Service. Liefere mehr aus Seoul: Peering, Caches und PNIs hier oder lokaler Transit, wenn du die Sender-pays-Gebühr verkraftest.",
"sites_and_service.p_of_city_s_traffic_is":"<b>{p} des Traffics von {city} läuft per Backhaul zum Transit in {to}: {ms} ms Round Trip.</b> Nutzer merken alles über 20 ms (etwa 1.500 km), und ab 50 ms gelten Breitband und Internetdienste als schlechter Service. Kauf Transit hier oder in der Nähe oder peere lokal.",
"sites_and_service.path_latency_lat":"Pfad-Latenz: <b>{lat}</b>",
"sites_and_service.pn_routers":"{pn}-Router",
@ -3431,9 +3394,7 @@
"sites_peering_caches.bgp_session_established":"BGP-Session aufgebaut.",
"sites_peering_caches.cache_installed_in_city_net_shipped":"<b>{cache} in {city} installiert!</b><br>{net} hat ihn kostenlos geliefert. Du zahlst {mo}/Monat für Strom.",
"sites_peering_caches.could_you_resend_the_loa_you":"<b>„Könntest du die LOA nochmal schicken?“</b><br>Du hast sie schon viermal geschickt.",
"sites_peering_caches.hello_i_am_large_peering_model":"Hallo! Ich bin das Large Peering Model. Ich habe dein Postfach gelesen und habe schon eine Meinung dazu.",
"sites_peering_caches.it_is_with_the_provisioning_team":"<b>„Das liegt beim Provisioning-Team.“</b><br>Niemand hat das Provisioning-Team je getroffen.",
"sites_peering_caches.large_peering_model_is_hired_your":"<b>Das Large Peering Model ist angeheuert.</b><br>Dein Postfach ist jetzt sein Problem. {price} pro Jahr, monatlich abgerechnet.",
"sites_peering_caches.n_new_session_at_ix_small":{"one":"<b>{n} neue Session am {ix}.</b><br>Kleine Netze, aber das summiert sich, und alle zählen für den Club.","other":"<b>{n} neue Sessions am {ix}.</b><br>Kleine Netze, aber das summiert sich, und alle zählen für den Club."},
"sites_peering_caches.net_accepted":"{net} hat angenommen!",
"sites_peering_caches.net_declined_the_pni_why":"<b>{net} hat den PNI abgelehnt.</b><br>{why}",
@ -3441,11 +3402,8 @@
"sites_peering_caches.net_does_not_do_port_pnis":"<b>{net} macht keine {port}-PNIs.</b><br>Nichts unter 100G. Komm mit mehr Traffic wieder, oder mit einer größeren Optik.",
"sites_peering_caches.net_says_not_yet_send_them":"<b>{net} sagt: noch nicht.</b><br>Schick ihnen erst {min}+ Gbps.",
"sites_peering_caches.pni_with_net_ordered_eta_a":"<b>PNI mit {net} bestellt.</b><br>{eta}. Ein Cross-Connect im {dc}, sobald jemand die LOA findet.",
"sites_peering_caches.raised_n_max_prefix_limits_all":"<b>{n} Max-Prefix-Limits angehoben.</b><br>Alles Wachstum, keine Leaks. Glück gehabt.",
"sites_peering_caches.raised_n_max_prefix_limits_one":{"one":"<b>{n} Max-Prefix-Limits angehoben.</b><br>Eines davon war ein Route Leak. Das liegt jetzt im NOC.","other":"<b>{n} Max-Prefix-Limits angehoben.</b><br>{k} davon waren Route Leaks. Die liegen jetzt im NOC."},
"sites_peering_caches.second_lag_member_added_one_member":"<b>Zweites LAG-Mitglied hinzugefügt.</b><br>Jetzt ein Mitglied in jedem Gebäude, also legt ein dunkles Gebäude nur den halben Port lahm.",
"sites_peering_caches.second_site_live_in_city_b":"<b>Zweiter Standort in {city} live.</b><br>{b} ist über deinen eigenen Metro-Ring mit {a} verbunden. Verschieb ein paar Uplinks in den Tabs Transit und Peering dorthin.",
"sites_peering_caches.the_ai_is_gone_it_left":"<b>Die KI ist weg.</b><br>Sie hat ein 40-seitiges Übergabedokument hinterlassen. Es geht hauptsächlich um sie selbst.",
"sites_peering_caches.they_checked_your_pearingdb_page_and":"Sie haben sich deine PearingDB-Seite angesehen und mochten die Traffic-Zahlen.",
"sites_peering_caches.we_are_waiting_on_the_colo":"<b>„Wir warten beim Colo auf den Cross-Connect.“</b><br>Das Colo sagt, es wartet auf sie.",
"sites_peering_caches.your_account_manager_found_the_order":"<b>Dein Account Manager hat die Bestellung unter einem Schreibtisch gefunden.</b><br>Die Lieferung rückt einen Monat näher.",
@ -3467,6 +3425,7 @@
"slots.last_played_ago":"Zuletzt gespielt: {ago}",
"slots.load_the_newest_version":"Neueste Version laden",
"slots.more_for_name":"Mehr zu {name}",
"slots.n_day_ago":{"one":"vor {n} Tag","other":"vor {n} Tagen"},
"slots.n_h_ago":{"one":"vor {n} Std.","other":"vor {n} Std."},
"slots.name_is_open_in_another_window":"{name} ist in einem anderen Fenster offen",
"slots.name_is_waiting_in_your_other":"<b>{name} wartet in deinem anderen Fenster.</b><br>Wechsle dorthin, um weiterzuspielen.",
@ -3490,7 +3449,6 @@
"slots.this_window_stopped_saving_so_it":"In einem anderen Fenster wurde eine neuere Version gespeichert, also speichert dieses nicht mehr, statt sie zu überschreiben.",
"slots.two_windows_one_network":"Zwei Fenster, ein Netz",
"slots.your_networks":"Deine Netze",
"slots.your_networks_switch_or_start_another":"Deine Netze <small>wechseln oder ein neues starten</small>",
"slots.your_other_networks_share_this_browser":"Deine anderen Netze teilen sich den Speicher dieses Browsers. Exportiere die, die du behalten willst, und lösche sie dann hier, um Platz zu schaffen.",
"sold_out.a_hyperscaler_bought_every_wave_of":"Ein Hyperscaler hat letzte Woche jede Wave dieser Größe auf dieser Route gekauft.",
"sold_out.not_big_enough_yet_list":"Noch nicht groß genug: {list}",
@ -3507,6 +3465,39 @@
"sold_out.tier_1s_never_peer_at_ixs":"Tier 1s peeren nie an IXs",
"sold_out.wants_need_gbps_of_traffic_from":"Will ≥ {need} Gbps Traffic von dir (du schickst {dem})",
"sold_out.wants_you_to_be_a_tier":"Will, dass du Tier 2 bist oder ≥ {need} Gbps dorthin schickst (du schickst {dem})",
"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · etwa {ms} ms · fertig in etwa {n} Tagen",
"specialist.a_consortium_is_selling_seats_on":"Ein Konsortium verkauft Plätze auf {name}, einem neuen Kabel von {a} nach {b}. Eigene Faserpaare darauf, noch bevor du Tier 1 bist.",
"specialist.ask_for_a_demo_unit_p_n":"Demogerät: +{p} %, {n} Tage",
"specialist.charter_signed_name":"Charta unterschrieben: {name}.",
"specialist.consortium_seat":"Konsortialplatz",
"specialist.consortium_seat_name":"Konsortialplatz: {name}",
"specialist.demo_unit_ships_in_n_days":"Demogerät kommt in {n} Tagen",
"specialist.dig_your_own_as_a_pioneer":"Selbst graben als Pionier (+{p} %) · {price} · {n} Tage",
"specialist.global_backbone":"Globaler Backbone",
"specialist.includes_pops_at_the_landings_price":"Inklusive POPs an den Landestationen: {price}.",
"specialist.keep_it":"Behalten",
"specialist.low_latency_boutique":"Low-Latency-Boutique",
"specialist.n_fiber_pairs":{"one":"{n} Faserpaar","other":"{n} Faserpaare"},
"specialist.part_owner_of_the_sea":"Miteigentümer des Meeres",
"specialist.pick":"Wählen",
"specialist.pick_a_charter":"Wähle eine Charta",
"specialist.routes_r_of_n_beat_the":"Finanzrouten, auf denen deine eigene Glasfaser schneller ist als jeder gemietete Weg: {r}/{n} · zahlende Latenzkunden: {c}/{m}",
"specialist.speed_of_light":"Lichtgeschwindigkeit",
"specialist.spotted_your_broadband_in_a_one":"Sie haben dein Breitband in {a} entdeckt, einer der großen Privatkunden-Städte.",
"specialist.spotted_your_cap_of_dark_fiber":"Sie haben deine {cap} beleuchtete Dark Fiber zwischen {a} und {b} entdeckt.",
"specialist.spotted_your_ms_ms_a_b_path":"Sie haben deinen {ms}-ms-Weg {a}–{b} entdeckt.",
"specialist.spotted_your_two_diverse_paths_a":"Sie haben deine zwei getrennten Wege zwischen {a} und {b} entdeckt.",
"specialist.take_a_seat_on_a_consortium":"Nimm einen Platz auf einem Konsortialkabel",
"specialist.the_classic_game_grow_everywhere_and":"Das klassische Spiel: überall wachsen, Kunden folgen deinem Level, Tier 1 ist der Sieg.",
"specialist.the_consortium_runs_the_cable_your":"Das Konsortium betreibt das Kabel und seine Repeater. Deine Paare beleuchtest du mit eigenen Optiken; ein Schnitt im Kabel trifft auch sie.",
"specialist.the_vendor_ships_a_demo_name":"Der Hersteller schickt in {n} Tagen ein Demo-{name}. Bis dein Level aufholt, kostet jedes Gerät {p} % mehr.",
"specialist.trading_firms_and_other_latency_customers":"Handelsfirmen und andere Latenzkunden melden sich öfter und zahlen {p} % mehr. Gewinne Lichtgeschwindigkeit: schlag die schnellste gemietete Latenz auf {r} Finanzrouten mit eigener Glasfaser, während {c} Latenzkunden zahlen. Tier 1 zählt weiterhin.",
"specialist.what_kind_of_network_are_you":"Was für ein Netz baust du? Du kannst noch {n} Tage wählen; bis dahin bist du ein Globaler Backbone.",
"specialist.win_as_a_low_latency_boutique":"Gewinne als Low-Latency-Boutique",
"specialist.won_on_date_your_own_glass":"Gewonnen am {date}: deine eigene Glasfaser schlug jeden gemieteten Weg.",
"specialist.you_own_n_fiber_pairs_on":"Unterschrieben: dir gehören {n} Faserpaare auf {name}, {a} ⇄ {b}. Die Kabelschiffe legen ab; fertig in etwa {d} Tagen.",
"specialist.your_own_fiber_pairs_on_a":"Eigene Faserpaare auf einem neuen Seekabel: zahl jetzt deinen Anteil am Bau und beleuchte sie mit eigenen Optiken, wenn es anlandet.",
"specialist.your_own_glass_beats_every_leased":"Deine eigene Glasfaser schlägt auf drei Finanzrouten jeden gemieteten Weg, und die Trader zahlen dafür. Die Boutique hat gewonnen!",
"supply_chain.as_when_you_started":"wie bei deinem Start",
"supply_chain.chip_shortage_every_router_vendor_is":"<b>Chipmangel!</b><br>Jeder Router-Hersteller wartet auf dieselben Chips. Neue Router und Router-Upgrades kosten {n} Tage lang 40 % mehr. Lieferzeit: „ja“.",
"supply_chain.every_cable_ship_is_booked":"<b>Jedes Kabelschiff ist ausgebucht.</b><br>Hyperscaler haben jedes Kabelschiff und jeden Grabungstrupp der Welt angeheuert. Neue Glasfaser- und Kabelbauten kosten {n} Tage lang 30 % mehr.",
@ -3519,7 +3510,9 @@
"supply_chain.what_p_n_days_left":"{what} +{p} · noch {n} Tage",
"supply_chain.your_price_lock_covers_you_until":"Deine Preisgarantie gilt bis {date}.",
"title.a_billion_dollars_and_every_toy":"Eine Milliarde Dollar und jedes Spielzeug im Laden.",
"title.as_number":"AS-Nummer",
"title.asia_hub_great_peering_far_from":"Asien-Drehkreuz. Tolles Peering, weit weg von zu Hause.",
"title.asn_not_usable":"Diese AS-Nummer routet nicht: Wähle eine von 1 bis 4294967294, die kein Netz auf der Karte nutzt (kein AS 0, 23456, keine Dokumentations- oder privaten Bereiche). Leer lassen für eine zufällige.",
"title.back_to_my_network":"Zurück zu meinem Netz",
"title.big_hungry_market_few_providers":"Großer, hungriger Markt, wenige Anbieter.",
"title.build_an_internet_lay_fiber_between":"Baue deinen eigenen ISP auf. Verlege Glasfaser zwischen Städten, kauf Transit, peere an Exchanges, gewinne Geschäftskunden und halte deine Privatkunden bei Laune, während Bagger, Haie und Route Leaks alles tun, um dich aufzuhalten.",

View file

@ -755,6 +755,7 @@
"city_panel.second_site_and_metro_ring":"Segunda sede y anillo metropolitano",
"city_panel.sell_internet_to_homes_here_starts":"Vende internet a hogares de aquí. Empieza en unos {start} y crece hacia {max} mientras el servicio sea bueno. Paga {rate} por Gbps servido, cada mes.",
"city_panel.sells_pnis_down_to_1g":"vende PNIs desde 1G",
"city_panel.sender_pays_fee_per_gbps":"Paga quien envía: +{fee} por Gbps de tránsito",
"city_panel.served_in_city":"Servido en {city}",
"city_panel.serving_v":"sirviendo {v}",
"city_panel.shut_this_pop_down_its_links":"Apagar este POP: sus enlaces, puertos y cachés se van con él, y todos los clientes que dependen de él se pierden, con una penalización por rescisión anticipada.",
@ -806,7 +807,6 @@
"common.aug":"Ago",
"common.auto":"Auto",
"common.auto_enrolled":"alta automática",
"common.average":"Media",
"common.avoid":"Evitar",
"common.back":"Atrás",
"common.back_to_the_map":"Volver al mapa",
@ -822,7 +822,6 @@
"common.bgp_hijack":"Secuestro de BGP",
"common.bgp_sessions":"Sesiones BGP",
"common.big_league":"Primera división",
"common.black_hole":"Agujero negro",
"common.blitz":"Blitz",
"common.boot_time":"Tiempo de arranque",
"common.boot_times":"Tiempos de arranque",
@ -830,7 +829,6 @@
"common.box_6ee3":"− caja",
"common.build_time":"Tiempo de construcción",
"common.building":"construyendo",
"common.bumped":"desplazado",
"common.bunker_two":"Búnker Dos",
"common.busiest_links":"Enlaces más ocupados",
"common.business_customers":"Clientes empresariales",
@ -992,8 +990,6 @@
"common.import_a_save":"Importar una partida",
"common.in_progress":"en curso",
"common.in_use":"En uso",
"common.inbox":"Bandeja de entrada",
"common.inbox_zero":"Bandeja a cero.",
"common.incident":"Incidente",
"common.incidents":"Incidentes",
"common.incidents_survived":"Incidentes superados",
@ -1121,7 +1117,6 @@
"common.oops":"Ups",
"common.open":"Abrir",
"common.open_bank":"Abrir banco",
"common.open_inbox":"Abrir bandeja",
"common.open_infra":"Abrir Infra",
"common.open_lease":"Abrir alquiler",
"common.open_noc":"Abrir NOC",
@ -1146,7 +1141,6 @@
"common.peered_ce2f":"Con peering ✓",
"common.peering":"Peering",
"common.peering_first":"Peering primero",
"common.peering_inbox":"Bandeja de peering",
"common.peering_policy":"Política de peering",
"common.peering_ratio":"Ratio de peering",
"common.peering_spat":"Riña de peering",
@ -1195,7 +1189,6 @@
"common.remove_port":"Quitar puerto",
"common.remove_script":"Quitar script",
"common.request":"Solicitar",
"common.responsive":"Responsivo",
"common.resume":"Reanudar",
"common.retention_offer":"Oferta de retención",
"common.revenue":"Ingresos",
@ -1301,7 +1294,6 @@
"common.to":"Hasta",
"common.toaster_wrangler":"Domador de tostadoras",
"common.today":"Hoy",
"common.today_4203":"hoy",
"common.toggle_sound":"Alternar sonido",
"common.too_far_for_this_cable":"demasiado lejos para este cable",
"common.traceroute":"Traceroute",
@ -1363,7 +1355,6 @@
"common.your_network":"Tu red",
"common.your_pop":"Tu POP",
"common.your_pops":"Tus POPs",
"common.your_reputation":"Tu reputación",
"common.zombie_route":"Ruta zombi",
"compute.attack_hauled_to_scrubbing_in_city":"Ataque desviado a depuración en {city}",
"compute.courtesy_route_to_new_networks":"Ruta de cortesía a redes nuevas",
@ -1610,8 +1601,6 @@
"failures.a_kilometre_of_copper_went_missing":"Desapareció un kilómetro de «cobre» de tu zanja {a}–{b}. Era tu fibra. El desguace la devolvió con una nota.",
"failures.a_landslide_in_the_andes_buried":"Un deslizamiento de tierra en los Andes enterró tu fibra {a}–{b}.",
"failures.a_llama_herd_trampled_the_fiber":"Una manada de llamas pisoteó el hito de la fibra en {a}–{b}. Luego una retroexcavadora encontró la fibra.",
"failures.a_member_at_ix_leaked_the":"Un miembro de {ix} filtró la tabla de rutas completa al route server. Los límites de max-prefix saltaron por todas partes. Tu peering allí está caído.",
"failures.a_member_at_ix_leaked_the_5563":"Un miembro de {ix} filtró la tabla de rutas completa al route server. Los límites de max-prefix saltaron por todas partes. Tu peering allí, en {city}, está caído.",
"failures.a_new_tech_in_a_tidied":"Un técnico nuevo en {a} «ordenó» el lío de cables. Tu enlace {a}–{b} era parte del lío.",
"failures.a_new_tech_in_city_used":"Un técnico nuevo en {city} usó Vegemite como pasta térmica. Conduce sabor, no calor, y tu router se cocinó.",
"failures.a_optic_on_a_b_overheated":"Una {optic} en {a}–{b} se sobrecalentó y ahora es un llavero muy caro.",
@ -1678,7 +1667,6 @@
"failures.load_shedding_stage_n_in_city":"Cortes programados de fase {n} en {city}, y no tienes generador. Compra uno: aquí no es opcional.",
"failures.load_shedding_took_out_site_in":"Los cortes programados tumbaron {site} en {city}. {other} siguió funcionando, así que el POP trabaja a media capacidad. Lo que solo esté conectado en la sede a oscuras está fuera de línea.",
"failures.magpie_swooping_season_the_field":"Temporada de urracas en picado: los técnicos de campo de {a}–{b} no salen de la furgoneta, y tu corte sigue cortado.",
"failures.max_prefix_meltdown":"Colapso de max-prefix",
"failures.metro_ring_cut":"Anillo metropolitano cortado",
"failures.microbursts_on_a_b_overflow_shallow":"Microrráfagas en {a}–{b} desbordan los buffers poco profundos del router: 0,5 % de pérdida en hora punta, y todas las videollamadas lo notan.",
"failures.microbursts_on_a_b_your_deep":"<b>Microrráfagas en {a}–{b}.</b><br>Tus routers de buffer profundo las absorbieron. Nadie lo notó.",
@ -1770,7 +1758,6 @@
"fiber_and_hardware.those_optics_need_the_regen_site":"<b>Esas ópticas necesitan el sitio regenerador.</b><br>Quita primero los canales de larga distancia, o conserva el sitio.",
"fiber_modals.a_fiber_pair_of_your_own":"Un par de fibra propio. El vidrio es barato, el equipo no: compras un sistema de línea con un amplificador cada {km} km, y luego ópticas para cada canal. Tu equipo puede fallar, y tú lo arreglas.",
"fiber_modals.a_fiber_pair_on_cable_km":"Un par de fibra en {cable}, {km} km. Comparte cable con las ondas de todos los demás, anclas incluidas.",
"fiber_modals.build_your_own_level_3":"Construye el tuyo <small>nivel 3</small>",
"fiber_modals.build_your_own_price_n_days":"Construye el tuyo <small>{price} · ~{n} días</small>",
"fiber_modals.dark_fiber_across_the_chinese_border":"La fibra oscura que cruza la frontera china no está a la venta. Compra una onda transfronteriza.",
"fiber_modals.dark_fiber_unlocks_at_customer_level":"La fibra oscura se desbloquea en el nivel de cliente 2. Necesitas la escala para justificar comprar tu propio equipo óptico.",
@ -1794,11 +1781,8 @@
"fiber_modals.your_pop_needs_a_fabric_port":"Tu POP · necesita un puerto de fabric allí",
"game_and_settings.delete_and_start_over":"Borrar y empezar de nuevo",
"game_and_settings.export_save_download_a_file":"Exportar partida <small>descargar un archivo</small>",
"game_and_settings.import_a_save_from_a_file":"Importar una partida <small>desde un archivo</small>",
"game_and_settings.import_failed_that_save_is_damaged":"<b>Falló la importación.</b><br>Esa partida está dañada y no se pudo cargar. Tu partida actual sigue intacta.",
"game_and_settings.name_and_everything_it_owns_will":"{name} y todo lo que posee se borrarán. No se puede deshacer.",
"game_and_settings.scenarios_amp_weekly_challenge":"Escenarios y desafío semanal",
"game_and_settings.share_your_network_image_card":"Comparte tu red <small>tarjeta de imagen</small>",
"game_and_settings.start_a_new_network":"¿Empezar una red nueva?",
"game_and_settings.welcome_back_name_imported_and_saved":"<b>Bienvenido de nuevo, {name}.</b><br>Importada y guardada en este dispositivo.",
"game_and_settings.your_game_saves_itself_every_few":"Tu partida se guarda sola cada pocos segundos en este dispositivo.",
@ -1869,7 +1853,7 @@
"help.each_pop_s_router_model_caps":"El modelo de router de cada POP limita su puerto más rápido (100G, 400G, 800G, 1.6T) y cuánto puede reenviar. Las ondas y puertos mayores necesitan mejores routers en ambos extremos. Los mejores modelos se desbloquean con tu nivel de cliente. Con un solo router, mejorar implica un día de inactividad.",
"help.event_networks_a_final_a_festival":"Las redes de eventos (una final, un festival, una keynote) necesitan una ráfaga de capacidad en una ciudad durante unos días y pagan una vez al final, prorrateado según cuánto de la multitud serviste; por debajo del 70 % pagas una penalización. Las cadenas SD-WAN conectan 3–6 de tus POPs en hub-and-spoke, así que un radio roto altera todo el contrato. Cuando operes tu propia fibra oscura, los operadores querrán alquilar canales libres como ondas alien, y en la fibra que construiste tú, un par libre.",
"help.events_chains_and_wholesale":"Eventos, cadenas y mayorista",
"help.every_ix_port_brings_peering":"Cada puerto IX trae solicitudes de peering y alertas de max-prefix, en la pestaña Redes. Una sesión que supera su límite está caída hasta que la mires: sube el límite si es por crecimiento, déjala caída si es una fuga. Si ignoras el correo, las redes selectivas se ponen más quisquillosas.",
"help.every_ix_port_brings_requests":"Cada puerto de IX trae solicitudes de peering, y tu política de peering, en la pestaña Redes, las responde: Abierta acepta a todos, Selectiva acepta las redes con las que vale la pena hacer peering y rechaza en silencio al resto, Cerrada las rechaza todas. Una vez por semana el registro del NOC lo resume.",
"help.every_link_has_latency_high":"Cada enlace tiene latencia. Los traders de alta frecuencia pagan una fortuna por un circuito dentro de su presupuesto de latencia; enrútalos con «Menor latencia». A los clientes de copias masivas no les importa, así que enrútalos por «Panorámica» sobre tus enlaces tranquilos para dejar libres los ocupados.",
"help.home_broadband_users_they_mostly":"Usuarios de banda ancha doméstica. Sobre todo descargan de CDN y te pagan por cada Gbps que entregas. Sírvelos bien y se multiplican.",
"help.how_the_internet_works_here":"Cómo funciona internet aquí",
@ -1883,7 +1867,7 @@
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) es libre de tránsito. Haces peering con todos los gigantes del planeta y no pagas a nadie por llegar a internet. Te llevó {days} días y {n} incidentes.",
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG y compañía vienen cada año. Regístrate en la pestaña Tratos por $8k. Durante 45 días después, las redes selectivas con presencia en esa región solo piden la mitad del tráfico habitual antes de hacer peering contigo. A veces también ganas la rifa.",
"help.once_auto_te_is_installed_you":"Una vez instalado Auto-TE, puedes programarlo desde la pestaña NOC. Las reglas incluyen <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> y <code>blackhole ddos</code>. Check hace una prueba en seco con tráfico real; Deploy lo hace de verdad, errores incluidos.",
"help.one_game_four_doors_puzzles_are":"Un juego, cuatro puertas, y las reglas se eligen al empezar una red y quedan fijadas después. Los puzles son pequeños nudos que deshacer, sin reloj. Sandbox te da mil millones de dólares, todo desbloqueado (tu propio cable submarino incluido) y el caos que elijas, pero sin insignias. Normal viene de tres maneras: Congelación de cambios (pocas caídas, entregas en días, sin bandeja ni escasez), De guardia (el juego clásico) y BGP a las 3 de la mañana (más caídas y más largas, más DDoS). Los escenarios son retos hechos a mano con un objetivo y un plazo, y el reto semanal da a todos el mismo mundo durante una semana. Comparte tu resultado con la tarjeta del menú.",
"help.one_game_four_doors_and_the":"Un juego, cuatro puertas, y las reglas se eligen al empezar una red y quedan fijadas después. Los puzles son pequeños nudos que deshacer, sin reloj. Sandbox te da mil millones de dólares, todo desbloqueado (tu propio cable submarino incluido) y el caos que elijas, pero sin insignias. Normal viene de tres maneras: Congelación de cambios (pocas caídas, entregas en días, sin escasez), De guardia (el juego clásico) y BGP a las 3 de la mañana (más caídas y más largas, más DDoS). Los escenarios son retos hechos a mano con un objetivo y un plazo, y el reto semanal da a todos el mismo mundo durante una semana. Comparte tu resultado con la tarjeta del menú.",
"help.open_peers_with_anyone_selective":"Open hace peering con cualquiera. Selective quiere ver tráfico primero. Restrictive (los Tier 1) solo hace peering con gigantes, por PNIs. Paid significa justo eso. Las grandes redes selectivas también tienen sus rachas: en algunas ciudades rechazan peers nuevos durante unos meses, o solo aceptan PNIs, y de vez en cuando tumban una sesión que ya tenías. Prueba otra ciudad o un PNI, y vuelve a preguntar más tarde.",
"help.out_of_port_speed_bundle_up":"¿Te quedas sin velocidad de puerto? Agrupa hasta 8 puertos idénticos al mismo proveedor de tránsito, IX o PNI en un LAG. Cada miembro cuesta un puerto entero; el hash de flujos nunca es perfectamente uniforme, así que un paquete transporta cerca del 95 % de la suma.",
"help.pni_lead_times":"Plazos de los PNI",
@ -2008,15 +1992,11 @@
"hud_and_panels.has_errors_not_running":"tiene errores, no funciona",
"hud_and_panels.incidents_so_far":"Incidentes hasta ahora",
"hud_and_panels.install_auto_te_cost_mo_mo":"Instalar Auto-TE <small>{cost} + {mo}/mes</small>",
"hud_and_panels.large_peering_model_is_on_it":"El Gran Modelo de Peering está en ello.",
"hud_and_panels.lv_n":"Nv {n}",
"hud_and_panels.n_incident":{"one":"{n} incidente","other":"{n} incidentes"},
"hud_and_panels.n_message_waiting_for_an_answer":{"one":"{n} mensaje esperando respuesta.","other":"{n} mensajes esperando respuesta."},
"hud_and_panels.n_more_networks":{"one":"+{n} red más","other":"+{n} redes más"},
"hud_and_panels.n_networks_d_days_left":"{n} redes · quedan {d} días",
"hud_and_panels.n_new_notification":{"one":"{n} notificación nueva","other":"{n} notificaciones nuevas"},
"hud_and_panels.n_rules_live":"{n} reglas activas",
"hud_and_panels.n_session_is_down_on_its":{"one":"{n} sesión está caída por su límite de max-prefix.","other":"{n} sesiones están caídas por su límite de max-prefix."},
"hud_and_panels.n_small_networks":"{n} redes pequeñas",
"hud_and_panels.n_special_requirement":{"one":"{n} requisito especial","other":"{n} requisitos especiales"},
"hud_and_panels.n_unhappy_customer_price_mo_at":{"one":"{n} cliente descontento, {price}/mes en riesgo","other":"{n} clientes descontentos, {price}/mes en riesgo"},
@ -2592,6 +2572,7 @@
"ops.by_hand_note":"Para cuando lo quieres todo hecho ya: cada peer en cada exchange, un kit de redundancia, PNIs con todos.",
"ops.caches_rent":"Instalarla es gratis, pero cada caja cuesta {price}/mes en espacio y energía.",
"ops.cheapest":"El más barato",
"ops.day_d":"Día {d}",
"ops.ff_desc":"etiquetó un puerto en {city} como «TODO: arreglar luego (no arreglar)»",
"ops.ff_hostname":"renombró el router de {city} a router-final-FINAL-v2",
"ops.ff_lag":"añadió un miembro LAG de tránsito de más en {city}. Funciona, así que se queda.",
@ -2630,8 +2611,6 @@
"ops.l_snag":{"one":"se atascó con {where} y la pausó hasta que le eches un vistazo","other":"se atascó con {n} órdenes ({where}) y las pausó hasta que les eches un vistazo"},
"ops.l_transit":{"one":"amplió el tránsito en {where}","other":"amplió el tránsito {n} veces ({where})"},
"ops.locked":"El NOC contrata becarios a partir del nivel de clientes {lv}.",
"ops.lpm_off":"La bandeja de peering sigue siendo cosa tuya. Para eso está el Large Peering Model; {name} no contesta correos.",
"ops.lpm_on":"El Large Peering Model contesta la bandeja de peering. {name} no se mete en su camino.",
"ops.mood_annie":"Annie respondió tres preguntas antes de que las hicieras, desde la mesa más cercana.",
"ops.mood_broke":"{name} ya tiene la lista de la compra para cuando llegue el presupuesto del mes que viene.",
"ops.mood_busy":"{name} ha tenido una semana movida y va por la tercera bebida energética.",
@ -2744,61 +2723,14 @@
"page.series_of_tubes_build_the_internet":"Series of Tubes: construye internet, un tubo a la vez",
"page.world_map_of_your_network":"Mapa del mundo de tu red",
"page.x":"<?php echo \"sorry\"; ?>",
"peering_inbox.accept_all_requests":"Aceptar todas las solicitudes",
"peering_inbox.an_ai_agent_that_answers_every":"Un agente de IA que responde por ti todas las solicitudes de peering y alertas de max-prefix, todos los días. {price}/año. Entrenado con veinte años de listas de correo de peering.",
"peering_inbox.answered_your_mail_a_accepted_d":"Respondió tu correo: {a} aceptadas, {d} rechazadas.",
"peering_inbox.asked_netchill_s_peering_team_to":"Pidió al equipo de peering de NetChill que «por favor aporte más Netchill».",
"peering_inbox.configured_lim_prefixes_received_got":"Configurado: {lim} prefijos. Recibido: {got}.",
"peering_inbox.day_d":"Día {d}",
"peering_inbox.dear_sir_or_madam_please_peer":"Estimado señor o señora: por favor, hagamos peering. Tenemos tres prefijos y planes muy grandes.",
"peering_inbox.decline_all_requests":"Rechazar todas las solicitudes",
"peering_inbox.declined_who_at_ix_not_a":"Rechazó a {who} en {ix}: «no encaja estratégicamente». Sí encajaba.",
"peering_inbox.every_exchange_port_brings_mail":"Cada puerto de intercambio trae correo. Responde las solicitudes de peering y mira las sesiones que alcanzan su límite de max-prefix: ¿es crecimiento o una fuga de rutas? El correo sin responder te da fama, y las redes selectivas se enteran.",
"peering_inbox.everyone_who_asks_gets_a_session":"Todo el que pregunta recibe una sesión, y los route servers funcionan. Muchos peers diminutos y muchas alertas de max-prefix.",
"peering_inbox.fewer_requests_and_you_answer_them":"Menos solicitudes, y las respondes tú mismo. Sin route servers: ve a cada intercambio y solicita las redes que quieras.",
"peering_inbox.fire_the_ai":"Despedir a la IA",
"peering_inbox.good_call_it_was_a_route":"<b>Buena decisión: era una fuga de rutas.</b><br>{who} encontró un route-map con un dedazo. La sesión vuelve sola en unos días.",
"peering_inbox.greetings_we_are_a_fast_growing":"Saludos. Somos una red en rápido crecimiento. El año pasado teníamos un cliente; este año tenemos dos.",
"peering_inbox.hello_please_find_attached_our":"Hola, adjuntamos nuestra solicitud de peering como documento de Word, escaneado de una impresión.",
"peering_inbox.hey_quick_one_can_you_peer":"Hola, una rápida: ¿podéis hacer peering con nosotros en {ix}? Tenemos un servidor de Minecraft importantísimo.",
"peering_inbox.hi_we_would_like_to_peer":"¡Hola! Nos gustaría hacer peering contigo en {ix}. Nuestro registro de PeeringDB está al día.",
"peering_inbox.hire_it_mo_mo":"Contratarla <small>{mo}/mes</small>",
"peering_inbox.inbox_zero_enjoy_it_while_it":"Bandeja a cero. Disfrútalo mientras dure.",
"peering_inbox.keep_it_down":"Mantenerla caída",
"peering_inbox.kept_who_down_at_ix_for":"Mantuvo caído a {who} en {ix} por «crecimiento sospechoso». Había crecido en un cliente.",
"peering_inbox.kept_who_down_at_ix_it":"Mantuvo caído a {who} en {ix}: era una fuga de rutas. Acertó de lleno.",
"peering_inbox.large_peering_model":"Gran Modelo de Peering",
"peering_inbox.large_peering_model_is_answering":"El Gran Modelo de Peering está respondiendo tu correo",
"peering_inbox.max_prefix_limit_hit_who_at":"<b>Límite de max-prefix alcanzado: {who} en {ix}.</b><br>La sesión está caída hasta que la mires.",
"peering_inbox.max_prefix_limit_hit_who_at_5c56":"Límite de max-prefix alcanzado: {who} en {ix}",
"peering_inbox.mostly_ignores_email":"Casi nunca contesta el correo",
"peering_inbox.n_day_ago":{"one":"hace {n} día","other":"hace {n} días"},
"peering_inbox.n_unanswered":{"one":"{n} sin responder","other":"{n} sin responder"},
"peering_inbox.no_mail_yet_buy_an_ix":"Aún no hay correo. Compra un puerto IX y llegará.",
"peering_inbox.nobody_asks_and_no_route_servers":"Nadie pregunta, y no hay route servers. Los clientes oyen que eres difícil de contactar, así que te llaman menos, y tu reputación se hunde.",
"peering_inbox.open_to_all":"Abierto a todos",
"peering_inbox.opened_a_ticket_with_itself_to":"Abrió un ticket consigo mismo para revisar sus propias decisiones. Las aprobó.",
"peering_inbox.peering_request_fifth_attempt_is":"Solicitud de peering, quinto intento. ¿Hay alguien ahí?",
"peering_inbox.peeringdb_last_updated_n_year_ago":{"one":"PeeringDB actualizado por última vez hace {n} año","other":"PeeringDB actualizado por última vez hace {n} años"},
"peering_inbox.peeringdb_updated_last_month":"PeeringDB actualizado el mes pasado",
"peering_inbox.please_configure_sessions_with_us_at":"Por favor, configura sesiones con nosotros en {ix}. Nosotros haremos las nuestras la semana que viene, o la otra.",
"peering_inbox.price_year_it_never_sleeps_never":"{price}/año. Nunca duerme, nunca se queja y a menudo se equivoca.",
"peering_inbox.raise_all_max_prefix_limits":"Subir todos los límites de max-prefix",
"peering_inbox.raise_the_limit":"Subir el límite",
"peering_inbox.raised_the_max_prefix_limit_for":"Subió el límite de max-prefix de {who} en {ix} a {n}. Parecían simpáticos.",
"peering_inbox.raised_the_max_prefix_limit_for_7b4b":"Subió el límite de max-prefix de {who} en {ix}. Bien, esta vez.",
"peering_inbox.replied_to_a_peering_request_with":"Respondió a una solicitud de peering con un haiku sobre BGP. Aún sin respuesta.",
"peering_inbox.session_with_who_is_back_up":"<b>La sesión con {who} vuelve a estar activa.</b><br>Nuevo límite: {n} prefijos. Prometen actualizar PeeringDB.",
"peering_inbox.signed_you_up_for_a_webinar":"Te apuntó a un seminario web sobre «El peering en la era de la IA».",
"peering_inbox.that_was_a_route_leak_who":"<b>Era una fuga de rutas.</b><br>{who} anunciaba {n} prefijos: una tabla completa. La próxima vez, mantenla caída.",
"peering_inbox.the_session_stays_down_who_will":"<b>La sesión sigue caída.</b><br>{who} actualizará PeeringDB y volverá a preguntar. Con el tiempo.",
"peering_inbox.their_peeringdb_says_lim_last":{"one":"Su PeeringDB dice {lim}, actualizado por última vez hace {n} año.","other":"Su PeeringDB dice {lim}, actualizado por última vez hace {n} años."},
"peering_inbox.tidied_up_a_session_it_decided":"Ordenó una sesión que decidió que estaba sin uso: quitó el peering a {who} en {ix}.",
"peering_inbox.updated_your_peeringdb_record_your":"Actualizó tu registro de PeeringDB. Tu teléfono del NOC ahora es una pizzería.",
"peering_inbox.we_noticed_you_are_at_ix":"Notamos que estás en {ix}. Nosotros también. ¿Probamos?",
"peering_inbox.who_asked_a_mailing_list_whether":"<b>{who} preguntó en una lista de correo si alguien tiene un contacto que funcione en {me}.</b><br>Su solicitud de peering lleva un mes en tu bandeja.",
"peering_inbox.who_at_ix_was_sending_a":"{who} en {ix} enviaba una tabla completa, y el límite de max-prefix era lo único que lo frenaba. Con el límite subido, los prefijos de {net} apuntan a su sótano. El tráfico hacia {net} por tránsito cae en un agujero negro unos días.",
"peering_inbox.wrote_a_thousand_word_apology_to":"Escribió una disculpa de mil palabras a una red con la que nunca hiciste peering.",
"peering_desk.closed_desc":"Se rechaza toda solicitud de peering, y no hay route servers. Los clientes oyen que eres difícil de contactar, así que te llaman menos.",
"peering_desk.n_more_exchanges":{"one":"{n} intercambio más","other":"{n} intercambios más"},
"peering_desk.n_new_sessions_at_ix":{"one":"Mesa de peering: {n} sesión nueva en {ix} ({pol}).","other":"Mesa de peering: {n} sesiones nuevas en {ix} ({pol})."},
"peering_desk.n_new_sessions_at_ix_declined":{"one":"Mesa de peering: {n} sesión nueva en {ix}, {d} rechazadas ({pol}).","other":"Mesa de peering: {n} sesiones nuevas en {ix}, {d} rechazadas ({pol})."},
"peering_desk.n_requests_declined":{"one":"Mesa de peering: {n} solicitud rechazada ({pol}).","other":"Mesa de peering: {n} solicitudes rechazadas ({pol})."},
"peering_desk.open_desc":"Toda red que lo pide recibe una sesión, y los route servers funcionan.",
"peering_desk.open_to_all":"Abierto a todos",
"peering_desk.selective_desc":"Las redes pequeñas del intercambio y los recién llegados con PeeringDB al día reciben una sesión; el resto se rechaza en silencio. Sin route servers: solicita las redes que quieras en cada intercambio.",
"peering_policy.a_new_vp_wants_to_monetise":"Un nuevo vicepresidente quiere «monetizar la interconexión» en este mercado.",
"peering_policy.already_reach_you_through_your":"Ya llegan a ti a través de tu proveedor de tránsito aquí y creen que eso está bien.",
"peering_policy.moved_everything_in_this_city_to":"Movieron todo en esta ciudad a PNIs. Lee su página de PearingDB, las 40 páginas.",
@ -2841,6 +2773,34 @@
"pni_all.pni_size":"Capacidad del PNI",
"pni_all.setup_total":"Coste total de instalación",
"pni_all.traffic_charges_apply":"También se aplican cargos de tráfico de {price} por Gbps.",
"pni_list.chip_not_reached":"Sin alcance",
"pni_list.chip_peers_at":"Peering en {list}",
"pni_list.chip_pni_at":"PNI en {list}",
"pni_list.chip_pni_elsewhere":"PNI en otro sitio: {list}",
"pni_list.chip_pni_here":"PNI aquí · {port} · {p}",
"pni_list.chip_pni_here_on_order":"PNI aquí · pedido",
"pni_list.chip_via_a_cone":"Por el cono de un peer",
"pni_list.chip_via_cone":"Por el cono de {net}",
"pni_list.chip_via_transit":"Por tránsito",
"pni_list.f_all":"Todas",
"pni_list.f_pni":"Ya con PNI",
"pni_list.f_transit":"Por tránsito",
"pni_list.f_worth":"Merece la pena",
"pni_list.list_more":"{list} +{n}",
"pni_list.little_to_gain_here":"Poco que ganar aquí: {g}",
"pni_list.n_here":"{g} aquí",
"pni_list.n_networks_w_worth_it":{"one":"{n} red · {w} merecen la pena","other":"{n} redes · {w} merecen la pena"},
"pni_list.nothing_matches":"Ninguna red de aquí coincide con este filtro.",
"pni_list.saves_minus_cost":"Ahorra {saved} de tránsito al mes; el PNI cuesta {cost} al mes.",
"pni_list.sort_az":"Orden: A–Z",
"pni_list.sort_worth":"Orden: las que merecen la pena primero",
"pni_list.via_drop":"{g} descartados",
"pni_list.via_haul":"{g} por el backbone",
"pni_list.via_ix":"{g} IX",
"pni_list.via_transit":"{g} tránsito",
"pni_list.with_port":"PNI de {port}: {val}",
"pni_list.worth_it":"Merece la pena",
"pni_list.worth_rule":"⭐ Merece la pena: un PNI aquí ahorra más tránsito del que cuesta al mes, lleva al menos 1 Gbps que hoy descartas, o quita al menos 1 Gbps de un puerto de exchange lleno al 80 %.",
"pnis.a_new_region_is_coming_online":"Pronto se pondrá en marcha una región nueva. Lleva poniéndose en marcha pronto desde 2019.",
"pnis.about_n_days_to_go_nothing":"Faltan unos {n} días. No queda más que esperar, o perseguirlo.",
"pnis.augment_with_net_delivered_in_city":"<b>Ampliación con {net} entregada en {city}.</b><br>Ahora {port}.",
@ -2892,16 +2852,18 @@
"progress.a_port_on_ix_brrr_manaus":"Un puerto en IX.brrr Manaos",
"progress.broadband_in_city":"Banda ancha en {city}",
"progress.carnaval_delivered_in_full":"Carnaval entregado por completo",
"progress.city_on_your_network":"{city} en tu red",
"progress.customer_level_lv_of_max":"Nivel de cliente {lv} de {max}",
"progress.days_in_a_row_at_g":"Días seguidos con {g} o más",
"progress.days_in_a_row_with_99":"Días seguidos con el 99,5 % servido",
"progress.done_in_d_days":"¡Hecho en {d} días!",
"progress.floods_that_got_through":"Inundaciones que pasaron",
"progress.ix_brrr_ports":"Puertos IX.brrr",
"progress.ix_brrr_ports_on_your_backbone":"Puertos IX.brrr en tu backbone",
"progress.monthly_profit":"Beneficio mensual",
"progress.n_of_m":"{n} de {m}",
"progress.next_name_unlocks_what":"Siguiente: {name} desbloquea {what}",
"progress.not_tier_1_right_now_why":"Ahora no eres Tier 1: {why}.",
"progress.pop_in_city":"POP en {city}",
"progress.seoul_served_well":"Seúl bien servida (entregado y rápido)",
"progress.terabit_floods_held":"Inundaciones de terabits contenidas",
"progress.under_attack_now":"Bajo ataque ahora",
"progress.your_score_peak_traffic":"Tu puntuación: tráfico pico",
@ -3279,7 +3241,7 @@
"routing_and_routers.unplug_something_first_used_ports":"<b>Desconecta algo primero.</b><br>Hay {used} puertos en uso, y con un router menos solo hay {max}.",
"rules.a_billion_dollars_every_unlock_your":"Mil millones de dólares, todo desbloqueado, tu propio cable submarino.",
"rules.a_cut_now_and_then":"Algún corte de vez en cuando.",
"rules.a_third_of_the_outages_no_ddos":"Un tercio de las caídas, sin DDoS. PNI y obras en días. Sin bandeja de entrada, sin escasez, sin rutas agotadas, sin de-peering.",
"rules.a_third_of_the_outages_no_ddos_pnis":"Un tercio de las caídas, sin DDoS. PNI y obras en días. Sin escasez, sin rutas agotadas, sin de-peering.",
"rules.bgp_at_3_a_m":"BGP a las 3 de la mañana",
"rules.change_freeze":"Congelación de cambios",
"rules.chaos_calm":"Tranquilo",
@ -3296,7 +3258,7 @@
"rules.on_call":"De guardia",
"rules.one_small_network_one_tricky_goal":"Una red pequeña, un objetivo con truco.",
"rules.puzzle":"Puzle",
"rules.real_lead_times_real_outages_a":"Plazos reales, caídas reales, una bandeja de peering llena. El juego clásico.",
"rules.real_lead_times_real_outages_a_real":"Plazos reales, caídas reales, un mercado real. El juego clásico.",
"rules.rules_are_locked_for_this_network":"{rules}: las reglas están fijadas para esta red.",
"rules.the_real_thing_your_pager_has":"El juego de verdad. Tu busca tiene opiniones.",
"rules.your_pager_never_sleeps":"Tu busca no duerme nunca.",
@ -3330,15 +3292,15 @@
"scenarios.1_6t_on_every_hop_from":"1.6T en cada salto de Miami a Madrid y de Lisboa a Lagos, y 100 Gbps servidos",
"scenarios.90_days_in_a_row_with":"90 días seguidos con el 99,5 % de la demanda servida",
"scenarios.99_reach_and_150_gbps_served":"99 % de alcance y 150 Gbps servidos",
"scenarios.99_reach_and_200_gbps_served":"99 % de alcance y 200 Gbps servidos sin arruinarte",
"scenarios.a_path_from_cape_town_to":"Un camino de Ciudad del Cabo a El Cairo, POPs en Lagos y Nairobi, y 150 Gbps servidos",
"scenarios.a_path_from_cape_town_to_cairo_lagos":"Un camino de Ciudad del Cabo a El Cairo, con Lagos y Nairobi también en tu red, y 150 Gbps servidos",
"scenarios.a_path_from_los_angeles_to":"Un camino de Los Ángeles a Sídney con 1.6T en cada salto, un camino de Los Ángeles a Tokio, y 150 Gbps servidos",
"scenarios.a_path_from_marseille_to_singapore":"Un camino de Marsella a Singapur, y 80 Gbps entre Asia y el resto de tu red durante 30 días seguidos",
"scenarios.amsterdam_hosting_capital_of_europe":"Ámsterdam, capital del hosting de Europa, en plena temporada de botnets. Todas las tostadoras inteligentes, vigilabebés y frigoríficos sin parchear del planeta han elegido bando, y no es el tuyo. Una inundación cada pocos días, cada vez más en terabits, mientras todo lo demás también se rompe. Empiezas con equipo mayor desbloqueado, y lo vas a necesitar.",
"scenarios.broadband_in_sydney_melbourne":"Banda ancha en Sídney, Melbourne, Brisbane, Adelaida y Perth, y dos cables distintos al extranjero",
"scenarios.broadband_in_sydney_melbourne_served":"Banda ancha en Sídney, Melbourne, Brisbane, Adelaida y Perth, dos cables distintos al extranjero, y 500 Gbps servidos",
"scenarios.cape_to_cairo":"De El Cabo a El Cairo",
"scenarios.cape_town_build_a_network_across":"Ciudad del Cabo. Construye una red por África: cada frontera quiere su propio permiso, y la mitad de las redes eléctricas no están de tu parte.",
"scenarios.cogentle_and_goggle_are_not_speaking":"Cogentle y Goggle no se hablan, y esta vez es para siempre. Compra el tránsito barato si te atreves.",
"scenarios.connect_panama_city_to_bogota_lima":"Bogotá, Lima, Santiago y São Paulo unidas a Ciudad de Panamá, y 150 Gbps servidos",
"scenarios.deliver_carnaval_in_full":"Entrega el Carnaval por completo",
"scenarios.every_cable_through_the_red_sea":"Todos los cables del Mar Rojo están cortados, y también el salto a Egipto. Consigue igualmente que Marsella hable con Singapur: rodeando África, por tierra, o dando la vuelta al planeta por el otro lado.",
"scenarios.every_ix_is_run_by_de":"Todos los IX los gestiona DE-KICKS",
@ -3350,22 +3312,22 @@
"scenarios.mid_atlantic_accent":"Acento mesoatlántico",
"scenarios.only_spatzle_ix":"Solo Spätzle-IX",
"scenarios.order_and_progress":"Orden y Progreso",
"scenarios.ponta_delgada_in_the_azores_halfway":"Ponta Delgada, en las Azores, a medio camino por el Atlántico. De Florida a España y de Lisboa a Lagos es demasiado largo para una onda de 1.6T: en línea recta, cada una lleva 1.2T. Aterriza en las islas intermedias, empieza la luz de nuevo, y cada salto va a 1.6T o más. Empiezas con equipo de 1.6T desbloqueado.",
"scenarios.pops_in_bogota_lima_santiago_and":"POPs en Bogotá, Lima, Santiago y São Paulo, y 150 Gbps servidos",
"scenarios.ports_on_15_ix_brrr_exchanges":"Puertos en 15 intercambios IX.brrr, uno de ellos en Manaos, y 200 Gbps servidos",
"scenarios.ponta_delgada_azores_lisbon_lagos":"Ponta Delgada, en las Azores, a medio camino por el Atlántico. De Florida a España es demasiado largo para una onda de 1.6T: en línea recta, lleva 1.2T. Aterriza en las islas intermedias, empieza la luz de nuevo, y cada salto va a 1.6T o más. De Lisboa a Lagos el 1.6T llega de un tirón, pero caro: las Canarias salen más baratas. Empiezas con equipo de 1.6T desbloqueado.",
"scenarios.ports_on_15_ix_brrr_exchanges_backbone":"Puertos en 15 intercambios IX.brrr que tu backbone une a São Paulo, uno de ellos en Manaos, y 200 Gbps servidos",
"scenarios.reach_50_of_the_internet_and":"Llega al 50 % de internet y sirve 300 Gbps",
"scenarios.red_sea_crisis":"Crisis del Mar Rojo",
"scenarios.rio_from_scratch_carnaval_starts_in":"Río desde cero. El Carnaval empieza en 90 días y quiere 400 Gbps durante cinco días seguidos. Todo el mundo está mirando.",
"scenarios.sandbox_mode_a_billion_dollars_chaos":"<b>Modo sandbox</b><br>Mil millones de dólares y todo desbloqueado. Caos: {chaos}. Construye el internet que siempre quisiste, y ten a mano una excavadora de repuesto.",
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Modo sandbox</b><br>Mil millones de dólares, todos los desbloqueos y nada se rompe nunca. Construye el internet que siempre quisiste.",
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. Brasil es un continente: cuarenta intercambios IX.brrr, miles de provedores, y el Amazonas entre tú y el norte.",
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Seúl. Los eyeballs más rápidos y hambrientos de la Tierra, tránsito a cuatro veces el precio, y tres operadores históricos que te facturan cada gigabit que les mandas.",
"scenarios.seoul_sender_pays_d":"Seúl, donde paga quien envía. Cada Gbps que un carrier entrega en Corea te cuesta una tasa de «paga quien envía» además de la factura de tránsito, los tres operadores históricos solo hablan por un PNI de pago, el gigabit doméstico se vende al precio de un bibimbap y los usuarios coreanos notan cada milisegundo. El tránsito en Tokio es barato, si tus clientes aguantan el viaje.",
"scenarios.seoul_sender_pays_goal":"{g} Gbps servidos, Seúl bien servida ({q} %), 99 % de alcance y beneficio mensual",
"scenarios.shark_season_subsea_cuts_twice_as":"Temporada de tiburones: los cortes submarinos son el doble de probables",
"scenarios.start_in_panama_city_nothing_crosses":"Empieza en Ciudad de Panamá. Nada cruza el Tapón del Darién por tierra, y los Andes se interponen en todo lo demás.",
"scenarios.start_in_stuttgart_where_nobody":"Empieza en Stuttgart, donde nadie vende tránsito. Llega a internet solo por peering, PNIs, cachés y tu propia fibra. Sin tránsito en ningún sitio, nunca.",
"scenarios.start_with_only_100k":"Empieza con solo $100k",
"scenarios.sydney_2013_the_toilet_paper_group":"Sídney, 2013. El Toilet Paper Group tendió su propia fibra hasta los sótanos de los edificios, y la red nacional gritó que escogía lo mejor. Te toca: sáltate la Nearly Broadband Network, paga el gravamen y llega primero.",
"scenarios.tallinn_ships_drag_their_anchors":"Tallin. Los barcos arrastran sus anclas sobre los cables del Báltico tres veces más a menudo de lo normal.",
"scenarios.tallinn_nobody_sells_transit_anchors":"Tallin, donde nadie vende tránsito: tu internet está al otro lado del agua. Los barcos arrastran sus anclas sobre los cables del Báltico tres veces más a menudo de lo normal.",
"scenarios.the_cogentle_spat":"La riña de Cogentle",
"scenarios.transit_costs_30_more":"El tránsito cuesta un 30 % más",
"scenarios.twice_the_failures":"El doble de fallos",
@ -3419,6 +3381,7 @@
"sites_and_service.level_n":"Nivel {n}",
"sites_and_service.n_ports":"{n} puertos",
"sites_and_service.no_path_right_now":"sin ruta ahora mismo",
"sites_and_service.p_of_city_s_traffic_comes_from_kr":"<b>El {p} del tráfico de {city} viene de {to}: {ms} ms de ida y vuelta.</b> Los usuarios coreanos notan todo lo que pase de 8 ms, y por encima de 40 ms la banda ancha cuenta como mal servicio. Sirve más desde Seúl: peering, cachés y PNIs aquí, o tránsito local si aguantas la tasa de «paga quien envía».",
"sites_and_service.p_of_city_s_traffic_is":"<b>El {p} del tráfico de {city} se lleva por backhaul al tránsito de {to}: {ms} ms de ida y vuelta.</b> Los usuarios notan cualquier cosa por encima de 20 ms (unos 1500 km), y pasados 50 ms la banda ancha y los servicios de internet cuentan como mal servicio. Compra tránsito aquí o cerca, o haz peering local.",
"sites_and_service.path_latency_lat":"Latencia de la ruta: <b>{lat}</b>",
"sites_and_service.pn_routers":"{pn} routers",
@ -3429,9 +3392,7 @@
"sites_peering_caches.bgp_session_established":"Sesión BGP establecida.",
"sites_peering_caches.cache_installed_in_city_net_shipped":"<b>¡{cache} instalada en {city}!</b><br>{net} la envió gratis. Pagas {mo}/mes de energía.",
"sites_peering_caches.could_you_resend_the_loa_you":"<b>«¿Podrías reenviar la LOA?»</b><br>Ya la has enviado cuatro veces.",
"sites_peering_caches.hello_i_am_large_peering_model":"¡Hola! Soy el Gran Modelo de Peering. He leído tu bandeja de entrada y ya tengo opiniones.",
"sites_peering_caches.it_is_with_the_provisioning_team":"<b>«Está con el equipo de aprovisionamiento.»</b><br>Nadie ha conocido nunca al equipo de aprovisionamiento.",
"sites_peering_caches.large_peering_model_is_hired_your":"<b>El Gran Modelo de Peering está contratado.</b><br>Tu bandeja de entrada es ahora problema suyo. {price} al año, facturado mensualmente.",
"sites_peering_caches.n_new_session_at_ix_small":{"one":"<b>{n} sesión nueva en {ix}.</b><br>Redes pequeñas, pero suman, y todas cuentan para el club.","other":"<b>{n} sesiones nuevas en {ix}.</b><br>Redes pequeñas, pero suman, y todas cuentan para el club."},
"sites_peering_caches.net_accepted":"¡{net} aceptó!",
"sites_peering_caches.net_declined_the_pni_why":"<b>{net} rechazó el PNI.</b><br>{why}",
@ -3439,11 +3400,8 @@
"sites_peering_caches.net_does_not_do_port_pnis":"<b>{net} no hace PNIs de {port}.</b><br>Nada menor de 100G. Vuelve con más tráfico, o una óptica mayor.",
"sites_peering_caches.net_says_not_yet_send_them":"<b>{net} dice que todavía no.</b><br>Mándale primero {min}+ Gbps.",
"sites_peering_caches.pni_with_net_ordered_eta_a":"<b>PNI con {net} pedido.</b><br>{eta}. Una interconexión cruzada en {dc}, cuando alguien encuentre la LOA.",
"sites_peering_caches.raised_n_max_prefix_limits_all":"<b>Subidos {n} límites de max-prefix.</b><br>Todo crecimiento, ninguna fuga. Qué suerte.",
"sites_peering_caches.raised_n_max_prefix_limits_one":{"one":"<b>Subidos {n} límites de max-prefix.</b><br>Uno de ellos era una fuga de rutas. Ahora está en el NOC.","other":"<b>Subidos {n} límites de max-prefix.</b><br>{k} de ellos eran fugas de rutas. Ahora están en el NOC."},
"sites_peering_caches.second_lag_member_added_one_member":"<b>Segundo miembro LAG añadido.</b><br>Ahora hay un miembro en cada edificio, así que un edificio a oscuras solo tumba la mitad del puerto.",
"sites_peering_caches.second_site_live_in_city_b":"<b>Segunda sede activa en {city}.</b><br>{b} está unida a {a} por tu propio anillo metropolitano. Mueve algunos uplinks allí desde las pestañas Tránsito y Peering.",
"sites_peering_caches.the_ai_is_gone_it_left":"<b>La IA se fue.</b><br>Dejó un documento de traspaso de 40 páginas. Trata sobre todo de sí misma.",
"sites_peering_caches.they_checked_your_pearingdb_page_and":"Revisaron tu página de PearingDB y les gustaron las cifras de tráfico.",
"sites_peering_caches.we_are_waiting_on_the_colo":"<b>«Estamos esperando al colo para la interconexión cruzada.»</b><br>El colo dice que está esperando por ellos.",
"sites_peering_caches.your_account_manager_found_the_order":"<b>Tu gestor de cuenta encontró el pedido bajo un escritorio.</b><br>Está un mes más cerca.",
@ -3465,6 +3423,7 @@
"slots.last_played_ago":"Última partida: {ago}",
"slots.load_the_newest_version":"Cargar la versión más nueva",
"slots.more_for_name":"Más de {name}",
"slots.n_day_ago":{"one":"hace {n} día","other":"hace {n} días"},
"slots.n_h_ago":{"one":"hace {n} h","other":"hace {n} h"},
"slots.name_is_open_in_another_window":"{name} está abierta en otra ventana",
"slots.name_is_waiting_in_your_other":"<b>{name} te espera en tu otra ventana.</b><br>Cambia a ella para seguir jugando.",
@ -3488,7 +3447,6 @@
"slots.this_window_stopped_saving_so_it":"Se guardó una versión más nueva en otra ventana, así que esta dejó de guardar en vez de sobrescribirla.",
"slots.two_windows_one_network":"Dos ventanas, una red",
"slots.your_networks":"Tus redes",
"slots.your_networks_switch_or_start_another":"Tus redes <small>cambia o empieza otra</small>",
"slots.your_other_networks_share_this_browser":"Tus otras redes comparten el almacenamiento de este navegador. Exporta las que quieras conservar y bórralas aquí para hacer sitio.",
"sold_out.a_hyperscaler_bought_every_wave_of":"Un hiperescalador compró la semana pasada todas las ondas de ese tamaño en esta ruta.",
"sold_out.not_big_enough_yet_list":"Aún no es lo bastante grande: {list}",
@ -3505,6 +3463,39 @@
"sold_out.tier_1s_never_peer_at_ixs":"Los Tier 1 nunca hacen peering en IX",
"sold_out.wants_need_gbps_of_traffic_from":"Quiere ≥ {need} Gbps de tráfico tuyo (envías {dem})",
"sold_out.wants_you_to_be_a_tier":"Quiere que seas Tier 2, o que le envíes ≥ {need} Gbps (envías {dem})",
"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · unos {ms} ms · lista en unos {n} días",
"specialist.a_consortium_is_selling_seats_on":"Un consorcio vende plazas en {name}, un cable nuevo de {a} a {b}. Tus propios pares de fibra en él, antes de ser Tier 1.",
"specialist.ask_for_a_demo_unit_p_n":"Unidad demo: +{p}%, {n} días",
"specialist.charter_signed_name":"Carta firmada: {name}.",
"specialist.consortium_seat":"Plaza en el consorcio",
"specialist.consortium_seat_name":"Plaza en el consorcio: {name}",
"specialist.demo_unit_ships_in_n_days":"La unidad demo llega en {n} días",
"specialist.dig_your_own_as_a_pioneer":"Excava la tuya como pionero (+{p}%) · {price} · {n} días",
"specialist.global_backbone":"Backbone global",
"specialist.includes_pops_at_the_landings_price":"Incluye POPs en los aterrizajes: {price}.",
"specialist.keep_it":"Mantener",
"specialist.low_latency_boutique":"Boutique de baja latencia",
"specialist.n_fiber_pairs":{"one":"{n} par de fibra","other":"{n} pares de fibra"},
"specialist.part_owner_of_the_sea":"Copropietario del mar",
"specialist.pick":"Elegir",
"specialist.pick_a_charter":"Elige una carta",
"specialist.routes_r_of_n_beat_the":"Rutas financieras más rápidas por tu propia fibra que por cualquier camino alquilado: {r}/{n} · clientes de latencia que pagan: {c}/{m}",
"specialist.speed_of_light":"Velocidad de la luz",
"specialist.spotted_your_broadband_in_a_one":"Vieron tu banda ancha en {a}, una de las grandes ciudades de usuarios.",
"specialist.spotted_your_cap_of_dark_fiber":"Vieron tus {cap} de fibra oscura iluminada entre {a} y {b}.",
"specialist.spotted_your_ms_ms_a_b_path":"Vieron tu camino {a}–{b} de {ms} ms.",
"specialist.spotted_your_two_diverse_paths_a":"Vieron tus dos caminos diversos entre {a} y {b}.",
"specialist.take_a_seat_on_a_consortium":"Toma una plaza en un cable de consorcio",
"specialist.the_classic_game_grow_everywhere_and":"El juego clásico: crece en todas partes, los clientes siguen tu nivel y Tier 1 es la victoria.",
"specialist.the_consortium_runs_the_cable_your":"El consorcio opera el cable y sus repetidores. Tus pares los iluminas con tus propias ópticas; un corte en el cable también los corta.",
"specialist.the_vendor_ships_a_demo_name":"El fabricante envía un {name} de demostración en {n} días. Hasta que tu nivel lo alcance, cada unidad cuesta un {p}% más.",
"specialist.trading_firms_and_other_latency_customers":"Las firmas de trading y otros clientes de latencia llaman más a menudo y pagan un {p}% más. Gana Velocidad de la luz: supera la latencia alquilada más rápida en {r} rutas financieras con tu propia fibra mientras {c} clientes de latencia te pagan. Tier 1 sigue contando.",
"specialist.what_kind_of_network_are_you":"¿Qué tipo de red estás construyendo? Puedes elegir durante {n} días más; hasta entonces eres un Backbone global.",
"specialist.win_as_a_low_latency_boutique":"Gana como boutique de baja latencia",
"specialist.won_on_date_your_own_glass":"Ganado el {date}: tu propia fibra superó todos los caminos alquilados.",
"specialist.you_own_n_fiber_pairs_on":"Firmado: tienes {n} pares de fibra en {name}, {a} ⇄ {b}. Zarpan los buques cableros; listo en unos {d} días.",
"specialist.your_own_fiber_pairs_on_a":"Tus propios pares de fibra en un cable submarino nuevo: paga ahora tu parte de la obra e ilumínalos con tus ópticas cuando llegue a tierra.",
"specialist.your_own_glass_beats_every_leased":"Tu propia fibra supera todos los caminos alquilados en tres rutas financieras, y los traders pagan por ello. ¡La boutique ha ganado!",
"supply_chain.as_when_you_started":"igual que cuando empezaste",
"supply_chain.chip_shortage_every_router_vendor_is":"<b>¡Escasez de chips!</b><br>Todos los fabricantes de routers esperan los mismos chips. Los routers nuevos y sus mejoras cuestan un 40 % más durante {n} días. Plazo de entrega: «sí».",
"supply_chain.every_cable_ship_is_booked":"<b>Todos los barcos cableros están reservados.</b><br>Los hiperescaladores han contratado todos los barcos cableros y cuadrillas de zanjas del planeta. La fibra y los cables nuevos cuestan un 30 % más durante {n} días.",
@ -3517,7 +3508,9 @@
"supply_chain.what_p_n_days_left":"{what} +{p} · quedan {n} días",
"supply_chain.your_price_lock_covers_you_until":"Tu precio fijo te cubre hasta {date}.",
"title.a_billion_dollars_and_every_toy":"Mil millones de dólares y todos los juguetes de la tienda.",
"title.as_number":"Número de AS",
"title.asia_hub_great_peering_far_from":"Hub de Asia. Gran peering, lejos de casa.",
"title.asn_not_usable":"Ese número de AS no enruta: elige uno de 1 a 4294967294 que no use ninguna red del mapa (ni AS 0, ni 23456, ni rangos de documentación o privados). Déjalo vacío para uno al azar.",
"title.back_to_my_network":"Volver a mi red",
"title.big_hungry_market_few_providers":"Mercado enorme y hambriento, pocos proveedores.",
"title.build_an_internet_lay_fiber_between":"Construye un internet. Tiende fibra entre ciudades, compra tránsito, haz peering en intercambios, firma con empresas y mantén contentos a los eyeballs mientras retroexcavadoras, tiburones y fugas de rutas hacen lo posible por detenerte.",

View file

@ -755,6 +755,7 @@
"city_panel.second_site_and_metro_ring":"Second site et anneau métropolitain",
"city_panel.sell_internet_to_homes_here_starts":"Vends de l’Internet aux foyers d’ici. Démarre vers {start} et grimpe vers {max} tant que le service est bon. Rapporte {rate} par Gbps servi, chaque mois.",
"city_panel.sells_pnis_down_to_1g":"vend des PNI dès 1G",
"city_panel.sender_pays_fee_per_gbps":"L’expéditeur paie : +{fee} par Gbps de transit",
"city_panel.served_in_city":"Servi à {city}",
"city_panel.serving_v":"dessert {v}",
"city_panel.shut_this_pop_down_its_links":"Ferme ce POP : ses liens, ports et caches partent avec, et chaque client qui en dépend est lâché, avec une pénalité de résiliation anticipée.",
@ -806,7 +807,6 @@
"common.aug":"août",
"common.auto":"Auto",
"common.auto_enrolled":"inscrit d’office",
"common.average":"Dans la moyenne",
"common.avoid":"Éviter",
"common.back":"Retour",
"common.back_to_the_map":"Retour à la carte",
@ -822,7 +822,6 @@
"common.bgp_hijack":"Détournement BGP",
"common.bgp_sessions":"Sessions BGP",
"common.big_league":"Cour des grands",
"common.black_hole":"Trou noir",
"common.blitz":"Blitz",
"common.boot_time":"Temps de boot",
"common.boot_times":"Temps de boot",
@ -830,7 +829,6 @@
"common.box_6ee3":"− cache",
"common.build_time":"Durée des travaux",
"common.building":"en construction",
"common.bumped":"relancé",
"common.bunker_two":"Bunker 2",
"common.busiest_links":"Liens les plus chargés",
"common.business_customers":"Clients entreprises",
@ -992,8 +990,6 @@
"common.import_a_save":"Importer une sauvegarde",
"common.in_progress":"en cours",
"common.in_use":"Utilisé",
"common.inbox":"Boîte",
"common.inbox_zero":"Inbox zéro.",
"common.incident":"Incident",
"common.incidents":"Incidents",
"common.incidents_survived":"Incidents surmontés",
@ -1121,7 +1117,6 @@
"common.oops":"Oups",
"common.open":"Ouvrir",
"common.open_bank":"Ouvrir la banque",
"common.open_inbox":"Ouvrir la boîte",
"common.open_infra":"Ouvrir Infra",
"common.open_lease":"Voir la location",
"common.open_noc":"Ouvrir le NOC",
@ -1146,7 +1141,6 @@
"common.peered_ce2f":"En peering ✓",
"common.peering":"Peering",
"common.peering_first":"Le peering d’abord",
"common.peering_inbox":"Boîte de peering",
"common.peering_policy":"Politique de peering",
"common.peering_ratio":"Ratio de peering",
"common.peering_spat":"Brouille de peering",
@ -1195,7 +1189,6 @@
"common.remove_port":"Retirer le port",
"common.remove_script":"Supprimer le script",
"common.request":"Demander",
"common.responsive":"Réactif",
"common.resume":"Reprendre",
"common.retention_offer":"Offre de fidélisation",
"common.revenue":"Chiffre d’affaires",
@ -1301,7 +1294,6 @@
"common.to":"Vers",
"common.toaster_wrangler":"Dompteur de grille-pain",
"common.today":"Aujourd’hui",
"common.today_4203":"aujourd’hui",
"common.toggle_sound":"Activer/couper le son",
"common.too_far_for_this_cable":"trop loin pour ce câble",
"common.traceroute":"Traceroute",
@ -1363,7 +1355,6 @@
"common.your_network":"Ton réseau",
"common.your_pop":"Ton POP",
"common.your_pops":"Tes POP",
"common.your_reputation":"Votre réputation",
"common.zombie_route":"Route zombie",
"compute.attack_hauled_to_scrubbing_in_city":"Attaque acheminée vers le scrubbing de {city}",
"compute.courtesy_route_to_new_networks":"Route de courtoisie vers les nouveaux réseaux",
@ -1610,8 +1601,6 @@
"failures.a_kilometre_of_copper_went_missing":"Un kilomètre de « cuivre » a disparu de ta tranchée {a}–{b}. C’était ta fibre. Le ferrailleur l’a renvoyée avec un petit mot.",
"failures.a_landslide_in_the_andes_buried":"Un glissement de terrain dans les Andes a enseveli ta fibre {a}–{b}.",
"failures.a_llama_herd_trampled_the_fiber":"Un troupeau de lamas a piétiné la balise de fibre sur {a}–{b}. Puis un tractopelle a trouvé la fibre.",
"failures.a_member_at_ix_leaked_the":"Un membre de {ix} a fait fuiter la table de routage complète dans le route server. Les limites max-prefix ont sauté partout. Ton peering là-bas est tombé.",
"failures.a_member_at_ix_leaked_the_5563":"Un membre de {ix} a fait fuiter la table de routage complète dans le route server. Les limites max-prefix ont sauté partout. Ton peering là-bas, à {city}, est tombé.",
"failures.a_new_tech_in_a_tidied":"Un nouveau technicien à {a} a « rangé » le sac de nœuds de câbles. Ton lien {a}–{b} faisait partie du sac de nœuds.",
"failures.a_new_tech_in_city_used":"Un nouveau technicien à {city} a utilisé de la Vegemite comme pâte thermique. Elle conduit le goût, pas la chaleur, et ton routeur a cuit.",
"failures.a_optic_on_a_b_overheated":"Une optique {optic} sur {a}–{b} a surchauffé et n’est plus qu’un porte-clés hors de prix.",
@ -1678,7 +1667,6 @@
"failures.load_shedding_stage_n_in_city":"Délestage niveau {n} à {city}, et tu n’as pas de groupe électrogène. Achètes-en un : ici, ce n’est pas optionnel.",
"failures.load_shedding_took_out_site_in":"Le délestage a mis {site} hors service à {city}. {other} a tenu, donc le POP tourne à mi-capacité. Tout ce qui n’est branché que sur le site éteint est hors ligne.",
"failures.magpie_swooping_season_the_field":"Saison des attaques de pies : les techniciens sur {a}–{b} refusent de sortir de la camionnette, et ta coupure reste coupée.",
"failures.max_prefix_meltdown":"Max-prefix en vrac",
"failures.metro_ring_cut":"Anneau métro coupé",
"failures.microbursts_on_a_b_overflow_shallow":"Les microbursts sur {a}–{b} débordent les buffers peu profonds des routeurs : 0,5 % de perte en pointe, et chaque visio le remarque.",
"failures.microbursts_on_a_b_your_deep":"<b>Microbursts sur {a}–{b}.</b><br>Tes routeurs à buffers profonds les ont absorbés. Personne n’a rien remarqué.",
@ -1770,7 +1758,6 @@
"fiber_and_hardware.those_optics_need_the_regen_site":"<b>Ces optiques ont besoin du site de régénération.</b><br>Retire d’abord les canaux longue distance, ou garde le site.",
"fiber_modals.a_fiber_pair_of_your_own":"Une paire de fibres rien qu’à toi. Le verre ne coûte pas cher, le matériel si : tu achètes un système de ligne avec un amplificateur tous les {km} km, puis des optiques pour chaque canal. Ton matériel peut tomber en panne, et c’est toi qui répares.",
"fiber_modals.a_fiber_pair_on_cable_km":"Une paire de fibres sur {cable}, {km} km. Elle partage le câble avec les longueurs d’onde de tout le monde, ancres comprises.",
"fiber_modals.build_your_own_level_3":"Construire la tienne <small>niveau 3</small>",
"fiber_modals.build_your_own_price_n_days":"Construire la tienne <small>{price} · ~{n} jours</small>",
"fiber_modals.dark_fiber_across_the_chinese_border":"La fibre noire à travers la frontière chinoise n’est pas à vendre. Achète plutôt une longueur d’onde transfrontalière.",
"fiber_modals.dark_fiber_unlocks_at_customer_level":"La fibre noire se débloque au niveau clients 2. Il te faut la taille critique pour justifier l’achat de ton propre matériel optique.",
@ -1794,11 +1781,8 @@
"fiber_modals.your_pop_needs_a_fabric_port":"Ton POP · il y faut un port fabric",
"game_and_settings.delete_and_start_over":"Supprimer et recommencer",
"game_and_settings.export_save_download_a_file":"Exporter la sauvegarde <small>télécharger un fichier</small>",
"game_and_settings.import_a_save_from_a_file":"Importer une sauvegarde <small>depuis un fichier</small>",
"game_and_settings.import_failed_that_save_is_damaged":"<b>Échec de l’import.</b><br>Cette sauvegarde est endommagée et n’a pas pu être chargée. Ta partie en cours est intacte.",
"game_and_settings.name_and_everything_it_owns_will":"{name} et tout ce qu’il possède seront supprimés. Impossible de revenir en arrière.",
"game_and_settings.scenarios_amp_weekly_challenge":"Scénarios &amp; défi de la semaine",
"game_and_settings.share_your_network_image_card":"Partager ton réseau <small>carte image</small>",
"game_and_settings.start_a_new_network":"Créer un nouveau réseau ?",
"game_and_settings.welcome_back_name_imported_and_saved":"<b>Bon retour, {name}.</b><br>Partie importée et sauvegardée sur cet appareil.",
"game_and_settings.your_game_saves_itself_every_few":"Ta partie se sauvegarde toute seule sur cet appareil, toutes les quelques secondes.",
@ -1869,7 +1853,7 @@
"help.each_pop_s_router_model_caps":"Le modèle de routeur de chaque POP plafonne son port le plus rapide (100G, 400G, 800G, 1.6T) et ce qu’il peut acheminer. Des longueurs d’onde et des ports plus gros exigent de meilleurs routeurs aux deux bouts. Les meilleurs modèles se débloquent avec ton niveau clients. Avec un seul routeur, chaque upgrade coûte une journée d’indisponibilité.",
"help.event_networks_a_final_a_festival":"Les réseaux événementiels (une finale, un festival, une keynote) veulent un pic de capacité dans une ville pendant quelques jours et paient en une fois à la fin, au prorata de la part du public servie ; en dessous de 70 %, tu paies une pénalité. Les chaînes SD-WAN relient 3–6 de tes POP en hub-and-spoke, donc un seul spoke cassé fâche tout le contrat. Dès que tu exploites ta propre fibre noire, les opérateurs veulent louer tes canaux libres en alien waves et, sur la fibre que tu as construite toi-même, une paire libre.",
"help.events_chains_and_wholesale":"Événements, chaînes et vente en gros",
"help.every_ix_port_brings_peering":"Chaque port IX amène des demandes de peering et des alertes max-prefix, dans l’onglet Réseaux. Une session qui dépasse sa limite reste coupée tant que vous n’y regardez pas : relevez la limite si c’est de la croissance, laissez-la coupée si c’est une fuite. Ignorez votre courrier et les réseaux sélectifs deviennent plus exigeants.",
"help.every_ix_port_brings_requests":"Chaque port d’IX apporte des demandes de peering, et ta politique de peering, dans l’onglet Réseaux, y répond : Ouverte accepte tout le monde, Sélective accepte les réseaux qui valent le coup et décline discrètement les autres, Fermée les décline toutes. Une fois par semaine, le journal du NOC fait le bilan.",
"help.every_link_has_latency_high":"Chaque lien a une latence. Les traders haute fréquence paient une fortune pour un circuit qui tient dans leur budget de latence ; achemine-les en « Latence minimale ». Les clients de sauvegarde en masse s’en fichent, alors achemine-les en « Chemin des écoliers » sur tes liens calmes pour garder les chargés libres.",
"help.home_broadband_users_they_mostly":"Abonnés haut débit résidentiels. Ils téléchargent surtout depuis des CDN et te paient par Gbps livré. Sers-les bien et ils se multiplient.",
"help.how_the_internet_works_here":"Comment marche Internet ici",
@ -1883,7 +1867,7 @@
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) est transit-free. Tu fais du peering avec tous les géants de la planète et tu ne paies personne pour atteindre Internet. Il t’a fallu {days} jours et {n} incidents.",
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG et compagnie reviennent chaque année. Inscris-toi dans l’onglet Offres pour $8k. Pendant les 45 jours suivants, les réseaux sélectifs présents dans cette région ne demandent que la moitié du trafic habituel avant de faire du peering avec toi. Parfois, tu gagnes aussi la tombola.",
"help.once_auto_te_is_installed_you":"Une fois Auto-TE installé, tu peux le programmer depuis l’onglet NOC. Parmi les règles : <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> et <code>blackhole ddos</code>. Vérifier fait un essai à blanc sur le trafic réel ; Déployer le rend réel, erreurs comprises.",
"help.one_game_four_doors_puzzles_are":"Un jeu, quatre portes, et les règles se choisissent au démarrage d’un réseau puis restent verrouillées. Les casse-têtes sont de petits nœuds à défaire, sans horloge. Le bac à sable te donne un milliard de dollars, tout débloqué (ton propre câble sous-marin compris) et autant de chaos que tu veux, mais pas de badges. Normal existe en trois versions : Gel des changements (peu de pannes, livraisons en quelques jours, ni boîte de réception ni pénurie), D’astreinte (le jeu classique) et BGP à 3 h du matin (plus de pannes, plus longues, plus de DDoS). Les scénarios sont des défis faits main avec un objectif et une échéance, et le défi de la semaine donne à tous le même monde pendant une semaine. Partage ton résultat avec la carte du menu.",
"help.one_game_four_doors_and_the":"Un jeu, quatre portes, et les règles se choisissent au démarrage d’un réseau puis restent verrouillées. Les casse-têtes sont de petits nœuds à défaire, sans horloge. Le bac à sable te donne un milliard de dollars, tout débloqué (ton propre câble sous-marin compris) et autant de chaos que tu veux, mais pas de badges. Normal existe en trois versions : Gel des changements (peu de pannes, livraisons en quelques jours, pas de pénurie), D’astreinte (le jeu classique) et BGP à 3 h du matin (plus de pannes, plus longues, plus de DDoS). Les scénarios sont des défis faits main avec un objectif et une échéance, et le défi de la semaine donne à tous le même monde pendant une semaine. Partage ton résultat avec la carte du menu.",
"help.open_peers_with_anyone_selective":"Ouverte : peering avec tout le monde. Sélective : veut d’abord voir du trafic. Restrictive (les Tier 1) : peering uniquement avec les géants, via PNI. Payante : tout est dans le nom. Les gros réseaux sélectifs ont aussi leurs humeurs : dans certaines villes, ils refusent les nouveaux peers pendant quelques mois, ou n’acceptent que des PNI, et de temps en temps ils coupent une session que tu avais déjà. Essaie une autre ville ou un PNI, et redemande plus tard.",
"help.out_of_port_speed_bundle_up":"Port trop petit ? Regroupe jusqu’à 8 ports identiques vers le même fournisseur de transit, IX ou PNI en un LAG. Chaque membre coûte un port complet ; le hachage des flux n’est jamais parfaitement équilibré, donc un bundle transporte environ 95 % de la somme.",
"help.pni_lead_times":"Délais des PNI",
@ -2008,15 +1992,11 @@
"hud_and_panels.has_errors_not_running":"contient des erreurs, à l’arrêt",
"hud_and_panels.incidents_so_far":"Incidents jusqu’ici",
"hud_and_panels.install_auto_te_cost_mo_mo":"Installer Auto-TE <small>{cost} + {mo}/mois</small>",
"hud_and_panels.large_peering_model_is_on_it":"Large Peering Model s’en occupe.",
"hud_and_panels.lv_n":"Niv. {n}",
"hud_and_panels.n_incident":{"one":"{n} incident","other":"{n} incidents"},
"hud_and_panels.n_message_waiting_for_an_answer":{"one":"{n} message attend une réponse.","other":"{n} messages attendent une réponse."},
"hud_and_panels.n_more_networks":{"one":"+{n} autre réseau","other":"+{n} autres réseaux"},
"hud_and_panels.n_networks_d_days_left":"{n} réseaux · {d} j restants",
"hud_and_panels.n_new_notification":{"one":"{n} nouvelle notification","other":"{n} nouvelles notifications"},
"hud_and_panels.n_rules_live":"{n} règles actives",
"hud_and_panels.n_session_is_down_on_its":{"one":"{n} session est coupée par sa limite max-prefix.","other":"{n} sessions sont coupées par leur limite max-prefix."},
"hud_and_panels.n_small_networks":"{n} petits réseaux",
"hud_and_panels.n_special_requirement":{"one":"{n} exigence spéciale","other":"{n} exigences spéciales"},
"hud_and_panels.n_unhappy_customer_price_mo_at":{"one":"{n} client mécontent, {price}/mois en jeu","other":"{n} clients mécontents, {price}/mois en jeu"},
@ -2592,6 +2572,7 @@
"ops.by_hand_note":"Pour quand tu veux tout, tout de suite : chaque peer sur chaque exchange, un kit de redondance, des PNI avec tout le monde.",
"ops.caches_rent":"Gratuit à installer, mais chaque boîtier coûte {price}/mois en espace et en électricité.",
"ops.cheapest":"Le moins cher",
"ops.day_d":"Jour {d}",
"ops.ff_desc":"a étiqueté un port à {city} « TODO : corriger plus tard (ne pas corriger) »",
"ops.ff_hostname":"a renommé le routeur de {city} en router-final-FINAL-v2",
"ops.ff_lag":"a ajouté un membre LAG de transit en trop à {city}. Ça marche, donc ça reste.",
@ -2630,8 +2611,6 @@
"ops.l_snag":{"one":"a calé sur {where} et l'a mis en pause en attendant que tu jettes un œil","other":"a calé sur {n} ordres ({where}) et les a mis en pause en attendant que tu jettes un œil"},
"ops.l_transit":{"one":"a renforcé le transit à {where}","other":"a renforcé le transit {n} fois ({where})"},
"ops.locked":"Le NOC recrute des stagiaires à partir du niveau clients {lv}.",
"ops.lpm_off":"La boîte de peering reste à toi. Pour ça, il y a le Large Peering Model ; {name} ne fait pas les mails.",
"ops.lpm_on":"Le Large Peering Model répond à la boîte de peering. {name} reste hors de son chemin.",
"ops.mood_annie":"Annie a répondu à trois questions avant que tu les poses, depuis le bureau le plus proche.",
"ops.mood_broke":"{name} a déjà sa liste de courses pour le budget du mois prochain.",
"ops.mood_busy":"{name} a eu une semaine chargée et en est à sa troisième boisson énergisante.",
@ -2744,61 +2723,14 @@
"page.series_of_tubes_build_the_internet":"Series of Tubes : construis Internet, un tuyau à la fois",
"page.world_map_of_your_network":"Carte du monde de ton réseau",
"page.x":"<?php echo \"désolé\"; ?>",
"peering_inbox.accept_all_requests":"Accepter toutes les demandes",
"peering_inbox.an_ai_agent_that_answers_every":"Un agent IA qui répond pour vous à chaque demande de peering et à chaque alerte max-prefix, tous les jours. {price}/an. Entraîné sur vingt ans de listes de diffusion sur le peering.",
"peering_inbox.answered_your_mail_a_accepted_d":"A répondu à votre courrier : {a} acceptées, {d} refusées.",
"peering_inbox.asked_netchill_s_peering_team_to":"A demandé à l’équipe peering de NetChill de « fournir plus de Netchill, svp ».",
"peering_inbox.configured_lim_prefixes_received_got":"Configuré : {lim} préfixes. Reçus : {got}.",
"peering_inbox.day_d":"Jour {d}",
"peering_inbox.dear_sir_or_madam_please_peer":"Madame, Monsieur, merci de bien vouloir peerer. Nous avons trois préfixes et de très grands projets.",
"peering_inbox.decline_all_requests":"Refuser toutes les demandes",
"peering_inbox.declined_who_at_ix_not_a":"A refusé {who} à {ix} : « pas stratégique ». Ils l’étaient.",
"peering_inbox.every_exchange_port_brings_mail":"Chaque port IX amène du courrier. Répondez aux demandes de peering et regardez les sessions qui dépassent leur limite max-prefix : croissance ou fuite de routes ? Le courrier sans réponse vous fait une réputation, et les réseaux sélectifs en entendent parler.",
"peering_inbox.everyone_who_asks_gets_a_session":"Quiconque demande obtient une session, et les route servers fonctionnent. Beaucoup de minuscules peers, et beaucoup d’alertes max-prefix.",
"peering_inbox.fewer_requests_and_you_answer_them":"Moins de demandes, et vous y répondez vous-même. Pas de route servers : allez sur chaque exchange demander les réseaux que vous voulez.",
"peering_inbox.fire_the_ai":"Licencier l’IA",
"peering_inbox.good_call_it_was_a_route":"<b>Bien vu : c’était une fuite de routes.</b><br>{who} a trouvé une route-map mal tapée. La session revient toute seule dans quelques jours.",
"peering_inbox.greetings_we_are_a_fast_growing":"Salutations. Nous sommes un réseau en pleine croissance. L’an dernier nous avions un client ; cette année, deux.",
"peering_inbox.hello_please_find_attached_our":"Bonjour, veuillez trouver ci-joint notre demande de peering au format Word, scannée depuis une impression.",
"peering_inbox.hey_quick_one_can_you_peer":"Salut, petite question : vous pouvez peerer avec nous à {ix} ? On a un serveur Minecraft très important.",
"peering_inbox.hi_we_would_like_to_peer":"Bonjour ! Nous aimerions faire du peering avec vous à {ix}. Notre fiche PeeringDB est à jour.",
"peering_inbox.hire_it_mo_mo":"L’embaucher <small>{mo}/mois</small>",
"peering_inbox.inbox_zero_enjoy_it_while_it":"Inbox zéro. Profitez-en tant que ça dure.",
"peering_inbox.keep_it_down":"La laisser coupée",
"peering_inbox.kept_who_down_at_ix_for":"A laissé {who} coupé à {ix} pour « croissance suspecte ». Ils avaient gagné un client.",
"peering_inbox.kept_who_down_at_ix_it":"A laissé {who} coupé à {ix} : c’était une fuite de routes. Dans le mille.",
"peering_inbox.large_peering_model":"Large Peering Model",
"peering_inbox.large_peering_model_is_answering":"Large Peering Model répond à votre courrier",
"peering_inbox.max_prefix_limit_hit_who_at":"<b>Limite max-prefix atteinte : {who} à {ix}.</b><br>La session reste coupée tant que vous n’y avez pas regardé.",
"peering_inbox.max_prefix_limit_hit_who_at_5c56":"Limite max-prefix atteinte : {who} à {ix}",
"peering_inbox.mostly_ignores_email":"Ignore presque tous les e-mails",
"peering_inbox.n_day_ago":{"one":"il y a {n} jour","other":"il y a {n} jours"},
"peering_inbox.n_unanswered":{"one":"{n} sans réponse","other":"{n} sans réponse"},
"peering_inbox.no_mail_yet_buy_an_ix":"Pas encore de courrier. Achetez un port IX, il viendra.",
"peering_inbox.nobody_asks_and_no_route_servers":"Personne ne demande, et pas de route servers. Les clients entendent dire que vous êtes difficile à joindre, donc moins d’entre eux appellent, et votre réputation coule.",
"peering_inbox.open_to_all":"Ouverte à tous",
"peering_inbox.opened_a_ticket_with_itself_to":"S’est ouvert un ticket pour revoir ses propres décisions. Il les a approuvées.",
"peering_inbox.peering_request_fifth_attempt_is":"Demande de peering, cinquième tentative. Il y a quelqu’un ?",
"peering_inbox.peeringdb_last_updated_n_year_ago":{"one":"PeeringDB mis à jour il y a {n} an","other":"PeeringDB mis à jour il y a {n} ans"},
"peering_inbox.peeringdb_updated_last_month":"PeeringDB mis à jour le mois dernier",
"peering_inbox.please_configure_sessions_with_us_at":"Merci de configurer les sessions avec nous à {ix}. Nous ferons les nôtres la semaine prochaine, ou celle d’après.",
"peering_inbox.price_year_it_never_sleeps_never":"{price}/an. Ne dort jamais, ne se plaint jamais et se trompe souvent.",
"peering_inbox.raise_all_max_prefix_limits":"Relever toutes les limites max-prefix",
"peering_inbox.raise_the_limit":"Relever la limite",
"peering_inbox.raised_the_max_prefix_limit_for":"A relevé la limite max-prefix de {who} à {ix} à {n}. Ils avaient l’air sympas.",
"peering_inbox.raised_the_max_prefix_limit_for_7b4b":"A relevé la limite max-prefix de {who} à {ix}. À raison, cette fois.",
"peering_inbox.replied_to_a_peering_request_with":"A répondu à une demande de peering par un haïku sur BGP. Pas de réponse pour l’instant.",
"peering_inbox.session_with_who_is_back_up":"<b>La session avec {who} est rétablie.</b><br>Nouvelle limite : {n} préfixes. Ils promettent de mettre PeeringDB à jour.",
"peering_inbox.signed_you_up_for_a_webinar":"Vous a inscrit à un webinaire sur « Le peering à l’ère de l’IA ».",
"peering_inbox.that_was_a_route_leak_who":"<b>C’était une fuite de routes.</b><br>{who} annonçait {n} préfixes : une table complète. La prochaine fois, laissez-la coupée.",
"peering_inbox.the_session_stays_down_who_will":"<b>La session reste coupée.</b><br>{who} va mettre PeeringDB à jour et redemander. Un jour.",
"peering_inbox.their_peeringdb_says_lim_last":{"one":"Leur PeeringDB indique {lim}, mis à jour il y a {n} an.","other":"Leur PeeringDB indique {lim}, mis à jour il y a {n} ans."},
"peering_inbox.tidied_up_a_session_it_decided":"A fait le ménage dans les sessions qu’il jugeait inutiles : a dépeeré {who} à {ix}.",
"peering_inbox.updated_your_peeringdb_record_your":"A mis à jour votre fiche PeeringDB. Le numéro de votre NOC est maintenant celui d’une pizzeria.",
"peering_inbox.we_noticed_you_are_at_ix":"Nous avons remarqué que vous êtes à {ix}. Nous aussi. On y va ?",
"peering_inbox.who_asked_a_mailing_list_whether":"<b>{who} a demandé sur une liste de diffusion si quelqu’un avait un contact qui marche chez {me}.</b><br>Leur demande de peering a dormi un mois dans votre boîte.",
"peering_inbox.who_at_ix_was_sending_a":"{who} à {ix} envoyait une table complète, et la limite max-prefix était la seule chose qui la retenait. Limite relevée, les préfixes de {net} pointent vers leur cave. Le trafic vers {net} via le transit part dans un trou noir pendant quelques jours.",
"peering_inbox.wrote_a_thousand_word_apology_to":"A écrit mille mots d’excuses à un réseau avec qui vous n’avez jamais peeré.",
"peering_desk.closed_desc":"Toute demande de peering est déclinée, et pas de route servers. Les clients entendent dire que tu es difficile à joindre, donc moins d’entre eux appellent.",
"peering_desk.n_more_exchanges":{"one":"{n} autre exchange","other":"{n} autres exchanges"},
"peering_desk.n_new_sessions_at_ix":{"one":"Bureau du peering : {n} nouvelle session à {ix} ({pol}).","other":"Bureau du peering : {n} nouvelles sessions à {ix} ({pol})."},
"peering_desk.n_new_sessions_at_ix_declined":{"one":"Bureau du peering : {n} nouvelle session à {ix}, {d} déclinées ({pol}).","other":"Bureau du peering : {n} nouvelles sessions à {ix}, {d} déclinées ({pol})."},
"peering_desk.n_requests_declined":{"one":"Bureau du peering : {n} demande déclinée ({pol}).","other":"Bureau du peering : {n} demandes déclinées ({pol})."},
"peering_desk.open_desc":"Tout réseau qui demande obtient une session, et les route servers fonctionnent.",
"peering_desk.open_to_all":"Ouverte à tous",
"peering_desk.selective_desc":"Les petits réseaux de l’exchange et les nouveaux venus avec un PeeringDB à jour obtiennent une session ; les autres sont discrètement déclinés. Pas de route servers : va demander les réseaux que tu veux sur chaque exchange.",
"peering_policy.a_new_vp_wants_to_monetise":"Un nouveau VP veut « monétiser l’interconnexion » sur ce marché.",
"peering_policy.already_reach_you_through_your":"Te joignent déjà via ton fournisseur de transit ici et trouvent que ça suffit.",
"peering_policy.moved_everything_in_this_city_to":"Ont tout migré en PNI dans cette ville. Merci de lire leur page PearingDB, les 40 pages.",
@ -2841,6 +2773,34 @@
"pni_all.pni_size":"Capacité du PNI",
"pni_all.setup_total":"Coût total d'installation",
"pni_all.traffic_charges_apply":"Des frais de trafic de {price} par Gbps s'appliquent également.",
"pni_list.chip_not_reached":"Non joignable",
"pni_list.chip_peers_at":"Peering à {list}",
"pni_list.chip_pni_at":"PNI à {list}",
"pni_list.chip_pni_elsewhere":"PNI ailleurs : {list}",
"pni_list.chip_pni_here":"PNI ici · {port} · {p}",
"pni_list.chip_pni_here_on_order":"PNI ici · en commande",
"pni_list.chip_via_a_cone":"Via le cône d'un peer",
"pni_list.chip_via_cone":"Via le cône de {net}",
"pni_list.chip_via_transit":"Via le transit",
"pni_list.f_all":"Tous",
"pni_list.f_pni":"Déjà en PNI",
"pni_list.f_transit":"Via le transit",
"pni_list.f_worth":"Rentable",
"pni_list.list_more":"{list} +{n}",
"pni_list.little_to_gain_here":"Peu à gagner ici : {g}",
"pni_list.n_here":"{g} ici",
"pni_list.n_networks_w_worth_it":{"one":"{n} réseau · {w} rentable(s)","other":"{n} réseaux · {w} rentable(s)"},
"pni_list.nothing_matches":"Aucun réseau ici ne correspond à ce filtre.",
"pni_list.saves_minus_cost":"Économise {saved} de transit par mois ; le PNI coûte {cost} par mois.",
"pni_list.sort_az":"Tri : A–Z",
"pni_list.sort_worth":"Tri : les rentables d'abord",
"pni_list.via_drop":"{g} perdus",
"pni_list.via_haul":"{g} par le backbone",
"pni_list.via_ix":"{g} IX",
"pni_list.via_transit":"{g} transit",
"pni_list.with_port":"PNI {port} : {val}",
"pni_list.worth_it":"Rentable",
"pni_list.worth_rule":"⭐ Rentable : un PNI ici économise plus de transit qu'il ne coûte par mois, transporte au moins 1 Gbps que tu perds aujourd'hui, ou retire au moins 1 Gbps d'un port d'exchange rempli à 80 %.",
"pnis.a_new_region_is_coming_online":"Une nouvelle région arrive bientôt. Elle arrive bientôt depuis 2019.",
"pnis.about_n_days_to_go_nothing":"Encore environ {n} jours. Rien à faire qu’attendre, ou relancer.",
"pnis.augment_with_net_delivered_in_city":"<b>Extension avec {net} livrée à {city}.</b><br>Désormais {port}.",
@ -2892,16 +2852,18 @@
"progress.a_port_on_ix_brrr_manaus":"Un port sur IX.brrr Manaus",
"progress.broadband_in_city":"Internet à domicile à {city}",
"progress.carnaval_delivered_in_full":"Carnaval servi en entier",
"progress.city_on_your_network":"{city} sur votre réseau",
"progress.customer_level_lv_of_max":"Niveau clients {lv} sur {max}",
"progress.days_in_a_row_at_g":"Jours d’affilée à {g} ou plus",
"progress.days_in_a_row_with_99":"Jours d’affilée à 99,5 % servi",
"progress.done_in_d_days":"Fini en {d} jours !",
"progress.floods_that_got_through":"Vagues passées",
"progress.ix_brrr_ports":"Ports IX.brrr",
"progress.ix_brrr_ports_on_your_backbone":"Ports IX.brrr sur votre backbone",
"progress.monthly_profit":"Bénéfice mensuel",
"progress.n_of_m":"{n} sur {m}",
"progress.next_name_unlocks_what":"Prochain : {name} débloque {what}",
"progress.not_tier_1_right_now_why":"Pas Tier 1 pour l’instant : {why}.",
"progress.pop_in_city":"POP à {city}",
"progress.seoul_served_well":"Séoul bien servie (livré et rapide)",
"progress.terabit_floods_held":"Vagues térabit encaissées",
"progress.under_attack_now":"Sous attaque",
"progress.your_score_peak_traffic":"Ton score : pic de trafic",
@ -3279,7 +3241,7 @@
"routing_and_routers.unplug_something_first_used_ports":"<b>Débranche d’abord quelque chose.</b><br>{used} ports sont utilisés, et avec un routeur de moins tu n’en aurais que {max}.",
"rules.a_billion_dollars_every_unlock_your":"Un milliard de dollars, tout débloqué, ton propre câble sous-marin.",
"rules.a_cut_now_and_then":"Une coupure de temps en temps.",
"rules.a_third_of_the_outages_no_ddos":"Un tiers des pannes, pas de DDoS. PNI et chantiers en quelques jours. Pas de boîte de réception, pas de pénurie, pas de routes épuisées, pas de dépeering.",
"rules.a_third_of_the_outages_no_ddos_pnis":"Un tiers des pannes, pas de DDoS. PNI et chantiers en quelques jours. Pas de pénurie, pas de routes épuisées, pas de dépeering.",
"rules.bgp_at_3_a_m":"BGP à 3 h du matin",
"rules.change_freeze":"Gel des changements",
"rules.chaos_calm":"Calme",
@ -3296,7 +3258,7 @@
"rules.on_call":"D’astreinte",
"rules.one_small_network_one_tricky_goal":"Un petit réseau, un objectif retors.",
"rules.puzzle":"Casse-tête",
"rules.real_lead_times_real_outages_a":"De vrais délais, de vraies pannes, une boîte de peering pleine. Le jeu classique.",
"rules.real_lead_times_real_outages_a_real":"De vrais délais, de vraies pannes, un vrai marché. Le jeu classique.",
"rules.rules_are_locked_for_this_network":"{rules} : les règles sont verrouillées pour ce réseau.",
"rules.the_real_thing_your_pager_has":"Le vrai jeu. Ton bipeur a des opinions.",
"rules.your_pager_never_sleeps":"Ton bipeur ne dort jamais.",
@ -3330,15 +3292,15 @@
"scenarios.1_6t_on_every_hop_from":"1.6T sur chaque saut de Miami à Madrid et de Lisbonne à Lagos, et 100 Gbps servis",
"scenarios.90_days_in_a_row_with":"90 jours d’affilée avec 99,5 % de la demande servie",
"scenarios.99_reach_and_150_gbps_served":"99 % de couverture et 150 Gbps servis",
"scenarios.99_reach_and_200_gbps_served":"99 % de couverture et 200 Gbps servis sans faire faillite",
"scenarios.a_path_from_cape_town_to":"Un chemin du Cap au Caire, des POP à Lagos et Nairobi, et 150 Gbps servis",
"scenarios.a_path_from_cape_town_to_cairo_lagos":"Un chemin du Cap au Caire, avec Lagos et Nairobi aussi sur votre réseau, et 150 Gbps servis",
"scenarios.a_path_from_los_angeles_to":"Un chemin de Los Angeles à Sydney en 1.6T sur chaque saut, un chemin de Los Angeles à Tokyo, et 150 Gbps servis",
"scenarios.a_path_from_marseille_to_singapore":"Un chemin de Marseille à Singapour, et 80 Gbps entre l’Asie et le reste de ton réseau pendant 30 jours d’affilée",
"scenarios.amsterdam_hosting_capital_of_europe":"Amsterdam, capitale européenne de l’hébergement, en pleine saison des botnets. Chaque grille-pain connecté, babyphone et frigo jamais patché de la planète a choisi son camp, et ce n’est pas le tien. Une vague tous les quelques jours, de plus en plus souvent dans les térabits, pendant que tout le reste continue de casser aussi. Tu commences avec du matériel plus gros déjà débloqué, et tu en auras besoin.",
"scenarios.broadband_in_sydney_melbourne":"Internet à domicile à Sydney, Melbourne, Brisbane, Adélaïde et Perth, et deux câbles différents vers l’étranger",
"scenarios.broadband_in_sydney_melbourne_served":"Internet à domicile à Sydney, Melbourne, Brisbane, Adélaïde et Perth, deux câbles différents vers l’étranger, et 500 Gbps servis",
"scenarios.cape_to_cairo":"Du Cap au Caire",
"scenarios.cape_town_build_a_network_across":"Le Cap. Construis un réseau à travers l’Afrique : chaque frontière veut son propre permis, et la moitié des réseaux électriques ne sont pas de ton côté.",
"scenarios.cogentle_and_goggle_are_not_speaking":"Cogentle et Goggle ne se parlent plus, et cette fois c’est définitif. Achète le transit pas cher, si tu l’oses.",
"scenarios.connect_panama_city_to_bogota_lima":"Bogotá, Lima, Santiago et São Paulo reliées à Panama, et 150 Gbps servis",
"scenarios.deliver_carnaval_in_full":"Assurer tout le Carnaval",
"scenarios.every_cable_through_the_red_sea":"Tous les câbles de la mer Rouge sont coupés, tout comme le saut vers l’Égypte. Fais quand même parler Marseille et Singapore : par le tour de l’Afrique, par voie terrestre, ou par l’autre côté de la planète.",
"scenarios.every_ix_is_run_by_de":"Tous les IX sont gérés par DE-KICKS",
@ -3350,22 +3312,22 @@
"scenarios.mid_atlantic_accent":"Accent mi-atlantique",
"scenarios.only_spatzle_ix":"Que du Spätzle-IX",
"scenarios.order_and_progress":"Ordre et progrès",
"scenarios.ponta_delgada_in_the_azores_halfway":"Ponta Delgada, aux Açores, à mi-chemin de l’Atlantique. De la Floride à l’Espagne et de Lisbonne à Lagos, c’est juste trop long pour une onde de 1.6T : en ligne droite, chacune transporte 1.2T. Atterrissez sur les îles entre les deux, relancez la lumière, et chaque saut passe à 1.6T ou mieux. Vous commencez avec l’équipement 1.6T débloqué.",
"scenarios.pops_in_bogota_lima_santiago_and":"Des POP à Bogotá, Lima, Santiago et São Paulo, et 150 Gbps servis",
"scenarios.ports_on_15_ix_brrr_exchanges":"Des ports sur 15 IX.brrr, dont un à Manaus, et 200 Gbps servis",
"scenarios.ponta_delgada_azores_lisbon_lagos":"Ponta Delgada, aux Açores, à mi-chemin de l’Atlantique. De la Floride à l’Espagne, c’est juste trop long pour une onde de 1.6T : en ligne droite, elle transporte 1.2T. Atterrissez sur les îles entre les deux, relancez la lumière, et chaque saut passe à 1.6T ou mieux. De Lisbonne à Lagos, le 1.6T passe d’une traite, mais cher : les Canaries coûtent moins. Vous commencez avec l’équipement 1.6T débloqué.",
"scenarios.ports_on_15_ix_brrr_exchanges_backbone":"Des ports sur 15 IX.brrr que votre backbone relie à São Paulo, dont un à Manaus, et 200 Gbps servis",
"scenarios.reach_50_of_the_internet_and":"Couvre 50 % d’internet et sers 300 Gbps",
"scenarios.red_sea_crisis":"Crise en mer Rouge",
"scenarios.rio_from_scratch_carnaval_starts_in":"Rio en partant de zéro. Le Carnaval commence dans 90 jours et veut 400 Gbps pendant cinq jours d’affilée. Le monde entier regarde.",
"scenarios.sandbox_mode_a_billion_dollars_chaos":"<b>Mode bac à sable</b><br>Un milliard de dollars et tout débloqué. Chaos : {chaos}. Construis l’internet dont tu as toujours rêvé, et garde une pelleteuse de rechange sous la main.",
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Mode bac à sable</b><br>Un milliard de dollars, tout débloqué, et rien ne casse jamais. Construis l’Internet dont tu as toujours rêvé.",
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. Le Brésil est un continent : quarante IX.brrr, des milliers de provedores, et l’Amazonie entre toi et le nord.",
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Séoul. Les eyeballs les plus rapides et les plus voraces de la planète, du transit à quatre fois le prix, et trois opérateurs historiques qui te facturent chaque gigabit que tu leur envoies.",
"scenarios.seoul_sender_pays_d":"Séoul, où l’expéditeur paie. Chaque Gbps qu’un opérateur livre en Corée te coûte une taxe « l’expéditeur paie » en plus de la facture de transit, les trois opérateurs historiques ne parlent que par un PNI payant, le gigabit à la maison se vend au prix d’un bibimbap et les utilisateurs coréens remarquent chaque milliseconde. Le transit à Tokyo est bon marché, si tes clients supportent le voyage.",
"scenarios.seoul_sender_pays_goal":"{g} Gbps servis, Séoul bien servie ({q} %), 99 % de portée et un bénéfice mensuel",
"scenarios.shark_season_subsea_cuts_twice_as":"Saison des requins : coupures sous-marines deux fois plus probables",
"scenarios.start_in_panama_city_nothing_crosses":"Démarre à Panama City. Rien ne traverse le bouchon du Darién par voie terrestre, et les Andes barrent la route à tout le reste.",
"scenarios.start_in_stuttgart_where_nobody":"Démarre à Stuttgart, où personne ne vend de transit. Atteins Internet uniquement via peering, PNI, caches et ta propre fibre. Aucun transit, nulle part, jamais.",
"scenarios.start_with_only_100k":"Démarre avec seulement $100k",
"scenarios.sydney_2013_the_toilet_paper_group":"Sydney, 2013. Le Toilet Paper Group a tiré sa propre fibre jusqu’au sous-sol des immeubles, et le réseau national a crié à l’écrémage. À toi : passe outre le Nearly Broadband Network, paie la taxe et arrive le premier.",
"scenarios.tallinn_ships_drag_their_anchors":"Tallinn. Les navires traînent leurs ancres sur les câbles de la Baltique trois fois plus souvent que d’habitude.",
"scenarios.tallinn_nobody_sells_transit_anchors":"Tallinn, où personne ne vend de transit : votre internet est de l’autre côté de l’eau. Les navires traînent leurs ancres sur les câbles de la Baltique trois fois plus souvent que d’habitude.",
"scenarios.the_cogentle_spat":"La brouille Cogentle",
"scenarios.transit_costs_30_more":"Le transit coûte 30 % de plus",
"scenarios.twice_the_failures":"Deux fois plus de pannes",
@ -3419,6 +3381,7 @@
"sites_and_service.level_n":"Niveau {n}",
"sites_and_service.n_ports":"{n} ports",
"sites_and_service.no_path_right_now":"aucun chemin pour l’instant",
"sites_and_service.p_of_city_s_traffic_comes_from_kr":"<b>{p} du trafic de {city} vient de {to} : {ms} ms aller-retour.</b> Les utilisateurs coréens remarquent tout ce qui dépasse 8 ms, et au-delà de 40 ms le haut débit compte comme un mauvais service. Sers davantage depuis Séoul : peering, caches et PNI ici, ou du transit local si tu supportes la taxe « l’expéditeur paie ».",
"sites_and_service.p_of_city_s_traffic_is":"<b>{p} du trafic de {city} est ramené vers le transit à {to} : {ms} ms aller-retour.</b> Les utilisateurs le sentent au-delà de 20 ms (environ 1 500 km), et au-delà de 50 ms le haut débit et les services internet comptent comme un mauvais service. Achetez du transit ici ou à proximité, ou peerez localement.",
"sites_and_service.path_latency_lat":"Latence du chemin : <b>{lat}</b>",
"sites_and_service.pn_routers":"routeurs {pn}",
@ -3429,9 +3392,7 @@
"sites_peering_caches.bgp_session_established":"Session BGP établie.",
"sites_peering_caches.cache_installed_in_city_net_shipped":"<b>{cache} installé à {city} !</b><br>{net} te l’a envoyé gratuitement. Tu paies {mo}/mois d’électricité.",
"sites_peering_caches.could_you_resend_the_loa_you":"<b>« Pourriez-vous renvoyer la LOA ? »</b><br>Vous l’avez envoyée quatre fois.",
"sites_peering_caches.hello_i_am_large_peering_model":"Bonjour ! Je suis Large Peering Model. J’ai lu votre boîte et j’ai déjà des avis.",
"sites_peering_caches.it_is_with_the_provisioning_team":"<b>« C’est chez l’équipe de provisioning. »</b><br>Personne n’a jamais rencontré l’équipe de provisioning.",
"sites_peering_caches.large_peering_model_is_hired_your":"<b>Large Peering Model est embauché.</b><br>Votre boîte, c’est son problème maintenant. {price} par an, facturés chaque mois.",
"sites_peering_caches.n_new_session_at_ix_small":{"one":"<b>{n} nouvelle session sur {ix}.</b><br>Des petits réseaux, mais ça s’additionne, et tout compte pour le club.","other":"<b>{n} nouvelles sessions sur {ix}.</b><br>Des petits réseaux, mais ça s’additionne, et tout compte pour le club."},
"sites_peering_caches.net_accepted":"{net} a accepté !",
"sites_peering_caches.net_declined_the_pni_why":"<b>{net} a refusé le PNI.</b><br>{why}",
@ -3439,11 +3400,8 @@
"sites_peering_caches.net_does_not_do_port_pnis":"<b>{net} ne fait pas de PNI en {port}.</b><br>Rien en dessous de 100G. Revenez avec plus de trafic, ou une optique plus grosse.",
"sites_peering_caches.net_says_not_yet_send_them":"<b>{net} dit : pas encore.</b><br>Envoie-leur d’abord {min}+ Gbps.",
"sites_peering_caches.pni_with_net_ordered_eta_a":"<b>PNI avec {net} commandée.</b><br>{eta}. Un cross-connect chez {dc}, dès que quelqu’un aura retrouvé la LOA.",
"sites_peering_caches.raised_n_max_prefix_limits_all":"<b>{n} limites max-prefix relevées.</b><br>Que de la croissance, aucune fuite. Chanceux.",
"sites_peering_caches.raised_n_max_prefix_limits_one":{"one":"<b>{n} limites max-prefix relevées.</b><br>L’une d’elles était une fuite de routes. Elle est dans le NOC maintenant.","other":"<b>{n} limites max-prefix relevées.</b><br>{k} d’entre elles étaient des fuites de routes. Elles sont dans le NOC maintenant."},
"sites_peering_caches.second_lag_member_added_one_member":"<b>Second membre de LAG ajouté.</b><br>Un membre dans chaque bâtiment désormais : un bâtiment éteint ne coupe plus que la moitié du port.",
"sites_peering_caches.second_site_live_in_city_b":"<b>Second site actif à {city}.</b><br>{b} est relié à {a} par ton propre anneau métropolitain. Déplaces-y quelques uplinks depuis les onglets Transit et Peering.",
"sites_peering_caches.the_ai_is_gone_it_left":"<b>L’IA est partie.</b><br>Elle a laissé un document de passation de 40 pages. Il parle surtout d’elle.",
"sites_peering_caches.they_checked_your_pearingdb_page_and":"Ils ont consulté ta page PearingDB et ont aimé tes chiffres de trafic.",
"sites_peering_caches.we_are_waiting_on_the_colo":"<b>« Nous attendons le colo pour le cross-connect. »</b><br>Le colo dit qu’il les attend.",
"sites_peering_caches.your_account_manager_found_the_order":"<b>Votre account manager a retrouvé la commande sous un bureau.</b><br>Elle a un mois d’avance.",
@ -3465,6 +3423,7 @@
"slots.last_played_ago":"Dernière partie : {ago}",
"slots.load_the_newest_version":"Charger la version la plus récente",
"slots.more_for_name":"Plus pour {name}",
"slots.n_day_ago":{"one":"il y a {n} jour","other":"il y a {n} jours"},
"slots.n_h_ago":{"one":"il y a {n} h","other":"il y a {n} h"},
"slots.name_is_open_in_another_window":"{name} est ouvert dans une autre fenêtre",
"slots.name_is_waiting_in_your_other":"<b>{name} t'attend dans ton autre fenêtre.</b><br>Passe dessus pour continuer à jouer.",
@ -3488,7 +3447,6 @@
"slots.this_window_stopped_saving_so_it":"Une version plus récente a été sauvegardée dans une autre fenêtre, alors celle-ci a arrêté de sauvegarder au lieu de l'écraser.",
"slots.two_windows_one_network":"Deux fenêtres, un réseau",
"slots.your_networks":"Tes réseaux",
"slots.your_networks_switch_or_start_another":"Tes réseaux <small>changer, ou en lancer un autre</small>",
"slots.your_other_networks_share_this_browser":"Tes autres réseaux partagent le stockage de ce navigateur. Exporte ceux que tu veux garder, puis supprime-les ici pour faire de la place.",
"sold_out.a_hyperscaler_bought_every_wave_of":"Un hyperscaler a acheté la semaine dernière toutes les ondes de cette taille sur cette route.",
"sold_out.not_big_enough_yet_list":"Pas encore assez gros : {list}",
@ -3505,6 +3463,39 @@
"sold_out.tier_1s_never_peer_at_ixs":"Les Tier 1 ne font jamais de peering sur les IX",
"sold_out.wants_need_gbps_of_traffic_from":"Veut ≥ {need} Gbps de trafic de ta part (tu en envoies {dem})",
"sold_out.wants_you_to_be_a_tier":"Veut que tu sois Tier 2, ou que tu lui envoies ≥ {need} Gbps (tu en envoies {dem})",
"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · environ {ms} ms · prêt dans environ {n} jours",
"specialist.a_consortium_is_selling_seats_on":"Un consortium vend des places sur {name}, un nouveau câble de {a} à {b}. Tes propres paires de fibre dessus, avant d'être Tier 1.",
"specialist.ask_for_a_demo_unit_p_n":"Unité de démo : +{p} %, {n} jours",
"specialist.charter_signed_name":"Charte signée : {name}.",
"specialist.consortium_seat":"Place au consortium",
"specialist.consortium_seat_name":"Place au consortium : {name}",
"specialist.demo_unit_ships_in_n_days":"L'unité de démo arrive dans {n} jours",
"specialist.dig_your_own_as_a_pioneer":"Creuse la tienne en pionnier (+{p} %) · {price} · {n} jours",
"specialist.global_backbone":"Backbone mondial",
"specialist.includes_pops_at_the_landings_price":"POPs aux atterrissements compris : {price}.",
"specialist.keep_it":"Garder",
"specialist.low_latency_boutique":"Boutique basse latence",
"specialist.n_fiber_pairs":{"one":"{n} paire de fibre","other":"{n} paires de fibre"},
"specialist.part_owner_of_the_sea":"Copropriétaire de la mer",
"specialist.pick":"Choisir",
"specialist.pick_a_charter":"Choisis une charte",
"specialist.routes_r_of_n_beat_the":"Routes financières plus rapides sur ta propre fibre que tout chemin loué : {r}/{n} · clients latence qui paient : {c}/{m}",
"specialist.speed_of_light":"Vitesse de la lumière",
"specialist.spotted_your_broadband_in_a_one":"Ils ont repéré ton haut débit à {a}, une des grandes villes d'abonnés.",
"specialist.spotted_your_cap_of_dark_fiber":"Ils ont repéré tes {cap} de fibre noire allumée entre {a} et {b}.",
"specialist.spotted_your_ms_ms_a_b_path":"Ils ont repéré ton chemin {a}–{b} à {ms} ms.",
"specialist.spotted_your_two_diverse_paths_a":"Ils ont repéré tes deux chemins diversifiés entre {a} et {b}.",
"specialist.take_a_seat_on_a_consortium":"Prends une place sur un câble de consortium",
"specialist.the_classic_game_grow_everywhere_and":"Le jeu classique : grandis partout, les clients suivent ton niveau, et Tier 1 est la victoire.",
"specialist.the_consortium_runs_the_cable_your":"Le consortium exploite le câble et ses répéteurs. Tes paires, tu les allumes avec tes propres optiques ; une coupure du câble les coupe aussi.",
"specialist.the_vendor_ships_a_demo_name":"Le constructeur envoie un {name} de démo dans {n} jours. Tant que ton niveau ne l'a pas rattrapé, chaque unité coûte {p} % de plus.",
"specialist.trading_firms_and_other_latency_customers":"Les sociétés de trading et autres clients latence appellent plus souvent et paient {p} % de plus. Gagne Vitesse de la lumière : bats la latence louée la plus rapide sur {r} routes financières avec ta propre fibre pendant que {c} clients latence te paient. Tier 1 compte toujours.",
"specialist.what_kind_of_network_are_you":"Quel genre de réseau construis-tu ? Tu peux choisir encore {n} jours ; d'ici là tu es un Backbone mondial.",
"specialist.win_as_a_low_latency_boutique":"Gagne en boutique basse latence",
"specialist.won_on_date_your_own_glass":"Gagné le {date} : ta propre fibre a battu tous les chemins loués.",
"specialist.you_own_n_fiber_pairs_on":"Signé : tu possèdes {n} paires de fibre sur {name}, {a} ⇄ {b}. Les câbliers appareillent ; prêt dans environ {d} jours.",
"specialist.your_own_fiber_pairs_on_a":"Tes propres paires de fibre sur un nouveau câble sous-marin : paie ta part du chantier maintenant, allume-les avec tes optiques quand il atterrit.",
"specialist.your_own_glass_beats_every_leased":"Ta propre fibre bat tous les chemins loués sur trois routes financières, et les traders paient pour ça. La boutique a gagné !",
"supply_chain.as_when_you_started":"comme à vos débuts",
"supply_chain.chip_shortage_every_router_vendor_is":"<b>Pénurie de puces !</b><br>Tous les fabricants de routeurs attendent les mêmes puces. Les routeurs neufs et les mises à niveau coûtent 40 % de plus pendant {n} jours. Délai de livraison : « oui ».",
"supply_chain.every_cable_ship_is_booked":"<b>Tous les câbliers sont réservés.</b><br>Les hyperscalers ont loué chaque câblier et chaque équipe de tranchée de la planète. Les nouvelles fibres et les nouveaux câbles coûtent 30 % de plus pendant {n} jours.",
@ -3517,7 +3508,9 @@
"supply_chain.what_p_n_days_left":"{what} +{p} · encore {n} jours",
"supply_chain.your_price_lock_covers_you_until":"Votre blocage des prix vous couvre jusqu’au {date}.",
"title.a_billion_dollars_and_every_toy":"Un milliard de dollars et tous les jouets du magasin.",
"title.as_number":"Numéro d'AS",
"title.asia_hub_great_peering_far_from":"Hub de l’Asie. Super peering, loin de chez soi.",
"title.asn_not_usable":"Ce numéro d'AS ne route pas : choisis-en un de 1 à 4294967294 qu'aucun réseau de la carte n'utilise (pas d'AS 0, 23456, ni de plages de documentation ou privées). Laisse vide pour un numéro au hasard.",
"title.back_to_my_network":"Retour à mon réseau",
"title.big_hungry_market_few_providers":"Gros marché affamé, peu d’opérateurs.",
"title.build_an_internet_lay_fiber_between":"Construis un Internet. Pose de la fibre entre les villes, achète du transit, fais du peering aux IX, signe des entreprises et garde les eyeballs contents pendant que pelleteuses, requins et fuites de routes font tout pour t’arrêter.",

View file

@ -755,6 +755,7 @@
"city_panel.second_site_and_metro_ring":"Secondo sito e anello metropolitano",
"city_panel.sell_internet_to_homes_here_starts":"Vendi internet alle case di qui. Parte da circa {start} e cresce verso {max} finché il servizio è buono. Rende {rate} per Gbps servito, ogni mese.",
"city_panel.sells_pnis_down_to_1g":"vende PNI anche da 1G",
"city_panel.sender_pays_fee_per_gbps":"Paga chi invia: +{fee} per Gbps di transit",
"city_panel.served_in_city":"Servito a {city}",
"city_panel.serving_v":"serve {v}",
"city_panel.shut_this_pop_down_its_links":"Chiudi questo POP: link, porte e cache spariscono con lui, e ogni cliente che ne dipende viene lasciato andare, con una penale di recesso anticipato.",
@ -806,7 +807,6 @@
"common.aug":"ago",
"common.auto":"Auto",
"common.auto_enrolled":"iscritto d’ufficio",
"common.average":"Nella media",
"common.avoid":"Evita",
"common.back":"Indietro",
"common.back_to_the_map":"Torna alla mappa",
@ -822,7 +822,6 @@
"common.bgp_hijack":"BGP hijack",
"common.bgp_sessions":"Sessioni BGP",
"common.big_league":"Serie A",
"common.black_hole":"Buco nero",
"common.blitz":"Blitz",
"common.boot_time":"Tempo di boot",
"common.boot_times":"Tempi di boot",
@ -830,7 +829,6 @@
"common.box_6ee3":"− box",
"common.build_time":"Tempo di costruzione",
"common.building":"in costruzione",
"common.bumped":"sollecitata",
"common.bunker_two":"Bunker Due",
"common.busiest_links":"Link più carichi",
"common.business_customers":"Clienti aziendali",
@ -992,8 +990,6 @@
"common.import_a_save":"Importa un salvataggio",
"common.in_progress":"in corso",
"common.in_use":"In uso",
"common.inbox":"Posta",
"common.inbox_zero":"Inbox zero.",
"common.incident":"Incidente",
"common.incidents":"Incidenti",
"common.incidents_survived":"Incidenti superati",
@ -1121,7 +1117,6 @@
"common.oops":"Ops",
"common.open":"Apri",
"common.open_bank":"Apri la banca",
"common.open_inbox":"Apri la casella",
"common.open_infra":"Apri Infra",
"common.open_lease":"Apri l’affitto",
"common.open_noc":"Apri il NOC",
@ -1146,7 +1141,6 @@
"common.peered_ce2f":"In peering ✓",
"common.peering":"Peering",
"common.peering_first":"Prima il peering",
"common.peering_inbox":"Casella di peering",
"common.peering_policy":"Policy di peering",
"common.peering_ratio":"Quota peering",
"common.peering_spat":"Lite di peering",
@ -1195,7 +1189,6 @@
"common.remove_port":"Rimuovi porta",
"common.remove_script":"Rimuovi script",
"common.request":"Richiedi",
"common.responsive":"Reattivo",
"common.resume":"Riprendi",
"common.retention_offer":"Offerta di fidelizzazione",
"common.revenue":"Ricavi",
@ -1301,7 +1294,6 @@
"common.to":"A",
"common.toaster_wrangler":"Domatore di tostapane",
"common.today":"Oggi",
"common.today_4203":"oggi",
"common.toggle_sound":"Attiva/disattiva suono",
"common.too_far_for_this_cable":"troppo lontano per questo cavo",
"common.traceroute":"Traceroute",
@ -1363,7 +1355,6 @@
"common.your_network":"La tua rete",
"common.your_pop":"Il tuo POP",
"common.your_pops":"I tuoi POP",
"common.your_reputation":"La tua reputazione",
"common.zombie_route":"Route zombie",
"compute.attack_hauled_to_scrubbing_in_city":"Attacco portato allo scrubbing di {city}",
"compute.courtesy_route_to_new_networks":"Percorso di cortesia verso le nuove reti",
@ -1610,8 +1601,6 @@
"failures.a_kilometre_of_copper_went_missing":"Un chilometro di “rame” è sparito dal tuo scavo {a}–{b}. Era la tua fibra. Lo sfasciacarrozze l’ha rispedita indietro con un biglietto.",
"failures.a_landslide_in_the_andes_buried":"Una frana nelle Ande ha sepolto la tua fibra {a}–{b}.",
"failures.a_llama_herd_trampled_the_fiber":"Una mandria di lama ha calpestato il segnalatore della fibra su {a}–{b}. Poi una ruspa ha trovato la fibra.",
"failures.a_member_at_ix_leaked_the":"Un membro di {ix} ha fatto leak dell’intera tabella di routing nel route server. I limiti max-prefix sono scattati ovunque. Il tuo peering lì è giù.",
"failures.a_member_at_ix_leaked_the_5563":"Un membro di {ix} ha fatto leak dell’intera tabella di routing nel route server. I limiti max-prefix sono scattati ovunque. Il tuo peering lì, a {city}, è giù.",
"failures.a_new_tech_in_a_tidied":"Un nuovo tecnico a {a} ha “messo in ordine” il groviglio di cavi. Il tuo link {a}–{b} faceva parte del groviglio.",
"failures.a_new_tech_in_city_used":"Un nuovo tecnico a {city} ha usato la Vegemite come pasta termica. Conduce il sapore, non il calore, e il tuo router si è cotto.",
"failures.a_optic_on_a_b_overheated":"Un {optic} su {a}–{b} si è surriscaldato e ora è un portachiavi molto costoso.",
@ -1678,7 +1667,6 @@
"failures.load_shedding_stage_n_in_city":"Distacchi a rotazione stage {n} a {city}, e non hai un generatore. Compralo: qui non è facoltativo.",
"failures.load_shedding_took_out_site_in":"I distacchi a rotazione hanno spento {site} a {city}. {other} ha retto, quindi il POP gira a metà capacità. Tutto ciò che è collegato solo al sito al buio è offline.",
"failures.magpie_swooping_season_the_field":"Stagione delle gazze in picchiata: i tecnici su {a}–{b} non escono dal furgone, e il tuo taglio resta tagliato.",
"failures.max_prefix_meltdown":"Max-prefix in tilt",
"failures.metro_ring_cut":"Anello metro tagliato",
"failures.microbursts_on_a_b_overflow_shallow":"I microburst su {a}–{b} riempiono i buffer poco profondi dei router: 0,5% di perdita al picco, e ogni videochiamata se ne accorge.",
"failures.microbursts_on_a_b_your_deep":"<b>Microburst su {a}–{b}.</b><br>I tuoi router con buffer profondi li hanno assorbiti. Nessuno se n’è accorto.",
@ -1770,7 +1758,6 @@
"fiber_and_hardware.those_optics_need_the_regen_site":"<b>Quelle ottiche hanno bisogno del sito di rigenerazione.</b><br>Rimuovi prima i canali long-haul, oppure tieni il sito.",
"fiber_modals.a_fiber_pair_of_your_own":"Una coppia di fibre tutta tua. Il vetro costa poco, l’hardware no: compri un sistema di linea con un amplificatore ogni {km} km, poi le ottiche per ogni canale. Il tuo hardware può guastarsi, e lo ripari tu.",
"fiber_modals.a_fiber_pair_on_cable_km":"Una coppia di fibre su {cable}, {km} km. Condivide il cavo con le wave di tutti gli altri, ancore comprese.",
"fiber_modals.build_your_own_level_3":"Costruiscila tu <small>livello 3</small>",
"fiber_modals.build_your_own_price_n_days":"Costruiscila tu <small>{price} · ~{n} giorni</small>",
"fiber_modals.dark_fiber_across_the_chinese_border":"La dark fiber attraverso il confine cinese non è in vendita. Compra piuttosto una wave transfrontaliera.",
"fiber_modals.dark_fiber_unlocks_at_customer_level":"La dark fiber si sblocca al livello clienti 2. Ti serve la scala per giustificare l’acquisto di hardware ottico tutto tuo.",
@ -1794,11 +1781,8 @@
"fiber_modals.your_pop_needs_a_fabric_port":"Il tuo POP · serve una porta fabric lì",
"game_and_settings.delete_and_start_over":"Cancella e ricomincia",
"game_and_settings.export_save_download_a_file":"Esporta salvataggio <small>scarica un file</small>",
"game_and_settings.import_a_save_from_a_file":"Importa un salvataggio <small>da un file</small>",
"game_and_settings.import_failed_that_save_is_damaged":"<b>Importazione fallita.</b><br>Quel salvataggio è danneggiato e non si può caricare. La partita in corso non è stata toccata.",
"game_and_settings.name_and_everything_it_owns_will":"{name} e tutto ciò che possiede verranno cancellati. Non si torna indietro.",
"game_and_settings.scenarios_amp_weekly_challenge":"Scenari e sfida settimanale",
"game_and_settings.share_your_network_image_card":"Condividi la tua rete <small>come immagine</small>",
"game_and_settings.start_a_new_network":"Vuoi creare una nuova rete?",
"game_and_settings.welcome_back_name_imported_and_saved":"<b>Bentornato, {name}.</b><br>Importato e salvato su questo dispositivo.",
"game_and_settings.your_game_saves_itself_every_few":"La partita si salva da sola ogni pochi secondi su questo dispositivo.",
@ -1869,7 +1853,7 @@
"help.each_pop_s_router_model_caps":"Il modello di router di ogni POP limita la sua porta più veloce (100G, 400G, 800G, 1.6T) e quanto traffico può inoltrare. Wave e porte più grandi richiedono router migliori a entrambe le estremità. I modelli migliori si sbloccano con il tuo livello clienti. Con un solo router, ogni upgrade vuol dire un giorno di downtime.",
"help.event_networks_a_final_a_festival":"Le reti per eventi (una finale, un festival, un keynote) vogliono un picco di capacità in una città per qualche giorno e pagano una volta sola alla fine, in proporzione a quanta folla hai servito; sotto il 70% paghi una penale. Le catene SD-WAN collegano 3–6 dei tuoi POP in hub-and-spoke, quindi uno spoke rotto fa arrabbiare tutto il contratto. Quando gestisci la tua dark fiber, i carrier vogliono affittare i canali liberi come alien wave e, sulla fibra che hai costruito tu, una coppia libera.",
"help.events_chains_and_wholesale":"Eventi, catene e wholesale",
"help.every_ix_port_brings_peering":"Ogni porta IX porta richieste di peering e allarmi max-prefix, nella scheda Reti. Una sessione che supera il limite resta giù finché non ci guardi: alza il limite se è crescita, tienila giù se è un leak. Ignora la posta e le reti selettive diventano più esigenti.",
"help.every_ix_port_brings_requests":"Ogni porta IX porta richieste di peering, e la tua policy di peering, nella scheda Reti, risponde per te: Aperta accetta tutti, Selettiva accetta le reti con cui conviene fare peering e declina in silenzio le altre, Chiusa le declina tutte. Una volta a settimana il log del NOC fa il riassunto.",
"help.every_link_has_latency_high":"Ogni link ha una latenza. I trader HFT pagano una fortuna per un circuito dentro il loro budget di latenza: instradali su “Latenza minima”. Ai clienti di backup massivo non importa, quindi instradali sul “Panoramico” lungo i tuoi link tranquilli, per lasciare liberi quelli trafficati.",
"help.home_broadband_users_they_mostly":"Utenti di banda larga domestica. Scaricano soprattutto dalle CDN e ti pagano per ogni Gbps che consegni. Servili bene e si moltiplicano.",
"help.how_the_internet_works_here":"Come funziona internet qui",
@ -1883,7 +1867,7 @@
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) è transit-free. Fai peering con ogni gigante del pianeta e non paghi nessuno per raggiungere internet. Ci hai messo {days} giorni e {n} incidenti.",
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG e compagnia tornano ogni anno. Iscriviti nella scheda Offerte per $8k. Nei 45 giorni successivi, le reti selective presenti in quella regione chiedono solo metà del traffico abituale prima di fare peering con te. A volte vinci pure la lotteria.",
"help.once_auto_te_is_installed_you":"Una volta installato Auto-TE, puoi programmarlo dalla scheda NOC. Tra le regole ci sono <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> e <code>blackhole ddos</code>. Check fa una prova a secco sul traffico reale; Deploy la rende vera, errori compresi.",
"help.one_game_four_doors_puzzles_are":"Un gioco, quattro porte, e le regole si scelgono quando nasce una rete e poi restano bloccate. I rompicapi sono piccoli nodi da sciogliere, senza orologio. La sandbox ti dà un miliardo di dollari, tutto sbloccato (compreso il tuo cavo sottomarino) e tutto il caos che scegli, ma niente medaglie. Normale ha tre varianti: Change freeze (pochi guasti, consegne in pochi giorni, niente posta né carenze), Reperibile (il gioco classico) e BGP alle 3 di notte (guasti più frequenti e più lunghi, più DDoS). Gli scenari sono sfide fatte a mano con un obiettivo e una scadenza, e la sfida settimanale dà a tutti lo stesso mondo per una settimana. Condividi il risultato con la scheda nel menu.",
"help.one_game_four_doors_and_the":"Un gioco, quattro porte, e le regole si scelgono quando nasce una rete e poi restano bloccate. I rompicapi sono piccoli nodi da sciogliere, senza orologio. La sandbox ti dà un miliardo di dollari, tutto sbloccato (compreso il tuo cavo sottomarino) e tutto il caos che scegli, ma niente medaglie. Normale ha tre varianti: Change freeze (pochi guasti, consegne in pochi giorni, niente carenze), Reperibile (il gioco classico) e BGP alle 3 di notte (guasti più frequenti e più lunghi, più DDoS). Gli scenari sono sfide fatte a mano con un obiettivo e una scadenza, e la sfida settimanale dà a tutti lo stesso mondo per una settimana. Condividi il risultato con la scheda nel menu.",
"help.open_peers_with_anyone_selective":"Open: fa peering con chiunque. Selective: vuole prima vedere traffico. Restrictive (i Tier 1): fa peering solo con i giganti, tramite PNI. Paid: esattamente quello che sembra, si paga. Le grandi reti selective hanno anche i loro umori: in certe città rifiutano nuovi peer per qualche mese, o accettano solo PNI, e ogni tanto abbattono una sessione che avevi già. Prova un’altra città o un PNI, e richiedi più avanti.",
"help.out_of_port_speed_bundle_up":"Porte al limite? Raggruppa fino a 8 porte identiche verso lo stesso provider di transit, IX o PNI in un LAG. Ogni membro costa una porta intera; il flow hashing non è mai perfettamente uniforme, quindi un bundle trasporta circa il 95% della somma.",
"help.pni_lead_times":"Tempi di consegna delle PNI",
@ -2008,15 +1992,11 @@
"hud_and_panels.has_errors_not_running":"ha errori, non gira",
"hud_and_panels.incidents_so_far":"Incidenti finora",
"hud_and_panels.install_auto_te_cost_mo_mo":"Installa Auto-TE <small>{cost} + {mo}/mese</small>",
"hud_and_panels.large_peering_model_is_on_it":"Ci pensa Large Peering Model.",
"hud_and_panels.lv_n":"Liv. {n}",
"hud_and_panels.n_incident":{"one":"{n} incidente","other":"{n} incidenti"},
"hud_and_panels.n_message_waiting_for_an_answer":{"one":"{n} messaggio aspetta una risposta.","other":"{n} messaggi aspettano una risposta."},
"hud_and_panels.n_more_networks":{"one":"+{n} altra rete","other":"+{n} altre reti"},
"hud_and_panels.n_networks_d_days_left":"{n} reti · {d} giorni rimasti",
"hud_and_panels.n_new_notification":{"one":"{n} nuova notifica","other":"{n} nuove notifiche"},
"hud_and_panels.n_rules_live":"{n} regole attive",
"hud_and_panels.n_session_is_down_on_its":{"one":"{n} sessione è giù per il limite max-prefix.","other":"{n} sessioni sono giù per il limite max-prefix."},
"hud_and_panels.n_small_networks":"{n} piccole reti",
"hud_and_panels.n_special_requirement":{"one":"{n} requisito speciale","other":"{n} requisiti speciali"},
"hud_and_panels.n_unhappy_customer_price_mo_at":{"one":"{n} cliente scontento, {price}/mese a rischio","other":"{n} clienti scontenti, {price}/mese a rischio"},
@ -2592,6 +2572,7 @@
"ops.by_hand_note":"Per quando vuoi tutto fatto subito: ogni peer su ogni exchange, un kit di ridondanza, PNI con tutti.",
"ops.caches_rent":"Gratis da montare, ma ogni box costa {price}/mese di spazio e corrente.",
"ops.cheapest":"Il più economico",
"ops.day_d":"Giorno {d}",
"ops.ff_desc":"ha etichettato una porta a {city} «TODO: sistemare dopo (non sistemare)»",
"ops.ff_hostname":"ha rinominato il router di {city} in router-final-FINAL-v2",
"ops.ff_lag":"ha aggiunto un membro LAG di transit di troppo a {city}. Funziona, quindi resta.",
@ -2630,8 +2611,6 @@
"ops.l_snag":{"one":"si è bloccato su {where} e l'ha messo in pausa finché non dai un'occhiata","other":"si è bloccato su {n} ordini ({where}) e li ha messi in pausa finché non dai un'occhiata"},
"ops.l_transit":{"one":"ha aumentato il transit a {where}","other":"ha aumentato il transit {n} volte ({where})"},
"ops.locked":"Il NOC assume stagisti dal livello clienti {lv}.",
"ops.lpm_off":"La casella del peering resta tua. Per quella c'è il Large Peering Model; {name} non risponde alle email.",
"ops.lpm_on":"Il Large Peering Model risponde alla casella del peering. {name} gli sta alla larga.",
"ops.mood_annie":"Annie ha risposto a tre domande prima che tu le facessi, dalla scrivania più vicina.",
"ops.mood_broke":"{name} ha già la lista della spesa per quando arriva il budget del mese prossimo.",
"ops.mood_busy":"{name} ha avuto una settimana piena ed è alla terza bevanda energetica.",
@ -2744,61 +2723,14 @@
"page.series_of_tubes_build_the_internet":"Series of Tubes: costruisci internet, un tubo alla volta",
"page.world_map_of_your_network":"Mappa del mondo della tua rete",
"page.x":"<?php echo \"scusate\"; ?>",
"peering_inbox.accept_all_requests":"Accetta tutte le richieste",
"peering_inbox.an_ai_agent_that_answers_every":"Un agente IA che risponde per te a ogni richiesta di peering e allarme max-prefix, ogni giorno. {price}/anno. Addestrato su vent’anni di mailing list sul peering.",
"peering_inbox.answered_your_mail_a_accepted_d":"Ha risposto alla tua posta: {a} accettate, {d} rifiutate.",
"peering_inbox.asked_netchill_s_peering_team_to":"Ha chiesto al team di peering di NetChill di “fornire più Netchill, per favore”.",
"peering_inbox.configured_lim_prefixes_received_got":"Configurato: {lim} prefissi. Ricevuti: {got}.",
"peering_inbox.day_d":"Giorno {d}",
"peering_inbox.dear_sir_or_madam_please_peer":"Gentile Signore o Signora, per favore fate peering. Abbiamo tre prefissi e progetti molto grandi.",
"peering_inbox.decline_all_requests":"Rifiuta tutte le richieste",
"peering_inbox.declined_who_at_ix_not_a":"Ha rifiutato {who} a {ix}: “non strategico”. Lo era.",
"peering_inbox.every_exchange_port_brings_mail":"Ogni porta IX porta posta. Rispondi alle richieste di peering e guarda le sessioni che superano il limite max-prefix: è crescita o un route leak? La posta senza risposta ti fa una reputazione, e le reti selettive lo vengono a sapere.",
"peering_inbox.everyone_who_asks_gets_a_session":"Chiunque chieda ottiene una sessione, e i route server funzionano. Tanti peer minuscoli, e tanti allarmi max-prefix.",
"peering_inbox.fewer_requests_and_you_answer_them":"Meno richieste, e rispondi tu. Niente route server: vai su ogni exchange e chiedi le reti che vuoi.",
"peering_inbox.fire_the_ai":"Licenzia l’IA",
"peering_inbox.good_call_it_was_a_route":"<b>Ben fatto: era un route leak.</b><br>{who} ha trovato una route map scritta male. La sessione torna da sola tra qualche giorno.",
"peering_inbox.greetings_we_are_a_fast_growing":"Saluti. Siamo una rete in rapida crescita. L’anno scorso avevamo un cliente; quest’anno ne abbiamo due.",
"peering_inbox.hello_please_find_attached_our":"Salve, in allegato la nostra richiesta di peering come documento Word, scansionato da una stampa.",
"peering_inbox.hey_quick_one_can_you_peer":"Ehi, domanda veloce: potete fare peering con noi a {ix}? Abbiamo un server Minecraft molto importante.",
"peering_inbox.hi_we_would_like_to_peer":"Ciao! Vorremmo fare peering con voi a {ix}. Il nostro record su PeeringDB è aggiornato.",
"peering_inbox.hire_it_mo_mo":"Assumilo <small>{mo}/mese</small>",
"peering_inbox.inbox_zero_enjoy_it_while_it":"Inbox zero. Goditela finché dura.",
"peering_inbox.keep_it_down":"Tienila giù",
"peering_inbox.kept_who_down_at_ix_for":"Ha tenuto giù {who} a {ix} per “crescita sospetta”. Erano cresciuti di un cliente.",
"peering_inbox.kept_who_down_at_ix_it":"Ha tenuto giù {who} a {ix}: era un route leak. Centrato.",
"peering_inbox.large_peering_model":"Large Peering Model",
"peering_inbox.large_peering_model_is_answering":"Large Peering Model risponde alla tua posta",
"peering_inbox.max_prefix_limit_hit_who_at":"<b>Limite max-prefix superato: {who} a {ix}.</b><br>La sessione resta giù finché non ci guardi.",
"peering_inbox.max_prefix_limit_hit_who_at_5c56":"Limite max-prefix superato: {who} a {ix}",
"peering_inbox.mostly_ignores_email":"Ignora quasi tutte le email",
"peering_inbox.n_day_ago":{"one":"{n} giorno fa","other":"{n} giorni fa"},
"peering_inbox.n_unanswered":{"one":"{n} senza risposta","other":"{n} senza risposta"},
"peering_inbox.no_mail_yet_buy_an_ix":"Ancora niente posta. Compra una porta IX e arriverà.",
"peering_inbox.nobody_asks_and_no_route_servers":"Nessuno chiede, e niente route server. I clienti sentono dire che sei difficile da raggiungere, quindi ne chiamano meno, e la tua reputazione affonda.",
"peering_inbox.open_to_all":"Aperta a tutti",
"peering_inbox.opened_a_ticket_with_itself_to":"Ha aperto un ticket a se stesso per rivedere le proprie decisioni. Le ha approvate.",
"peering_inbox.peering_request_fifth_attempt_is":"Richiesta di peering, quinto tentativo. C’è qualcuno?",
"peering_inbox.peeringdb_last_updated_n_year_ago":{"one":"PeeringDB aggiornato {n} anno fa","other":"PeeringDB aggiornato {n} anni fa"},
"peering_inbox.peeringdb_updated_last_month":"PeeringDB aggiornato il mese scorso",
"peering_inbox.please_configure_sessions_with_us_at":"Per favore configurate le sessioni con noi a {ix}. Noi faremo le nostre la settimana prossima, o quella dopo.",
"peering_inbox.price_year_it_never_sleeps_never":"{price}/anno. Non dorme mai, non si lamenta mai e sbaglia spesso.",
"peering_inbox.raise_all_max_prefix_limits":"Alza tutti i limiti max-prefix",
"peering_inbox.raise_the_limit":"Alza il limite",
"peering_inbox.raised_the_max_prefix_limit_for":"Ha alzato il limite max-prefix per {who} a {ix} a {n}. Sembravano simpatici.",
"peering_inbox.raised_the_max_prefix_limit_for_7b4b":"Ha alzato il limite max-prefix per {who} a {ix}. Correttamente, stavolta.",
"peering_inbox.replied_to_a_peering_request_with":"Ha risposto a una richiesta di peering con un haiku sul BGP. Nessuna risposta per ora.",
"peering_inbox.session_with_who_is_back_up":"<b>La sessione con {who} è di nuovo su.</b><br>Nuovo limite: {n} prefissi. Promettono di aggiornare PeeringDB.",
"peering_inbox.signed_you_up_for_a_webinar":"Ti ha iscritto a un webinar su “Il peering nell’era dell’IA”.",
"peering_inbox.that_was_a_route_leak_who":"<b>Era un route leak.</b><br>{who} annunciava {n} prefissi: una full table. La prossima volta, tienila giù.",
"peering_inbox.the_session_stays_down_who_will":"<b>La sessione resta giù.</b><br>{who} aggiornerà PeeringDB e chiederà di nuovo. Prima o poi.",
"peering_inbox.their_peeringdb_says_lim_last":{"one":"Il loro PeeringDB dice {lim}, aggiornato {n} anno fa.","other":"Il loro PeeringDB dice {lim}, aggiornato {n} anni fa."},
"peering_inbox.tidied_up_a_session_it_decided":"Ha fatto ordine tra le sessioni che riteneva inutili: ha tolto il peering con {who} a {ix}.",
"peering_inbox.updated_your_peeringdb_record_your":"Ha aggiornato il tuo record su PeeringDB. Il numero del tuo NOC ora è una pizzeria.",
"peering_inbox.we_noticed_you_are_at_ix":"Abbiamo notato che siete a {ix}. Anche noi. Che ne dite?",
"peering_inbox.who_asked_a_mailing_list_whether":"<b>{who} ha chiesto su una mailing list se qualcuno ha un contatto funzionante da {me}.</b><br>La loro richiesta di peering è rimasta nella tua casella per un mese.",
"peering_inbox.who_at_ix_was_sending_a":"{who} a {ix} stava mandando una full table, e il limite max-prefix era l’unica cosa che la fermava. Col limite alzato, i prefissi di {net} puntano alla loro cantina. Il traffico verso {net} via transito finisce in un buco nero per qualche giorno.",
"peering_inbox.wrote_a_thousand_word_apology_to":"Ha scritto mille parole di scuse a una rete con cui non hai mai fatto peering.",
"peering_desk.closed_desc":"Ogni richiesta di peering viene declinata, e niente route server. I clienti sentono dire che sei difficile da raggiungere, quindi ne chiamano meno.",
"peering_desk.n_more_exchanges":{"one":"{n} altro exchange","other":"altri {n} exchange"},
"peering_desk.n_new_sessions_at_ix":{"one":"Ufficio peering: {n} nuova sessione a {ix} ({pol}).","other":"Ufficio peering: {n} nuove sessioni a {ix} ({pol})."},
"peering_desk.n_new_sessions_at_ix_declined":{"one":"Ufficio peering: {n} nuova sessione a {ix}, {d} declinate ({pol}).","other":"Ufficio peering: {n} nuove sessioni a {ix}, {d} declinate ({pol})."},
"peering_desk.n_requests_declined":{"one":"Ufficio peering: {n} richiesta declinata ({pol}).","other":"Ufficio peering: {n} richieste declinate ({pol})."},
"peering_desk.open_desc":"Ogni rete che chiede ottiene una sessione, e i route server funzionano.",
"peering_desk.open_to_all":"Aperta a tutti",
"peering_desk.selective_desc":"Le reti piccole dell’exchange e i nuovi arrivati con PeeringDB aggiornato ottengono una sessione; le altre vengono declinate in silenzio. Niente route server: chiedi le reti che vuoi su ogni exchange.",
"peering_policy.a_new_vp_wants_to_monetise":"Un nuovo VP vuole “monetizzare l’interconnessione” in questo mercato.",
"peering_policy.already_reach_you_through_your":"Ti raggiungono già tramite il tuo provider di transit qui, e per loro va bene così.",
"peering_policy.moved_everything_in_this_city_to":"In questa città hanno spostato tutto su PNI. Leggi la loro pagina PearingDB, tutte e 40 le pagine.",
@ -2841,6 +2773,34 @@
"pni_all.pni_size":"Capacità PNI",
"pni_all.setup_total":"Costo totale di attivazione",
"pni_all.traffic_charges_apply":"Si applicano anche costi di traffico di {price} per Gbps.",
"pni_list.chip_not_reached":"Non raggiunta",
"pni_list.chip_peers_at":"Peering a {list}",
"pni_list.chip_pni_at":"PNI a {list}",
"pni_list.chip_pni_elsewhere":"PNI altrove: {list}",
"pni_list.chip_pni_here":"PNI qui · {port} · {p}",
"pni_list.chip_pni_here_on_order":"PNI qui · ordinato",
"pni_list.chip_via_a_cone":"Tramite il cono di un peer",
"pni_list.chip_via_cone":"Tramite il cono di {net}",
"pni_list.chip_via_transit":"Tramite transit",
"pni_list.f_all":"Tutte",
"pni_list.f_pni":"Già in PNI",
"pni_list.f_transit":"Tramite transit",
"pni_list.f_worth":"Conviene",
"pni_list.list_more":"{list} +{n}",
"pni_list.little_to_gain_here":"Poco da guadagnare qui: {g}",
"pni_list.n_here":"{g} qui",
"pni_list.n_networks_w_worth_it":{"one":"{n} rete · {w} conviene","other":"{n} reti · {w} convengono"},
"pni_list.nothing_matches":"Nessuna rete qui corrisponde a questo filtro.",
"pni_list.saves_minus_cost":"Risparmi {saved} di transit al mese; il PNI costa {cost} al mese.",
"pni_list.sort_az":"Ordine: A–Z",
"pni_list.sort_worth":"Ordine: prima quelle che convengono",
"pni_list.via_drop":"{g} persi",
"pni_list.via_haul":"{g} sul backbone",
"pni_list.via_ix":"{g} IX",
"pni_list.via_transit":"{g} transit",
"pni_list.with_port":"PNI da {port}: {val}",
"pni_list.worth_it":"Conviene",
"pni_list.worth_rule":"⭐ Conviene: un PNI qui ti fa risparmiare più transit di quanto costa al mese, porta almeno 1 Gbps che oggi perdi, oppure toglie almeno 1 Gbps da una porta di exchange piena all'80%.",
"pnis.a_new_region_is_coming_online":"Una nuova region arriverà presto. Arriva presto dal 2019.",
"pnis.about_n_days_to_go_nothing":"Mancano circa {n} giorni. Non resta che aspettare, o sollecitare.",
"pnis.augment_with_net_delivered_in_city":"<b>Ampliamento con {net} consegnato a {city}.</b><br>Ora {port}.",
@ -2892,16 +2852,18 @@
"progress.a_port_on_ix_brrr_manaus":"Una porta su IX.brrr Manaus",
"progress.broadband_in_city":"Banda larga a {city}",
"progress.carnaval_delivered_in_full":"Carnevale servito per intero",
"progress.city_on_your_network":"{city} sulla tua rete",
"progress.customer_level_lv_of_max":"Livello clienti {lv} di {max}",
"progress.days_in_a_row_at_g":"Giorni di fila con almeno {g}",
"progress.days_in_a_row_with_99":"Giorni di fila con il 99,5% servito",
"progress.done_in_d_days":"Fatto in {d} giorni!",
"progress.floods_that_got_through":"Ondate passate",
"progress.ix_brrr_ports":"Porte IX.brrr",
"progress.ix_brrr_ports_on_your_backbone":"Porte IX.brrr sulla tua dorsale",
"progress.monthly_profit":"Utile mensile",
"progress.n_of_m":"{n} su {m}",
"progress.next_name_unlocks_what":"Prossimo: {name} sblocca {what}",
"progress.not_tier_1_right_now_why":"Al momento non sei Tier 1: {why}.",
"progress.pop_in_city":"POP a {city}",
"progress.seoul_served_well":"Seul servita bene (consegnato e veloce)",
"progress.terabit_floods_held":"Ondate terabit respinte",
"progress.under_attack_now":"Sotto attacco ora",
"progress.your_score_peak_traffic":"Il tuo punteggio: picco di traffico",
@ -3279,7 +3241,7 @@
"routing_and_routers.unplug_something_first_used_ports":"<b>Prima stacca qualcosa.</b><br>Ci sono {used} porte in uso, e con un router in meno ne avresti solo {max}.",
"rules.a_billion_dollars_every_unlock_your":"Un miliardo di dollari, tutto sbloccato, il tuo cavo sottomarino.",
"rules.a_cut_now_and_then":"Un taglio ogni tanto.",
"rules.a_third_of_the_outages_no_ddos":"Un terzo dei guasti, niente DDoS. PNI e cantieri in pochi giorni. Niente posta, niente carenze, niente rotte esaurite, niente de-peering.",
"rules.a_third_of_the_outages_no_ddos_pnis":"Un terzo dei guasti, niente DDoS. PNI e cantieri in pochi giorni. Niente carenze, niente rotte esaurite, niente de-peering.",
"rules.bgp_at_3_a_m":"BGP alle 3 di notte",
"rules.change_freeze":"Change freeze",
"rules.chaos_calm":"Calmo",
@ -3296,7 +3258,7 @@
"rules.on_call":"Reperibile",
"rules.one_small_network_one_tricky_goal":"Una piccola rete, un obiettivo insidioso.",
"rules.puzzle":"Rompicapo",
"rules.real_lead_times_real_outages_a":"Tempi di consegna veri, guasti veri, una casella di peering piena. Il gioco classico.",
"rules.real_lead_times_real_outages_a_real":"Tempi di consegna veri, guasti veri, un mercato vero. Il gioco classico.",
"rules.rules_are_locked_for_this_network":"{rules}: le regole sono bloccate per questa rete.",
"rules.the_real_thing_your_pager_has":"Il gioco vero. Il tuo cercapersone ha delle opinioni.",
"rules.your_pager_never_sleeps":"Il tuo cercapersone non dorme mai.",
@ -3330,15 +3292,15 @@
"scenarios.1_6t_on_every_hop_from":"1.6T su ogni tratto da Miami a Madrid e da Lisbona a Lagos, e 100 Gbps serviti",
"scenarios.90_days_in_a_row_with":"90 giorni di fila con il 99.5% della domanda servita",
"scenarios.99_reach_and_150_gbps_served":"99% di copertura e 150 Gbps serviti",
"scenarios.99_reach_and_200_gbps_served":"99% di copertura e 200 Gbps serviti senza andare in rovina",
"scenarios.a_path_from_cape_town_to":"Un percorso da Città del Capo al Cairo, POP a Lagos e Nairobi, e 150 Gbps serviti",
"scenarios.a_path_from_cape_town_to_cairo_lagos":"Un percorso da Città del Capo al Cairo, con Lagos e Nairobi anche loro sulla tua rete, e 150 Gbps serviti",
"scenarios.a_path_from_los_angeles_to":"Un percorso da Los Angeles a Sydney con 1.6T su ogni tratta, un percorso da Los Angeles a Tokyo e 150 Gbps serviti",
"scenarios.a_path_from_marseille_to_singapore":"Un percorso da Marsiglia a Singapore, e 80 Gbps tra l’Asia e il resto della tua rete per 30 giorni di fila",
"scenarios.amsterdam_hosting_capital_of_europe":"Amsterdam, capitale europea dell’hosting, in piena stagione delle botnet. Ogni tostapane smart, baby monitor e frigo mai aggiornato della Terra ha scelto da che parte stare, e non è la tua. Un’ondata ogni pochi giorni, sempre più spesso nei terabit, mentre tutto il resto continua a rompersi. Parti con l’attrezzatura più grossa già sbloccata, e ti servirà.",
"scenarios.broadband_in_sydney_melbourne":"Banda larga a Sydney, Melbourne, Brisbane, Adelaide e Perth, e due cavi diversi verso l’estero",
"scenarios.broadband_in_sydney_melbourne_served":"Banda larga a Sydney, Melbourne, Brisbane, Adelaide e Perth, due cavi diversi verso l’estero, e 500 Gbps serviti",
"scenarios.cape_to_cairo":"Dal Capo al Cairo",
"scenarios.cape_town_build_a_network_across":"Città del Capo. Costruisci una rete attraverso l’Africa: ogni confine vuole il suo permesso, e metà delle reti elettriche non sono dalla tua parte.",
"scenarios.cogentle_and_goggle_are_not_speaking":"Cogentle e Goggle non si parlano, e stavolta è per sempre. Compra il transit economico, se hai il coraggio.",
"scenarios.connect_panama_city_to_bogota_lima":"Bogotá, Lima, Santiago e São Paulo collegate a Panama City, e 150 Gbps serviti",
"scenarios.deliver_carnaval_in_full":"Servi il Carnaval per intero",
"scenarios.every_cable_through_the_red_sea":"Ogni cavo nel Mar Rosso è tagliato, e anche il salto verso l’Egitto. Fai parlare Marseille con Singapore lo stesso: girando intorno all’Africa, via terra o dall’altra parte del pianeta.",
"scenarios.every_ix_is_run_by_de":"Ogni IX è gestito da DE-KICKS",
@ -3350,22 +3312,22 @@
"scenarios.mid_atlantic_accent":"Accento medio-atlantico",
"scenarios.only_spatzle_ix":"Solo Spätzle-IX",
"scenarios.order_and_progress":"Ordine e Progresso",
"scenarios.ponta_delgada_in_the_azores_halfway":"Ponta Delgada, nelle Azzorre, a metà dell’Atlantico. Dalla Florida alla Spagna e da Lisbona a Lagos è appena troppo lungo per un’onda da 1.6T: in linea diretta ognuna porta 1.2T. Approda sulle isole in mezzo, fai ripartire la luce e ogni tratto va a 1.6T o più. Parti con l’attrezzatura da 1.6T sbloccata.",
"scenarios.pops_in_bogota_lima_santiago_and":"POP a Bogotá, Lima, Santiago e São Paulo, e 150 Gbps serviti",
"scenarios.ports_on_15_ix_brrr_exchanges":"Porte su 15 exchange IX.brrr, una delle quali a Manaus, e 200 Gbps serviti",
"scenarios.ponta_delgada_azores_lisbon_lagos":"Ponta Delgada, nelle Azzorre, a metà dell’Atlantico. Dalla Florida alla Spagna è appena troppo lungo per un’onda da 1.6T: in linea diretta porta 1.2T. Approda sulle isole in mezzo, fai ripartire la luce e ogni tratto va a 1.6T o più. Da Lisbona a Lagos l’1.6T arriva in un colpo solo, ma a caro prezzo: le Canarie costano meno. Parti con l’attrezzatura da 1.6T sbloccata.",
"scenarios.ports_on_15_ix_brrr_exchanges_backbone":"Porte su 15 exchange IX.brrr che la tua dorsale collega a São Paulo, una delle quali a Manaus, e 200 Gbps serviti",
"scenarios.reach_50_of_the_internet_and":"Raggiungi il 50% di internet e servi 300 Gbps",
"scenarios.red_sea_crisis":"Crisi nel Mar Rosso",
"scenarios.rio_from_scratch_carnaval_starts_in":"Rio da zero. Il Carnaval comincia tra 90 giorni e vuole 400 Gbps per cinque giorni di fila. Il mondo intero sta guardando.",
"scenarios.sandbox_mode_a_billion_dollars_chaos":"<b>Modalità sandbox</b><br>Un miliardo di dollari e tutto sbloccato. Caos: {chaos}. Costruisci l’internet che hai sempre sognato, e tieni una ruspa di scorta a portata di mano.",
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Modalità sandbox</b><br>Un miliardo di dollari, tutto sbloccato e non si rompe mai niente. Costruisci l’internet che hai sempre sognato.",
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. Il Brasile è un continente: quaranta exchange IX.brrr, migliaia di provedores e l’Amazzonia tra te e il nord.",
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Seoul. Gli eyeball più veloci e affamati della Terra, transit a quattro volte il prezzo, e tre incumbent che ti fatturano ogni gigabit che gli mandi.",
"scenarios.seoul_sender_pays_d":"Seul, dove paga chi invia. Ogni Gbps che un carrier consegna in Corea ti costa una tassa «sender pays» oltre alla bolletta del transit, i tre incumbent parlano solo tramite un PNI a pagamento, il gigabit di casa costa quanto un bibimbap e gli utenti coreani notano ogni millisecondo. Il transit a Tokyo è economico, se i tuoi clienti reggono il viaggio.",
"scenarios.seoul_sender_pays_goal":"{g} Gbps serviti, Seul servita bene ({q}%), 99% di copertura e un utile mensile",
"scenarios.shark_season_subsea_cuts_twice_as":"Stagione degli squali: tagli sottomarini due volte più probabili",
"scenarios.start_in_panama_city_nothing_crosses":"Parti da Panama City. Niente attraversa il Darién Gap via terra, e le Ande sono d’intralcio a tutto il resto.",
"scenarios.start_in_stuttgart_where_nobody":"Parti da Stuttgart, dove nessuno vende transit. Raggiungi internet solo con peering, PNI, cache e la tua fibra. Niente transit, da nessuna parte, mai.",
"scenarios.start_with_only_100k":"Parti con soli $100k",
"scenarios.sydney_2013_the_toilet_paper_group":"Sydney, 2013. Il Toilet Paper Group ha portato la sua fibra nelle cantine dei condomini, e la rete nazionale ha gridato al cherry-picking. Tocca a te: salta la Nearly Broadband Network, paga il contributo e arriva per primo.",
"scenarios.tallinn_ships_drag_their_anchors":"Tallinn. Le navi trascinano le ancore sui cavi del Baltico tre volte più spesso del solito.",
"scenarios.tallinn_nobody_sells_transit_anchors":"Tallinn, dove nessuno vende transit: la tua internet è al di là del mare. Le navi trascinano le ancore sui cavi del Baltico tre volte più spesso del solito.",
"scenarios.the_cogentle_spat":"La lite Cogentle",
"scenarios.transit_costs_30_more":"Il transit costa il 30% in più",
"scenarios.twice_the_failures":"Guasti raddoppiati",
@ -3419,6 +3381,7 @@
"sites_and_service.level_n":"Livello {n}",
"sites_and_service.n_ports":"{n} porte",
"sites_and_service.no_path_right_now":"nessun percorso al momento",
"sites_and_service.p_of_city_s_traffic_comes_from_kr":"<b>Il {p} del traffico di {city} arriva da {to}: {ms} ms di round trip.</b> Gli utenti coreani notano tutto sopra gli 8 ms, e oltre i 40 ms la banda larga conta come servizio scadente. Servi di più da Seul: peering, cache e PNI qui, o transit locale se reggi la tassa «sender pays».",
"sites_and_service.p_of_city_s_traffic_is":"<b>Il {p} del traffico di {city} viene riportato al transito a {to}: {ms} ms di andata e ritorno.</b> Gli utenti se ne accorgono oltre i 20 ms (circa 1.500 km), e oltre i 50 ms banda larga e servizi internet contano come servizio scadente. Compra transito qui o vicino, o fai peering in loco.",
"sites_and_service.path_latency_lat":"Latenza del percorso: <b>{lat}</b>",
"sites_and_service.pn_routers":"router da {pn}",
@ -3429,9 +3392,7 @@
"sites_peering_caches.bgp_session_established":"Sessione BGP stabilita.",
"sites_peering_caches.cache_installed_in_city_net_shipped":"<b>{cache} installata a {city}!</b><br>{net} te l’ha spedita gratis. Tu paghi {mo}/mese di corrente.",
"sites_peering_caches.could_you_resend_the_loa_you":"<b>“Può rimandarci la LOA?”</b><br>L’hai mandata quattro volte.",
"sites_peering_caches.hello_i_am_large_peering_model":"Ciao! Sono Large Peering Model. Ho letto la tua casella e ho già delle opinioni.",
"sites_peering_caches.it_is_with_the_provisioning_team":"<b>“È in mano al team di provisioning.”</b><br>Nessuno ha mai conosciuto il team di provisioning.",
"sites_peering_caches.large_peering_model_is_hired_your":"<b>Large Peering Model è assunto.</b><br>La tua casella ora è un problema suo. {price} all’anno, fatturati ogni mese.",
"sites_peering_caches.n_new_session_at_ix_small":{"one":"<b>{n} nuova sessione a {ix}.</b><br>Reti piccole, ma fanno numero, e contano tutte per il club.","other":"<b>{n} nuove sessioni a {ix}.</b><br>Reti piccole, ma fanno numero, e contano tutte per il club."},
"sites_peering_caches.net_accepted":"{net} ha accettato!",
"sites_peering_caches.net_declined_the_pni_why":"<b>{net} ha rifiutato il PNI.</b><br>{why}",
@ -3439,11 +3400,8 @@
"sites_peering_caches.net_does_not_do_port_pnis":"<b>{net} non fa PNI da {port}.</b><br>Niente sotto i 100G. Torna con più traffico, o con un’ottica più grande.",
"sites_peering_caches.net_says_not_yet_send_them":"<b>{net} dice: non ancora.</b><br>Prima mandagli {min}+ Gbps.",
"sites_peering_caches.pni_with_net_ordered_eta_a":"<b>PNI con {net} ordinata.</b><br>{eta}. Un cross-connect in {dc}, appena qualcuno trova la LOA.",
"sites_peering_caches.raised_n_max_prefix_limits_all":"<b>Alzati {n} limiti max-prefix.</b><br>Tutta crescita, nessun leak. Fortuna.",
"sites_peering_caches.raised_n_max_prefix_limits_one":{"one":"<b>Alzati {n} limiti max-prefix.</b><br>Uno era un route leak. Ora è nel NOC.","other":"<b>Alzati {n} limiti max-prefix.</b><br>{k} erano route leak. Ora sono nel NOC."},
"sites_peering_caches.second_lag_member_added_one_member":"<b>Secondo membro LAG aggiunto.</b><br>Ora c’è un membro per edificio, così un edificio al buio si porta via solo metà porta.",
"sites_peering_caches.second_site_live_in_city_b":"<b>Secondo sito attivo a {city}.</b><br>{b} è collegato a {a} dal tuo anello metro. Sposta lì qualche uplink dalle schede Transit e Peering.",
"sites_peering_caches.the_ai_is_gone_it_left":"<b>L’IA se n’è andata.</b><br>Ha lasciato un documento di passaggio di consegne di 40 pagine. Parla soprattutto di sé.",
"sites_peering_caches.they_checked_your_pearingdb_page_and":"Hanno controllato la tua pagina PearingDB e i numeri del traffico gli sono piaciuti.",
"sites_peering_caches.we_are_waiting_on_the_colo":"<b>“Stiamo aspettando il colo per il cross-connect.”</b><br>Il colo dice che sta aspettando loro.",
"sites_peering_caches.your_account_manager_found_the_order":"<b>Il tuo account manager ha trovato l’ordine sotto una scrivania.</b><br>È un mese più vicino.",
@ -3465,6 +3423,7 @@
"slots.last_played_ago":"Ultima partita: {ago}",
"slots.load_the_newest_version":"Carica la versione più recente",
"slots.more_for_name":"Altro per {name}",
"slots.n_day_ago":{"one":"{n} giorno fa","other":"{n} giorni fa"},
"slots.n_h_ago":{"one":"{n} h fa","other":"{n} h fa"},
"slots.name_is_open_in_another_window":"{name} è aperta in un'altra finestra",
"slots.name_is_waiting_in_your_other":"<b>{name} ti aspetta nell'altra finestra.</b><br>Passa lì per continuare a giocare.",
@ -3488,7 +3447,6 @@
"slots.this_window_stopped_saving_so_it":"In un'altra finestra è stata salvata una versione più recente, quindi questa ha smesso di salvare invece di sovrascriverla.",
"slots.two_windows_one_network":"Due finestre, una rete",
"slots.your_networks":"Le tue reti",
"slots.your_networks_switch_or_start_another":"Le tue reti <small>cambia o iniziane un'altra</small>",
"slots.your_other_networks_share_this_browser":"Le tue altre reti condividono lo spazio di questo browser. Esporta quelle che vuoi tenere, poi eliminale qui per fare posto.",
"sold_out.a_hyperscaler_bought_every_wave_of":"Un hyperscaler ha comprato la settimana scorsa ogni onda di questa misura su questa tratta.",
"sold_out.not_big_enough_yet_list":"Non sei ancora abbastanza grande: {list}",
@ -3505,6 +3463,39 @@
"sold_out.tier_1s_never_peer_at_ixs":"I Tier 1 non fanno mai peering agli IX",
"sold_out.wants_need_gbps_of_traffic_from":"Vuole ≥ {need} Gbps di traffico da te (ne mandi {dem})",
"sold_out.wants_you_to_be_a_tier":"Vuole che tu sia un Tier 2, o che gli mandi ≥ {need} Gbps (ne mandi {dem})",
"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · circa {ms} ms · pronto tra circa {n} giorni",
"specialist.a_consortium_is_selling_seats_on":"Un consorzio vende posti su {name}, un nuovo cavo da {a} a {b}. Coppie di fibra tue, prima di essere Tier 1.",
"specialist.ask_for_a_demo_unit_p_n":"Unità demo: +{p}%, {n} giorni",
"specialist.charter_signed_name":"Statuto firmato: {name}.",
"specialist.consortium_seat":"Posto nel consorzio",
"specialist.consortium_seat_name":"Posto nel consorzio: {name}",
"specialist.demo_unit_ships_in_n_days":"L'unità demo arriva tra {n} giorni",
"specialist.dig_your_own_as_a_pioneer":"Scava la tua da pioniere (+{p}%) · {price} · {n} giorni",
"specialist.global_backbone":"Backbone globale",
"specialist.includes_pops_at_the_landings_price":"POP agli approdi inclusi: {price}.",
"specialist.keep_it":"Tienilo",
"specialist.low_latency_boutique":"Boutique a bassa latenza",
"specialist.n_fiber_pairs":{"one":"{n} coppia di fibra","other":"{n} coppie di fibra"},
"specialist.part_owner_of_the_sea":"Comproprietario del mare",
"specialist.pick":"Scegli",
"specialist.pick_a_charter":"Scegli uno statuto",
"specialist.routes_r_of_n_beat_the":"Rotte finanziarie più veloci sulla tua fibra che su qualsiasi percorso in affitto: {r}/{n} · clienti latenza paganti: {c}/{m}",
"specialist.speed_of_light":"Velocità della luce",
"specialist.spotted_your_broadband_in_a_one":"Hanno notato la tua banda larga a {a}, una delle grandi città di utenti.",
"specialist.spotted_your_cap_of_dark_fiber":"Hanno notato i tuoi {cap} di dark fiber accesa tra {a} e {b}.",
"specialist.spotted_your_ms_ms_a_b_path":"Hanno notato il tuo percorso {a}–{b} da {ms} ms.",
"specialist.spotted_your_two_diverse_paths_a":"Hanno notato i tuoi due percorsi diversi tra {a} e {b}.",
"specialist.take_a_seat_on_a_consortium":"Prendi un posto su un cavo di consorzio",
"specialist.the_classic_game_grow_everywhere_and":"Il gioco classico: cresci ovunque, i clienti seguono il tuo livello e Tier 1 è la vittoria.",
"specialist.the_consortium_runs_the_cable_your":"Il consorzio gestisce il cavo e i suoi ripetitori. Le tue coppie le accendi con le tue ottiche; un taglio del cavo taglia anche loro.",
"specialist.the_vendor_ships_a_demo_name":"Il vendor spedisce un {name} demo tra {n} giorni. Finché il tuo livello non lo raggiunge, ogni unità costa il {p}% in più.",
"specialist.trading_firms_and_other_latency_customers":"Le società di trading e gli altri clienti latenza chiamano più spesso e pagano il {p}% in più. Vinci Velocità della luce: batti la latenza in affitto più veloce su {r} rotte finanziarie con la tua fibra mentre {c} clienti latenza ti pagano. Tier 1 conta ancora.",
"specialist.what_kind_of_network_are_you":"Che rete stai costruendo? Puoi scegliere ancora per {n} giorni; fino ad allora sei un Backbone globale.",
"specialist.win_as_a_low_latency_boutique":"Vinci come boutique a bassa latenza",
"specialist.won_on_date_your_own_glass":"Vinto il {date}: la tua fibra ha battuto ogni percorso in affitto.",
"specialist.you_own_n_fiber_pairs_on":"Firmato: hai {n} coppie di fibra su {name}, {a} ⇄ {b}. Le navi posacavi salpano; pronto tra circa {d} giorni.",
"specialist.your_own_fiber_pairs_on_a":"Coppie di fibra tue su un nuovo cavo sottomarino: paga ora la tua quota della posa e accendile con le tue ottiche quando approda.",
"specialist.your_own_glass_beats_every_leased":"La tua fibra batte ogni percorso in affitto su tre rotte finanziarie, e i trader pagano per questo. La boutique ha vinto!",
"supply_chain.as_when_you_started":"come quando hai iniziato",
"supply_chain.chip_shortage_every_router_vendor_is":"<b>Carenza di chip!</b><br>Tutti i produttori di router aspettano gli stessi chip. Router nuovi e upgrade costano il 40% in più per {n} giorni. Tempi di consegna: “sì”.",
"supply_chain.every_cable_ship_is_booked":"<b>Tutte le navi posacavi sono prenotate.</b><br>Gli hyperscaler hanno noleggiato ogni nave posacavi e ogni squadra di scavo del pianeta. Nuove fibre e nuovi cavi costano il 30% in più per {n} giorni.",
@ -3517,7 +3508,9 @@
"supply_chain.what_p_n_days_left":"{what} +{p} · {n} giorni rimasti",
"supply_chain.your_price_lock_covers_you_until":"Il tuo blocco dei prezzi ti copre fino al {date}.",
"title.a_billion_dollars_and_every_toy":"Un miliardo di dollari e tutti i giocattoli del negozio.",
"title.as_number":"Numero di AS",
"title.asia_hub_great_peering_far_from":"Hub dell’Asia. Ottimo peering, lontano da casa.",
"title.asn_not_usable":"Quel numero di AS non instrada: scegline uno da 1 a 4294967294 che nessuna rete sulla mappa usa (niente AS 0, 23456, intervalli di documentazione o privati). Lascia vuoto per uno a caso.",
"title.back_to_my_network":"Torna alla mia rete",
"title.big_hungry_market_few_providers":"Mercato grande e affamato, pochi provider.",
"title.build_an_internet_lay_fiber_between":"Costruisci un internet. Posa fibra tra le città, compra transit, fai peering agli exchange, metti sotto contratto le aziende e tieni contenti gli eyeball, mentre ruspe, squali e route leak fanno di tutto per fermarti.",

View file

@ -755,6 +755,7 @@
"city_panel.second_site_and_metro_ring":"Segundo site e anel metro",
"city_panel.sell_internet_to_homes_here_starts":"Venda internet para as casas daqui. Começa em uns {start} e cresce até {max} enquanto o serviço for bom. Paga {rate} por Gbps servido, todo mês.",
"city_panel.sells_pnis_down_to_1g":"vende PNI a partir de 1G",
"city_panel.sender_pays_fee_per_gbps":"Quem envia paga: +{fee} por Gbps de trânsito",
"city_panel.served_in_city":"Servido em {city}",
"city_panel.serving_v":"atendendo {v}",
"city_panel.shut_this_pop_down_its_links":"Desligar este POP: links, portas e caches vão junto, e todo cliente que depende dele é dispensado, com multa por rescisão antecipada.",
@ -806,7 +807,6 @@
"common.aug":"ago",
"common.auto":"Auto",
"common.auto_enrolled":"inscrito automaticamente",
"common.average":"Na média",
"common.avoid":"Evitar",
"common.back":"Voltar",
"common.back_to_the_map":"Voltar ao mapa",
@ -822,7 +822,6 @@
"common.bgp_hijack":"BGP hijack",
"common.bgp_sessions":"Sessões BGP",
"common.big_league":"Primeira divisão",
"common.black_hole":"Buraco negro",
"common.blitz":"Blitz",
"common.boot_time":"Tempo de boot",
"common.boot_times":"Tempo de boot",
@ -830,7 +829,6 @@
"common.box_6ee3":"− box",
"common.build_time":"Tempo de obra",
"common.building":"em obras",
"common.bumped":"cobrado de novo",
"common.bunker_two":"Bunker Dois",
"common.busiest_links":"Links mais carregados",
"common.business_customers":"Clientes empresariais",
@ -992,8 +990,6 @@
"common.import_a_save":"Importar um save",
"common.in_progress":"em andamento",
"common.in_use":"Em uso",
"common.inbox":"Caixa de entrada",
"common.inbox_zero":"Caixa zerada.",
"common.incident":"Incidente",
"common.incidents":"Incidentes",
"common.incidents_survived":"Incidentes superados",
@ -1121,7 +1117,6 @@
"common.oops":"Ops",
"common.open":"Abrir",
"common.open_bank":"Abrir banco",
"common.open_inbox":"Abrir a caixa",
"common.open_infra":"Abrir Infra",
"common.open_lease":"Abrir aluguel",
"common.open_noc":"Abrir NOC",
@ -1146,7 +1141,6 @@
"common.peered_ce2f":"Em peering ✓",
"common.peering":"Peering",
"common.peering_first":"Peering primeiro",
"common.peering_inbox":"Caixa de peering",
"common.peering_policy":"Política de peering",
"common.peering_ratio":"Taxa de peering",
"common.peering_spat":"Briga de peering",
@ -1195,7 +1189,6 @@
"common.remove_port":"Remover porta",
"common.remove_script":"Remover script",
"common.request":"Pedir",
"common.responsive":"Responde rápido",
"common.resume":"Continuar",
"common.retention_offer":"Oferta de retenção",
"common.revenue":"Receita",
@ -1301,7 +1294,6 @@
"common.to":"Para",
"common.toaster_wrangler":"Domador de torradeiras",
"common.today":"Hoje",
"common.today_4203":"hoje",
"common.toggle_sound":"Ligar/desligar som",
"common.too_far_for_this_cable":"longe demais para este cabo",
"common.traceroute":"Traceroute",
@ -1363,7 +1355,6 @@
"common.your_network":"Sua rede",
"common.your_pop":"Seu POP",
"common.your_pops":"Seus POPs",
"common.your_reputation":"Sua reputação",
"common.zombie_route":"Rota zumbi",
"compute.attack_hauled_to_scrubbing_in_city":"Ataque levado ao scrubbing em {city}",
"compute.courtesy_route_to_new_networks":"Rota de cortesia para novas redes",
@ -1610,8 +1601,6 @@
"failures.a_kilometre_of_copper_went_missing":"Um quilômetro de “cobre” sumiu da sua vala {a}–{b}. Era a sua fibra. O ferro-velho devolveu com um bilhete.",
"failures.a_landslide_in_the_andes_buried":"Um deslizamento nos Andes soterrou sua fibra {a}–{b}.",
"failures.a_llama_herd_trampled_the_fiber":"Um rebanho de lhamas pisoteou o marcador da fibra em {a}–{b}. Depois uma retroescavadeira achou a fibra.",
"failures.a_member_at_ix_leaked_the":"Um membro do {ix} vazou a tabela de roteamento inteira no route server. Limites de max-prefix estouraram em todo lugar. Seu peering lá caiu.",
"failures.a_member_at_ix_leaked_the_5563":"Um membro do {ix} vazou a tabela de roteamento inteira no route server. Limites de max-prefix estouraram em todo lugar. Seu peering lá, em {city}, caiu.",
"failures.a_new_tech_in_a_tidied":"Um técnico novo em {a} “arrumou” a bagunça de cabos. Seu link {a}–{b} fazia parte da bagunça.",
"failures.a_new_tech_in_city_used":"Um técnico novo em {city} usou Vegemite como pasta térmica. Ela conduz sabor, não calor, e seu roteador cozinhou.",
"failures.a_optic_on_a_b_overheated":"Um {optic} em {a}–{b} superaqueceu e agora é um chaveiro caríssimo.",
@ -1678,7 +1667,6 @@
"failures.load_shedding_stage_n_in_city":"Rodízio de energia stage {n} em {city}, e você não tem gerador. Compre um: aqui não é opcional.",
"failures.load_shedding_took_out_site_in":"O rodízio de energia derrubou {site} em {city}. {other} aguentou, então o POP roda com metade da capacidade. Tudo que está ligado só no site apagado está offline.",
"failures.magpie_swooping_season_the_field":"Temporada dos rasantes das pegas: os técnicos em {a}–{b} não saem da van, e seu corte continua cortado.",
"failures.max_prefix_meltdown":"Pane de max-prefix",
"failures.metro_ring_cut":"Anel metro cortado",
"failures.microbursts_on_a_b_overflow_shallow":"Microbursts em {a}–{b} estouram os buffers rasos do router: 0,5% de perda no pico, e toda videochamada percebe.",
"failures.microbursts_on_a_b_your_deep":"<b>Microbursts em {a}–{b}.</b><br>Seus routers de buffer profundo absorveram tudo. Ninguém percebeu.",
@ -1770,7 +1758,6 @@
"fiber_and_hardware.those_optics_need_the_regen_site":"<b>Essas ópticas precisam do site de regeneração.</b><br>Remova primeiro os canais long-haul, ou mantenha o site.",
"fiber_modals.a_fiber_pair_of_your_own":"Um par de fibra só seu. O vidro é barato, o equipamento não: você compra um line system com um amplificador a cada {km} km, depois a óptica de cada canal. Seu equipamento pode falhar, e quem conserta é você.",
"fiber_modals.a_fiber_pair_on_cable_km":"Um par de fibra no {cable}, {km} km. Divide o cabo com as waves de todo mundo, âncoras incluídas.",
"fiber_modals.build_your_own_level_3":"Construir a sua <small>nível 3</small>",
"fiber_modals.build_your_own_price_n_days":"Construir a sua <small>{price} · ~{n} dias</small>",
"fiber_modals.dark_fiber_across_the_chinese_border":"Dark fiber atravessando a fronteira chinesa não está à venda. Compre uma wave transfronteiriça.",
"fiber_modals.dark_fiber_unlocks_at_customer_level":"Dark fiber desbloqueia no nível de clientes 2. Você precisa de escala para justificar comprar seu próprio equipamento óptico.",
@ -1794,11 +1781,8 @@
"fiber_modals.your_pop_needs_a_fabric_port":"Seu POP · precisa de uma porta de fabric lá",
"game_and_settings.delete_and_start_over":"Apagar e recomeçar",
"game_and_settings.export_save_download_a_file":"Exportar save <small>baixar um arquivo</small>",
"game_and_settings.import_a_save_from_a_file":"Importar um save <small>de um arquivo</small>",
"game_and_settings.import_failed_that_save_is_damaged":"<b>Falha na importação.</b><br>Esse save está corrompido e não pôde ser carregado. Seu jogo atual não foi mexido.",
"game_and_settings.name_and_everything_it_owns_will":"{name} e tudo o que ela possui serão apagados. Não dá para desfazer.",
"game_and_settings.scenarios_amp_weekly_challenge":"Cenários &amp; desafio semanal",
"game_and_settings.share_your_network_image_card":"Compartilhar sua rede <small>card de imagem</small>",
"game_and_settings.start_a_new_network":"Começar uma nova rede?",
"game_and_settings.welcome_back_name_imported_and_saved":"<b>Bem-vindo de volta, {name}.</b><br>Importado e salvo neste dispositivo.",
"game_and_settings.your_game_saves_itself_every_few":"Seu jogo se salva sozinho a cada poucos segundos neste dispositivo.",
@ -1869,7 +1853,7 @@
"help.each_pop_s_router_model_caps":"O modelo de router de cada POP limita a porta mais rápida (100G, 400G, 800G, 1.6T) e quanto ele consegue encaminhar. Waves e portas maiores pedem routers melhores nas duas pontas. Modelos melhores desbloqueiam com seu nível de clientes. Com um router só, upgrade significa um dia fora do ar.",
"help.event_networks_a_final_a_festival":"Redes de evento (uma final, um festival, uma keynote) precisam de uma rajada de capacidade numa cidade por alguns dias e pagam uma vez no fim, proporcional a quanto do público você atendeu; abaixo de 70% você paga multa. Redes SD-WAN ligam de 3 a 6 POPs seus em hub-and-spoke, então um spoke quebrado azeda o contrato inteiro. Quando você tiver sua própria dark fiber, as operadoras vão querer alugar canais livres como alien waves, e na fibra que você mesmo construiu, um par sobrando.",
"help.events_chains_and_wholesale":"Eventos, redes e atacado",
"help.every_ix_port_brings_peering":"Cada porta de IX traz pedidos de peering e alertas de max-prefix, na aba Redes. Uma sessão que estoura o limite fica fora até você olhar: aumente o limite se for crescimento, deixe fora se for vazamento. Ignore seus e-mails e as redes seletivas ficam mais exigentes.",
"help.every_ix_port_brings_requests":"Cada porta de IX traz pedidos de peering, e a sua política de peering, na aba Redes, responde a eles: Aberta aceita todos, Seletiva aceita as redes com que vale a pena fazer peering e recusa o resto em silêncio, Fechada recusa todos. Uma vez por semana o log do NOC resume tudo.",
"help.every_link_has_latency_high":"Todo link tem latência. Traders de alta frequência pagam uma fortuna por um circuito dentro do orçamento de latência deles; roteie-os por “Menor latência”. Clientes de backup em massa não ligam, então roteie-os pela “Panorâmica” nos seus links tranquilos para deixar livres os movimentados.",
"help.home_broadband_users_they_mostly":"Usuários de banda larga residencial. Eles baixam principalmente de CDNs e te pagam por Gbps entregue. Atenda bem e eles se multiplicam.",
"help.how_the_internet_works_here":"Como a internet funciona aqui",
@ -1883,7 +1867,7 @@
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) é transit-free. Você faz peering com todos os gigantes do planeta e não paga ninguém para chegar à internet. Levou {days} dias e {n} incidentes.",
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG e a turma aparecem todo ano. Inscreva-se na aba Negócios por $8k. Nos 45 dias seguintes, redes seletivas presentes naquela região pedem só metade do tráfego de sempre antes de fazer peering com você. Às vezes você ainda ganha o sorteio.",
"help.once_auto_te_is_installed_you":"Com o Auto-TE instalado, você pode programá-lo pela aba NOC. As regras incluem <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> e <code>blackhole ddos</code>. Verificar faz um dry run contra o tráfego real; Aplicar torna tudo real, erros incluídos.",
"help.one_game_four_doors_puzzles_are":"Um jogo, quatro portas, e as regras são escolhidas quando uma rede começa e ficam travadas depois. Os quebra-cabeças são pequenos nós para desatar, sem relógio. A sandbox dá um bilhão de dólares, tudo desbloqueado (incluindo o seu próprio cabo submarino) e o caos que você escolher, mas sem medalhas. O Normal vem de três jeitos: Congelamento de mudanças (poucas falhas, entregas em dias, sem caixa de entrada nem escassez), De plantão (o jogo clássico) e BGP às 3 da manhã (mais falhas e mais longas, mais DDoS). Os cenários são desafios feitos à mão com um objetivo e um prazo, e o desafio semanal dá a todos o mesmo mundo durante uma semana. Compartilhe o seu resultado com o cartão no menu.",
"help.one_game_four_doors_and_the":"Um jogo, quatro portas, e as regras são escolhidas quando uma rede começa e ficam travadas depois. Os quebra-cabeças são pequenos nós para desatar, sem relógio. A sandbox dá um bilhão de dólares, tudo desbloqueado (incluindo o seu próprio cabo submarino) e o caos que você escolher, mas sem medalhas. O Normal vem de três jeitos: Congelamento de mudanças (poucas falhas, entregas em dias, sem escassez), De plantão (o jogo clássico) e BGP às 3 da manhã (mais falhas e mais longas, mais DDoS). Os cenários são desafios feitos à mão com um objetivo e um prazo, e o desafio semanal dá a todos o mesmo mundo durante uma semana. Compartilhe o seu resultado com o cartão no menu.",
"help.open_peers_with_anyone_selective":"Open faz peering com qualquer um. Selective quer ver tráfego antes. Restrictive (Tier 1s) só faz peering com gigantes, via PNI. Paid é exatamente isso. Redes seletivas grandes também têm seus humores: em algumas cidades recusam novos peers por alguns meses, ou só aceitam PNI, e de vez em quando derrubam uma sessão que você já tinha. Tente outra cidade ou um PNI, e peça de novo mais tarde.",
"help.out_of_port_speed_bundle_up":"Sem velocidade de porta? Junte até 8 portas idênticas para o mesmo provedor de transit, IX ou PNI num LAG. Cada membro custa uma porta inteira; o hashing de fluxos nunca é perfeitamente uniforme, então o bundle carrega cerca de 95% da soma.",
"help.pni_lead_times":"Prazos de PNI",
@ -2008,15 +1992,11 @@
"hud_and_panels.has_errors_not_running":"tem erros, não está rodando",
"hud_and_panels.incidents_so_far":"Incidentes até agora",
"hud_and_panels.install_auto_te_cost_mo_mo":"Instalar Auto-TE <small>{cost} + {mo}/mês</small>",
"hud_and_panels.large_peering_model_is_on_it":"Large Peering Model está cuidando disso.",
"hud_and_panels.lv_n":"Nv {n}",
"hud_and_panels.n_incident":{"one":"{n} incidente","other":"{n} incidentes"},
"hud_and_panels.n_message_waiting_for_an_answer":{"one":"{n} mensagem esperando resposta.","other":"{n} mensagens esperando resposta."},
"hud_and_panels.n_more_networks":{"one":"+{n} rede a mais","other":"+{n} redes a mais"},
"hud_and_panels.n_networks_d_days_left":"{n} redes · faltam {d} dias",
"hud_and_panels.n_new_notification":{"one":"{n} notificação nova","other":"{n} notificações novas"},
"hud_and_panels.n_rules_live":"{n} regras ativas",
"hud_and_panels.n_session_is_down_on_its":{"one":"{n} sessão está fora pelo limite de max-prefix.","other":"{n} sessões estão fora pelo limite de max-prefix."},
"hud_and_panels.n_small_networks":"{n} redes pequenas",
"hud_and_panels.n_special_requirement":{"one":"{n} requisito especial","other":"{n} requisitos especiais"},
"hud_and_panels.n_unhappy_customer_price_mo_at":{"one":"{n} cliente insatisfeito, {price}/mês em risco","other":"{n} clientes insatisfeitos, {price}/mês em risco"},
@ -2592,6 +2572,7 @@
"ops.by_hand_note":"Para quando você quer tudo feito agora: cada peer em cada exchange, um kit de redundância, PNIs com todo mundo.",
"ops.caches_rent":"Instalar é grátis, mas cada caixa custa {price}/mês em espaço e energia.",
"ops.cheapest":"O mais barato",
"ops.day_d":"Dia {d}",
"ops.ff_desc":"etiquetou uma porta em {city} como “TODO: corrigir depois (não corrigir)”",
"ops.ff_hostname":"renomeou o roteador de {city} para router-final-FINAL-v2",
"ops.ff_lag":"adicionou um membro LAG de trânsito a mais em {city}. Funciona, então fica.",
@ -2630,8 +2611,6 @@
"ops.l_snag":{"one":"travou em {where} e pausou a ordem até você dar uma olhada","other":"travou em {n} ordens ({where}) e pausou-as até você dar uma olhada"},
"ops.l_transit":{"one":"reforçou o trânsito em {where}","other":"reforçou o trânsito {n} vezes ({where})"},
"ops.locked":"O NOC contrata estagiários a partir do nível de clientes {lv}.",
"ops.lpm_off":"A caixa de peering continua com você. Para isso existe o Large Peering Model; {name} não responde e-mail.",
"ops.lpm_on":"O Large Peering Model responde a caixa de peering. {name} fica fora do caminho dele.",
"ops.mood_annie":"Annie respondeu três perguntas antes de você fazê-las, da mesa mais próxima.",
"ops.mood_broke":"{name} já tem a lista de compras para quando chegar o orçamento do mês que vem.",
"ops.mood_busy":"{name} teve uma semana cheia e está na terceira bebida energética.",
@ -2744,61 +2723,14 @@
"page.series_of_tubes_build_the_internet":"Series of Tubes: construa a internet, um tubo de cada vez",
"page.world_map_of_your_network":"Mapa-múndi da sua rede",
"page.x":"<?php echo \"foi mal\"; ?>",
"peering_inbox.accept_all_requests":"Aceitar todos os pedidos",
"peering_inbox.an_ai_agent_that_answers_every":"Um agente de IA que responde por você a cada pedido de peering e alerta de max-prefix, todo dia. {price}/ano. Treinado em vinte anos de listas de e-mails sobre peering.",
"peering_inbox.answered_your_mail_a_accepted_d":"Respondeu seus e-mails: {a} aceitos, {d} recusados.",
"peering_inbox.asked_netchill_s_peering_team_to":"Pediu ao time de peering da NetChill “mais Netchill, por favor”.",
"peering_inbox.configured_lim_prefixes_received_got":"Configurado: {lim} prefixos. Recebidos: {got}.",
"peering_inbox.day_d":"Dia {d}",
"peering_inbox.dear_sir_or_madam_please_peer":"Prezado senhor ou senhora, por favor façam peering. Temos três prefixos e planos enormes.",
"peering_inbox.decline_all_requests":"Recusar todos os pedidos",
"peering_inbox.declined_who_at_ix_not_a":"Recusou {who} no {ix}: “não é estratégico”. Era.",
"peering_inbox.every_exchange_port_brings_mail":"Cada porta de IX traz e-mails. Responda aos pedidos de peering e olhe as sessões que estouraram o limite de max-prefix: é crescimento ou vazamento de rotas? E-mail sem resposta te dá uma reputação, e as redes seletivas ficam sabendo.",
"peering_inbox.everyone_who_asks_gets_a_session":"Quem pedir ganha uma sessão, e os route servers funcionam. Muitos peers minúsculos, e muitos alertas de max-prefix.",
"peering_inbox.fewer_requests_and_you_answer_them":"Menos pedidos, e você mesmo responde. Sem route servers: vá a cada exchange e peça as redes que quiser.",
"peering_inbox.fire_the_ai":"Demitir a IA",
"peering_inbox.good_call_it_was_a_route":"<b>Boa: era um vazamento de rotas.</b><br>{who} achou um route map digitado errado. A sessão volta sozinha em alguns dias.",
"peering_inbox.greetings_we_are_a_fast_growing":"Saudações. Somos uma rede em rápido crescimento. Ano passado tínhamos um cliente; este ano temos dois.",
"peering_inbox.hello_please_find_attached_our":"Olá, segue em anexo nosso pedido de peering como documento Word, escaneado de uma impressão.",
"peering_inbox.hey_quick_one_can_you_peer":"E aí, rapidinho: dá pra fazer peering com a gente no {ix}? Temos um servidor de Minecraft muito importante.",
"peering_inbox.hi_we_would_like_to_peer":"Oi! Gostaríamos de fazer peering com vocês no {ix}. Nosso registro no PeeringDB está atualizado.",
"peering_inbox.hire_it_mo_mo":"Contratar <small>{mo}/mês</small>",
"peering_inbox.inbox_zero_enjoy_it_while_it":"Caixa zerada. Aproveite enquanto dura.",
"peering_inbox.keep_it_down":"Deixar fora",
"peering_inbox.kept_who_down_at_ix_for":"Deixou {who} fora no {ix} por “crescimento suspeito”. Eles tinham ganhado um cliente.",
"peering_inbox.kept_who_down_at_ix_it":"Deixou {who} fora no {ix}: era um vazamento de rotas. Acertou em cheio.",
"peering_inbox.large_peering_model":"Large Peering Model",
"peering_inbox.large_peering_model_is_answering":"Large Peering Model está respondendo seus e-mails",
"peering_inbox.max_prefix_limit_hit_who_at":"<b>Limite de max-prefix estourado: {who} no {ix}.</b><br>A sessão fica fora até você dar uma olhada.",
"peering_inbox.max_prefix_limit_hit_who_at_5c56":"Limite de max-prefix estourado: {who} no {ix}",
"peering_inbox.mostly_ignores_email":"Ignora quase todos os e-mails",
"peering_inbox.n_day_ago":{"one":"há {n} dia","other":"há {n} dias"},
"peering_inbox.n_unanswered":{"one":"{n} sem resposta","other":"{n} sem resposta"},
"peering_inbox.no_mail_yet_buy_an_ix":"Nenhum e-mail ainda. Compre uma porta de IX que eles chegam.",
"peering_inbox.nobody_asks_and_no_route_servers":"Ninguém pede, e sem route servers. Os clientes ficam sabendo que você é difícil de alcançar, então menos deles ligam, e sua reputação afunda.",
"peering_inbox.open_to_all":"Aberta a todos",
"peering_inbox.opened_a_ticket_with_itself_to":"Abriu um chamado para si mesma para revisar as próprias decisões. Aprovou todas.",
"peering_inbox.peering_request_fifth_attempt_is":"Pedido de peering, quinta tentativa. Tem alguém aí?",
"peering_inbox.peeringdb_last_updated_n_year_ago":{"one":"PeeringDB atualizado há {n} ano","other":"PeeringDB atualizado há {n} anos"},
"peering_inbox.peeringdb_updated_last_month":"PeeringDB atualizado no mês passado",
"peering_inbox.please_configure_sessions_with_us_at":"Por favor configurem as sessões com a gente no {ix}. Nós faremos as nossas semana que vem, ou na outra.",
"peering_inbox.price_year_it_never_sleeps_never":"{price}/ano. Nunca dorme, nunca reclama e erra com frequência.",
"peering_inbox.raise_all_max_prefix_limits":"Aumentar todos os limites de max-prefix",
"peering_inbox.raise_the_limit":"Aumentar o limite",
"peering_inbox.raised_the_max_prefix_limit_for":"Aumentou o limite de max-prefix de {who} no {ix} para {n}. Pareciam simpáticos.",
"peering_inbox.raised_the_max_prefix_limit_for_7b4b":"Aumentou o limite de max-prefix de {who} no {ix}. Corretamente, desta vez.",
"peering_inbox.replied_to_a_peering_request_with":"Respondeu a um pedido de peering com um haicai sobre BGP. Nenhuma resposta ainda.",
"peering_inbox.session_with_who_is_back_up":"<b>A sessão com {who} voltou.</b><br>Novo limite: {n} prefixos. Eles prometem atualizar o PeeringDB.",
"peering_inbox.signed_you_up_for_a_webinar":"Inscreveu você num webinar sobre “Peering na era da IA”.",
"peering_inbox.that_was_a_route_leak_who":"<b>Era um vazamento de rotas.</b><br>{who} anunciava {n} prefixos: uma tabela completa. Da próxima vez, deixe fora.",
"peering_inbox.the_session_stays_down_who_will":"<b>A sessão continua fora.</b><br>{who} vai atualizar o PeeringDB e pedir de novo. Algum dia.",
"peering_inbox.their_peeringdb_says_lim_last":{"one":"O PeeringDB deles diz {lim}, atualizado há {n} ano.","other":"O PeeringDB deles diz {lim}, atualizado há {n} anos."},
"peering_inbox.tidied_up_a_session_it_decided":"Fez uma faxina nas sessões que achou inúteis: desfez o peering com {who} no {ix}.",
"peering_inbox.updated_your_peeringdb_record_your":"Atualizou seu registro no PeeringDB. O telefone do seu NOC agora é de uma pizzaria.",
"peering_inbox.we_noticed_you_are_at_ix":"Vimos que vocês estão no {ix}. Nós também. Vamos?",
"peering_inbox.who_asked_a_mailing_list_whether":"<b>{who} perguntou numa lista de e-mails se alguém tem um contato que funcione na {me}.</b><br>O pedido de peering deles ficou um mês na sua caixa de entrada.",
"peering_inbox.who_at_ix_was_sending_a":"{who} no {ix} estava mandando uma tabela completa, e o limite de max-prefix era a única coisa que segurava. Com o limite aumentado, os prefixos da {net} apontam para o porão deles. O tráfego para a {net} via trânsito vai para um buraco negro por alguns dias.",
"peering_inbox.wrote_a_thousand_word_apology_to":"Escreveu um pedido de desculpas de mil palavras para uma rede com quem você nunca fez peering.",
"peering_desk.closed_desc":"Todo pedido de peering é recusado, e sem route servers. Os clientes ficam sabendo que você é difícil de alcançar, então menos deles ligam.",
"peering_desk.n_more_exchanges":{"one":"mais {n} exchange","other":"mais {n} exchanges"},
"peering_desk.n_new_sessions_at_ix":{"one":"Mesa de peering: {n} sessão nova em {ix} ({pol}).","other":"Mesa de peering: {n} sessões novas em {ix} ({pol})."},
"peering_desk.n_new_sessions_at_ix_declined":{"one":"Mesa de peering: {n} sessão nova em {ix}, {d} recusados ({pol}).","other":"Mesa de peering: {n} sessões novas em {ix}, {d} recusados ({pol})."},
"peering_desk.n_requests_declined":{"one":"Mesa de peering: {n} pedido recusado ({pol}).","other":"Mesa de peering: {n} pedidos recusados ({pol})."},
"peering_desk.open_desc":"Toda rede que pede ganha uma sessão, e os route servers funcionam.",
"peering_desk.open_to_all":"Aberta a todos",
"peering_desk.selective_desc":"Redes pequenas do exchange e recém-chegadas com PeeringDB em dia ganham uma sessão; o resto é recusado em silêncio. Sem route servers: peça as redes que quiser em cada exchange.",
"peering_policy.a_new_vp_wants_to_monetise":"Um novo VP quer “monetizar a interconexão” neste mercado.",
"peering_policy.already_reach_you_through_your":"Já chegam até você pelo seu provedor de transit aqui e acham que está ótimo.",
"peering_policy.moved_everything_in_this_city_to":"Passaram tudo nesta cidade para PNI. Leia a página deles no PearingDB, todas as 40 páginas.",
@ -2841,6 +2773,34 @@
"pni_all.pni_size":"Capacidade do PNI",
"pni_all.setup_total":"Custo total de instalação",
"pni_all.traffic_charges_apply":"Também se aplicam custos de tráfego de {price} por Gbps.",
"pni_list.chip_not_reached":"Sem alcance",
"pni_list.chip_peers_at":"Peering em {list}",
"pni_list.chip_pni_at":"PNI em {list}",
"pni_list.chip_pni_elsewhere":"PNI noutro sítio: {list}",
"pni_list.chip_pni_here":"PNI aqui · {port} · {p}",
"pni_list.chip_pni_here_on_order":"PNI aqui · encomendado",
"pni_list.chip_via_a_cone":"Pelo cone de um peer",
"pni_list.chip_via_cone":"Pelo cone de {net}",
"pni_list.chip_via_transit":"Por trânsito",
"pni_list.f_all":"Todas",
"pni_list.f_pni":"Já com PNI",
"pni_list.f_transit":"Por trânsito",
"pni_list.f_worth":"Compensa",
"pni_list.list_more":"{list} +{n}",
"pni_list.little_to_gain_here":"Pouco a ganhar aqui: {g}",
"pni_list.n_here":"{g} aqui",
"pni_list.n_networks_w_worth_it":{"one":"{n} rede · {w} compensam","other":"{n} redes · {w} compensam"},
"pni_list.nothing_matches":"Nenhuma rede aqui corresponde a este filtro.",
"pni_list.saves_minus_cost":"Poupa {saved} de trânsito por mês; o PNI custa {cost} por mês.",
"pni_list.sort_az":"Ordem: A–Z",
"pni_list.sort_worth":"Ordem: as que compensam primeiro",
"pni_list.via_drop":"{g} perdidos",
"pni_list.via_haul":"{g} pelo backbone",
"pni_list.via_ix":"{g} IX",
"pni_list.via_transit":"{g} trânsito",
"pni_list.with_port":"PNI de {port}: {val}",
"pni_list.worth_it":"Compensa",
"pni_list.worth_rule":"⭐ Compensa: um PNI aqui poupa mais trânsito do que custa por mês, leva pelo menos 1 Gbps que hoje perdes, ou tira pelo menos 1 Gbps de uma porta de exchange cheia a 80%.",
"pnis.a_new_region_is_coming_online":"Uma nova região vai entrar no ar em breve. Ela está entrando no ar em breve desde 2019.",
"pnis.about_n_days_to_go_nothing":"Faltam cerca de {n} dias. Não há nada a fazer além de esperar, ou cobrar.",
"pnis.augment_with_net_delivered_in_city":"<b>Ampliação com {net} entregue em {city}.</b><br>Agora {port}.",
@ -2892,16 +2852,18 @@
"progress.a_port_on_ix_brrr_manaus":"Uma porta no IX.brrr Manaus",
"progress.broadband_in_city":"Banda larga em {city}",
"progress.carnaval_delivered_in_full":"Carnaval entregue por completo",
"progress.city_on_your_network":"{city} na sua rede",
"progress.customer_level_lv_of_max":"Nível de clientes {lv} de {max}",
"progress.days_in_a_row_at_g":"Dias seguidos com {g} ou mais",
"progress.days_in_a_row_with_99":"Dias seguidos com 99,5% atendido",
"progress.done_in_d_days":"Feito em {d} dias!",
"progress.floods_that_got_through":"Enxurradas que passaram",
"progress.ix_brrr_ports":"Portas no IX.brrr",
"progress.ix_brrr_ports_on_your_backbone":"Portas no IX.brrr no seu backbone",
"progress.monthly_profit":"Lucro mensal",
"progress.n_of_m":"{n} de {m}",
"progress.next_name_unlocks_what":"Próximo: {name} desbloqueia {what}",
"progress.not_tier_1_right_now_why":"Não é Tier 1 agora: {why}.",
"progress.pop_in_city":"POP em {city}",
"progress.seoul_served_well":"Seul bem servida (entregue e rápido)",
"progress.terabit_floods_held":"Enxurradas de terabit contidas",
"progress.under_attack_now":"Sob ataque agora",
"progress.your_score_peak_traffic":"Sua pontuação: pico de tráfego",
@ -3279,7 +3241,7 @@
"routing_and_routers.unplug_something_first_used_ports":"<b>Desconecte algo primeiro.</b><br>Há {used} portas em uso, e com um router a menos só teria {max}.",
"rules.a_billion_dollars_every_unlock_your":"Um bilhão de dólares, tudo desbloqueado, o seu próprio cabo submarino.",
"rules.a_cut_now_and_then":"Um corte de vez em quando.",
"rules.a_third_of_the_outages_no_ddos":"Um terço das falhas, sem DDoS. PNIs e obras em dias. Sem caixa de entrada, sem escassez, sem rotas esgotadas, sem de-peering.",
"rules.a_third_of_the_outages_no_ddos_pnis":"Um terço das falhas, sem DDoS. PNIs e obras em dias. Sem escassez, sem rotas esgotadas, sem de-peering.",
"rules.bgp_at_3_a_m":"BGP às 3 da manhã",
"rules.change_freeze":"Congelamento de mudanças",
"rules.chaos_calm":"Calmo",
@ -3296,7 +3258,7 @@
"rules.on_call":"De plantão",
"rules.one_small_network_one_tricky_goal":"Uma rede pequena, um objetivo traiçoeiro.",
"rules.puzzle":"Quebra-cabeça",
"rules.real_lead_times_real_outages_a":"Prazos reais, falhas reais, uma caixa de peering cheia. O jogo clássico.",
"rules.real_lead_times_real_outages_a_real":"Prazos reais, falhas reais, um mercado real. O jogo clássico.",
"rules.rules_are_locked_for_this_network":"{rules}: as regras estão travadas para esta rede.",
"rules.the_real_thing_your_pager_has":"O jogo de verdade. O seu pager tem opiniões.",
"rules.your_pager_never_sleeps":"O seu pager nunca dorme.",
@ -3330,15 +3292,15 @@
"scenarios.1_6t_on_every_hop_from":"1.6T em cada trecho de Miami a Madri e de Lisboa a Lagos, e 100 Gbps servidos",
"scenarios.90_days_in_a_row_with":"90 dias seguidos com 99.5% da demanda servida",
"scenarios.99_reach_and_150_gbps_served":"99% de alcance e 150 Gbps servidos",
"scenarios.99_reach_and_200_gbps_served":"99% de alcance e 200 Gbps entregues sem quebrar",
"scenarios.a_path_from_cape_town_to":"Um caminho da Cidade do Cabo ao Cairo, POPs em Lagos e Nairóbi, e 150 Gbps atendidos",
"scenarios.a_path_from_cape_town_to_cairo_lagos":"Um caminho da Cidade do Cabo ao Cairo, com Lagos e Nairóbi também na sua rede, e 150 Gbps atendidos",
"scenarios.a_path_from_los_angeles_to":"Um caminho de Los Angeles a Sydney com 1.6T em cada trecho, um caminho de Los Angeles a Tóquio e 150 Gbps atendidos",
"scenarios.a_path_from_marseille_to_singapore":"Um caminho de Marselha a Singapura, e 80 Gbps entre a Ásia e o resto da sua rede por 30 dias seguidos",
"scenarios.amsterdam_hosting_capital_of_europe":"Amsterdã, capital europeia do hosting, em plena temporada de botnets. Cada torradeira smart, babá eletrônica e geladeira sem patch da Terra escolheu um lado, e não é o seu. Uma enxurrada a cada poucos dias, cada vez mais na casa dos terabits, enquanto todo o resto continua quebrando também. Você começa com equipamento maior desbloqueado, e vai precisar.",
"scenarios.broadband_in_sydney_melbourne":"Banda larga em Sydney, Melbourne, Brisbane, Adelaide e Perth, e dois cabos diferentes para o exterior",
"scenarios.broadband_in_sydney_melbourne_served":"Banda larga em Sydney, Melbourne, Brisbane, Adelaide e Perth, dois cabos diferentes para o exterior, e 500 Gbps servidos",
"scenarios.cape_to_cairo":"Do Cabo ao Cairo",
"scenarios.cape_town_build_a_network_across":"Cidade do Cabo. Construa uma rede pela África: cada fronteira quer sua própria licença, e metade das redes elétricas não está do seu lado.",
"scenarios.cogentle_and_goggle_are_not_speaking":"Cogentle e Goggle não se falam, e desta vez é pra sempre. Compre o transit barato, se tiver coragem.",
"scenarios.connect_panama_city_to_bogota_lima":"Bogotá, Lima, Santiago e São Paulo ligadas à Cidade do Panamá, e 150 Gbps servidos",
"scenarios.deliver_carnaval_in_full":"Entregue o Carnaval completo",
"scenarios.every_cable_through_the_red_sea":"Todos os cabos pelo Mar Vermelho foram cortados, e o salto para o Egito também. Faça Marseille falar com Singapore mesmo assim: contornando a África, por terra ou pelo outro lado do planeta.",
"scenarios.every_ix_is_run_by_de":"Todo IX é operado pela DE-KICKS",
@ -3350,22 +3312,22 @@
"scenarios.mid_atlantic_accent":"Sotaque do meio do Atlântico",
"scenarios.only_spatzle_ix":"Só Spätzle-IX",
"scenarios.order_and_progress":"Ordem e Progresso",
"scenarios.ponta_delgada_in_the_azores_halfway":"Ponta Delgada, nos Açores, no meio do Atlântico. Da Flórida à Espanha e de Lisboa a Lagos é um pouco longo demais para uma onda de 1.6T: em linha direta, cada uma leva 1.2T. Pouse nas ilhas no meio, recomece a luz, e cada trecho roda a 1.6T ou mais. Você começa com equipamento de 1.6T desbloqueado.",
"scenarios.pops_in_bogota_lima_santiago_and":"POPs em Bogotá, Lima, Santiago e São Paulo, e 150 Gbps servidos",
"scenarios.ports_on_15_ix_brrr_exchanges":"Portas em 15 exchanges IX.brrr, uma delas em Manaus, e 200 Gbps servidos",
"scenarios.ponta_delgada_azores_lisbon_lagos":"Ponta Delgada, nos Açores, no meio do Atlântico. Da Flórida à Espanha é um pouco longo demais para uma onda de 1.6T: em linha direta, ela leva 1.2T. Pouse nas ilhas no meio, recomece a luz, e cada trecho roda a 1.6T ou mais. De Lisboa a Lagos dá 1.6T de uma vez, mas sai caro: as Canárias custam menos. Você começa com equipamento de 1.6T desbloqueado.",
"scenarios.ports_on_15_ix_brrr_exchanges_backbone":"Portas em 15 exchanges IX.brrr que o seu backbone liga a São Paulo, uma delas em Manaus, e 200 Gbps servidos",
"scenarios.reach_50_of_the_internet_and":"Alcance 50% da internet e atenda 300 Gbps",
"scenarios.red_sea_crisis":"Crise no Mar Vermelho",
"scenarios.rio_from_scratch_carnaval_starts_in":"Rio do zero. O Carnaval começa em 90 dias e quer 400 Gbps por cinco dias seguidos. O mundo inteiro está assistindo.",
"scenarios.sandbox_mode_a_billion_dollars_chaos":"<b>Modo sandbox</b><br>Um bilhão de dólares e tudo desbloqueado. Caos: {chaos}. Construa a internet que você sempre quis, e deixe uma retroescavadeira reserva à mão.",
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Modo sandbox</b><br>Um bilhão de dólares, tudo desbloqueado e nada nunca quebra. Construa a internet que você sempre quis.",
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. O Brasil é um continente: quarenta exchanges IX.brrr, milhares de provedores e a Amazônia entre você e o norte.",
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Seoul. Os eyeballs mais rápidos e famintos da Terra, transit a quatro vezes o preço, e três incumbentes que te cobram por cada gigabit que você manda.",
"scenarios.seoul_sender_pays_d":"Seul, onde quem envia paga. Cada Gbps que um carrier entrega na Coreia custa uma taxa de «quem envia paga» além da conta de trânsito, os três incumbentes só conversam por um PNI pago, o gigabit residencial sai pelo preço de um bibimbap e os usuários coreanos percebem cada milissegundo. O trânsito em Tóquio é barato, se seus clientes aguentarem a viagem.",
"scenarios.seoul_sender_pays_goal":"{g} Gbps servidos, Seul bem servida ({q}%), 99% de alcance e lucro mensal",
"scenarios.shark_season_subsea_cuts_twice_as":"Temporada de tubarão: cortes submarinos duas vezes mais prováveis",
"scenarios.start_in_panama_city_nothing_crosses":"Comece em Panama City. Nada atravessa o Darién Gap por terra, e os Andes atrapalham todo o resto.",
"scenarios.start_in_stuttgart_where_nobody":"Comece em Stuttgart, onde ninguém vende transit. Alcance a internet só com peering, PNIs, caches e sua própria fibra. Nada de transit, em lugar nenhum, nunca.",
"scenarios.start_with_only_100k":"Comece com só $100k",
"scenarios.sydney_2013_the_toilet_paper_group":"Sydney, 2013. O Toilet Paper Group levou a própria fibra até o porão dos prédios, e a rede nacional reclamou de cherry-picking. Sua vez: pule a Nearly Broadband Network, pague a taxa e chegue primeiro.",
"scenarios.tallinn_ships_drag_their_anchors":"Tallinn. Os navios arrastam âncoras sobre os cabos do Báltico três vezes mais que o normal.",
"scenarios.tallinn_nobody_sells_transit_anchors":"Tallinn, onde ninguém vende trânsito: a sua internet fica do outro lado do mar. Os navios arrastam âncoras sobre os cabos do Báltico três vezes mais que o normal.",
"scenarios.the_cogentle_spat":"A briga da Cogentle",
"scenarios.transit_costs_30_more":"Transit custa 30% a mais",
"scenarios.twice_the_failures":"O dobro de falhas",
@ -3419,6 +3381,7 @@
"sites_and_service.level_n":"Nível {n}",
"sites_and_service.n_ports":"{n} portas",
"sites_and_service.no_path_right_now":"sem caminho no momento",
"sites_and_service.p_of_city_s_traffic_comes_from_kr":"<b>{p} do tráfego de {city} vem de {to}: {ms} ms de ida e volta.</b> Usuários coreanos percebem qualquer coisa acima de 8 ms, e acima de 40 ms a banda larga conta como serviço ruim. Sirva mais a partir de Seul: peering, caches e PNIs aqui, ou trânsito local se você aguentar a taxa de «quem envia paga».",
"sites_and_service.p_of_city_s_traffic_is":"<b>{p} do tráfego de {city} vai até o trânsito em {to}: {ms} ms de ida e volta.</b> Os usuários percebem qualquer coisa acima de 20 ms (cerca de 1.500 km), e acima de 50 ms banda larga e serviços de internet contam como serviço ruim. Compre trânsito aqui ou perto, ou faça peering local.",
"sites_and_service.path_latency_lat":"Latência do caminho: <b>{lat}</b>",
"sites_and_service.pn_routers":"routers de {pn}",
@ -3429,9 +3392,7 @@
"sites_peering_caches.bgp_session_established":"Sessão BGP estabelecida.",
"sites_peering_caches.cache_installed_in_city_net_shipped":"<b>{cache} instalado em {city}!</b><br>{net} mandou de graça. Você paga {mo}/mês de energia.",
"sites_peering_caches.could_you_resend_the_loa_you":"<b>“Pode reenviar a LOA?”</b><br>Você já mandou quatro vezes.",
"sites_peering_caches.hello_i_am_large_peering_model":"Olá! Eu sou o Large Peering Model. Li sua caixa de entrada e já tenho opiniões.",
"sites_peering_caches.it_is_with_the_provisioning_team":"<b>“Está com o time de provisionamento.”</b><br>Ninguém nunca conheceu o time de provisionamento.",
"sites_peering_caches.large_peering_model_is_hired_your":"<b>Large Peering Model contratado.</b><br>Sua caixa de entrada agora é problema dele. {price} por ano, cobrados por mês.",
"sites_peering_caches.n_new_session_at_ix_small":{"one":"<b>{n} nova sessão em {ix}.</b><br>Redes pequenas, mas somam, e todas contam para o clube.","other":"<b>{n} novas sessões em {ix}.</b><br>Redes pequenas, mas somam, e todas contam para o clube."},
"sites_peering_caches.net_accepted":"{net} aceitou!",
"sites_peering_caches.net_declined_the_pni_why":"<b>{net} recusou o PNI.</b><br>{why}",
@ -3439,11 +3400,8 @@
"sites_peering_caches.net_does_not_do_port_pnis":"<b>{net} não faz PNI de {port}.</b><br>Nada abaixo de 100G. Volte com mais tráfego, ou uma óptica maior.",
"sites_peering_caches.net_says_not_yet_send_them":"<b>{net} diz: ainda não.</b><br>Mande {min}+ Gbps pra eles primeiro.",
"sites_peering_caches.pni_with_net_ordered_eta_a":"<b>PNI com {net} encomendada.</b><br>{eta}. Um cross-connect em {dc}, assim que alguém achar a LOA.",
"sites_peering_caches.raised_n_max_prefix_limits_all":"<b>{n} limites de max-prefix aumentados.</b><br>Tudo crescimento, nenhum vazamento. Sorte.",
"sites_peering_caches.raised_n_max_prefix_limits_one":{"one":"<b>{n} limites de max-prefix aumentados.</b><br>Um deles era um vazamento de rotas. Está no NOC agora.","other":"<b>{n} limites de max-prefix aumentados.</b><br>{k} deles eram vazamentos de rotas. Estão no NOC agora."},
"sites_peering_caches.second_lag_member_added_one_member":"<b>Segundo membro do LAG adicionado.</b><br>Agora tem um membro em cada prédio, então um prédio apagado só derruba metade da porta.",
"sites_peering_caches.second_site_live_in_city_b":"<b>Segundo site ativo em {city}.</b><br>{b} está ligado a {a} pelo seu próprio anel metro. Mova alguns uplinks pra lá nas abas Transit e Peering.",
"sites_peering_caches.the_ai_is_gone_it_left":"<b>A IA foi embora.</b><br>Deixou um documento de transição de 40 páginas. Ele fala principalmente dela mesma.",
"sites_peering_caches.they_checked_your_pearingdb_page_and":"Eles olharam sua página no PearingDB e curtiram os números de tráfego.",
"sites_peering_caches.we_are_waiting_on_the_colo":"<b>“Estamos esperando o colo fazer o cross-connect.”</b><br>O colo diz que está esperando por eles.",
"sites_peering_caches.your_account_manager_found_the_order":"<b>Seu gerente de contas achou o pedido embaixo de uma mesa.</b><br>Está um mês mais perto.",
@ -3465,6 +3423,7 @@
"slots.last_played_ago":"Jogada pela última vez {ago}",
"slots.load_the_newest_version":"Carregar a versão mais nova",
"slots.more_for_name":"Mais para {name}",
"slots.n_day_ago":{"one":"há {n} dia","other":"há {n} dias"},
"slots.n_h_ago":{"one":"há {n} h","other":"há {n} h"},
"slots.name_is_open_in_another_window":"{name} está aberta em outra janela",
"slots.name_is_waiting_in_your_other":"<b>{name} está esperando na sua outra janela.</b><br>Vá para ela para continuar jogando.",
@ -3488,7 +3447,6 @@
"slots.this_window_stopped_saving_so_it":"Uma versão mais nova foi salva em outra janela, então esta parou de salvar em vez de sobrescrevê-la.",
"slots.two_windows_one_network":"Duas janelas, uma rede",
"slots.your_networks":"Suas redes",
"slots.your_networks_switch_or_start_another":"Suas redes <small>trocar ou começar outra</small>",
"slots.your_other_networks_share_this_browser":"Suas outras redes dividem o armazenamento deste navegador. Exporte as que quiser manter e apague-as aqui para abrir espaço.",
"sold_out.a_hyperscaler_bought_every_wave_of":"Um hyperscaler comprou semana passada todas as ondas desse tamanho nesta rota.",
"sold_out.not_big_enough_yet_list":"Você ainda não é grande o bastante: {list}",
@ -3505,6 +3463,39 @@
"sold_out.tier_1s_never_peer_at_ixs":"Tier 1 nunca faz peering em IX",
"sold_out.wants_need_gbps_of_traffic_from":"Quer ≥ {need} Gbps de tráfego seu (você manda {dem})",
"sold_out.wants_you_to_be_a_tier":"Quer que você seja Tier 2, ou que mande ≥ {need} Gbps para ele (você manda {dem})",
"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · cerca de {ms} ms · pronto em cerca de {n} dias",
"specialist.a_consortium_is_selling_seats_on":"Um consórcio está vendendo lugares no {name}, um cabo novo de {a} a {b}. Seus próprios pares de fibra nele, antes de ser Tier 1.",
"specialist.ask_for_a_demo_unit_p_n":"Unidade demo: +{p}%, {n} dias",
"specialist.charter_signed_name":"Carta assinada: {name}.",
"specialist.consortium_seat":"Lugar no consórcio",
"specialist.consortium_seat_name":"Lugar no consórcio: {name}",
"specialist.demo_unit_ships_in_n_days":"A unidade demo chega em {n} dias",
"specialist.dig_your_own_as_a_pioneer":"Cave a sua como pioneiro (+{p}%) · {price} · {n} dias",
"specialist.global_backbone":"Backbone global",
"specialist.includes_pops_at_the_landings_price":"Inclui POPs nas estações de ancoragem: {price}.",
"specialist.keep_it":"Manter",
"specialist.low_latency_boutique":"Boutique de baixa latência",
"specialist.n_fiber_pairs":{"one":"{n} par de fibra","other":"{n} pares de fibra"},
"specialist.part_owner_of_the_sea":"Coproprietário do mar",
"specialist.pick":"Escolher",
"specialist.pick_a_charter":"Escolha uma carta",
"specialist.routes_r_of_n_beat_the":"Rotas financeiras mais rápidas na sua fibra do que em qualquer caminho alugado: {r}/{n} · clientes de latência pagando: {c}/{m}",
"specialist.speed_of_light":"Velocidade da luz",
"specialist.spotted_your_broadband_in_a_one":"Eles viram sua banda larga em {a}, uma das grandes cidades de usuários.",
"specialist.spotted_your_cap_of_dark_fiber":"Eles viram seus {cap} de dark fiber acesa entre {a} e {b}.",
"specialist.spotted_your_ms_ms_a_b_path":"Eles viram seu caminho {a}–{b} de {ms} ms.",
"specialist.spotted_your_two_diverse_paths_a":"Eles viram seus dois caminhos diversos entre {a} e {b}.",
"specialist.take_a_seat_on_a_consortium":"Pegue um lugar num cabo de consórcio",
"specialist.the_classic_game_grow_everywhere_and":"O jogo clássico: cresça em todo lugar, os clientes seguem seu nível e Tier 1 é a vitória.",
"specialist.the_consortium_runs_the_cable_your":"O consórcio opera o cabo e seus repetidores. Seus pares você acende com suas próprias ópticas; um corte no cabo corta eles também.",
"specialist.the_vendor_ships_a_demo_name":"O fabricante envia um {name} de demonstração em {n} dias. Até seu nível alcançar, cada unidade custa {p}% a mais.",
"specialist.trading_firms_and_other_latency_customers":"Firmas de trading e outros clientes de latência ligam mais vezes e pagam {p}% a mais. Vença Velocidade da luz: supere a latência alugada mais rápida em {r} rotas financeiras com sua própria fibra enquanto {c} clientes de latência pagam você. Tier 1 continua valendo.",
"specialist.what_kind_of_network_are_you":"Que tipo de rede você está construindo? Você pode escolher por mais {n} dias; até lá você é um Backbone global.",
"specialist.win_as_a_low_latency_boutique":"Vença como boutique de baixa latência",
"specialist.won_on_date_your_own_glass":"Vencido em {date}: sua própria fibra superou todos os caminhos alugados.",
"specialist.you_own_n_fiber_pairs_on":"Assinado: você tem {n} pares de fibra no {name}, {a} ⇄ {b}. Os navios lançadores zarpam; pronto em cerca de {d} dias.",
"specialist.your_own_fiber_pairs_on_a":"Seus próprios pares de fibra num cabo submarino novo: pague agora sua parte da obra e acenda com suas ópticas quando ele chegar.",
"specialist.your_own_glass_beats_every_leased":"Sua própria fibra supera todos os caminhos alugados em três rotas financeiras, e os traders pagam por isso. A boutique venceu!",
"supply_chain.as_when_you_started":"como no começo",
"supply_chain.chip_shortage_every_router_vendor_is":"<b>Falta de chips!</b><br>Todo fabricante de roteador está esperando os mesmos chips. Roteadores novos e upgrades custam 40% a mais por {n} dias. Prazo de entrega: “sim”.",
"supply_chain.every_cable_ship_is_booked":"<b>Todos os navios lançadores de cabo estão reservados.</b><br>Os hyperscalers contrataram todos os navios e todas as equipes de escavação do planeta. Novas fibras e novos cabos custam 30% a mais por {n} dias.",
@ -3517,7 +3508,9 @@
"supply_chain.what_p_n_days_left":"{what} +{p} · faltam {n} dias",
"supply_chain.your_price_lock_covers_you_until":"Seu congelamento de preços te cobre até {date}.",
"title.a_billion_dollars_and_every_toy":"Um bilhão de dólares e todos os brinquedos da loja.",
"title.as_number":"Número de AS",
"title.asia_hub_great_peering_far_from":"Hub da Ásia. Ótimo peering, longe de casa.",
"title.asn_not_usable":"Esse número de AS não roteia: escolha um de 1 a 4294967294 que nenhuma rede do mapa use (nada de AS 0, 23456, faixas de documentação ou privadas). Deixe vazio para um aleatório.",
"title.back_to_my_network":"Voltar para minha rede",
"title.big_hungry_market_few_providers":"Mercado grande e faminto, poucos provedores.",
"title.build_an_internet_lay_fiber_between":"Construa uma internet. Lance fibra entre cidades, compre transit, faça peering nos exchanges, feche contratos com empresas e mantenha os eyeballs felizes enquanto retroescavadeiras, tubarões e route leaks fazem de tudo para te parar.",

View file

@ -1 +1 @@
{"v":1,"key":"2026-W44","theme":"flood","city":"sto","cash":2050000,"days":250,"lvl":3,"rules":{"ddos":true},"mods":[],"goal":{"t":"floods","p":{"n":24,"big":1}},"name":{"l":"wkscn.name_packet_monsoon","p":{}},"desc":{"l":"wkscn.desc_city_hosts_the_internets_favourite","p":{"city":"sto"}},"seed":1559294845,"par":195,"ref":{"home":"sto","bb":true,"ix":true,"steps":[{"k":"hop","v":["sto","tll",1,null]},{"k":"hop","v":["tll","hel",1,null]}],"avoid":[],"tr2":false,"scrub":1}}
{"v":1,"key":"2026-W44","theme":"flood","city":"sto","cash":2050000,"days":250,"lvl":3,"rules":{"ddos":true},"mods":[],"goal":{"t":"floods","p":{"n":24,"big":1}},"name":{"l":"wkscn.name_packet_monsoon","p":{}},"desc":{"l":"wkscn.desc_city_hosts_the_internets_favourite","p":{"city":"sto"}},"seed":1559294845,"par":169,"ref":{"home":"sto","bb":true,"ix":true,"steps":[{"k":"hop","v":["sto","tll",1,null]},{"k":"hop","v":["tll","hel",1,null]}],"avoid":[],"tr2":false,"scrub":1}}

View file

@ -6,6 +6,10 @@ const RU_BOX=40000, RU_BOX_MO=2000;
const UAE_LIC=15000,KSA_LIC=25000;
// Korea: "sender pays" interconnection makes transit into Seoul about four times the usual price.
const KR_TRANSIT=4;
/* Gangnam Style Peering (scenario rule `sender`) turns sender pays all the way up: every Gbps a carrier delivers into
Korea is billed again as a sender-pays fee, the incumbents take traffic only over a paid PNI, home gigabit is cheap,
and users notice every millisecond of a haul to Tokyo or Hong Kong. */
const KR_FEE=180,KR_ARPU=0.85,KR_LAT_OK=8,KR_LAT_BAD=40;
/* Australia: a long way from everywhere. Every gigabit out of the country rides a long, thin subsea
cable, so transit and waves cost more than almost anywhere else. IX ports are the exception: a
nonprofit exchange sells 10G for about AUD 350 a month. Retail broadband is dear, but the national

View file

@ -22,10 +22,10 @@ function hwCard(){if(!S||!rule('market')||(S.day<=HW_FREE&&!hwShock()&&!hwLock()
:`<p class="meta">${tr('supply_chain.routers_optics_and_new_builds_at')}</p><div class="btns">${btn(tr('supply_chain.lock_prices_for_a_year_cost',{cost:fmt$(hwLockCost())}),'hwLock',{},'sm',S.cash<hwLockCost())}</div>`}</div>`;}
// Routers past the standard cage (#157) need a cage extension: pricier to install, and rent on top.
const RCAGE=6,CAGE_MUL=1.5,CAGE_MO=2000;
const routerCost=(g,rt)=>Math.round((ROUTER_COST+RG[g].cost*0.8)*((rt||1)>=RCAGE?CAGE_MUL:1)*hwMul('rt'));
const routerCost=(g,rt)=>Math.round((ROUTER_COST+RG[g].cost*0.8)*((rt||1)>=RCAGE?CAGE_MUL:1)*hwMul('rt')*techMul(RG[g].lvl));
const routerMo=g=>ROUTER_MO+RG[g].mo,cageMo=rt=>Math.max(0,(rt||1)-RCAGE)*CAGE_MO;
// Old routers go on eBuy when you swap models or remove one (#82), like spare optics (#45). Chassis age faster.
const ROUTER_RESALE=0.3,tradeIn=(g,n)=>Math.round(RG[g].cost*n*ROUTER_RESALE),swapCost=(c,g)=>{const p=S.pops[c],rt=p.routers||1;return Math.max(0,Math.round(RG[g].cost*rt*hwMul('rt'))-tradeIn(p.rgen||0,rt));};
const ROUTER_RESALE=0.3,tradeIn=(g,n)=>Math.round(RG[g].cost*n*ROUTER_RESALE),swapCost=(c,g)=>{const p=S.pops[c],rt=p.routers||1;return Math.max(0,Math.round(RG[g].cost*rt*hwMul('rt')*techMul(RG[g].lvl))-tradeIn(p.rgen||0,rt));};
const RMAX=16;
// The plain, badge-less model of each class is the default upgrade path; the others are side-grades.
const mainRG=k=>RG.findIndex(r=>r.cls===k&&!r.badge);

View file

@ -8,7 +8,7 @@ const AMP_EVERY=100, AMP_COST=8000, AMP_MO=300;
/* Your own trench holds more than one fiber pair (#35). Once a ROADMaster is full you can light the next pair:
another ROADMaster and another chain of amplifiers, 64 more channels. Regen huts are shared. */
const isRdm=y=>y==='roadm'||y==='cl';
const PAIRS_MAX=4,PAIRS_BIG=8,PAIRS_LV=12,SUB_PAIRS_MAX=8,SUB_PAIR_UP=1500000,pairsMax=l=>l.sub?SUB_PAIRS_MAX:lvl()>=PAIRS_LV?PAIRS_BIG:PAIRS_MAX,chMax=l=>DF_SYS[l.sys].max*(isRdm(l.sys)&&l.own?Math.max(1,l.pairs|0):1),
const PAIRS_MAX=4,PAIRS_BIG=8,PAIRS_LV=12,SUB_PAIRS_MAX=8,SUB_PAIR_UP=1500000,pairsMax=l=>l.seat?Math.max(1,l.pairs|0):l.sub?SUB_PAIRS_MAX:lvl()>=PAIRS_LV?PAIRS_BIG:PAIRS_MAX,chMax=l=>DF_SYS[l.sys].max*(isRdm(l.sys)&&l.own?Math.max(1,l.pairs|0):1),
pairCost=l=>DF_SYS[isRdm(l.sys)?l.sys:'roadm'].cost+(l.sub?SUB_PAIR_UP:ampCount(l.km)*AMP_COST);
const OPT={
zr4:{n:'Ackackia 400ZR+',g:400,cost:12000,reach:1500,modes:[[400,1500],[200,3000]],rg:1,lvl:2,sys:'lite',blurb:tr('dark_fiber.coherent_pluggable_in_the_router_no')},

View file

@ -3,15 +3,15 @@
these rules, not separate code: Normal comes as Change Freeze, On-call (the classic game) and BGP at 3 a.m.;
Sandbox and Puzzles are presets too. Saves without rules load as On-call, so nothing changes for them.
Scenarios and the weekly challenge run on On-call plus their own S.scn.rules (scnRule()). */
const RULE_DEF={clock:true,chaos:'normal',lead:'real',market:true,inbox:true,money:'normal',gates:'ladder',mods:[]};
const RULE_OK={clock:[true,false],chaos:['none','calm','normal','spicy'],lead:['real','quick'],market:[true,false],inbox:[true,false],money:['normal','infinite'],gates:['ladder','open']};
const RULE_DEF={clock:true,chaos:'normal',lead:'real',market:true,money:'normal',gates:'ladder',mods:[]};
const RULE_OK={clock:[true,false],chaos:['none','calm','normal','spicy'],lead:['real','quick'],market:[true,false],money:['normal','infinite'],gates:['ladder','open']};
// i: icon, n: name, d: the one-line joke, x: what is different, in small print.
const PRESETS={
freeze:{i:'🧊',n:tr('rules.change_freeze'),d:tr('rules.nobody_touches_prod_even_the_backhoes'),x:tr('rules.a_third_of_the_outages_no_ddos'),clock:true,chaos:'calm',lead:'quick',market:false,inbox:false,money:'normal',gates:'ladder'},
oncall:{i:'📟',n:tr('rules.on_call'),d:tr('rules.the_real_thing_your_pager_has'),x:tr('rules.real_lead_times_real_outages_a'),clock:true,chaos:'normal',lead:'real',market:true,inbox:true,money:'normal',gates:'ladder'},
bgp:{i:'🔥',n:tr('rules.bgp_at_3_a_m'),d:tr('rules.everything_is_on_fire_and_it'),x:tr('rules.more_and_longer_outages_more_ddos'),clock:true,chaos:'spicy',lead:'real',market:true,inbox:true,money:'normal',gates:'ladder'},
sandbox:{i:'🏖️',n:tr('common.sandbox'),d:tr('rules.a_billion_dollars_every_unlock_your'),x:tr('rules.infinite_money_everything_unlocked_quick'),clock:true,chaos:'none',lead:'quick',market:true,inbox:true,money:'infinite',gates:'open'},
puzzle:{i:'🧩',n:tr('rules.puzzle'),d:tr('rules.one_small_network_one_tricky_goal'),x:tr('rules.no_clock_no_bills_nothing_breaks'),clock:false,chaos:'none',lead:'quick',market:false,inbox:false,money:'normal',gates:'open'},
freeze:{i:'🧊',n:tr('rules.change_freeze'),d:tr('rules.nobody_touches_prod_even_the_backhoes'),x:tr('rules.a_third_of_the_outages_no_ddos_pnis'),clock:true,chaos:'calm',lead:'quick',market:false,money:'normal',gates:'ladder'},
oncall:{i:'📟',n:tr('rules.on_call'),d:tr('rules.the_real_thing_your_pager_has'),x:tr('rules.real_lead_times_real_outages_a_real'),clock:true,chaos:'normal',lead:'real',market:true,money:'normal',gates:'ladder'},
bgp:{i:'🔥',n:tr('rules.bgp_at_3_a_m'),d:tr('rules.everything_is_on_fire_and_it'),x:tr('rules.more_and_longer_outages_more_ddos'),clock:true,chaos:'spicy',lead:'real',market:true,money:'normal',gates:'ladder'},
sandbox:{i:'🏖️',n:tr('common.sandbox'),d:tr('rules.a_billion_dollars_every_unlock_your'),x:tr('rules.infinite_money_everything_unlocked_quick'),clock:true,chaos:'none',lead:'quick',market:true,money:'infinite',gates:'open'},
puzzle:{i:'🧩',n:tr('rules.puzzle'),d:tr('rules.one_small_network_one_tricky_goal'),x:tr('rules.no_clock_no_bills_nothing_breaks'),clock:false,chaos:'none',lead:'quick',market:false,money:'normal',gates:'open'},
};
const NORMAL_PRESETS=['freeze','oncall','bgp'];
// How often things break, against the classic game. Spicy outages also last half as long again.
@ -42,7 +42,7 @@ function stretchInc(i){if(rule('chaos')!=='spicy'||!i||!(i.until>S.day)||i.start
else if(['crash','power','oops','cleaner','maint','shutdown'].includes(T))f(S.pops[r],'down');
else if(T==='ring')f(S.pops[r],'ringcut');else if(T==='ac')f(S.pops[r],'hot');
else if(T==='transit'||T==='prepend')f(S.transit.find(t=>t.id===r),'down');
else if((T==='ixloop'||T==='maxpfx')&&E.ixdown)f(E.ixdown,r);else if(T==='fabric'&&E.fab)f(E.fab,r);
else if(T==='ixloop'&&E.ixdown)f(E.ixdown,r);else if(T==='fabric'&&E.fab)f(E.fab,r);
else if(T==='lacp'){const [k,...x]=String(r).split(':'),id=x.join(':');f(k==='ix'?E.ixlacp&&E.ixlacp[id]:(k==='t'?S.transit:S.pni).find(o=>o.id===id)?.lacp,'until');}
else if(T==='rpki'||T==='hijack')f(E.rpki,'until');else if(T==='leak'||T==='pmtud')f(E[T],'until');else if(T==='krroute'||T==='depeer')f(E,T);
else if(T==='ddos')f(ddosAll(S,false).find(a=>a.id===i.atk),'until');}

View file

@ -8,21 +8,34 @@ function pathExists(a,b){if(!S.pops[a]||!S.pops[b])return false;const adj={};for
// Looked up rather than read from the save, so it follows a language switch mid-scenario.
const scnName=()=>S.scn.wk?wsTxt(S.scn.wk.name):S.scn.id==='weekly'?tr('scenarios.weekly_key',{key:S.scn.key}):SCN.find(x=>x.id===S.scn.id)?.n||S.scn.name;
const AU_BB=['syd','mel','bne','adl','per'],auExits=()=>new Set(S.links.filter(l=>l.sub&&!!CITY[l.a].au!==!!CITY[l.b].au&&!(l.ready>S.day)).map(l=>l.cable||l.id)).size;
const brIxN=()=>CITIES.filter(c=>c.br&&S.ixp[c.id]!==undefined).length;
// Ports count only on POPs your backbone joins to São Paulo: islands of POPs with a port each skipped the Amazon (playtest).
const FTTB_G=500;
// Gangnam Style Peering: traffic, how well Seoul is served (delivered and fast) and a monthly profit.
const GN_G=700,GN_Q=0.92;
const brIxN=()=>CITIES.filter(c=>c.br&&S.ixp[c.id]!==undefined&&(c.id==='sao'||pathExists('sao',c.id))).length;
// Days and cash were tuned in the 2.0.0 playtest (tests/scenarios-playtest.test.js): a reference player wins each one in
// roughly a fifth to a half of its days, and the obvious shortcut does not win. The 1.6T scenarios start with enough cash to
// build the whole chain on day 0 and still last until the traffic goal.
const SCN=[
{id:'stg',n:tr('scenarios.only_spatzle_ix'),city:'stg',cash:400000,days:730,rules:{noTransit:true,local:true},d:tr('scenarios.start_in_stuttgart_where_nobody'),goal:tr('scenarios.reach_50_of_the_internet_and'),ok:()=>R.reach>=0.5&&R.served>=300},
{id:'redsea',n:tr('scenarios.red_sea_crisis'),city:'mrs',cash:2500000,days:540,rules:{banCities:['cai','jed'],banPairs:['eig:dxb-mrs','gbi:fuj-mrs','smw4:khi-mrs','smw6:mrs-bom','smw6:mrs-sin','peace:mrs-sin','aae:mrs-hkg','twoaf:mrs-bom','medn:cai-mrs','medn:ist-mrs','twoaf:jnb-mrs','eassy:nbo-mrs']},d:tr('scenarios.every_cable_through_the_red_sea'),goal:tr('scenarios.a_path_from_marseille_to_singapore'),ok:()=>pathExists('mrs','sin')&&(S.stats.asiaRun||0)>=RS_DAYS},
{id:'spat',n:tr('scenarios.the_cogentle_spat'),city:'nyc',cash:700000,days:540,rules:{spat:true},d:tr('scenarios.cogentle_and_goggle_are_not_speaking'),goal:tr('scenarios.99_reach_and_150_gbps_served'),ok:()=>R.reach>=0.99&&R.served>=150},
{id:'stg',n:tr('scenarios.only_spatzle_ix'),city:'stg',cash:400000,days:365,rules:{noTransit:true,local:true},d:tr('scenarios.start_in_stuttgart_where_nobody'),goal:tr('scenarios.reach_50_of_the_internet_and'),ok:()=>R.reach>=0.5&&R.served>=300},
{id:'redsea',n:tr('scenarios.red_sea_crisis'),city:'mrs',cash:2500000,days:365,rules:{banCities:['cai','jed'],banPairs:['eig:dxb-mrs','gbi:fuj-mrs','smw4:khi-mrs','smw6:mrs-bom','smw6:mrs-sin','peace:mrs-sin','aae:mrs-hkg','twoaf:mrs-bom','medn:cai-mrs','medn:ist-mrs','twoaf:jnb-mrs','eassy:nbo-mrs']},d:tr('scenarios.every_cable_through_the_red_sea'),goal:tr('scenarios.a_path_from_marseille_to_singapore'),ok:()=>pathExists('mrs','sin')&&(S.stats.asiaRun||0)>=RS_DAYS},
{id:'spat',n:tr('scenarios.the_cogentle_spat'),city:'nyc',cash:700000,days:240,rules:{spat:true},d:tr('scenarios.cogentle_and_goggle_are_not_speaking'),goal:tr('scenarios.99_reach_and_150_gbps_served'),ok:()=>R.reach>=0.99&&R.served>=150},
{id:'carnaval',n:tr('common.carnaval'),city:'rio',cash:600000,days:100,rules:{},setup:()=>{S.biz.push({id:uid(),scripted:true,city:'rio',city2:null,reqs:[],name:'Carnaval Parade in Rio de Janeiro',type:'event',bw:400,rate:0,mood:100,since:0,start:90,dur:5,fee:400*5*70});},d:tr('scenarios.rio_from_scratch_carnaval_starts_in'),goal:tr('scenarios.deliver_carnaval_in_full'),ok:()=>(S.stats.evFull||0)>=1},
{id:'darien',n:tr('common.mind_the_gap'),city:'pan',cash:900000,days:730,rules:{},d:tr('scenarios.start_in_panama_city_nothing_crosses'),goal:tr('scenarios.pops_in_bogota_lima_santiago_and'),ok:()=>['bog','lim','scl','sao'].every(c=>S.pops[c])&&R.served>=150},
{id:'c2c',n:tr('scenarios.cape_to_cairo'),city:'cpt',cash:2000000,days:1095,rules:{},d:tr('scenarios.cape_town_build_a_network_across'),goal:tr('scenarios.a_path_from_cape_town_to'),ok:()=>pathExists('cpt','cai')&&S.pops.lag&&S.pops.nbo&&R.served>=150},
{id:'ixbr',n:tr('scenarios.order_and_progress'),city:'sao',cash:2500000,days:1095,rules:{},d:tr('scenarios.sao_paulo_brazil_is_a_continent'),goal:tr('scenarios.ports_on_15_ix_brrr_exchanges'),ok:()=>brIxN()>=15&&S.ixp.mao!==undefined&&R.served>=200},
{id:'gangnam',n:tr('scenarios.gangnam_style_peering'),city:'icn',cash:900000,days:365,rules:{},d:tr('scenarios.seoul_the_fastest_hungriest_eyeballs'),goal:tr('scenarios.99_reach_and_200_gbps_served'),ok:()=>R.reach>=0.99&&R.served>=200},
// Connected, not just present: four island POPs with local transit won on day 40 without crossing anything (playtest).
{id:'darien',n:tr('common.mind_the_gap'),city:'pan',cash:900000,days:180,rules:{},d:tr('scenarios.start_in_panama_city_nothing_crosses'),goal:tr('scenarios.connect_panama_city_to_bogota_lima'),ok:()=>['bog','lim','scl','sao'].every(c=>pathExists('pan',c))&&R.served>=150},
// Lagos and Nairobi on the network too: one long wave to Cairo plus two empty POPs was not a network across Africa.
{id:'c2c',n:tr('scenarios.cape_to_cairo'),city:'cpt',cash:2000000,days:365,rules:{},d:tr('scenarios.cape_town_build_a_network_across'),goal:tr('scenarios.a_path_from_cape_town_to_cairo_lagos'),ok:()=>pathExists('cpt','cai')&&pathExists('cpt','lag')&&pathExists('cpt','nbo')&&R.served>=150},
{id:'ixbr',n:tr('scenarios.order_and_progress'),city:'sao',cash:600000,days:240,rules:{},d:tr('scenarios.sao_paulo_brazil_is_a_continent'),goal:tr('scenarios.ports_on_15_ix_brrr_exchanges_backbone'),ok:()=>brIxN()>=15&&S.ixp.mao!==undefined&&R.served>=200},
// Sender pays, turned up: with Korea at the usual prices broadband swamped every bill and Seoul alone won on day 73
// (playtest). Now Seoul transit is dear, the incumbents want a paid PNI and Korean users mind every far exit.
{id:'gangnam',n:tr('scenarios.gangnam_style_peering'),city:'icn',cash:900000,days:240,rules:{sender:true},d:tr('scenarios.seoul_sender_pays_d'),goal:tr('scenarios.seoul_sender_pays_goal',{g:GN_G,q:Math.round(GN_Q*100)}),ok:()=>R.reach>=0.99&&R.served>=GN_G&&sfOf(R,'icn')>=GN_Q&&R.revMo>=R.costMo},
{id:'flood',n:tr('common.flood_season'),city:'ams',cash:2000000,days:365,rules:{ddos:true},setup:()=>{S.lvl=Math.max(S.lvl||1,3);},d:tr('scenarios.amsterdam_hosting_capital_of_europe'),goal:tr('scenarios.hold_20_floods_5_of_them'),ok:()=>(S.stats.ddosOk||0)>=20&&(S.stats.ddosOkBig||0)>=5},
{id:'fttb',n:tr('scenarios.fibre_to_the_basement'),city:'syd',cash:1500000,days:730,rules:{levy:true},d:tr('scenarios.sydney_2013_the_toilet_paper_group'),goal:tr('scenarios.broadband_in_sydney_melbourne'),ok:()=>AU_BB.every(c=>S.pops[c]&&S.pops[c].bb)&&auExits()>=2},
{id:'baltic',n:tr('common.anchors_away'),city:'tll',cash:500000,days:540,rules:{anchors:3},d:tr('scenarios.tallinn_ships_drag_their_anchors'),goal:tr('scenarios.90_days_in_a_row_with'),ok:()=>(S.stats.clean||0)>=90},
{id:'pac',n:tr('common.stepping_stones'),city:'hnl',cash:3000000,days:1095,rules:{},setup:()=>{S.lvl=Math.max(S.lvl||1,4);},d:tr('scenarios.honolulu_in_the_middle_of_the'),goal:tr('scenarios.a_path_from_los_angeles_to'),ok:()=>fastPath('lax','syd',1600)&&pathExists('lax','tok')&&R.served>=150},
{id:'atl',n:tr('scenarios.mid_atlantic_accent'),city:'pdl',cash:3000000,days:1095,rules:{},setup:()=>{S.lvl=Math.max(S.lvl||1,4);},d:tr('scenarios.ponta_delgada_in_the_azores_halfway'),goal:tr('scenarios.1_6t_on_every_hop_from'),ok:()=>fastPath('mia','mad',1600)&&fastPath('lis','lag',1600)&&R.served>=100},
// Traffic served too: broadband in five cities and two cables were bought on day 1 and won on day 2 (playtest).
{id:'fttb',n:tr('scenarios.fibre_to_the_basement'),city:'syd',cash:1500000,days:365,rules:{levy:true},d:tr('scenarios.sydney_2013_the_toilet_paper_group'),goal:tr('scenarios.broadband_in_sydney_melbourne_served'),ok:()=>AU_BB.every(c=>S.pops[c]&&S.pops[c].bb)&&auExits()>=2&&R.served>=FTTB_G},
// Nobody sells transit in Tallinn here: with local transit, a network that never crossed the water won (playtest).
{id:'baltic',n:tr('common.anchors_away'),city:'tll',cash:500000,days:365,rules:{anchors:3,noTransitIn:['tll']},d:tr('scenarios.tallinn_nobody_sells_transit_anchors'),goal:tr('scenarios.90_days_in_a_row_with'),ok:()=>(S.stats.clean||0)>=90},
{id:'pac',n:tr('common.stepping_stones'),city:'hnl',cash:5000000,days:240,rules:{},setup:()=>{S.lvl=Math.max(S.lvl||1,4);},d:tr('scenarios.honolulu_in_the_middle_of_the'),goal:tr('scenarios.a_path_from_los_angeles_to'),ok:()=>fastPath('lax','syd',1600)&&pathExists('lax','tok')&&R.served>=150},
{id:'atl',n:tr('scenarios.mid_atlantic_accent'),city:'pdl',cash:5000000,days:240,rules:{},setup:()=>{S.lvl=Math.max(S.lvl||1,4);},d:tr('scenarios.ponta_delgada_azores_lisbon_lagos'),goal:tr('scenarios.1_6t_on_every_hop_from'),ok:()=>fastPath('mia','mad',1600)&&fastPath('lis','lag',1600)&&R.served>=100},
];
const WEEK_CITIES=['fra','ams','lon','nyc','ash','sjc','sin','tok','syd','sao','jnb','bom','waw','ist','scl','hkg'];
const WEEK_MODS=[{id:'pricey',n:tr('scenarios.transit_costs_30_more')},{id:'chaos',n:tr('scenarios.twice_the_failures')},{id:'poor',n:tr('scenarios.start_with_only_100k')},{id:'boom',n:tr('scenarios.eyeballs_grow_50_faster')},{id:'dk',n:tr('scenarios.every_ix_is_run_by_de')},{id:'sharks',n:tr('scenarios.shark_season_subsea_cuts_twice_as')}];
@ -30,7 +43,7 @@ const WEEK_MODS=[{id:'pricey',n:tr('scenarios.transit_costs_30_more')},{id:'chao
function weekly(){const [y,w]=pzWeekKey(new Date()).split('-W').map(Number);let r=(y*100+w)*2654435761>>>0;const nx=()=>{r=(r*1103515245+12345)>>>0;return r/4294967296;};const city=WEEK_CITIES[Math.floor(nx()*WEEK_CITIES.length)];const mods=[];while(mods.length<2){const m=WEEK_MODS[Math.floor(nx()*WEEK_MODS.length)];if(!mods.includes(m))mods.push(m);}return {id:'weekly',key:`${y}-W${String(w).padStart(2,'0')}`,seed:y*100+w,city,mods,days:365};}
const scnRule=k=>!!(S&&S.scn&&S.scn.rules&&S.scn.rules[k]);
function scnHof(){try{return JSON.parse(localStorage.getItem('sot-scn')||'{}')||{};}catch(e){return {};}}
function beginGame(nm,city,o={}){if(needPitch()&&!UI.pitched){UI.pendGame=[nm,city,o];openModal(pitchHtml(true));return;}if(pzOn())pzLeave();slotLeave();slotNew();newGame(nm,city);S.mode=o.mode||'normal';
function beginGame(nm,city,o={}){if(needPitch()&&!UI.pitched){UI.pendGame=[nm,city,o];openModal(pitchHtml(true));return;}if(pzOn())pzLeave();slotLeave();slotNew();newGame(nm,city);{const a=+(UI.asnTxt||UI.asnSug||0);if(asnOk(a))S.asn=a;UI.asnSug=null;}S.mode=o.mode||'normal';
// The rules are picked here and locked for the life of the network. Scenarios run on On-call plus their own rules.
{const pr=o.scn?'oncall':S.mode==='sandbox'?'sandbox':S.mode==='puzzle'?'puzzle':own(PRESETS,o.preset)&&o.preset!=='sandbox'&&o.preset!=='puzzle'?o.preset:'oncall';S.rules=makeRules(pr,o.scn?{}:o.rules);}
if(S.mode==='sandbox'){S.cash=1e9;S.lvl=LEVELS.length;if(!chaosMul()){S.nextFail=1e9;S.nextEvent=1e9;}}

View file

@ -26,7 +26,7 @@ function capOffer(a,b,t,nm){const T=BIZ_T[t],km=kmBetween(a,b),n=pick(T.opts),o=
if(t==='capfib'){o.bw=1;o.slots=n;o.rate=Math.round(dfLeaseMo(km)*n*1.5);o.win=dfBuildDays(km)+150;}
else{o.bw=t==='capw'?n*400:n;o.rate=Math.round((150+km*0.08)*T.km);o.win=t==='capsub'?300+Math.floor(Math.random()*121):180+Math.floor(Math.random()*91);}
return o;}
function capDealTick(d){const q=S.capDeal;if(!q||q.at!==d)return;S.capDeal=null;const pool=(CAP_ROUTES[q.c]||[]).filter(r=>isCity(r[0])&&isCity(r[1])).slice(),out=[];
function capDealTick(d){const q=S.capDeal;if(!q||q.at!==d)return;S.capDeal=null;seatConf(q.c);const pool=(CAP_ROUTES[q.c]||[]).filter(r=>isCity(r[0])&&isCity(r[1])).slice(),out=[];
while(out.length<3&&pool.length){const [a,b,t]=pool.splice(Math.floor(Math.random()*pool.length),1)[0],T=BIZ_T[t];
const nm=()=>{const list=T.names.filter(n=>!S.usedNames.includes(n)),n=list.length?pick(list):pick(T.names);useName(n);return n;};out.push(capOffer(a,b,t,nm));}
if(!out.length)return;S.offers.push(...out);

View file

@ -0,0 +1,96 @@
/* ---------- Specialist play (#187, #173) ----------
You do not have to grow everywhere to grow up. Customers call when your network can already serve them, not only
when your level says so; gear one level ahead comes early as a vendor demo unit at a premium; a seat on a
consortium cable is the way onto your own subsea glass before Tier 1; and a charter picks what you set out to be. */
const FIN=['nyc','chi','lon','fra','tok','sin','hkg','ams','ash'];
// What a capability brings in, and why the offer says it came.
const SPOT_W={lat:N_('specialist.spotted_your_ms_ms_a_b_path'),df:N_('specialist.spotted_your_cap_of_dark_fiber'),div:N_('specialist.spotted_your_two_diverse_paths_a'),eye:N_('specialist.spotted_your_broadband_in_a_one')};
const SPOT_BIG=12,SPOT_DF=0.75;
const latMaxOf=(a,b)=>+(kmBetween(a,b)/200*1.35).toFixed(1);
let BIGEYE=null;const bigEye=()=>BIGEYE||(BIGEYE=CITIES.slice().sort((x,y)=>y.P-x.P).slice(0,SPOT_BIG).map(c=>c.id));
// Worked out at most once a day (and again when the network changes shape): offers spawn far less often than that.
let SPOTC=null;
function spots(){const lv=lvl(),k=S.day+'|'+lv+'|'+S.links.length+'|'+Object.keys(S.pops).length+'|'+charter();if(SPOTC&&SPOTC.s===S&&SPOTC.k===k)return SPOTC.v;const v=spots0(lv);SPOTC={s:S,k,v};return v;}
function spots0(lv){const out=[];if(gatesOpen()||S.scn)return out;const up=t=>BIZ_T[t].lv>lv,mine=Object.keys(S.pops);
if(up('hft')){const f=FIN.filter(c=>S.pops[c]);for(let i=0;i<f.length;i++)for(let j=i+1;j<f.length;j++){const a=f[i],b=f[j],ms=bestLat(a,b);if(ms<=latMaxOf(a,b))out.push({t:'hft',a,b,k:'lat',n:+ms.toFixed(1)});}}
const dci=['onramp','ai','hyper'].filter(up);
if(dci.length)for(const l of S.links){if(l.kind!=='df'||l.sub||l.ready>S.day||linkDown(l))continue;const g=dfCap(l);
for(const t of dci){const T=BIZ_T[t];if(g>=T.opts[0]*SPOT_DF&&(!T.div||reqCan('diverse',{city:l.a,city2:l.b})))out.push({t,a:l.a,b:l.b,k:'df',n:g});}}
if(up('sov')){const by={};for(const c of mine)(by[CITY[c].cc]=by[CITY[c].cc]||[]).push(c);
for(const cs of Object.values(by))for(let i=0;i<cs.length;i++)for(let j=i+1;j<cs.length;j++)if(diversePaths(cs[i],cs[j]))out.push({t:'sov',a:cs[i],b:cs[j],k:'div',n:0});}
if(up('cgame')&&R)for(const c of bigEye())if(S.pops[c]&&S.pops[c].bb&&sfOf(R,c)>=0.95)out.push({t:'cgame',a:c,b:null,k:'eye',n:0});
return out;}
// A spotted customer starts at the smallest size its type comes in; your level makes them bigger and more frequent.
function spawnSpot(t,s){const T=BIZ_T[t],list=T.names.filter(n=>!S.usedNames.includes(n)),name=list.length?pick(list):pick(T.names);useName(name);
const o={id:uid(),city:s.a,city2:s.b,name,type:t,bw:T.opts[0],reqs:[],exp:S.day+40,spot:{k:s.k,n:s.n}};
o.rate=T.l2?Math.round((150+kmBetween(s.a,s.b)*0.08)*T.km*(T.lat?latPay():1)*(T.div?1+REQS.diverse.bonus:1)):T.rate;
if(T.lat){o.reqs=['lat'];o.latMax=latMaxOf(s.a,s.b);}else if(T.div)o.reqs=['diverse'];
S.offers.push(o);}
function spotWhy(o){const s=o&&o.spot;if(!s||!own(SPOT_W,s.k))return '';
return `<div class="meta">🔭 ${tr(SPOT_W[s.k],{ms:s.n,cap:fmtCap(s.n),a:CITY[o.city].name,b:o.city2?CITY[o.city2].name:''})}</div>`;}
/* Vendor demo units: gear one level above yours, early, at a markup and after a short wait. Never two levels ahead. */
const DEMO_MUL=1.6,DEMO_DAYS=14;
function demoItem(k,id){return k==='rg'?RG[+id]||null:k==='sys'?(own(DF_SYS,id)?DF_SYS[id]:null):k==='opt'?(own(OPT,id)?OPT[id]:null):null;}
const demoAt=(k,id)=>{const d=S&&S.demo&&S.demo[k+':'+id];return d===undefined?null:d;};
const demoCan=L=>!gatesOpen()&&L===lvl()+1;
function techOk(k,id,L){if(L<=lvl())return true;const d=demoAt(k,id);return demoCan(L)&&d!==null&&d<=S.day;}
const techMul=L=>L>lvl()?DEMO_MUL:1;
function demoBtn(k,id,L,lock,cls){const d=demoAt(k,id);if(!demoCan(L))return btn(lock,'demoAsk',{k,id},cls,true);
if(d!==null&&d>S.day)return btn(tr('specialist.demo_unit_ships_in_n_days',{n:d-S.day}),'demoAsk',{k,id},cls,true);
return btn(tr('specialist.ask_for_a_demo_unit_p_n',{p:Math.round((DEMO_MUL-1)*100),n:leadDays(DEMO_DAYS)}),'demoAsk',{k,id},cls);}
const sysCost=k=>Math.round(DF_SYS[k].cost*techMul(DF_SYS[k].lvl));
// Digging your own fiber before level 3: the pioneer pays for the permits nobody has asked for yet.
const PIONEER=1.6;
const digMul=()=>lvl()>=3?1:PIONEER,digCost=km=>Math.round(dfBuildCost(km)*digMul());
/* A seat on a consortium cable (#173): pay your share of the build, wait for the ship, and own fiber pairs on it,
lit with your own optics like your own cable. Capacity conferences offer them, and now and then a consortium calls. */
const SEAT_ROUTES={
lon:[['nyc','bde','Amity Ville'],['lis','for','Ella Fitz-Link'],['mrs','sin','Sea, Me, We, Us, Them'],['lon','lag','Equi-Not']],
hnl:[['syd','lax','Southern Double-Cross'],['tok','sea','Kuro-Show'],['sin','hkg','Dim Sum Express'],['syd','akl','Tasman Devil']],
};
const SEAT_N=[1,2,4],SEAT_SHARE=10,SEAT_LV=2,SEAT_ODDS=240,SEAT_EXP=30;
const seatKm=(a,b)=>Math.round(kmBetween(a,b)*1.2),seatCost=(km,n)=>Math.round(ownCabCost(km)*n/SEAT_SHARE),seatMo=(km,n)=>Math.round(ownCabMo(km)*n/SEAT_SHARE),seatDays=km=>Math.max(1,Math.round(ownCabDays(km)*0.6));
const seatRoute=name=>Object.values(SEAT_ROUTES).flat().find(r=>r[2]===name);
// A conference names its own routes; a cold call is about a route with one of your POPs at an end. Picked by a hash, not
// by the dice, so the rest of the game rolls exactly as before.
function seatOffer(c,d){const rs=(c?SEAT_ROUTES[c]||[]:Object.values(SEAT_ROUTES).flat()).filter(r=>isCity(r[0])&&isCity(r[1])&&(c||S.pops[r[0]]||S.pops[r[1]])&&!S.links.some(l=>l.seat&&l.cname===r[2]));
if(!rs.length)return null;const r=rs[hstr(S.asn+'|seat|'+d)%rs.length];return {a:r[0],b:r[1],name:r[2],km:seatKm(r[0],r[1]),exp:d+SEAT_EXP};}
function seatConf(c){if(S.seatOff||lvl()<SEAT_LV||S.scn)return;S.seatOff=seatOffer(c,S.day);if(S.seatOff)toast(tr('specialist.a_consortium_is_selling_seats_on',{name:esc(S.seatOff.name),a:CITY[S.seatOff.a].name,b:CITY[S.seatOff.b].name}),'goal',[{l:tr('common.show_me'),act:'leftTab',args:{t:'deals'}}]);}
function seatSection(){const o=S.seatOff;if(!o||o.exp<=S.day)return '';const pop=[o.a,o.b].filter(c=>!S.pops[c]).reduce((x,c)=>x+popCost(c),0);
return `<div class="inc" style="background:#E6F4FF"><div class="nm">🚢 ${tr('specialist.consortium_seat_name',{name:esc(o.name)})}</div><div class="meta">${tr('specialist.a_b_km_km_ready_in',{a:CITY[o.a].name,b:CITY[o.b].name,km:o.km.toLocaleString(),n:seatDays(o.km),ms:linkLat({kind:'df',own:true,sub:true,km:o.km,seaDesign:'standard'}).toFixed(1)})} · ${tr('ui.n_d_left',{n:o.exp-S.day})}</div>
<div class="meta">${tr('specialist.your_own_fiber_pairs_on_a')}${pop?' '+tr('specialist.includes_pops_at_the_landings_price',{price:fmt$(pop)}):''}</div>
<div class="btns">${SEAT_N.map(n=>{const c=seatCost(o.km,n)+pop;return btn(`${trn('specialist.n_fiber_pairs',n)} <small>${fmt$(c)} · ${tr('common.price_mo',{price:fmt$(seatMo(o.km,n))})}</small>`,'seatBuy',{n},'sm',S.cash<c);}).join('')}${btn(tr('common.decline'),'seatNo',{},'ghost sm')}</div></div>`;}
function seatPanel(l){if(!l.seat)return '';return `<div class="kv"><span>${tr('specialist.consortium_seat')}</span><b>${esc(l.cname||'')} · ${trn('specialist.n_fiber_pairs',Math.max(1,l.pairs|0))}</b></div><p class="note">${tr('specialist.the_consortium_runs_the_cable_your')}</p>`;}
/* Charters: what the network sets out to be, picked once at the start of a Normal game. Global backbone is the game as
it always was; the Low-latency boutique sells speed to traders and has its own win, Speed of Light. */
const CHARTERS={global:{i:'🌐',n:N_('specialist.global_backbone'),d:N_('specialist.the_classic_game_grow_everywhere_and')},boutique:{i:'⚡',n:N_('specialist.low_latency_boutique'),d:N_('specialist.trading_firms_and_other_latency_customers')}};
const CHARTER_DAYS=30,LAT_PAY=1.4,SOL_ROUTES=3,SOL_CUST=2;
const charter=()=>S&&!S.scn&&S.mode==='normal'&&S.charter==='boutique'?'boutique':'global';
const latPay=()=>charter()==='boutique'?LAT_PAY:1;
// The fastest a leased wave or fiber gets between two cities: overland, or the quickest cable on the route.
function leasedLat(a,b){let best=isSub(a,b)?Infinity:kmBetween(a,b)*1.25/200;for(const c of cablesFor(a,b))best=Math.min(best,c.km*Math.min(CAB[c.cid].lat||1,1.25)/200);return best;}
const ownGlass=l=>l.kind==='df'&&l.own&&l.ready<=S.day&&dfCap(l)>0;
let SOLC=null;
function solRoutes(){const k=S.day+'|'+S.links.length+'|'+S.links.reduce((n,l)=>n+(l.ch||[]).length,0);if(SOLC&&SOLC.s===S&&SOLC.k===k)return SOLC.v;
const f=FIN.filter(c=>S.pops[c]),v=[];if(S.links.some(ownGlass))for(let i=0;i<f.length;i++)for(let j=i+1;j<f.length;j++){const a=f[i],b=f[j],o=bestLat(a,b,ownGlass),l=leasedLat(a,b);if(isFinite(o)&&isFinite(l)&&o<l)v.push({a,b,o,l});}
SOLC={s:S,k,v};return v;}
const solCust=()=>S.biz.filter(b=>BIZ_T[b.type]&&BIZ_T[b.type].lat&&b.mood>=50&&reqOk(b)).length;
function charterCard(){if(S.scn||S.mode!=='normal')return '';
if(!S.chartSet&&S.day<=CHARTER_DAYS)return `<div class="inc" style="background:#EEF0FF"><div class="nm">${tr('specialist.pick_a_charter')}</div><div class="meta">${tr('specialist.what_kind_of_network_are_you',{n:CHARTER_DAYS-S.day})}</div>${Object.entries(CHARTERS).map(([k,C])=>`<div class="row"><div class="grow"><div class="nm">${C.i} ${tr(C.n)}</div><div class="meta">${tr(C.d,{p:Math.round((LAT_PAY-1)*100),r:SOL_ROUTES,c:SOL_CUST})}</div></div>${btn(charter()===k?tr('specialist.keep_it'):tr('specialist.pick'),'charter',{k},k==='global'?'ghost sm':'pink sm')}</div>`).join('')}</div>`;
if(charter()!=='boutique')return '';
if(S.solWon)return `<div class="inc" style="background:#EAF7EE"><div class="nm">⚡ ${tr('specialist.speed_of_light')}</div><div class="meta">${tr('specialist.won_on_date_your_own_glass',{date:dateStr(S.solWon)})}</div></div>`;
const r=solRoutes();return `<div class="inc" style="background:#EEF0FF"><div class="nm">⚡ ${tr('specialist.speed_of_light')}</div><div class="meta">${tr('specialist.routes_r_of_n_beat_the',{r:Math.min(r.length,SOL_ROUTES),n:SOL_ROUTES,c:Math.min(solCust(),SOL_CUST),m:SOL_CUST})}</div>${r.slice(0,SOL_ROUTES).map(x=>`<div class="meta">✓ ${CITY[x.a].name} ⇄ ${CITY[x.b].name}: ${tr('common.ms_ms_one_way',{ms:x.o.toFixed(1)})} &lt; ${x.l.toFixed(1)}</div>`).join('')}</div>`;}
// Once a day: seats expire or call, and the boutique checks its win.
function specDay(d){if(S.seatOff&&S.seatOff.exp<=d)S.seatOff=null;
if(!S.seatOff&&!S.scn&&S.mode!=='puzzle'&&lvl()>=SEAT_LV&&hstr(S.asn+'|seatcall|'+d)%SEAT_ODDS===0)seatConf(null);
if(charter()==='boutique'&&!S.solWon&&solRoutes().length>=SOL_ROUTES&&solCust()>=SOL_CUST){S.solWon=Math.max(1,d);track('win_sol');toast(`<b>⚡ ${tr('specialist.speed_of_light')}</b><br>${tr('specialist.your_own_glass_beats_every_leased')}`,'goal');sfx('coin');checkBadges();}}
// Saves: the charter, demo orders, a seat on offer and the boutique's win. Old saves are Global backbone, picked.
function specSanitize(s){s.charter=s.charter==='boutique'&&s.mode==='normal'&&!s.scn?'boutique':'global';s.chartSet=s.chartSet===false&&s.day<=CHARTER_DAYS?false:true;
const dm={};if(s.demo&&typeof s.demo==='object'&&!Array.isArray(s.demo))for(const key of Object.keys(s.demo).slice(0,64)){const [k,id]=key.split(':');if(demoItem(k,id)&&Number.isFinite(+s.demo[key]))dm[key]=Math.round(+s.demo[key]);}s.demo=dm;
const o=s.seatOff;s.seatOff=o&&typeof o==='object'&&typeof o.name==='string'&&seatRoute(o.name)&&seatRoute(o.name)[0]===o.a&&seatRoute(o.name)[1]===o.b?{a:o.a,b:o.b,name:o.name,km:seatKm(o.a,o.b),exp:num(o.exp,0)}:null;
s.solWon=Number.isFinite(+s.solWon)&&+s.solWon>0?Math.round(+s.solWon):0;
for(const l of s.links)if(l.seat!==undefined){if(l.seat===true&&l.kind==='df'&&l.own&&l.sub)l.pairs=Math.max(1,Math.min(Math.max(...SEAT_N),l.pairs|0));else delete l.seat;}
for(const b of [...s.biz,...s.offers])if(b.spot!==undefined){const x=b.spot;if(x&&typeof x==='object'&&own(SPOT_W,x.k))b.spot={k:x.k,n:num(x.n,0)};else delete b.spot;}}

View file

@ -17,6 +17,7 @@ function shareCanvas(){const Wc=1200,Hc=630,cv=document.createElement('canvas');
// stats
const got=BADGES.filter(b=>S.ach&&S.ach[b.id]!==undefined),rk={l:0,e:1,r:2,c:3},lv=b=>bvar(S.achP&&S.achP[b.id]).lv,top=got.slice().sort((a,b)=>rk[a.r]-rk[b.r]||lv(b)-lv(a)).slice(0,8);
const rows=[[tr('common.peak_traffic'),fmtG(S.stats.peak||0)],[tr('common.peered'),pct(R.peerShare||0)],[tr('common.pops'),tr('share_card.n_in_r_regions',{n:Object.keys(S.pops).length,r:regionsCount()})],[tr('common.links'),String(S.links.length)],[tr('common.customers'),String(S.biz.length)],[tr('common.incidents_survived'),String(S.stats.survived||0)],[tr('common.shark_bites'),String(S.stats.sharks||0)],[tr('common.badges'),`${got.length}/${BADGES.length}`]];
if(S.solWon)rows.unshift(['⚡ '+tr('specialist.speed_of_light'),dateStr(S.solWon)]);
if(S.scn)rows.unshift([scnName(),S.scn.done?(S.scn.id==='weekly'?tr('share_card.score_v',{v:fmtG(S.scn.score||S.stats.peak||0)}):tr('features.done_in_d_days',{d:S.scn.done})):S.scn.failed?tr('share_card.not_this_time'):tr('common.in_progress')]);
let y=150;for(const [k,v] of rows.slice(0,9)){g.fillStyle='#fff';g.strokeStyle='#1E2640';g.lineWidth=3;g.beginPath();g.roundRect?g.roundRect(770,y,390,42,12):g.rect(770,y,390,42);g.fill();g.stroke();g.fillStyle='#5A6280';g.font='800 18px Nunito, sans-serif';g.fillText(k,786,y+11);g.fillStyle='#1E2640';g.font='900 22px Nunito, sans-serif';const tw=g.measureText(v).width;g.fillText(v,1146-tw,y+9);y+=48;}
// Badge variants show as a ring: frosted for Change Freeze, fiery for BGP at 3 a.m.

View file

@ -1,6 +1,6 @@
function newGame(name,home){
S={v:1,name,asn:200000+Math.floor(_rand()*15000),home,day:0,cash:START_CASH,
ltv:2,t1v:3,auV:1,ops:opsNew(),achP:{},seen:NETS.map(n=>n.id),spares:{},pops:{[home]:{day:0,bb:null,boost:0,down:0,routers:1,gen:false}},links:[],nni:[],transit:[],ixp:{},rs:{},peers:{},pni:[],caches:[],biz:[],offers:[],myIx:{},pairMet:{},
done:{},inc:[],ev:{ddosMore:[]},ddosStarts:[],priceMul:1,nextFail:45,nextEvent:40,usedNames:[],stats:{survived:0,incidents:0,peak:0},cnLic:{state:'none'},scrubs:[],scrubMode:'always',capDeal:null,won:false,lost:false,neg:0,loans:[],loanOffers:[],loanStrikes:0,inbox:{items:[],down:{},tiny:{},rep:0,bot:false,log:[],seq:0},hw:{},rules:makeRules('oncall')};
done:{},inc:[],ev:{ddosMore:[]},ddosStarts:[],priceMul:1,nextFail:45,nextEvent:40,usedNames:[],stats:{survived:0,incidents:0,peak:0},cnLic:{state:'none'},scrubs:[],scrubMode:'always',capDeal:null,won:false,lost:false,neg:0,loans:[],loanOffers:[],loanStrikes:0,ppol:'open',pdesk:null,pdeskRep:null,hw:{},rules:makeRules('oncall'),charter:'global',chartSet:false,demo:{},seatOff:null,solWon:0};
}

View file

@ -27,7 +27,7 @@ const WS_GOALS={
path:{p:{a:['c'],b:['c'],g:['n',10,12800],n:['n',1,120]},daily:p=>fastPath(p.a,p.b,p.g),l:N_('wkscn.goal_g_on_every_hop_from'),ok:p=>wsRun()>=p.n,m:()=>wsRun(),
prog:p=>[pChk(tr('wkscn.p_path_g_a_b',{g:fmtG(p.g),a:CITY[p.a].name,b:CITY[p.b].name}),fastPath(p.a,p.b,p.g)),{l:tr('wkscn.p_days_in_a_row'),v:wsRun(),max:p.n,txt:`${wsRun()} / ${p.n}`}]},
ix:{p:{reg:['r'],n:['n',2,60]},l:N_('wkscn.goal_ports_on_n_exchanges_in'),ok:p=>wsIxN(p.reg)>=p.n,m:p=>wsIxN(p.reg),prog:p=>{const n=wsIxN(p.reg);return [{l:tr('wkscn.p_exchange_ports_in_reg',{reg:WAVE_NAME[p.reg]}),v:n,max:p.n,txt:`${n} / ${p.n}`}];}},
pops:{p:{cs:['cs',1,8]},l:N_('wkscn.goal_a_connected_pop_in_list'),ok:p=>p.cs.every(c=>pathExists(S.scn.home,c)),m:p=>p.cs.filter(c=>pathExists(S.scn.home,c)).length,prog:p=>p.cs.map(c=>pChk(tr('progress.pop_in_city',{city:CITY[c].name}),pathExists(S.scn.home,c)))},
pops:{p:{cs:['cs',1,8]},l:N_('wkscn.goal_a_connected_pop_in_list'),ok:p=>p.cs.every(c=>pathExists(S.scn.home,c)),m:p=>p.cs.filter(c=>pathExists(S.scn.home,c)).length,prog:p=>p.cs.map(c=>pChk(tr('progress.city_on_your_network',{city:CITY[c].name}),pathExists(S.scn.home,c)))},
event:{p:{city:['c'],g:['n',10,6400],day:['n',20,360],dur:['n',1,10]},l:N_('wkscn.goal_deliver_the_event_in_city'),ok:()=>(S.stats.evFull||0)>=1,m:()=>S.stats.evFull||0,
setup:p=>S.biz.push({id:uid(),scripted:true,city:p.city,city2:null,reqs:[],name:tr('wkscn.event_name_city',{city:CITY[p.city].name}),type:'event',bw:p.g,rate:0,mood:100,since:0,start:p.day,dur:p.dur,fee:p.g*p.dur*70}),
prog:p=>[pChk(tr('wkscn.p_event_delivered_in_full'),(S.stats.evFull||0)>=1),{l:tr('common.traffic_served'),v:0,max:0,txt:tr('wkscn.p_g_on_day_d',{g:fmtG(p.g),d:p.day})}]},

View file

@ -5,7 +5,9 @@
Not That Telecom and Level Tree (whose real-world network lists no sites in PeeringDB at all, but sells in Sydney). Others can sit in
an Australian city, like the Pacific carriers backhauling to Sydney (or Glowball Sakura Lager), but reach Australian
customers only from overseas. */
const AU_SELLERS=['tsy','voc','spl','sgt','drz','cog','ntt','lvl'],sellsAt=(n,c)=>!!n.price&&(n.pops.includes(c)||!!n.premOnly&&n.premOnly.includes(c))&&(!CITY[c].au||AU_SELLERS.includes(n.id));
const AU_SELLERS=['tsy','voc','spl','sgt','drz','cog','ntt','lvl'],sellsAt=(n,c)=>!!n.price&&(n.pops.includes(c)||!!n.premOnly&&n.premOnly.includes(c))&&(!CITY[c].au||AU_SELLERS.includes(n.id))&&!noTransitIn(c);
// A scenario city where nobody sells transit (Anchors Away: Tallinn's internet is across the water).
const noTransitIn=c=>{const x=S&&S.scn&&S.scn.rules&&S.scn.rules.noTransitIn;return Array.isArray(x)&&x.includes(c);};
/* China Telecomet's premium crossing into China (CN-Too) is sold where its border routes start: Hong Kong, and Moscow
(#195), where it rides the land route east and nothing else of theirs is on offer (premOnly). It costs the same
wherever you buy it: the Hong Kong price. */
@ -23,7 +25,7 @@ function ixCap(c){return ixLagF(c)*(S.myIx[c]?myFab(c).g*(myIxLive(c)?1:0):liveC
function ixSessions(c){
const s=new Set(); if(S.ixp[c]===undefined)return s;
for(const id of ixMembers(c)){const n=NET[id];
if(S.peers[id+'@'+c]&&!snub(id,c)&&!(isRemote(c)&&noRemote(id))&&!mpDown(id,c))s.add(id);
if(S.peers[id+'@'+c]&&!snub(id,c)&&!(isRemote(c)&&noRemote(id)))s.add(id);
else if(S.rs[c]&&n.pol==='open'&&ppol()==='open')s.add(id);
else if(S.myIx[c]&&(n.pol==='open'||n.pol==='selective'))s.add(id);}
return s;

View file

@ -0,0 +1,44 @@
/* ---------- Is a PNI worth it? (#175, #172) ----------
How you reach each network today, and what a PNI at one POP would take over: the traffic your users there send
to that network over transit, an exchange or a PNI elsewhere, priced with the real billing functions. Information
only: nothing here changes routing or billing. Built once per routing result (R.fl), not per row. */
const PNI_HOT=0.8;
let PNIX=null;
function pniIdx(){if(PNIX&&PNIX.R===R)return PNIX;
const ix={},pn={};
for(const c in S.ixp){const nm=ixName(c);for(const id of ixSessions(c)){const a=ix[id]||(ix[id]=[]);if(!a.includes(nm))a.push(nm);}}
for(const p of S.pni)(pn[p.net]||(pn[p.net]=[])).push(p);
return PNIX={R,fl:{},ix,pn};}
// One POP's flows by network, added up the first time that POP is asked about.
function pniFlows(c){const X=pniIdx();let m=X.fl[c];if(m)return m;m=X.fl[c]={};
for(const f of R.fl||[]){if(f.junk||f.c!==c)continue;let o=m[f.n];if(!o)o=m[f.n]={t:0,ix:0,p:0,h:0,u:0,T:{},I:{}};
o.u+=f.rem;o.t+=f.gt;o.ix+=f.gi;o.p+=f.gp;o.h+=f.gh;if(f.gt)o.T[f.ti]=(o.T[f.ti]||0)+f.gt;if(f.gi)o.I[f.ii]=(o.I[f.ii]||0)+f.gi;}
return m;}
// One status, most direct first. c: the POP you are looking at (null: anywhere).
function pniStat(id,c){const X=pniIdx(),ps=X.pn[id]||[],h=c?ps.find(p=>p.city===c):null;
if(h)return {k:'here',p:h};
const el=[...new Set(ps.filter(p=>pniOn(p)).map(p=>p.city))];if(el.length)return {k:'else',cities:el};
if(X.ix[id])return {k:'ix',ixs:X.ix[id]};
if(R.cone[id])return {k:'cone',by:NET[R.cone[id]]||coneVia(id)};
return {k:R.reachable[id]?'t':'none'};}
const pniList=a=>a.length>2?tr('pni_list.list_more',{list:a.slice(0,2).join(', '),n:a.length-2}):a.join(', ');
const PNI_ICON={here:'🔗',else:'🔗',ix:'🤝',cone:'🧺',t:'💸',none:'🚫'};
function pniChip(id,c){const s=pniStat(id,c);let t;
if(s.k==='here'){const p=s.p;t=!pniOn(p)?tr('pni_list.chip_pni_here_on_order'):tr('pni_list.chip_pni_here',{port:((p.n||1)>1?p.n+'×':'')+pniPN(p),p:pct(Math.min(1,(R.usePni[p.id]||0)/lagCap(pniG(p),p.n)))});}
else if(s.k==='else'){const l=pniList(s.cities.map(x=>CITY[x].name));t=c?tr('pni_list.chip_pni_elsewhere',{list:l}):tr('pni_list.chip_pni_at',{list:l});}
else if(s.k==='ix')t=tr('pni_list.chip_peers_at',{list:pniList(s.ixs)});
else if(s.k==='cone')t=s.by?tr('pni_list.chip_via_cone',{net:s.by.name}):tr('pni_list.chip_via_a_cone');
else t=s.k==='t'?tr('pni_list.chip_via_transit'):tr('pni_list.chip_not_reached');
return `<span class="pchip pk-${s.k}">${PNI_ICON[s.k]} ${esc(t)}</span>`;}
/* What a new PNI with `id` at `c` would carry and save per month. It takes your users' traffic there that now
leaves over transit, an exchange or a PNI elsewhere, or does not leave at all for want of room, up to its port; transit is billed on the 95th percentile,
so the saving is the bill now minus the bill with that much less (commits included). */
function pniVal(id,c){const o=pniFlows(c)[id]||{t:0,ix:0,p:0,h:0,u:0,T:{},I:{}},want=o.t+o.ix+o.p+o.u;
const lo=pniMin(id);let tier=-1;for(let i=lo;i<PORT.length;i++)if(portShown(i)){tier=i;if(PORT[i].g*0.8>=want)break;}
if(tier<0)tier=lo;const g=Math.min(want,PORT[tier].g),gt=Math.min(o.t,g);let saved=0;
if(gt>0)for(const tid in o.T){const t=S.transit.find(x=>x.id===tid);if(!t)continue;const q=R.p95[tid]??(R.useT[tid]||0),x=gt*o.T[tid]/o.t;saved+=transitMo(t,q)-transitMo(t,Math.max(0,q-x));}
const cost=pniMo({net:id,tier,n:1},g);
// Then what you drop today for want of room, then a hot exchange port's share.
const drop=Math.min(o.u,g-gt);let ixLeft=g-gt-drop,hot=0;for(const x in o.I){if(ixLeft<=0)break;const m=Math.min(ixLeft,o.I[x]);ixLeft-=m;const cp=S.ixp[x]!==undefined?ixCap(x):0;if(cp>0&&(R.useIx[x]||0)>=PNI_HOT*cp)hot+=m;}
const val=saved-cost,worth=g>=1&&(val>0||hot>=1||drop>=1);
return {...o,want,g,tier,saved,cost,val,hot,drop,worth};}

View file

@ -0,0 +1,30 @@
/* ---------- The peering desk ----------
Every exchange port brings peering requests. Nobody answers them by hand any more: your peering policy does.
Open accepts everyone, Selective accepts the networks worth peering with and quietly declines the rest, Closed
declines them all. Once a week the NOC log gets one folded line about it. */
const PPOL=['open','selective','closed'],ppol=()=>(S&&PPOL.includes(S.ppol))?S.ppol:'open';
const PPOL_N={open:N_('peering_desk.open_to_all'),selective:N_('common.selective'),closed:N_('common.closed')};
const PPOL_D={open:N_('peering_desk.open_desc'),selective:N_('peering_desk.selective_desc'),closed:N_('peering_desk.closed_desc')};
// How often someone asks, against Open: a selective or closed network gets fewer requests.
const PDESK_ASK={open:1,selective:0.7,closed:0.5},PDESK_IX=12;
const pdeskNew=w=>({w,a:0,d:0,ix:[]});
// Who is worth it: a real small network on the exchange, or a newcomer whose PeeringDB is up to date.
const pdeskWant=(p,net,fresh)=>p==='open'||(p==='selective'&&(!!net||fresh));
function peeringDeskDay(d){const w=Math.floor(d/7);let D=S.pdesk;
// A new week: last week's tally becomes one line in the NOC log.
if(!D||D.w!==w){if(D&&D.w<w&&(D.a||D.d)){S.pdeskRep={...D,p:ppol()};logNote(esc(pdeskLine(S.pdeskRep)),'',[],{a:'tab',v:'nets'});}D=S.pdesk=pdeskNew(w);}
const ixs=Object.keys(S.ixp),p=ppol();
if(!ixs.length||Math.random()>=Math.min(0.9,0.15*ixs.length)*PDESK_ASK[p])return;
const c=pick(ixs),real=ixMembers(c).filter(id=>{const n=NET[id];return !S.peers[id+'@'+c]&&!merged(id)&&n.type!=='t1'&&n.type!=='cdn'&&n.pol!=='paid'&&n.share<=0.006;});
const net=real.length&&Math.random()<0.4?pick(real):null,fresh=Math.random()>=0.6;
if(!pdeskWant(p,net,fresh)){D.d++;return;}
if(net)S.peers[net+'@'+c]=true;D.a++;if(!D.ix.includes(c)&&D.ix.length<PDESK_IX)D.ix.push(c);}
// "Peering desk: 7 new sessions at DE-KICKS and LINX, 3 declined (Selective)."
function pdeskLine(x){const pol=tr(PPOL_N[x.p]||PPOL_N.open);if(!x.a)return trn('peering_desk.n_requests_declined',x.d,{pol});
const nm=x.ix.slice(0,x.ix.length>4?3:4).map(ixName);if(x.ix.length>4)nm.push(trn('peering_desk.n_more_exchanges',x.ix.length-3));
let ix;try{ix=new Intl.ListFormat(LANG,{type:'conjunction'}).format(nm);}catch(e){ix=nm.join(', ');}
return x.d?trn('peering_desk.n_new_sessions_at_ix_declined',x.a,{ix,d:x.d,pol}):trn('peering_desk.n_new_sessions_at_ix',x.a,{ix,pol});}
// The policy picker, in the Networks tab.
function pdeskCard(){const p=ppol(),r=S.pdeskRep;
return `<div class="ibx ibxcard"><div class="nm">🤝 ${tr('common.peering_policy')}: ${tr(PPOL_N[p])}</div><div class="seg">${PPOL.map(x=>btn(tr(PPOL_N[x]),'peerPol',{p:x},p===x?'sm':'ghost sm')).join('')}</div>
<p class="meta">${tr(PPOL_D[p])}</p>${r&&r.w>=Math.floor(S.day/7)-1&&(r.a||r.d)?`<p class="meta">${esc(pdeskLine(r))}</p>`:''}</div>`;}

View file

@ -1,83 +0,0 @@
/* ---------- The peering inbox ----------
Every exchange port brings mail: peering requests from networks nobody has heard of, and sessions that drop
because someone's PeeringDB says 50 prefixes and they now send 400 (or a full table). Answer it, or hire an AI. */
const PPOL_N={open:N_('peering_inbox.open_to_all'),selective:N_('common.selective'),closed:N_('common.closed')},PPOL_D={open:N_('peering_inbox.everyone_who_asks_gets_a_session'),selective:N_('peering_inbox.fewer_requests_and_you_answer_them'),closed:N_('peering_inbox.nobody_asks_and_no_route_servers')};
const AI_MO=Math.round(20e6/12),INBOX_MAX=80,IBX_LEAKS=['nfx','ggl','fbk','amz','msf'];
const TINY=['Basement Broadband','Uncle Dave’s WISP','Fibre Fiesta','Raspberry Pi Transit','Vanity ASN Ltd','Moonshot Crypto Hosting','Minecraft Collective','Bob’s Bits','Homelab Heroes','Hackerspace Uplink','Tiny Tower Networks','Pigeon Post IP','Retro BBS Revival','Overkill Home Network','Two Guys and a Rack','Big Dreams Small Prefix','Mesh-y Business','Garden Shed Datacenter','Carrier-Grade NAT Fan Club','LIR in a Box','Yet Another VPN','Grandma’s Fibre Co-op','Seedbox Society','The /24 That Could'];
const REQ_SAY=[N_('peering_inbox.hi_we_would_like_to_peer'),N_('peering_inbox.dear_sir_or_madam_please_peer'),N_('peering_inbox.we_noticed_you_are_at_ix'),N_('peering_inbox.hello_please_find_attached_our'),N_('peering_inbox.peering_request_fifth_attempt_is'),N_('peering_inbox.hey_quick_one_can_you_peer'),N_('peering_inbox.greetings_we_are_a_fast_growing'),N_('peering_inbox.please_configure_sessions_with_us_at')];
const IBX_AI=[N_('peering_inbox.replied_to_a_peering_request_with'),N_('peering_inbox.signed_you_up_for_a_webinar'),N_('peering_inbox.opened_a_ticket_with_itself_to'),N_('peering_inbox.wrote_a_thousand_word_apology_to'),N_('peering_inbox.updated_your_peeringdb_record_your'),N_('peering_inbox.asked_netchill_s_peering_team_to')];
function ibx(){if(!S.inbox||typeof S.inbox!=='object')S.inbox={items:[],down:{},tiny:{},rep:0,bot:false,log:[],seq:0};return S.inbox;}
// Reputation nudges selective networks by up to 10% either way: worth caring about, never a wall.
// Your peering policy. Open: everyone who asks gets a session and the route servers work. Selective: fewer requests,
// you answer them yourself, and no route servers, so you go and ask networks at each exchange. Closed: nobody asks,
// and customers hear that you are hard to reach.
const PPOL=['open','selective','closed'],ppol=()=>(S&&S.inbox&&PPOL.includes(S.inbox.pol))?S.inbox.pol:'open';
const repMul=()=>1-clamp((S.inbox&&S.inbox.rep)||0,-10,5)*0.01;
const repName=r=>r>=1?tr('common.responsive'):r>=-2?tr('common.average'):r>=-6?tr('peering_inbox.mostly_ignores_email'):tr('common.black_hole');
const ibxOpen=()=>S.inbox?S.inbox.items.length:0,ibxUrgent=()=>S.inbox?S.inbox.items.filter(x=>x.k==='mp').length:0;
const mpDown=(id,c)=>{const t=S.inbox&&S.inbox.down[id+'@'+c];return !!t&&t>S.day;};
const ibxWho=x=>x.net?NET[x.net].name:x.nm,ibxAsn=x=>x.net?NET[x.net].asn:x.asn;
function ibxLog(m,a){const I=ibx();I.log.unshift({d:S.day,m,a:a||{}});I.log.length=Math.min(I.log.length,40);}
function inboxDay(d){if(!rule('inbox'))return;const I=ibx(),ixs=Object.keys(S.ixp);
// new peering requests: more exchange ports, more mail
if(ixs.length&&Math.random()<Math.min(0.9,0.15*ixs.length)*({open:1,selective:0.7,closed:0}[ppol()])){const c=pick(ixs),set=ixSessions(c);
const real=ixMembers(c).filter(id=>{const n=NET[id];return !set.has(id)&&!merged(id)&&n.type!=='t1'&&n.type!=='cdn'&&n.pol!=='paid'&&n.share<=0.006&&!I.items.some(x=>x.net===id&&x.ix===c);});
const it={id:++I.seq,k:'req',ix:c,day:d,stale:Math.random()<0.6,yrs:1+Math.floor(Math.random()*9),say:Math.floor(Math.random()*REQ_SAY.length)};
if(real.length&&Math.random()<0.4)it.net=pick(real);else{it.nm=pick(TINY);it.asn=Math.random()<0.05?64512+Math.floor(Math.random()*1000):200000+Math.floor(Math.random()*200000);}
I.items.push(it);if(ppol()==='open')ibxAnswer(it.id,'accept',true);}
if(ppol()==='closed')I.rep=Math.max(-6,I.rep-0.05);
// max-prefix: someone grew past what their PeeringDB says, or leaked a full table
const ses=Object.keys(S.peers).filter(k=>{const n=NET[k.split('@')[0]];return n&&n.type!=='cdn'&&n.type!=='t1'&&!mpDown(...k.split('@'));}).map(k=>({key:k,net:k.split('@')[0],ix:k.split('@')[1]}))
.concat(Object.keys(I.tiny).map(a=>({key:'t'+a,nm:I.tiny[a].nm,asn:+a,ix:I.tiny[a].ix,stale:I.tiny[a].stale})));
if(ses.length&&Math.random()<Math.min(0.15,0.004*ses.length)){const x=pick(ses);if(!I.items.some(y=>y.k==='mp'&&y.key===x.key)){
const lim=pick([10,20,50,100,200,500,1000]),leak=Math.random()<0.3,yrs=1+Math.floor(Math.random()*9);
I.items.push({id:++I.seq,k:'mp',key:x.key,net:x.net,nm:x.nm,asn:x.asn,ix:x.ix,day:d,lim,got:leak?940000+Math.floor(Math.random()*90000):Math.ceil(lim*(1.15+Math.random()*1.6)),leak,yrs});
// A session that blows its limit is down for at most a few weeks: the other side eventually notices too.
if(x.net){I.down[x.key]=d+20+Math.floor(Math.random()*20);toast(tr('peering_inbox.max_prefix_limit_hit_who_at',{who:esc(ibxWho(x)),ix:esc(ixName(x.ix))}),'bad',[{l:tr('common.inbox'),act:'inbox',args:{}}]);}}}
// unanswered mail: requests go stale and people start asking around about you
for(const x of I.items){if(x.k==='mp')I.rep-=0.05;else if(d-x.day===14)x.bump=1;}
// A max-prefix alert nobody answers resolves itself in the end: the other side raises it, or gives up.
I.items=I.items.filter(x=>x.k!=='mp'||(x.net?(I.down[x.key]||0)>d:d-x.day<=30));
const old=I.items.filter(x=>x.k==='req'&&d-x.day>30);if(old.length){I.rep-=0.25*old.length;I.items=I.items.filter(x=>!old.includes(x));
if(old.some(x=>x.net))toast(tr('peering_inbox.who_asked_a_mailing_list_whether',{who:esc(ibxWho(old.find(x=>x.net))),me:esc(S.name)}),'bad',[{l:tr('common.inbox'),act:'inbox',args:{}}]);}
while(I.items.length>INBOX_MAX){const i=I.items.findIndex(x=>x.k==='req');if(i<0)break;I.items.splice(i,1);I.rep-=0.5;}
I.rep=clamp(I.rep,-10,5);
if(I.bot)inboxBot();}
// Answer one item. a: accept | decline | raise | keep. Returns false when the item is gone.
function ibxAnswer(id,a,bot){const I=ibx(),i=I.items.findIndex(x=>x.id===id);if(i<0)return false;const x=I.items[i];I.items.splice(i,1);const who=ibxWho(x),ix=ixName(x.ix);
if(x.k==='req'){if(a==='accept'){if(x.net){if(S.ixp[x.ix]!==undefined)S.peers[x.net+'@'+x.ix]=true;}else if(Object.keys(I.tiny).length<200)I.tiny[x.asn]={nm:x.nm,ix:x.ix,stale:!!x.stale};I.rep+=0.3;}else I.rep+=0.2;}
else if(a==='raise'){delete I.down[x.key];if(x.leak){const n=pick(IBX_LEAKS);S.ev.leak={net:n,until:S.day+4};
addInc({type:'leak',ref:n,until:S.day+4,msg:tr('peering_inbox.who_at_ix_was_sending_a',{who,ix,net:NET[n].name}),cost:0});
if(!bot)toast(tr('peering_inbox.that_was_a_route_leak_who',{who:esc(who),n:x.got.toLocaleString()}),'bad');I.rep-=1;}
else{I.rep+=0.3;if(!bot)toast(tr('peering_inbox.session_with_who_is_back_up',{who:esc(who),n:Math.ceil(x.got*1.5).toLocaleString()}),'good');}}
else{const back=S.day+(x.leak?3:10)+Math.floor(Math.random()*(x.leak?8:21));if(x.net)I.down[x.key]=back;I.rep+=x.leak?0.3:0.1;
if(!bot)toast(x.leak?tr('peering_inbox.good_call_it_was_a_route',{who:esc(who)}):tr('peering_inbox.the_session_stays_down_who_will',{who:esc(who)}),x.leak?'good':'');}
I.rep=clamp(I.rep,-10,5);return true;}
// The AI agent clears the inbox every day. It is fast, polite and wrong about a third of the time.
function inboxBot(){const I=ibx();let acc=0,dec=0;
for(const x of I.items.slice()){const oops=Math.random()<0.3;
if(x.k==='req'){const want=!x.stale||!!x.net;const a=(want!==oops)?'accept':'decline';ibxAnswer(x.id,a,true);a==='accept'?acc++:dec++;if(oops&&a==='decline'&&x.net)ibxLog(N_('peering_inbox.declined_who_at_ix_not_a'),{who:ibxWho(x),ix:ixName(x.ix)});}
else{const a=(x.leak!==oops)?'keep':'raise';ibxAnswer(x.id,a,true);
if(a==='raise'&&x.leak)ibxLog(N_('peering_inbox.raised_the_max_prefix_limit_for'),{who:ibxWho(x),ix:ixName(x.ix),n:Math.ceil(x.got*1.5).toLocaleString()});
else if(a==='keep'&&!x.leak)ibxLog(N_('peering_inbox.kept_who_down_at_ix_for'),{who:ibxWho(x),ix:ixName(x.ix)});
else ibxLog(a==='raise'?N_('peering_inbox.raised_the_max_prefix_limit_for_7b4b'):N_('peering_inbox.kept_who_down_at_ix_it'),{who:ibxWho(x),ix:ixName(x.ix)});}}
if(acc||dec)ibxLog(N_('peering_inbox.answered_your_mail_a_accepted_d'),{a:acc,d:dec});
if(Math.random()<0.01){const ks=Object.keys(S.peers);if(ks.length){const k=pick(ks),[id,c]=k.split('@');delete S.peers[k];ibxLog(N_('peering_inbox.tidied_up_a_session_it_decided'),{who:NET[id].name,ix:ixName(c)});}}
if(Math.random()<0.08)ibxLog(pick(IBX_AI),{});}
function inboxModal(){const I=ibx(),items=I.items.slice().sort((a,b)=>(b.k==='mp')-(a.k==='mp')||b.day-a.day),reqs=items.filter(x=>x.k==='req').length,mps=items.length-reqs;
const age=x=>{const n=S.day-x.day;return n?trn('peering_inbox.n_day_ago',n):tr('common.today_4203');};
const pdb=x=>x.stale?trn('peering_inbox.peeringdb_last_updated_n_year_ago',x.yrs):tr('peering_inbox.peeringdb_updated_last_month');
const card=x=>x.k==='mp'?`<div class="ibx mp"><div class="nm">⚠️ ${tr('peering_inbox.max_prefix_limit_hit_who_at_5c56',{who:esc(ibxWho(x)),ix:esc(ixName(x.ix))})}</div>
<div class="meta">AS${ibxAsn(x)} · ${age(x)}</div><p class="note">${tr('peering_inbox.configured_lim_prefixes_received_got',{lim:x.lim.toLocaleString(),got:x.got.toLocaleString()})} ${trn('peering_inbox.their_peeringdb_says_lim_last',x.yrs,{lim:x.lim.toLocaleString()})}</p>
<div class="btns">${btn(tr('peering_inbox.raise_the_limit'),'inboxAct',{id:x.id,a:'raise'},'sm')}${btn(tr('peering_inbox.keep_it_down'),'inboxAct',{id:x.id,a:'keep'},'ghost sm')}</div></div>`
:`<div class="ibx"><div class="nm">${esc(ibxWho(x))} <span class="meta">AS${ibxAsn(x)}</span>${x.bump?` <span class="tag">${tr('common.bumped')}</span>`:''}</div><div class="meta">${esc(ixName(x.ix))} · ${age(x)} · ${pdb(x)}</div>
<p class="note">“${esc(tr(REQ_SAY[x.say]||REQ_SAY[0],{ix:ixName(x.ix)}))}”</p><div class="btns">${btn(tr('common.accept'),'inboxAct',{id:x.id,a:'accept'},'sm')}${btn(tr('common.decline'),'inboxAct',{id:x.id,a:'decline'},'ghost sm')}</div></div>`;
openModal(`<div style="display:flex;align-items:center"><div><div class="eyebrow">${tr('common.peering_inbox')}</div><h2 style="font-size:26px">📬 ${trn('peering_inbox.n_unanswered',items.length)}</h2></div><button class="x" data-act="closeModal" aria-label="${tr('common.close')}">×</button></div>
<p class="tagline">${tr('peering_inbox.every_exchange_port_brings_mail')}</p>
<div class="kv"><span>${tr('common.your_reputation')}</span><b>${repName(I.rep)}</b></div>
<div class="kv"><span>${tr('common.peering_policy')}</span><b>${tr(PPOL_N[ppol()])}</b></div><div class="seg">${PPOL.map(p=>btn(tr(PPOL_N[p]),'inboxPol',{p},ppol()===p?'sm':'ghost sm')).join('')}</div><p class="meta">${tr(PPOL_D[ppol()])}</p>
<div class="ibx ai">${I.bot?`<div class="nm">🤖 ${tr('peering_inbox.large_peering_model_is_answering')}</div><div class="meta">${tr('peering_inbox.price_year_it_never_sleeps_never',{price:fmt$(20e6)})}</div>
${I.log.length?`<pre class="term">${I.log.slice(0,8).map(e=>esc(tr('peering_inbox.day_d',{d:e.d})+': '+tr(e.m,e.a))).join('\n')}</pre>`:''}<div class="btns">${btn(tr('peering_inbox.fire_the_ai'),'inboxBot',{on:0},'ghost sm')}</div>`
:`<div class="nm">🤖 ${tr('peering_inbox.large_peering_model')}</div><div class="meta">${tr('peering_inbox.an_ai_agent_that_answers_every',{price:fmt$(20e6)})}</div><div class="btns">${btn(tr('peering_inbox.hire_it_mo_mo',{mo:fmt$(AI_MO)}),'inboxBot',{on:1},'aibtn sm',S.cash<AI_MO)}</div>`}</div>
${reqs>1||mps>1?`<div class="btns">${reqs>1?btn(tr('peering_inbox.accept_all_requests'),'inboxAll',{a:'accept'},'sm')+btn(tr('peering_inbox.decline_all_requests'),'inboxAll',{a:'decline'},'ghost sm'):''}${mps>1?btn(tr('peering_inbox.raise_all_max_prefix_limits'),'inboxRaiseAll',{},'sm'):''}</div>`:''}
${items.length?items.slice(0,40).map(card).join(''):`<p class="empty">${Object.keys(S.ixp).length?tr('peering_inbox.inbox_zero_enjoy_it_while_it'):tr('peering_inbox.no_mail_yet_buy_an_ix')}</p>`}`);}

View file

@ -15,7 +15,8 @@ function peerOk(id,via,city){
if(msfNope(id,city))return {ok:false,why:tr(MSF_NOPE[hstr(ixCity(city)+S.day)%MSF_NOPE.length])};
if(via==='ix'&&city&&isRemote(city)&&noRemote(id))return {ok:false,remote:true,why:REMOTE_WHY[hstr(id)%REMOTE_WHY.length]};
if(n.pol==='open')return {ok:true};
if(n.pol==='selective'){const need=Math.round((via==='pni'?n.minPni:n.minIx)*confBoost(id)*repMul());return dem>=need?{ok:true}:{ok:false,why:tr('sold_out.wants_need_gbps_of_traffic_from',{need,dem:dem.toFixed(1)})};}
// In the Cogentle Spat, Goggle's peering desk wants eight times the usual traffic first, so cheap Cogentle-only transit really costs you Goggle (playtest).
if(n.pol==='selective'){const need=Math.round((via==='pni'?n.minPni:n.minIx)*confBoost(id)*(id==='ggl'&&scnRule('spat')?8:1));return dem>=need?{ok:true}:{ok:false,why:tr('sold_out.wants_need_gbps_of_traffic_from',{need,dem:dem.toFixed(1)})};}
if(n.pol==='paid'&&paidFree(n))return via==='pni'?{ok:true,free:true}:{ok:false,why:tr('sold_out.peers_with_you_for_free_now')};
if(n.pol==='paid')return via==='pni'?{ok:true,fee:n.paidFee}:{ok:false,why:n.perG?tr('sold_out.sender_pays_a_paid_pni_only',{fee:fmt$(n.paidFee),g:fmt$(n.perG)}):tr('sold_out.paid_peering_only_over_a_pni')};
if(n.type!=='t1'){if(via!=='pni')return {ok:false,why:tr('sold_out.only_peers_over_pnis_and_only')};const need=Math.round(60*confBoost(id));return dem>=need||isTier2()?{ok:true}:{ok:false,why:tr('sold_out.wants_you_to_be_a_tier',{need,dem:dem.toFixed(1)})};}

View file

@ -20,10 +20,12 @@ function compute(){
const COMP=new Int32Array(NC).fill(-1);let NCOMP=0;for(const s of pops){const i=CIDX[s];if(COMP[i]>=0)continue;const D=SDi[i],k=NCOMP++;for(let x=0;x<NC;x++)if(D[x]<Infinity)COMP[x]=k;}
const E=[], ev=S.ev;
const depeer=ev.depeer>day||scnRule('spat'), leak=ev.leak&&ev.leak.until>day?ev.leak.net:null;
// Sender pays (Gangnam Style Peering): no carrier hands traffic to the Korean incumbents for you, only a paid PNI does.
const snd=scnRule('sender');
for(const t of S.transit){if(!popUp(t.city)||t.down>day||!liveN(t.city,t.site,t.n))continue;
// AS-path prepending (#96) moves part of the port to a last-resort exit of its own.
const cap=Math.min(liveCap(PORT[t.tier].g,t.city,t.site,t.n)*lagF(t),TRX&&TRX.cap[t.net]!==undefined?TRX.cap[t.net]:Infinity),pf=TRX&&TRX.prep[t.net]?PREPEND_F[TRX.prep[t.net]]:0;
const ex={k:'t',net:t.net,prem:premOn(t),pref:t.pref||'normal',lab:labOf(N_('common.net_transit'),'net',NET[t.net].name),id:t.id,city:t.city,cap:cap*(1-pf),used:0,rank:3,ok:n=>!(depeer&&t.net==='cog'&&n==='ggl')&&n!==leak};
const ex={k:'t',net:t.net,prem:premOn(t),pref:t.pref||'normal',lab:labOf(N_('common.net_transit'),'net',NET[t.net].name),id:t.id,city:t.city,cap:cap*(1-pf),used:0,rank:3,ok:n=>!(depeer&&t.net==='cog'&&n==='ggl')&&n!==leak&&!(snd&&NET[n].kr)};
E.push(ex);if(pf)E.push({...ex,cap:cap*pf,prep:true});}
// `nets`: every network ok() can say yes to, so it need not be asked about the other hundred.
for(const c in S.ixp){const ct=ixCity(c);if(!(popUp(ct)||remote.includes(ct))||(S.ev.ixdown&&S.ev.ixdown[c]>day)||!(S.myIx[c]?myIxLive(c):liveN(ct,(S.ixSite||{})[c],(S.ixn||{})[c])))continue;const set=ixSessions(c);R2.sessions+=set.size;
@ -51,7 +53,7 @@ function compute(){
const cacheNets=new Set(S.caches.filter(c=>popUp(c.city)).map(c=>c.net));
const viral=(ev.viral>day?1.25:1)*(ev.php&&ev.php>day?0.7:1);
// Every flow has the same shape and carries what routing asks about it again and again (nj: its network's index).
const NN=NETS.length,flows=[],flow=(c,ci,cn,j,rem,cache,junk,bz=false)=>{const n=NETS[j],f={c,n:n.id,rem,cache,junk,bz,ci,cn,ncn:!!n.cn,nj:j,nr:junk?NN:j};flows.push(f);return f;};
const NN=NETS.length,flows=[],flow=(c,ci,cn,j,rem,cache,junk,bz=false)=>{const n=NETS[j],f={c,n:n.id,rem,cache,junk,bz,ci,cn,ncn:!!n.cn,nj:j,nr:junk?NN:j,gt:0,gi:0,gp:0,gh:0,ti:null,ii:null};flows.push(f);return f;};
// Customer demand per city, added up in S.biz order (what filtering S.biz for each city would give).
const bizBw={};for(const b of S.biz){const T=BIZ_T[b.type];if(!T.l2&&!T.fiber&&(!T.event||eventLive(b))){const v=bizBw[b.city];bizBw[b.city]=(v===undefined?0:v)+b.bw;}}
// Traffic shares by network index, and their sums, for each share table (and with Russia's throttle).
@ -195,11 +197,14 @@ function compute(){
e.used+=amt;f.rem-=amt;
if(!f.junk){let ok=amt;const cf=f.cn,ce=e.cn,cn=f.ncn;
if(cf!==ce||(cf&&!cn)||(!cf&&cn&&e.k==='t')){const prem=(e.k==='t'&&e.prem)||(e.k==='p'&&e.pnc)||path.some(x=>x.links&&x.links.some(y=>y.premium));const loss=prem?0.03:(ev.gfw>day?0.35:0.2);R2.gfwLost+=amt*loss;R2.gfwCross+=amt;ok=amt*(1-loss);}
SRV[f.ci]+=ok;R2.served+=ok;if(f.bz)R2.bizSrv[f.c]+=ok;if(e.rank<=2)R2.peered+=ok;if(e.k==='t'){const m=R2.tNet[e.id]||(R2.tNet[e.id]={});m[f.n]=(m[f.n]||0)+ok;
SRV[f.ci]+=ok;R2.served+=ok;if(f.bz)R2.bizSrv[f.c]+=ok;if(e.rank<=2)R2.peered+=ok;if(e.k==='t'){const m=R2.tNet[e.id]||(R2.tNet[e.id]={});m[f.n]=(m[f.n]||0)+ok;}
// Backhaul to transit: users notice the round trip to the exit. Up to 20 ms (about 1,500 km) is free, then
// it gets worse, and past 50 ms broadband and internet services count as bad service (#…).
if(path.length){let ms=P.ms;if(ms===undefined){ms=0;for(const l of path)ms+=l.lat;P.ms=ms;}const rtt=2*ms;
if(rtt>LAT_OK){LATP[f.ci]+=ok*latLoss(rtt);if(!P.fg){P.fg=0;FARL.push(P,f.ci,e.ci);}P.fg+=ok;}}}R2.egT[e.k]=(R2.egT[e.k]||0)+ok;const ne=NEG[f.nj]||(NEG[f.nj]=R2.netEg[f.n]={c:0,p:0,ix:0,t:0});ne[e.k]+=ok;}
// it gets worse, and past 50 ms broadband and internet services count as bad service (#…). Under sender pays,
// Korean users notice any exit far away, transit or not, and much sooner.
if(path.length&&(e.k==='t'||snd&&CITIES[f.ci].kr)){let ms=P.ms;if(ms===undefined){ms=0;for(const l of path)ms+=l.lat;P.ms=ms;}const rtt=2*ms,kl=snd&&CITIES[f.ci].kr;
if(rtt>(kl?KR_LAT_OK:LAT_OK)){LATP[f.ci]+=ok*(kl?krLatLoss(rtt):latLoss(rtt));if(!P.fg){P.fg=0;FARL.push(P,f.ci,e.ci);}P.fg+=ok;}}R2.egT[e.k]=(R2.egT[e.k]||0)+ok;const ne=NEG[f.nj]||(NEG[f.nj]=R2.netEg[f.n]={c:0,p:0,ix:0,t:0});ne[e.k]+=ok;
// Where each flow left (the PNI list asks what a PNI here would take over, #175).
if(e.k==='t'){f.gt+=ok;f.ti=e.id;}else if(e.k==='ix'){f.gi+=ok;f.ii=e.id;}else if(e.k==='p'){if(e.net===f.n&&e.city===f.c)f.gh+=ok;else f.gp+=ok;}}
return amt;
};
// Shortest path first. With Auto-TE, whatever does not fit spills onto up to two alternate paths
@ -286,13 +291,13 @@ function compute(){
C.pni=S.pni.reduce((a,p)=>a+pniMo(p,R2.usePni[p.id]||0),0);
C.caches=S.caches.length*CACHE_MO;
C.loans=(S.loans||[]).reduce((a,l)=>a+(BANKS[l.bank].equity?0:l.model==='transit'?Math.round((C.transit||0)*(l.cut||0.3)):l.pay)+loanFees(l),0);
C.extras=(S.cnLic&&S.cnLic.state==='ok'?CN_JV_MO:0)+scrubMo()+Object.keys(S.pops).filter(ruCity).length*RU_BOX_MO+Object.values(S.pops).filter(p=>p.site2).length*SITE2_MO+(S.te?TE_MO:0)+(S.inbox&&S.inbox.bot?AI_MO:0)+(S.ops&&S.ops.intern?INTERN_MO:0);
C.extras=(S.cnLic&&S.cnLic.state==='ok'?CN_JV_MO:0)+scrubMo()+Object.keys(S.pops).filter(ruCity).length*RU_BOX_MO+Object.values(S.pops).filter(p=>p.site2).length*SITE2_MO+(S.te?TE_MO:0)+(S.ops&&S.ops.intern?INTERN_MO:0);
V.eyeballs=0;V.business=0;V.ix=0;V.grant=grantOn(R2)?GRANT_MO:0;
C.wholesale=0;C.levy=0;const lev=scnRule('levy');for(const c in S.pops){const sf=sfOf(R2,c),v=R2.cityEye[c]*sf*EYE_RATE*(CITY[c].arpu||1);V.eyeballs+=v;if(CITY[c].au){if(lev)C.levy+=v*AU_LEVY;else C.wholesale+=v*AU_WHOLESALE;}}
C.wholesale=0;C.levy=0;const lev=scnRule('levy');for(const c in S.pops){const sf=sfOf(R2,c),v=R2.cityEye[c]*sf*EYE_RATE*arpuOf(c);V.eyeballs+=v;if(CITY[c].au){if(lev)C.levy+=v*AU_LEVY;else C.wholesale+=v*AU_WHOLESALE;}}
const ids=linkIds();for(const b of S.biz){if(capPend(b))continue;const sf=BIZ_T[b.type].fiber?(fiberOk(b,ids)?1:0):BIZ_T[b.type].l2?clamp((R2.l2[b.id]||0)/b.bw,0,1):sfOf(R2,b.city);V.business+=b.bw*b.rate*Math.min(1,sf/0.95);}
for(const c in S.myIx)V.ix+=S.myIx[c].members.length*MYIX_FEE;
C.revshare=(S.loans||[]).reduce((a,l)=>a+(BANKS[l.bank].equity||l.bal>0?l.share||0:0),0)*(V.eyeballs+V.business+V.ix);
R2.costMo=Object.values(C).reduce((a,b)=>a+b,0);
R2.revMo=V.eyeballs+V.business+V.ix+V.grant;
R=R2;UI.hotMap=hotByCity();
Object.defineProperty(R2,'fl',{value:flows});R=R2;UI.hotMap=hotByCity();
}

View file

@ -6,7 +6,9 @@ function linkDown(l){return l.cut>S.day||(S.ev.runet>S.day&&ruCity(l.a)!==ruCity
function remoteCities(){return [...new Set(S.links.filter(l=>l.kind==='vxc').flatMap(l=>[l.a,l.b]))].filter(c=>!S.pops[c]);}
function nniUsed(c,prov){return S.links.filter(l=>l.kind==='vxc'&&l.prov===prov&&(l.a===c||l.b===c)).reduce((a,l)=>a+VXC[l.vt].g,0)+S.biz.filter(b=>BIZ_T[b.type].nni&&b.prov===prov&&b.city===c).reduce((a,b)=>a+b.bw,0);}
// Monthly price of one connection; compute() sums these, the connections overview lists them.
function transitMo(t,q){const n=t.n||1;return Math.max(q,PORT[t.tier].g*n*0.2)*transitPerG(NET[t.net],t.city,premOn(t))*S.priceMul+PORT[t.tier].tmo*n+(t.clean?cleanMo(t):0);}
function transitMo(t,q){const n=t.n||1;return Math.max(q,PORT[t.tier].g*n*0.2)*transitPerG(NET[t.net],t.city,premOn(t))*S.priceMul+PORT[t.tier].tmo*n+(t.clean?cleanMo(t):0)+krFee(t,q);}
// Sender pays (Gangnam Style Peering): on top of the price, every Gbps delivered into Korea (95th percentile).
const krFee=(t,q)=>CITY[t.city].kr&&scnRule('sender')?Math.round(q*KR_FEE):0;
function pniMo(p,use){if(!pniOn(p))return 0;return (p.g1?Math.round(PORT[0].pni/2):PORT[p.tier].pni)*(p.n||1)+(NET[p.net].pol==='paid'&&!paidFree(NET[p.net])?NET[p.net].paidFee:0)+(NET[p.net].perG?Math.round(NET[p.net].perG*use):0);}
function ixMo(c){return S.myIx[c]?Math.round(myFab(c).mo*((S.ixSite||{})[c]==='ab'?1.5:1)):ixPortMo(c,S.ixp[c])*((S.ixn||{})[c]||1)+dkAddonMo(c);}
function nniPort(c,prov){return (S.nni||[]).find(x=>x.city===c&&x.prov===prov);}

View file

@ -35,12 +35,10 @@ function sanitize(s){
{const H=s.hw&&typeof s.hw==='object'&&!Array.isArray(s.hw)?s.hw:{},o={};const sh=H.shock,lk=H.lock;
if(sh&&typeof sh==='object'&&own(HW_SHOCK,sh.k))o.shock={k:sh.k,until:num(sh.until,0),mul:clamp(num(sh.mul,1),1,2)};
if(lk&&typeof lk==='object')o.lock={until:num(lk.until,0),mul:clamp(num(lk.mul,1),1,HW_CAP)};s.hw=o;}
{const I=s.inbox&&typeof s.inbox==='object'&&!Array.isArray(s.inbox)?s.inbox:{},o=v=>v&&typeof v==='object'&&!Array.isArray(v)?v:{},str=(v,n)=>String(v==null?'':v).slice(0,n);
const items=(Array.isArray(I.items)?I.items:[]).filter(x=>x&&typeof x==='object'&&(x.k==='req'||x.k==='mp')&&typeof x.ix==='string'&&isIx(x.ix)&&(x.net===undefined||isNet(x.net))&&(x.net!==undefined||typeof x.nm==='string')).slice(0,INBOX_MAX).map(x=>({id:int(x.id,0,1e9,0),k:x.k,ix:x.ix,net:x.net,nm:x.net?undefined:str(x.nm,40),asn:x.net?undefined:int(x.asn,1,4294967294,64512),day:num(x.day,0),stale:!!x.stale,yrs:int(x.yrs,1,30,1),say:int(x.say,0,REQ_SAY.length-1,0),bump:x.bump?1:undefined,key:x.k==='mp'?str(x.key,80):undefined,lim:x.k==='mp'?int(x.lim,1,1e7,100):undefined,got:x.k==='mp'?int(x.got,1,1e7,100):undefined,leak:x.k==='mp'?!!x.leak:undefined}));
const down={};for(const [k,v] of Object.entries(o(I.down)))if(typeof k==='string'&&k.length<80)down[k]=num(v,0);
const tiny={};for(const [k,v] of Object.entries(o(I.tiny)).slice(0,200))if(/^\d{1,10}$/.test(k)&&v&&typeof v==='object'&&isIx(v.ix))tiny[k]={nm:str(v.nm,40),ix:v.ix,stale:!!v.stale};
const log=(Array.isArray(I.log)?I.log:[]).filter(e=>e&&typeof e==='object'&&typeof e.m==='string').slice(0,40).map(e=>{const a={};for(const [k,v] of Object.entries(o(e.a)).slice(0,6))a[str(k,12)]=typeof v==='number'?v:str(v,60);return {d:num(e.d,0),m:str(e.m,200),a};});
s.inbox={items,down,tiny,rep:clamp(num(I.rep,0),-10,5),bot:!!I.bot,pol:PPOL.includes(I.pol)?I.pol:'open',log,seq:Math.max(int(I.seq,0,1e9,0),...items.map(x=>x.id))};}
// 2.0 replaced the peering inbox with the peering desk: keep the policy, drop the mail, max-prefix state and the AI.
{const I=s.inbox&&typeof s.inbox==='object'&&!Array.isArray(s.inbox)?s.inbox:{},pol=s.ppol!==undefined?s.ppol:I.pol;s.ppol=PPOL.includes(pol)?pol:'open';delete s.inbox;
const wk=(x,rep)=>{if(!x||typeof x!=='object'||Array.isArray(x))return null;const o={w:int(x.w,0,1e7,0),a:int(x.a,0,1e5,0),d:int(x.d,0,1e5,0),ix:[...new Set((Array.isArray(x.ix)?x.ix:[]).filter(isIx))].slice(0,PDESK_IX)};if(rep)o.p=PPOL.includes(x.p)?x.p:'open';return o;};
s.pdesk=wk(s.pdesk);s.pdeskRep=wk(s.pdeskRep,1);}
{const sp={};if(s.spares&&typeof s.spares==='object')for(const k in s.spares)if(own(OPT,k)){const v=Math.floor(+s.spares[k]);if(v>0)sp[k]=Math.min(999,v);}s.spares=sp;}
s.caches=s.caches.filter(x=>x&&isCity(x.city)&&isNet(x.net)&&NET[x.net].cache).map(x=>(x.id=sid(x.id),x.site=x.site==='b'&&s.pops[x.city]&&s.pops[x.city].site2?'b':'a',x));
for(const c of Object.keys(s.ixp)){if(!isIx(c))delete s.ixp[c];else s.ixp[c]=tier(s.ixp[c]);}
@ -55,9 +53,9 @@ function sanitize(s){
for(const k of Object.keys(s.confReg))s.confReg[k]=s.confReg[k]==='sp'?'sp':!!s.confReg[k];
if(s.conf){const c=s.conf;if(typeof c!=='object'||!own(REG,c.reg))s.conf=null;else s.conf={until:num(c.until,0),reg:c.reg,name:String(c.name||'').slice(0,40),sp:!!c.sp};}
s.capDeal=s.capDeal&&typeof s.capDeal==='object'&&own(CAP_ROUTES,s.capDeal.c)?{at:num(s.capDeal.at,0),c:s.capDeal.c}:null;
s.inc=s.inc.filter(i=>i&&typeof i.type==='string').map(i=>(i.id=sid(i.id),i.until=num(i.until,s.day),i.cost=num(i.cost,0),i.msg=String(i.msg||'').slice(0,400),i.fix=i.fix==null?undefined:String(i.fix).slice(0,60),i));
s.inc=s.inc.filter(i=>i&&typeof i.type==='string').map(i=>(i.type==='maxpfx'&&(i.type='ixloop'),i.id=sid(i.id),i.until=num(i.until,s.day),i.cost=num(i.cost,0),i.msg=String(i.msg||'').slice(0,400),i.fix=i.fix==null?undefined:String(i.fix).slice(0,60),i));
s.loans=s.loans.filter(l=>l&&own(BANKS,l.bank));for(const l of s.loans){if(l.model!==undefined&&!['balloon','storm','transit','astro'].includes(l.model))delete l.model;for(const k of ['apr0','cut','share'])if(l[k]!==undefined&&!isFinite(+l[k]))delete l[k];if(!Array.isArray(l.covs))l.covs=[];l.covs=l.covs.filter(c=>own(COVS,c));}s.loanOffers=s.loanOffers.filter(l=>l&&own(BANKS,l.bank));
s.usedNames=[...new Set(s.usedNames.filter(x=>typeof x==='string'))];s.log=s.log.filter(e=>e&&typeof e.t==='string').slice(0,LOG_KEEP).map(e=>{const o=e.o&&typeof e.o==='object'&&LOG_OPEN.includes(e.o.a)?(e.o.a==='bank'||e.o.a==='inbox'?{a:e.o.a}:typeof e.o.v==='string'&&e.o.v.length<=64&&(e.o.a!=='city'||isCity(e.o.v))&&(e.o.a!=='tab'||LOG_TABS.includes(e.o.v))?{a:e.o.a,v:e.o.v}:null):null;
s.usedNames=[...new Set(s.usedNames.filter(x=>typeof x==='string'))];s.log=s.log.filter(e=>e&&typeof e.t==='string').slice(0,LOG_KEEP).map(e=>{const o=e.o&&typeof e.o==='object'&&e.o.a==='inbox'?{a:'tab',v:'nets'}:e&&e.o&&typeof e.o==='object'&&LOG_OPEN.includes(e.o.a)?(e.o.a==='bank'?{a:e.o.a}:typeof e.o.v==='string'&&e.o.v.length<=64&&(e.o.a!=='city'||isCity(e.o.v))&&(e.o.a!=='tab'||LOG_TABS.includes(e.o.v))?{a:e.o.a,v:e.o.v}:null):null;
return {id:typeof e.id==='string'&&e.id.length<=40?e.id:uid(),d:num(e.d,0),t:e.t.slice(0,600),h:typeof e.h==='string'?e.h.slice(0,200):'',k:LOG_KINDS.includes(e.k)?e.k:'',at:Number.isFinite(+e.at)?+e.at:0,o,n:int(e.n,1,9999,1)};});
// One scrubbing center became a list (#117): older saves carry theirs over.
if(!Array.isArray(s.scrubs))s.scrubs=s.scrubAt&&isCity(s.scrubAt)?[{city:s.scrubAt,tier:s.scrubTier}]:[];delete s.scrubAt;delete s.scrubTier;
@ -83,13 +81,14 @@ function sanitize(s){
three Normal presets, unchanged (its validated mods kept). So an edited or imported save cannot stop the clock or print money. */
{const r=s.rules&&typeof s.rules==='object'&&!Array.isArray(s.rules)?s.rules:{};
const m={mods:r.mods};s.rules=s.scn&&typeof s.scn==='object'?makeRules('oncall',m):s.mode==='sandbox'?makeRules('sandbox',{...m,chaos:r.chaos}):makeRules(NORMAL_PRESETS.includes(r.preset)?r.preset:'oncall',m);}
specSanitize(s);
if(s.te){if(typeof s.te!=='object')s.te=null;else{s.te.on=!!s.te.on;s.te.script=typeof s.te.script==='string'?s.te.script.slice(0,4000):'';}}
return s;}
function migrate(s){sanitize(s);
// Older saves have one contract per broker sale: fold a carrier's alien waves on one fiber into one contract.
{const one=new Map();s.biz=s.biz.filter(b=>{if(b.type!=='wwave')return true;const k=b.link+'|'+b.name,a=one.get(k);if(!a){one.set(k,b);return true;}
a.slots=(a.slots||0)+(b.slots||0);a.rate=(a.rate||0)+(b.rate||0);a.since=Math.min(a.since??0,b.since??0);a.mood=Math.min(a.mood??100,b.mood??100);a.folded=true;return false;});
for(const a of one.values())if(a.folded){delete a.folded;const l=s.links.find(x=>x.id===a.link);if(l)a.what=wwWhat(l,a.slots);}}if(s.scn&&s.scn.id==='stg'&&s.scn.rules&&typeof s.scn.rules==='object')s.scn.rules.local=true;
for(const a of one.values())if(a.folded){delete a.folded;const l=s.links.find(x=>x.id===a.link);if(l)a.what=wwWhat(l,a.slots);}}if(s.scn&&s.scn.id==='stg'&&s.scn.rules&&typeof s.scn.rules==='object')s.scn.rules.local=true;if(s.scn&&s.scn.id==='gangnam'&&s.scn.rules&&typeof s.scn.rules==='object')s.scn.rules.sender=true;
// A published weekly scenario keeps its file in the save: checked again here; a bad one plays on as the in-browser weekly.
if(s.scn&&typeof s.scn==='object'&&s.scn.wk!==undefined){const d=wsValid(s.scn.wk,s.scn.key);if(d){s.scn.wk=d;s.scn.home=d.city;s.scn.run=Number.isInteger(s.scn.run)&&s.scn.run>=0?s.scn.run:0;}else{delete s.scn.wk;delete s.scn.home;delete s.scn.run;}}
for(const b of [...s.biz,...s.offers])if(Array.isArray(b.reqs))b.reqs=b.reqs.filter(k=>!REQS[k]||!REQS[k].can||(isCity(b.city)&&(!b.city2||isCity(b.city2))&&REQS[k].can(b,s)));if(s.ltv!==2){for(const l of s.links)if(l.kind==='wave'&&l.tier>=3)l.tier=Math.min(LT.length-1,l.tier+1);s.ltv=2;}if(s.dk){s.dk.m=s.dk.m||{};s.dk.add=s.dk.add||{};s.dk.ret=s.dk.ret||{};s.dk.retUsed=s.dk.retUsed||{};}s.hist=s.hist||[];s.loans=s.loans||[];s.loanOffers=s.loanOffers||[];s.loanStrikes=s.loanStrikes||0;for(const l of s.links||[])if(!l.kind)l.kind='wave';

View file

@ -7,6 +7,8 @@ const colo=c=>{const q=CITY_PDB[c];return !q?1:q[0]===0?1.5:q[0]<=2?1.25:1;};
const popMo=c=>Math.round(POP_MO*colo(c));
function regionMult(c){const C=CITY[c];if(!C||C.cn)return 1;if(C.kr)return KR_TRANSIT;if(C.au)return AU_TRANSIT;if(C.tape)return 1.5;const base=C.reg==='AS'?2.5:C.reg==='AF'?2:C.reg==='OC'?1.8:C.reg==='SA'?1.6:1;return Math.round(base*txComp(c)*10)/10;}
// A network's own markup on top of that, where it is far from home (Glowball Sakura Lager in Asia and New Zealand).
// What a home pays, against the usual bill.
const arpuOf=c=>CITY[c].arpu||(CITY[c].kr&&scnRule('sender')?KR_ARPU:1);
const netMult=(n,c)=>regionMult(c)*((n&&n.far&&CITY[c]&&n.far[CITY[c].reg])||1);
const uaePair=(a,b)=>!!CITY[a].uae&&!!CITY[b].uae;
const rainPair=(a,b)=>!!(CITY[a].rain||CITY[b].rain);
@ -16,6 +18,8 @@ const borderPair=(a,b)=>CITY[a].reg==='AF'&&CITY[b].reg==='AF'&&CITY[a].cc!==CIT
// fiber costs a little more again because the incumbents own it.
const NULLARBOR=1.7,nullPair=(a,b)=>!!CITY[a].au&&!!CITY[b].au&&(a==='per')!==(b==='per');
const andesPair=(a,b)=>!!CITY[a].andes&&!!CITY[b].andes&&CITY[a].andes!==CITY[b].andes;
// A pair an anchor-prone cable serves (the Baltic): the map calls it overland, but the fibre lies on the seabed (Anchors Away).
let ANCHOR_P=null;const anchorPair=l=>(ANCHOR_P||(ANCHOR_P=new Set(CABLE_PAIRS.filter(p=>CAB[p.cid]&&CAB[p.cid].anchor).map(p=>edgeKey(p))))).has(edgeKey(l));
/* Overland between continents (Europe to the Middle East and Asia) crosses a dozen borders and as many
carriers, each taking a cut: in real life it costs ten times the subsea route or more (#40). */
const LAND_X=45,landX=(a,b)=>!isSub(a,b)&&CITY[a].reg!==CITY[b].reg;
@ -45,4 +49,4 @@ function waveRoute(a,b,mult,border){const cabs=cablesOk(a,b),sub=isSub(a,b);let
function viaSeg(a,b){const cabs=cablesOk(a,b),sub=isSub(a,b);if(!cabs.length)return landMult(a,b)>1?`<p class="note">${landWhy(a,b)}</p>`:'';const wr=waveRoute(a,b,1,false);
const opts=(sub?[]:[{v:'land',l:`${tr('common.overland')} <small>${landMult(a,b)>1?landMult(a,b)+'× · ':''}${(kmBetween(a,b)*1.3/200).toFixed(1)} ms</small>`}]).concat(cabs.map(c=>({v:c.cid,l:`${esc(CAB[c.cid].name)} <small>${CAB[c.cid].price}× · ${(c.km*(CAB[c.cid].lat||1)/200).toFixed(1)} ms${CAB[c.cid].age==='old'?' · '+tr('geography_and_latency.old_cuts_often'):''}</small>`})));
return `<h4 class="sub4">${tr('common.route')}</h4><div class="seg">${opts.map(o=>btn(o.l,'via',{v:o.v},wr&&wr.via===o.v?'pink':'ghost')).join('')}</div>${wr&&wr.cab?`<p class="note">${esc(CAB[wr.cab].blurb)} ${tr('geography_and_latency.all_your_waves_on_one_cable')}</p>`:''}`;}
function bestLat(a,b){const ls=S.links.filter(l=>!linkDown(l));const dist={[a]:0},done=new Set();for(;;){let u=null,ud=Infinity;for(const k in dist)if(!done.has(k)&&dist[k]<ud){u=k;ud=dist[k];}if(u===null)break;if(u===b)return ud;done.add(u);for(const l of ls){if(l.a!==u&&l.b!==u)continue;const v=l.a===u?l.b:l.a,nd=ud+linkLat(l)+0.05;if(nd<(dist[v]??Infinity))dist[v]=nd;}}return Infinity;}
function bestLat(a,b,f){const ls=S.links.filter(l=>!linkDown(l)&&(!f||f(l)));const dist={[a]:0},done=new Set();for(;;){let u=null,ud=Infinity;for(const k in dist)if(!done.has(k)&&dist[k]<ud){u=k;ud=dist[k];}if(u===null)break;if(u===b)return ud;done.add(u);for(const l of ls){if(l.a!==u&&l.b!==u)continue;const v=l.a===u?l.b:l.a,nd=ud+linkLat(l)+0.05;if(nd<(dist[v]??Infinity))dist[v]=nd;}}return Infinity;}

View file

@ -15,12 +15,13 @@ function portOk(c,i){const p=S.pops[c];return i<=RG[p?(p.rgen||0):0].maxP;}
function waveOk(a,b,i){return [a,b].every(c=>i<=RG[S.pops[c]?(S.pops[c].rgen||0):0].maxLT);}
function waveNeed(i){const g=RG.find(r=>r.maxLT>=i);return g?tr('sites_and_service.pn_routers',{pn:g.pn}):'?';}
function routerModels(c){const p=S.pops[c],g=p.rgen||0,rt=p.routers||1;
return `<div style="margin-top:6px">${RG.map((M,i)=>{if(i===g)return '';const why=modelFits(c,i),lk=M.lvl>lvl();
return `<div class="row"><span class="logo" style="--c:${M.badge?'#2C7A7B':'#FF4F9A'}">${M.badge||'R'+(M.cls+1)}</span><div class="grow"><div class="nm">${esc(M.n)} <span class="meta">${M.pn} · ${tr('sites_and_service.n_ports',{n:M.ports})} · ${fmtG(M.cap)} · ${tr('sites_and_service.boots_in_n_min',{n:M.boot})}${M.flaky?' · '+tr('common.crashes_more'):''}</span></div><div class="meta">${esc(M.blurb)}</div>${why?`<div class="why">${esc(why)}</div>`:''}</div>${btn(lk?tr('sites_and_service.level_n',{n:M.lvl}):tr('sites_and_service.swap_cost_mo_mo',{cost:fmt$(swapCost(c,i)),mo:fmt$(M.mo*rt)}),'upRouter',{city:c,g:i},'sm',lk||!!why||S.cash<swapCost(c,i)||p.rupDay===S.day)}</div>`;}).join('')}</div>`;}
return `<div style="margin-top:6px">${RG.map((M,i)=>{if(i===g)return '';const why=modelFits(c,i),lk=!techOk('rg',i,M.lvl);
return `<div class="row"><span class="logo" style="--c:${M.badge?'#2C7A7B':'#FF4F9A'}">${M.badge||'R'+(M.cls+1)}</span><div class="grow"><div class="nm">${esc(M.n)} <span class="meta">${M.pn} · ${tr('sites_and_service.n_ports',{n:M.ports})} · ${fmtG(M.cap)} · ${tr('sites_and_service.boots_in_n_min',{n:M.boot})}${M.flaky?' · '+tr('common.crashes_more'):''}</span></div><div class="meta">${esc(M.blurb)}</div>${why?`<div class="why">${esc(why)}</div>`:''}</div>${lk?demoBtn('rg',i,M.lvl,tr('sites_and_service.level_n',{n:M.lvl}),'sm'):btn(tr('sites_and_service.swap_cost_mo_mo',{cost:fmt$(swapCost(c,i)),mo:fmt$(M.mo*rt)}),'upRouter',{city:c,g:i},'sm',!!why||S.cash<swapCost(c,i)||p.rupDay===S.day)}</div>`;}).join('')}</div>`;}
function portNote(c){const p=S.pops[c];if(!p)return '';const g=p.rgen||0;return RG[g].maxP<PORT.length-1?`<p class="note" style="margin-top:0">${tr('sites_and_service.your_model_here_tops_out_at',{model:esc(RG[g].n),pn:RG[g].pn})}</p>`:'';}
// Service: what you deliver, times how it feels. Traffic backhauled far to transit is slow, and users notice.
const latSlow=c=>!!(R&&R.latF&&R.latF[c]<0.97&&R.latFar[c]);
function latNote(c){if(!latSlow(c))return '';const f=R.latFar[c];return `<div class="latwarn">🐢 ${tr('sites_and_service.p_of_city_s_traffic_is',{p:pct(Math.min(1,f.share)),city:esc(CITY[c].name),to:esc(CITY[f.to].name),ms:Math.round(f.ms)})}</div>`;}
function latNote(c){if(!latSlow(c))return '';const f=R.latFar[c];const v={p:pct(Math.min(1,f.share)),city:esc(CITY[c].name),to:esc(CITY[f.to].name),ms:Math.round(f.ms)};return `<div class="latwarn">🐢 ${CITY[c].kr&&scnRule('sender')?tr('sites_and_service.p_of_city_s_traffic_comes_from_kr',v):tr('sites_and_service.p_of_city_s_traffic_is',v)}</div>`;}
const LAT_OK=20,LAT_BAD=50,latLoss=rtt=>rtt<=LAT_OK?0:rtt<=LAT_BAD?0.2*(rtt-LAT_OK)/(LAT_BAD-LAT_OK):0.5;
const krLatLoss=rtt=>rtt<=KR_LAT_OK?0:rtt<=KR_LAT_BAD?0.25*(rtt-KR_LAT_OK)/(KR_LAT_BAD-KR_LAT_OK):0.5;
function sfOf(r,c){const d=r.cityDem[c]||0;return d<=1e-6?1:clamp(r.citySrv[c]/d,0,1)*((r.latF&&r.latF[c])??1);}

View file

@ -1,4 +1,6 @@
function fireFailure(){
// Anchors Away (Baltic): a link on an anchor-prone cable, or on a pair one serves (the map calls those overland).
const anchorProne=l=>!!(l.cable&&CAB[l.cable]&&CAB[l.cable].anchor)||anchorPair(l);
function fireFailure(only){
const opts=[];
const live=S.links.filter(l=>l.kind!=='vxc'&&!linkDown(l));const fabsUsed=[...new Set(S.links.filter(l=>l.kind==='vxc').map(l=>l.prov))];
if(live.length){opts.push(['cut',2+Math.min(6,live.length/2)]);}
@ -17,7 +19,8 @@ function fireFailure(){
if(!opts.length)return;
let tot=opts.reduce((a,o)=>a+o[1],0),r=Math.random()*tot,type=opts[0][0];
for(const o of opts){r-=o[1];if(r<=0){type=o[0];break;}}
if(type==='funny'){const f=['oops','cleaner','harmless','harmless','harmless','ac'];if(live.length)f.push('fatwave','fatwave','mtu','label','loss','loss');if(lagsN().length)f.push('lacp','lacp');if(R.demand>1)f.push('pmtud');if(Object.keys(S.ixp).length)f.push('maxpfx');if(S.transit.length)f.push('prepend');if(S.day>30)f.push('rpki');if(lit.length)f.push('roadmff');type=pick(f);}
if(only)type=only;
if(type==='funny'){const f=['oops','cleaner','harmless','harmless','harmless','ac'];if(live.length)f.push('fatwave','fatwave','mtu','label','loss','loss');if(lagsN().length)f.push('lacp','lacp');if(R.demand>1)f.push('pmtud');if(S.transit.length)f.push('prepend');if(S.day>30)f.push('rpki');if(lit.length)f.push('roadmff');type=pick(f);}
const before=R.served;
if(type==='harmless'){const m=pick(HARMLESS);S.stats.incidents++;S.stats.survived++;toast(`<b>${m[0]}</b><br>${m[1]}`,'goal');sfx('alert');return;}
if(type==='ring'){const cs=Object.keys(S.pops).filter(c=>S.pops[c].site2),c=pick(cs),pp=S.pops[c],dur=2+Math.floor(Math.random()*3);pp.ringcut=S.day+dur;
@ -64,9 +67,6 @@ function fireFailure(){
pp.down=Math.max(pp.down||0,S.day+1);
const msg=type==='cleaner'?tr('failures.the_cleaner_at_dc_unplugged_your',{dc:siteName(c,'a')}):pick([tr('failures.your_on_call_engineer_typed_clear',{city:C}),tr('failures.an_intern_pushed_an_acl_in',{city:C}),tr('failures.someone_ran_reload_on_the_city',{city:C}),tr('failures.a_config_template_rendered_router_id',{city:C}),tr('failures.someone_committed_a_config_in_city',{city:C}),tr('failures.someone_deployed_to_city_on_a',{city:C}),tr('failures.a_cosmic_ray_flipped_a_bit',{city:C}),tr('failures.an_automation_script_in_city_ran',{city:C})]);
addInc({type,ref:c,until:pp.down,msg:msg+(type==='oops'&&(pp.routers||1)>=2?' '+tr('failures.automation_pushed_it_to_every_router'):''),cost:1500,fix:type==='oops'?tr('failures.roll_back_the_config'):tr('failures.hide_the_vacuum')});
}else if(type==='maxpfx'){
const c=pick(Object.keys(S.ixp));S.ev.ixdown=S.ev.ixdown||{};S.ev.ixdown[c]=Math.max(S.ev.ixdown[c]||0,S.day+1+Math.floor(Math.random()*2));
addInc({type,ref:c,until:S.ev.ixdown[c],msg:ixNamesCity(c)?tr('failures.a_member_at_ix_leaked_the',{ix:ixName(c)}):tr('failures.a_member_at_ix_leaked_the_5563',{ix:ixName(c),city:CITY[ixCity(c)].name}),cost:0});
}else if(type==='prepend'){
const t=pick(S.transit);t.down=Math.max(t.down||0,S.day+2);addInc({type,ref:t.id,until:t.down,msg:tr('failures.net_fat_fingered_a_route_map',{net:NET[t.net].name,n:30+Math.floor(Math.random()*60),city:CITY[t.city].name}),cost:0});
}else if(type==='rpki'){
@ -79,8 +79,8 @@ function fireFailure(){
const l=pick(lit),A=CITY[l.a].name,B=CITY[l.b].name,o=pick(l.ch),dur=l.spares?1:4;l.chFail={n:1,o,until:S.day+dur};
addInc({type,ref:l.id,until:S.day+dur,msg:pick([tr('failures.a_optic_on_a_b_overheated',{optic:OPT[o].n,a:A,b:B}),tr('failures.the_laser_in_a_optic_on',{optic:OPT[o].n,a:A,b:B}),tr('failures.a_optic_on_a_b_started',{optic:OPT[o].n,a:A,b:B})])+(l.spares?' '+tr('failures.swapped_from_your_spares_kit_by'):''),cost:l.spares?0:OPT[o].cost,fix:tr('failures.buy_a_replacement')});
}else if(type==='cut'){
const mon=Math.floor((S.day%365)/30.42),monsoon=mon>=5&&mon<=8,tw=x=>x.sub&&(x.a==='tpe'||x.b==='tpe'||(x.cable&&CAB[x.cable].anchor)),vn=x=>x.sub&&(x.a==='sgn'||x.b==='sgn'),inl=x=>!x.sub&&(CITY[x.a].india||CITY[x.b].india);
const l=pick(live.flatMap(x=>{const w=(x.cable&&CAB[x.cable].age==='old'?3:1)*(x.cable&&CAB[x.cable].fragile?3:1)*(tw(x)?4*(scnRule('anchors')?3:1):1)*(scnRule('sharks')&&x.sub?2:1)*(vn(x)?3:1)*(!x.sub&&andesPair(x.a,x.b)?4:1)*(monsoon&&inl(x)?3:1)*(x.sub&&(x.a==='oos'||x.b==='oos')?3:1);return Array(w).fill(x);})),dur=10+Math.floor(Math.random()*8),trc=l.trench||l.id,hit=S.links.filter(x=>(x.trench||x.id)===trc);hit.forEach(x=>x.cut=Math.max(x.cut||0,S.day+dur));
const mon=Math.floor((S.day%365)/30.42),monsoon=mon>=5&&mon<=8,tw=x=>(x.sub&&(x.a==='tpe'||x.b==='tpe'||(x.cable&&CAB[x.cable].anchor)))||(scnRule('anchors')&&anchorProne(x)),vn=x=>x.sub&&(x.a==='sgn'||x.b==='sgn'),inl=x=>!x.sub&&(CITY[x.a].india||CITY[x.b].india);
const pool=only&&scnRule('anchors')?live.filter(anchorProne):live;if(!pool.length)return;const l=pick(pool.flatMap(x=>{const w=(x.cable&&CAB[x.cable].age==='old'?3:1)*(x.cable&&CAB[x.cable].fragile?3:1)*(tw(x)?4*(scnRule('anchors')?3:1):1)*(scnRule('sharks')&&x.sub?2:1)*(vn(x)?3:1)*(!x.sub&&andesPair(x.a,x.b)?4:1)*(monsoon&&inl(x)?3:1)*(x.sub&&(x.a==='oos'||x.b==='oos')?3:1);return Array(w).fill(x);})),dur=10+Math.floor(Math.random()*8),trc=l.trench||l.id,hit=S.links.filter(x=>(x.trench||x.id)===trc);hit.forEach(x=>x.cut=Math.max(x.cut||0,S.day+dur));
const A=CITY[l.a].name,B=CITY[l.b].name,au=CITY[l.a].au&&CITY[l.b].au,auSummer=mon>=11||mon<=1;
const en=l.sub&&(CITY[l.a].au||CITY[l.b].au)&&!(l.cable&&CAB[l.cable].fragile)&&Math.random()<0.35?pick([N_('failures.box_jellyfish_season_at_the_a'),N_('failures.a_great_white_took_an_interest')]):l.cable&&CAB[l.cable].fragile&&Math.random()<0.8?pick([N_('failures.your_a_b_cable_is_cut'),N_('failures.a_b_is_down_same_cable')]):!l.sub&&CITY[l.a].land==='nzs'&&CITY[l.b].land==='nzs'&&Math.random()<0.75?pick([N_('failures.a_kea_pulled_the_rubber_seals'),N_('failures.the_sandflies_drove_your_splicing'),N_('failures.a_farmer_s_post_hole_digger')]):l.cable==='cook'&&Math.random()<0.6?N_('failures.a_ferry_dropped_anchor_in_cook'):!l.sub&&au&&Math.random()<0.75?pick([N_('failures.a_sulphur_crested_cockatoo_chewed'),N_('failures.a_kangaroo_hit_the_fiber_hut'),N_('failures.thieves_dug_up_your_a_b'),N_('failures.a_kilometre_of_copper_went_missing'),N_('failures.a_backhoe_putting_in_a_new'),N_('failures.the_emus_won_again_a_mob'),N_('failures.a_kangaroo_boxed_your_field_tech'),N_('failures.a_drop_bear_fell_on_the'),N_('failures.an_eastern_brown_snake_moved_into'),...((S.day%365)/30.42>=8&&(S.day%365)/30.42<11?[N_('failures.magpie_swooping_season_the_field')]:[]),...(auSummer?[N_('failures.bushfire_season_the_fiber_along_a')]:[]),...(nullPair(l.a,l.b)?[N_('failures.your_a_b_fiber_broke_somewhere')]:[])]):l.sub&&(l.a==='bda'||l.b==='bda')&&Math.random()<0.7?pick([N_('failures.your_a_b_cable_went_quiet'),N_('failures.the_repair_ship_s_compass_spun')]):l.sub&&(l.a==='tbu'||l.b==='tbu')&&Math.random()<0.7?pick([N_('failures.an_undersea_volcano_erupted_next_to'),N_('failures.the_seabed_off_tonga_slid_down')]):vn(l)&&Math.random()<0.8?pick([N_('failures.another_of_vietnam_s_subsea_cables'),N_('failures.your_a_b_cable_broke_in')]):!l.sub&&(l.a==='drw'||l.b==='drw')&&Math.random()<0.7?pick([N_('failures.a_crocodile_took_a_bite_out'),N_('failures.termites_ate_the_duct_on_a')]):tw(l)&&Math.random()<0.8?pick([N_('failures.a_cargo_ship_forgot_to_raise'),N_('failures.another_anchor_another_cut_your_a'),N_('failures.a_fishing_boat_with_an_unusually')]):l.sub&&(l.a==='oos'||l.b==='oos')&&Math.random()<0.8?pick([N_('failures.a_trawler_off_ostend_dragged_its'),N_('failures.a_wind_farm_service_vessel_dropped')]):!l.sub&&(CITY[l.a].ca||CITY[l.b].ca)&&Math.random()<0.4?pick([N_('failures.a_beaver_chewed_through_your_a'),N_('failures.your_a_b_fiber_is_down'),N_('failures.frost_heave_cracked_the_duct_on')]):!l.sub&&andesPair(l.a,l.b)?pick([N_('failures.a_landslide_in_the_andes_buried'),N_('failures.snow_closed_the_mountain_pass_and'),N_('failures.an_earthquake_shook_your_a_b'),N_('failures.a_llama_herd_trampled_the_fiber')]):!l.sub&&(CITY[l.a].india||CITY[l.b].india)?pick([N_('failures.road_widening_near_a_cut_your'),N_('failures.the_monsoon_flooded_a_manhole_on'),N_('failures.a_digger_found_your_a_b')]):l.sub?pick([N_('failures.a_curious_shark_bit_your_subsea'),N_('failures.a_ship_dragged_its_anchor_across'),N_('failures.an_undersea_landslide_snapped_a_b')]):pick([N_('failures.a_backhoe_found_your_fiber_between'),N_('failures.squirrels_chewed_through_a_b_they'),N_('failures.road_works_cut_a_b_nobody')]);
addInc({type,ref:trc,until:S.day+dur,msg:tr(en,{a:A,b:B})+(hit.length>1?' '+tr('failures.all_n_links_in_that_trench',{n:hit.length}):''),cost:Math.max(4000,Math.round(hit.reduce((a,x)=>a+x.mo,0)*0.5))},en);
@ -166,13 +166,14 @@ function ddosAttack(recompute=true){const type='ddos',fl=scnRule('ddos');ddosExp
sfx('alert');}
// When an attack is over: was it held? Held means the city under attack got at least 97% of its traffic every day.
function ddosDone(a){if(!a||a.done)return;a.done=1;if(a.worst===undefined&&S.pops[a.city])a.worst=ddosSf(a);const ok=(a.worst===undefined?1:a.worst)>=0.97;
if(ok){S.stats.ddosOk=(S.stats.ddosOk||0)+1;if(a.gbps>=1000)S.stats.ddosOkBig=(S.stats.ddosOkBig||0)+1;}else S.stats.ddosLost=(S.stats.ddosLost||0)+1;
// In Flood Season a terabit flood counts only when scrubbing or Flowspec took it: spare exits held some by luck (playtest).
if(ok){S.stats.ddosOk=(S.stats.ddosOk||0)+1;if(a.gbps>=1000&&(!scnRule('ddos')||hasScrub()||(DDOS_VEC[a.vec]&&DDOS_VEC[a.vec].fs&&fsAt(a.city))))S.stats.ddosOkBig=(S.stats.ddosOkBig||0)+1;}else S.stats.ddosLost=(S.stats.ddosLost||0)+1;
if(scnRule('ddos')){const w=tr(FLOOD_WHO.includes(a.who)?a.who:FLOOD_WHO[0]),who=esc(w.charAt(0).toUpperCase()+w.slice(1));toast(ok?tr('failures.flood_held_g_who_gave_up',{g:fmtG(a.gbps),who}):tr('failures.that_one_got_through_g_city',{g:fmtG(a.gbps),city:esc(CITY[a.city]?CITY[a.city].name:tr('common.your_network')),p:pct(a.worst||0),who:esc(w)}),ok?'goal':'bad');}}
// Flood Season: 3 to 7 days apart as before, shrinking with age, level and gamers only when attacks are spicy.
const floodGap=()=>!ddosSpicy()?3+Math.floor(Math.random()*5):Math.max(0.05,(3+Math.random()*5)/(Math.sqrt(1+S.day/180)*(1+gamingCount()/10+Math.max(0,(S.lvl||1)-1)/12)));
const FLOOD_WHO=[N_('failures.a_botnet_of_40_000_smart'),N_('failures.every_unpatched_baby_monitor_in'),N_('failures.a_gaming_clan_that_lost_one'),N_('failures.a_fridge_that_achieved_sentience_and'),N_('failures.a_crypto_bro_shorting_your_stock'),N_('failures.a_teenager_with_a_stolen_credit'),N_('failures.a_rival_isp_s_stress_test'),N_('failures.ten_thousand_smart_light_bulbs'),N_('failures.a_printer_just_one_printer_nobody'),N_('failures.a_botnet_run_from_a_cloud'),N_('failures.somebody_who_did_not_like_your'),N_('failures.the_internet_connected_kettles_of_a')];
function incTitle(t){return {ring:tr('failures.metro_ring_cut'),site:tr('common.site_outage'),cut:tr('common.fiber_cut'),crash:tr('common.router_crash'),power:tr('common.power_outage'),transit:tr('common.upstream_outage'),ixloop:tr('common.ix_meltdown'),leak:tr('common.route_leak'),ddos:tr('common.ddos_attack'),fabric:tr('common.fabric_outage'),depeer:tr('common.peering_spat'),fatwave:tr('failures.fat_fingered_wave'),label:tr('failures.patch_panel_mishap'),mtu:tr('common.mtu_mismatch'),krroute:tr('failures.rerouted_via_hong_kong'),ctrlplane:tr('failures.control_plane_meltdown'),lacp:tr('common.lacp_trouble'),loss:tr('common.packet_loss'),pmtud:tr('failures.pmtud_black_hole'),oops:tr('common.oops'),cleaner:tr('common.vacuum_incident'),maxpfx:tr('failures.max_prefix_meltdown'),prepend:tr('common.prepend_ageddon'),rpki:tr('common.rpki_invalid'),amp:tr('common.amplifier_failure'),roadmff:tr('failures.fat_fingered_roadm'),optic:tr('common.dead_optic'),maint:tr('common.maintenance_window_3a92'),ac:tr('common.cooling_failure'),hijack:tr('common.bgp_hijack'),shutdown:tr('common.government_shutdown'),redsea:tr('failures.geopolitical_cable_cut')}[t]||tr('common.incident');}
const LINKCUT_TR=['cut','redsea'],LINKCUT_ID=['fatwave','label'],POPDOWN=['crash','power','oops','cleaner','maint','shutdown'],IXDOWN=['ixloop','maxpfx'],TDOWN=['transit','prepend'],LINKEQ=['mtu','amp','roadmff','optic'];
function incTitle(t){return {ring:tr('failures.metro_ring_cut'),site:tr('common.site_outage'),cut:tr('common.fiber_cut'),crash:tr('common.router_crash'),power:tr('common.power_outage'),transit:tr('common.upstream_outage'),ixloop:tr('common.ix_meltdown'),leak:tr('common.route_leak'),ddos:tr('common.ddos_attack'),fabric:tr('common.fabric_outage'),depeer:tr('common.peering_spat'),fatwave:tr('failures.fat_fingered_wave'),label:tr('failures.patch_panel_mishap'),mtu:tr('common.mtu_mismatch'),krroute:tr('failures.rerouted_via_hong_kong'),ctrlplane:tr('failures.control_plane_meltdown'),lacp:tr('common.lacp_trouble'),loss:tr('common.packet_loss'),pmtud:tr('failures.pmtud_black_hole'),oops:tr('common.oops'),cleaner:tr('common.vacuum_incident'),prepend:tr('common.prepend_ageddon'),rpki:tr('common.rpki_invalid'),amp:tr('common.amplifier_failure'),roadmff:tr('failures.fat_fingered_roadm'),optic:tr('common.dead_optic'),maint:tr('common.maintenance_window_3a92'),ac:tr('common.cooling_failure'),hijack:tr('common.bgp_hijack'),shutdown:tr('common.government_shutdown'),redsea:tr('failures.geopolitical_cable_cut')}[t]||tr('common.incident');}
const LINKCUT_TR=['cut','redsea'],LINKCUT_ID=['fatwave','label'],POPDOWN=['crash','power','oops','cleaner','maint','shutdown'],IXDOWN=['ixloop'],TDOWN=['transit','prepend'],LINKEQ=['mtu','amp','roadmff','optic'];
function remainUntil(pred){let u=0;for(const x of S.inc)if(pred(x))u=Math.max(u,x.until);return u;}
// Remove an incident, then restore each affected thing to whatever other incidents still hold it down.
function clearInc(i){

View file

@ -3,7 +3,7 @@ function dayTick(){
if(!S||S.lost||!rule('clock'))return; // no clock (puzzles): no days, no bills, nothing fires
S.day++;
const d=S.day;
dkTick(d);ixPriceWar(d);inboxDay(d);pniDay(d);mergerDay(d);
dkTick(d);ixPriceWar(d);peeringDeskDay(d);pniDay(d);mergerDay(d);
if(!S.phpDone&&d>45&&Math.random()<1/400)elephant();
if(R&&R.teMoved)S.stats.teMax=Math.max(S.stats.teMax||0,R.teMoved);
{const t1=!!S.won&&isTier1();if(S.t1Now&&!t1)toast(tr('day_tick.you_are_no_longer_tier_1',{why:t1Why()}),'bad');S.t1Now=t1;}
@ -11,7 +11,8 @@ function dayTick(){
for(const a of ddosAll(S,false))if(a.until>=d&&R&&S.pops[a.city])a.worst=Math.min(a.worst===undefined?1:a.worst,ddosSf(a));
ddosExpire();
ddosTick();
if(R&&R.demand>0)S.stats.clean=R.served/R.demand>=0.995?(S.stats.clean||0)+1:0;
// What the Great Firewall drops is not your outage: it alone kept Anchors Away's 99.5% out of reach (playtest).
if(R&&R.demand>0)S.stats.clean=(R.served+(R.gfwLost||0))/R.demand>=0.995?(S.stats.clean||0)+1:0;
if(S.scn&&S.scn.id==='redsea')S.stats.asiaRun=asiaG()>=RS_G?(S.stats.asiaRun||0)+1:0;
if(S.ev.php===d)toast(tr('day_tick.the_internet_is_back_half_of'),'good');
for(const k in S.peers){const [id,c]=k.split('@'),sn=snub(id,c);if(!sn)continue;delete S.peers[k];S.stats.depeered=(S.stats.depeered||0)+1;
@ -63,14 +64,17 @@ function dayTick(){
// Chaos (the rules) scales how often: calm waits about three times as long, spicy comes almost twice as often, none never.
let dirty=false;const cm=chaosMul();
if(cm&&d>=S.nextFail){dirty=true;fireFailure();const size=S.links.length+Object.keys(S.pops).length;S.nextFail=d+Math.round((Math.max(22,50-size*1.5)+Math.floor(Math.random()*25))*(scnRule('chaos')?0.5:1)/cm);}
// Anchors Away: on top of the usual failures, ships drag anchors over each Baltic seabed link (about three cuts a link-year).
if(cm&&d>45&&scnRule('anchors')){const n=S.links.filter(l=>l.kind!=='vxc'&&!linkDown(l)&&anchorProne(l)).length;if(n&&Math.random()<Math.min(5,+S.scn.rules.anchors||1)*n/365){dirty=true;fireFailure('cut');}}
if(cm&&d>=S.nextEvent){dirty=true;fireEvent();S.nextEvent=d+Math.round((45+Math.floor(Math.random()*45))/cm);}
if(dirty)compute();
opsDay(d);
// payday floaters
if(d%30===0){for(const c in S.pops){let v=(R.cityEye[c]*sfOf(R,c)*EYE_RATE)+S.biz.filter(b=>b.city===c).reduce((a,b)=>a+b.bw*b.rate,0);v=v-R.cityEye[c]*sfOf(R,c)*EYE_RATE*(1-(CITY[c].arpu||1));if(v>500)floater(CITY[c].x,CITY[c].y-30,'+'+fmt$(v),'#16A866');}sfx('coin');}
if(d%30===0){for(const c in S.pops){let v=(R.cityEye[c]*sfOf(R,c)*EYE_RATE)+S.biz.filter(b=>b.city===c).reduce((a,b)=>a+b.bw*b.rate,0);v=v-R.cityEye[c]*sfOf(R,c)*EYE_RATE*(1-arpuOf(c));if(v>500)floater(CITY[c].x,CITY[c].y-30,'+'+fmt$(v),'#16A866');}sfx('coin');}
checkGoals();
scnTick(d);
confTick(d);
specDay(d);
// money trouble
if(S.cash<0){S.neg++;if(S.neg===1)toast(tr('day_tick.you_are_in_the_red_cancel'),'bad');}
else S.neg=0;
@ -89,7 +93,10 @@ function spawnOffer(){
// Countries with thousands of ASNs (Brazil's provedores, US regionals) are full of small ISPs shopping for transit.
const dense=mine.filter(c=>(CITY_PDB[c]||[])[2]>=2000);if(lv>=2&&dense.length)types.push('isp');
const fabC=mine.filter(c=>FABS.some(f=>f.cities.includes(c)));if(lv>=2&&fabC.length){types.push('fabip','fabip');if(mine.length>=2)types.push('fabl2');}
// What your network can already serve calls too, at a lower weight and the smallest size (#187).
const sp=spots(),spT=[...new Set(sp.map(s=>s.t))],bq=charter()==='boutique';for(const x of spT){types.push(x);if(x==='hft'&&bq)types.push(x,x);}if(bq&&lv>=2)types.push('hft','hft');
const t=pick(types),T=BIZ_T[t];
if(T.lv>lv&&spT.includes(t)){spawnSpot(t,pick(sp.filter(s=>s.t===t)));return;}
if(T.event||T.sdwan||T.fiber||T.mega){spawnSpecial(t);return;}
if(T.nni){const city=pick(fabC),prov=pick(FABS.filter(f=>f.cities.includes(city))).id,bw=pick(T.opts),others=mine.filter(c=>c!==city),city2=T.l2&&others.length?pick(others):null;if(T.l2&&!city2)return;
const base=pick(BIZ_N.filter(n=>!S.usedNames.includes(n)).concat(BIZ_N)).replace(/ (Inc\.|Co\.|Ltd)$/,'');const name=tr('day_tick.name_via_fab',{name:base,fab:FAB[prov].name});useName(base);
@ -104,7 +111,7 @@ function spawnOffer(){
if(t==='provedor')city=pick(br);
if(t==='isp'&&dense.length&&Math.random()<0.5)city=pick(dense);
if(t==='hft'){const fin=['nyc','chi','lon','fra','tok','sin','hkg','ams','ash'],mf=mine.filter(c=>fin.includes(c));city=mf.length?pick(mf):pick(mine);city2=pick(fin.filter(c=>c!==city));}
let rate=T.l2?Math.round((150+kmBetween(city,city2)*0.08)*T.km):T.rate;
let rate=T.l2?Math.round((150+kmBetween(city,city2)*0.08)*T.km*(T.lat?latPay():1)):T.rate;
if(CITY[city].au&&!T.l2&&!T.fiber&&!T.event){rate=Math.round(rate*AU_ARPU);bw=Math.min(bw,pick(T.opts.slice(0,2)));}
if(T.div&&!reqCan('diverse',{city,city2}))return;
const reqs=T.div?['diverse']:T.lat?['lat']:[];if((t==='hyper'||t==='ai'||t==='gpu')&&Math.random()<0.4)reqs.push('metro');const pool=Object.keys(REQS).filter(k=>!reqs.includes(k)&&!REQS[k].only&&(!REQS[k].l2||T.l2)&&(!REQS[k].ip||!T.l2)&&reqCan(k,{city,city2}));

View file

@ -26,6 +26,8 @@ const BADGES=[
{id:'giants',i:'🏭',t:tr('badges.friend_of_giants'),d:tr('badges.hold_deals_at_3_different_ai'),r:'e',ok:()=>new Set(S.biz.filter(b=>BIZ_T[b.type]&&BIZ_T[b.type].mega).flatMap(b=>bCities(b))).size>=3},
{id:'landlord',i:'🧵',t:tr('common.trench_landlord'),d:tr('badges.lease_hundreds_of_fiber_pairs_to'),r:'e',ok:()=>S.biz.some(b=>b.type==='pairs')},
{id:'t1',i:'👑',t:tr('common.tier_1'),d:tr('badges.go_transit_free'),r:'e',ok:()=>!!S.won},
{id:'sol',i:'⚡',t:tr('specialist.speed_of_light'),d:tr('specialist.win_as_a_low_latency_boutique'),r:'e',ok:()=>!!S.solWon},
{id:'seat',i:'🚢',t:tr('specialist.part_owner_of_the_sea'),d:tr('specialist.take_a_seat_on_a_consortium'),r:'r',ok:()=>S.links.some(l=>l.seat)},
{id:'bait',i:'🎣',t:tr('common.shark_bait'),d:tr('badges.get_bitten_by_sharks_3_times'),r:'l',ok:()=>(st().sharks||0)>=3},
{id:'nines',i:'💎',t:tr('common.five_nines'),d:tr('badges.serve_99_5_of_demand_every'),r:'l',ok:()=>(st().clean||0)>=365},
{id:'fifty',i:'🗺️',t:tr('badges.everywhere_at_once'),d:tr('badges.have_pops_in_50_cities'),r:'l',ok:()=>Object.keys(S.pops).length>=50},

View file

@ -43,7 +43,7 @@ const ACT={
if(o.a==='city'&&isCity(o.v)){ACT.focusCity({city:o.v});return;}
if(o.a==='link'){if(S.links.some(l=>l.id===o.v)){ACT.selLink({id:o.v});return;}toast(tr('interface.that_link_is_gone_it_was'),'');return;}
if(o.a==='cust'){if(S.biz.some(b=>b.id===o.v)){ACT.custGo({id:o.v});return;}toast(tr('interface.that_customer_is_gone_the_contract'),'');return;}
if(o.a==='bank'){ACT.bank({});return;}if(o.a==='inbox'){ACT.inbox({});return;}if(o.a==='tab'&&LOG_TABS.includes(o.v))ACT.leftTab({t:o.v});},
if(o.a==='bank'){ACT.bank({});return;}if(o.a==='tab'&&LOG_TABS.includes(o.v))ACT.leftTab({t:o.v});},
logAll:()=>{UI.logAll=!UI.logAll;renderLeft();},
focusCity:({city})=>{selectCity(city);const C=CITY[city];cam.x=C.x;cam.y=C.y;cam.z=Math.max(cam.z,1.2);if(innerWidth<760)UI.leftOpen=false;renderLeft();},
selLink:({id})=>selectLink(id),

View file

@ -22,13 +22,7 @@ Object.assign(ACT,{
pniChase:({id})=>{const p=S.pni.find(x=>x.id===id);if(!p||(pniOn(p)&&!p.up))return;const r=Math.random();
if(r<0.15){if(p.up)p.up.ready=Math.max(S.day+1,p.up.ready-30);else p.ready=Math.max(S.day+1,p.ready-30);toast(tr('sites_peering_caches.your_account_manager_found_the_order'),'good');}
else toast(pick([tr('sites_peering_caches.it_is_with_the_provisioning_team'),tr('sites_peering_caches.we_are_waiting_on_the_colo'),tr('sites_peering_caches.your_ticket_was_merged_into_another'),tr('sites_peering_caches.could_you_resend_the_loa_you'),tr('sites_peering_caches.your_account_manager_is_on_paternity')]));after();},
inbox:()=>{inboxModal();},
inboxAct:({id,a})=>{if(!['accept','decline','raise','keep'].includes(a))return;ibxAnswer(+id,a);after();inboxModal();},
inboxPol:({p})=>{if(!PPOL.includes(p))return;ibx().pol=p;after();inboxModal();},
inboxRaiseAll:()=>{const I=ibx(),mp=I.items.filter(x=>x.k==='mp');if(!mp.length)return;const leaks=mp.filter(x=>x.leak).length;for(const x of mp)ibxAnswer(x.id,'raise',true);
toast(leaks?trn('sites_peering_caches.raised_n_max_prefix_limits_one',leaks,{n:mp.length,k:leaks}):tr('sites_peering_caches.raised_n_max_prefix_limits_all',{n:mp.length}),leaks?'bad':'good');after();inboxModal();},
inboxAll:({a})=>{if(a!=='accept'&&a!=='decline')return;const I=ibx();for(const x of I.items.filter(x=>x.k==='req'))ibxAnswer(x.id,a,true);after();inboxModal();},
inboxBot:({on})=>{const I=ibx();if(+on){if(I.bot||!spend(AI_MO))return;I.bot=true;ibxLog(N_('sites_peering_caches.hello_i_am_large_peering_model'),{});toast(tr('sites_peering_caches.large_peering_model_is_hired_your',{price:fmt$(20e6)}),'good');}else{I.bot=false;toast(tr('sites_peering_caches.the_ai_is_gone_it_left'));}after();inboxModal();},
peerPol:({p})=>{if(!PPOL.includes(p))return;S.ppol=p;after();},
cancelPni:({id,ok})=>{if(!ok&&UI.confirm!==id){UI.confirm=id;renderPanel();return;}S.pni=S.pni.filter(p=>p.id!==id);UI.confirm=null;after();},
cache:({city,net})=>{const n=NET[net];if(!n||!n.cache||!S.pops[city])return;if((R.demTo[net]||0)<n.cache.min){toast(tr('sites_peering_caches.net_says_not_yet_send_them',{net:esc(n.name),min:n.cache.min}),'bad');sfx('err');return;}if(!portGate(city,1))return;
{const hv=S.caches.filter(x=>x.city===city&&x.net===net),nb=hv.filter(x=>x.site==='b').length;S.caches.push({id:uid(),city,net,site:S.pops[city].site2&&nb<hv.length-nb?'b':'a'});}toast(tr('sites_peering_caches.cache_installed_in_city_net_shipped',{cache:esc(n.cache.name),city:CITY[city].name,net:esc(n.name),mo:fmt$(CACHE_MO)}),'good');sfx('build');after();},

View file

@ -0,0 +1,6 @@
// The PNI list's filter, sort and folded groups (#175, #172): view state only, never saved.
Object.assign(ACT,{
pniFilter:({f})=>{UI.pniF=['all','t','worth','pni'].includes(f)?f:'all';listReset('pni');renderPanel();},
pniGrp:({g,o})=>{if(!PNI_GRP.includes(g))return;UI.pniOpen=UI.pniOpen||{};UI.pniOpen[g]=!!o;renderPanel();},
pniSort:()=>{UI.pniSort=UI.pniSort==='az'?'worth':'az';renderPanel();},
});

View file

@ -1,6 +1,6 @@
Object.assign(ACT,{
custGo:({id})=>{const b=S.biz.find(x=>x.id===id);if(!b)return;$('dash').hidden=true;ACT.focusCity({city:b.city});UI.tab='cust';renderPanel();},
listMore:({k})=>{if(k!=='conn'&&k!=='cust'&&k!=='nets')return;UI.listN=UI.listN||{};UI.listN[k]=listN(k)+LIST_PAGE;if(k==='nets'){renderLeft();return;}renderDash();},
listMore:({k})=>{if(k!=='conn'&&k!=='cust'&&k!=='nets'&&k!=='pni')return;UI.listN=UI.listN||{};UI.listN[k]=listN(k)+LIST_PAGE;if(k==='nets'){renderLeft();return;}if(k==='pni'){renderPanel();return;}renderDash();},
custF:({v})=>{UI.kf=UI.kf||{};UI.kf.f=v==='sad'?'sad':'';listReset('cust');renderDash();},
custCity:({v})=>{UI.kf=UI.kf||{};UI.kf.city=isCity(v)?v:'';listReset('cust');renderDash();},
custSort:({k})=>{if(!['mood','mo','name','city'].includes(k))return;listReset('cust');if(UI.custSort===k)UI.custDir=-(UI.custDir||1);else{UI.custSort=k;UI.custDir=k==='mo'?-1:1;}renderDash();},

View file

@ -6,7 +6,7 @@ Object.assign(ACT,{
addRouter:({city})=>{const p=S.pops[city];if(!p||(p.routers||1)>=RMAX)return;if(!spend(routerCost(p.rgen||0,p.routers||1)))return;p.routers=(p.routers||1)+1;floater(CITY[city].x,CITY[city].y-30,tr('common.router_added'),'#FF4F9A');after();},
models:()=>{UI.models=!UI.models;renderPanel();},
rmRouter:({city})=>{const p=S.pops[city];if(!p||(p.routers||1)<=1)return;if(portsUsed(city)>portsMax(city,undefined,p.routers-1)){toast(tr('routing_and_routers.unplug_something_first_used_ports',{used:fmtPorts(portsUsed(city)),max:portsMax(city,undefined,p.routers-1)}),'bad');sfx('err');return;}p.routers--;{const back=tradeIn(p.rgen||0,1);if(back>0){S.cash+=back;toast(tr('routing_and_routers.sold_a_model_on_ebuy_price',{model:esc(RG[p.rgen||0].n),price:fmt$(back)}),'good');}}after();},
upRouter:({city,g})=>{const p=S.pops[city];if(!p)return;g=g===undefined?mainRG(RG[p.rgen||0].cls+1):+g;if(!RG[g]||g===(p.rgen||0))return;{const why=modelFits(city,g);if(why){toast(tr('routing_and_routers.the_model_won_t_fit_why',{model:esc(RG[g].n),why:esc(why)}),'bad');sfx('err');return;}}if(RG[g].lvl>lvl()){toast(tr('routing_and_routers.model_unlocks_at_customer_level_lv',{model:esc(RG[g].n),lv:RG[g].lvl}),'bad');sfx('err');return;}
upRouter:({city,g})=>{const p=S.pops[city];if(!p)return;g=g===undefined?mainRG(RG[p.rgen||0].cls+1):+g;if(!RG[g]||g===(p.rgen||0))return;{const why=modelFits(city,g);if(why){toast(tr('routing_and_routers.the_model_won_t_fit_why',{model:esc(RG[g].n),why:esc(why)}),'bad');sfx('err');return;}}if(!techOk('rg',g,RG[g].lvl)){toast(tr('routing_and_routers.model_unlocks_at_customer_level_lv',{model:esc(RG[g].n),lv:RG[g].lvl}),'bad');sfx('err');return;}
const rt=p.routers||1,old=p.rgen||0;if(p.rupDay===S.day){toast(tr('routing_and_routers.the_new_routers_in_city_are',{city:CITY[city].name}),'bad');sfx('err');return;}const back=tradeIn(old,rt);if(!spend(swapCost(city,g)))return;p.rgen=g;p.rupDay=S.day;if(back>0)toast(tr('routing_and_routers.sold_the_old_model_on_ebuy',{model:esc(RG[old].n),price:fmt$(back)}),'good');
if(rt===1&&popIdle(city))toast(tr('routing_and_routers.new_router_in_city_swapped_before',{city:CITY[city].name}),'good');
else if(rt===1){const sl=slowBoot(city),dd=sl?3:1;p.down=Math.max(p.down||0,S.day+dd);addInc({type:'maint',ref:city,until:S.day+dd,msg:sl?tr('routing_and_routers.swapping_the_only_router_in_city',{city:CITY[city].name,model:RG[g].n,how:pick(SLOW_BOOT),n:dd}):tr('routing_and_routers.swapping_the_only_router_in_city_d5b5',{city:CITY[city].name,model:RG[g].n}),cost:0});toast(`<b>${tr('routing_and_routers.maintenance_window_in_city',{city:CITY[city].name})}</b><br>${sl?tr('routing_and_routers.one_router_and_this_one_takes',{n:dd}):tr('routing_and_routers.one_router_means_downtime_during_the')}`,'bad');}

View file

@ -0,0 +1,11 @@
Object.assign(ACT,{
demoAsk:({k,id})=>{const it=demoItem(k,id);if(!it||!demoCan(it.lvl)||demoAt(k,id)!==null)return;S.demo=S.demo||{};const at=S.day+leadDays(DEMO_DAYS);S.demo[k+':'+id]=at;
toast(tr('specialist.the_vendor_ships_a_demo_name',{name:esc(it.n),n:at-S.day,p:Math.round((DEMO_MUL-1)*100)}),'good');after();},
seatBuy:({n})=>{const o=S.seatOff;n=+n;if(!o||o.exp<=S.day||!SEAT_N.includes(n))return;const miss=[o.a,o.b].filter(c=>!S.pops[c]),cost=seatCost(o.km,n)+miss.reduce((x,c)=>x+popCost(c),0);if(!spend(cost))return;
for(const c of miss)S.pops[c]={day:S.day,bb:null,boost:0,down:0,routers:1,gen:false,rgen:0};
const id=uid(),days=seatDays(o.km);S.links.push({id,a:o.a,b:o.b,kind:'df',own:true,sub:true,seat:true,seaDesign:'standard',sys:'roadm',ch:[],km:o.km,cable:null,cname:o.name,mo:seatMo(o.km,n),trench:'seat:'+id,cut:0,day:S.day,ready:S.day+days,spares:false,pairs:n,paid:seatCost(o.km,n)});
S.seatOff=null;S.stats.seats=(S.stats.seats||0)+1;UI.sel={type:'link',id};
toast(tr('specialist.you_own_n_fiber_pairs_on',{n,name:esc(o.name),a:CITY[o.a].name,b:CITY[o.b].name,d:days}),'goal');sfx('build');after();},
seatNo:()=>{S.seatOff=null;after();},
charter:({k})=>{if(!own(CHARTERS,k)||S.chartSet||S.scn||S.mode!=='normal')return;S.charter=k;S.chartSet=true;toast(tr('specialist.charter_signed_name',{name:tr(CHARTERS[k].n)}),'good');after();},
});

View file

@ -1,7 +1,7 @@
Object.assign(ACT,{
dfMode:({m})=>{UI.lmode=m;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
seaPackage:({k})=>{if(!own(SUB_UPGRADES,k))return;UI['sea'+k]=!UI['sea'+k];if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
subUpgrade:({id,k})=>{const l=S.links.find(l=>l.id===id);if(!l||l.kind!=='df'||!l.own||!l.sub||!own(SUB_UPGRADES,k)||lvl()<4||l['sub'+k]!==undefined)return;if(!spend(subUpgradeCost(l,k)))return;l.paid=(l.paid>0?l.paid:ownCabCost(l.km))+subUpgradeCost(l,k);l['sub'+k]=Math.max(S.day,l.ready||0)+leadDays(SUB_UPGRADES[k].days);after();},
subUpgrade:({id,k})=>{const l=S.links.find(l=>l.id===id);if(!l||l.kind!=='df'||!l.own||!l.sub||l.seat||!own(SUB_UPGRADES,k)||lvl()<4||l['sub'+k]!==undefined)return;if(!spend(subUpgradeCost(l,k)))return;l.paid=(l.paid>0?l.paid:ownCabCost(l.km))+subUpgradeCost(l,k);l['sub'+k]=Math.max(S.day,l.ready||0)+leadDays(SUB_UPGRADES[k].days);after();},
seaDesign:({v})=>{if(!own(SEA_DESIGNS,v))return;UI.seaDesign=v;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
ownCab:()=>{UI.lmode='df';UI.dfSrc='cable';UI.seaDesign='standard';UI.seaterminal=UI.seaengineering=false;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
dfSrc:({v})=>{UI.dfSrc=v;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
@ -14,8 +14,8 @@ Object.assign(ACT,{
S.stats.ownCab=(S.stats.ownCab||0)+1;UI.dfSrc='lease';closeModal();UI.sel={type:'link',id};
toast(tr('fiber_and_hardware.the_ship_sets_sail_name_your',{ship,name:cname,km:km.toLocaleString(),a:CITY[a].name,b:CITY[b].name,n:days}),'goal');sfx('build');after();},
orderDf:()=>{const p=UI.pending;if(!p)return;const {a,b}=p;if(!dfAllowed(a,b))return;const sc=isSub(a,b)?subDfCable(a,b):null,km=sc?sc.km:kmBetween(a,b);
const own=UI.dfSrc==='build'&&lvl()>=3&&!sc,sys=DF_SYS[UI.dfSys]&&DF_SYS[UI.dfSys].lvl<=lvl()?UI.dfSys:'lite';if(lvl()<2)return;
const up=(own?dfBuildCost(km):0)+DF_SYS[sys].cost+ampCount(km)*AMP_COST+(S.pops[b]?0:popCost(b));if(!spend(up))return;
const own=UI.dfSrc==='build'&&!sc,sys=DF_SYS[UI.dfSys]&&techOk('sys',UI.dfSys,DF_SYS[UI.dfSys].lvl)?UI.dfSys:'lite';if(lvl()<2)return;
const up=(own?digCost(km):0)+sysCost(sys)+ampCount(km)*AMP_COST+(S.pops[b]?0:popCost(b));if(!spend(up))return;
if(!S.pops[b])S.pops[b]={day:S.day,bb:null,boost:0,down:0,routers:1,gen:false,rgen:0};
const sib=pairLinks(a,b).filter(l=>l.kind!=='vxc'),id=uid();
const l={id,a,b,kind:'df',own,sys,ch:[],km,sub:!!sc,cable:sc?sc.cid:null,mo:own?Math.round(km*0.15):dfLeaseMo(km),trench:sc?'cab:'+sc.cid:id,cut:0,day:S.day,ready:S.day+(own?dfBuildDays(km):leadDays(IRU_DAYS)),spares:false};
@ -27,10 +27,10 @@ Object.assign(ACT,{
addCh:({id,o})=>{const l=S.links.find(x=>x.id===id),O=OPT[o];if(!l||!O||l.kind!=='df')return;const why=chWhy(l,o);if(why){toast(tr('fiber_and_hardware.can_t_add_optic_why',{optic:O.n,why:esc(why)}),'bad');sfx('err');return;}if(!portGate(l.a,1)||!portGate(l.b,1))return;const sp=spareN(o)>0;if(!spend(chCost(l,o)))return;if(sp)S.spares[o]--;(l.ch=l.ch||[]).push(o);floater((CITY[l.a].x+CITY[l.b].x)/2,(CITY[l.a].y+CITY[l.b].y)/2-20,`+${O.n}`,'#FF4F9A');after();},
rmCh:({id,o})=>{const l=S.links.find(x=>x.id===id);if(!l||!OPT[o])return;const i=(l.ch||[]).lastIndexOf(o);if(i<0)return;l.ch.splice(i,1);S.spares=S.spares||{};S.spares[o]=(S.spares[o]||0)+1;floater((CITY[l.a].x+CITY[l.b].x)/2,(CITY[l.a].y+CITY[l.b].y)/2-20,tr('fiber_and_hardware.optic_to_spares',{optic:OPT[o].n}),'#7B61FF');after();},
hwLock:()=>{if(hwLock())return;const c=hwLockCost();if(!spend(c))return;S.hw=S.hw||{};S.hw.lock={until:S.day+HW_LOCK_DAYS,mul:hwTrend(S.day)};toast(tr('fiber_and_hardware.prices_locked_until_date_your_vendor',{date:dateStr(S.hw.lock.until)}),'good');after();},
buySpare:({o})=>{if(!OPT[o]||OPT[o].lvl>lvl()||spareN(o)>=64)return;if(!spend(optCost(o)))return;S.spares=S.spares||{};S.spares[o]=(S.spares[o]||0)+1;sfx('build');after();},
buySpare:({o})=>{if(!OPT[o]||!techOk('opt',o,OPT[o].lvl)||spareN(o)>=64)return;if(!spend(optCost(o)))return;S.spares=S.spares||{};S.spares[o]=(S.spares[o]||0)+1;sfx('build');after();},
sellSpare:({o})=>{if(!OPT[o]||spareN(o)<1)return;S.spares[o]--;const v=spareValue(o);S.cash+=v;toast(tr('fiber_and_hardware.sold_a_spare_optic_on_ebuy',{optic:OPT[o].n,price:fmt$(v),p:pct(SPARE_RESALE)}),'good');sfx('coin');after();},
addPair:({id})=>{const l=S.links.find(x=>x.id===id);if(!l||l.kind!=='df'||!l.own||!isRdm(l.sys)||l.ready>S.day)return;const n=Math.max(1,l.pairs|0);if(n>=pairsMax(l))return;if((l.ch||[]).length+soldSlots(l)<chMax(l)){toast(tr('fiber_and_hardware.fill_this_pair_first_light_all',{max:chMax(l)}),'bad');sfx('err');return;}if(!spend(pairCost(l)))return;l.pairs=n+1;toast(tr('fiber_and_hardware.fiber_pair_n_is_lit_a',{n:n+1,a:CITY[l.a].name,b:CITY[l.b].name,m:DF_SYS[l.sys].max}),'good');sfx('build');after();},
upSys:({id})=>{const l=S.links.find(x=>x.id===id),to=l&&sysNext(l);if(!to||DF_SYS[to].lvl>lvl())return;if(!spend(sysUpCost(l)))return;l.sys=to;if(l.ready<=S.day){l.eqDown=S.day+1;toast(tr('fiber_and_hardware.line_system_swap_all_channels_are'),'bad');}after();},
upSys:({id})=>{const l=S.links.find(x=>x.id===id),to=l&&sysNext(l);if(!to||!techOk('sys',to,DF_SYS[to].lvl))return;if(!spend(sysUpCost(l)))return;l.sys=to;if(l.ready<=S.day){l.eqDown=S.day+1;toast(tr('fiber_and_hardware.line_system_swap_all_channels_are'),'bad');}after();},
spares:({id})=>{const l=S.links.find(x=>x.id===id);if(!l)return;l.spares=!l.spares;sfx('click');after();},
crews:({id,all})=>{const l=S.links.find(x=>x.id===id);if(!l||l.kind!=='df'||!l.own||l.ready<=S.day+1)return;const n=all?crewSteps(l):1,c=n*crewCost(l);if(!spend(c))return;const ready=Math.max(S.day+1,l.ready-30*n),saved=l.ready-ready;setCableReady(l,ready);toast(trn('fiber_and_hardware.more_crews_on_site_construction_is',saved,{n:saved}),'good');after();},
addGen:({city})=>{const p=S.pops[city];if(!p||p.gen)return;if(!spend(GEN_COST))return;p.gen=true;floater(CITY[city].x,CITY[city].y-30,tr('common.generator'),'#FF8A3D');after();},

View file

@ -1,6 +1,6 @@
Object.assign(ACT,{
randomName:()=>{const input=$('nmIn');if(input)input.value=UI.nm=randomNetworkName(input.value);},
start:()=>{const nm=(($('nmIn')&&$('nmIn').value)||randomNetworkName()).slice(0,24),sb=UI.mode==='sandbox';
start:()=>{if(UI.asnTxt&&!asnOk(+UI.asnTxt)){toast(tr('title.asn_not_usable'),'bad');const i=$('asnIn');if(i){i.classList.add('bad');i.focus();}return;}const nm=(($('nmIn')&&$('nmIn').value)||randomNetworkName()).slice(0,24),sb=UI.mode==='sandbox';
beginGame(nm,homeOk(UI.startCity)?UI.startCity:'fra',sb?{mode:'sandbox',rules:{chaos:own(CHAOS,UI.sbChaos)?UI.sbChaos:'none'}}:{mode:'normal',preset:NORMAL_PRESETS.includes(UI.preset)?UI.preset:'oncall'});},
// Title-screen doors and their options toggle in place, so the name being typed and the city stay as they are.
modeSet:({m})=>{if(m!=='sandbox'&&m!=='normal')return;UI.mode=m;document.querySelectorAll('.door').forEach(b=>b.classList.toggle('on',b.dataset.door===m));const n=$('doorNormal'),x=$('doorSandbox');if(n)n.hidden=m!=='normal';if(x)x.hidden=m!=='sandbox';},
@ -25,21 +25,13 @@ Object.assign(ACT,{
// An import is a new network next to the others: the one playing here is saved and kept.
try{if(!nx)throw 0;S=nx;compute();checkGoals();}catch(e){S=was;if(S)compute();renderAll();toast(tr('game_and_settings.import_failed_that_save_is_damaged'),'bad');sfx('err');return;}UI.confirm=null;$('bankBox').hidden=true;$('dash').hidden=true;UI.started=true;UI.sel=null;UI.speed=S.uiSpeed===undefined?1:S.uiSpeed;if(S.cam&&isFinite(S.cam.x))Object.assign(cam,S.cam);else{const h=CITY[S.home];if(h){cam.x=h.x;cam.y=h.y;}}closeModal();$('modal').hidden=true;{const im=S;S=was;slotLeave();S=im;}slotNew();delete S.sv;compute();renderAll();save(true);toast(tr('game_and_settings.welcome_back_name_imported_and_saved',{name:esc(S.name)}),'good');sfx('coin');track('game_import');},
menu:()=>{if(!S||!UI.started){showTitle();return;}if(pzOn()){pzMenu();return;}openModal(`<div style="display:flex;align-items:center"><div><div class="eyebrow">AS${S.asn} · ${esc(dateStr(S.day))} · ${tierLabel()}</div><h2 style="font-size:28px">${esc(S.name)} <button class="thb rn" data-act="rename" aria-label="${tr('slots.rename_your_network')}">✏️</button></h2></div><button class="x" data-act="closeModal" aria-label="${tr('common.close')}">×</button></div>
${saveFailing()?`<p class="why">${saveFailMsg()}</p>`:`<p class="tagline">${tr('game_and_settings.your_game_saves_itself_every_few')}</p>`}${isPhone()?installRow():''}
${saveFailing()?`<p class="why">${saveFailMsg()}</p>`:`<p class="tagline">${tr('game_and_settings.your_game_saves_itself_every_few')}</p>`}
<div class="menu-list">
${btn(tr('common.back_to_the_map'),'closeModal',{},'pink big')}
${btn(tr('slots.your_networks_switch_or_start_another'),'toTitle',{},'')}
${btn(tr('game_and_settings.export_save_download_a_file'),'exportSave',{},saveFailing()?'pink':'')}${saveFailing()&&UI.saveFail.full&&slotOthers().length?btn(tr('slots.free_up_space'),'slotSpace',{},'pink'):''}
${btn(tr('game_and_settings.import_a_save_from_a_file'),'importPick',{},'')}
${btn(tr('game_and_settings.share_your_network_image_card'),'share',{},'')}
${btn(tr('game_and_settings.scenarios_amp_weekly_challenge'),'scenarios',{},'ghost')}
${btn(tr('puzzles.puzzles'),'puzzleMenu',{},'ghost')}
${btn(tr('common.how_to_play'),'help',{},'ghost')}
${RELEASE_NOTES.length?btn(tr('common.what_s_new_in_v',{v:esc(APP_VERSION)}),'whatsNewShow',{},'ghost'):''}
${btn('🧑‍💻 '+tr('ops.standing_orders'),'opsOpen',{},'')}
${btn(tr('common.settings'),'settings',{},'ghost')}
${btn(tr('common.start_a_new_network'),'resetAsk',{},'red')}
</div>${chatHtml()}${issueHtml()}`);},
${btn(tr('common.back_to_the_map'),'closeModal',{},'pink big')}${saveFailing()?btn(tr('common.export_save'),'exportSave',{},'pink'):''}${saveFailing()&&UI.saveFail.full&&slotOthers().length?btn(tr('slots.free_up_space'),'slotSpace',{},'pink'):''}
</div>
<div class="menu-tiles">${[['🗂️',tr('slots.your_networks'),'toTitle'],['🧩',tr('puzzles.puzzles'),'puzzleMenu'],['🏆',tr('common.scenarios'),'scenarios'],['🧑‍💻',tr('ops.standing_orders'),'opsOpen'],['📸',tr('common.share'),'share'],['⚙️',tr('common.settings'),'settings']].map(([i,l,a])=>`<button class="mtile" data-act="${a}"><i aria-hidden="true">${i}</i><span>${l}</span></button>`).join('')}</div>
<p class="menu-links">${[saveFailing()?null:[tr('common.export_save'),'exportSave'],[tr('common.import_a_save'),'importPick'],[tr('common.how_to_play'),'help'],RELEASE_NOTES.length?[tr('common.what_s_new_in_v',{v:esc(APP_VERSION)}),'whatsNewShow']:null,[tr('common.start_a_new_network'),'resetAsk']].filter(Boolean).map(([l,a])=>`<button class="lnk" data-act="${a}">${l}</button>`).join(' · ')}</p>
</div><div class="menu-plugs"><a class="mplug" href="${SIGNAL}" target="_blank" rel="noopener">💬 ${tr('modal_and_names.join_the_noc_chat')} →</a><a class="mplug" href="${ISSUES}" target="_blank" rel="noopener">🐛 ${tr('modal_and_names.found_a_bug_or_have_an')} →</a></div>`);},
settings:()=>{UI.setOpen=true;openModal(settingsHtml());},
settingsClose:()=>{UI.setOpen=false;if(!S||!UI.started)showTitle();else closeModal();},
prefSet:({v})=>{const [k,b]=String(v).split(':');if(!own(PREF_DEF,k))return;setPref(k,b==='1');sfx('click');refreshSettings();},

View file

@ -13,12 +13,12 @@ function dfAllowed(a,b){if(isSub(a,b))return !!subDfCable(a,b);return cnCity(a)=
for free (only the regen sites' transponders are new), or you sell it on eBuy for part of the price. */
const SPARE_RESALE=0.4,spareN=o=>(S&&S.spares&&S.spares[o])|0,spareValue=o=>Math.round(optCost(o)*SPARE_RESALE);
function chCost(l,o){const r=REGEN_CH*(l.regen|0);return Math.round(optCost(o)*(spareN(o)>0?r:1+r));}
function optCost(o){return Math.round(OPT[o].cost*hwMul('opt')*(S&&S.ev&&S.ev.tariff>S.day?1.4:1));}
function optCost(o){return Math.round(OPT[o].cost*techMul(OPT[o].lvl)*hwMul('opt')*(S&&S.ev&&S.ev.tariff>S.day?1.4:1));}
// Line systems upgrade in place: Rainbow → ROADMaster → C+L. Every lit pair gets the new gear.
const sysNext=l=>l.sys==='lite'?'roadm':l.sys==='roadm'?'cl':null,sysUpCost=l=>{const t=sysNext(l);return t?DF_SYS[t].cost*(t==='cl'&&l.own?Math.max(1,l.pairs|0):1):0;};
const sysNext=l=>l.sys==='lite'?'roadm':l.sys==='roadm'?'cl':null,sysUpCost=l=>{const t=sysNext(l);return t?sysCost(t)*(t==='cl'&&l.own?Math.max(1,l.pairs|0):1):0;};
function pairBtn(l){if(!l.own||!isRdm(l.sys)||l.ready>S.day)return '';const n=Math.max(1,l.pairs|0);if(n>=pairsMax(l))return `<span class="meta" style="align-self:center">${tr('action_helpers.n_fiber_pairs_lit_the_trench',{n})}</span>`;
const full=(l.ch||[]).length+soldSlots(l)>=chMax(l),c=pairCost(l);return btn(l.sub?tr('action_helpers.light_fiber_pair_n_price',{n:n+1,price:fmt$(c)}):tr('action_helpers.light_fiber_pair_n_price_mo',{n:n+1,price:fmt$(c),mo:fmt$(ampCount(l.km)*AMP_MO)}),'addPair',{id:l.id},full?'pink sm':'ghost sm',!full||S.cash<c);}
function chWhy(l,o){const O=OPT[o];if(O.lvl>lvl())return tr('action_helpers.unlocks_at_customer_level_n',{n:O.lvl});if(O.sys==='roadm'&&!isRdm(l.sys))return tr('action_helpers.needs_a_roadmaster_9000_line_system');if(!optMode(o,l)){const mx=optModes(o,l).at(-1)[1];if(l.sub&&l.own)return tr('action_helpers.this_channel_reaches_max_km_on',{max:mx.toLocaleString(),span:spanKm(l).toLocaleString()});return tr('action_helpers.too_far_even_at_its_slowest',{span:spanKm(l).toLocaleString(),max:mx.toLocaleString()});}
function chWhy(l,o){const O=OPT[o];if(!techOk('opt',o,O.lvl))return tr('action_helpers.unlocks_at_customer_level_n',{n:O.lvl});if(O.sys==='roadm'&&!isRdm(l.sys))return tr('action_helpers.needs_a_roadmaster_9000_line_system');if(!optMode(o,l)){const mx=optModes(o,l).at(-1)[1];if(l.sub&&l.own)return tr('action_helpers.this_channel_reaches_max_km_on',{max:mx.toLocaleString(),span:spanKm(l).toLocaleString()});return tr('action_helpers.too_far_even_at_its_slowest',{span:spanKm(l).toLocaleString(),max:mx.toLocaleString()});}
if((l.ch||[]).length+soldSlots(l)>=chMax(l))return soldSlots(l)?tr('action_helpers.sys_is_full_max_channels_sold',{sys:DF_SYS[l.sys].n,max:chMax(l),sold:soldSlots(l)}):tr('action_helpers.sys_is_full_max_channels',{sys:DF_SYS[l.sys].n,max:chMax(l)});
for(const c of [l.a,l.b]){const p=S.pops[c];if(p&&RG[p.rgen||0].cls<O.rg)return tr('action_helpers.needs_routers_with_pn_ports_or',{pn:RG[mainRG(O.rg)].pn,city:CITY[c].name});}return '';}
function bbCost(c){return 15000+CITY[c].P*20;}

View file

@ -3,10 +3,10 @@ const isPhone=()=>innerWidth<=760||(innerHeight<=500&&matchMedia('(pointer:coars
const SPEEDS=[0.5,1,2,4,8];
function renderTabbar(){const tb=$('tabbar');if(!tb||(pressing&&UI.ticking))return;if(!isPhone()||!S||!UI.started||pzOn()){tb.hidden=true;document.body.classList.toggle('sheet-open',pzOn()&&isPhone()&&!!UI.sel);return;}tb.hidden=false;
const open=UI.leftOpen&&!UI.sel,cur=UI.left||'goals',ndone=GOALS.filter(g=>S.done[g.id]!==undefined).length;
const tab=(k,ic,l,cnt,red)=>`<button class="${open&&cur===k?'on':''}" data-act="phoneTab" data-args='{"t":"${k}"}' aria-label="${esc(l)}"><span class="ic" aria-hidden="true">${ic}</span>${esc(l)}${cnt?`<span class="cnt${red?' red':''}">${cnt}</span>`:''}</button>`;
const tab=(k,ic,l,cnt,red)=>`<button class="${open&&cur===k?'on':''}" data-act="phoneTab" data-args='{"t":"${k}"}' aria-label="${esc(l)}"><span class="ic" aria-hidden="true">${ic}</span>${esc(l)}${cnt?(cnt===' '?`<span class="cnt red dot"></span>`:`<span class="cnt${red?' red':''}">${cnt}</span>`):''}</button>`;
const h=(rule('clock')?`<button class="play${UI.speed?'':' paused'}" data-act="phonePlay" aria-label="${UI.speed?tr('common.pause'):tr('common.play')}"><span class="ic" aria-hidden="true">${UI.speed?'❚❚':'▶'}</span>${UI.speed?tr('common.pause'):tr('common.play')}</button>`+
`<button data-act="phoneSpeed" aria-label="${tr('common.game_speed')}"><span class="ic" aria-hidden="true">${UI.speed===0.5?'½':(UI.lastSpeed||UI.speed||1)}×</span>${tr('common.speed')}</button>`:'')+
(()=>{const P=scnProg();return tab('goals','🎯',tr('common.goals'),P&&!S.scn.done&&!S.scn.failed?`${Math.round(P.f*100)}%`:`${ndone}/${GOALS.length}`);})()+(()=>{const u=custStats().unhappy;return u?tab('deals','💼',tr('common.deals'),u,true):tab('deals','💼',tr('common.deals'),S.offers.length||'');})()+tab('noc','🚨','NOC',S.inc.length||(UI.left==='noc'&&UI.leftOpen?'':logUnread())||'',S.inc.length>0)+tab('nets','🌐',tr('common.networks'),ibxOpen()||'',ibxUrgent()>0);
(()=>{const P=scnProg();return tab('goals','🎯',tr('common.goals'),P&&!S.scn.done&&!S.scn.failed?`${Math.round(P.f*100)}%`:`${ndone}/${GOALS.length}`);})()+(()=>{const u=custStats().unhappy;return u?tab('deals','💼',tr('common.deals'),u,true):tab('deals','💼',tr('common.deals'),S.offers.length||'');})()+tab('noc','🚨','NOC',S.inc.length?' ':'',true)+tab('nets','🌐',tr('common.networks'),'');
if(h!==UI._tb){UI._tb=h;tb.innerHTML=h;}
document.body.classList.toggle('sheet-open',!!(UI.sel||UI.leftOpen));}
function haptic(ms){if(UI.muted)return;try{navigator.vibrate&&navigator.vibrate(ms||12);}catch(e){}}

View file

@ -20,7 +20,7 @@ function renderHUD(){
$('hDate').textContent=dateStr(S.day);
{const bo=(S.loanOffers||[]).length,hb=$('hBank');hb.hidden=!bo;hb.textContent=bo;}
{const st=custStats(),hc=$('hCust');hc.hidden=!st.n;if(st.n){$('hCustVal').innerHTML=`${st.avg>=80?'😀':st.avg>=60?'🙂':st.avg>=30?'😟':'😡'} ${Math.round(st.avg)}%${st.unhappy?` <span class="cnt red">${st.unhappy}</span>`:''}`;hc.classList.toggle('hot',st.furious>0);}}
const n=S.inc.length;$('hNoc').classList.toggle('hot',n>0);{const u=UI.left==='noc'&&UI.leftOpen?0:logUnread(),b=$('hNocNew');if(b){b.hidden=!u;b.textContent=u>99?'99+':String(u);b.title=trn('hud_and_panels.n_new_notification',u);}}$('hNocVal').textContent=n?trn('hud_and_panels.n_incident',n):tr('common.all_quiet');
const n=S.inc.length;$('hNoc').classList.toggle('hot',n>0);{const b=$('hNocNew');if(b)b.hidden=true;}$('hNocVal').textContent=n?trn('hud_and_panels.n_incident',n):tr('common.all_quiet');
if(!window.__TUBES_TEST__)fitHud();
renderTabbar();
}
@ -31,21 +31,21 @@ function renderLeft(){checkLayer();
renderTabbar();
if(!S||pzOn()){L.hidden=true;return;}L.hidden=false;
const ndone=GOALS.filter(g=>S.done[g.id]!==undefined).length;
const tabs=[['goals',`${tr('common.goals')}<span class="cnt">${ndone}/${GOALS.length}</span>`],['deals',`${tr('common.deals')}${S.offers.length?`<span class="cnt">${S.offers.length}</span>`:''}`],['noc',`NOC${S.inc.length?`<span class="cnt red">${S.inc.length}</span>`:''}`],['nets',`${tr('common.networks')}${ibxOpen()?`<span class="cnt${ibxUrgent()?' red':''}">${ibxOpen()}</span>`:''}`]];
const tabs=[['goals',`${tr('common.goals')}<span class="cnt">${ndone}/${GOALS.length}</span>`],['deals',`${tr('common.deals')}${S.offers.length?`<span class="cnt">${S.offers.length}</span>`:''}`],['noc',`NOC${S.inc.length?`<span class="cnt red dot" aria-hidden="true"></span>`:''}`],['nets',tr('common.networks')]];
$('leftTabs').innerHTML=tabs.map(([k,l])=>`<button class="${UI.left===k?'on':''}" data-act="leftTab" data-args='{"t":"${k}"}'>${l}</button>`).join('')+(innerWidth<760?`<button data-act="toggleLeft" style="margin-left:auto" aria-label="${tr('common.close')}">×</button>`:'');
let h='';
if(UI.left==='goals'){
h+=scnCard()+lvlCard()+t1Card();
h+=charterCard()+scnCard()+lvlCard()+t1Card();
const cur=GOALS.find(g=>S.done[g.id]===undefined);
h+=GOALS.map(g=>{const d=S.done[g.id]!==undefined,c=g===cur;return `<div class="goal ${d?'done':''} ${c?'cur':''}"><div class="ck">${d?'✓':''}</div><div><div class="gt">${esc(g.t)}</div>${c||!d?`<div class="gd">${esc(g.d)}</div>`:''}${!d&&g.r?`<div class="gr">${tr('hud_and_panels.reward_cash',{cash:fmt$(g.r)})}</div>`:''}</div></div>`;}).join('');
h+=badgeGrid();
}else if(UI.left==='deals'){
{const st=custStats();if(st.n)h+=`<div class="row" style="margin-bottom:8px"><div class="grow"><div class="nm">${tr('common.your_customers')} <span class="meta">${st.n} · ${tr('hud_and_panels.happiness_p',{p:Math.round(st.avg)})}</span></div><div class="bar ${moodCls(st.avg)}"><i style="width:${st.avg}%"></i></div>${st.unhappy?`<div class="why">${trn('hud_and_panels.n_unhappy_customer_price_mo_at',st.unhappy,{price:fmt$(st.risk)})}</div>`:''}</div>${btn(st.unhappy?tr('common.see_who'):tr('common.all_customers'),'custOpen',{sad:st.unhappy?1:0},st.unhappy?'pink sm':'ghost sm')}</div>`;}
h+=confSection();
h+=confSection()+seatSection();
{const lv=S.lvl||1,nx=LEVELS[lv];h+=`<div class="inc" style="background:#FFF6CF"><div class="nm">${tr('hud_and_panels.customer_level_lv_name',{lv,name:LEVELS[lv-1].n})}</div><div class="meta">${nx?tr('hud_and_panels.next_req_unlocks_what',{req:nx.req,what:lc1(nx.unlock)}):tr('common.every_customer_type_is_unlocked_go')}</div></div>`;}
if(!S.offers.length)h+=`<p class="empty">${tr('hud_and_panels.no_open_offers_right_now_businesses')}</p>`;
for(const o of S.offers.slice().sort((a,b)=>a.exp-b.exp)){const has=bHas(o);
h+=`<div class="row"><div class="grow"><div class="nm">${esc(o.name)}</div><div class="meta">${esc(BIZ_T[o.type].l)} · ${CITY[o.city].name}${o.city2?' ⇄ '+CITY[o.city2].name:''} · <b>${bTerms(o)}</b> · ${tr('ui.n_d_left',{n:o.exp-S.day})}${(o.reqs||[]).length?` · ${trn('hud_and_panels.n_special_requirement',o.reqs.length)}`:''}</div>${bRisk(o)}${reqList(o)}
h+=`<div class="row"><div class="grow"><div class="nm">${esc(o.name)}</div><div class="meta">${esc(BIZ_T[o.type].l)} · ${CITY[o.city].name}${o.city2?' ⇄ '+CITY[o.city2].name:''} · <b>${bTerms(o)}</b> · ${tr('ui.n_d_left',{n:o.exp-S.day})}${(o.reqs||[]).length?` · ${trn('hud_and_panels.n_special_requirement',o.reqs.length)}`:''}</div>${spotWhy(o)}${bRisk(o)}${reqList(o)}
<div class="btns">${has?btn(tr('common.accept'),'accept',{id:o.id},'green sm'):btn(tr('common.go_there'),'focusCity',{city:bCities(o).find(c=>!S.pops[c])},'ghost sm')}${btn(tr('common.decline'),'decline',{id:o.id},'ghost sm')}</div>${has?'':`<div class="why">${tr('hud_and_panels.needs_a_pop_in_cities',{cities:bCities(o).filter(x=>!S.pops[x]).map(x=>CITY[x].name).join(', ')})}</div>`}</div></div>`;}
}else if(UI.left==='noc'){
h+=`<div class="btns" style="margin-bottom:8px">${btn(tr('hud_and_panels.open_noc_dashboard'),'dash',{},'pink')}${btn(tr('common.connections'),'connOpen',{},'')}${btn(tr('common.traceroute'),'trace',{},'')}</div>`;
@ -72,7 +72,7 @@ function renderLeft(){checkLayer();
if(!S.inc.length&&!hot.length&&!hotR.length&&!slow.length)h+=`<p class="empty">${tr('hud_and_panels.all_systems_green_enjoy_it_while')}</p>`;
h+=`<div class="kv" style="margin-top:8px"><span>${tr('hud_and_panels.incidents_so_far')}</span><b>${S.stats.incidents}</b></div><div class="kv"><span>${tr('hud_and_panels.survived_with_no_impact')}</span><b>${S.stats.survived}</b></div>`;
}else{
if(rule('inbox')&&(Object.keys(S.ixp).length||ibxOpen()||(S.inbox&&S.inbox.bot))){const n=ibxOpen(),u=ibxUrgent();h+=`<div class="ibx ibxcard"><div class="nm">📬 ${tr('common.peering_inbox')} ${n?`<span class="cnt${u?' red':''}">${n}</span>`:''}</div><div class="meta">${S.inbox&&S.inbox.bot?tr('hud_and_panels.large_peering_model_is_on_it'):u?trn('hud_and_panels.n_session_is_down_on_its',u):n?trn('hud_and_panels.n_message_waiting_for_an_answer',n):tr('common.inbox_zero')}</div><div class="btns">${btn(tr('common.open_inbox'),'inbox',{},'sm')}</div></div>`;}
if(Object.keys(S.ixp).length||ppol()!=='open')h+=pdeskCard();
h+=`<p class="lead">${tr('hud_and_panels.every_network_on_the_map_traffic')}</p>`;
{const nc=conns().length;if(nc)h+=`<div class="btns" style="margin-bottom:8px">${btn(tr('hud_and_panels.all_connections_n',{n:nc}),'connOpen',{},'pink sm')}</div>`;}
const where=netWhereIdx(),tl=NETS.filter(n=>n.tail),tlOn=tl.filter(n=>where(n.id).some(x=>x[2]==='ix')).length;
@ -82,7 +82,7 @@ function renderLeft(){checkLayer();
// Shown 100 at a time like the dashboard lists: every country's own eyeballs made this list long (2.0).
const nl=(foc?[foc]:out?ntLost():NETS).filter(n=>!n.tail||UI.tailOpen||foc||out);
for(const n of nl.slice(0,listN('nets'))){
h+=`<div class="row">${logo(n)}<div class="grow"><div class="nm">${esc(n.name)} <span class="meta">AS${n.asn}</span></div><div class="meta"><span class="tag ${n.type}">${TYPE_L[n.type]}</span> <span class="tag ${n.pol}">${n.pol}</span> · ${tr('hud_and_panels.p_of_traffic',{p:(NSH[n.id]*100).toFixed(1)})}${n.price?` · ${tr('hud_and_panels.transit_price_gbps',{price:(n.price*S.priceMul).toFixed(2)})}`:''}</div><div class="meta">${esc(n.blurb)}</div>${netWhere(n,where)}${(foc||out)&&!R.nt[n.id]?`<p class="why">${esc(offTransitHint(n.id))}</p>`:''}${(foc||out)&&coneVia(n.id)&&(R.cone[n.id]||!R.nt[n.id])?`<p class="meta">${R.cone[n.id]?tr('hud_and_panels.reached_through_the_customer_cone_of',{net:esc((NET[R.cone[n.id]]||coneVia(n.id)).name)}):tr('hud_and_panels.buys_transit_from_net_peer_with',{net:esc(coneVia(n.id).name)})}</p>`:''}${foc||out&&!R.nt[n.id]?meetLine(n,foc?24:4):''}</div></div>`;}
h+=`<div class="row">${logo(n)}<div class="grow"><div class="nm">${esc(n.name)} <span class="meta">AS${n.asn}</span></div><div class="meta"><span class="tag ${n.type}">${TYPE_L[n.type]}</span> <span class="tag ${n.pol}">${n.pol}</span> · ${tr('hud_and_panels.p_of_traffic',{p:(NSH[n.id]*100).toFixed(1)})}${n.price?` · ${tr('hud_and_panels.transit_price_gbps',{price:(n.price*S.priceMul).toFixed(2)})}`:''}</div><div class="pchips">${pniChip(n.id,null)}</div><div class="meta">${esc(n.blurb)}</div>${netWhere(n,where)}${(foc||out)&&!R.nt[n.id]?`<p class="why">${esc(offTransitHint(n.id))}</p>`:''}${(foc||out)&&coneVia(n.id)&&(R.cone[n.id]||!R.nt[n.id])?`<p class="meta">${R.cone[n.id]?tr('hud_and_panels.reached_through_the_customer_cone_of',{net:esc((NET[R.cone[n.id]]||coneVia(n.id)).name)}):tr('hud_and_panels.buys_transit_from_net_peer_with',{net:esc(coneVia(n.id).name)})}</p>`:''}${foc||out&&!R.nt[n.id]?meetLine(n,foc?24:4):''}</div></div>`;}
h+=listMore('nets',nl.length,n=>trn('hud_and_panels.n_more_networks',n));
if(!foc&&!out)h+=`<div class="row"><div class="grow"><div class="nm">${tr('hud_and_panels.the_long_tail')} <span class="meta">${tr('hud_and_panels.n_small_networks',{n:tl.length})}</span></div><div class="meta">${tr('hud_and_panels.p_of_traffic_between_them_scattered',{p:(tl.reduce((a,n)=>a+NSH[n.id],0)*100).toFixed(1),n:tlOn})}</div></div>${btn(UI.tailOpen?tr('common.hide'):tr('common.show'),'tailTog',{},'ghost sm')}</div>`;
}

View file

@ -1,7 +1,7 @@
function cityPanel(c){
const C=CITY[c],p=S.pops[c],ix=ixName(c),down=p&&p.down>S.day;
let h=`<div class="ph"><div style="min-width:0"><div class="eyebrow">${REG[C.reg]} · ${esc(siteName(c,'a'))}</div><h2>${C.name}</h2>
<div class="facts"><span class="fact">${tr('city_panel.g_of_eyeballs',{g:fmtG(eyeP(c))})}</span>${grantFact(c)}${latSlow(c)?`<span class="fact bad">🐢 ${tr('city_panel.ms_ms_to_transit',{ms:Math.round(R.latFar[c].ms)})}</span>`:''}${regionMult(c)>1?`<span class="fact">${tr('city_panel.transit_x_pricier',{x:regionMult(c)})}</span>`:''}${colo(c)>1?`<span class="fact">${tr('city_panel.few_data_centers_pops_x',{x:colo(c)})}</span>`:''}${C.reg==='AS'&&!C.cn?'<span class="fact ixf">'+tr('city_panel.underserved_users_grow_60_faster')+'</span>':''}${ix?`<span class="fact ixf">${tr('city_panel.ix_ix',{ix:esc(ix)})}</span>`:''}${p?`<span class="fact mine">${tr('common.your_pop')}</span><button class="fact trb" data-act="trace" data-args='{"city":"${c}"}'>🔍 ${tr('common.traceroute')}</button>`:''}${down?`<span class="fact down">DOWN</span>`:''}</div></div>
<div class="facts"><span class="fact">${tr('city_panel.g_of_eyeballs',{g:fmtG(eyeP(c))})}</span>${grantFact(c)}${latSlow(c)?`<span class="fact bad">🐢 ${tr('city_panel.ms_ms_to_transit',{ms:Math.round(R.latFar[c].ms)})}</span>`:''}${regionMult(c)>1?`<span class="fact">${tr('city_panel.transit_x_pricier',{x:regionMult(c)})}</span>`:''}${C.kr&&scnRule('sender')?`<span class="fact">${tr('city_panel.sender_pays_fee_per_gbps',{fee:fmt$(KR_FEE)})}</span>`:''}${colo(c)>1?`<span class="fact">${tr('city_panel.few_data_centers_pops_x',{x:colo(c)})}</span>`:''}${C.reg==='AS'&&!C.cn?'<span class="fact ixf">'+tr('city_panel.underserved_users_grow_60_faster')+'</span>':''}${ix?`<span class="fact ixf">${tr('city_panel.ix_ix',{ix:esc(ix)})}</span>`:''}${p?`<span class="fact mine">${tr('common.your_pop')}</span><button class="fact trb" data-act="trace" data-args='{"city":"${c}"}'>🔍 ${tr('common.traceroute')}</button>`:''}${down?`<span class="fact down">DOWN</span>`:''}</div></div>
<button class="x" data-act="closePanel" aria-label="${tr('common.close')}">×</button></div>`;
if(!p){
h+=`<div class="scroll">${C.note?`<p class="note" style="margin-top:0">${esc(C.note)}</p>`:''}
@ -24,11 +24,11 @@ function cityPanel(c){
if(UI.tab==='cust'){
{const nl=R.nodeLoad[c]||0,nc=R.nodeCap[c]||1;if(nl>=nc*0.95)h+=`<section><h3 style="color:var(--bad)">${tr('city_panel.router_maxed_out')}</h3><p class="lead">${tr('city_panel.your_routers_here_are_forwarding',{load:fmtG(nl),cap:fmtG(nc)})}</p>${btn(tr('common.open_infra'),'tab',{t:'links'},'pink sm')}</section>`;}
h+=`<section><h3>${tr('common.home_broadband')}</h3>`;
if(!p.bb){const s=bbStart(c);h+=`<p class="lead">${tr('city_panel.sell_internet_to_homes_here_starts',{start:fmtG(s),max:fmtG(eyeP(c)),rate:fmt$(EYE_RATE*(C.arpu||1))})}${C.au?` ${scnRule('levy')?tr('city_panel.it_runs_on_your_own_fibre',{pct:pct(AU_LEVY)}):tr('city_panel.the_nearly_broadband_network_keeps',{pct:pct(AU_WHOLESALE)})}`:''}</p>${btn(tr('city_panel.launch_broadband_cost',{cost:fmt$(bbCost(c))}),'launchBB',{city:c},'pink big',S.cash<bbCost(c))}`;}
if(!p.bb){const s=bbStart(c);h+=`<p class="lead">${tr('city_panel.sell_internet_to_homes_here_starts',{start:fmtG(s),max:fmtG(eyeP(c)),rate:fmt$(EYE_RATE*arpuOf(c))})}${C.au?` ${scnRule('levy')?tr('city_panel.it_runs_on_your_own_fibre',{pct:pct(AU_LEVY)}):tr('city_panel.the_nearly_broadband_network_keeps',{pct:pct(AU_WHOLESALE)})}`:''}</p>${btn(tr('city_panel.launch_broadband_cost',{cost:fmt$(bbCost(c))}),'launchBB',{city:c},'pink big',S.cash<bbCost(c))}`;}
else{const eye=R.cityEye[c]||0;
h+=`<div class="kv"><span>${tr('common.eyeball_demand')}</span><b>${tr('city_panel.a_of_b',{a:fmtG(eye),b:fmtG(eyeP(c))})}</b></div><div class="bar me"><i style="width:${Math.min(100,eye/eyeP(c)*100)}%"></i></div>
<div class="kv"><span>${tr('city_panel.served_in_city',{city:C.name})}</span><b style="color:${sf<0.9?'var(--bad)':'var(--eye)'}">${pct(sf)}</b></div><div class="bar ${sf<0.9?'bad':''}"><i style="width:${sf*100}%"></i></div>
<div class="kv"><span>${tr('common.revenue')}</span><b>${tr('common.price_mo',{price:fmt$(eye*sf*EYE_RATE*(C.arpu||1))})}</b></div>
<div class="kv"><span>${tr('common.revenue')}</span><b>${tr('common.price_mo',{price:fmt$(eye*sf*EYE_RATE*arpuOf(c))})}</b></div>
<div class="kv"><span>${tr('city_panel.network_wide_peering_ratio')}</span><b>${pct(R.peerShare||0)}</b></div><p class="note">${tr('city_panel.more_traffic_over_peering_pnis_and')}</p>
${sf<0.9?`<p class="why">${tr('city_panel.customers_are_unhappy_and_leaving')}</p>`:''}
<div class="btns">${p.boost>S.day?`<span class="tag st on">${tr('city_panel.ad_campaign_n_d_left',{n:p.boost-S.day})}</span>`:btn(tr('city_panel.run_ad_campaign_8k_2_growth'),'ad',{city:c},'',S.cash<8000)}</div>`;}
@ -54,13 +54,7 @@ function cityPanel(c){
h+=portNote(c);
h+=ixSection(c);
h+=`<section><h3>${tr('city_panel.private_interconnects_pni')}</h3><p class="lead">${tr('city_panel.a_dedicated_cross_connect_to_one',{dc:esc(siteName(c,'a'))})}</p>`;
const here=NETS.filter(n=>n.pops.includes(c));
for(const n of here){const pn=S.pni.find(x=>x.city===c&&x.net===n.id),chk=peerOk(n.id,'pni',c);
h+=`<div class="row">${logo(n)}<div class="grow"><div class="nm">${esc(n.name)} <span class="tag ${n.pol}">${n.pol}</span></div>`;
if(pn&&!pniOn(pn))h+=pniWait(pn,c);
else if(pn){const u=R.usePni[pn.id]||0,cap=lagCap(pniG(pn),pn.n);h+=`<div class="kv"><span>${(pn.n||1)>1?`${pn.n}×${pniPN(pn)} LAG`:pniPN(pn)} PNI</span><b>${fmtG(u)}</b></div>${pn.up?`<div class="meta">${tr('city_panel.augment_on_order_port_about_n',{port:(pn.up.n>1?pn.up.n+'×':'')+(pn.up.g1?'1G':PORT[pn.up.tier].n),n:Math.max(0,pn.up.ready-S.day)})} ${btn(tr('common.chase_it'),'pniChase',{id:pn.id},'ghost sm')}</div>`:''}<div class="bar ${barCls(u/cap)}"><i style="width:${u/cap*100}%"></i></div>${prefCtl('p',pn.id,pn.pref)}${siteCtl('p',pn.id,c,pn.site)}<div class="btns">${PORT.map((P2,i)=>!pn.up&&!msfNope(n.id,c)&&(i>pn.tier||(pn.g1&&i===0))?btn((a=>(pn.n||1)>1?tr('common.upgrade_all_to_port_cost_mo',a):tr('common.upgrade_port_cost_mo_mo',a))({port:P2.n,cost:fmt$((1500+P2.setup/2)*(pn.n||1)),mo:fmt$(P2.pni*(pn.n||1))}),'pni',{city:c,net:n.id,tier:i},'sm',!portOk(c,i)||S.cash<(1500+P2.setup/2)*(pn.n||1)):'').join('')}${(pn.n||1)<LAG_MAX&&!pn.up&&!msfNope(n.id,c)?btn(tr('common.lag_member_cost_mo_mo',{cost:fmt$(1500+PORT[pn.tier].setup/2),mo:fmt$(PORT[pn.tier].pni)}),'lagP',{id:pn.id,d:1},'sm',S.cash<1500+PORT[pn.tier].setup/2):''}${(pn.n||1)>1?btn(tr('common.member'),'lagP',{id:pn.id,d:-1},'ghost sm'):''}${NET[n.id].cn?btn(pn.sacrif?tr('common.sacrificial_choke'):tr('city_panel.make_sacrificial_contains_floods_1_2'),'sacrif',{id:pn.id},pn.sacrif?'green sm':'sm'):''}${btn(UI.confirm===pn.id?tr('common.really_remove'):tr('common.remove'),'cancelPni',{id:pn.id},'ghost sm')}</div>`;}
else{h+=chk.ok?`<div class="btns">${pniG1(n.id)?btn(tr('city_panel.port_cost_mo_mo',{port:'1G',cost:fmt$(PNI_G1_COST),mo:fmt$(Math.round(PORT[0].pni/2))}),'pni',{city:c,net:n.id,tier:-1},'sm',S.cash<PNI_G1_COST||!portOk(c,0)):''}${PORT.map((P2,i)=>portShown(i)&&i>=pniMin(n.id)?btn(tr('city_panel.port_cost_mo_mo',{port:P2.n,cost:fmt$(1500+P2.setup/2),mo:fmt$(P2.pni)}),'pni',{city:c,net:n.id,tier:i},'sm',S.cash<1500+P2.setup/2||!portOk(c,i)):'').join('')}</div><div class="meta">${pniEta(n.id)}${pniMin(n.id)?' · '+tr('city_panel.no_10g_net_starts_at_100g',{net:esc(n.name)}):pniG1(n.id)?' · '+tr('city_panel.sells_pnis_down_to_1g'):''}</div>${chk.fee?`<div class="meta">${tr('city_panel.paid_peering_price_mo_on_top',{price:fmt$(chk.fee)})}</div>`:''}`:`<div class="why">${esc(chk.why)}</div>`;}
h+=`</div></div>`;}
h+=pniListHtml(c);
h+=`</section><section><h3>${tr('common.embedded_caches')}</h3><p class="lead">${tr('city_panel.cdns_put_free_cache_servers_inside')}</p>`;
for(const n of NETS.filter(n=>n.cache)){const have=S.caches.filter(x=>x.city===c&&x.net===n.id),dem=R.demTo[n.id]||0,ok=dem>=n.cache.min;
h+=`<div class="row">${logo(n)}<div class="grow"><div class="nm">${esc(n.cache.name)}</div><div class="meta">${tr('common.from_net',{net:esc(n.name)})} · ${have.length?`${trn('common.n_box',have.length)} · ${tr('city_panel.serving_v',{v:fmtG(have.reduce((a,x)=>a+(R.useCache[x.id]||0),0))})}`:tr('city_panel.100g_per_box')}</div>${!ok?`<div class="why">${tr('city_panel.needs_min_gbps_of_traffic_to',{min:n.cache.min,net:esc(n.name),now:dem.toFixed(1)})}</div>`:''}</div>
@ -76,7 +70,7 @@ function cityPanel(c){
<div class="kv"><span>${tr('common.forwarding_chip')}</span><b>${esc(G.chip)}</b></div><div class="kv"><span>${tr('common.boot_time')}</span><b>${slowBoot(c)?`<span style="color:var(--bad)">${tr('city_panel.n_min_a_slow_one',{n:bootMin(c)})}</span>`:tr('city_panel.n_min',{n:bootMin(c)})}</b></div>${slowBoot(c)?`<p class="note">${tr('city_panel.this_chassis_takes_forever_to_boot')}</p>`:''}
<div class="kv"><span>${tr('common.forwarding_load')}</span><b>${fmtG(nl)} / ${fmtG(nc)}</b></div><div class="bar ${barCls(nl/nc)}"><i style="width:${Math.min(100,nl/nc*100)}%"></i></div>
${nl>=nc*0.95?`<p class="why">${tr('city_panel.maxed_out_traffic_here_is_being')}</p>`:''}
<div class="btns">${N?btn(N.lvl>lvl()?tr('city_panel.model_level_lv',{model:esc(N.n),lv:N.lvl}):tr('city_panel.upgrade_to_model_cost_mo_mo',{model:esc(N.n),cost:fmt$(swapCost(c,Ni)),mo:fmt$(N.mo*rt)}),'upRouter',{city:c,g:Ni},'pink',N.lvl>lvl()||S.cash<swapCost(c,Ni)||p.rupDay===S.day):''}${btn(UI.models?tr('city_panel.hide_other_models'):tr('common.other_models'),'models',{},'ghost sm')}${rt<RMAX?btn(tr('city_panel.add_router_cost_mo_mo',{cost:fmt$(routerCost(g,rt)),mo:fmt$(routerMo(g)+(rt>=RCAGE?CAGE_MO:0))}),'addRouter',{city:c},'',S.cash<routerCost(g,rt)):''}${rt>1?btn(tr('common.remove_one'),'rmRouter',{city:c},'ghost sm'):''}</div>
<div class="btns">${N?(!techOk('rg',Ni,N.lvl)?demoBtn('rg',Ni,N.lvl,tr('city_panel.model_level_lv',{model:esc(N.n),lv:N.lvl}),'pink'):btn(tr('city_panel.upgrade_to_model_cost_mo_mo',{model:esc(N.n),cost:fmt$(swapCost(c,Ni)),mo:fmt$(N.mo*rt)}),'upRouter',{city:c,g:Ni},'pink',S.cash<swapCost(c,Ni)||p.rupDay===S.day)):''}${btn(UI.models?tr('city_panel.hide_other_models'):tr('common.other_models'),'models',{},'ghost sm')}${rt<RMAX?btn(tr('city_panel.add_router_cost_mo_mo',{cost:fmt$(routerCost(g,rt)),mo:fmt$(routerMo(g)+(rt>=RCAGE?CAGE_MO:0))}),'addRouter',{city:c},'',S.cash<routerCost(g,rt)):''}${rt>1?btn(tr('common.remove_one'),'rmRouter',{city:c},'ghost sm'):''}</div>
${rt>=RCAGE&&rt<RMAX?`<p class="note">${tr('city_panel.the_standard_cage_holds_n_routers',{n:RCAGE,mo:fmt$(CAGE_MO)})}</p>`:''}${rt>=RMAX?`<p class="note">${tr('city_panel.this_pop_has_the_most_routers',{n:RMAX})}</p>`:''}${rt>RCAGE?`<div class="kv"><span>${tr('city_panel.cage_extension')}</span><b>${fmt$(cageMo(rt))}/mo</b></div>`:''}
${UI.models?routerModels(c):''}
${N||UI.models?`<p class="note">${(p.rgen||0)>0?tr('city_panel.prices_include_p_back_for_the',{p:fmt$(tradeIn(p.rgen||0,rt))})+' ':''}${p.rupDay===S.day?tr('city_panel.new_routers_went_in_today_the')+' ':''}${rt>1?tr('city_panel.rolling_upgrade_one_router_at_a'):tr('city_panel.with_one_router_the_upgrade_needs')}</p>`:''}

View file

@ -0,0 +1,30 @@
/* ---------- The PNI list of a POP (#175, #172) ----------
Every network here answers three questions: how you reach it today (one chip), whether a PNI here is worth it
(a value line from live routing) and whether you can get one (the order buttons, policy and lead time). Sorted by
monthly value, filtered, grouped by type; groups with nothing to do (no PNI there, nothing you could order that moves 1 Gbps) stay folded. */
const PNI_GRP=['t1','t2','eye','cdn','paid'],pniGrpOf=n=>n.pol==='paid'?'paid':n.type;
const pniGrpL=k=>k==='paid'?tr('ops.p_paid'):TYPE_L[k];
function pniValLine(n,c,v){
if(v.g<1)return `<div class="meta pval">${tr('pni_list.little_to_gain_here',{g:fmtG(v.want)})}</div>`;
const via=[v.t>=0.05?tr('pni_list.via_transit',{g:fmtG(v.t)}):'',v.ix>=0.05?tr('pni_list.via_ix',{g:fmtG(v.ix)}):'',v.p>=0.05?tr('pni_list.via_haul',{g:fmtG(v.p)}):'',v.u>=0.05?tr('pni_list.via_drop',{g:fmtG(v.u)}):''].filter(Boolean).join(' · ');
const val=(v.val>0?'+':'')+tr('common.price_mo',{price:fmt$(Math.round(v.val))});
return `<div class="meta pval" title="${esc(tr('pni_list.saves_minus_cost',{saved:fmt$(Math.round(v.saved)),cost:fmt$(Math.round(v.cost))}))}">${tr('pni_list.n_here',{g:fmtG(v.want)})}: ${via} → ${tr('pni_list.with_port',{port:PORT[v.tier].n,val})}</div>`;}
function pniRow(c,n,pn,v,chk){let h=`<div class="row prow">${logo(n)}<div class="grow"><div class="nm">${esc(n.name)} <span class="tag ${n.pol}">${n.pol}</span>${v&&v.worth?` <span class="tag worth">⭐ ${tr('pni_list.worth_it')}</span>`:''}</div><div class="pchips">${pniChip(n.id,c)}</div>${v?pniValLine(n,c,v):''}`;
if(pn&&!pniOn(pn))h+=pniWait(pn,c);
else if(pn){const u=R.usePni[pn.id]||0,cap=lagCap(pniG(pn),pn.n);h+=`<div class="kv"><span>${(pn.n||1)>1?`${pn.n}×${pniPN(pn)} LAG`:pniPN(pn)} PNI</span><b>${fmtG(u)}</b></div>${pn.up?`<div class="meta">${tr('city_panel.augment_on_order_port_about_n',{port:(pn.up.n>1?pn.up.n+'×':'')+(pn.up.g1?'1G':PORT[pn.up.tier].n),n:Math.max(0,pn.up.ready-S.day)})} ${btn(tr('common.chase_it'),'pniChase',{id:pn.id},'ghost sm')}</div>`:''}<div class="bar ${barCls(u/cap)}"><i style="width:${u/cap*100}%"></i></div>${prefCtl('p',pn.id,pn.pref)}${siteCtl('p',pn.id,c,pn.site)}<div class="btns">${PORT.map((P2,i)=>!pn.up&&!msfNope(n.id,c)&&(i>pn.tier||(pn.g1&&i===0))?btn((a=>(pn.n||1)>1?tr('common.upgrade_all_to_port_cost_mo',a):tr('common.upgrade_port_cost_mo_mo',a))({port:P2.n,cost:fmt$((1500+P2.setup/2)*(pn.n||1)),mo:fmt$(P2.pni*(pn.n||1))}),'pni',{city:c,net:n.id,tier:i},'sm',!portOk(c,i)||S.cash<(1500+P2.setup/2)*(pn.n||1)):'').join('')}${(pn.n||1)<LAG_MAX&&!pn.up&&!msfNope(n.id,c)?btn(tr('common.lag_member_cost_mo_mo',{cost:fmt$(1500+PORT[pn.tier].setup/2),mo:fmt$(PORT[pn.tier].pni)}),'lagP',{id:pn.id,d:1},'sm',S.cash<1500+PORT[pn.tier].setup/2):''}${(pn.n||1)>1?btn(tr('common.member'),'lagP',{id:pn.id,d:-1},'ghost sm'):''}${NET[n.id].cn?btn(pn.sacrif?tr('common.sacrificial_choke'):tr('city_panel.make_sacrificial_contains_floods_1_2'),'sacrif',{id:pn.id},pn.sacrif?'green sm':'sm'):''}${btn(UI.confirm===pn.id?tr('common.really_remove'):tr('common.remove'),'cancelPni',{id:pn.id},'ghost sm')}</div>`;}
else{h+=chk.ok?`<div class="btns">${pniG1(n.id)?btn(tr('city_panel.port_cost_mo_mo',{port:'1G',cost:fmt$(PNI_G1_COST),mo:fmt$(Math.round(PORT[0].pni/2))}),'pni',{city:c,net:n.id,tier:-1},'sm',S.cash<PNI_G1_COST||!portOk(c,0)):''}${PORT.map((P2,i)=>portShown(i)&&i>=pniMin(n.id)?btn(tr('city_panel.port_cost_mo_mo',{port:P2.n,cost:fmt$(1500+P2.setup/2),mo:fmt$(P2.pni)}),'pni',{city:c,net:n.id,tier:i},'sm',S.cash<1500+P2.setup/2||!portOk(c,i)):'').join('')}</div><div class="meta">${pniEta(n.id)}${pniMin(n.id)?' · '+tr('city_panel.no_10g_net_starts_at_100g',{net:esc(n.name)}):pniG1(n.id)?' · '+tr('city_panel.sells_pnis_down_to_1g'):''}</div>${chk.fee?`<div class="meta">${tr('city_panel.paid_peering_price_mo_on_top',{price:fmt$(chk.fee)})}</div>`:''}`:`<div class="why">${esc(chk.why)}</div>`;}
return h+`</div></div>`;}
function pniListHtml(c){const f=UI.pniF||'all',az=UI.pniSort==='az',open=UI.pniOpen||{};
const rows=NETS.filter(n=>n.pops.includes(c)).map(n=>{const pn=S.pni.find(x=>x.city===c&&x.net===n.id)||null;const chk=pn?null:peerOk(n.id,'pni',c),v=pn?null:pniVal(n.id,c);return {n,pn,v,chk,s:pniStat(n.id,c).k,go:!!pn||(chk.ok&&v.g>=1)};});
const keep=r=>f==='all'||(f==='t'&&(r.s==='t'||r.s==='none'))||(f==='worth'&&r.v&&r.v.worth)||(f==='pni'&&(r.s==='here'||r.s==='else'));
const val=r=>r.v?r.v.val:-Infinity;
rows.sort((a,b)=>az?a.n.name.localeCompare(b.n.name):(b.v&&b.v.worth)-(a.v&&a.v.worth)||val(b)-val(a)||a.n.name.localeCompare(b.n.name));
let h=`<div class="btns pnif">${[['all',tr('pni_list.f_all')],['t',tr('pni_list.f_transit')],['worth',tr('pni_list.f_worth')],['pni',tr('pni_list.f_pni')]].map(([k,l])=>btn(l,'pniFilter',{f:k},f===k?'sm':'ghost sm')).join('')}${btn(az?tr('pni_list.sort_az'):tr('pni_list.sort_worth'),'pniSort',{},'ghost sm')}</div><p class="note">${tr('pni_list.worth_rule')}</p>`;
const shown=rows.filter(keep);if(!shown.length)return h+`<p class="empty">${tr('pni_list.nothing_matches')}</p>`;
let left=listN('pni'),tot=0;
for(const g of PNI_GRP){const gr=shown.filter(r=>pniGrpOf(r.n)===g);if(!gr.length)continue;
const w=gr.filter(r=>r.v&&r.v.worth).length,act=w||gr.some(r=>r.go),isOpen=f!=='all'||(open[g]??act);
h+=`<div class="pgrp">${btn(`${isOpen?'▾':'▸'} ${esc(pniGrpL(g))} <small>${trn('pni_list.n_networks_w_worth_it',gr.length,{w})}</small>`,'pniGrp',{g,o:isOpen?0:1},'ghost sm')}</div>`;
if(!isOpen)continue;tot+=gr.length;
for(const r of gr){if(left--<=0)break;h+=pniRow(c,r.n,r.pn,r.v,r.chk);}}
return h+listMore('pni',tot,n=>trn('hud_and_panels.n_more_networks',n));}

View file

@ -23,7 +23,7 @@ function utilitiesModal(city,message){if(!S)return;const cities=Object.keys(S.po
<section><h3>${tr('utilities.ix_peering')}</h3><p class="lead">${tr('utilities.peering_note')}</p>
<div class="btns">${btn(tr('utilities.join_route_servers',{n:rs}),'utilityRouteServers',{city},'pink',!rs)}${btn(tr('utilities.request_all',{n}),'utilityPeers',{city},'',!n)}</div>
<p class="meta">${tr('utilities.route_server_note')}</p>
${ppol()!=='open'?`<p class="why">${tr('link_panels.off_while_your_peering_policy_is',{pol:tr(PPOL_N[ppol()])})}</p>${btn(tr('common.peering_policy'),'inbox',{},'ghost sm')}`:''}
${ppol()!=='open'?`<p class="why">${tr('link_panels.off_while_your_peering_policy_is',{pol:tr(PPOL_N[ppol()])})}</p>${btn(tr('common.peering_policy'),'leftTab',{t:'nets'},'ghost sm')}`:''}
${rows.map(r=>`<details><summary>${esc(ixName(r.ix))} · ${tr('utilities.peer_counts',{ready:r.requests.length,existing:r.existing,blocked:r.blocked.length})}</summary>
${r.blocked.map(b=>`<p class="meta"><b>${esc(NET[b.id].name)}</b>: ${esc(b.why)}</p>`).join('')}</details>`).join('')}</section>
${cities.length?`<section><label for="utilityCity">${tr('common.your_pop')}</label><div class="btns"><select id="utilityCity" style="max-width:100%">${cities.map(c=>`<option value="${c}"${c===city?' selected':''}>${esc(CITY[c].name)}</option>`).join('')}</select>${btn(tr('utilities.view_pop'),'utilityPick',{},'sm')}</div></section>${utilityKitHtml(city,true)}`:''}`);

View file

@ -23,8 +23,7 @@ function opsModal(){if(!S)return;const hired=opsHired();let h=`<div style="displ
h+=`<div class="ops-o on"><div class="ops-h"><span class="ops-i" aria-hidden="true">${I.i}</span><div class="grow"><div class="nm">${tr(I.n)}</div><div class="meta">${tr('ops.salary',{price:fmt$(INTERN_MO),d:dateStr(O.hired)})}</div></div>
${btn(UI.confirm==='opsFire'?tr('ops.really_fire'):tr('ops.fire'),'opsFire',{},'ghost sm')}</div>
<p class="ops-mood">${esc(opsMood())}</p>${opsReportHtml()}
${O.log.length?`<pre class="term ops-log">${O.log.slice(0,6).map(e=>esc(tr('peering_inbox.day_d',{d:e.d})+': '+opsEntry(e))).join('\n')}</pre>`:''}
<p class="meta">${ibx().bot?tr('ops.lpm_on',{name:opsName()}):tr('ops.lpm_off',{name:opsName()})}</p>
${O.log.length?`<pre class="term ops-log">${O.log.slice(0,6).map(e=>esc(tr('ops.day_d',{d:e.d})+': '+opsEntry(e))).join('\n')}</pre>`:''}
<div class="ops-p">${btn(`${tr('ops.floor')}: <b>${O.floor?fmt$(O.floor):tr('ops.no_cap')}</b>`,'opsFloor',{},'ghost sm')}</div></div>`;
h+=`<p class="note">${tr('ops.how_it_works',{name:opsName()})}</p>`+OPS.map(opsOrderHtml).join('');
// Per POP: switch single orders off where the player wants to decide by hand.

View file

@ -102,29 +102,29 @@ function dfPanel(l){
h+=`<section><h3>${l.own?tr('common.under_construction'):tr('common.being_spliced')}</h3><div class="kv"><span>${l.own?tr('link_panels.permits_trenching_splicing'):tr('common.iru_handover')}</span><b>${tr('common.n_days_left',{n:l.ready-S.day})}</b></div><div class="bar me"><i style="width:${done*100}%"></i></div>${l.own?`<div class="btns">${btn(tr('link_panels.hire_extra_crews_price_30_days',{price:fmt$(crewCost(l))}),'crews',{id:l.id},'sm',l.ready<=S.day+1||S.cash<crewCost(l))}${btn(tr('link_panels.finish_in_1_day_price',{price:fmt$(crewSteps(l)*crewCost(l))}),'crews',{id:l.id,all:1},'sm',!crewSteps(l)||S.cash<crewSteps(l)*crewCost(l))}</div>`:''}<p class="note">${tr('link_panels.you_can_pre_install_optics_now')}</p></section>`;}
else if(inc&&linkDown(l))h+=`<section><h3 style="color:var(--bad)">${tr('common.dark_6bf5')}</h3><p class="lead">${esc(inc.msg)}</p>${inc.cost?btn(`${esc(inc.fix||tr('common.rush_repair'))} ${fmt$(inc.cost)}`,'fixInc',{id:inc.id},'red',S.cash<inc.cost):''}</section>`;
h+=`<section><h3>${tr('common.capacity')}</h3><div class="kv"><span>${tr('link_panels.n_of_max_channels_lit',{n:(l.ch||[]).length,max:chMax(l)})}${soldSlots(l)?` · ${tr('link_panels.n_sold_as_alien_waves',{n:soldSlots(l)})}`:''}</span><b>${fmtG(load)} / ${fmtG(cap)}</b></div><div class="bar ${barCls(u)}"><i style="width:${Math.min(100,u*100)}%"></i></div>
${l.own&&l.sub?`<div class="kv"><span>${tr('common.cable_design')}</span><b>${tr((SEA_DESIGNS[l.seaDesign]||SEA_DESIGNS.standard).n)}</b></div>`:''}
${seatPanel(l)}${l.own&&l.sub?`<div class="kv"><span>${tr('common.cable_design')}</span><b>${tr((SEA_DESIGNS[l.seaDesign]||SEA_DESIGNS.standard).n)}</b></div>`:''}
<div class="kv"><span>${tr('common.latency')}</span><b>${tr('common.ms_ms_one_way',{ms:linkLat(l).toFixed(1)})}</b></div><div class="kv"><span>${l.own?tr('link_panels.right_of_way_upkeep'):tr('common.iru_lease')}</span><b>${tr('common.price_mo',{price:fmt$(l.mo)})}</b></div><div class="kv"><span>${tr('link_panels.n_amp_huts',{n:amps})}</span><b>${tr('common.price_mo',{price:fmt$(amps*AMP_MO)})}</b></div>${!bld&&!(l.ch||[]).length?`<p class="why">${tr('link_panels.this_fiber_is_dark_add_optics')}</p>`:''}</section>`;
if(!bld){const sold=S.biz.filter(b=>b.link===l.id&&(b.type==='wwave'||b.type==='dfpair'||b.type==='pairs')),off=S.offers.find(o=>o.link===l.id),fc=freeCh(l);
h+=`<section><h3>${tr('link_panels.selling_spare_capacity')}</h3><p class="lead">${tr('link_panels.other_carriers_rent_what_you_do')}</p>
<div class="kv"><span>${tr('common.free_channels')}</span><b>${fc} / ${chMax(l)}</b></div>${sold.map(b=>`<div class="row"><div class="grow"><div class="nm">${esc(b.name)}</div><div class="meta">${esc(b.what||BIZ_T[b.type].l)} · ${tr('common.price_mo',{price:fmt$(b.rate)})}</div></div></div>`).join('')}
${off?`<div class="row"><div class="grow"><div class="nm">${esc(off.name)}</div><div class="meta">${esc(off.what)} · ${tr('common.price_mo',{price:fmt$(off.rate)})} · ${tr('ui.n_d_left',{n:off.exp-S.day})}${off.broker?' · '+tr('link_panels.via_a_capacity_broker'):''}</div></div>${btn(tr('common.accept'),'accept',{id:off.id},'pink sm')}</div>`:fc>=1||pairFree(l)?`<div class="btns">${btn(tr('link_panels.list_it_with_a_capacity_broker'),'advertise',{id:l.id},'sm')}</div>`:`<p class="note">${tr('link_panels.nothing_spare_to_sell_on_this')}</p>`}</section>`;}
h+=`<section><h3>${tr('common.optics')}</h3><p class="lead">${tr('link_panels.each_channel_is_a_pair_of')}</p>`;
if(l.own&&l.sub)h+=subUpgradePanel(l);
if(l.own&&l.sub&&!l.seat)h+=subUpgradePanel(l);
for(const k of Object.keys(OPT)){const O=OPT[k],n=(l.ch||[]).filter(x=>x===k).length,why=chWhy(l,k);
const md=optMode(k,l),cc=chCost(l,k),sp=spareN(k);
h+=`<div class="row"><div class="grow"><div class="nm">${O.n} <span class="meta">${optModes(k,l).map(([g,r])=>tr('link_panels.g_to_km_km',{g:fmtG(g),km:r.toLocaleString()})).join(' · ')}</span></div><div class="meta">${esc(O.blurb)}${n?` · <b>${tr('link_panels.n_lit',{n})}</b>`:''}${sp?` · ${trn('link_panels.n_spare_on_the_shelf',sp)}`:''}</div>${md&&!md.full?`<div class="meta">⚠️ ${tr('link_panels.runs_at_g_per_channel_on',{g:fmtG(md.g)})} ${!l.sub&&regenNeed(k,l)>(l.regen|0)?trn('link_panels.n_regen_site_would_bring_it',regenNeed(k,l),{g:fmtG(O.g)}):''}</div>`:''}${why?`<div class="why">${esc(why)}</div>`:''}${opticCountControl(l,k,n)}</div>${n?btn('−','rmCh',{id:l.id,o:k},'ghost sm'):''}${btn(sp?`+ <small>${cc?tr('link_panels.spare_price',{price:fmt$(cc)}):tr('common.spare')}</small>`:`+ <small>${fmt$(cc)}</small>`,'addCh',{id:l.id,o:k},'sm',!!why||S.cash<cc)}</div>`;}
h+=`<div class="row"><div class="grow"><div class="nm">${O.n} <span class="meta">${optModes(k,l).map(([g,r])=>tr('link_panels.g_to_km_km',{g:fmtG(g),km:r.toLocaleString()})).join(' · ')}</span></div><div class="meta">${esc(O.blurb)}${n?` · <b>${tr('link_panels.n_lit',{n})}</b>`:''}${sp?` · ${trn('link_panels.n_spare_on_the_shelf',sp)}`:''}</div>${md&&!md.full?`<div class="meta">⚠️ ${tr('link_panels.runs_at_g_per_channel_on',{g:fmtG(md.g)})} ${!l.sub&&regenNeed(k,l)>(l.regen|0)?trn('link_panels.n_regen_site_would_bring_it',regenNeed(k,l),{g:fmtG(O.g)}):''}</div>`:''}${why?`<div class="why">${esc(why)}</div>`:''}${!techOk('opt',k,O.lvl)&&demoCan(O.lvl)?`<div class="btns">${demoBtn('opt',k,O.lvl,'','ghost sm')}</div>`:''}${opticCountControl(l,k,n)}</div>${n?btn('−','rmCh',{id:l.id,o:k},'ghost sm'):''}${btn(sp?`+ <small>${cc?tr('link_panels.spare_price',{price:fmt$(cc)}):tr('common.spare')}</small>`:`+ <small>${fmt$(cc)}</small>`,'addCh',{id:l.id,o:k},'sm',!!why||S.cash<cc)}</div>`;}
{const st=Object.keys(OPT).filter(k=>spareN(k)>0);h+=`<p class="note">${tr('link_panels.unplugged_optics_go_on_the_spares')}</p>`;
{const used=[...new Set(l.ch||[])].filter(k=>OPT[k]&&OPT[k].lvl<=lvl());if(used.length)h+=`<div class="btns">${used.map(k=>btn(tr('link_panels.stock_a_spare_optic_price',{optic:OPT[k].n,price:fmt$(optCost(k))}),'buySpare',{o:k},'ghost sm',S.cash<optCost(k)||spareN(k)>=64)).join('')}</div><p class="meta">${tr('link_panels.spares_bought_now_are_already_paid')}</p>`;}if(st.length)h+=`<h4 class="sub4">${tr('common.spares_shelf')}</h4>`+st.map(k=>`<div class="row"><div class="grow"><div class="nm">${spareN(k)} × ${OPT[k].n}</div></div>${btn(tr('link_panels.sell_one_price',{price:fmt$(spareValue(k))}),'sellSpare',{o:k},'ghost sm')}</div>`).join('');}
const rg=l.regen|0,rgAdd=REGEN_COST+Math.round((l.ch||[]).reduce((a,c)=>a+optCost(c),0)*REGEN_CH);
h+=`</section><section><h3>${tr('common.line_system')}</h3><div class="kv"><span>${esc(sysD.n)}</span><b>${tr('link_panels.n_amplifiers',{n:amps})}</b></div>
<div class="kv"><span>${tr('common.regen_sites')}</span><b>${rg?tr('link_panels.n_optical_spans_of_km_km',{n:rg,km:spanKm(l).toLocaleString()}):tr('common.none')}</b></div><p class="note">${tr('link_panels.a_regen_site_turns_the_light',{price:fmt$(REGEN_MO)})}</p>${l.sub&&l.own?`<p class="note">${tr('link_panels.no_regen_sites_in_the_middle')}</p>`:`<div class="btns">${rg<REGEN_MAX?btn(tr('link_panels.regen_site_price',{price:fmt$(rgAdd)}),'regen',{id:l.id,d:1},'sm',S.cash<rgAdd):''}${rg?btn(tr('common.regen_site'),'regen',{id:l.id,d:-1},'ghost sm'):''}</div>`}<p class="note">${esc(sysD.blurb)}</p><div class="btns">${(()=>{const t=sysNext(l);if(!t)return '';const T=DF_SYS[t],c=sysUpCost(l);return T.lvl>lvl()?btn(tr('link_panels.sys_level_n',{sys:T.n,n:T.lvl}),'upSys',{id:l.id},'sm',true):btn(tr('link_panels.upgrade_to_sys_price',{sys:T.n,price:fmt$(c)}),'upSys',{id:l.id},'sm',S.cash<c);})()}${pairBtn(l)}${btn(l.spares?tr('link_panels.spares_kit_on'):tr('link_panels.keep_a_spares_kit_price_mo',{price:fmt$(Math.round(150+(l.ch||[]).length*80))}),'spares',{id:l.id},l.spares?'green sm':'sm')}</div><p class="note">${tr('link_panels.spare_optics_and_amplifier_cards_on')}</p></section>`;
<div class="kv"><span>${tr('common.regen_sites')}</span><b>${rg?tr('link_panels.n_optical_spans_of_km_km',{n:rg,km:spanKm(l).toLocaleString()}):tr('common.none')}</b></div><p class="note">${tr('link_panels.a_regen_site_turns_the_light',{price:fmt$(REGEN_MO)})}</p>${l.sub&&l.own?`<p class="note">${tr('link_panels.no_regen_sites_in_the_middle')}</p>`:`<div class="btns">${rg<REGEN_MAX?btn(tr('link_panels.regen_site_price',{price:fmt$(rgAdd)}),'regen',{id:l.id,d:1},'sm',S.cash<rgAdd):''}${rg?btn(tr('common.regen_site'),'regen',{id:l.id,d:-1},'ghost sm'):''}</div>`}<p class="note">${esc(sysD.blurb)}</p><div class="btns">${(()=>{const t=sysNext(l);if(!t)return '';const T=DF_SYS[t],c=sysUpCost(l);return !techOk('sys',t,T.lvl)?demoBtn('sys',t,T.lvl,tr('link_panels.sys_level_n',{sys:T.n,n:T.lvl}),'sm'):btn(tr('link_panels.upgrade_to_sys_price',{sys:T.n,price:fmt$(c)}),'upSys',{id:l.id},'sm',S.cash<c);})()}${pairBtn(l)}${btn(l.spares?tr('link_panels.spares_kit_on'):tr('link_panels.keep_a_spares_kit_price_mo',{price:fmt$(Math.round(150+(l.ch||[]).length*80))}),'spares',{id:l.id},l.spares?'green sm':'sm')}</div><p class="note">${tr('link_panels.spare_optics_and_amplifier_cards_on')}</p></section>`;
{const sib=pairLinks(l.a,l.b).filter(x=>x!==l&&x.kind!=='vxc');h+=`<section><h3>${tr('common.redundancy')}</h3><p class="lead">${sib.length?tr('link_panels.other_links_between_these_cities'):tr('link_panels.this_is_the_only_link_between')}</p>${sib.map(x=>`<div class="row"><div class="grow"><div class="nm">${esc(capName(x))} ${linkDown(x)?'<span class="tag restrictive">'+tr('common.cut')+'</span>':''}${x.standby?' <span class="tag st">'+tr('common.standby')+'</span>':''}</div><div class="meta">${(x.trench||x.id)===(l.trench||l.id)?tr('common.same_trench'):tr('common.diverse_route')}</div></div>${btn(tr('common.open'),'selLink',{id:x.id},'ghost sm')}</div>`).join('')}<div class="btns">${btn(tr('link_panels.add_parallel_link'),'addParallel',{id:l.id},'pink sm')}</div></section>`;}
h+=`${trafficSection(l)}${metricSection(l)}<section>${btn(UI.confirm===l.id?tr('link_panels.really_give_it_up'):(l.own?tr('link_panels.abandon_the_fiber'):tr('link_panels.cancel_the_iru')),'rmLink',{id:l.id},'ghost sm')}${cabBack(l)>0?`<p class="note">${tr('link_panels.giving_it_up_now_returns_price',{price:fmt$(cabBack(l))})}</p>`:''}</section></div>`;
return h;
}
function offersHere(c){
const os=S.offers.filter(o=>bCities(o).includes(c));if(!os.length)return '';
return `<section><h3>${tr('common.offers_here')}</h3>${os.map(o=>`<div class="row"><div class="grow"><div class="nm">${esc(o.name)}</div><div class="meta">${esc(BIZ_T[o.type].l)}${o.city2?` ${CITY[o.city].name} ⇄ ${CITY[o.city2].name}`:''} · ${bTerms(o)} · ${tr('ui.n_d_left',{n:o.exp-S.day})}</div>${R.reach<0.99&&!BIZ_T[o.type].l2?`<div class="why">${tr('link_panels.they_need_the_full_internet_your',{pct:pct(R.reach)})}</div>`:''}${o.type==='scrub'&&!hasScrub()?`<div class="why">${tr('link_panels.needs_your_own_scrubbing_center')}</div>`:''}${bRisk(o)}${reqList(o)}${bHas(o)?'':`<div class="why">${tr('link_panels.needs_a_pop_in_cities_too',{cities:bCities(o).filter(x=>!S.pops[x]).map(x=>CITY[x].name).join(', ')})}</div>`}</div>${bHas(o)?btn(tr('common.accept'),'accept',{id:o.id},'green sm'):''}${btn(tr('common.no'),'decline',{id:o.id},'ghost sm')}</div>`).join('')}</section>`;
return `<section><h3>${tr('common.offers_here')}</h3>${os.map(o=>`<div class="row"><div class="grow"><div class="nm">${esc(o.name)}</div><div class="meta">${esc(BIZ_T[o.type].l)}${o.city2?` ${CITY[o.city].name} ⇄ ${CITY[o.city2].name}`:''} · ${bTerms(o)} · ${tr('ui.n_d_left',{n:o.exp-S.day})}</div>${spotWhy(o)}${R.reach<0.99&&!BIZ_T[o.type].l2?`<div class="why">${tr('link_panels.they_need_the_full_internet_your',{pct:pct(R.reach)})}</div>`:''}${o.type==='scrub'&&!hasScrub()?`<div class="why">${tr('link_panels.needs_your_own_scrubbing_center')}</div>`:''}${bRisk(o)}${reqList(o)}${bHas(o)?'':`<div class="why">${tr('link_panels.needs_a_pop_in_cities_too',{cities:bCities(o).filter(x=>!S.pops[x]).map(x=>CITY[x].name).join(', ')})}</div>`}</div>${bHas(o)?btn(tr('common.accept'),'accept',{id:o.id},'green sm'):''}${btn(tr('common.no'),'decline',{id:o.id},'ghost sm')}</div>`).join('')}</section>`;
}
function linkPanel(id){
const l=S.links.find(x=>x.id===id);if(!l){UI.sel=null;return '';}

View file

@ -5,13 +5,13 @@ const pSrv=g=>({l:tr('common.traffic_served'),v:R.served,max:g,txt:`${fmtG(R.ser
const pReach=()=>({l:tr('common.reach'),v:R.reach,max:0.99,txt:`${pct(R.reach)} / 99%`});
const pChk=(l,ok)=>({l,v:ok?1:0,max:1,txt:ok?'✓':'—'});
const SCN_PROG={stg:()=>[{l:tr('common.reach'),v:R.reach,max:0.5,txt:`${pct(R.reach)} / 50%`},pSrv(300)],redsea:()=>{const g=asiaG(),n=S.stats.asiaRun||0;return [pChk(tr('progress.a_path_from_marseille_to_singapore'),pathExists('mrs','sin')),{l:tr('progress.your_traffic_to_and_from_asia'),v:Math.min(g,RS_G),max:RS_G,txt:`${fmtG(g)} / ${fmtG(RS_G)}`},{l:tr('progress.days_in_a_row_at_g',{g:fmtG(RS_G)}),v:n,max:RS_DAYS,txt:`${n} / ${RS_DAYS}`}];},spat:()=>[pReach(),pSrv(150)],
carnaval:()=>[pChk(tr('progress.carnaval_delivered_in_full'),(S.stats.evFull||0)>=1)],ixbr:()=>{const n=brIxN();return [{l:tr('progress.ix_brrr_ports'),v:n,max:15,txt:`${n} / 15`},pChk(tr('progress.a_port_on_ix_brrr_manaus'),S.ixp.mao!==undefined),pSrv(200)];},
c2c:()=>[pChk(tr('progress.a_path_from_cape_town_to'),pathExists('cpt','cai')),...['lag','nbo'].map(c=>pChk(tr('progress.pop_in_city',{city:CITY[c].name}),!!S.pops[c])),pSrv(150)],
carnaval:()=>[pChk(tr('progress.carnaval_delivered_in_full'),(S.stats.evFull||0)>=1)],ixbr:()=>{const n=brIxN();return [{l:tr('progress.ix_brrr_ports_on_your_backbone'),v:n,max:15,txt:`${n} / 15`},pChk(tr('progress.a_port_on_ix_brrr_manaus'),S.ixp.mao!==undefined),pSrv(200)];},
c2c:()=>[pChk(tr('progress.a_path_from_cape_town_to'),pathExists('cpt','cai')),...['lag','nbo'].map(c=>pChk(tr('progress.city_on_your_network',{city:CITY[c].name}),pathExists('cpt',c))),pSrv(150)],
pac:()=>[pChk(tr('progress.1_6t_on_every_hop_from'),fastPath('lax','syd',1600)),pChk(tr('progress.a_path_from_los_angeles_to'),pathExists('lax','tok')),pSrv(150)],
atl:()=>[pChk(tr('progress.1_6t_on_every_hop_from_a90b'),fastPath('mia','mad',1600)),pChk(tr('progress.1_6t_on_every_hop_from_da01'),fastPath('lis','lag',1600)),pSrv(100)],
darien:()=>[...['bog','lim','scl','sao'].map(c=>pChk(tr('progress.pop_in_city',{city:CITY[c].name}),!!S.pops[c])),pSrv(150)],
gangnam:()=>[pReach(),pSrv(200)],
fttb:()=>[...AU_BB.map(c=>pChk(tr('progress.broadband_in_city',{city:CITY[c].name}),!!(S.pops[c]&&S.pops[c].bb))),{l:tr('common.cables_overseas'),v:Math.min(2,auExits()),max:2,txt:`${auExits()} / 2`}],
darien:()=>[...['bog','lim','scl','sao'].map(c=>pChk(tr('progress.city_on_your_network',{city:CITY[c].name}),pathExists('pan',c))),pSrv(150)],
gangnam:()=>{const sf=S.pops.icn?sfOf(R,'icn'):0,pr=R.revMo-R.costMo;return [pReach(),pSrv(GN_G),{l:tr('progress.seoul_served_well'),v:sf,max:GN_Q,txt:`${pct(sf)} / ${pct(GN_Q)}`},{l:tr('progress.monthly_profit'),v:R.costMo>0?Math.min(1,R.revMo/R.costMo):1,max:1,txt:fmt$(Math.round(pr))}];},
fttb:()=>[...AU_BB.map(c=>pChk(tr('progress.broadband_in_city',{city:CITY[c].name}),!!(S.pops[c]&&S.pops[c].bb))),{l:tr('common.cables_overseas'),v:Math.min(2,auExits()),max:2,txt:`${auExits()} / 2`},pSrv(FTTB_G)],
flood:()=>{const ok=S.stats.ddosOk||0,big=S.stats.ddosOkBig||0,attacks=ddosAll();
return [{l:tr('common.floods_held'),v:ok,max:20,txt:`${ok} / 20`},{l:tr('progress.terabit_floods_held'),v:big,max:5,txt:`${big} / 5`},{l:tr('progress.floods_that_got_through'),v:0,max:0,txt:String(S.stats.ddosLost||0)}].concat(attacks.map(a=>({l:tr('progress.under_attack_now'),v:0,max:0,txt:`${fmtG(a.gbps)} · ${CITY[a.city].name} · ${pct(a.worst===undefined?1:a.worst)}`})));},baltic:()=>[{l:tr('progress.days_in_a_row_with_99'),v:S.stats.clean||0,max:90,txt:tr('progress.n_of_m',{n:S.stats.clean||0,m:90})}]};
function scnProg(){const sc=S&&S.scn;if(!sc)return null;

View file

@ -20,10 +20,10 @@ function leaseSwaps(){const by={};
if(op&&op.n<=DF_SYS[sys].max)x.opts.push(swapOpt('iru',DF_SYS[sys].cost+ampCount(km)*AMP_COST+op.up,dfLeaseMo(km)+ampCount(km)*AMP_MO+op.mo,leadDays(IRU_DAYS),wmo));}
// Dig on land, lay a cable between landing stations (even ones that share a landmass), or both.
const whys=[];for(const cab of [false,true]){if(cab?!seaCab(a,b):sub)continue;
const why=cab?ownCabWhy(a,b):!dfAllowed(a,b)?tr('lease_swaps.nobody_lets_you_dig_on_this'):lvl()<3?tr('lease_swaps.digging_your_own_fiber_unlocks_at'):'';
const why=cab?ownCabWhy(a,b):!dfAllowed(a,b)?tr('lease_swaps.nobody_lets_you_dig_on_this'):lvl()<2?tr('lease_swaps.digging_your_own_fiber_unlocks_at'):'';
if(why){whys.push(why);continue;}const km=cab?ownCabKm(a,b):kmBetween(a,b),op=swapOptics(km,cap,cab,'roadm');
if(!op){whys.push(tr('lease_swaps.no_optic_you_can_buy_reaches',{km:km.toLocaleString()}));continue;}
x.opts.push(swapOpt(cab?'cab':'own',(cab?ownCabCost(km):dfBuildCost(km)+DF_SYS.roadm.cost+ampCount(km)*AMP_COST)+op.up,(cab?ownCabMo(km):Math.round(km*0.15)+ampCount(km)*AMP_MO)+op.mo,cab?ownCabDays(km):dfBuildDays(km),mo));}
x.opts.push(swapOpt(cab?'cab':'own',(cab?ownCabCost(km):digCost(km)+DF_SYS.roadm.cost+ampCount(km)*AMP_COST)+op.up,(cab?ownCabMo(km):Math.round(km*0.15)+ampCount(km)*AMP_MO)+op.mo,cab?ownCabDays(km):dfBuildDays(km),mo));}
x.why=x.opts.some(o=>o.k!=='iru')?'':whys.join(' ');
const sv=[...x.opts.map(o=>o.save),x.lit].filter(v=>v!==undefined);if(sv.length)x.best=Math.max(...sv);return x;})
.sort((p,q)=>((p.best===undefined)-(q.best===undefined))||(q.best||0)-(p.best||0)||q.mo-p.mo);}

View file

@ -1,9 +1,9 @@
/* ---------- notifications: the NOC keeps the last ten minutes, readable and openable ---------- */
const LOG_KEEP=60,LOG_MS=10*60*1000,LOG_KINDS=['','good','bad','goal'],LOG_OPEN=['city','link','cust','bank','tab','inbox'],LOG_TABS=['goals','deals','noc','nets'];
const LOG_KEEP=60,LOG_MS=10*60*1000,LOG_KINDS=['','good','bad','goal'],LOG_OPEN=['city','link','cust','bank','tab'],LOG_TABS=['goals','deals','noc','nets'];
// What a notification is about, from the button it came with: the same place its own button would take you.
function openOf(actions){for(const a of actions||[]){const g=a.args||{};
if(a.act==='focusCity'&&isCity(g.city))return {a:'city',v:g.city};if(a.act==='selLink'&&g.id)return {a:'link',v:String(g.id)};
if(a.act==='custGo'&&g.id)return {a:'cust',v:String(g.id)};if(a.act==='bank')return {a:'bank'};if(a.act==='inbox')return {a:'inbox'};if(a.act==='leftTab'&&LOG_TABS.includes(g.t))return {a:'tab',v:g.t};}return null;}
if(a.act==='custGo'&&g.id)return {a:'cust',v:String(g.id)};if(a.act==='bank')return {a:'bank'};if(a.act==='leftTab'&&LOG_TABS.includes(g.t))return {a:'tab',v:g.t};}return null;}
// Otherwise from the text: a link between two of your cities it names, or the first of your cities it names.
function openFromText(t){const cs=Object.keys(S.pops).map(c=>[c,t.indexOf(CITY[c].name)]).filter(([,i])=>i>=0).sort((a,b)=>a[1]-b[1]).map(([c])=>c);
if(cs.length>=2){const l=S.links.find(l=>(l.a===cs[0]&&l.b===cs[1])||(l.a===cs[1]&&l.b===cs[0]));if(l)return {a:'link',v:l.id};}return cs.length?{a:'city',v:cs[0]}:null;}

View file

@ -13,7 +13,7 @@ function pniAllModal(net,tier=1){const b=pniBatch(net,tier);if(!b)return;UI.pniA
${all?`<p class="note">${tr('pni_all.delivery_and_traffic_charges')}</p>`:n.perG?`<p class="note">${tr('pni_all.traffic_charges_apply',{price:fmt$(n.perG)})}</p>`:''}
${S.cash<b.cost?`<p class="why">${tr('interface.not_enough_cash_wait_for_revenue')}</p>`:''}
${all?controls:''}
${all&&b.orders.length?`<details><summary>${trn('pni_all.n_networks',Object.keys(byNet).length)}</summary>${Object.entries(byNet).map(([id,cities])=>`<div class="kv"><b>${esc(NET[id].name)}</b><span>${trn('save.n_pop',cities.length)}</span></div><p class="meta">${cities.map(c=>esc(CITY[c].name)).join(' · ')}</p>`).join('')}</details>`:b.orders.length?`<p class="meta">${b.orders.map(q=>esc(CITY[q.city].name)).join(' · ')}</p><p class="note">${pniEta(net)}</p>`:''}
${all&&b.orders.length?`<details><summary>${trn('pni_all.n_networks',Object.keys(byNet).length)}</summary>${Object.entries(byNet).map(([id,cities])=>`<div class="kv"><b>${esc(NET[id].name)}</b><span>${trn('save.n_pop',cities.length)}</span></div><div class="pchips">${pniChip(id,null)}</div><p class="meta">${cities.map(c=>esc(CITY[c].name)).join(' · ')}</p>`).join('')}</details>`:b.orders.length?`<div class="pchips">${pniChip(net,null)}</div><p class="meta">${b.orders.map(q=>esc(CITY[q.city].name)).join(' · ')}</p><p class="note">${pniEta(net)}</p>`:''}
${b.kept?`<p class="note">${trn('pni_all.n_existing_or_pending_unchanged',b.kept)}</p>`:''}
${b.blocked.length?(all?`<details><summary>${trn('pni_all.n_blocked_connections',b.blocked.length)}</summary>${blocked}</details>`:`<h3>${trn('pni_all.n_blocked_pops',b.blocked.length)}</h3>${blocked}`):''}
${!b.shared.length?`<p class="why">${all?tr('pni_all.no_shared_locations'):tr('pni_all.no_shared_pops')}</p>`:''}

View file

@ -9,19 +9,24 @@ function homePick(){const cs=Object.keys(CITY).filter(c=>homeOk(c)&&!START5.incl
return g.length?`<optgroup label="${esc(REG[r])}">${g.map(opt).join('')}</optgroup>`:'';}).join('')}</select>`;}
// The line under the drawer: what the suggested home is like, or which continent another city is on.
const homeWhat=()=>START5.includes(UI.startCity)?esc(START_D()[UI.startCity]):`${esc(CITY[UI.startCity].name)} · ${esc(REG[CITY[UI.startCity].reg])}`;
/* Your own AS number (#135): any public 16- or 32-bit ASN, but not AS 0, AS_TRANS, the documentation and private ranges, or
one a network on the map already uses. Left empty, the game picks one from the private-looking 200000s as before. */
const asnOk=a=>Number.isInteger(a)&&a>=1&&a<=4294967294&&a!==23456&&!(a>=64496&&a<=131071)&&!(a>=4200000000)&&!NETS.some(n=>n.asn===a);
const asnSuggest=()=>{for(;;){const a=200000+Math.floor(Math.random()*15000);if(asnOk(a))return a;}};
function showTitle(){
const list=slotIdx(true),top=slotTop(list),many=list.length>1||(list.length===1&&list[0]!==top);
if(UI.nm==null)UI.nm=randomNetworkName();
if(UI.nm==null)UI.nm=randomNetworkName();if(UI.asnSug==null)UI.asnSug=asnSuggest();
openModal(`<div class="tlang"><label class="sr-only" for="langTitle">${tr('common.language')}</label>${langPick('langTitle')}</div><div class="title-art"><svg width="74" height="74" viewBox="0 0 74 74" aria-hidden="true"><path d="M10 60V40c0-14 10-24 24-24h18" fill="none" stroke="#1E2640" stroke-width="16" stroke-linecap="round"/><path d="M10 60V40c0-14 10-24 24-24h18" fill="none" stroke="#FFD23F" stroke-width="9" stroke-linecap="round"/><circle cx="58" cy="16" r="11" fill="#FF4F9A" stroke="#1E2640" stroke-width="4"/><circle cx="21" cy="44" r="3" fill="#fff"/><circle cx="30" cy="27" r="3" fill="#fff"/></svg>
<h1>Series<br>of <span>Tubes</span></h1></div>
<p class="tagline">${tr('title.build_an_internet_lay_fiber_between')}</p>${isPhone()?installRow():''}
${top?`<div class="btns" style="margin-bottom:6px">${btn(tr('title.continue_name_date',{name:esc(top.name||tr('common.unnamed_network')),date:dateStr(top.day)}),'cont',{id:top.id},'pink big')}</div>`:''}
${top?`<div class="btns tcont" style="margin-bottom:6px">${btn(tr('title.continue_name_date',{name:esc(top.name||tr('common.unnamed_network')),date:dateStr(top.day)}),'cont',{id:top.id},'pink big')}</div>`:''}
${many?slotsHtml():''}
<label class="f" for="nmIn">${tr('title.name_your_network')}</label><div class="network-name"><input class="t" id="nmIn" maxlength="24" value="${esc(UI.nm)}" autocomplete="off">${btn(tr('common.another_one'),'randomName',{},'ghost sm')}</div>
<label class="f" for="nmIn">${tr('title.name_your_network')}</label><div class="network-name"><div class="nmwrap"><input class="t" id="nmIn" maxlength="24" value="${esc(UI.nm)}" autocomplete="off"><button class="reroll" data-act="randomName" aria-label="${tr('common.another_one')}" title="${tr('common.another_one')}">↻</button></div><div class="asnwrap"><span aria-hidden="true">AS</span><input class="t" id="asnIn" inputmode="numeric" maxlength="10" value="${esc(UI.asnTxt==null?'':UI.asnTxt)}" placeholder="${UI.asnSug}" aria-label="${tr('title.as_number')}" autocomplete="off"></div></div>
${doorsHtml()}
<label class="f" id="homeLbl" for="homeSel">${tr('title.pick_your_home_city')}</label>${homePick()}<p class="note" id="homeWhat">${homeWhat()}</p>
<div class="btns cta tcta" style="margin-top:16px">${btn(list.length?tr('common.start_a_new_network'):tr('common.start_building'),'start',{},'big')}${btn(tr('common.how_to_play'),'help',{},'ghost')}${btn(tr('common.import_a_save'),'importPick',{},'ghost')}${btn(tr('common.settings'),'settings',{},'ghost')}</div><p class="ver">v${APP_VERSION} · <a href="https://github.com/fjaeckel/seriesoftubes" target="_blank" rel="noopener">${tr('title.source_on_github')}</a> · <a href="${SIGNAL}" target="_blank" rel="noopener">${tr('title.chat_on_signal')}</a> · ${tr('title.cookieless_stats_no_tracking')}</p>`);
$('nmIn').addEventListener('input',e=>{UI.nm=e.target.value;});
$('asnIn').addEventListener('input',e=>{UI.asnTxt=e.target.value.replace(/\D/g,'').slice(0,10);if(e.target.value!==UI.asnTxt)e.target.value=UI.asnTxt;e.target.classList.toggle('bad',!!UI.asnTxt&&!asnOk(+UI.asnTxt));});
}
// "What's new": shown once to returning players after an update, or on demand.
function whatsNew(returning,force){

View file

@ -1,6 +1,6 @@
/* "Your networks" on the title screen: drawn from the index alone, so it stays instant however big the saves are. */
function slotAgo(t){const m=Math.max(0,Math.round((Date.now()-t)/60000));
return m<1?tr('slots.just_now'):m<60?trn('notifications.n_min_ago',m):m<1440?trn('slots.n_h_ago',Math.round(m/60)):trn('peering_inbox.n_day_ago',Math.round(m/1440));}
return m<1?tr('slots.just_now'):m<60?trn('notifications.n_min_ago',m):m<1440?trn('slots.n_h_ago',Math.round(m/60)):trn('slots.n_day_ago',Math.round(m/1440));}
const slotIcon=e=>e.broken?'🩹':e.mode==='scenario'?'🏆':e.mode==='sandbox'?'🏖️':(PRESETS[e.preset]||PRESETS.oncall).i;
// The network to continue: the most recent one that is not open in another window (or damaged).
function slotTop(list){return slotByAt(list).find(e=>!e.broken&&!slotBusy(e.id))||null;}

View file

@ -12,11 +12,11 @@ function showHelp(){
<dt>${tr('help.pni_lead_times')}</dt><dd>${tr('help.a_cross_connect_with_a_small')}</dd>
<dt>${tr('common.supply_chain')}</dt><dd>${tr('help.routers_optics_and_new_builds_get')}</dd>
<dt>${tr('common.backhaul_latency')}</dt><dd>${tr('help.users_feel_the_round_trip_to')}</dd>
<dt>${tr('common.peering_inbox')}</dt><dd>${tr('help.every_ix_port_brings_peering')}</dd>
<dt>${tr('common.peering_policy')}</dt><dd>${tr('help.every_ix_port_brings_requests')}</dd>
<dt>${tr('common.embedded_cache')}</dt><dd>${tr('help.a_cdn_s_server_in_your')}</dd>
<dt>DE-KICKS</dt><dd>${tr('help.the_group_behind_several_big')}</dd><dt>${tr('common.remote_peering')}</dt><dd>${tr('help.reach_an_ix_over_a_fabric')}</dd><dt>${tr('common.peering_policy')}</dt><dd>${tr('help.open_peers_with_anyone_selective')}</dd>
<dt>${tr('common.waves')}</dt><dd>${tr('help.your_fiber_links_are_leased_waves')}</dd><dt>${tr('common.95th_percentile')}</dt><dd>${tr('help.transit_bills_sample_your_usage')}</dd><dt>${tr('common.routers')}</dt><dd>${tr('help.each_pop_s_router_model_caps')}</dd><dt>${tr('common.dark_fiber')}</dt><dd>${tr('help.lease_an_iru_or_build_your')}</dd><dt>${tr('common.subsea_cables')}</dt><dd>${tr('help.subsea_waves_can_only_follow_cable')}</dd><dt>${tr('common.latency')}</dt><dd>${tr('help.every_link_has_latency_high')}</dd><dt>${tr('common.noc_dashboard')}</dt><dd>${tr('help.the_chart_button_at_the_top')}</dd><dt>${tr('common.asia')}</dt><dd>${tr('help.a_weird_underserved_market_transit')}</dd><dt>${tr('common.russia')}</dt><dd>${tr('help.moscow_needs_a_mandatory_government')}</dd><dt>${tr('help.events_chains_and_wholesale')}</dt><dd>${tr('help.event_networks_a_final_a_festival')}</dd><dt>${tr('common.bank')}</dt><dd>${tr('help.tap_your_cash_to_open_the')}</dd><dt>${tr('common.lags')}</dt><dd>${tr('help.out_of_port_speed_bundle_up')}</dd><dt>${tr('common.traffic_engineering')}</dt><dd>${tr('help.tap_a_link_to_see_which')}</dd><dt>${tr('common.china')}</dt><dd>${tr('help.mainland_china_needs_a_license_and')}</dd><dt>${tr('common.weird_requirements')}</dt><dd>${tr('help.some_customers_come_with_conditions')}</dd><dt>${tr('common.customer_levels')}</dt><dd>${tr('help.as_your_peak_traffic_and_footprint')}</dd><dt>${tr('help.l2vpn_ddos_protection')}</dt><dd>${tr('help.businesses_may_want_a_private')}</dd><dt>${tr('common.scrubbing_centers')}</dt><dd>${tr('help.build_one_in_as_many_pops')}</dd><dt>${tr('common.nni_fabrics')}</dt><dd>${tr('help.megapork_pocketfabric_and')}</dd>
<dt>${tr('common.conferences')}</dt><dd>${tr('help.nanog_ripe_denog_and_friends_come')}</dd><dt>${tr('common.modes')}</dt><dd>${tr('help.one_game_four_doors_puzzles_are')}</dd><dt>${tr('common.traceroute')}</dt><dd>${tr('help.tap_traceroute_on_any_of_your')}</dd><dt>${tr('common.badges')}</dt><dd>${tr('help.below_your_goals_sits_a_wall')}</dd><dt>${tr('common.the_giants')}</dt><dd>${tr('help.at_customer_level_3_and_4')}</dd><dt>RouteScript</dt><dd>${tr('help.once_auto_te_is_installed_you')}</dd><dt>Auto-TE</dt><dd>${tr('help.traffic_follows_the_shortest_path_by')}</dd><dt>${tr('common.metro_diversity')}</dt><dd>${tr('help.a_pop_is_one_building_until')}</dd><dt>${tr('common.wave_markets')}</dt><dd>${tr('help.what_a_wave_costs_depends_on')}</dd><dt>${tr('common.regional_quirks')}</dt><dd>${tr('help.in_the_gulf_saudi_pops_need')}</dd><dt>${tr('common.boot_times')}</dt><dd>${tr('help.some_routers_take_forever_to_boot')}</dd><dt>${tr('common.failures')}</dt><dd>${tr('help.things_break_all_the_time_fiber')}</dd>
<dt>${tr('common.conferences')}</dt><dd>${tr('help.nanog_ripe_denog_and_friends_come')}</dd><dt>${tr('common.modes')}</dt><dd>${tr('help.one_game_four_doors_and_the')}</dd><dt>${tr('common.traceroute')}</dt><dd>${tr('help.tap_traceroute_on_any_of_your')}</dd><dt>${tr('common.badges')}</dt><dd>${tr('help.below_your_goals_sits_a_wall')}</dd><dt>${tr('common.the_giants')}</dt><dd>${tr('help.at_customer_level_3_and_4')}</dd><dt>RouteScript</dt><dd>${tr('help.once_auto_te_is_installed_you')}</dd><dt>Auto-TE</dt><dd>${tr('help.traffic_follows_the_shortest_path_by')}</dd><dt>${tr('common.metro_diversity')}</dt><dd>${tr('help.a_pop_is_one_building_until')}</dd><dt>${tr('common.wave_markets')}</dt><dd>${tr('help.what_a_wave_costs_depends_on')}</dd><dt>${tr('common.regional_quirks')}</dt><dd>${tr('help.in_the_gulf_saudi_pops_need')}</dd><dt>${tr('common.boot_times')}</dt><dd>${tr('help.some_routers_take_forever_to_boot')}</dd><dt>${tr('common.failures')}</dt><dd>${tr('help.things_break_all_the_time_fiber')}</dd>
<dt>RouteScript</dt><dd>${tr('help.rules_for_your_auto_te_controller')}</dd>
</dl><h3 style="margin:16px 0 0">${tr('help.want_to_know_how_it_really')}</h3>${plugHtml(true)}${chatHtml()}${issueHtml()}</dl><div class="btns" style="margin-top:14px">${btn(UI.started?tr('common.back_to_the_map'):tr('common.got_it'),'helpClose',{},'big')}${RELEASE_NOTES.length?btn(tr('common.what_s_new_in_v',{v:esc(APP_VERSION)}),'whatsNewShow',{},'ghost'):''}${UI.started&&S&&!S.lost?btn(tr('common.start_a_new_network'),'resetAsk',{},'ghost sm'):''}</div><div class="btns" style="margin-top:6px">${UI.started&&S&&!S.lost?btn(tr('common.export_save'),'exportSave',{},'ghost sm'):''}${btn(tr('common.import_a_save'),'importPick',{},'ghost sm')}${btn(tr('common.settings'),'settings',{},'ghost sm')}</div>`);
}

View file

@ -7,13 +7,13 @@ function dfModalBody(a,b,km,pop){
if(landX(a,b)&&cnCity(a)===cnCity(b))return `<p class="lead" style="margin-top:10px">${tr('fiber_modals.nobody_sells_one_fiber_pair_across')}</p>`+sea;
if(!dfAllowed(a,b))return `<p class="lead" style="margin-top:10px">${tr('fiber_modals.dark_fiber_across_the_chinese_border')}</p>`+sea;
if(lvl()<2)return `<p class="lead" style="margin-top:10px">${tr('fiber_modals.dark_fiber_unlocks_at_customer_level')}</p>`+sea;
const src=UI.dfSrc==='build'&&lvl()>=3&&!sc?'build':'lease',sys=DF_SYS[UI.dfSys]&&DF_SYS[UI.dfSys].lvl<=lvl()?UI.dfSys:'lite',amps=ampCount(km);
const up=(src==='build'?dfBuildCost(km):0)+DF_SYS[sys].cost+amps*AMP_COST+pop,mo=(src==='build'?Math.round(km*0.15):dfLeaseMo(km))+amps*AMP_MO;
const src=UI.dfSrc==='build'&&!sc?'build':'lease',sys=DF_SYS[UI.dfSys]&&techOk('sys',UI.dfSys,DF_SYS[UI.dfSys].lvl)?UI.dfSys:'lite',amps=ampCount(km);
const up=(src==='build'?digCost(km):0)+sysCost(sys)+amps*AMP_COST+pop,mo=(src==='build'?Math.round(km*0.15):dfLeaseMo(km))+amps*AMP_MO;
const w=Math.round(waveMo(km,false,4));
return `<p class="lead" style="margin-top:8px">${tr('fiber_modals.a_fiber_pair_of_your_own',{km:AMP_EVERY})}</p>
<h4 class="sub4">${tr('common.the_glass')}</h4><div class="seg">${btn(tr('fiber_modals.lease_an_iru_price_mo_ready_n',{price:fmt$(dfLeaseMo(km)),n:leadDays(IRU_DAYS)}),'dfSrc',{v:'lease'},src==='lease'?'pink':'ghost')}${sc?btn(cabOpen()?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_tier_1'),'ownCab',{},'ghost',!!ownCabWhy(a,b)):btn(lvl()>=3?tr('fiber_modals.build_your_own_price_n_days',{price:fmt$(dfBuildCost(km)),n:dfBuildDays(km)}):tr('fiber_modals.build_your_own_level_3'),'dfSrc',{v:'build'},src==='build'?'pink':'ghost',lvl()<3)}${sea?btn(cabOpen()?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_tier_1'),'ownCab',{},'ghost',!!ownCabWhy(a,b)):''}</div>${sc?`<p class="note">${tr('fiber_modals.a_fiber_pair_on_cable_km',{cable:esc(CAB[sc.cid].name),km:sc.km.toLocaleString()})}</p>`:''}
<h4 class="sub4">${tr('common.the_glass')}</h4><div class="seg">${btn(tr('fiber_modals.lease_an_iru_price_mo_ready_n',{price:fmt$(dfLeaseMo(km)),n:leadDays(IRU_DAYS)}),'dfSrc',{v:'lease'},src==='lease'?'pink':'ghost')}${sc?btn(cabOpen()?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_tier_1'),'ownCab',{},'ghost',!!ownCabWhy(a,b)):btn(lvl()>=3?tr('fiber_modals.build_your_own_price_n_days',{price:fmt$(dfBuildCost(km)),n:dfBuildDays(km)}):tr('specialist.dig_your_own_as_a_pioneer',{price:fmt$(digCost(km)),n:dfBuildDays(km),p:Math.round((PIONEER-1)*100)}),'dfSrc',{v:'build'},src==='build'?'pink':'ghost')}${sea?btn(cabOpen()?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_tier_1'),'ownCab',{},'ghost',!!ownCabWhy(a,b)):''}</div>${sc?`<p class="note">${tr('fiber_modals.a_fiber_pair_on_cable_km',{cable:esc(CAB[sc.cid].name),km:sc.km.toLocaleString()})}</p>`:''}
${src==='build'?`<p class="note">${tr('fiber_modals.your_own_trench_almost_no_rent')}</p>`:''}
<h4 class="sub4">${tr('common.line_system')}</h4><div class="seg">${Object.keys(DF_SYS).map(k=>btn(`${DF_SYS[k].n} <small>${DF_SYS[k].lvl>lvl()?tr('fiber_modals.level_n',{n:DF_SYS[k].lvl}):fmt$(DF_SYS[k].cost)}</small>`,'dfSys',{v:k},sys===k?'pink':'ghost',DF_SYS[k].lvl>lvl())).join('')}</div>
<h4 class="sub4">${tr('common.line_system')}</h4><div class="seg">${Object.keys(DF_SYS).map(k=>btn(`${DF_SYS[k].n} <small>${!techOk('sys',k,DF_SYS[k].lvl)?tr('fiber_modals.level_n',{n:DF_SYS[k].lvl}):fmt$(sysCost(k))}</small>`,'dfSys',{v:k},sys===k?'pink':'ghost',!techOk('sys',k,DF_SYS[k].lvl))).join('')}</div>${Object.keys(DF_SYS).filter(k=>!techOk('sys',k,DF_SYS[k].lvl)&&demoCan(DF_SYS[k].lvl)).map(k=>`<div class="btns">${demoBtn('sys',k,DF_SYS[k].lvl,'','ghost sm')} <small class="meta">${DF_SYS[k].n}</small></div>`).join('')}
<p class="note">${esc(DF_SYS[sys].blurb)} ${trn('fiber_modals.plus_n_in_line_amplifier_price',amps,{price:fmt$(AMP_COST),mo:fmt$(AMP_MO)})}</p>${km>reachOn(OPT.tp16.reach,!!sc)?`<p class="note">${tr('fiber_modals.km_km_is_longer_than_any',{km:km.toLocaleString()})}</p>`:''}
<div class="kv" style="margin-top:10px"><span>${tr('common.due_now')}</span><b>${fmt$(up)}</b></div><div class="kv"><span>${tr('common.monthly')}</span><b>${tr('common.price_mo',{price:fmt$(mo)})}</b></div>
<p class="note">${tr('fiber_modals.for_comparison_a_leased_1_6t',{price:fmt$(w)})}</p>

View file

@ -869,6 +869,7 @@
"city_panel.second_site_and_metro_ring":"Second site and metro ring",
"city_panel.sell_internet_to_homes_here_starts":"Sell internet to homes here. Starts around {start} and grows toward {max} while service is good. Pays {rate} per Gbps served, every month.",
"city_panel.sells_pnis_down_to_1g":"sells PNIs down to 1G",
"city_panel.sender_pays_fee_per_gbps":"Sender pays: +{fee} per Gbps of transit",
"city_panel.served_in_city":"Served in {city}",
"city_panel.serving_v":"serving {v}",
"city_panel.shut_this_pop_down_its_links":"Shut this POP down: its links, ports and caches go with it, and every customer that depends on it is let go, with an early-termination penalty.",
@ -920,7 +921,6 @@
"common.aug":"Aug",
"common.auto":"Auto",
"common.auto_enrolled":"auto-enrolled",
"common.average":"Average",
"common.avoid":"Avoid",
"common.back":"Back",
"common.back_to_the_map":"Back to the map",
@ -936,7 +936,6 @@
"common.bgp_hijack":"BGP hijack",
"common.bgp_sessions":"BGP sessions",
"common.big_league":"Big league",
"common.black_hole":"Black hole",
"common.blitz":"Blitz",
"common.boot_time":"Boot time",
"common.boot_times":"Boot times",
@ -944,7 +943,6 @@
"common.box_6ee3":"− box",
"common.build_time":"Build time",
"common.building":"building",
"common.bumped":"bumped",
"common.bunker_two":"Bunker Two",
"common.busiest_links":"Busiest links",
"common.business_customers":"Business customers",
@ -1106,8 +1104,6 @@
"common.import_a_save":"Import a save",
"common.in_progress":"in progress",
"common.in_use":"In use",
"common.inbox":"Inbox",
"common.inbox_zero":"Inbox zero.",
"common.incident":"Incident",
"common.incidents":"Incidents",
"common.incidents_survived":"Incidents survived",
@ -1235,7 +1231,6 @@
"common.oops":"Oops",
"common.open":"Open",
"common.open_bank":"Open bank",
"common.open_inbox":"Open inbox",
"common.open_infra":"Open Infra",
"common.open_lease":"Open lease",
"common.open_noc":"Open NOC",
@ -1260,7 +1255,6 @@
"common.peered_ce2f":"Peered ✓",
"common.peering":"Peering",
"common.peering_first":"Peering First",
"common.peering_inbox":"Peering inbox",
"common.peering_policy":"Peering policy",
"common.peering_ratio":"Peering ratio",
"common.peering_spat":"Peering spat",
@ -1309,7 +1303,6 @@
"common.remove_port":"Remove port",
"common.remove_script":"Remove script",
"common.request":"Request",
"common.responsive":"Responsive",
"common.resume":"Resume",
"common.retention_offer":"Retention offer",
"common.revenue":"Revenue",
@ -1415,7 +1408,6 @@
"common.to":"To",
"common.toaster_wrangler":"Toaster Wrangler",
"common.today":"Today",
"common.today_4203":"today",
"common.toggle_sound":"Toggle sound",
"common.too_far_for_this_cable":"too far for this cable",
"common.traceroute":"Traceroute",
@ -1477,7 +1469,6 @@
"common.your_network":"Your network",
"common.your_pop":"Your POP",
"common.your_pops":"Your POPs",
"common.your_reputation":"Your reputation",
"common.zombie_route":"Zombie route",
"compute.attack_hauled_to_scrubbing_in_city":"Attack hauled to scrubbing in {city}",
"compute.courtesy_route_to_new_networks":"Courtesy route to new networks",
@ -1724,8 +1715,6 @@
"failures.a_kilometre_of_copper_went_missing":"A kilometre of “copper” went missing from your {a}–{b} trench. It was your fiber. The scrap yard sent it back with a note.",
"failures.a_landslide_in_the_andes_buried":"A landslide in the Andes buried your {a}–{b} fiber.",
"failures.a_llama_herd_trampled_the_fiber":"A llama herd trampled the fiber marker on {a}–{b}. Then a backhoe found the fiber.",
"failures.a_member_at_ix_leaked_the":"A member at {ix} leaked the full routing table into the route server. Max-prefix limits tripped everywhere. Your peering there is down.",
"failures.a_member_at_ix_leaked_the_5563":"A member at {ix} leaked the full routing table into the route server. Max-prefix limits tripped everywhere. Your peering there, in {city}, is down.",
"failures.a_new_tech_in_a_tidied":"A new tech in {a} “tidied up” the cable mess. Your {a}–{b} link was part of the mess.",
"failures.a_new_tech_in_city_used":"A new tech in {city} used Vegemite as thermal paste. It conducts flavour, not heat, and your router cooked.",
"failures.a_optic_on_a_b_overheated":"A {optic} on {a}–{b} overheated and is now a very expensive keychain.",
@ -1792,7 +1781,6 @@
"failures.load_shedding_stage_n_in_city":"Load shedding stage {n} in {city}, and you have no generator. Buy one: here it is not optional.",
"failures.load_shedding_took_out_site_in":"Load shedding took out {site} in {city}. {other} kept going, so the POP runs at half capacity. Anything plugged in only at the dark site is offline.",
"failures.magpie_swooping_season_the_field":"Magpie swooping season: the field techs on {a}–{b} will not leave the van, and your cut stays cut.",
"failures.max_prefix_meltdown":"Max-prefix meltdown",
"failures.metro_ring_cut":"Metro ring cut",
"failures.microbursts_on_a_b_overflow_shallow":"Microbursts on {a}–{b} overflow shallow router buffers: 0.5% loss at peak, and every video call notices.",
"failures.microbursts_on_a_b_your_deep":"<b>Microbursts on {a}–{b}.</b><br>Your deep-buffer routers soaked them up. Nobody noticed.",
@ -1884,7 +1872,6 @@
"fiber_and_hardware.those_optics_need_the_regen_site":"<b>Those optics need the regen site.</b><br>Remove the long-haul channels first, or keep the site.",
"fiber_modals.a_fiber_pair_of_your_own":"A fiber pair of your own. The glass is cheap, the gear is not: you buy a line system with an amplifier every {km} km, then optics for each channel. Your gear can fail, and you fix it.",
"fiber_modals.a_fiber_pair_on_cable_km":"A fiber pair on {cable}, {km} km. It shares the cable with everyone else's waves, anchors included.",
"fiber_modals.build_your_own_level_3":"Build your own <small>level 3</small>",
"fiber_modals.build_your_own_price_n_days":"Build your own <small>{price} · ~{n} days</small>",
"fiber_modals.dark_fiber_across_the_chinese_border":"Dark fiber across the Chinese border is not for sale. Buy a cross-border wave instead.",
"fiber_modals.dark_fiber_unlocks_at_customer_level":"Dark fiber unlocks at customer level 2. You need the scale to justify buying your own optical gear.",
@ -1908,11 +1895,8 @@
"fiber_modals.your_pop_needs_a_fabric_port":"Your POP · needs a fabric port there",
"game_and_settings.delete_and_start_over":"Delete and start over",
"game_and_settings.export_save_download_a_file":"Export save <small>download a file</small>",
"game_and_settings.import_a_save_from_a_file":"Import a save <small>from a file</small>",
"game_and_settings.import_failed_that_save_is_damaged":"<b>Import failed.</b><br>That save is damaged and could not be loaded. Your current game is untouched.",
"game_and_settings.name_and_everything_it_owns_will":"{name} and everything it owns will be deleted. This cannot be undone.",
"game_and_settings.scenarios_amp_weekly_challenge":"Scenarios &amp; weekly challenge",
"game_and_settings.share_your_network_image_card":"Share your network <small>image card</small>",
"game_and_settings.start_a_new_network":"Start a new network?",
"game_and_settings.welcome_back_name_imported_and_saved":"<b>Welcome back, {name}.</b><br>Imported and saved on this device.",
"game_and_settings.your_game_saves_itself_every_few":"Your game saves itself every few seconds on this device.",
@ -1983,7 +1967,7 @@
"help.each_pop_s_router_model_caps":"Each POP's router model caps its fastest port (100G, 400G, 800G, 1.6T) and how much it can forward. Bigger waves and ports need better routers at both ends. Better models unlock with your customer level. With one router, upgrades mean a day of downtime.",
"help.event_networks_a_final_a_festival":"Event networks (a final, a festival, a keynote) need a burst of capacity in one city for a few days and pay once at the end, prorated by how much of the crowd you served; below 70% you pay a penalty. SD-WAN chains connect 3–6 of your POPs hub-and-spoke, so one broken spoke upsets the whole contract. Once you run your own dark fiber, carriers want to rent spare channels as alien waves, and on fiber you built yourself, a spare pair.",
"help.events_chains_and_wholesale":"Events, chains and wholesale",
"help.every_ix_port_brings_peering":"Every IX port brings peering requests and max-prefix alerts, in the Networks tab. A session that blows past its limit is down until you look: raise the limit for growth, keep it down for a leak. Ignore your mail and selective networks get pickier.",
"help.every_ix_port_brings_requests":"Every IX port brings peering requests, and your peering policy in the Networks tab answers them: Open accepts everyone, Selective accepts the networks worth peering with and quietly declines the rest, Closed declines them all. Once a week the NOC log sums it up.",
"help.every_link_has_latency_high":"Every link has latency. High-frequency traders pay a fortune for a circuit within their latency budget; route them “Lowest latency”. Bulk backup customers do not care, so route them “Scenic” over your quiet links to keep busy ones free.",
"help.home_broadband_users_they_mostly":"Home broadband users. They mostly download from CDNs and pay you per Gbps you deliver. Serve them well and they multiply.",
"help.how_the_internet_works_here":"How the internet works here",
@ -1997,7 +1981,7 @@
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) is transit-free. You peer with every giant on the planet and pay nobody to reach the internet. Took you {days} days and {n} incidents.",
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG and friends come round every year. Register in the Deals tab for $8k. For 45 days after, selective networks with a presence in that region need only half the usual traffic before they peer with you. Sometimes you also win the raffle.",
"help.once_auto_te_is_installed_you":"Once Auto-TE is installed, you can program it from the NOC tab. Rules include <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> and <code>blackhole ddos</code>. Check runs a dry run against live traffic; Deploy makes it real, mistakes included.",
"help.one_game_four_doors_puzzles_are":"One game, four doors, and the rules are picked when a network starts and locked after that. Puzzles are small knots to untie, with no clock. Sandbox gives you a billion dollars, every unlock (your own subsea cable included) and as much chaos as you pick, but no badges. Normal comes three ways: Change Freeze (few outages, deliveries in days, no inbox or shortages), On-call (the classic game) and BGP at 3 a.m. (more and longer outages, more DDoS). Scenarios are hand-built challenges with a goal and a deadline, and the weekly challenge gives everyone the same world for a week. Share your result with the card in the menu.",
"help.one_game_four_doors_and_the":"One game, four doors, and the rules are picked when a network starts and locked after that. Puzzles are small knots to untie, with no clock. Sandbox gives you a billion dollars, every unlock (your own subsea cable included) and as much chaos as you pick, but no badges. Normal comes three ways: Change Freeze (few outages, deliveries in days, no shortages), On-call (the classic game) and BGP at 3 a.m. (more and longer outages, more DDoS). Scenarios are hand-built challenges with a goal and a deadline, and the weekly challenge gives everyone the same world for a week. Share your result with the card in the menu.",
"help.open_peers_with_anyone_selective":"Open peers with anyone. Selective wants to see traffic first. Restrictive (Tier 1s) only peers with giants, over PNIs. Paid means exactly that. Big selective networks also have moods: in some cities they refuse new peers for a few months, or only take PNIs, and now and then they tear down a session you already had. Try another city or a PNI, and ask again later.",
"help.out_of_port_speed_bundle_up":"Out of port speed? Bundle up to 8 identical ports to the same transit provider, IX or PNI into a LAG. Each member costs a full port; flow hashing is never perfectly even, so a bundle carries about 95% of the sum.",
"help.pni_lead_times":"PNI lead times",
@ -2122,15 +2106,11 @@
"hud_and_panels.has_errors_not_running":"has errors, not running",
"hud_and_panels.incidents_so_far":"Incidents so far",
"hud_and_panels.install_auto_te_cost_mo_mo":"Install Auto-TE <small>{cost} + {mo}/mo</small>",
"hud_and_panels.large_peering_model_is_on_it":"Large Peering Model is on it.",
"hud_and_panels.lv_n":"Lv {n}",
"hud_and_panels.n_incident":{"one":"{n} incident","other":"{n} incidents"},
"hud_and_panels.n_message_waiting_for_an_answer":{"one":"{n} message waiting for an answer.","other":"{n} messages waiting for an answer."},
"hud_and_panels.n_more_networks":{"one":"+{n} more network","other":"+{n} more networks"},
"hud_and_panels.n_networks_d_days_left":"{n} networks · {d} days left",
"hud_and_panels.n_new_notification":{"one":"{n} new notification","other":"{n} new notifications"},
"hud_and_panels.n_rules_live":"{n} rules live",
"hud_and_panels.n_session_is_down_on_its":{"one":"{n} session is down on its max-prefix limit.","other":"{n} sessions are down on their max-prefix limit."},
"hud_and_panels.n_small_networks":"{n} small networks",
"hud_and_panels.n_special_requirement":{"one":"{n} special requirement","other":"{n} special requirements"},
"hud_and_panels.n_unhappy_customer_price_mo_at":{"one":"{n} unhappy customer, {price}/mo at risk","other":"{n} unhappy customers, {price}/mo at risk"},
@ -2706,6 +2686,7 @@
"ops.by_hand_note":"For when you want it all done right now: every peer at every exchange, a redundancy kit, PNIs with everyone.",
"ops.caches_rent":"Free to rack, but each box costs {price}/mo in space and power.",
"ops.cheapest":"Cheapest",
"ops.day_d":"Day {d}",
"ops.ff_desc":"labelled a port in {city} “TODO: fix later (do not fix)”",
"ops.ff_hostname":"renamed the router in {city} to router-final-FINAL-v2",
"ops.ff_lag":"added one transit LAG member too many in {city}. It works, so it stays.",
@ -2744,8 +2725,6 @@
"ops.l_snag":{"one":"got stuck on {where} and paused it until you have a look","other":"got stuck on {n} orders ({where}) and paused them until you have a look"},
"ops.l_transit":{"one":"topped up transit in {where}","other":"topped up transit {n} times ({where})"},
"ops.locked":"The NOC hires interns from customer level {lv}.",
"ops.lpm_off":"The peering inbox is still yours. Hire the Large Peering Model for that; {name} does not do email.",
"ops.lpm_on":"The Large Peering Model answers the peering inbox. {name} keeps out of its way.",
"ops.mood_annie":"Annie answered three questions before you asked them, from whichever desk was closest.",
"ops.mood_broke":"{name} has a shopping list ready for when next month's budget comes in.",
"ops.mood_busy":"{name} has had a busy week and is on their third energy drink.",
@ -2858,61 +2837,14 @@
"page.series_of_tubes_build_the_internet":"Series of Tubes: build the internet, one tube at a time",
"page.world_map_of_your_network":"World map of your network",
"page.x":"<?php echo \"sorry\"; ?>",
"peering_inbox.accept_all_requests":"Accept all requests",
"peering_inbox.an_ai_agent_that_answers_every":"An AI agent that answers every peering request and max-prefix alert for you, every day. {price}/year. Trained on twenty years of peering mailing lists.",
"peering_inbox.answered_your_mail_a_accepted_d":"Answered your mail: {a} accepted, {d} declined.",
"peering_inbox.asked_netchill_s_peering_team_to":"Asked NetChill’s peering team to “please provide more Netchill”.",
"peering_inbox.configured_lim_prefixes_received_got":"Configured: {lim} prefixes. Received: {got}.",
"peering_inbox.day_d":"Day {d}",
"peering_inbox.dear_sir_or_madam_please_peer":"Dear Sir or Madam, please peer. We have three prefixes and very big plans.",
"peering_inbox.decline_all_requests":"Decline all requests",
"peering_inbox.declined_who_at_ix_not_a":"Declined {who} at {ix}: “not a strategic fit”. They were.",
"peering_inbox.every_exchange_port_brings_mail":"Every exchange port brings mail. Answer peering requests, and look at sessions that hit their max-prefix limit: is it growth, or a route leak? Unanswered mail gets you a reputation, and selective networks hear about it.",
"peering_inbox.everyone_who_asks_gets_a_session":"Everyone who asks gets a session, and the route servers work. Lots of tiny peers, and lots of max-prefix alerts.",
"peering_inbox.fewer_requests_and_you_answer_them":"Fewer requests, and you answer them yourself. No route servers: go to each exchange and request the networks you want.",
"peering_inbox.fire_the_ai":"Fire the AI",
"peering_inbox.good_call_it_was_a_route":"<b>Good call: it was a route leak.</b><br>{who} found a fat-fingered route map. The session comes back on its own in a few days.",
"peering_inbox.greetings_we_are_a_fast_growing":"Greetings. We are a fast-growing network. Last year we had one customer; this year we have two.",
"peering_inbox.hello_please_find_attached_our":"Hello, please find attached our peering request as a Word document, scanned from a printout.",
"peering_inbox.hey_quick_one_can_you_peer":"Hey, quick one: can you peer with us at {ix}? We have a very important Minecraft server.",
"peering_inbox.hi_we_would_like_to_peer":"Hi! We would like to peer with you at {ix}. Our PeeringDB record is up to date.",
"peering_inbox.hire_it_mo_mo":"Hire it <small>{mo}/mo</small>",
"peering_inbox.inbox_zero_enjoy_it_while_it":"Inbox zero. Enjoy it while it lasts.",
"peering_inbox.keep_it_down":"Keep it down",
"peering_inbox.kept_who_down_at_ix_for":"Kept {who} down at {ix} for “suspicious growth”. They had grown by one customer.",
"peering_inbox.kept_who_down_at_ix_it":"Kept {who} down at {ix}: it was a route leak. Nailed it.",
"peering_inbox.large_peering_model":"Large Peering Model",
"peering_inbox.large_peering_model_is_answering":"Large Peering Model is answering your mail",
"peering_inbox.max_prefix_limit_hit_who_at":"<b>Max-prefix limit hit: {who} at {ix}.</b><br>The session is down until you look at it.",
"peering_inbox.max_prefix_limit_hit_who_at_5c56":"Max-prefix limit hit: {who} at {ix}",
"peering_inbox.mostly_ignores_email":"Mostly ignores email",
"peering_inbox.n_day_ago":{"one":"{n} day ago","other":"{n} days ago"},
"peering_inbox.n_unanswered":{"one":"{n} unanswered","other":"{n} unanswered"},
"peering_inbox.no_mail_yet_buy_an_ix":"No mail yet. Buy an IX port and it will come.",
"peering_inbox.nobody_asks_and_no_route_servers":"Nobody asks, and no route servers. Customers hear that you are hard to reach, so fewer of them call, and your reputation sinks.",
"peering_inbox.open_to_all":"Open to all",
"peering_inbox.opened_a_ticket_with_itself_to":"Opened a ticket with itself to review its own decisions. It approved them.",
"peering_inbox.peering_request_fifth_attempt_is":"Peering request, fifth attempt. Is anyone there?",
"peering_inbox.peeringdb_last_updated_n_year_ago":{"one":"PeeringDB last updated {n} year ago","other":"PeeringDB last updated {n} years ago"},
"peering_inbox.peeringdb_updated_last_month":"PeeringDB updated last month",
"peering_inbox.please_configure_sessions_with_us_at":"Please configure sessions with us at {ix}. We will do ours next week, or the week after.",
"peering_inbox.price_year_it_never_sleeps_never":"{price}/year. It never sleeps, never complains and is often wrong.",
"peering_inbox.raise_all_max_prefix_limits":"Raise all max-prefix limits",
"peering_inbox.raise_the_limit":"Raise the limit",
"peering_inbox.raised_the_max_prefix_limit_for":"Raised the max-prefix limit for {who} at {ix} to {n}. They seemed nice.",
"peering_inbox.raised_the_max_prefix_limit_for_7b4b":"Raised the max-prefix limit for {who} at {ix}. Correctly, this time.",
"peering_inbox.replied_to_a_peering_request_with":"Replied to a peering request with a haiku about BGP. No answer yet.",
"peering_inbox.session_with_who_is_back_up":"<b>Session with {who} is back up.</b><br>New limit: {n} prefixes. They promise to update PeeringDB.",
"peering_inbox.signed_you_up_for_a_webinar":"Signed you up for a webinar on “Peering in the Age of AI”.",
"peering_inbox.that_was_a_route_leak_who":"<b>That was a route leak.</b><br>{who} was announcing {n} prefixes: a full table. Next time, keep it down.",
"peering_inbox.the_session_stays_down_who_will":"<b>The session stays down.</b><br>{who} will update PeeringDB and ask again. Eventually.",
"peering_inbox.their_peeringdb_says_lim_last":{"one":"Their PeeringDB says {lim}, last updated {n} year ago.","other":"Their PeeringDB says {lim}, last updated {n} years ago."},
"peering_inbox.tidied_up_a_session_it_decided":"Tidied up a session it decided was unused: de-peered {who} at {ix}.",
"peering_inbox.updated_your_peeringdb_record_your":"Updated your PeeringDB record. Your NOC phone number is now a pizza place.",
"peering_inbox.we_noticed_you_are_at_ix":"We noticed you are at {ix}. So are we. Shall we?",
"peering_inbox.who_asked_a_mailing_list_whether":"<b>{who} asked a mailing list whether anyone has a working contact at {me}.</b><br>Their peering request sat in your inbox for a month.",
"peering_inbox.who_at_ix_was_sending_a":"{who} at {ix} was sending a full table, and the max-prefix limit was the only thing stopping it. With the limit raised, {net}’s prefixes point at their basement. Traffic to {net} over transit is black-holed for a few days.",
"peering_inbox.wrote_a_thousand_word_apology_to":"Wrote a thousand-word apology to a network you never peered with.",
"peering_desk.closed_desc":"Every peering request is declined, and no route servers. Customers hear that you are hard to reach, so fewer of them call.",
"peering_desk.n_more_exchanges":{"one":"{n} more exchange","other":"{n} more exchanges"},
"peering_desk.n_new_sessions_at_ix":{"one":"Peering desk: {n} new session at {ix} ({pol}).","other":"Peering desk: {n} new sessions at {ix} ({pol})."},
"peering_desk.n_new_sessions_at_ix_declined":{"one":"Peering desk: {n} new session at {ix}, {d} declined ({pol}).","other":"Peering desk: {n} new sessions at {ix}, {d} declined ({pol})."},
"peering_desk.n_requests_declined":{"one":"Peering desk: {n} request declined ({pol}).","other":"Peering desk: {n} requests declined ({pol})."},
"peering_desk.open_desc":"Every network that asks gets a session, and the route servers work.",
"peering_desk.open_to_all":"Open to all",
"peering_desk.selective_desc":"Small networks on the exchange and newcomers with an up-to-date PeeringDB get a session; the rest are quietly declined. No route servers: ask the networks you want at each exchange.",
"peering_policy.a_new_vp_wants_to_monetise":"A new VP wants to \"monetise interconnection\" in this market.",
"peering_policy.already_reach_you_through_your":"Already reach you through your transit provider here and think that is fine.",
"peering_policy.moved_everything_in_this_city_to":"Moved everything in this city to PNIs. Please read their PearingDB page, all 40 pages of it.",
@ -2955,6 +2887,34 @@
"pni_all.pni_size":"PNI size",
"pni_all.setup_total":"Total setup cost",
"pni_all.traffic_charges_apply":"Traffic charges of {price} per Gbps also apply.",
"pni_list.chip_not_reached":"Not reached",
"pni_list.chip_peers_at":"Peers at {list}",
"pni_list.chip_pni_at":"PNI at {list}",
"pni_list.chip_pni_elsewhere":"PNI elsewhere: {list}",
"pni_list.chip_pni_here":"PNI here · {port} · {p}",
"pni_list.chip_pni_here_on_order":"PNI here · on order",
"pni_list.chip_via_a_cone":"Via a peer's cone",
"pni_list.chip_via_cone":"Via {net}'s cone",
"pni_list.chip_via_transit":"Via transit",
"pni_list.f_all":"All",
"pni_list.f_pni":"Already PNI",
"pni_list.f_transit":"Via transit",
"pni_list.f_worth":"Worth it",
"pni_list.list_more":"{list} +{n}",
"pni_list.little_to_gain_here":"Little to gain here: {g}",
"pni_list.n_here":"{g} here",
"pni_list.n_networks_w_worth_it":{"one":"{n} network · {w} worth it","other":"{n} networks · {w} worth it"},
"pni_list.nothing_matches":"No network here matches this filter.",
"pni_list.saves_minus_cost":"Saves {saved} of transit a month; the PNI costs {cost} a month.",
"pni_list.sort_az":"Sort: A–Z",
"pni_list.sort_worth":"Sort: worth it first",
"pni_list.via_drop":"{g} dropped",
"pni_list.via_haul":"{g} hauled",
"pni_list.via_ix":"{g} IX",
"pni_list.via_transit":"{g} transit",
"pni_list.with_port":"{port} PNI: {val}",
"pni_list.worth_it":"Worth it",
"pni_list.worth_rule":"⭐ Worth it: a PNI here saves more transit than it costs each month, carries at least 1 Gbps you drop today, or takes at least 1 Gbps off an exchange port that is 80% full.",
"pnis.a_new_region_is_coming_online":"A new region is coming online soon. It has been coming online soon since 2019.",
"pnis.about_n_days_to_go_nothing":"About {n} days to go. Nothing to do but wait, or chase it.",
"pnis.augment_with_net_delivered_in_city":"<b>Augment with {net} delivered in {city}.</b><br>Now {port}.",
@ -3006,16 +2966,18 @@
"progress.a_port_on_ix_brrr_manaus":"A port on IX.brrr Manaus",
"progress.broadband_in_city":"Broadband in {city}",
"progress.carnaval_delivered_in_full":"Carnaval delivered in full",
"progress.city_on_your_network":"{city} on your network",
"progress.customer_level_lv_of_max":"Customer level {lv} of {max}",
"progress.days_in_a_row_at_g":"Days in a row at {g} or more",
"progress.days_in_a_row_with_99":"Days in a row with 99.5% served",
"progress.done_in_d_days":"Done in {d} days!",
"progress.floods_that_got_through":"Floods that got through",
"progress.ix_brrr_ports":"IX.brrr ports",
"progress.ix_brrr_ports_on_your_backbone":"IX.brrr ports on your backbone",
"progress.monthly_profit":"Monthly profit",
"progress.n_of_m":"{n} of {m}",
"progress.next_name_unlocks_what":"Next: {name} unlocks {what}",
"progress.not_tier_1_right_now_why":"Not Tier 1 right now: {why}.",
"progress.pop_in_city":"POP in {city}",
"progress.seoul_served_well":"Seoul served well (delivered and fast)",
"progress.terabit_floods_held":"Terabit floods held",
"progress.under_attack_now":"Under attack now",
"progress.your_score_peak_traffic":"Your score: peak traffic",
@ -3393,7 +3355,7 @@
"routing_and_routers.unplug_something_first_used_ports":"<b>Unplug something first.</b><br>{used} ports are in use, and one router fewer only has {max}.",
"rules.a_billion_dollars_every_unlock_your":"A billion dollars, every unlock, your own subsea cable.",
"rules.a_cut_now_and_then":"A cut now and then.",
"rules.a_third_of_the_outages_no_ddos":"A third of the outages, no DDoS. PNIs and builds in days. No inbox, no shortages, no sold-out routes, no de-peering.",
"rules.a_third_of_the_outages_no_ddos_pnis":"A third of the outages, no DDoS. PNIs and builds in days. No shortages, no sold-out routes, no de-peering.",
"rules.bgp_at_3_a_m":"BGP at 3 a.m.",
"rules.change_freeze":"Change Freeze",
"rules.chaos_calm":"Calm",
@ -3410,7 +3372,7 @@
"rules.on_call":"On-call",
"rules.one_small_network_one_tricky_goal":"One small network, one tricky goal.",
"rules.puzzle":"Puzzle",
"rules.real_lead_times_real_outages_a":"Real lead times, real outages, a full peering inbox. The classic game.",
"rules.real_lead_times_real_outages_a_real":"Real lead times, real outages, a real market. The classic game.",
"rules.rules_are_locked_for_this_network":"{rules}: rules are locked for this network.",
"rules.the_real_thing_your_pager_has":"The real thing. Your pager has opinions.",
"rules.your_pager_never_sleeps":"Your pager never sleeps.",
@ -3444,15 +3406,15 @@
"scenarios.1_6t_on_every_hop_from":"1.6T on every hop from Miami to Madrid and from Lisbon to Lagos, and 100 Gbps served",
"scenarios.90_days_in_a_row_with":"90 days in a row with 99.5% of demand served",
"scenarios.99_reach_and_150_gbps_served":"99% reach and 150 Gbps served",
"scenarios.99_reach_and_200_gbps_served":"99% reach and 200 Gbps served without going broke",
"scenarios.a_path_from_cape_town_to":"A path from Cape Town to Cairo, POPs in Lagos and Nairobi, and 150 Gbps served",
"scenarios.a_path_from_cape_town_to_cairo_lagos":"A path from Cape Town to Cairo, Lagos and Nairobi on your network too, and 150 Gbps served",
"scenarios.a_path_from_los_angeles_to":"A path from Los Angeles to Sydney with 1.6T on every hop, a path from Los Angeles to Tokyo, and 150 Gbps served",
"scenarios.a_path_from_marseille_to_singapore":"A path from Marseille to Singapore, and 80 Gbps between Asia and the rest of your network for 30 days in a row",
"scenarios.amsterdam_hosting_capital_of_europe":"Amsterdam, hosting capital of Europe, in peak botnet season. Every smart toaster, baby monitor and unpatched fridge on Earth has picked a side, and it is not yours. A flood every few days, more and more of them in the terabits, while everything else keeps breaking too. You start with bigger gear unlocked, and you will need it.",
"scenarios.broadband_in_sydney_melbourne":"Broadband in Sydney, Melbourne, Brisbane, Adelaide and Perth, and two different cables overseas",
"scenarios.broadband_in_sydney_melbourne_served":"Broadband in Sydney, Melbourne, Brisbane, Adelaide and Perth, two different cables overseas, and 500 Gbps served",
"scenarios.cape_to_cairo":"Cape to Cairo",
"scenarios.cape_town_build_a_network_across":"Cape Town. Build a network across Africa: every border wants its own permit, and half the power grids are not on your side.",
"scenarios.cogentle_and_goggle_are_not_speaking":"Cogentle and Goggle are not speaking, and this time it is permanent. Buy the cheap transit if you dare.",
"scenarios.connect_panama_city_to_bogota_lima":"Bogotá, Lima, Santiago and São Paulo joined up to Panama City, and 150 Gbps served",
"scenarios.deliver_carnaval_in_full":"Deliver Carnaval in full",
"scenarios.every_cable_through_the_red_sea":"Every cable through the Red Sea is cut, and so is the hop to Egypt. Get Marseille talking to Singapore anyway: round Africa, overland, or the other way round the planet.",
"scenarios.every_ix_is_run_by_de":"Every IX is run by DE-KICKS",
@ -3464,22 +3426,22 @@
"scenarios.mid_atlantic_accent":"Mid-Atlantic Accent",
"scenarios.only_spatzle_ix":"Only Spätzle-IX",
"scenarios.order_and_progress":"Order and Progress",
"scenarios.ponta_delgada_in_the_azores_halfway":"Ponta Delgada, in the Azores, halfway across the Atlantic. Florida to Spain and Lisbon to Lagos are just too long for a 1.6T wave: straight across, each carries 1.2T. Land on the islands in between, start the light fresh, and every hop runs at 1.6T or better. You start with 1.6T gear unlocked.",
"scenarios.pops_in_bogota_lima_santiago_and":"POPs in Bogotá, Lima, Santiago and São Paulo, and 150 Gbps served",
"scenarios.ports_on_15_ix_brrr_exchanges":"Ports on 15 IX.brrr exchanges, one of them in Manaus, and 200 Gbps served",
"scenarios.ponta_delgada_azores_lisbon_lagos":"Ponta Delgada, in the Azores, halfway across the Atlantic. Florida to Spain is just too long for a 1.6T wave: straight across, it carries 1.2T. Land on the islands in between, start the light fresh, and every hop runs at 1.6T or better. Lisbon to Lagos does 1.6T in one go, at a price: the Canaries are cheaper. You start with 1.6T gear unlocked.",
"scenarios.ports_on_15_ix_brrr_exchanges_backbone":"Ports on 15 IX.brrr exchanges your backbone joins to São Paulo, one of them in Manaus, and 200 Gbps served",
"scenarios.reach_50_of_the_internet_and":"Reach 50% of the internet and serve 300 Gbps",
"scenarios.red_sea_crisis":"Red Sea Crisis",
"scenarios.rio_from_scratch_carnaval_starts_in":"Rio from scratch. Carnaval starts in 90 days and wants 400 Gbps for five days straight. The whole world is watching.",
"scenarios.sandbox_mode_a_billion_dollars_chaos":"<b>Sandbox mode</b><br>A billion dollars and every unlock. Chaos: {chaos}. Build the internet you always wanted, and keep a spare backhoe handy.",
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Sandbox mode</b><br>A billion dollars, every unlock, and nothing ever breaks. Build the internet you always wanted.",
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. Brazil is a continent: forty IX.brrr exchanges, thousands of provedores, and the Amazon between you and the north.",
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Seoul. The fastest, hungriest eyeballs on Earth, transit at four times the price, and three incumbents who bill you for every gigabit you send them.",
"scenarios.seoul_sender_pays_d":"Seoul, where the sender pays. Every Gbps a carrier delivers into Korea costs you a sender-pays fee on top of the transit bill, the three incumbents only talk over a paid PNI, home gigabit sells for the price of a bibimbap, and Korean users notice every millisecond. Tokyo transit is cheap, if your customers can stand the trip.",
"scenarios.seoul_sender_pays_goal":"{g} Gbps served, Seoul served well ({q}%), 99% reach and a monthly profit",
"scenarios.shark_season_subsea_cuts_twice_as":"Shark season: subsea cuts twice as likely",
"scenarios.start_in_panama_city_nothing_crosses":"Start in Panama City. Nothing crosses the Darién Gap by land, and the Andes are in the way of everything else.",
"scenarios.start_in_stuttgart_where_nobody":"Start in Stuttgart, where nobody sells transit. Reach the internet through peering, PNIs, caches and your own fiber only. No transit anywhere, ever.",
"scenarios.start_with_only_100k":"Start with only $100k",
"scenarios.sydney_2013_the_toilet_paper_group":"Sydney, 2013. The Toilet Paper Group ran its own fibre into apartment basements, and the national network cried cherry-picking. Your turn: skip the Nearly Broadband Network, pay the levy, and get there first.",
"scenarios.tallinn_ships_drag_their_anchors":"Tallinn. Ships drag their anchors over Baltic cables three times as often as usual.",
"scenarios.tallinn_nobody_sells_transit_anchors":"Tallinn, where nobody sells transit: your internet is across the water. Ships drag their anchors over Baltic cables three times as often as usual.",
"scenarios.the_cogentle_spat":"The Cogentle Spat",
"scenarios.transit_costs_30_more":"Transit costs 30% more",
"scenarios.twice_the_failures":"Twice the failures",
@ -3533,6 +3495,7 @@
"sites_and_service.level_n":"Level {n}",
"sites_and_service.n_ports":"{n} ports",
"sites_and_service.no_path_right_now":"no path right now",
"sites_and_service.p_of_city_s_traffic_comes_from_kr":"<b>{p} of {city}’s traffic comes from {to}: {ms} ms round trip.</b> Korean users notice anything over 8 ms, and past 40 ms broadband counts as bad service. Serve more from Seoul: peering, caches and PNIs here, or local transit if you can stand the sender-pays fee.",
"sites_and_service.p_of_city_s_traffic_is":"<b>{p} of {city}’s traffic is backhauled to transit in {to}: {ms} ms round trip.</b> Users notice anything over 20 ms (about 1,500 km), and past 50 ms broadband and internet services count as bad service. Buy transit here or nearby, or peer locally.",
"sites_and_service.path_latency_lat":"Path latency: <b>{lat}</b>",
"sites_and_service.pn_routers":"{pn} routers",
@ -3543,9 +3506,7 @@
"sites_peering_caches.bgp_session_established":"BGP session established.",
"sites_peering_caches.cache_installed_in_city_net_shipped":"<b>{cache} installed in {city}!</b><br>{net} shipped it for free. You pay {mo}/mo power.",
"sites_peering_caches.could_you_resend_the_loa_you":"<b>“Could you resend the LOA?”</b><br>You have sent it four times.",
"sites_peering_caches.hello_i_am_large_peering_model":"Hello! I am Large Peering Model. I have read your inbox and I already have opinions.",
"sites_peering_caches.it_is_with_the_provisioning_team":"<b>“It is with the provisioning team.”</b><br>Nobody has ever met the provisioning team.",
"sites_peering_caches.large_peering_model_is_hired_your":"<b>Large Peering Model is hired.</b><br>Your inbox is its problem now. {price} a year, billed monthly.",
"sites_peering_caches.n_new_session_at_ix_small":{"one":"<b>{n} new session at {ix}.</b><br>Small networks, but they add up, and they all count towards the club.","other":"<b>{n} new sessions at {ix}.</b><br>Small networks, but they add up, and they all count towards the club."},
"sites_peering_caches.net_accepted":"{net} accepted!",
"sites_peering_caches.net_declined_the_pni_why":"<b>{net} declined the PNI.</b><br>{why}",
@ -3553,11 +3514,8 @@
"sites_peering_caches.net_does_not_do_port_pnis":"<b>{net} does not do {port} PNIs.</b><br>Nothing smaller than 100G. Come back with more traffic, or a bigger optic.",
"sites_peering_caches.net_says_not_yet_send_them":"<b>{net} says not yet.</b><br>Send them {min}+ Gbps first.",
"sites_peering_caches.pni_with_net_ordered_eta_a":"<b>PNI with {net} ordered.</b><br>{eta}. A cross-connect in {dc}, once somebody finds the LOA.",
"sites_peering_caches.raised_n_max_prefix_limits_all":"<b>Raised {n} max-prefix limits.</b><br>All growth, no leaks. Lucky.",
"sites_peering_caches.raised_n_max_prefix_limits_one":{"one":"<b>Raised {n} max-prefix limits.</b><br>One of them was a route leak. It is in the NOC now.","other":"<b>Raised {n} max-prefix limits.</b><br>{k} of them were route leaks. They are in the NOC now."},
"sites_peering_caches.second_lag_member_added_one_member":"<b>Second LAG member added.</b><br>One member in each building now, so a dark building only takes out half the port.",
"sites_peering_caches.second_site_live_in_city_b":"<b>Second site live in {city}.</b><br>{b} is joined to {a} by your own metro ring. Move some uplinks there from the Transit and Peering tabs.",
"sites_peering_caches.the_ai_is_gone_it_left":"<b>The AI is gone.</b><br>It left a 40-page handover document. It is mostly about itself.",
"sites_peering_caches.they_checked_your_pearingdb_page_and":"They checked your PearingDB page and liked the traffic numbers.",
"sites_peering_caches.we_are_waiting_on_the_colo":"<b>“We are waiting on the colo for the cross-connect.”</b><br>The colo says it is waiting on them.",
"sites_peering_caches.your_account_manager_found_the_order":"<b>Your account manager found the order under a desk.</b><br>It is a month closer.",
@ -3579,6 +3537,7 @@
"slots.last_played_ago":"Last played {ago}",
"slots.load_the_newest_version":"Load the newest version",
"slots.more_for_name":"More for {name}",
"slots.n_day_ago":{"one":"{n} day ago","other":"{n} days ago"},
"slots.n_h_ago":{"one":"{n} h ago","other":"{n} h ago"},
"slots.name_is_open_in_another_window":"{name} is open in another window",
"slots.name_is_waiting_in_your_other":"<b>{name} is waiting in your other window.</b><br>Switch to it to keep playing.",
@ -3602,7 +3561,6 @@
"slots.this_window_stopped_saving_so_it":"A newer version was saved in another window, so this one stopped saving instead of overwriting it.",
"slots.two_windows_one_network":"Two windows, one network",
"slots.your_networks":"Your networks",
"slots.your_networks_switch_or_start_another":"Your networks <small>switch, or start another</small>",
"slots.your_other_networks_share_this_browser":"Your other networks share this browser's storage. Export the ones you want to keep, then delete them here to make room.",
"sold_out.a_hyperscaler_bought_every_wave_of":"A hyperscaler bought every wave of that size on this route last week.",
"sold_out.not_big_enough_yet_list":"Not big enough yet: {list}",
@ -3619,6 +3577,39 @@
"sold_out.tier_1s_never_peer_at_ixs":"Tier 1s never peer at IXs",
"sold_out.wants_need_gbps_of_traffic_from":"Wants ≥ {need} Gbps of traffic from you (you send {dem})",
"sold_out.wants_you_to_be_a_tier":"Wants you to be a Tier 2, or send ≥ {need} Gbps to it (you send {dem})",
"specialist.a_b_km_km_ready_in":"{a} ⇄ {b} · {km} km · about {ms} ms · ready in about {n} days",
"specialist.a_consortium_is_selling_seats_on":"A consortium is selling seats on {name}, a new cable from {a} to {b}. Your own fiber pairs on it, before you are Tier 1.",
"specialist.ask_for_a_demo_unit_p_n":"Demo unit: +{p}%, {n} days",
"specialist.charter_signed_name":"Charter signed: {name}.",
"specialist.consortium_seat":"Consortium seat",
"specialist.consortium_seat_name":"Consortium seat: {name}",
"specialist.demo_unit_ships_in_n_days":"Demo unit ships in {n} days",
"specialist.dig_your_own_as_a_pioneer":"Dig your own as a pioneer (+{p}%) · {price} · {n} days",
"specialist.global_backbone":"Global backbone",
"specialist.includes_pops_at_the_landings_price":"Includes POPs at the landings: {price}.",
"specialist.keep_it":"Keep it",
"specialist.low_latency_boutique":"Low-latency boutique",
"specialist.n_fiber_pairs":{"one":"{n} fiber pair","other":"{n} fiber pairs"},
"specialist.part_owner_of_the_sea":"Part-owner of the sea",
"specialist.pick":"Pick",
"specialist.pick_a_charter":"Pick a charter",
"specialist.routes_r_of_n_beat_the":"Finance routes faster on your own glass than any leased path: {r}/{n} · paying latency customers: {c}/{m}",
"specialist.speed_of_light":"Speed of Light",
"specialist.spotted_your_broadband_in_a_one":"They spotted your broadband in {a}, one of the big eyeball cities.",
"specialist.spotted_your_cap_of_dark_fiber":"They spotted your {cap} of lit dark fiber between {a} and {b}.",
"specialist.spotted_your_ms_ms_a_b_path":"They spotted your {ms} ms {a}–{b} path.",
"specialist.spotted_your_two_diverse_paths_a":"They spotted your two diverse paths between {a} and {b}.",
"specialist.take_a_seat_on_a_consortium":"Take a seat on a consortium cable",
"specialist.the_classic_game_grow_everywhere_and":"The classic game: grow everywhere, customers follow your level, and Tier 1 is the win.",
"specialist.the_consortium_runs_the_cable_your":"The consortium runs the cable and its repeaters. Your pairs are yours to light with your own optics; a cut on the cable cuts them too.",
"specialist.the_vendor_ships_a_demo_name":"The vendor ships a demo {name} in {n} days. Until your level catches up, every unit costs {p}% more.",
"specialist.trading_firms_and_other_latency_customers":"Trading firms and other latency customers call more often and pay {p}% more. Win Speed of Light: beat the fastest leased latency on {r} finance routes with your own glass while {c} latency customers pay you. Tier 1 still counts.",
"specialist.what_kind_of_network_are_you":"What kind of network are you building? You can pick for {n} more days; until then you are a Global backbone.",
"specialist.win_as_a_low_latency_boutique":"Win as a low-latency boutique",
"specialist.won_on_date_your_own_glass":"Won on {date}: your own glass beat every leased path.",
"specialist.you_own_n_fiber_pairs_on":"Signed: you own {n} fiber pairs on {name}, {a} ⇄ {b}. The cable ships sail; it is ready in about {d} days.",
"specialist.your_own_fiber_pairs_on_a":"Your own fiber pairs on a new subsea cable: pay your share of the build now, light them with your own optics when it lands.",
"specialist.your_own_glass_beats_every_leased":"Your own glass beats every leased path on three finance routes, and the traders pay for it. The boutique has won!",
"supply_chain.as_when_you_started":"as when you started",
"supply_chain.chip_shortage_every_router_vendor_is":"<b>Chip shortage!</b><br>Every router vendor is waiting for the same chips. New routers and router upgrades cost 40% more for {n} days. Lead time: “yes”.",
"supply_chain.every_cable_ship_is_booked":"<b>Every cable ship is booked.</b><br>Hyperscalers have hired every cable ship and trenching crew on the planet. New fiber and cable builds cost 30% more for {n} days.",
@ -3631,7 +3622,9 @@
"supply_chain.what_p_n_days_left":"{what} +{p} · {n} days left",
"supply_chain.your_price_lock_covers_you_until":"Your price lock covers you until {date}.",
"title.a_billion_dollars_and_every_toy":"A billion dollars and every toy in the shop.",
"title.as_number":"AS number",
"title.asia_hub_great_peering_far_from":"Asia hub. Great peering, far from home.",
"title.asn_not_usable":"That AS number won't route: pick one from 1 to 4294967294 that no network on the map uses (no AS 0, 23456, documentation or private ranges). Leave it empty for a random one.",
"title.back_to_my_network":"Back to my network",
"title.big_hungry_market_few_providers":"Big hungry market, few providers.",
"title.build_an_internet_lay_fiber_between":"Build an internet. Lay fiber between cities, buy transit, peer at exchanges, sign up businesses, and keep the eyeballs happy while backhoes, sharks and route leaks do their best to stop you.",

View file

@ -51,6 +51,15 @@ section h3{font-size:17px;margin-bottom:6px;display:flex;align-items:center;gap:
.tag.t1{background:var(--t1)} .tag.t2{background:var(--t2)} .tag.cdn{background:var(--cdn)} .tag.eye{background:var(--eye)}
.tag.open{background:var(--ok)} .tag.selective{background:var(--warn);color:var(--ink)} .tag.restrictive{background:var(--bad)} .tag.paid{background:var(--me)}
.tag.st{background:var(--paper);color:var(--ink)}
/* PNI list (#175): one status chip per network, a one-line value, folded groups. Chips wrap on narrow screens. */
.tag.worth{background:var(--warn);color:var(--ink)}
.pchips{display:flex;flex-wrap:wrap;gap:4px;margin:3px 0}
.pchip{display:inline-block;max-width:100%;border:1.5px solid var(--ink);border-radius:999px;padding:0 7px;font-size:11px;font-weight:800;line-height:1.5;background:var(--paper);color:var(--ink);overflow-wrap:anywhere}
.pchip.pk-here,.pchip.pk-else{background:var(--ok);color:#fff}
.pchip.pk-ix{background:var(--t2);color:#fff}
.pchip.pk-none{background:var(--bad);color:#fff}
.pval{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.pgrp{margin:8px 0 2px}.pgrp .b{width:100%;text-align:left}
.tag.st.on{background:var(--ink);color:#fff}
.bar{height:11px;border:2px solid var(--ink);border-radius:7px;background:var(--paper);overflow:hidden;margin:3px 0}
.stack{display:flex;height:16px;border:2px solid var(--ink);border-radius:8px;overflow:hidden;margin:4px 0 6px;background:var(--paper)}
@ -74,3 +83,5 @@ section h3{font-size:17px;margin-bottom:6px;display:flex;align-items:center;gap:
.inc .nm{font-weight:900}
.inc .meta{font-size:12px;color:var(--ink2);margin-top:2px;line-height:1.35}
/* The NOC tab only says whether something is broken, never how many notifications wait (2.0). */
.cnt.dot{min-width:0;width:9px;height:9px;padding:0;border-radius:50%;vertical-align:middle}

View file

@ -48,7 +48,7 @@ select.pick:focus-visible{outline:3px solid #FF4F9A;outline-offset:2px}
label.f+select.pick{width:100%}
.thb{font:inherit;font-weight:900;background:none;border:0;padding:0;cursor:pointer;color:inherit}
.ttop{margin:4px 0;padding:4px 8px;border-left:3px solid #FF8A3D;background:#FFF6EC;border-radius:6px}
.ibx{border:2px solid var(--line,#DDE3EE);border-radius:12px;padding:8px 10px;margin:8px 0;background:#fff}.ibx .nm{font-weight:800}.ibx.mp{border-color:#FF5A5F;background:#FFF1F1}.ibx.ai{border-color:#8E5CF7;background:#F7F2FF}.ibx .term{font-size:11.5px;white-space:pre-wrap;max-height:180px;overflow:auto}.ibx .cnt{display:inline-block;min-width:18px;padding:0 5px;border-radius:9px;background:var(--me);color:#fff;font-size:11px;text-align:center}.ibx .cnt.red{background:#FF5A5F}
.ibx{border:2px solid var(--line,#DDE3EE);border-radius:12px;padding:8px 10px;margin:8px 0;background:#fff}.ibx .nm{font-weight:800}
.aibtn{background:linear-gradient(90deg,#8E5CF7,#E84FA8);color:#fff}.aisay{background:#F3ECFF;border:2px solid #8E5CF7;border-radius:10px;padding:8px 10px;color:var(--ink)}
.tehelp h3{margin:14px 0 4px}.tehelp ul{margin:4px 0;padding-left:18px}.tehelp li{margin:4px 0;font-size:13.5px;line-height:1.4}.tehelp dt{margin-top:8px}.tehelp dd{margin:2px 0 0;font-size:13px;line-height:1.4;color:var(--ink2)}.tehelp code{font:600 12.5px ui-monospace,Menlo,Consolas,monospace;background:#1E2640;color:#E6F0FF;border-radius:6px;padding:1px 6px;word-break:break-word}
.terec{display:flex;align-items:center;gap:10px;justify-content:space-between;border-top:2px dashed var(--line,#DDE3EE);padding:8px 0}.terec .btn{flex:none}
@ -109,7 +109,9 @@ label.f+select.pick{width:100%}
label.f{display:block;font-weight:900;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink2);margin:12px 0 5px}
input.t{width:100%;box-sizing:border-box;border:3px solid var(--ink);border-radius:12px;padding:8px 12px;font-family:var(--display);font-weight:800;font-size:18px;background:var(--soft);color:var(--ink);-webkit-text-fill-color:var(--ink)}
.network-name{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.network-name input.t{flex:1 1 240px;width:auto;min-width:0}
.network-name{flex-wrap:nowrap}.nmwrap{position:relative;flex:1 1 auto;min-width:0}.nmwrap input.t{width:100%;padding-right:44px;font-size:16px}
.reroll{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:50%;border:2px solid var(--ink);background:#22C47A;color:#fff;font:900 18px/1 var(--display);cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center}.reroll:active{transform:translateY(-50%) rotate(-90deg)}
.asnwrap{display:flex;align-items:center;gap:4px;flex:0 0 auto;font:800 14px var(--display);color:var(--ink2)}.asnwrap input.t{width:92px;font-size:15px;padding:8px 6px}.asnwrap input.t::placeholder{color:var(--ink2);opacity:.7}.asnwrap input.t.bad{border-color:#E03A3A;background:#FFE8E8}
.metric-in{display:flex;gap:6px;align-items:center;margin-top:6px}.metric-in input.t{flex:1 1 120px;width:auto;min-width:0;font-size:16px;padding:4px 10px}
.plug{display:flex;gap:12px;align-items:center;border:3px solid var(--ink);border-radius:14px;padding:10px 12px;margin:10px 0 4px;background:var(--soft);box-shadow:0 3px 0 var(--ink);color:var(--ink);text-decoration:none}
.plug:hover{background:#FFF6D6}.plug .pi{font-size:30px;line-height:1}.plug b{font-family:var(--display);font-size:16px}.plug .meta{display:block;margin-top:2px}.plug .go{margin-left:auto;font-weight:900;white-space:nowrap}
@ -182,3 +184,12 @@ h2 .rn{font-size:18px;vertical-align:middle;padding:2px 4px}
.presets .preset{flex-direction:row;align-items:center;gap:6px;padding:6px 10px 5px}.presets .preset i{font-size:20px}.presets .preset b{font-size:15px}
.presets .preset.on::after{display:none}#presetWhat{margin:6px 0 0}
.homepick{width:100%}
.tcont .b{white-space:normal;max-width:100%;overflow-wrap:anywhere;line-height:1.15}
#modalCard{overflow-x:hidden}
.menu-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.mtile{border:3px solid var(--ink);border-radius:14px;background:var(--paper);box-shadow:0 3px 0 var(--ink);padding:8px 4px 7px;display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;font:800 13px/1.15 var(--display);color:var(--ink);text-align:center;min-height:68px;justify-content:center}
.mtile i{font-style:normal;font-size:22px;line-height:1}.mtile:active{transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}
.menu-links{margin:12px 0 0;text-align:center;line-height:2;color:var(--ink2)}
.menu-links .lnk{background:none;border:0;padding:4px 2px;font-weight:700;font-size:14px;font-family:inherit;color:var(--ink2);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.menu-plugs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.mplug{border:2px solid var(--line);border-radius:12px;padding:8px 10px;font-weight:700;font-size:13px;line-height:1.25;color:var(--ink);text-decoration:none;background:var(--soft);display:flex;align-items:center}

View file

@ -35,6 +35,7 @@ button,.chip,.b,a{touch-action:manipulation;-webkit-tap-highlight-color:transpar
#tabbar button.play.paused{background:#FFE3F0}
#tabbar .cnt{position:absolute;top:2px;right:calc(50% - 22px);min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--me);color:#fff;font-size:10px;line-height:16px;box-sizing:border-box}
#tabbar .cnt.red{background:var(--bad)}
#tabbar .cnt.dot{min-width:0;width:10px;height:10px;padding:0;top:6px;right:calc(50% - 16px)}
#left,#panel{top:auto !important;left:0 !important;right:0 !important;width:auto !important;bottom:var(--tabbar) !important;max-height:min(62%,calc(100% - var(--tabbar) - 70px)) !important;border-radius:20px 20px 0 0 !important;border-bottom:0 !important;box-shadow:0 -3px 0 var(--ink) !important;transition:max-height .22s ease,transform .22s ease;z-index:7}
#left.full,#panel.full{max-height:calc(100% - var(--tabbar) - 56px - env(safe-area-inset-top,0px)) !important}
#left.closed{display:none}

View file

@ -47,7 +47,7 @@ test('Coax gets Spectre-um’d a year in, and Final Frontear joins Very-Zone a y
start(ev2);
ev2("ACT.buildPop({city:'chi'});S.pni.push({id:'a',net:'cxc',city:'chi',tier:1,ready:0},{id:'b',net:'spc',city:'chi',tier:1,ready:0});S.day=400;dayTick()");
assert.equal(ev2("S.pni.filter(p=>p.city==='chi').map(p=>p.net).join()"), 'spc');
// the inbox never brings requests from a brand that no longer exists, and saves keep the record
// saves keep the record of who merged
ev("const o=JSON.parse(JSON.stringify(S));S=migrate(o)");
assert.equal(ev("merged('cxc')&&merged('ftr')"), true);
ev("S.merged={cxc:'x',zzz:3};S=migrate(JSON.parse(JSON.stringify(S)))");

View file

@ -469,10 +469,6 @@ test('notifications: the NOC keeps the last ten minutes, folds repeats and opens
const os = JSON.parse(ev("JSON.stringify(S.log.map(e=>e.o))"));
assert.deepEqual(os, [null, { a: 'city', v: 'lon' }, { a: 'link', v: linkId }, { a: 'city', v: 'fra' }]);
assert.equal(ev("S.log[0].h"), 'Raffle'); assert.equal(ev("S.log[0].t"), 'Raffle You won a T-shirt.');
// the peering inbox's own button opens the peering inbox
ev("toast('<b>Peering request</b><br>From a small network.','',[{l:'Inbox',act:'inbox',args:{}}])");
assert.deepEqual(JSON.parse(ev('JSON.stringify(S.log[0].o)')), { a: 'inbox' });
ev('ACT.logOpen({id:S.log[0].id})'); assert.equal(ev("$('modal').hidden"), false, 'the inbox opens');ev('closeModal();S.log.shift()');
// an incident points at what broke
assert.deepEqual(JSON.parse(ev(`JSON.stringify(incOpen({ref:'${linkId}'}))`)), { a: 'link', v: linkId });
assert.deepEqual(JSON.parse(ev("JSON.stringify(incOpen({ref:S.links[0].trench||S.links[0].id}))")), { a: 'link', v: ev('S.links[0].id') });
@ -483,14 +479,13 @@ test('notifications: the NOC keeps the last ten minutes, folds repeats and opens
assert.equal(ev("S.log.length"), 6, 'a minute later it starts a new line');
// the NOC shows them right after the incidents, with Open where there is something to open
assert.equal(ev("logUnread()"), 6);
ev("renderHUD()"); assert.equal(doc.getElementById('hNocNew').hidden, false); assert.equal(doc.getElementById('hNocNew').textContent, '6');
ev("renderHUD()"); assert.equal(doc.getElementById('hNocNew').hidden, true, 'no unread count on the NOC button (2.0)');
ev("UI.left='noc';UI.leftOpen=true;UI.sel=null;renderLeft();renderHUD()");
const body = doc.getElementById('leftBody').textContent;
assert.match(body, /Notifications\s*last 10 minutes/);
assert.ok(body.indexOf('Notifications') < body.indexOf('DDoS scrubbing'), 'near the top, not at the bottom');
assert.match(body, /×5/); assert.match(body, /just now/);
assert.equal(doc.querySelectorAll('#leftBody [data-act=logOpen]').length, 2, 'Open only where it leads somewhere (2 of the 5 shown)');
assert.equal(doc.getElementById('hNocNew').hidden, true, 'read once the NOC is open');
assert.equal(ev("logUnread()"), 0);
ev("ACT.logAll()"); assert.equal(doc.querySelectorAll('#leftBody .note').length, 6); assert.equal(doc.querySelectorAll('#leftBody [data-act=logOpen]').length, 3);
// Open goes there
@ -506,12 +501,15 @@ test('notifications: the NOC keeps the last ten minutes, folds repeats and opens
ev("S.log.push({t:'old',k:'weird',o:{a:'city',v:'atlantis'},n:'many'},{t:5},{t:'x',o:{a:'tab',v:'evil'}},{t:'y',o:{a:'link',v:'l1'},at:'soon'});S=sanitize(S)");
const tail = JSON.parse(ev("JSON.stringify(S.log.slice(-3))"));
assert.deepEqual(tail.map(e => [e.t, e.k, e.o, e.n, e.at]), [['old', '', null, 1, 0], ['x', '', null, 1, 0], ['y', '', { a: 'link', v: 'l1' }, 1, 0]]);
// phones: the NOC tab carries the count
// phones: the NOC tab shows no numbers, only a red dot while something is broken
ev("__tick(1000);toast('<b>Router crashed</b><br>Your router in London is rebooting.','bad');UI.left='goals';UI.leftOpen=false");
dom.window.innerWidth = 360; ev("renderAll&&renderAll()");
const nocTab = [...doc.querySelectorAll('#tabbar [data-act=phoneTab]')].find(b => JSON.parse(b.dataset.args).t === 'noc');
assert.equal(nocTab.querySelector('.cnt').textContent, '1', 'one unread notification on the NOC tab');
assert.equal(nocTab.querySelector('.cnt').classList.contains('red'), false, 'not red: red is for incidents');
assert.equal(nocTab.querySelector('.cnt'), null, 'no number for unread notifications on the NOC tab');
ev("S.inc.push({id:'x1',type:'crash',city:'lon',msg:'',until:S.day+3});renderAll()");
const nocTab2 = [...doc.querySelectorAll('#tabbar [data-act=phoneTab]')].find(b => JSON.parse(b.dataset.args).t === 'noc');
assert.ok(nocTab2.querySelector('.cnt.dot.red'), 'a live incident shows a red dot');
assert.equal(nocTab2.querySelector('.cnt').textContent, '', 'and no number');
assert.deepEqual(errors, []);
});

View file

@ -163,7 +163,7 @@ test('N2: names are puns: no network, cable, exchange, data center, router or op
const norm = (s) => String(s).toLowerCase().normalize('NFD').replace(/[\u0300-\u036f]/g, '').replace(/[’`]/g, "'").replace(/\s+/g, ' ').trim();
const real = new Set(REAL_NAMES.map(norm));
const names = J(`[...NETS.map(n=>['network',n.name]),...CABLES.map(c=>['cable',c.name]),...XIX.map(x=>['exchange',x.name]),
...CITIES.flatMap(c=>[['exchange',c.ix],['data center',c.dc],['data center',c.dc2]]),...RG.map(r=>['router',r.n]),...Object.values(OPT).map(o=>['optic',o.n])].filter(x=>x[1])`);
...CITIES.flatMap(c=>[['exchange',c.ix],['data center',c.dc],['data center',c.dc2]]),...RG.map(r=>['router',r.n]),...Object.values(OPT).map(o=>['optic',o.n]),...Object.values(SEAT_ROUTES).flat().map(r=>['cable',r[2]])].filter(x=>x[1])`);
fail('N2', names.filter(([, n]) => real.has(norm(n))).map(([k, n]) => `${k} “${n}” is a real name`), 'find a pun');
fail('N2', names.filter(([, n]) => /-ish\b/i.test(n)).map(([k, n]) => `${k} “${n}”`), 'no lazy -ish names: find a real pun, or keep the plain word');
});
@ -215,8 +215,8 @@ test('M2: presets are ordered: Change Freeze never harsher than On-call, BGP at
const P = J('PRESETS'), C = J('CHAOS'), lead = { quick: 0, real: 1 };
assert.ok(C[P.freeze.chaos].m <= C[P.oncall.chaos].m && C[P.oncall.chaos].m <= C[P.bgp.chaos].m, 'M2: chaos');
assert.ok(lead[P.freeze.lead] <= lead[P.oncall.lead] && lead[P.oncall.lead] <= lead[P.bgp.lead], 'M2: lead times');
for (const k of ['market', 'inbox']) assert.ok(!P.freeze[k] || P.oncall[k], `M2: ${k}`);
assert.ok(P.bgp.market && P.bgp.inbox && P.bgp.money === 'normal' && P.bgp.gates === 'ladder', 'M2: BGP keeps every hardship');
assert.ok(!P.freeze.market || P.oncall.market, 'M2: market');
assert.ok(P.bgp.market && P.bgp.money === 'normal' && P.bgp.gates === 'ladder', 'M2: BGP keeps every hardship');
// seeded: the same network for a year under each preset
const n = {};
for (const p of ['freeze', 'oncall', 'bgp']) {
@ -230,15 +230,14 @@ test('M2: presets are ordered: Change Freeze never harsher than On-call, BGP at
test('M3: every subsystem that can annoy the player reads a rule', () => {
// [function, what it must read]
const reads = [['dayTick', 'chaosMul()'], ['fireEvent', "rule('market')"], ['ddosTick', 'ddosOff()'], ['inboxDay', "rule('inbox')"],
const reads = [['dayTick', 'chaosMul()'], ['fireEvent', "rule('market')"], ['ddosTick', 'ddosOff()'],
['soldOut', "rule('market')"], ['hwMul', "rule('market')"], ['leadDays', "rule('lead')"], ['pniLead', 'leadDays'],
['dfBuildDays', 'leadDays'], ['dayTick', "rule('clock')"], ['snub', "rule('market')"]];
fail('M3', reads.filter(([f, r]) => !ev(`typeof ${f}==='function'&&${f}.toString().includes(${JSON.stringify(r)})`)).map(([f, r]) => `${f}() does not read ${r}`), 'gate it on the ruleset (src/game/40-progress/30-rules.js)');
// and in play: no chaos, no market, no inbox means a quiet year
// and in play: no chaos and no market means a quiet year
const g = load();
g.ev("beginGame('Quiet','fra',{mode:'normal',preset:'oncall'});if(UI.pendGame)ACT.pitchSkip();S.rules=makeRules('oncall',{chaos:'none',market:false,inbox:false});S.cash=1e9;ACT.launchBB({city:'fra'});ACT.buyTransit({city:'fra',net:'cog',tier:1});ACT.buyIx({city:'fra',tier:1,signed:true});for(let i=0;i<360;i++)dayTick()");
g.ev("beginGame('Quiet','fra',{mode:'normal',preset:'oncall'});if(UI.pendGame)ACT.pitchSkip();S.rules=makeRules('oncall',{chaos:'none',market:false});S.cash=1e9;ACT.launchBB({city:'fra'});ACT.buyTransit({city:'fra',net:'cog',tier:1});ACT.buyIx({city:'fra',tier:1,signed:true});for(let i=0;i<360;i++)dayTick()");
assert.equal(g.ev('S.inc.length+(S.stats.incidents||0)'), 0, 'M3: nothing breaks without chaos');
assert.equal(g.ev('S.inbox.items.length+S.inbox.seq'), 0, 'M3: no mail without the inbox');
assert.equal(g.ev("hwMul('rt')"), 1, 'M3: no hardware inflation without the market');
assert.equal(g.ev("CITIES.slice(0,40).some(c=>soldOut('fra',c.id,1))"), false, 'M3: no sold-out routes without the market');
assert.deepEqual(g.errors, []);
@ -343,6 +342,25 @@ test('F2: a simple build in a start city makes money within three months on On-c
fail('F2', bad, 'a balance change made the start too hard; fix the balance, or argue for a new N in the gameplay-rules skill');
});
test('F3: a specialist path only brings customers you can already serve', () => {
const g = load();
g.ev("ACT.start({});S.cash=1e9;S.lvl=1;for(const c of ['nyc','chi','ash'])S.pops[c]=S.pops[c]||{day:0,bb:null,boost:0,down:0,routers:1,gen:false,rgen:0}");
g.ev("S.links.push({id:'w',a:'nyc',b:'chi',kind:'wave',tier:2,km:kmBetween('nyc','chi'),cut:0,mo:0},{id:'d',a:'chi',b:'ash',kind:'df',own:true,sys:'roadm',ch:['zr4','zr4','zr4','zr4'],km:kmBetween('chi','ash'),sub:false,cable:null,mo:0,trench:'d',cut:0,day:0,ready:0,spares:false},{id:'e',a:'nyc',b:'ash',kind:'df',own:true,sys:'roadm',ch:['zr4'],km:kmBetween('nyc','ash'),sub:false,cable:null,mo:0,trench:'e',cut:0,day:0,ready:0,spares:false});compute()");
const Jg = (x) => JSON.parse(g.ev(`JSON.stringify(${x})`));
const sp = Jg('spots()');
assert.ok(sp.length > 0, 'F3: the reference network is spotted');
const bad = [];
for (const s of sp) {
const T = Jg(`BIZ_T.${s.t}`);
if (!(T.lv > 1)) bad.push(`${s.t} needs no spotting at level 1`);
if (![s.a, s.b].filter(Boolean).every((c) => g.ev(`!!S.pops['${c}']`))) bad.push(`${s.t} names a city without a POP`);
if (s.k === 'lat' && !(g.ev(`bestLat('${s.a}','${s.b}')<=latMaxOf('${s.a}','${s.b}')`))) bad.push(`${s.t} ${s.a}–${s.b} is too slow`);
if (s.k === 'df' && !(s.n >= T.opts[0] * 0.75)) bad.push(`${s.t} ${s.a}–${s.b} asks for far more than the fiber carries`);
}
fail('F3', bad, 'spots0() must only name what the network can serve, or nearly');
assert.deepEqual(g.errors, []);
});
test('no page errors while checking the rules', () => {
assert.deepEqual(errors, []);
});

54
tests/gangnam.test.js Normal file
View file

@ -0,0 +1,54 @@
// Gangnam Style Peering: sender pays, turned up by the scenario rule `sender` (and only there).
const test = require('node:test');
const assert = require('node:assert/strict');
const { load } = require('./harness');
const start = (ev) => ev(`beginGame('T','icn',{scn:SCN.find(x=>x.id==='gangnam')});if(UI.pendGame)ACT.pitchSkip();closeModal();S.cash=1e8`);
const seoul = "ACT.launchBB({city:'icn'});ACT.buyTransit({city:'icn',net:'cog',tier:1});compute();for(let i=0;i<20;i++)dayTick();compute()";
test('sender pays: fee on Seoul transit, incumbents only over a paid PNI, cheap broadband', () => {
const { ev, errors } = load();
start(ev);
ev(seoul);
assert.ok(ev("scnRule('sender')"));
assert.equal(ev("R.reachable.ktt||R.reachable.skb||R.reachable.lgu"), false, 'transit does not carry the incumbents');
assert.ok(ev('R.reach') < 0.99);
const t = JSON.parse(ev("(()=>{const t=S.transit[0],q=R.p95[t.id];return JSON.stringify({fee:krFee(t,q),q,mo:transitMo(t,q)})})()"));
assert.ok(t.q > 0 && t.fee === Math.round(t.q * ev('KR_FEE')), 'a sender-pays fee per Gbps of transit');
assert.ok(ev("Math.abs(R.rev.eyeballs-R.cityEye.icn*sfOf(R,'icn')*EYE_RATE*KR_ARPU)<1"));
ev("ACT.pni({city:'icn',net:'ktt',tier:0});closeModal();for(let i=0;i<90&&!S.pni.every(pniOn);i++)dayTick();compute()");
assert.ok(ev('R.reachable.ktt') && ev('R.reach') >= 0.99, 'a paid PNI with Kay-Tea brings the reach');
assert.match(ev('scnCard()'), /Seoul served well/);
assert.match(ev('scnCard()'), /Monthly profit/);
assert.deepEqual(errors, []);
});
test('sender pays: Korean users mind a haul to Tokyo even over peering', () => {
const { ev, errors } = load();
start(ev);
ev("ACT.launchBB({city:'icn'});UI.via=null;UI.route=null;openLinkModal('icn','tok');ACT.buildLink({tier:1});closeModal();for(const x of ixIdsIn('tok')){ACT.buyIx({city:x,tier:1,signed:true});ACT.rs({city:x});}compute()");
assert.ok(ev('R.egT.ix') > 0 && !ev('R.egT.t'), 'only peering in Tokyo');
assert.ok(ev('R.latF.icn') < 0.95, 'the haul costs service');
assert.match(ev("latNote('icn')"), /Korean users notice/);
assert.deepEqual(errors, []);
});
test('Korea outside the scenario keeps its usual prices', () => {
const { ev, errors } = load();
ev("UI.startCity='icn';ACT.start({});closeModal();S.cash=1e8");
ev(seoul);
assert.ok(!ev("scnRule('sender')"));
assert.ok(ev('R.reachable.ktt'), 'transit reaches the incumbents');
assert.equal(ev("krFee(S.transit[0],100)"), 0);
assert.ok(ev("Math.abs(R.rev.eyeballs-R.cityEye.icn*sfOf(R,'icn')*EYE_RATE)<1"));
assert.deepEqual(errors, []);
});
test('an older Gangnam save picks up the sender-pays rule', () => {
const { ev, errors } = load();
start(ev);
const s = ev("(()=>{const o=JSON.parse(JSON.stringify(S));o.scn.rules={};return JSON.stringify(o);})()");
ev(`S=migrate(JSON.parse(${JSON.stringify(s)}))`);
assert.ok(ev("S.scn.rules.sender===true"));
assert.deepEqual(errors, []);
});

View file

@ -36,8 +36,8 @@ function tour(ev) {
['routers', "selectCity('fra');ACT.tab({t:'links'});ACT.models()"], ['vxc', "openVxcModal({from:'fra',to:'ams'});closeModal()"],
['tutorial', 'S.tut=0;renderCoach();S.tut=3;renderCoach();S.tut=null;renderCoach()'], ['win', 'showWin()']]) step(label, src);
const failSrc = ev('fireFailure.toString()');
for (const t of ['harmless', 'fatwave', 'label', 'mtu', 'oops', 'cleaner', 'maxpfx', 'prepend', 'rpki', 'amp', 'roadmff', 'optic', 'ac', 'cut', 'crash', 'power', 'transit', 'ixloop', 'leak', 'ddos']) {
const kind = ['harmless', 'fatwave', 'label', 'mtu', 'oops', 'cleaner', 'maxpfx', 'prepend', 'rpki', 'roadmff', 'ac'].includes(t) ? 'funny' : t;
for (const t of ['harmless', 'fatwave', 'label', 'mtu', 'oops', 'cleaner', 'prepend', 'rpki', 'amp', 'roadmff', 'optic', 'ac', 'cut', 'crash', 'power', 'transit', 'ixloop', 'leak', 'ddos']) {
const kind = ['harmless', 'fatwave', 'label', 'mtu', 'oops', 'cleaner', 'prepend', 'rpki', 'roadmff', 'ac'].includes(t) ? 'funny' : t;
const patched = failSrc.replace(/^function fireFailure/, 'function')
.replace('let tot=opts.reduce', `if(!opts.some(o=>o[0]==='${kind}'))return;opts.splice(0,opts.length,['${kind}',1]);let tot=opts.reduce`)
.replace('type=pick(f);}', `type=f.includes('${t}')?'${t}':pick(f);}`);
@ -82,8 +82,8 @@ test('missing translations fall back to the English, with placeholders filled',
assert.equal(ev("tr('test.no_such_label {n}',{n:3})"), 'test.no_such_label 3', 'an unknown label comes back as it is');
assert.equal(ev("trn('test.cats',1)"), '1 cat');
assert.equal(ev("trn('test.cats',2)"), '2 cats');
assert.equal(ev("trn('peering_inbox.n_day_ago',1)"), '1 giorno fa');
assert.equal(ev("trn('peering_inbox.n_day_ago',3)"), '3 giorni fa');
assert.equal(ev("trn('slots.n_day_ago',1)"), '1 giorno fa');
assert.equal(ev("trn('slots.n_day_ago',3)"), '3 giorni fa');
});
test('text that old saves stored in English is still translated', () => {

View file

@ -1,252 +0,0 @@
const test = require('node:test');
const assert = require('node:assert/strict');
const { load } = require('./harness');
function setup(ev) {
ev("ACT.start({});S.cash=1e9;S.lvl=6;for(const g of GOALS)S.done[g.id]=0;ACT.launchBB({city:'fra'});for(const c in S.pops)S.pops[c].rgen=3;compute()");
}
test('PNIs with the big networks take a month, now and then 6 to 12, and start at 100G; small ones take weeks', () => {
const { ev, errors } = load();
setup(ev);
ev("R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:0})");
assert.equal(ev('S.pni.length'), 0, 'no 10G PNI with NetChill');
assert.match(ev("document.getElementById('toasts').textContent"), /does not do 10G/);
// one order in seven gets lost in provisioning for months
ev("Math.random=()=>0.1;R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:1})");
const p = JSON.parse(ev('JSON.stringify(S.pni[0])'));
assert.ok(p.ready - ev('S.day') >= 180 && p.ready - ev('S.day') <= 365, `six to twelve months (${p.ready - ev('S.day')} days)`);
ev('compute()');
assert.equal(ev('R.usePni[S.pni[0].id]||0'), 0, 'nothing flows before delivery');
assert.equal(ev('R.cost.pni'), 0, 'and nothing is billed');
ev('S.nextFail=S.nextEvent=1e9;S.pni[0].ready=S.day+1;dayTick();compute()');
assert.ok(ev('R.usePni[S.pni[0].id]') > 0, 'delivered on the day');
// an upgrade is an augment on order: the old port keeps working meanwhile
ev("R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:2})");
assert.equal(ev('S.pni[0].tier'), 1);
assert.equal(ev('S.pni[0].up.tier'), 2);
ev('ACT.lagP({id:S.pni[0].id,d:1})');
assert.equal(ev('S.pni[0].up.n'), 1, 'one augment at a time');
ev('S.day=S.pni[0].up.ready-1;dayTick()');
assert.equal(ev('S.pni[0].tier'), 2);
assert.equal(ev('S.pni[0].up'), undefined);
// chasing it does nothing, mostly
ev("Math.random=()=>0.5;R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:3});const r0=S.pni[0].up.ready;ACT.pniChase({id:S.pni[0].id});window.__r=[r0,S.pni[0].up.ready]");
const [r0, r1] = JSON.parse(ev('JSON.stringify(__r)'));
assert.equal(r0, r1);
// most orders arrive in about a month
ev("Math.random=()=>0.5;S.pni=[];R.demTo.ggl=1e4;ACT.pni({city:'fra',net:'ggl',tier:1})");
assert.equal(ev("S.pni.find(p=>p.net==='ggl').ready-S.day"), 30);
ev("S.pni=S.pni.filter(p=>p.net!=='ggl')");
// a beer at a conference halves the wait
ev("Math.random=()=>0.99;S.conf={until:S.day+10,reg:'EU',name:'RIPE'}");
assert.equal(ev("pniLead('ggl')"), 15, 'the usual month, halved');
ev('Math.random=()=>0.1');
assert.equal(ev("pniLead('ggl')"), Math.round((180 + Math.floor(0.1 * 186)) / 2), 'a slow one, halved');
ev('Math.random=()=>0.99');
ev('S.conf=null');
// a small network: a few weeks
const small = ev("NETS.find(n=>n.pops.includes('fra')&&!pniBig(n.id)&&n.pol==='open'&&n.type!=='cdn').id");
ev(`Math.random=()=>0.99;ACT.pni({city:'fra',net:'${small}',tier:0})`);
const lead = ev(`S.pni.find(p=>p.net==='${small}').ready-S.day`);
assert.ok(lead >= 14 && lead <= 42, `weeks, not months (${lead})`);
assert.deepEqual(errors, []);
});
test('Doitsche Telekomm sells 1G PNIs; nobody else does', () => {
const { ev, errors } = load();
setup(ev);
ev("S.lvl=10;ACT.pni({city:'fra',net:'nfx',tier:-1})");
assert.equal(ev('S.pni.length'), 0);
assert.equal(ev("peerOk('dtk','pni','fra').ok"), true);
ev("ACT.pni({city:'fra',net:'dtk',tier:-1})");
assert.equal(ev('S.pni[0].g1'), true);
ev('S.pni[0].ready=S.day;compute()');
assert.equal(ev('pniG(S.pni[0])'), 1);
assert.equal(ev("liveCap(pniG(S.pni[0]),'fra','a',1)"), 1);
assert.equal(ev('pniPN(S.pni[0])'), '1G');
// and 1G grows into 10G
ev("ACT.pni({city:'fra',net:'dtk',tier:0})");
assert.equal(ev('S.pni[0].up.tier'), 0);
ev('S.day=S.pni[0].up.ready-1;dayTick()');
assert.equal(ev('S.pni[0].g1'), undefined);
assert.equal(ev('pniG(S.pni[0])'), 10);
ev("selectCity('fra');ACT.tab({t:'peer'})");
assert.deepEqual(errors, []);
});
test('Microsnoft has no capacity on the US east coast, at any price', () => {
const { ev, errors } = load();
setup(ev);
ev("for(const c of ['ash','nyc','hou'])ACT.buildPop({city:c});R.demTo.msf=1e5");
for (const c of ['ash', 'nyc', 'bos', 'atn', 'mia']) {
assert.equal(ev(`peerOk('msf','pni','${c}').ok`), false, c);
assert.equal(ev(`peerOk('msf','ix','${c}').ok`), false, c);
}
assert.match(ev("peerOk('msf','pni','ash').why"), /capacity|sold out|coming online/i);
assert.equal(ev("peerOk('msf','pni','hou').ok"), true, 'Houston is fine');
ev("ACT.pni({city:'ash',net:'msf',tier:1})");
assert.equal(ev("S.pni.filter(p=>p.city==='ash').length"), 0);
assert.equal(ev("peerOk('ggl','pni','ash').ok"), ev("R.demTo.ggl>=Math.round(NET.ggl.minPni*repMul())"), 'other networks are not affected');
assert.deepEqual(errors, []);
});
test('the peering inbox fills up, wants answers, and max-prefix alerts are growth or a leak', () => {
const { ev, errors } = load();
setup(ev);
ev("ACT.buildPop({city:'ams'});S.pops.ams.rgen=3;ACT.buyIx({city:'ams',tier:1});S.inbox.pol='selective';compute()");
ev('for(let i=0;i<60;i++)dayTick()');
assert.ok(ev('S.inbox.items.length') >= 2, 'mail arrives with an exchange port');
assert.ok(ev('S.inbox.rep') < 0, 'and ignoring it has a price');
// accept a real network's request: a bilateral session
const net = ev("ixMembers('ams').find(id=>{const n=NET[id];return n.type!=='cdn'&&n.type!=='t1'&&n.pol!=='paid'&&n.share<=0.006&&!ixSessions('ams').has(id);})");
assert.ok(net);
ev(`S.inbox.items=[{id:901,k:'req',ix:'ams',net:'${net}',day:S.day,stale:false,yrs:1,say:0},{id:902,k:'req',ix:'ams',nm:'Bob’s Bits',asn:212345,day:S.day,stale:true,yrs:7,say:3}];ACT.inbox()`);
assert.match(ev("document.getElementById('modalCard').textContent"), /Bob’s Bits/);
ev("ACT.inboxAct({id:901,a:'accept'});ACT.inboxAct({id:902,a:'accept'})");
assert.equal(ev(`!!S.peers['${net}@ams']`), true);
assert.equal(ev('S.inbox.tiny[212345].nm'), 'Bob’s Bits');
ev('compute()');
assert.equal(ev(`ixSessions('ams').has('${net}')`), true);
// growth: raising the limit brings the session back
ev(`S.inbox.items.push({id:903,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:100,got:180,leak:false,yrs:4});S.inbox.down['${net}@ams']=1e9`);
assert.equal(ev(`ixSessions('ams').has('${net}')`), false, 'down on max-prefix');
ev("ACT.inboxAct({id:903,a:'raise'})");
assert.equal(ev(`ixSessions('ams').has('${net}')`), true);
// a leak: raising the limit is a route leak, keeping it down is right
ev(`S.inbox.items.push({id:904,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:100,got:987654,leak:true,yrs:4});S.inbox.down['${net}@ams']=1e9;ACT.inboxAct({id:904,a:'raise'})`);
assert.ok(ev('S.ev.leak&&S.ev.leak.until>S.day'), 'a route leak');
assert.ok(ev("S.inc.some(i=>i.type==='leak')"));
ev(`S.inbox.items.push({id:905,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:100,got:987654,leak:true,yrs:4});S.inbox.down['${net}@ams']=1e9;ACT.inboxAct({id:905,a:'keep'})`);
const back = ev(`S.inbox.down['${net}@ams']`);
assert.ok(back > ev('S.day') && back < ev('S.day') + 12, 'back on its own in a few days');
// unanswered requests expire, and the reputation makes selective networks pickier
ev("S.inbox.items=[{id:906,k:'req',ix:'ams',net:'" + net + "',day:S.day-31,stale:false,yrs:1,say:0}];S.inbox.rep=0;inboxDay(S.day)");
assert.equal(ev('S.inbox.items.some(x=>x.id===906)'), false);
assert.ok(ev('S.inbox.rep') < 0);
ev('S.inbox.rep=-10');
assert.ok(ev('repMul()') > 1.05 && ev('repMul()') <= 1.1, 'pickier, but never a wall');
// an alert nobody answers clears itself once the other side notices
ev(`S.inbox.items=[{id:910,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:100,got:180,leak:false,yrs:4}];S.inbox.down['${net}@ams']=S.day+1;inboxDay(S.day+1)`);
assert.equal(ev('S.inbox.items.some(x=>x.id===910)'), false);
// bulk answers
ev("S.inbox.items=[{id:907,k:'req',ix:'ams',nm:'A',asn:1,day:S.day,say:0,yrs:1},{id:908,k:'req',ix:'ams',nm:'B',asn:2,day:S.day,say:0,yrs:1}];ACT.inboxAll({a:'decline'})");
assert.equal(ev('S.inbox.items.length'), 0);
// the Networks tab says how much mail is waiting
ev("S.inbox.items=[{id:909,k:'req',ix:'ams',nm:'C',asn:3,day:S.day,say:1,yrs:1}];closeModal();UI.left='nets';UI.leftOpen=true;renderLeft()");
assert.match(ev("document.getElementById('left').textContent"), /Peering inbox/);
assert.deepEqual(errors, []);
});
test('the AI agent answers everything, costs $20M a year and gets it wrong a lot', () => {
const { ev, errors } = load();
setup(ev);
ev("ACT.buildPop({city:'ams'});S.pops.ams.rgen=3;ACT.buyIx({city:'ams',tier:1});compute()");
const net = ev("ixMembers('ams').find(id=>{const n=NET[id];return n.type!=='cdn'&&n.type!=='t1'&&n.pol!=='paid'&&n.share<=0.006;})");
const cash = ev('S.cash');
ev("ACT.inboxBot({on:1});compute()");
assert.equal(ev('S.inbox.bot'), true);
assert.ok(cash - ev('S.cash') >= ev('AI_MO'));
assert.ok(ev('R.cost.extras') >= ev('AI_MO'), 'billed every month');
assert.ok(Math.abs(ev('AI_MO*12') - 20e6) < 12);
// it always gets a leak wrong when the dice say so
ev(`S.peers['${net}@ams']=true;S.inbox.items=[{id:1,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:50,got:999999,leak:true,yrs:3},{id:2,k:'req',ix:'ams',nm:'D',asn:4,day:S.day,say:0,yrs:1}];S.inbox.down['${net}@ams']=1e9`);
ev('Math.random=()=>0.1;inboxBot()');
assert.equal(ev('S.inbox.items.length'), 0, 'inbox zero');
assert.ok(ev('S.ev.leak&&S.ev.leak.until>S.day'), 'and a route leak');
assert.ok(ev("S.inbox.log.some(e=>/They seemed nice/.test(tr(e.m,e.a)))"), 'the log keeps a label, read in the language of the player');
ev('ACT.inbox()');
assert.match(ev("document.getElementById('modalCard').textContent"), /They seemed nice/);
// and sometimes it gets it right
ev(`S.inbox.items=[{id:3,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:50,got:999999,leak:true,yrs:3}];S.ev.leak=null;Math.random=()=>0.9;inboxBot()`);
assert.ok(!ev('S.ev.leak'));
ev('ACT.inboxBot({on:0});compute()');
assert.equal(ev('S.inbox.bot'), false);
assert.ok(ev('R.cost.extras') < ev('AI_MO'));
assert.deepEqual(errors, []);
});
test('saves: the inbox and PNIs on order survive, and garbage is repaired', () => {
const { ev, errors } = load();
setup(ev);
ev("S.pni.push({id:'x',city:'fra',net:'dtk',tier:0,g1:true,ready:S.day+30,up:{tier:'9',n:99,ready:'x'}},{id:'y',city:'fra',net:'nfx',tier:1,g1:true})");
ev("S.inbox={items:[{id:1,k:'req',ix:'ams',nm:'Ok',asn:5,day:1,say:99},{k:'evil',ix:'ams'},{id:2,k:'mp',ix:'nowhere',key:'a'},'x'],down:{'a@b':'7'},tiny:{'12':{nm:'T',ix:'ams'},'no':{ix:'ams'}},rep:99,bot:'yes',log:[{d:1,m:'hi',a:{who:{x:1}}},5],seq:'z'}");
ev('const o=JSON.parse(JSON.stringify(S));sanitize(o);window.__o=o');
assert.equal(ev('__o.inbox.items.length'), 1);
assert.equal(ev('__o.inbox.items[0].say'), ev('REQ_SAY.length-1'));
assert.equal(ev('__o.inbox.rep'), 5);
assert.equal(ev('__o.inbox.bot'), true);
assert.equal(ev("__o.inbox.down['a@b']"), 7);
assert.deepEqual(JSON.parse(ev('JSON.stringify(Object.keys(__o.inbox.tiny))')), ['12']);
assert.equal(ev('typeof __o.inbox.log[0].a.who'), 'string');
assert.equal(ev('__o.inbox.seq'), 1);
assert.equal(ev("__o.pni.find(p=>p.id==='x').up.n"), ev('LAG_MAX'));
assert.equal(ev("__o.pni.find(p=>p.id==='x').g1"), true);
assert.equal(ev("__o.pni.find(p=>p.id==='y').g1"), undefined, 'only Doitsche Telekomm does 1G');
// an old save without an inbox loads with an empty one
ev('const p=JSON.parse(JSON.stringify(S));delete p.inbox;sanitize(p);window.__p=p');
assert.equal(ev('__p.inbox.items.length'), 0);
assert.equal(ev('__p.inbox.bot'), false);
assert.deepEqual(errors, []);
});
test('now and then a route is sold out of a wave size, for a while, and asking again does not reroll it', () => {
const { ev, errors } = load();
setup(ev);
ev("ACT.buildPop({city:'ams'});S.pops.ams.rgen=3");
assert.equal(ev("S.day=10;!!soldOut('fra','ams',3,null)||!!soldOut('fra','ams',1,null)"), false, 'never in the first 90 days');
// find a day when 400G is sold out between Frankfurt and Amsterdam
const day = ev("(()=>{for(let d=90;d<20000;d++){S.day=d;if(soldOut('fra','ams',2,null))return d;}return -1;})()");
assert.ok(day > 0, 'it happens');
ev(`S.day=${day}`);
const so = JSON.parse(ev("JSON.stringify(soldOut('fra','ams',2,null))"));
assert.ok(so.until > day && so.until - day <= 90);
assert.equal(ev(`S.day=${so.until - 1};!!soldOut('fra','ams',2,null)`), true, 'the same verdict for the whole window');
ev(`S.day=${day}`);
const share = ev("(()=>{let n=0;for(let d=90;d<20090;d++){S.day=d;if(soldOut('ams','fra',5,null))n++;}return n/20000;})()");
assert.ok(share > 0.02 && share < 0.2, `rare, a bit more for big waves (${share})`);
ev(`S.day=${day};UI.via=null;openLinkModal('fra','ams')`);
assert.match(ev("document.getElementById('modalCard').textContent"), /sold out for \d+ days/);
const n = ev('S.links.length');
ev('ACT.buildLink({tier:2})');
assert.equal(ev('S.links.length'), n, 'no 400G today');
assert.match(ev("document.getElementById('toasts').textContent"), /No 400G capacity on this route/);
assert.deepEqual(errors, []);
});
test('peering policy: open accepts everyone, selective is quieter but manual, closed scares customers; raise all limits at once', () => {
const { ev, errors } = load();
setup(ev);
ev("S.nextFail=S.nextEvent=1e9;ACT.buildPop({city:'ams'});S.pops.ams.rgen=3;ACT.buyIx({city:'ams',tier:1});ACT.rs({city:'ams'});compute()");
assert.equal(ev("ppol()"), 'open', 'open by default, as before');
const rsOpen = ev("ixSessions('ams').size");
assert.ok(rsOpen > 0, 'the route server works');
// open: requests are accepted as they come in
ev("Math.random=()=>0.01;inboxDay(S.day+1)");
assert.equal(ev("S.inbox.items.filter(x=>x.k==='req').length"), 0);
assert.ok(ev("Object.keys(S.inbox.tiny).length+Object.keys(S.peers).length") > 0, 'and they become sessions');
// selective: the route server stops counting, you ask yourself, and requests wait for you
ev("ACT.inboxPol({p:'selective'});compute()");
assert.ok(ev("ixSessions('ams').size") < rsOpen, 'no route server sessions');
ev("selectCity('ams');ACT.tab({t:'peer'})");
assert.match(ev("document.getElementById('panelBody').textContent"), /Off while your peering policy is Selective/);
ev("closeModal();S.inbox.items=[];inboxDay(S.day+1)");
assert.equal(ev("S.inbox.items.filter(x=>x.k==='req').length"), 1, 'it waits for an answer');
// closed: no requests, a sinking reputation, fewer customers calling
ev("ACT.inboxPol({p:'closed'});S.inbox.items=[];S.inbox.rep=0;for(let i=0;i<10;i++)inboxDay(S.day+1)");
assert.equal(ev("S.inbox.items.filter(x=>x.k==='req').length"), 0);
assert.ok(ev('S.inbox.rep') < 0);
// raise all: every alert at once, leaks included
const net = ev("ixMembers('ams').find(id=>{const n=NET[id];return n.type!=='cdn'&&n.type!=='t1'&&n.pol!=='paid'&&n.share<=0.006;})");
ev(`S.peers['${net}@ams']=true;S.inbox.items=[{id:71,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:50,got:80,leak:false,yrs:2},{id:72,k:'mp',key:'t9',nm:'X',asn:9,ix:'ams',day:S.day,lim:50,got:990000,leak:true,yrs:2}];S.inbox.down['${net}@ams']=1e9;ACT.inbox()`);
assert.match(ev("document.getElementById('modalCard').textContent"), /Raise all max-prefix limits/);
ev('ACT.inboxRaiseAll()');
assert.equal(ev("S.inbox.items.length"), 0);
assert.equal(ev(`!!S.inbox.down['${net}@ams']`), false);
assert.ok(ev('S.ev.leak&&S.ev.leak.until>S.day'), 'one was a leak');
assert.match(ev("document.getElementById('toasts').textContent"), /One of them was a route leak/);
// saves keep the policy
ev("const o=JSON.parse(JSON.stringify(S));o.inbox.pol='weird';sanitize(o);window.__o=o");
assert.equal(ev('__o.inbox.pol'), 'open');
assert.deepEqual(errors, []);
});

View file

@ -571,7 +571,8 @@ test('buttons behind an open modal stay quiet, and a declined PNI clears its sta
const { ev, errors } = load();
ev("ACT.start({});S.cash=1e7;for(const g of GOALS)S.done[g.id]=0;ACT.launchBB({city:'fra'});ACT.buildPop({city:'mrs'});ACT.buyTransit({city:'mrs',net:'cog',tier:1});compute()");
// the PNI button was drawn while Tangerine still wanted our traffic; by the click it doesn't
ev("R.demTo.tng=50;UI.sel={type:'city',id:'mrs'};UI.tab='peer';renderAll();R.demTo.tng=0;window.__n=0;const o=toast;toast=function(h){if(/declined/.test(h))window.__n++;return o.apply(this,arguments);}");
// Tier 2 is folded when nothing there is worth a PNI (#175): open it, as a player would.
ev("UI.pniOpen={t2:true};R.demTo.tng=50;UI.sel={type:'city',id:'mrs'};UI.tab='peer';renderAll();R.demTo.tng=0;window.__n=0;const o=toast;toast=function(h){if(/declined/.test(h))window.__n++;return o.apply(this,arguments);}");
const btn = "document.querySelector('#panel [data-act=pni][data-args*=tng]')";
assert.ok(ev(`!!${btn}`), 'a stale button to start with');
ev(`${btn}.focus();${btn}.click()`);
@ -1310,7 +1311,7 @@ test('#134 an exchange named after its city does not repeat the city in messages
const labs = JSON.parse(ev("JSON.stringify(lagsN().filter(o=>o.k==='ix').map(o=>o.lab))"));
assert.ok(labs.includes('IX.brrr Campinas LAG'), labs.join(' | '));
assert.ok(labs.some(l => / LAG in Frankfurt$/.test(l)), labs.join(' | '));
ev("S.inc=[];eval('('+fireFailure.toString().replace('type=pick(f);}',\"type='maxpfx';}\").replace(\"const c=pick(Object.keys(S.ixp));\",\"const c='cpq';\")+')')()");
ev("S.inc=[];eval('('+fireFailure.toString().replace(\"if(only)type=only;\",\"type='ixloop';\").replace(\"const c=pick(Object.keys(S.ixp));\",\"const c='cpq';\")+')')()");
const msg = ev("S.inc.map(i=>i.msg).join(' ')");
assert.match(msg, /IX\.brrr Campinas/);
assert.doesNotMatch(msg, /in Campinas/);

View file

@ -299,12 +299,12 @@ test('#34 scenario goal, progress and customer level are always in view', () =>
ev("UI.left='goals';UI.leftOpen=true;UI.sel=null;renderAll()");
const left = () => dom.window.document.getElementById('leftBody').textContent;
assert.match(left(), /Mind the Gap/);
assert.match(left(), /POP in Bogotá/);
assert.match(left(), /Bogotá on your network/);
assert.match(left(), /days left/);
assert.match(left(), /Customer level 1 of 13/);
assert.equal(ev("$('hScn').hidden"), false, 'scenario chip in the top bar');
const f0 = ev('scnProg().f');
ev("S.cash=1e8;ACT.buildPop({city:'bog'});ACT.buildPop({city:'lim'});compute();renderAll()");
ev("S.cash=1e8;UI.via='pccs';openLinkModal('pan','bog');ACT.buildLink({tier:1});closeModal();compute();renderAll()");
assert.ok(ev('scnProg().f') > f0, 'progress moves when a goal step is reached');
assert.match(ev("$('hScnVal').textContent"), /%/);
assert.match(ev("$('hTier').textContent"), /Lv 1/);
@ -361,8 +361,10 @@ test('Flood Season: attacks keep coming, grow, and only count when service held'
for (let i = 0; i < 40; i++) { ev('dayTick()'); if (ev('ddosAll().some(a=>a.start===S.day)')) n++; }
assert.ok(n >= 4, `attacks keep coming (${n} in 40 days)`);
assert.ok(ev('(S.stats.ddosOk||0)+(S.stats.ddosLost||0)') >= 3, 'finished attacks are scored');
// scoring: held only if service stayed at 97%+
ev("S.stats.ddosOk=0;S.stats.ddosOkBig=0;S.stats.ddosLost=0;ddosDone({city:'ams',gbps:1500,worst:0.99});ddosDone({city:'ams',gbps:20,worst:0.5});ddosDone({city:'xyz',gbps:30,worst:1})");
// scoring: held only if service stayed at 97%+, and a terabit one only with scrubbing or Flowspec
ev("S.stats.ddosOk=0;S.stats.ddosOkBig=0;S.stats.ddosLost=0;ddosDone({city:'ams',gbps:1500,vec:'http',worst:0.99})");
assert.equal(ev('S.stats.ddosOk+S.stats.ddosOkBig'), 1, 'held, but no terabit credit without mitigation');
ev("S.scrubs.push({city:'ams',tier:1});S.stats.ddosOk=0;S.stats.ddosOkBig=0;S.stats.ddosLost=0;ddosDone({city:'ams',gbps:1500,worst:0.99});ddosDone({city:'ams',gbps:20,worst:0.5});ddosDone({city:'xyz',gbps:30,worst:1})");
assert.equal(ev('S.stats.ddosOk'), 2);
assert.equal(ev('S.stats.ddosOkBig'), 1);
assert.equal(ev('S.stats.ddosLost'), 1);

32
tests/own-asn.test.js Normal file
View file

@ -0,0 +1,32 @@
const test = require('node:test');
const assert = require('node:assert/strict');
const { load } = require('./harness');
test('pick your own AS number next to the name, or leave it empty for a random one (#135)', () => {
const { ev, errors } = load();
assert.ok(ev("!!document.querySelector('.network-name .nmwrap #nmIn')&&!!document.querySelector('.nmwrap .reroll[data-act=randomName]')"), 'round reroll button inside the name box');
const sug = ev("+document.getElementById('asnIn').placeholder");
assert.ok(ev(`asnOk(${sug})`), 'the suggestion is usable');
const set = v => ev(`(()=>{const i=document.getElementById('asnIn');i.value=${JSON.stringify(v)};i.dispatchEvent(new Event('input'));return i.value})()`);
assert.equal(set('AS 2-0-1-9-1-7'), '201917', 'only digits stay');
ev("ACT.start({});if(UI.pendGame)ACT.pitchSkip()");
assert.equal(ev('S.asn'), 201917);
assert.match(ev("document.getElementById('hAsn').textContent"), /AS201917/);
assert.deepEqual(errors, []);
});
test('an AS number that would not route is refused before the game starts', () => {
const { ev, errors } = load();
for (const bad of ['0', '23456', '64512', '4200000001', String(ev('NETS[0].asn'))]) {
assert.equal(ev(`asnOk(${bad})`), false, bad);
}
ev("(()=>{const i=document.getElementById('asnIn');i.value='64512';i.dispatchEvent(new Event('input'))})()");
assert.ok(ev("document.getElementById('asnIn').classList.contains('bad')"));
ev('ACT.start({})');
assert.equal(ev('S'), null, 'no game');
assert.match(ev("document.getElementById('toasts').textContent"), /won't route/);
ev("(()=>{const i=document.getElementById('asnIn');i.value='';i.dispatchEvent(new Event('input'))})()");
ev("ACT.start({});if(UI.pendGame)ACT.pitchSkip()");
assert.ok(ev('asnOk(S.asn)&&S.asn>=200000'), 'empty: a random one');
assert.deepEqual(errors, []);
});

117
tests/peering-desk.test.js Normal file
View file

@ -0,0 +1,117 @@
const test = require('node:test');
const assert = require('node:assert/strict');
const { load } = require('./harness');
function setup(ev) {
ev("ACT.start({});S.cash=1e9;S.lvl=6;S.nextFail=S.nextEvent=1e9;for(const g of GOALS)S.done[g.id]=0;ACT.launchBB({city:'fra'});ACT.buildPop({city:'ams'});S.pops.ams.rgen=3;ACT.buyIx({city:'ams',tier:1});compute()");
}
// Math.random returns these, then 0.5: [ask?, which IX, a real network?, (which one), fresh PeeringDB?]
const seq = (ev, a) => ev(`(()=>{const q=${JSON.stringify(a)};Math.random=()=>q.length?q.shift():0.5;})()`);
const REAL = [0.01, 0.01, 0.01, 0.01, 0.01], STALE = [0.01, 0.01, 0.9, 0.1], FRESH = [0.01, 0.01, 0.9, 0.9];
test('peering requests are answered by policy: Open accepts all, Selective the worthwhile ones, Closed none', () => {
const { ev, errors } = load();
setup(ev);
assert.equal(ev('ppol()'), 'open', 'open by default, as before');
const day = () => ev('peeringDeskDay(S.day)');
const peers = () => ev("Object.keys(S.peers).filter(k=>k.endsWith('@ams')).length");
let n = peers();
seq(ev, REAL); day();
assert.equal(peers(), n + 1, 'Open: a real network on the exchange gets its session at once');
assert.ok(ev("ixSessions('ams').size") > 0);
seq(ev, STALE); day();
assert.deepEqual(JSON.parse(ev('JSON.stringify([S.pdesk.a,S.pdesk.d])')), [2, 0], 'Open even takes the stale newcomer');
ev("ACT.peerPol({p:'selective'})");
assert.equal(ev('ppol()'), 'selective');
n = peers(); seq(ev, REAL); day();
assert.equal(peers(), n + 1, 'Selective: a real small network is worth it');
seq(ev, STALE); day();
seq(ev, FRESH); day();
assert.deepEqual(JSON.parse(ev('JSON.stringify([S.pdesk.a,S.pdesk.d])')), [4, 1], 'stale PeeringDB declined, up-to-date one accepted');
ev("ACT.peerPol({p:'closed'})");
n = peers(); seq(ev, REAL); day(); seq(ev, FRESH); day();
assert.equal(peers(), n, 'Closed: nobody gets a session');
assert.equal(ev('S.pdesk.d'), 3);
ev("ACT.peerPol({p:'nope'})");
assert.equal(ev('ppol()'), 'closed', 'junk is ignored');
assert.deepEqual(errors, []);
});
test('once a week the NOC log gets one folded peering desk line', () => {
const { ev, errors } = load();
setup(ev);
ev("ACT.buyIx({city:'fra',tier:1,signed:true});ACT.peerPol({p:'selective'})");
seq(ev, [0.99]); ev('S.day=Math.ceil(S.day/7)*7+7;S.pdesk=null;peeringDeskDay(S.day)');
const w = ev('Math.floor(S.day/7)');
for (let i = 0; i < 6; i++) { seq(ev, i % 3 === 2 ? STALE : [0.01, i % 2 ? 0.01 : 0.99, 0.9, 0.9]); ev(`peeringDeskDay(S.day+${i})`); }
assert.equal(ev('S.pdesk.w'), w);
const logs = ev('S.log.length');
seq(ev, [0.99]); ev('peeringDeskDay(S.day+7)');
assert.equal(ev('S.log.length'), logs + 1, 'one line for the week');
const line = ev('S.log[0].t');
assert.match(line, /^Peering desk: 4 new sessions at .+ and .+, 2 declined \(Selective\)\.$/);
assert.deepEqual(JSON.parse(ev('JSON.stringify(S.log[0].o)')), { a: 'tab', v: 'nets' });
assert.equal(ev('S.pdesk.w'), w + 1);
// a quiet week says nothing
ev('peeringDeskDay(S.day+14)');
assert.equal(ev('S.log.length'), logs + 1);
// the Networks tab has the policy picker, what it does, and last week's line; it fits a phone
ev("window.innerWidth=360;UI.left='nets';UI.leftOpen=true;S.pdeskRep.w=Math.floor(S.day/7)-1;renderLeft()");
const left = ev("document.getElementById('left').textContent");
assert.match(left, /Peering policy: Selective/);
assert.match(left, /newcomers with an up-to-date PeeringDB/);
assert.match(left, /Peering desk: 4 new sessions/);
assert.doesNotMatch(left, /inbox/i);
ev("document.querySelector('#left [data-act=peerPol][data-args*=closed]').click()");
assert.equal(ev('ppol()'), 'closed');
assert.match(ev("document.getElementById('left').textContent"), /Every peering request is declined/);
// more than four exchanges fold into "and N more"
ev("S.pdeskRep={w:0,a:9,d:0,p:'open',ix:['ams','fra','lon','par','nyc']}");
assert.match(ev('pdeskLine(S.pdeskRep)'), /9 new sessions at .+, .+, .+ and 2 more exchanges \(Open to all\)/);
assert.match(ev("pdeskLine({a:0,d:1,p:'closed',ix:[]})"), /^Peering desk: 1 request declined \(Closed\)\.$/);
assert.deepEqual(errors, []);
});
test('old saves with inbox, max-prefix and Large Peering Model state load and play', () => {
const { ev, errors } = load();
setup(ev);
const net = ev("ixMembers('ams').find(id=>{const n=NET[id];return n.type!=='cdn'&&n.type!=='t1'&&n.pol!=='paid'&&n.share<=0.006;})");
ev(`S.peers['${net}@ams']=true;delete S.ppol;delete S.pdesk;delete S.pdeskRep;
S.inbox={items:[{id:1,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:50,got:999999,leak:true,yrs:3},{id:2,k:'req',ix:'ams',nm:'D',asn:4,day:S.day,say:0,yrs:1}],
down:{'${net}@ams':S.day+30},tiny:{'4':{nm:'D',ix:'ams'}},rep:-8,bot:true,pol:'selective',log:[{d:1,m:'peering_inbox.fire_the_ai',a:{}}],seq:2};
S.rules={...S.rules,inbox:true};S.ev.ixdown={ams:S.day+2};
S.inc.push({id:'m1',type:'maxpfx',ref:'ams',until:S.day+2,msg:'A member leaked the table.',cost:0,start:S.day});
S.log.unshift({id:'l1',t:'Peering request',h:'Peering request',k:'',o:{a:'inbox'},ts:Date.now()})`);
ev('S=migrate(JSON.parse(JSON.stringify(S)));compute()');
assert.equal(ev('S.inbox'), undefined, 'the inbox is gone');
assert.equal(ev('ppol()'), 'selective', 'the policy is kept');
assert.equal(ev("'inbox' in S.rules"), false);
assert.equal(ev("S.inc.find(i=>i.id==='m1').type"), 'ixloop', 'a max-prefix outage in flight becomes an ordinary IX outage');
assert.equal(ev("S.inc.some(i=>i.type==='maxpfx')"), false);
assert.deepEqual(JSON.parse(ev("JSON.stringify(S.log.find(e=>e.id==='l1').o)")), { a: 'tab', v: 'nets' });
assert.equal(ev(`ixSessions('ams').has('${net}')`), true, 'no session stays down on an old max-prefix limit');
const extras = ev('R.cost.extras');
assert.ok(extras < 20e6 / 12, 'the Large Peering Model no longer bills');
ev("ACT.logOpen({id:'l1'})");
assert.equal(ev('UI.left'), 'nets');
ev('for(let i=0;i<40;i++)dayTick()');
assert.ok(ev('S.inc.every(i=>i.type!=="maxpfx")'));
assert.ok(ev('S.pdesk&&S.pdesk.w>=0'));
// garbage in the new fields is repaired
ev("const o=JSON.parse(JSON.stringify(S));o.ppol='weird';o.pdesk={w:'x',a:-5,d:1e9,ix:['ams','ams','nowhere',3]};o.pdeskRep=[1];sanitize(o);window.__o=o");
assert.equal(ev('__o.ppol'), 'open');
assert.deepEqual(JSON.parse(ev('JSON.stringify(__o.pdesk)')), { w: 0, a: 0, d: 1e5, ix: ['ams'] });
assert.equal(ev('__o.pdeskRep'), null);
assert.deepEqual(errors, []);
});
test('max-prefix incidents can no longer fire', () => {
const { ev, errors } = load();
setup(ev);
assert.equal(ev("fireFailure.toString().includes('maxpfx')"), false);
ev("S.day=100;const src=fireFailure.toString().replace(/^function fireFailure/,'function').replace('let tot=opts.reduce',\"opts.splice(0,opts.length,['funny',1]);let tot=opts.reduce\");window.__ff=eval('('+src+')')");
ev("__reseed(7);for(let i=0;i<200;i++){__ff();S.inc=S.inc.filter(x=>x.type!=='maxpfx'||(window.__mp=1,0));}");
assert.equal(ev('!!window.__mp'), false);
assert.equal(ev("typeof inboxDay+typeof ibx+typeof ACT.inboxRaiseAll+typeof ACT.inboxBot"), 'undefinedundefinedundefinedundefined');
assert.deepEqual(errors, []);
});

View file

@ -200,15 +200,14 @@ test('a peer at a rival exchange can de-peer you without stopping the game', ()
assert.deepEqual(errors, []);
});
test('an IX meltdown at a rival exchange names the city, and a failing day tick does not stop the game', () => {
test('an IX meltdown at a rival exchange names it, and a failing day tick does not stop the game', () => {
const { ev, errors } = load();
ev("ACT.start({});S.cash=1e8;ACT.buildPop({city:'ams'});ACT.buyIx({city:'ams~2',tier:1});S.day=100");
const src = ev('fireFailure.toString()').replace(/^function fireFailure/, 'function')
.replace('let tot=opts.reduce', "opts.splice(0,opts.length,['funny',1]);let tot=opts.reduce")
.replace('type=pick(f);}', "type='maxpfx';}");
.replace('let tot=opts.reduce', "opts.splice(0,opts.length,['ixloop',1]);let tot=opts.reduce");
ev('window.__ff=' + src);
ev('__ff()');
assert.match(ev("S.inc.find(i=>i.type==='maxpfx').msg"), /in Amsterdam, is down/);
assert.ok(ev("S.inc.find(i=>i.type==='ixloop').msg.includes(ixName('ams~2'))"));
// a tick that throws is caught, reported once, and the loop keeps going
ev("const dt0=dayTick;window.dayTick=()=>{throw new Error('boom')};UI.speed=1;acc=DAY_MS;last=0;frame(16);window.dayTick=dt0");
assert.equal(ev('UI.tickErr'), true);

135
tests/pni-list.test.js Normal file
View file

@ -0,0 +1,135 @@
// The PNI list (#175, #172): how you reach each network, whether a PNI here is worth it, sorted, filtered and grouped.
const test = require('node:test');
const assert = require('node:assert/strict');
const { load } = require('./harness');
// Frankfurt with 100G of Cogentle transit and 50G of eyeballs: nothing dropped, everything over transit.
const fra = (ev, d = 50) => {
ev("ACT.start({});if(UI.pendGame)ACT.pitchSkip();S.cash=1e9;S.lvl=6;for(const g of GOALS)S.done[g.id]=0;ACT.launchBB({city:'fra'})");
ev(`S.pops.fra.bb.d=${d};S.grace=null;ACT.buyTransit({city:'fra',net:'cog',tier:1});for(const t of S.transit)t.ready=0;compute()`);
};
const chip = (ev, id, c = 'fra') => ev(`(()=>{const d=document.createElement('div');d.innerHTML=pniChip('${id}',${c ? `'${c}'` : 'null'});return d.textContent})()`);
test('one status chip per network, most direct first', () => {
const { ev, errors } = load();
fra(ev);
assert.equal(chip(ev, 'ggl'), '💸 Via transit');
// PNI here, with its size and load
ev("S.pni.push({id:'pg',net:'ggl',city:'fra',tier:1});compute()");
const load_ = ev("pct(R.usePni[S.pni[0].id]/100)");
assert.equal(chip(ev, 'ggl'), `🔗 PNI here · 100G · ${load_}`);
// On order shows as such
ev("S.pni[0].ready=S.day+20;compute()");
assert.equal(chip(ev, 'ggl'), '🔗 PNI here · on order');
ev("S.pni[0].ready=0;compute()");
// Elsewhere: the city names, and in the Networks tab (no POP) "PNI at"
ev("for(const c of ['ams','lon','par'])S.pni.push({id:'x'+c,net:'nfx',city:c,tier:1});compute()");
assert.equal(chip(ev, 'nfx'), '🔗 PNI elsewhere: Amsterdam, London +1');
assert.equal(chip(ev, 'ggl', null), '🔗 PNI at Frankfurt');
// IX session
ev("ACT.buyIx({city:'fra',tier:1,signed:true});S.peers['akm@fra']=true;compute()");
assert.equal(chip(ev, 'akm'), `🤝 Peers at ${ev("ixName('fra')")}`);
// Through a peer's customer cone: named after the peer that carries it (R.cone)
ev("S.pni.push({id:'pntt',net:'ntt',city:'fra',tier:1});compute()");
assert.equal(ev("R.cone.voc"), 'ntt');
assert.equal(chip(ev, 'voc'), `🧺 Via ${ev("NET.ntt.name")}'s cone`);
// Not reached once transit goes
ev("S.transit=[];compute()");
assert.equal(ev("R.reachable.lvl"), false);
assert.equal(chip(ev, 'lvl'), '🚫 Not reached');
assert.deepEqual(errors, []);
});
test('the value line matches the transit bill by hand, and the worth-it rule', () => {
const { ev, errors } = load();
fra(ev);
const v = ev("pniVal('ggl','fra')");
const t = ev("(()=>{const t=S.transit[0];return {q:R.p95[t.id],per:transitPerG(NET[t.net],t.city,premOn(t))*S.priceMul,floor:PORT[t.tier].g*0.2}})()");
assert.ok(v.t > 1 && v.ix === 0 && v.p === 0 && v.u < 1e-6, 'all of it over transit');
assert.ok(t.q - v.t > t.floor, 'above the commit, so each Gbps saved is the per-Gbps price');
assert.ok(Math.abs(v.saved - v.t * t.per) < 1e-6, 'saved = Gbps × transit price');
assert.equal(v.cost, ev("PORT[1].pni"), 'a 100G PNI with Goggle (no fee, no per-G)');
assert.equal(v.tier, 1, 'the smallest port Goggle accepts');
assert.equal(v.val, v.saved - v.cost);
assert.equal(v.worth, v.val > 0);
// Below the commit floor nothing is saved: a tiny network has little to gain.
const small = ev("pniVal('pst','fra')");
assert.ok(small.g < 1 && !small.worth);
// A full transit port drops traffic: a PNI that carries it is worth it even if it saves no transit.
ev("S.pops.fra.bb.d=400;compute()");
const big = ev("pniVal('nfx','fra')");
assert.ok(big.u >= 1 && big.drop >= 1 && big.worth, 'dropped traffic makes it worth it');
// Information only: routing is the same with or without the list reading it.
const before = ev("JSON.stringify(R.usePni)+R.served");
ev("renderAll();UI.sel={type:'city',id:'fra'};UI.tab='peer';renderPanel();compute()");
assert.equal(ev("JSON.stringify(R.usePni)+R.served"), before);
assert.deepEqual(errors, []);
});
test('the PNI list: worth it first, filters, groups by type folded when idle, phones', () => {
const { ev, errors, dom } = load();
dom.window.innerWidth = 360;
fra(ev, 400);
ev("S.pni.push({id:'pg',net:'ggl',city:'fra',tier:1});compute()");
const panel = () => { ev("UI.sel={type:'city',id:'fra'};UI.tab='peer';UI._ph=null;renderPanel()"); return dom.window.document.getElementById('panelBody'); };
let p = panel();
const heads = [...p.querySelectorAll('.pgrp')].map(x => x.textContent);
assert.ok(heads.length >= 4, 'grouped by type');
assert.match(heads[0], /Tier 1/);
assert.ok(heads.some(h => /Paid peering/.test(h)), 'paid networks get their own group');
// A group with nothing worth it and no PNI stays folded; one with a worth-it network is open, best first.
const rows = ev("(()=>{const r=NETS.filter(n=>n.pops.includes('fra')&&n.type==='cdn'&&n.pol!=='paid').map(n=>({id:n.id,v:pniVal(n.id,'fra')})).filter(x=>!S.pni.some(p=>p.net===x.id));return r})()");
const w = rows.filter(r => r.v.worth).sort((a, b) => b.v.val - a.v.val);
assert.ok(w.length, 'some content network is worth it at 400G of demand');
const names = [...p.querySelectorAll('.prow .nm')].map(x => x.textContent);
const first = ev(`NET.${w[0].id}.name`);
assert.ok(names.some(n => n.startsWith(first) && /Worth it/.test(n)), 'best candidate is tagged');
assert.equal(p.querySelectorAll('.prow .pchip').length, names.length, 'every row has a status chip');
assert.ok(p.querySelector('.pval'), 'value line');
// Filters
ev("ACT.pniFilter({f:'pni'})");p = panel();
assert.deepEqual([...p.querySelectorAll('.prow .nm')].map(x => x.textContent.split(' ')[0]), [ev("NET.ggl.name").split(' ')[0]]);
ev("ACT.pniFilter({f:'worth'})");p = panel();
assert.ok([...p.querySelectorAll('.prow .nm')].every(x => /Worth it/.test(x.textContent)));
ev("ACT.pniFilter({f:'t'})");p = panel();
assert.ok([...p.querySelectorAll('.pchip')].every(x => /Via transit|Not reached/.test(x.textContent)));
// Folding and unfolding by hand, A-Z sort
ev("ACT.pniFilter({f:'all'})");
ev("ACT.pniGrp({g:'t1',o:0})");p = panel();
assert.match(p.querySelector('.pgrp').textContent, /▸/);
ev("ACT.pniGrp({g:'t1',o:1});ACT.pniSort()");p = panel();
assert.match(p.textContent, /Sort: A–Z/);
// Phone: chips wrap, value text stays on one line
const css = ev("[...document.querySelectorAll('style')].map(s=>s.textContent).join('')");
assert.match(css, /\.pchips\{display:flex;flex-wrap:wrap/);
assert.match(css, /\.pval\{white-space:nowrap;overflow:hidden;text-overflow:ellipsis/);
assert.equal(ev("isPhone()"), true);
assert.deepEqual(errors, []);
});
test('the same chip in the Networks tab and the bulk PNI preview', () => {
const { ev, errors, dom } = load();
fra(ev);
ev("S.pni.push({id:'pg',net:'ggl',city:'fra',tier:1});compute()");
ev("UI.sel=null;UI.left='nets';UI.leftOpen=true;UI._lh=null;renderLeft()");
const left = dom.window.document.getElementById('leftBody');
assert.ok(left.querySelectorAll('.pchip').length >= 10);
assert.ok(/PNI at Frankfurt/.test(left.textContent), 'Goggle shows its PNI');
ev("ACT.pniAllOpen({net:null})");
const m = dom.window.document.getElementById('modal');
assert.ok(m.querySelectorAll('.pchip').length > 0);
assert.ok(/Via transit/.test(m.textContent), 'bulk preview chips');
assert.deepEqual(errors, []);
});
test('every language renders the PNI list without raw labels', () => {
for (const lang of ['de', 'es', 'fr', 'it', 'pt']) {
const { ev, errors, dom } = load({ lang });
fra(ev, 400);
ev("UI.sel={type:'city',id:'fra'};UI.tab='peer';renderPanel();UI.left='nets';UI.leftOpen=true;renderLeft()");
const txt = dom.window.document.getElementById('panelBody').textContent + dom.window.document.getElementById('leftBody').textContent;
assert.doesNotMatch(txt, /pni_list\./, lang);
assert.ok(dom.window.document.querySelector('#panelBody .pchip'), lang);
assert.deepEqual(errors, [], lang);
}
});

View file

@ -0,0 +1,127 @@
const test = require('node:test');
const assert = require('node:assert/strict');
const { load } = require('./harness');
function setup(ev) {
ev("ACT.start({});S.cash=1e9;S.lvl=6;for(const g of GOALS)S.done[g.id]=0;ACT.launchBB({city:'fra'});for(const c in S.pops)S.pops[c].rgen=3;compute()");
}
test('PNIs with the big networks take a month, now and then 6 to 12, and start at 100G; small ones take weeks', () => {
const { ev, errors } = load();
setup(ev);
ev("R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:0})");
assert.equal(ev('S.pni.length'), 0, 'no 10G PNI with NetChill');
assert.match(ev("document.getElementById('toasts').textContent"), /does not do 10G/);
// one order in seven gets lost in provisioning for months
ev("Math.random=()=>0.1;R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:1})");
const p = JSON.parse(ev('JSON.stringify(S.pni[0])'));
assert.ok(p.ready - ev('S.day') >= 180 && p.ready - ev('S.day') <= 365, `six to twelve months (${p.ready - ev('S.day')} days)`);
ev('compute()');
assert.equal(ev('R.usePni[S.pni[0].id]||0'), 0, 'nothing flows before delivery');
assert.equal(ev('R.cost.pni'), 0, 'and nothing is billed');
ev('S.nextFail=S.nextEvent=1e9;S.pni[0].ready=S.day+1;dayTick();compute()');
assert.ok(ev('R.usePni[S.pni[0].id]') > 0, 'delivered on the day');
// an upgrade is an augment on order: the old port keeps working meanwhile
ev("R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:2})");
assert.equal(ev('S.pni[0].tier'), 1);
assert.equal(ev('S.pni[0].up.tier'), 2);
ev('ACT.lagP({id:S.pni[0].id,d:1})');
assert.equal(ev('S.pni[0].up.n'), 1, 'one augment at a time');
ev('S.day=S.pni[0].up.ready-1;dayTick()');
assert.equal(ev('S.pni[0].tier'), 2);
assert.equal(ev('S.pni[0].up'), undefined);
// chasing it does nothing, mostly
ev("Math.random=()=>0.5;R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:3});const r0=S.pni[0].up.ready;ACT.pniChase({id:S.pni[0].id});window.__r=[r0,S.pni[0].up.ready]");
const [r0, r1] = JSON.parse(ev('JSON.stringify(__r)'));
assert.equal(r0, r1);
// most orders arrive in about a month
ev("Math.random=()=>0.5;S.pni=[];R.demTo.ggl=1e4;ACT.pni({city:'fra',net:'ggl',tier:1})");
assert.equal(ev("S.pni.find(p=>p.net==='ggl').ready-S.day"), 30);
ev("S.pni=S.pni.filter(p=>p.net!=='ggl')");
// a beer at a conference halves the wait
ev("Math.random=()=>0.99;S.conf={until:S.day+10,reg:'EU',name:'RIPE'}");
assert.equal(ev("pniLead('ggl')"), 15, 'the usual month, halved');
ev('Math.random=()=>0.1');
assert.equal(ev("pniLead('ggl')"), Math.round((180 + Math.floor(0.1 * 186)) / 2), 'a slow one, halved');
ev('Math.random=()=>0.99');
ev('S.conf=null');
// a small network: a few weeks
const small = ev("NETS.find(n=>n.pops.includes('fra')&&!pniBig(n.id)&&n.pol==='open'&&n.type!=='cdn').id");
ev(`Math.random=()=>0.99;ACT.pni({city:'fra',net:'${small}',tier:0})`);
const lead = ev(`S.pni.find(p=>p.net==='${small}').ready-S.day`);
assert.ok(lead >= 14 && lead <= 42, `weeks, not months (${lead})`);
assert.deepEqual(errors, []);
});
test('Doitsche Telekomm sells 1G PNIs; nobody else does', () => {
const { ev, errors } = load();
setup(ev);
ev("S.lvl=10;ACT.pni({city:'fra',net:'nfx',tier:-1})");
assert.equal(ev('S.pni.length'), 0);
assert.equal(ev("peerOk('dtk','pni','fra').ok"), true);
ev("ACT.pni({city:'fra',net:'dtk',tier:-1})");
assert.equal(ev('S.pni[0].g1'), true);
ev('S.pni[0].ready=S.day;compute()');
assert.equal(ev('pniG(S.pni[0])'), 1);
assert.equal(ev("liveCap(pniG(S.pni[0]),'fra','a',1)"), 1);
assert.equal(ev('pniPN(S.pni[0])'), '1G');
// and 1G grows into 10G
ev("ACT.pni({city:'fra',net:'dtk',tier:0})");
assert.equal(ev('S.pni[0].up.tier'), 0);
ev('S.day=S.pni[0].up.ready-1;dayTick()');
assert.equal(ev('S.pni[0].g1'), undefined);
assert.equal(ev('pniG(S.pni[0])'), 10);
ev("selectCity('fra');ACT.tab({t:'peer'})");
assert.deepEqual(errors, []);
});
test('Microsnoft has no capacity on the US east coast, at any price', () => {
const { ev, errors } = load();
setup(ev);
ev("for(const c of ['ash','nyc','hou'])ACT.buildPop({city:c});R.demTo.msf=1e5");
for (const c of ['ash', 'nyc', 'bos', 'atn', 'mia']) {
assert.equal(ev(`peerOk('msf','pni','${c}').ok`), false, c);
assert.equal(ev(`peerOk('msf','ix','${c}').ok`), false, c);
}
assert.match(ev("peerOk('msf','pni','ash').why"), /capacity|sold out|coming online/i);
assert.equal(ev("peerOk('msf','pni','hou').ok"), true, 'Houston is fine');
ev("ACT.pni({city:'ash',net:'msf',tier:1})");
assert.equal(ev("S.pni.filter(p=>p.city==='ash').length"), 0);
assert.equal(ev("peerOk('ggl','pni','ash').ok"), ev("R.demTo.ggl>=Math.round(NET.ggl.minPni)"), 'other networks are not affected');
assert.deepEqual(errors, []);
});
test('saves: PNIs on order survive, and garbage is repaired', () => {
const { ev, errors } = load();
setup(ev);
ev("S.pni.push({id:'x',city:'fra',net:'dtk',tier:0,g1:true,ready:S.day+30,up:{tier:'9',n:99,ready:'x'}},{id:'y',city:'fra',net:'nfx',tier:1,g1:true})");
ev('const o=JSON.parse(JSON.stringify(S));sanitize(o);window.__o=o');
assert.equal(ev("__o.pni.find(p=>p.id==='x').up.n"), ev('LAG_MAX'));
assert.equal(ev("__o.pni.find(p=>p.id==='x').g1"), true);
assert.equal(ev("__o.pni.find(p=>p.id==='y').g1"), undefined, 'only Doitsche Telekomm does 1G');
assert.deepEqual(errors, []);
});
test('now and then a route is sold out of a wave size, for a while, and asking again does not reroll it', () => {
const { ev, errors } = load();
setup(ev);
ev("ACT.buildPop({city:'ams'});S.pops.ams.rgen=3");
assert.equal(ev("S.day=10;!!soldOut('fra','ams',3,null)||!!soldOut('fra','ams',1,null)"), false, 'never in the first 90 days');
// find a day when 400G is sold out between Frankfurt and Amsterdam
const day = ev("(()=>{for(let d=90;d<20000;d++){S.day=d;if(soldOut('fra','ams',2,null))return d;}return -1;})()");
assert.ok(day > 0, 'it happens');
ev(`S.day=${day}`);
const so = JSON.parse(ev("JSON.stringify(soldOut('fra','ams',2,null))"));
assert.ok(so.until > day && so.until - day <= 90);
assert.equal(ev(`S.day=${so.until - 1};!!soldOut('fra','ams',2,null)`), true, 'the same verdict for the whole window');
ev(`S.day=${day}`);
const share = ev("(()=>{let n=0;for(let d=90;d<20090;d++){S.day=d;if(soldOut('ams','fra',5,null))n++;}return n/20000;})()");
assert.ok(share > 0.02 && share < 0.2, `rare, a bit more for big waves (${share})`);
ev(`S.day=${day};UI.via=null;openLinkModal('fra','ams')`);
assert.match(ev("document.getElementById('modalCard').textContent"), /sold out for \d+ days/);
const n = ev('S.links.length');
ev('ACT.buildLink({tier:2})');
assert.equal(ev('S.links.length'), n, 'no 400G today');
assert.match(ev("document.getElementById('toasts').textContent"), /No 400G capacity on this route/);
assert.deepEqual(errors, []);
});

View file

@ -18,7 +18,7 @@ const REF = {
downunder: { one: [['syd', 'mel', 'land', 1], ['syd', 'bne', 'land', 1], ['mel', 'adl', 'land', 1]], three: [['syd', 'mel', 'land', 1], ['syd', 'bne', 'land', 1], ['mel', 'adl', 'land', 1], ['bne', 'adl', 'land', 1]] },
edgelord: { one: [['@rt', 'ams', 5, 1], ['@rt', 'lon', 5, 1], ['ams', 'lon', 'nshuttle', 2], ['ams', 'lon', 'circe', 1]], three: [['@rt', 'ams', 5, 1], ['@rt', 'lon', 5, 1], ['ams', 'lon', 'concerto', 2], ['ams', 'lon', 'nshuttle', 2], ['ams', 'lon', 'circe', 1]] },
hubcap: { one: [['@rt', 'lon', 5, 1], ['lon', 'par', 'pasdc', 1], ['lon', 'ams', 'concerto', 1], ['lon', 'ams', 'circe', 1], ['lon', 'ams', 'nshuttle', 1], ['lon', 'par', 'pasdc', 1], ['ams', 'fra', 'land', 1], ['ams', 'fra', 'land', 1]], three: [['@rt', 'lon', 5, 1], ['lon', 'par', 'chn', 1], ['lon', 'par', 'pasdc', 1], ['ams', 'fra', 'land', 1], ['lon', 'ams', 'concerto', 1], ['lon', 'ams', 'circe', 1], ['lon', 'ams', 'nshuttle', 1], ['lon', 'par', 'chn', 1], ['lon', 'par', 'pasdc', 1], ['ams', 'fra', 'land', 1], ['ams', 'fra', 'land', 1], ['lon', 'ams', 'uly', 1]] },
flash: { one: [['nyc', 'lon', 'grace', 1], ['nyc', 'lon', 'hibx', 0]], three: [['nyc', 'lon', 'grace', 1], ['nyc', 'lon', 'hibx', 0]] },
flash: { one: [['nyc', 'lon', 'hibx', 1]], three: [['nyc', 'lon', 'grace', 1], ['nyc', 'lon', 'hibx', 0]] },
baltic: { one: [['fra', 'hel', 'clion', 1], ['tll', 'hel', 'land', 1], ['@route', 1, 'fast']], three: [['fra', 'hel', 'clion', 1], ['tll', 'hel', 'land', 1], ['fra', 'tll', 'land', 1], ['@route', 1, 'fast']] },
fjord: { one: [['par', 'lon', 'pasdc', 1], ['svg', 'lon', 'tampn', 1], ['@route', 1, 'fast']], three: [['par', 'svg', 'land', 1], ['par', 'lon', 'pasdc', 1], ['svg', 'lon', 'tampn', 1], ['@route', 1, 'fast']] },
braces: { one: [['nyc', 'dub', 'havf', 1], ['lon', 'dub', 'celtix', 1]], three: [['nyc', 'lon', 'grace', 1], ['nyc', 'dub', 'havf', 1], ['lon', 'dub', 'celtix', 1]] },
@ -488,7 +488,7 @@ test('main-game toasts and leftover buttons do nothing in a puzzle', () => {
ev("ACT.pzPop({city:'lon'})");
const st = () => ev("JSON.stringify({p:S.pops,l:S.links.length,c:S.cash,m:S.mode,te:!!S.te,ops:S.ops,sc:S.scrubs.length,dash:$('dash').hidden,bank:$('bankBox').hidden,left:$('left').hidden,modal:$('modal').hidden,cam:[cam.x,cam.y]})");
const s0 = st();
for (const a of ["opsOpen({})", "inbox({})", "leftTab({t:'noc'})", "focusCity({city:'par'})", "fixInc({id:'x'})", "custGo({id:'x'})", "bank({})", "dash({})",
for (const a of ["opsOpen({})", "peerPol({p:'closed'})", "leftTab({t:'noc'})", "focusCity({city:'par'})", "fixInc({id:'x'})", "custGo({id:'x'})", "bank({})", "dash({})",
"exportSave({})", "launchBB({city:'lon'})", "ad({city:'lon'})", "addRouter({city:'lon'})", "upRouter({city:'lon'})", "addSite({city:'lon'})", "buyTE({})",
"buildScrub({city:'lon',tier:0})", "buildPop({city:'par'})", "buyTransit({city:'lon',net:'cog',tier:1})", "scenarios({})", "share({})", "importGo({})", "cont({})", "start({})", "newgame({})"]) {
ev('ACT.' + a);
@ -530,3 +530,18 @@ test('a POP in a thin market costs its higher monthly rent too, and the panel sa
assert.ok(ev("document.getElementById('panelBody').textContent").includes(ev("fmt$(popMo('suv'))") + '/mo'));
assert.deepEqual(errors, []);
});
test('each pack\'s idea is needed: three stars without it fail, and the one-star builds are not secretly three', () => {
const { ev, errors } = load();
const stars = (id, steps) => { ev(`pzBegin(pzDef('${id}'))`); build(ev, steps); return evalP(ev).stars; };
const packs = JSON.parse(ev('JSON.stringify(Object.fromEntries(PZ.map(p=>[p.id,p.pack])))'));
for (const id of Object.keys(REF)) {
// A ring puzzle's cheapest delivering build is a ring, which is already N-1.
if (id !== 'fire') assert.ok(stars(id, REF[id].one) < 3, `${id}: the one-star reference earns three stars`);
if (packs[id] === 'rodeo') assert.ok(stars(id, REF[id].three.filter((s) => s[0] !== '@rt')) < 3, `${id}: three stars on the starter routers`);
if (REF[id].three.some((s) => s[0] === '@route')) assert.ok(stars(id, REF[id].three.filter((s) => s[0] !== '@route')) < 3, `${id}: three stars without the routing choice`);
// N-1 Club: the brute-force answer (every one-star link doubled) is over budget or not N-1.
if (packs[id] === 'n1') assert.ok(stars(id, [...REF[id].one, ...links(REF[id].one)]) < 3, `${id}: doubling every link earns three stars`);
}
assert.deepEqual(errors, []);
});

View file

@ -563,8 +563,10 @@ test('the Amazon doubles overland fiber, and there is a national-operator scenar
assert.equal(ev('S.scn.id'), 'ixbr');
assert.equal(ev('brIxN()'), 0);
ev("S.cash=1e9;for(const c of ['sao','rio','mao'])ACT.buildPop({city:c});S.ixp.sao=1;S.ixp.mao=1;compute()");
assert.equal(ev('brIxN()'), 2);
assert.equal(ev('brIxN()'), 1, 'a Manaus port on a POP the backbone does not reach does not count');
assert.equal(ev("scnProg().items[1].v"), 1, 'Manaus step done');
ev("S.links.push({id:'y1',a:'sao',b:'mao',km:2700,sub:false,kind:'wave',tier:0,mo:1});compute()");
assert.equal(ev('brIxN()'), 2, 'joined up, it counts');
assert.deepEqual(errors, []);
});
@ -670,8 +672,10 @@ test('Fibre to the Basement: own fibre skips the wholesale cut but pays the levy
assert.equal(ev("SCN.find(s=>s.id==='fttb').ok()"), false, 'still needs cables overseas');
ev("S.links.push({id:'x1',a:'syd',b:'tok',km:8000,sub:true,cable:'sushi',kind:'wave',tier:1,mo:1},{id:'x2',a:'per',b:'sin',km:4000,sub:true,cable:'avo',kind:'wave',tier:1,mo:1},{id:'x3',a:'mel',b:'hba',km:600,sub:true,cable:'ferry',kind:'wave',tier:1,mo:1})");
assert.equal(ev('auExits()'), 2, 'Bass Strait does not count as overseas');
assert.equal(ev("SCN.find(s=>s.id==='fttb').ok()"), false, 'still needs the traffic');
ev('R.served=FTTB_G');
assert.equal(ev("SCN.find(s=>s.id==='fttb').ok()"), true);
assert.equal(ev("SCN_PROG.fttb().length"), 6);
assert.equal(ev("SCN_PROG.fttb().length"), 7);
assert.deepEqual(errors, []);
});

View file

@ -20,10 +20,11 @@ test('bugs and ideas point to GitHub from the menu and How to play, and the chat
}
});
test('the GitHub card fits a phone', () => {
test('the GitHub link fits a phone: a small link next to the chat link in the menu', () => {
const { ev, errors } = load();
ev("ACT.start({});window.innerWidth=360;ACT.menu()");
assert.ok(ev('isPhone()'));
assert.ok(ev(`!!document.querySelector('#modal a.plug[href="${ISSUES}"] .go')`), 'same card layout as the chat card');
assert.ok(ev(`!!document.querySelector('#modal .menu-plugs a.mplug[href="${ISSUES}"]')`), 'bug link in the menu');
assert.ok(ev(`!!document.querySelector('#modal .menu-plugs a.mplug[href="'+SIGNAL+'"]')`), 'chat link beside it');
assert.deepEqual(errors, []);
});

View file

@ -159,11 +159,10 @@ test('quick lead times: PNIs, dark fiber and own builds arrive in days (#151)',
assert.deepEqual(errors, []);
});
test('Change Freeze: no peering inbox, no hardware market, no sold-out routes', () => {
test('Change Freeze: no hardware market, no sold-out routes', () => {
const { ev, errors } = load();
start(ev, { mode: 'normal', preset: 'freeze' });
ev("S.cash=1e9;ACT.buyIx({city:'fra',tier:1,signed:true});for(let i=0;i<60;i++)inboxDay(S.day+i)");
assert.equal(ev('S.inbox.items.length+S.inbox.seq'), 0, 'no mail');
ev("S.cash=1e9;ACT.buyIx({city:'fra',tier:1,signed:true})");
ev('S.day=2000');
assert.equal(ev("hwMul('rt')"), 1, 'no inflation');
assert.equal(ev("hwCard()"), '');

View file

@ -0,0 +1,81 @@
// Rule C1, played (gameplay-rules): every handmade scenario has a reference strategy (scripts/lib/scenario-ref.js,
// the player's own actions, a plan a sensible human would follow) that wins within its days, and the obvious shortcut
// does not. The win days below were recorded in the 2.0.0 playtest; a balance change that moves them far is a change
// in how the scenario plays, so look before you re-record.
const test = require('node:test');
const assert = require('node:assert/strict');
const { load } = require('./harness');
const { play } = require('../scripts/lib/scenario-ref');
const HIRE = ['hire', ['transit', 'routers', 'repair', 'sales', 'ix']];
const home = (c) => [['bb', c], ['tr', c, 1], ['ix', c]];
const GN_H = ['hire', ['transit', 'routers', 'repair', 'sales', 'ix', 'caches', 'pni']];
const GN_REF = [['bb', 'icn'], ['ix', 'icn'], ['tr', 'icn', 1], ['pni', 'icn', 'ktt', 0], GN_H, ['served', 120], ['link', 'icn', 'tok', 1], ['tr', 'tok', 1], ['ix', 'tok'], ['last', 'icn'], ['pop', 'hkg']];
// ref: the reference plan; win: [earliest, latest] day it may win on; cheese: the shortcut, and `by`, the day before
// which it must not win (null: never within the scenario's days).
const PLAY = {
stg: { ref: [['bb', 'stg'], ['ix', 'stg'], ['link', 'stg', 'fra', 1], ['ix', 'fra'], ['bb', 'fra'], ['link', 'fra', 'ams', 1], ['ix', 'ams'], ['bb', 'ams'], ['link', 'ams', 'lon', 1], ['ix', 'lon'], ['bb', 'lon'], ['link', 'fra', 'par', 1], ['ix', 'par'], ['bb', 'par'], ['hire', ['routers', 'repair', 'caches', 'pni', 'ix', 'sales'], { pni: { paid: true } }], ['link', 'stg', 'muc', 1], ['ix', 'muc'], ['bb', 'muc'], ['wait', 120], ['pnis'], ['link', 'lon', 'nyc', 2], ['ix', 'nyc'], ['bb', 'nyc'], ['wait', 200], ['pnis']],
win: [120, 240], cheese: [['bb', 'stg'], ['ix', 'stg'], ['link', 'stg', 'fra', 1], ['ix', 'fra'], ['bb', 'fra'], ['loans'], ['hire', ['routers', 'repair']]], by: null },
// The other way round the planet: Paris, New York, Los Angeles, Tokyo, Hong Kong, Singapore.
redsea: { ref: [...home('mrs'), ['link', 'mrs', 'par', 1], ['bb', 'par'], ['ix', 'par'], ['link', 'par', 'nyc', 1, 'amitie'], ['tr', 'nyc', 1], ['ix', 'nyc'], ['link', 'nyc', 'lax', 1], ['ix', 'lax'], ['tr', 'lax', 1], ['link', 'lax', 'tok', 1, 'jup'], ['bb', 'tok'], ['tr', 'tok', 1], ['ix', 'tok'], ['link', 'tok', 'hkg', 1, 'apg'], ['bb', 'hkg'], ['tr', 'hkg', 1], ['ix', 'hkg'], ['link', 'hkg', 'sin', 1], ['bb', 'sin'], ['tr', 'sin', 1], ['ix', 'sin'], HIRE],
// 2.0.0: no more max-prefix outages to break the 30-day streak, so the reference can finish in under 100 days.
win: [80, 250], cheese: [...home('mrs'), ['loans'], ['link', 'mrs', 'sin', 1], ['bb', 'sin']], by: null },
spat: { ref: [...home('nyc'), HIRE], avoid: ['cog'], win: [50, 140], cheese: [...home('nyc'), ['hire', ['routers', 'repair']]], by: 160 },
carnaval: { ref: [...home('rio'), ['hire'], ['wait', 69], ['prep', 'rio', 400], ['wait', 76], ['prep', 'rio', 400], ['wait', 83], ['prep', 'rio', 400]], win: [95, 95], cheese: [...home('rio'), ['loans']], by: null },
darien: { ref: [...home('pan'), ['link', 'pan', 'bog', 1, 'pccs'], ['bb', 'bog'], ['ix', 'bog'], ['link', 'bog', 'lim', 1], ['bb', 'lim'], ['ix', 'lim'], ['link', 'lim', 'scl', 1], ['bb', 'scl'], ['ix', 'scl'], ['link', 'scl', 'sao', 1], ['bb', 'sao'], ['tr', 'sao', 1], ['ix', 'sao'], HIRE],
win: [30, 90], cheese: [...['pan', 'bog', 'lim', 'scl', 'sao'].flatMap((c) => [['bb', c], ['tr', c, 1]]), ['hire']], by: null },
c2c: { ref: [...home('cpt'), ['link', 'cpt', 'jnb', 1], ['bb', 'jnb'], ['tr', 'jnb', 1], ['ix', 'jnb'], ['link', 'jnb', 'nbo', 1], ['bb', 'nbo'], ['ix', 'nbo'], ['link', 'nbo', 'cai', 1], ['bb', 'cai'], ['ix', 'cai'], ['link', 'jnb', 'lag', 1], ['bb', 'lag'], ['ix', 'lag'], HIRE],
win: [70, 200], cheese: [...home('cpt'), ['link', 'cpt', 'cai', 0], ['pop', 'lag'], ['pop', 'nbo'], ['hire']], by: null },
ixbr: { ref: [...home('sao'), ...[['sao', 'rio', 1], ['sao', 'cpq', 0], ['sao', 'cwb', 0], ['cwb', 'poa', 0], ['rio', 'bhz', 0], ['bhz', 'bsb', 0], ['bsb', 'gyn', 0], ['rio', 'ssa', 0], ['ssa', 'rec', 0], ['rec', 'for', 0], ['rec', 'nat', 0], ['for', 'bel', 0], ['bel', 'mao', 0], ['bsb', 'cgb', 0], ['sao', 'vix', 0]].flatMap(([a, b, t]) => [['link', a, b, t], ['ix', b, 0]]), ['bb', 'rio'], ['tr', 'rio', 1], ['bb', 'bsb'], ['tr', 'bsb', 1], ['bb', 'for'], ['tr', 'for', 1], HIRE],
win: [40, 120], cheese: [['bb', 'sao'], ['tr', 'sao', 1], ...['sao', 'rio', 'bsb', 'bhz', 'cwb', 'poa', 'for', 'rec', 'ssa', 'cpq', 'gyn', 'bel', 'mao', 'nat', 'vix', 'cgb'].flatMap((c) => [['pop', c], ['ix', c, 0]]), ['hire']], by: null },
// Sender pays: Seoul transit to start (dear, but fast), one paid PNI with Kay-Tea for reach, then haul the bulk from
// Tokyo and keep Seoul transit as the last resort. Seoul alone loses money on the sender-pays fee and never wins.
gangnam: { ref: GN_REF, win: [130, 190], cheese: [...home('icn'), ['loans']], by: null },
// Bigger routers bring Flowspec, which also takes floods: without a scrubbing center it takes twice as long.
flood: { ref: [...home('ams'), ['scrub', 'ams', 1], ['tr', 'ams', 1], HIRE], win: [80, 200], cheese: [...home('ams'), ['tr', 'ams', 1], ['loans']], by: 180 },
fttb: { ref: [...home('syd'), ['link', 'syd', 'akl', 0, 'tasman'], ['link', 'syd', 'nou', 0, 'gond'], ...['mel', 'bne', 'adl', 'per'].flatMap((c) => [['bb', c], ['tr', c, 1]]), ['link', 'syd', 'mel', 1], ['link', 'syd', 'bne', 1], ['link', 'mel', 'adl', 1], ['link', 'adl', 'per', 0], HIRE],
win: [80, 200], cheese: [...['syd', 'mel', 'bne', 'adl', 'per'].map((c) => ['bb', c]), ['tr', 'syd', 1], ['link', 'syd', 'akl', 0, 'tasman'], ['link', 'syd', 'nou', 0, 'gond'], ['loans']], by: 60 },
// Tallinn has no transit: over the water to Helsinki and Stockholm on two cables each way, and round by land to Riga.
baltic: { ref: [['bb', 'tll'], ['ix', 'tll'], ['link', 'tll', 'hel', 1, 'balt'], ['tr', 'hel', 1], ['link', 'tll', 'sto', 1, 'balt'], ['tr', 'sto', 1], ['link', 'tll', 'hel', 1, 'elisa'], ['link', 'tll', 'rix', 1], ['tr', 'rix', 1], ['hire', ['transit', 'routers', 'repair', 'ix']]],
win: [90, 200], cheese: [['bb', 'tll'], ['ix', 'tll'], ['loans']], by: null },
// The 1.6T chains: grow the traffic first, then light every hop at once (a day-0 build also gets there, just).
pac: { ref: [...home('hnl'), ...home('lax'), ...home('syd'), ['link', 'lax', 'tok', 1, 'jup'], HIRE, ['served', 145], ['link', 'lax', 'hnl', 4, 'seaus'], ['link', 'hnl', 'suv', 4, 'scx'], ['link', 'suv', 'syd', 4, 'scx']],
win: [50, 120], cheese: [...home('hnl'), ...home('lax'), ...home('syd'), ['link', 'lax', 'tok', 1, 'jup'], ['link', 'lax', 'syd', 3, 'hwk'], ['loans']], by: null },
atl: { ref: [['bb', 'pdl'], ['tr', 'pdl', 1], ...home('mia'), ...home('mad'), ...home('lis'), HIRE, ['link', 'mia', 'bda', 4, 'sol'], ['link', 'bda', 'pdl', 4, 'sol'], ['link', 'pdl', 'mad', 4, 'sol'], ['served', 90], ['link', 'lis', 'tci', 4, 'ace'], ['link', 'tci', 'lag', 4, 'twoaf'], ['bb', 'lag']],
win: [40, 120], cheese: [['bb', 'pdl'], ['tr', 'pdl', 1], ...home('mia'), ...home('mad'), ...home('lis'), ['link', 'mia', 'mad', 3, 'col3'], ['link', 'lis', 'lag', 3, 'equi'], ['loans']], by: null },
};
test('C1 played: every scenario has a reference strategy and a shortcut that fails', () => {
const g = load();
const ids = JSON.parse(g.ev('JSON.stringify(SCN.map(x=>x.id))'));
assert.deepEqual(Object.keys(PLAY).sort(), ids.slice().sort(), 'C1: every scenario has a reference strategy here');
});
for (const [id, P] of Object.entries(PLAY)) {
test(`${id}: the reference wins in its days, the shortcut does not`, () => {
const g = load();
const r = play(g.ev, id, P.ref, { avoid: P.avoid });
assert.ok(r.won !== null, `${id}: the reference does not win (${JSON.stringify(r)})`);
assert.ok(r.won >= P.win[0] && r.won <= P.win[1] && (id === 'carnaval' || r.won <= r.limit * 0.75), `${id}: won on day ${r.won}, want ${P.win.join('-')} of ${r.limit}`);
const c = play(g.ev, id, P.cheese, { days: P.by || undefined });
assert.ok(c.won === null, `${id}: the shortcut wins on day ${c.won}${P.by ? ` (before day ${P.by})` : ''}`);
assert.deepEqual(g.errors, []);
});
}
// Gangnam Style Peering bites every way (2.0.0 playtest): paying the sender-pays fee on everything loses money, hauling
// everything from Tokyo is too slow for Korean users, and the old plan (transit everywhere, no Kay-Tea) has neither
// the reach nor the profit. The reference's Seoul transit as first choice, not last resort, also stays in the red.
for (const [name, plan] of Object.entries({
'Seoul transit and Kay-Tea': [['bb', 'icn'], ['ix', 'icn'], ['tr', 'icn', 1], ['pni', 'icn', 'ktt', 0], GN_H],
'everything from Tokyo': [['bb', 'icn'], ['link', 'icn', 'tok', 1], ['tr', 'tok', 1], ['ix', 'tok'], ['pni', 'tok', 'ktt', 0], ['pop', 'hkg'], GN_H],
'the 1.x reference': [...home('icn'), ['link', 'icn', 'tok', 1], ['ix', 'tok'], ['tr', 'tok', 1], ['link', 'icn', 'hkg', 1], ['ix', 'hkg'], ['tr', 'hkg', 1], HIRE],
'Tokyo haul, Seoul transit first': GN_REF.filter((s) => s[0] !== 'last'),
})) {
test(`gangnam: ${name} does not win`, () => {
const g = load();
const r = play(g.ev, 'gangnam', plan);
assert.equal(r.won, null, `${name} won on day ${r.won}`);
assert.deepEqual(g.errors, []);
});
}

170
tests/specialist.test.js Normal file
View file

@ -0,0 +1,170 @@
const test = require('node:test');
const assert = require('node:assert/strict');
const { load } = require('./harness');
// Specialist play (#187, #173): capability offers, vendor demo units, pioneer fiber, consortium seats, charters.
const start = "ACT.start({});S.cash=1e9;for(const g of GOALS)S.done[g.id]=0;ACT.launchBB({city:'fra'})";
const pop = (c) => `S.pops['${c}']=S.pops['${c}']||{day:0,bb:null,boost:0,down:0,routers:1,gen:false,rgen:0};`;
const df = (id, a, b, ch, own = true) => `S.links.push({id:'${id}',a:'${a}',b:'${b}',kind:'df',own:${own},sys:'roadm',ch:${JSON.stringify(ch)},km:kmBetween('${a}','${b}'),sub:false,cable:null,mo:0,trench:'${id}',cut:0,day:0,ready:0,spares:false});`;
// Spawn offers until one of a type shows up (or give up), with everything else cleared out of the way.
const spawnUntil = (ev, type, n = 400) => ev(`(()=>{for(let i=0;i<${n};i++){S.offers=[];spawnOffer();const o=S.offers.find(o=>o.type==='${type}');if(o)return JSON.stringify(o);}return 'null';})()`);
test('#187 a capability brings its customers before the level does, only when you can serve them', () => {
const { ev, dom, errors } = load();
ev(start);
ev(`S.lvl=1;${pop('nyc')}${pop('chi')}compute()`);
assert.equal(ev("spots().filter(s=>s.t==='hft').length"), 0, 'no low-latency path, no trading firm');
assert.equal(JSON.parse(spawnUntil(ev, 'hft')), null, 'level 1 alone never brings HFT');
ev("S.links.push({id:'w',a:'nyc',b:'chi',kind:'wave',tier:2,km:kmBetween('nyc','chi'),cut:0,mo:0});compute()");
const s = JSON.parse(ev("JSON.stringify(spots().find(s=>s.t==='hft'))"));
assert.deepEqual([s.a, s.b].sort(), ['chi', 'nyc']);
const o = JSON.parse(spawnUntil(ev, 'hft'));
assert.ok(o, 'the trading firm calls');
assert.equal(o.bw, ev("BIZ_T.hft.opts[0]"), 'at the smallest size');
assert.deepEqual(o.reqs, ['lat']);
assert.ok(o.latMax >= s.n, 'and the path you have already meets it');
assert.equal(o.spot.k, 'lat');
ev("ACT.leftTab({t:'deals'});renderAll()");
assert.match(dom.window.document.body.innerHTML, /They spotted your [\d.]+ ms (New York|Chicago)–(New York|Chicago) path/);
// Lit dark fiber with enough capacity brings AI interconnects (level 4) to a level 3 network; not the bigger DCI.
ev(`S.lvl=3;${df('d', 'nyc', 'chi', ['zr4', 'zr4'])}compute()`);
const t = JSON.parse(ev("JSON.stringify([...new Set(spots().map(s=>s.t))])"));
assert.ok(t.includes('ai'), 'AI training interconnect');
assert.ok(!t.includes('hyper'), 'not a hyperscaler DCI three times its size');
assert.ok(!t.includes('hft'), 'level 3 gets HFT anyway: no spotting needed');
ev("S.lvl=5");
assert.ok(!ev("spots().some(s=>s.t==='ai')"), 'once the level brings them, they are ordinary offers');
assert.equal(ev("(()=>{S.rules.gates='open';const n=spots().length;S.rules.gates='ladder';return n;})()"), 0, 'open gates need no spotting');
assert.deepEqual(errors, []);
});
test('#187 vendor demo units: one level ahead, a wait and a markup', () => {
const { ev, errors } = load();
ev(start);
ev('S.lvl=1');
assert.equal(ev("RG[1].lvl"), 2);
assert.equal(ev("techOk('rg',1,2)"), false);
ev("ACT.demoAsk({k:'rg',id:2})");
assert.equal(ev("demoAt('rg',2)"), null, 'never two levels ahead');
ev("ACT.demoAsk({k:'rg',id:1})");
const at = ev("demoAt('rg',1)");
assert.equal(at - ev('S.day'), ev('leadDays(DEMO_DAYS)'), 'a short wait');
ev("ACT.upRouter({city:'fra',g:1})");
assert.equal(ev("S.pops.fra.rgen||0"), 0, 'not before it ships');
ev(`S.day=${at}`);
assert.equal(ev("techOk('rg',1,2)"), true);
assert.equal(ev("swapCost('fra',1)"), ev("Math.round(RG[1].cost*hwMul('rt')*1.6)-tradeIn(0,1)"), '+60%');
const cash = ev('S.cash');
ev("ACT.upRouter({city:'fra',g:1})");
assert.equal(ev("S.pops.fra.rgen"), 1);
assert.ok(cash - ev('S.cash') > 0);
// Optics and line systems the same way.
ev("S.lvl=2;ACT.demoAsk({k:'opt',id:'zr8'});ACT.demoAsk({k:'sys',id:'roadm'})");
assert.ok(ev("demoAt('opt','zr8')!==null&&demoAt('sys','roadm')!==null"));
ev("S.day+=30");
assert.equal(ev("optCost('zr8')"), ev("Math.round(OPT.zr8.cost*1.6*hwMul('opt'))"));
assert.equal(ev("sysCost('roadm')"), ev("Math.round(DF_SYS.roadm.cost*1.6)"));
ev('S.lvl=3');
assert.equal(ev("optCost('zr8')"), ev("Math.round(OPT.zr8.cost*hwMul('opt'))"), 'list price once your level catches up');
assert.equal(ev("demoCan(5)"), false);
assert.deepEqual(errors, []);
});
test('#187 pioneer fiber: dig your own before level 3, at a markup', () => {
const { ev, errors } = load();
ev(start);
ev(`S.lvl=2;${pop('ams')}UI.dfSrc='build';UI.dfSys='lite';UI.pending={a:'fra',b:'ams'};`);
const km = ev("kmBetween('fra','ams')");
assert.equal(ev(`digCost(${km})`), ev(`Math.round(dfBuildCost(${km})*1.6)`));
const cash = ev('S.cash');
ev('ACT.orderDf()');
const l = JSON.parse(ev("JSON.stringify(S.links.find(l=>l.kind==='df'))"));
assert.ok(l && l.own, 'your own trench');
assert.equal(cash - ev('S.cash'), ev(`digCost(${km})+DF_SYS.lite.cost+ampCount(${km})*AMP_COST`));
ev('S.lvl=3');
assert.equal(ev(`digCost(${km})`), ev(`dfBuildCost(${km})`), 'no markup at level 3');
assert.deepEqual(errors, []);
});
test('#173 a consortium seat: offer, pay, build, light, cut, save', () => {
const { ev, dom, errors } = load();
ev(start);
ev("S.lvl=3;S.capDeal={at:S.day,c:'lon'};capDealTick(S.day)");
const off = JSON.parse(ev('JSON.stringify(S.seatOff)'));
assert.ok(off && ev(`SEAT_ROUTES.lon.some(r=>r[2]===${JSON.stringify(off.name)})`), 'a capacity conference offers a seat on one of its routes');
ev("ACT.leftTab({t:'deals'});renderAll()");
assert.match(dom.window.document.body.innerHTML, /Consortium seat: /);
// A seat short enough to light with level 2 optics.
ev("S.lvl=2;S.seatOff={a:'syd',b:'akl',name:'Tasman Devil',km:seatKm('syd','akl'),exp:S.day+30}");
const km = ev('S.seatOff.km');
const cash = ev('S.cash'), popC = ev("popCost('syd')+popCost('akl')");
ev('ACT.seatBuy({n:2})');
assert.equal(cash - ev('S.cash'), ev(`seatCost(${km},2)`) + popC, 'your share of the build, and the landing POPs');
const l = JSON.parse(ev("JSON.stringify(S.links.find(l=>l.seat))"));
assert.ok(l.own && l.sub && l.pairs === 2 && l.ready > ev('S.day'), 'your own subsea glass, being laid');
assert.equal(ev('S.seatOff'), null);
assert.equal(ev("pairsMax(S.links.find(l=>l.seat))"), 2, 'only the pairs you bought');
// Save and load keep it.
ev('const s=migrate(JSON.parse(JSON.stringify(S)));window.__s=s');
assert.equal(ev("__s.links.find(l=>l.seat).pairs"), 2);
// It lands and lights with your own optics.
ev(`S.day=${l.ready};S.pops.syd.rgen=S.pops.akl.rgen=1;ACT.addCh({id:'${l.id}',o:'zr4'});compute()`);
assert.ok(ev(`dfCap(S.links.find(l=>l.id==='${l.id}'))`) > 0, 'lit');
ev(`ACT.subUpgrade({id:'${l.id}',k:'terminal'})`);
assert.equal(ev(`S.links.find(l=>l.id==='${l.id}').subterminal`), undefined, 'the consortium owns the terminals');
// A cut on the cable cuts your share.
ev(`S.links=S.links.filter(l=>l.id==='${l.id}');eval('('+fireFailure.toString().replace('for(const o of opts){r-=o[1];if(r<=0){type=o[0];break;}}',\"type='cut';\")+')')()`);
assert.ok(ev(`linkDown(S.links.find(l=>l.id==='${l.id}'))`), 'the cut takes your pairs down too');
assert.deepEqual(errors, []);
});
test('#187 the Low-latency boutique: pick it on day 0, traders weigh more and pay more, Speed of Light wins', () => {
const { ev, dom, errors } = load();
ev(start);
ev("ACT.leftTab({t:'goals'});renderAll()");
assert.match(dom.window.document.body.innerHTML, /Pick a charter/);
ev("window.innerWidth=360;renderAll()");
assert.match(dom.window.document.body.innerHTML, /Low-latency boutique/, 'on a phone too');
ev("window.innerWidth=1280");
assert.equal(ev('charter()'), 'global', 'Global backbone until you pick');
ev("ACT.charter({k:'boutique'})");
assert.equal(ev('charter()'), 'boutique');
ev("ACT.charter({k:'global'})");
assert.equal(ev('charter()'), 'boutique', 'picked once');
// More and better-paid trading firms than a global backbone with the same network.
const count = (k) => {
const g = load();
g.ev(start);
g.ev(`S.lvl=2;S.charter='${k}';${pop('nyc')}${pop('chi')}compute()`);
return JSON.parse(g.ev("(()=>{let n=0,r=0;for(let i=0;i<300;i++){S.offers=[];spawnOffer();const o=S.offers.find(o=>o.type==='hft');if(o){n++;if(o.reqs.length===1)r=o.rate/(150+kmBetween(o.city,o.city2)*0.08)/BIZ_T.hft.km;}}return JSON.stringify({n,r});})()"));
};
const gl = count('global'), bq = count('boutique');
assert.ok(bq.n > gl.n * 1.5, `boutique traders call more (${bq.n} vs ${gl.n})`);
assert.ok(Math.abs(bq.r - 1.4) < 0.02 && Math.abs(gl.r - 1) < 0.02, 'and pay 40% more');
// Speed of Light: three finance routes faster on your own glass than any lease, and two paying latency customers.
ev(`S.lvl=2;${pop('nyc')}${pop('chi')}${pop('ash')}${df('a', 'nyc', 'chi', ['zr4'])}${df('b', 'chi', 'ash', ['zr4'])}${df('c', 'nyc', 'ash', ['zr4'])}compute()`);
assert.equal(ev('solRoutes().length'), 3);
ev('specDay(S.day)');
assert.equal(ev('S.solWon'), 0, 'not without paying customers');
ev("for(const [a,b] of [['nyc','chi'],['chi','ash']])S.biz.push({id:uid(),city:a,city2:b,name:'T',type:'hft',bw:1,rate:1000,reqs:['lat'],latMax:latMaxOf(a,b),mood:100,since:0});compute();specDay(S.day)");
assert.equal(ev('S.solWon'), Math.max(1, ev('S.day')), 'Speed of Light');
ev('checkBadges()');
assert.notEqual(ev("S.ach.sol"), undefined, 'and its badge');
ev("renderAll()");
assert.match(dom.window.document.body.innerHTML, /Won on /);
assert.deepEqual(errors, []);
});
test('#187 old saves load as Global backbone; scenarios ignore charters', () => {
const { ev, errors } = load();
ev(start);
ev("const o=JSON.parse(JSON.stringify(S));for(const k of ['charter','chartSet','demo','seatOff','solWon'])delete o[k];o.links.push({id:'q',a:'fra',b:'ams',kind:'df',own:false,sub:false,seat:true,sys:'lite',ch:[],km:400,ready:0});window.__o=migrate(o)");
assert.equal(ev('__o.charter'), 'global');
assert.equal(ev('__o.chartSet'), true, 'no charter card for an old save');
assert.deepEqual(JSON.parse(ev('JSON.stringify(__o.demo)')), {});
assert.equal(ev('__o.seatOff'), null);
assert.equal(ev("__o.links.find(l=>l.id==='q').seat"), undefined, 'a forged seat is dropped');
ev("S.charter='boutique';S.scn={id:'x'}");
assert.equal(ev('charter()'), 'global');
assert.deepEqual(errors, []);
});

View file

@ -127,7 +127,7 @@ test('route-server batch leaves peering policy and player-owned exchanges alone'
const { ev, errors } = setup(t);
ev('ACT.utilityRouteServers()');
assert.equal(ev('Object.keys(S.rs).length'), 0, 'does not join an IX without a port');
ev("ACT.buyIx({city:'fra',tier:0,signed:true});ACT.inboxPol({p:'closed'});ACT.utilityRouteServers()");
ev("ACT.buyIx({city:'fra',tier:0,signed:true});ACT.peerPol({p:'closed'});ACT.utilityRouteServers()");
assert.equal(ev('ppol()'), 'closed');
assert.equal(ev('S.rs.fra'), true);
assert.equal(ev("ixSessions('fra').has('drz')"), false, 'does not bypass closed policy');