module.exports = "(function(e,i,t){var n=t(5894),a=t(7358),r=t(9404),o=t(4527),s=t(1571),c=o.get(\"stores/global\"),d=o.get(\"stores/session\");i.recordLayerDecision=function(e,i,t){return s.dispatch(a.RECORD_LAYER_DECISION,{layerId:e,decision:t,decisionTicket:i,sessionId:d.getSessionId(),activationId:c.getActivationId(),timestamp:r.now(),revision:c.getRevision(),namespace:c.getNamespace(),pageId:i.pageId}),t},i.relatedAudienceIds=function(e){var i={},t=[\"and\",\"or\",\"not\"];return n.each(e.experiments,(function(e){n.each(n.flattenDeep(e.audienceIds),(function(e){n.includes(t,e)||(i[e]=!0)}))})),n.keys(i)},i.getActivationTimeout=function(e){var i=e.activation;return i&&null!==i.timeout&&void 0!==i.timeout?i.timeout:2e3},i.description=function(e){return(e.name?'\"'+e.name+'\" ':\"\")+\"(\"+e.id+\")\"},i.createSingle=function(e,i,n){var a={id:e,policy:\"single_experiment\",holdback:0,experiments:[{id:i||\"\",variations:[{id:n||\"\",actions:[]}],audienceIds:[]}],integrationStringVersion:1};return __INVARIANT__&&t(2048).isType(\"Layer\",a),a},i.createLayerState=function(e,i,n,a){void 0===a&&(a=!1);var r={layerId:e,decision:{layerId:e,experimentId:i,variationId:n,isLayerHoldback:a||!1},decisionTicket:{audienceIds:[]}};return __INVARIANT__&&t(2048).isType(\"LayerState\",r),r},i.getIntegrationTypes=function(e){return n.keys(n.reduce(n.keys(e.integrationSettings),(function(e,i){return n.isNaN(Number(i))||(i=\"custom\"),e[i]=1,e}),{}))}})";