if (self.CavalryLogger) { CavalryLogger.start_js(["+jCbM"]); } __d("resolveWindow",[],(function(a,b,c,d,e,f){function a(a){if(a==null)return null;var b=window;a=a.split(".");try{for(var c=0;cthis._lastResizeAckId&&(this._lastResizeAckId=b.id)}.bind(this))},getQueue:function(){this._queue||(this._queue=new(b("Queue"))());return this._queue},setChannelUrl:function(a){var b=this;this.getQueue().start(function(c){return b.send(c,a)})},send:function(a,c){a===void 0&&(a=null);c===void 0&&(c=null);c=c||this._opts.channelUrl;if(!c){this.getQueue().enqueue(a);return}var d={};c=new(g||(g=b("URI")))(c);Object.assign(d,a,(h||(h=b("PHPQuerySerializer"))).deserialize(c.getFragment()));c=new g(d.origin);if(c.getDomain()===""){b("Log").error("No valid domain for XD message target.");return}var e=c.getOrigin();if(typeof d.relation!=="string"){b("Log").error("No relation specified to resolve XD target window.");return}var f=b("resolveWindow")(d.relation.replace(/^parent\./,"")),i=1;c=function c(){try{f.postMessage((h||(h=b("PHPQuerySerializer"))).serialize(d),e)}catch(d){--i?window.setTimeout(c,200):b("sdk.Scribe").log("jssdk_error",{error:"POST_MESSAGE",extra:{message:d.message+", html/js/modules/XD.js:139",ancestor_origins:JSON.stringify(location.ancestorOrigins),referrer:document.referrer,data:a}})}};c()},_computeSize:function(){var a=b("DOMDimensions").getDocumentDimensions(),c=0;if(this._opts.resizeWidth){var d=document.body;if(d!=null){if(d.clientWidthc&&(c=d)}}c=Math.max(c,i._forcedMinWidth)}else c=i._forcedMinWidth}a.width=c;this._opts.allowShrink&&(this._shrinker||(this._shrinker=b("DOM").create("div")),b("DOM").appendContent(document.body,this._shrinker),a.height=Math.max(this._shrinker.offsetTop,0));return a},_startResizeMonitor:function(){var a,c;a=(a=document.documentElement)!=null?a:{};if(this._opts.hideOverflow){a.style.overflow="hidden";((a=document.body)!=null?a:{}).style.overflow="hidden"}a=function(){var a=this._computeSize(),d=Date.now();if(!c||this._opts.allowShrink&&c.width!=a.width||!this._opts.allowShrink&&c.width