{"version":3,"sources":["../../../src/server/dev/hot-middleware.ts"],"names":["isMiddlewareFilename","HMR_ACTIONS_SENT_TO_BROWSER","isMiddlewareStats","stats","key","compilation","entrypoints","keys","statsToJson","toJson","all","errors","hash","warnings","getStatsForSyncEvent","clientStats","serverStats","hasErrors","ts","EventStream","constructor","clients","Set","everyClient","fn","client","close","clear","handler","add","addEventListener","delete","publish","payload","send","JSON","stringify","WebpackHotMiddleware","compilers","versionInfo","onClientInvalid","closed","serverLatestStats","action","BUILDING","onClientDone","statsResult","clientLatestStats","Date","now","publishStats","onServerInvalid","onServerDone","onEdgeServerInvalid","middlewareLatestStats","onEdgeServerDone","onHMR","eventStream","syncStats","middlewareStats","SYNC","moduleTrace","BUILT","hooks","invalid","tap","done"],"mappings":"AAAA,iIAAiI;AACjI,yBAAyB;AAEzB,iDAAiD;AAEjD,wEAAwE;AACxE,kEAAkE;AAClE,sEAAsE;AACtE,sEAAsE;AACtE,qEAAqE;AACrE,wEAAwE;AACxE,4BAA4B;AAE5B,iEAAiE;AACjE,kEAAkE;AAElE,kEAAkE;AAClE,qEAAqE;AACrE,yEAAyE;AACzE,uEAAuE;AACvE,uEAAuE;AACvE,oEAAoE;AACpE,yDAAyD;AAGzD,SAASA,oBAAoB,QAAQ,oBAAmB;AAGxD,SAASC,2BAA2B,QAAQ,uBAAsB;AAElE,SAASC,kBAAkBC,KAAoB;IAC7C,KAAK,MAAMC,OAAOD,MAAME,WAAW,CAACC,WAAW,CAACC,IAAI,GAAI;QACtD,IAAIP,qBAAqBI,MAAM;YAC7B,OAAO;QACT;IACF;IAEA,OAAO;AACT;AAEA,SAASI,YAAYL,KAA4B;IAC/C,IAAI,CAACA,OAAO,OAAO,CAAC;IACpB,OAAOA,MAAMM,MAAM,CAAC;QAClBC,KAAK;QACLC,QAAQ;QACRC,MAAM;QACNC,UAAU;IACZ;AACF;AAEA,SAASC,qBACPC,WAAwD,EACxDC,WAAwD;IAExD,IAAI,CAACD,aAAa,OAAOC,+BAAAA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