module.exports = "(function(t,e,i){var n=i(5894),s=i(7358),a=i(9133);t.exports={initialize:function(){this.__state={holdback:0,isGlobalHoldback:null,listTargetingKeys:[],revision:null,projectId:null,accountId:null,namespace:null,activationId:null,activationTimestamp:null,dcpServiceId:null,dcpKeyfieldLocators:[],recommenderServices:[],anonymizeIP:null,projectJS:null,snippetId:null,plugins:[],domContentLoaded:!1,experimental:{},ga4UserId:null},this.on(s.DATA_LOADED,this.__setGlobalData),this.on(s.ACTIVATE,this.__activate),this.on(s.RECORD_GLOBAL_DECISION,this.__recordGlobalDecision),this.on(s.SET_DOMCONTENTLOADED,this.__setDomContentLoaded),this.on(s.SET_GA4_USER_ID,this.__setGA4UserId)},getRevision:function(){return this.__state.revision},getGlobalHoldbackThreshold:function(){return this.__state.holdback},getProjectId:function(){return this.__state.projectId},getSnippetId:function(){return this.__state.snippetId},getAccountId:function(){return this.__state.accountId},getNamespace:function(){return this.__state.namespace},getActivationId:function(){return this.__state.activationId},getActivationTimestamp:function(){return this.__state.activationTimestamp},getAnonymizeIP:function(){return this.__state.anonymizeIP},isGlobalHoldback:function(){return!!this.__state.isGlobalHoldback},getListTargetingKeys:function(){return this.__state.listTargetingKeys.slice()},getDCPServiceId:function(){return this.__state.dcpServiceId},getDCPKeyfieldLocators:function(){return this.__state.dcpKeyfieldLocators},getRecommenderServices:function(){return this.__state.recommenderServices},getProjectJS:function(){return this.__state.projectJS},getPlugins:function(){return this.__state.plugins},getExperimental:function(){return a.safeReference(this.__state.experimental)},getGA4UserId:function(){return this.__state.ga4UserId},domContentLoadedHasFired:function(){return this.__state.domContentLoaded},__activate:function(t){this.__state.activationId=t.activationId,this.__state.activationTimestamp=t.activationTimestamp,this.__state.isGlobalHoldback=null},__recordGlobalDecision:function(t){var e=t.isGlobalHoldback;if(null!==this.__state.isGlobalHoldback&&this.__state.isGlobalHoldback!==e)throw new Error(\"Attempted to change already set global holdback!\");this.__state.isGlobalHoldback=e,this.emitChange()},__setGA4UserId:function(t){var e=t.ga4UserId;if(!e)throw new Error('Argument \"payload.ga4UserId\" is missing');this.__state.ga4UserId=e,this.emitChange()},__setGlobalData:function(t){var e=n.pick(t.data,[\"holdback\",\"accountId\",\"projectId\",\"snippetId\",\"namespace\",\"revision\",\"listTargetingKeys\",\"dcpServiceId\",\"dcpKeyfieldLocators\",\"recommenderServices\",\"anonymizeIP\",\"plugins\",\"projectJS\",\"experimental\",\"ga4UserId\"]);if(0!==n.keys(e).length){n.extend(this.__state,{listTargetingKeys:[],dcpServiceId:null,dcpKeyfieldLocators:[]},e),this.emitChange()}},__setDomContentLoaded:function(){this.__state.domContentLoaded=!0,this.emitChange()}}})";