module.exports = "(function(e,i,n){var r=n(5894),d=n(843),t=n(8465),o=n(4810),u=n(7887);function a(e,i){var n=\"function\"==typeof e?e(i):e;return\"string\"==typeof n&&(n=[n]),r.isArray(n)?n:(o.warn(\"Couldn't determine fieldsNeeded for matcher; assuming []\"),[])}function f(e){return e.name?e.name+\" (\"+e.id+\")\":e.id}i.isInAudience=function(e,i,u){var c,s=function(e,i){return function(n){var d=n.type,u=i[d];if(!u)throw new Error(\"Audience / No matcher found for type=\"+d);if(u.fieldsNeeded)for(var f=a(u.fieldsNeeded,n),c=0;c<f.length;c++){var s=f[c],l=t.getFieldValue(e,s);if(r.isUndefined(l))return o.debug(\"Audience / Required field\",s,\"for type\",d,\"has no value\"),void 0}o.debug(\"Matching condition:\",n,\"to values:\",e);var v=u.match(e,n);if(!r.isUndefined(v))return!!v}}(e,u);o.groupCollapsed(\"Checking audience\",i.name,i.id,i),o.debug(\"Visitor Profile:\",e),__INVARIANT__&&n(2048).isType(\"Conditions\",i.conditions);try{var l=d.evaluate(i.conditions,s)}catch(e){c=e,l=!1}return o.groupEnd(),c&&o.error(\"Audience / Error evaluating audience\",f(i),\":\",c),o.log(\"Is \"+(l?\"in\":\"NOT in\")+\" audience:\",f(i)),l},i.requiredAudienceFieldsForConditions=function e(i,n){var d={};return r.each(i,(function(i){if(r.isArray(i))r.extend(d,e(i,n));else if(r.isObject(i)){var t=n[i.type];if(t){var o=a(t.fieldsNeeded,i);r.each(o,(function(e){d[u.serializeFieldKey(e)]=e}))}}})),d}})";