var OneTrustTCFStub=(e=>{var t=function(){var s=this;this.LOCATOR_NAME="__tcfapiLocator",this.win=window,this.init=function(){for(;s.win;){try{if(s.win.frames[s.LOCATOR_NAME]){s.cmpFrame=s.win;break}}catch(e){}if(s.win===window.top)break;s.win=s.win.parent}s.cmpFrame||(s.addFrame(),s.win.__tcfapi=s.executeTcfApi,s.win.receiveOTMessage=s.receiveIabMessage,(s.win.attachEvent||s.win.addEventListener)("message",s.win.receiveOTMessage,!1))},this.addFrame=function(){var e,t=s.win.document,i=!!s.win.frames[s.LOCATOR_NAME];return i||(t.body?((e=t.createElement("iframe")).style.cssText="display:none",e.name=s.LOCATOR_NAME,e.setAttribute("title","TCF Locator"),t.body.appendChild(e)):setTimeout(s.addFrame,5)),!i},this.receiveIabMessage=function(i){var a,n="string"==typeof i.data,e={};try{e=n?JSON.parse(i.data):i.data}catch(e){}e&&e.__tcfapiCall&&(e=e.__tcfapiCall,a=e.callId,s.executeTcfApi(e.command,e.parameter,function(e,t){e={__tcfapiReturn:{returnValue:e,success:t,callId:a}};i&&i.source&&i.source.postMessage&&i.source.postMessage(n?JSON.stringify(e):e,"*")},e.version))},this.executeTcfApi=function(){for(var e,t,i,a,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(!n.length)return s.win.__tcfapi.a||[];"setGdprApplies"===n[0]?3<n.length&&2===parseInt(n[1],10)&&"boolean"==typeof n[3]&&(s.gdprApplies=n[3],"function"==typeof n[2])&&n[2]("set",!0):(e=n[0],t=n[1],a=n[3],"function"==typeof(i=n[2])&&e&&("ping"===e?s.getPingReq(i,s.gdprApplies):s.addToQ(e,t,i,a)))},this.addToQ=function(e,t,i,a){var n=s.win.__tcfapi;n.a=n.a||[],n.a.push([e,t,i,a])},this.getPingReq=function(e,t){e({gdprApplies:t=void 0===t?void 0:t,cmpLoaded:!1,cmpStatus:"stub",apiVersion:"2.0"})},this.init()},i=new t;return e.TCF=t,e.tcfStub=i,Object.defineProperty(e,"__esModule",{value:!0}),e})({});
