(self.webpackChunk_segment_analytics_next=self.webpackChunk_segment_analytics_next||[]).push([[214],{7070:function(e,t,n){"use strict";n.r(t),n.d(t,{path:function(){return c},remoteMiddlewares:function(){return l}});var r,s=n(655),i=n(4083),a=n(6673),c=null!==(r="https://cdn.segment.com/next-integrations")?r:"https://cdn.segment.com/next-integrations";function l(e,t){var n;return(0,s.mG)(this,void 0,Promise,(function(){var r,l,u,o=this;return(0,s.Jh)(this,(function(d){switch(d.label){case 0:return(0,i.s)()?[2,[]]:(r=null!==(n=t.enabledMiddleware)&&void 0!==n?n:{},l=Object.keys(r),u=l.map((function(t){return(0,s.mG)(o,void 0,void 0,(function(){var n,r,i;return(0,s.Jh)(this,(function(s){switch(s.label){case 0:n=t.replace("@segment/",""),r=c+"/middleware/"+n+"/latest/"+n+".js.gz",s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(0,a.v)(r)];case 2:return s.sent(),[2,window[n+"Middleware"]];case 3:return i=s.sent(),e.log("error",i),e.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}}))}))})),[4,Promise.all(u)]);case 1:return[2,d.sent().filter(Boolean)]}}))}))}}}]);
//# sourceMappingURL=remoteMiddleware.bundle.1e10f4cbefbb089658bc.js.map