/*! For license information please see widget.js.LICENSE.txt */ !function(){var e={652:function(e,t){var n,i,o;!function(r){var a,s,d,c,u,l,f,m,g,h,w,p,b;function y(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function v(e,t,n){e.addEventListener(t,n,!1)}function C(e,t,n){e.removeEventListener(t,n,!1)}function x(e){return h[e]?h[e].log:s}function O(e,t){I("log",e,t,x(e))}function k(e,t){I("info",e,t,x(e))}function M(e,t){I("warn",e,t,!0)}function I(e,t,n,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return u+"["+(e="Host page: "+(t=e),(e=window.top!==window.self?window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+t:"Nested host page: "+t:e)+"]");var t}(t),n)}function T(e){function t(){n("Height"),n("Width"),W((function(){L(T),R(E),g("onResized",T)}),T,"init")}function n(e){var t=Number(h[E]["max"+e]),n=Number(h[E]["min"+e]),i=e.toLowerCase();e=Number(T[i]);O(E,"Checking "+i+" is in range "+n+"-"+t),eh[d]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}d in h&&"iFrameResizer"in e?M(d,"Ignored iFrame, already setup."):(function(t){t=t||{},h[d]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(n,t),function(e){for(var t in p)Object.prototype.hasOwnProperty.call(p,t)&&(h[d][t]=(Object.prototype.hasOwnProperty.call(e,t)?e:p)[t])}(t),h[d]&&(h[d].targetOrigin=!0===h[d].checkOrigin?""===(t=h[d].remoteHost)||null!==t.match(/^(about:blank|javascript:|file:\/\/)/)?"*":t:"*")}(t),function(){switch(O(d,"IFrame scrolling "+(h[d]&&h[d].scrolling?"enabled":"disabled")+" for "+d),e.style.overflow=!1===(h[d]&&h[d].scrolling)?"hidden":"auto",h[d]&&h[d].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=h[d]?h[d].scrolling:"no"}}(),u("Height"),u("Width"),c("maxHeight"),c("minHeight"),c("maxWidth"),c("minWidth"),"number"!=typeof(h[d]&&h[d].bodyMargin)&&"0"!==(h[d]&&h[d].bodyMargin)||(h[d].bodyMarginV1=h[d].bodyMargin,h[d].bodyMargin=h[d].bodyMargin+"px"),function(t){var n,i=y();i&&(n=i,e.parentNode&&new n((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&F(e)}))}))})).observe(e.parentNode,{childList:!0})),v(e,"load",(function(){var n,i;S("iFrame.onload",t,e,r,!0),n=h[d]&&h[d].firstRun,i=h[d]&&h[d].heightCalculationMethod in g,!n&&i&&H({iframe:e,height:0,width:0,type:"init"})})),S("init",t,e,r,!0)}(j(d)),h[d]&&(h[d].iframe.iFrameResizer={close:F.bind(null,h[d].iframe),removeListeners:E.bind(null,h[d].iframe),resize:S.bind(null,"Window resize","resize",h[d].iframe),moveToAnchor:function(e){S("Move to anchor","moveToAnchor:"+e,h[d].iframe,d)},sendMessage:function(e){S("Send Message","message:"+(e=JSON.stringify(e)),h[d].iframe,d)}}))}function U(e,t){null===w&&(w=setTimeout((function(){w=null,e()}),t))}function B(){"hidden"!==document.visibilityState&&(O("document","Trigger event: Visiblity change"),U((function(){_("Tab Visable","resize")}),16))}function _(e,t){Object.keys(h).forEach((function(n){var i;h[i=n]&&"parent"===h[i].resizeFrom&&h[i].autoResize&&!h[i].firstRun&&S(e,t,h[n].iframe,n)}))}function q(){function e(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected