"use strict";exports.id=214,exports.ids=[214],exports.modules={18529:(e,r,t)=>{t.r(r),t.d(r,{remoteMiddlewares:()=>c});var n=t(16335),i=t(65167),a=t(75413),s=t(94214);function c(e,r,t){var c;return(0,n.mG)(this,void 0,void 0,function(){var o,l=this;return(0,n.Jh)(this,function(u){switch(u.label){case 0:if((0,i.s)())return[2,[]];return o=(0,s.Kg)(),[4,Promise.all(Object.entries(null!==(c=r.enabledMiddleware)&&void 0!==c?c:{}).filter(function(e){return e[0],e[1]}).map(function(e){return e[0]}).map(function(r){return(0,n.mG)(l,void 0,void 0,function(){var i,s,c,l;return(0,n.Jh)(this,function(n){switch(n.label){case 0:s=i=r.replace("@segment/",""),t&&(s=btoa(i).replace(/=/g,"")),c="".concat(o,"/middleware/").concat(s,"/latest/").concat(s,".js.gz"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,a.v)(c)];case 2:return n.sent(),[2,window["".concat(i,"Middleware")]];case 3:return l=n.sent(),e.log("error",l),e.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}})})}))];case 1:return[2,u.sent().filter(Boolean)]}})})}}};
//# sourceMappingURL=remoteMiddleware.js.map