1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2819],{12819:function(e,n){var i,t,o;console.info(` 2IFRAME-RESIZER 3 4Iframe-Resizer 5 is now available via the following two packages: 5 6 * @iframe-resizer/parent 7 * @iframe-resizer/child 8 9Additionally their are also new versions of iframe-resizer for React, Vue, and jQuery. 10 11Version 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events. 12 13Please see https://iframe-resizer.com/upgrade for more details. 14`),function(r){if("undefined"!=typeof window){var a,s,d=0,c=!1,l=!1,f=7,u="[iFrameSizer]",m=u.length,g=null,h=window.requestAnimationFrame,p=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),w={},b=null,y=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){E("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),v={};void 0!==window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each(function(n,i){B(i,e)}).end()}):F("","Unable to bind to jQuery, it is not fully loaded.")),t=[],void 0!==(o="function"==typeof(i=D)?i.apply(n,t):i)&&(e.exports=o),window.iFrameResize=window.iFrameResize||D()}function z(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function I(e,n,i){e.addEventListener(n,i,!1)}function k(e,n,i){e.removeEventListener(n,i,!1)}function x(e){return w[e]?w[e].log:c}function M(e,n){R("log",e,n,x(e))}function F(e,n){R("info",e,n,x(e))}function E(e,n){R("warn",e,n,!0)}function R(e,n,i,t){if(!0===t&&"object"==typeof window.console){var o;console[e](u+"["+(o="Host page: "+n,window.top!==window.self&&(o=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+n:"Nested host page: "+n),o)+"]",i)}}function O(e){function n(){i("Height"),i("Width"),P(function(){H(O),S(N),T(N,"onResized",O)},O,"init")}function i(e){var n=Number(w[N]["max"+e]),i=Number(w[N]["min"+e]),t=e.toLowerCase(),o=Number(O[t]);M(N,"Checking "+t+" is in range "+i+"-"+n),o<i&&(o=i,M(N,"Set "+t+" to min value")),o>n&&(o=n,M(N,"Set "+t+" to max value")),O[t]=""+o}function t(e){return R.slice(R.indexOf(":")+f+e)}function o(e,n){var i;i=function(){var i,t;A("Send Page Info","pageInfo:"+(i=document.body.getBoundingClientRect(),JSON.stringify({iframeHeight:(t=O.iframe.getBoundingClientRect()).height,iframeWidth:t.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(t.top-i.top,10),offsetLeft:parseInt(t.left-i.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},v[n]||(v[n]=setTimeout(function(){v[n]=null,i()},32))}function r(e){var n=e.getBoundingClientRect();return W(N),{x:Math.floor(Number(n.left)+Number(g.x)),y:Math.floor(Number(n.top)+Number(g.y))}}function a(e){var n=e?r(O.iframe):{x:0,y:0},i={x:Number(O.width)+n.x,y:Number(O.height)+n.y};M(N,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(g=i,s(),M(N,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](i.x,i.y):E(N,"Unable to scroll to requested position, window.parentIFrame not found")}function s(){!1===T(N,"onScroll",g)?g=null:S(N)}function d(e){var n,i={};if(0===Number(O.width)&&0===Number(O.height)){var o=t(9).split(":");i={x:o[1],y:o[0]}}else i={x:O.width,y:O.height};
14n={iframe:O.iframe,screenX:Number(i.x),screenY:Number(i.y),type:O.type},T(N,e,n)}var c,l,h,p,b,y,z,x,R=e.data,O={},N=null;"[iFrameResizerChild]Ready"===R?!function(){for(var e in w)A("iFrame requested init",L(e),w[e].iframe,e)}():u===(""+R).slice(0,m)&&R.slice(m).split(":")[0]in w?(l=(c=R.slice(m).split(":"))[1]?parseInt(c[1],10):0,p=getComputedStyle(h=w[c[0]]&&w[c[0]].iframe),w[N=(O={iframe:h,id:c[0],height:l+("border-box"!==p.boxSizing?0:(p.paddingTop?parseInt(p.paddingTop,10):0)+(p.paddingBottom?parseInt(p.paddingBottom,10):0))+("border-box"!==p.boxSizing?0:(p.borderTopWidth?parseInt(p.borderTopWidth,10):0)+(p.borderBottomWidth?parseInt(p.borderBottomWidth,10):0)),width:c[2],type:c[3]}).id]&&(w[N].loaded=!0),(b=O.type in{true:1,false:1,undefined:1})&&M(N,"Ignoring init message from meta parent page"),!b&&(z=!0,w[y=N]||(z=!1,E(O.type+" No settings for "+y+". Message was: "+R)),z)&&(M(N,"Received: "+R),x=!0,null===O.iframe&&(E(N,"IFrame ("+O.id+") not found"),x=!1),x&&function(){var n,i=e.origin,t=w[N]&&w[N].checkOrigin;if(t&&""+i!="null"&&!(t.constructor===Array?function(){var e=0,n=!1;for(M(N,"Checking connection is from allowed list of origins: "+t);e<t.length;e++)if(t[e]===i){n=!0;break}return n}():(n=w[N]&&w[N].remoteHost,M(N,"Checking connection is from: "+n),i===n)))throw Error("Unexpected message received from: "+i+" for "+O.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){var e,i,c,l,f,u,m,h,p;switch(w[N]&&w[N].firstRun&&w[N]&&(w[N].firstRun=!1),O.type){case"close":C(O.iframe);break;case"message":e=t(6),M(N,"onMessage passed: {iframe: "+O.iframe.id+", message: "+e+"}"),l="onMessage",f={iframe:O.iframe,message:JSON.parse(e)},T(N,l,f),M(N,"--");break;case"mouseenter":d("onMouseEnter");break;case"mouseleave":d("onMouseLeave");break;case"autoResize":w[N].autoResize=JSON.parse(t(9));break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":o(w[N]&&w[N].iframe,N),function(){function e(e,t){function r(){w[i]?o(w[i].iframe,i):n()}["scroll","resize"].forEach(function(n){M(i,e+n+" listener for sendPageInfo"),t(window,n,r)})}function n(){e("Remove ",k)}var i=N;e("Add ",I),w[i]&&(w[i].stopPageInfo=n)}();break;case"pageInfoStop":w[N]&&w[N].stopPageInfo&&(w[N].stopPageInfo(),delete w[N].stopPageInfo);break;case"inPageLink":h=decodeURIComponent(m=t(9).split("#")[1]||""),(p=document.getElementById(h)||document.getElementsByName(h)[0])?(u=r(p),M(N,"Moving to in page link (#"+m+") at x: "+u.x+" y: "+u.y),g={x:u.x,y:u.y},s(),M(N,"--")):window.top===window.self?M(N,"In page link #"+m+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(m):M(N,"In page link #"+m+" not found and window.parentIFrame not found");break;case"reset":j(O);break;case"init":n(),i="onInit",c=O.iframe,T(N,i,c);break;default:0===Number(O.width)&&0===Number(O.height)?E("Unsupported message received ("+O.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}}())):F(N,"Ignored: "+R)}function T(e,n,i){var t=null,o=null;if(w[e]){if("function"==typeof(t=w[e][n]))o=t(i);else throw TypeError(n+" on iFrame["+e+"] is not a function")}return o}function N(e){var n=e.id;delete w[n]}function C(e){var n=e.id;if(!1===T(n,"onClose",n)){M(n,"Close iframe cancelled by onClose event");return}M(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){E(e)}T(n,"onClosed",n),M(n,"--"),N(e),s&&(s.disconnect(),s=null)}function W(e){null===g&&M(e,"Get page position: "+(g={x:void 0===window.pageXOffset?document.documentElement.scrollLeft:window.pageXOffset,y:r===window.pageYOffset?document.documentElement.scrollTop:window.pageYOffset}).x+","+g.y)}function S(e){null!==g&&(window.scrollTo(g.x,g.y),M(e,"Set page position: "+g.x+","+g.y),g=null)}function j(e){M(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),W(e.id),P(function(){H(e),A("reset","reset",e.iframe,e.id)},e,"reset")}function H(e){function n(n){(function(n){if(!e.id){M("undefined","messageData id not set");return}
14e.iframe.style[n]=e[n]+"px",M(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")})(n),l||"0"!==e[n]||(l=!0,M(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(w).forEach(function(e){!function(e){function n(n){return"0px"===(w[e]&&w[e].iframe.style[n])}w[e]&&null!==w[e].iframe.offsetParent&&(n("height")||n("width"))&&A("Visibility change","resize",w[e].iframe,e)}(e)})}var n,i=z();i&&(n=document.querySelector("body"),new i(function(n){M("window","Mutation observed: "+n[0].target+" "+n[0].type),q(e,16)}).observe(n,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}var i=e.iframe.id;w[i]&&(w[i].sizeHeight&&n("height"),w[i].sizeWidth&&n("width"))}function P(e,n,i){i!==n.type&&h&&!window.jasmine?(M(n.id,"Requesting animation frame"),h(e)):e()}function A(e,n,i,t,o){var r=!1;w[t=t||i.id]&&(function(){if(i&&"contentWindow"in i&&null!==i.contentWindow){var o;o=w[t]&&w[t].targetOrigin,M(t,"["+e+"] Sending msg to iframe["+t+"] ("+n+") targetOrigin: "+o),i.contentWindow.postMessage(u+n,o)}else E(t,"["+e+"] IFrame("+t+") not found")}(),o&&w[t]&&w[t].warningTimeout&&(w[t].msgTimeout=setTimeout(function(){!w[t]||w[t].loaded||r||(r=!0,E(t,"IFrame has not responded within "+w[t].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))},w[t].warningTimeout)))}function L(e){return e+":"+w[e].bodyMarginV1+":"+w[e].sizeWidth+":"+w[e].log+":"+w[e].interval+":"+w[e].enablePublicMethods+":"+w[e].autoResize+":"+w[e].bodyMargin+":"+w[e].heightCalculationMethod+":"+w[e].bodyBackground+":"+w[e].bodyPadding+":"+w[e].tolerance+":"+w[e].inPageLinks+":"+w[e].resizeFrom+":"+w[e].widthCalculationMethod+":"+w[e].mouseEvents}function B(e,n){function i(e){var n=e.split("Callback");if(2===n.length){var i="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[i]=this[e],delete this[e],E(a,"Deprecated: '"+e+"' has been renamed '"+i+"'. The old method will be removed in the next major version.")}}var t,o,a=function(i){if("string"!=typeof i)throw TypeError("Invaild id for iFrame. Expected String");if(""===i){var t;e.id=(t=n&&n.id||y.id+d++,null!==document.getElementById(t)&&(t+=d++),i=t),c=(n||{}).log,M(i,"Added missing iframe ID: "+i+" ("+e.src+")")}return i}(e.id);a in w&&"iFrameResizer"in e?E(a,"Ignored iFrame, already setup."):(function(n){if(n=n||{},w[a]=Object.create(null),w[a].iframe=e,w[a].firstRun=!0,w[a].remoteHost=e.src&&e.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw TypeError("Options is not an object")}(n),Object.keys(n).forEach(i,n),function(e){for(var n in y)Object.prototype.hasOwnProperty.call(y,n)&&(w[a][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:y[n])}(n),w[a]){var t;w[a].targetOrigin=!0===w[a].checkOrigin?""===(t=w[a].remoteHost)||null!==t.match(/^(about:blank|javascript:|file:\/\/)/)?"*":t:"*"}}(n),function(){switch(M(a,"IFrame scrolling "+(w[a]&&w[a].scrolling?"enabled":"disabled")+" for "+a),e.style.overflow=!1===(w[a]&&w[a].scrolling)?"hidden":"auto",w[a]&&w[a].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=w[a]?w[a].scrolling:"no"}}(),function(){function n(n){var i=w[a][n];1/0!==i&&0!==i&&(e.style[n]="number"==typeof i?i+"px":i,M(a,"Set "+n+" = "+e.style[n]))}function i(e){if(w[a]["min"+e]>w[a]["max"+e])throw Error("Value for min"+e+" can not be greater than max"+e)}i("Height"),i("Width"),n("maxHeight"),n("minHeight"),n("maxWidth"),n("minWidth")}(),("number"==typeof(w[a]&&w[a].bodyMargin)||"0"===(w[a]&&w[a].bodyMargin))&&(w[a].bodyMarginV1=w[a].bodyMargin,w[a].bodyMargin=""+w[a].bodyMargin+"px"),t=L(a),(o=z())&&(s=function(n){if(!e.parentNode)return null;var i=new n(function(n){n.forEach(function(n){Array.prototype.slice.call(n.removedNodes).forEach(function(n){n===e&&C(e)})})});return i.observe(e.parentNode,{childList:!0}),i}(o)),I(e,"load",function(){var n,i;A("iFrame.onload",t,e,r,!0),n=w[a]&&w[a].firstRun,i=w[a]&&w[a].heightCalculationMethod in p,!n&&i&&j({iframe:e,height:0,width:0,type:"init"})}),A("init",t,e,r,!0),w[a]&&(w[a].iframe.iFrameResizer={close:C.bind(null,w[a].iframe),removeListeners:N.bind(null,w[a].iframe),resize:A.bind(null,"Window resize","resize",w[a].iframe),moveToAnchor:function(e){A("Move to anchor","moveToAnchor:"+e,w[a].iframe,a)},sendMessage:function(e){A("Send Message","message:"+(e=JSON.stringify(e)),w[a].iframe,a)}}))}function q(e,n){null===b&&(b=setTimeout(function(){b=null,e()},n))}
14function V(){"hidden"!==document.visibilityState&&(M("document","Trigger event: Visibility change"),q(function(){U("Tab Visible","resize")},16))}function U(e,n){Object.keys(w).forEach(function(i){w[i]&&"parent"===w[i].resizeFrom&&w[i].autoResize&&!w[i].firstRun&&A(e,n,w[i].iframe,i)})}function D(){var e;function n(n,i){i&&(function(){if(i.tagName){if("IFRAME"!==i.tagName.toUpperCase())throw TypeError("Expected <IFRAME> tag, found <"+i.tagName+">")}else throw TypeError("Object is not a valid DOM element")}(),B(i,n),e.push(i))}return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!h;e+=1)h=window[n[e]+"RequestAnimationFrame"];h?h=h.bind(window):M("setup","RequestAnimationFrame not supported")}(),I(window,"message",O),I(window,"resize",function(){var e;M("window","Trigger event: "+(e="resize")),q(function(){U("Window "+e,"resize")},16)}),I(document,"visibilitychange",V),I(document,"-webkit-visibilitychange",V),function(i,t){switch(e=[],i&&i.enablePublicMethods&&E("enablePublicMethods option has been removed, public methods are now always available in the iFrame"),typeof t){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(t||"iframe"),n.bind(r,i));break;case"object":n(i,t);break;default:throw TypeError("Unexpected data type ("+typeof t+")")}return e}}}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.