self.studioLoader.context.evalInContext("var mk={INVITATION:0,ENGAGED:1,INVITATION_LARGE_CANVAS:2};m(\"studio.common.gdn.Environment.EngagementPhase\",mk,void 0);var nk=function(a){var b;u(aa(\"performance.getEntriesByType\",window))&&(b=Oa(function(b){return r(b.name)?Ba(b.name,a):!1}));var c=null!=b?b.duration:-1;b=null!=b?b.transferSize:-1;var d=aa(\"navigator.connection.type\",window)||-1,e={};-1!=c&&(e.resourceDuration=Math.floor(100*c)/100);-1!=b&&(e.transferSize=b);-1!=d&&(e.connectionType=d);return e};var W=function(){this.m=this.c=null;this.b=[];this.h={};this.i=null;this.j=[];this.f=!1;J.call(this);Xh(w(this.T,this))};y(W,J);m(\"studio.sdk.gdn.GdnConfig\",W,void 0);var ok={ff:\"getClientEnvironment\",hf:\"cpeEnabled\",pf:\"getEngagementState\",qf:\"getActiveExperimentLabels\",Bf:\"getActivePreviewParams\"},pk=[\"touchstart\",\"touchend\",\"click\",\"mousedown\",\"mouseup\"];W.prototype.T=function(){this.a=Q();if(this.c=K(32)){nk(\"Enabler\");this.a.u(\"creativeToolsetInternalsGen204\",\"sampledInfo\",[\"enabler_init\",nk(\"Enabler\")],null);var a=nk(\"gdnmodule\");this.a.u(\"creativeToolsetInternalsGen204\",\"sampledInfo\",[\"gdn_module_init\",a],null);this.a.u(\"creativeToolsetInternals\",\"enableRemoteEvents\",[!0]);Rd(document.body,pk,this.w,!1,this);qk(this,\"getClientEnvironment\",this.I);qk(this,\"cpeEnabled\",this.J);qk(this,\"getEngagementState\",this.Y);qk(this,\"getActiveExperimentLabels\",this.u);qk(this,\"getActivePreviewParams\",this.B)}else this.f=!0,this.dispatchEvent(new O(\"init\"))};W.prototype.isInitialized=function(){return this.f};W.prototype.isInitialized=W.prototype.isInitialized;W.prototype.le=function(){return!!this.c};W.prototype.isInCreativeToolsetContext=W.prototype.le;var qk=function(a,b,c){a.a.u(\"creativeToolsetConfig\",b,null,w(function(a){c.call(this,a);this.j.push(b);this.j.length==Ya(ok)&&(this.f=!0,this.dispatchEvent(new O(\"init\")))},a))};W.prototype.yd=function(){return this.i};W.prototype.getClientEnvironment=W.prototype.yd;W.prototype.I=function(a){this.i=a};W.prototype.je=function(){return this.m};W.prototype.isCpeEnabled=W.prototype.je;W.prototype.J=function(a){this.m=a};W.prototype.wd=function(){return this.b};W.prototype.getActiveExperimentLabels=W.prototype.wd;W.prototype.xd=function(){return this.h};W.prototype.getActivePreviewParams=W.prototype.xd;W.prototype.ke=function(a){return!!this.b&&0<=Ja(this.b,a)};W.prototype.isExperimentActive=W.prototype.ke;W.prototype.u=function(a){this.b=a};W.prototype.B=function(a){this.h=a};W.prototype.Lc=function(a){qk(this,\"getEngagementState\",function(b){a(b.currentState)})};W.prototype.retrieveCurrentEngagementState=W.prototype.Lc;W.prototype.Y=function(){};W.prototype.me=function(a){this.Lc(function(b){a(2==b)})};W.prototype.isInterstitial=W.prototype.me;W.prototype.w=function(a){this.a.u(\"creativeToolsetInternals\",\"creativeBodyRemoteEventSink\",[rk(a)])};var rk=function(a){var b=a.fa,c={type:b.type,ctrlKey:b.ctrlKey,shiftKey:b.shiftKey,altKey:b.altKey,metaKey:b.metaKey,timeStamp:b.timeStamp||la()};switch(a.type){case \"touchstart\":case \"touchend\":gb(c,{touches:sk(b.touches),targetTouches:sk(b.targetTouches),changedTouches:sk(b.changedTouches)});break;case \"click\":case \"mousedown\":case \"mouseup\":gb(c,{screenX:b.screenX,screenY:b.screenY,clientX:b.clientX,clientY:b.clientY,button:b.button,buttons:b.buttons})}return c},sk=function(a){return null!==a&&k(a)?Ka(a,function(a){return{identifier:a.identifier,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX,clientY:a.clientY,pageX:a.pageX,pageY:a.pageY,radiusX:a.radiusX,radiusY:a.radiusY,rotationAngle:a.rotationAngle,force:a.force}}):[]};m(\"studio.sdk.gdn.EngagementPhase\",mk,void 0);m(\"studio.sdk.gdn.BrowserClass\",{DESKTOP:0,MOBILE_WEB:1,IN_APP:2},void 0);var tk=new W;m(\"studio.sdk.gdn.getConfig\",function(){return tk},void 0);m(\"studio.sdk.gdn.getInitializedConfigByCallback\",function(a){tk.isInitialized()?a(tk):tk.g.add(\"init\",x(a,tk),!0,void 0,void 0)},void 0);");
