New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@iframe-resizer/child

Package Overview
Dependencies
Maintainers
0
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iframe-resizer/child - npm Package Compare versions

Comparing version 5.2.0-beta.4 to 5.2.0-beta.5

4

index.cjs.js
/*!
* @preserve
*
* @module iframe-resizer/child 5.2.0-beta.4 (cjs) - 2024-07-11
* @module iframe-resizer/child 5.2.0-beta.5 (cjs) - 2024-07-11
*

@@ -20,3 +20,3 @@ * @license GPL-3.0 for non-commercial use only.

"use strict";const e="5.2.0-beta.4",t=10,n="data-iframe-size",o="data-iframe-overflow",i="bottom",r="right",a=(e,t,n,o)=>e.addEventListener(t,n,o||!1),l=["<iy><yi>Puchspk Spjluzl Rlf</><iy><iy>","<iy><yi>Tpzzpun Spjluzl Rlf</><iy><iy>","Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.<iy><iy><i>Jvttlyjphs Spjluzl</><iy>Mvy jvttlyjphs bzl, <p>pmyhtl-ylzpgly</> ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>.<iy><iy><i>Vwlu Zvbyjl Spjluzl</><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-jvttlyjphs vwlu zvbyjl wyvqlja aolu fvb jhu bzl pa mvy myll bukly aol alytz vm aol NWS C3 Spjluzl. Av jvumpyt fvb hjjlwa aolzl alytz, wslhzl zla aol <i>spjluzl</> rlf pu <p>pmyhtl-ylzpgly</> vwapvuz av <i>NWSc3</>.<iy><iy>Mvy tvyl pumvythapvu wslhzl zll: <b>oaawz://pmyhtl-ylzpgly.jvt/nws</>","<i>NWSc3 Spjluzl Clyzpvu</><iy><iy>Aopz clyzpvu vm <p>pmyhtl-ylzpgly</> pz ilpun bzlk bukly aol alytz vm aol <i>NWS C3</> spjluzl. Aopz spjluzl hssvdz fvb av bzl <p>pmyhtl-ylzpgly</> pu Vwlu Zvbyjl wyvqljaz, iba pa ylxbpylz fvby wyvqlja av il wbispj, wyvcpkl haaypibapvu huk il spjluzlk bukly clyzpvu 3 vy shaly vm aol NUB Nlulyhs Wbispj Spjluzl.<iy><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-vwlu zvbyjl wyvqlja vy dlizpal, fvb dpss ullk av wbyjohzl h svd jvza vul aptl jvttlyjphs spjluzl.<iy><iy>Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>."];Object.fromEntries(["2cgs7fdf4xb","1c9ctcccr4z","1q2pc4eebgb","ueokt0969w","w2zxchhgqz","1umuxblj2e5"].map(((e,t)=>[e,Math.max(0,t-1)])));const s=e=>(e=>e.replaceAll(/[A-Za-z]/g,(e=>String.fromCodePoint((e<="Z"?90:122)>=(e=e.codePointAt(0)+19)?e:e-26))))(l[e]),c=e=>{let t=!1;return function(){return t?void 0:(t=!0,Reflect.apply(e,this,arguments))}},d=e=>e;let u=i,m=d;const f={root:document.documentElement,rootMargin:"0px",threshold:1};let p=[];const h=new WeakSet,g=new IntersectionObserver((e=>{e.forEach((e=>{e.target.toggleAttribute(o,(e=>0===e.boundingClientRect[u]||e.boundingClientRect[u]>e.rootBounds[u])(e))})),p=document.querySelectorAll(`[${o}]`),m()}),f),y=()=>p.length>0;"undefined"!=typeof window&&function(){const o={contentVisibilityAuto:!0,opacityProperty:!0,visibilityProperty:!0},l={height:()=>($e("Custom height calculation function not defined"),_e.auto()),width:()=>($e("Custom width calculation function not defined"),et.auto())},f={bodyOffset:1,bodyScroll:1,offset:1,documentElementOffset:1,documentElementScroll:1,documentElementBoundingClientRect:1,max:1,min:1,grow:1,lowestElement:1},v=128,b={},z="checkVisibility"in window,w="auto",$={reset:1,resetPage:1,init:1},S="[iFrameSizer]",j=S.length,P={max:1,min:1,bodyScroll:1,documentElementScroll:1},E=["body"],M="scroll";let T,C,A=!0,O="",I=0,R="",k=null,N="",x=!0,L=!1,B=null,q=!0,H=!1,W=1,F=w,D=!0,U="",V={},J=!0,Z=!1,Q=0,X=!1,Y="",G=d,K="child",_=null,ee=!1,te="",ne=window.parent,oe="*",ie=0,re=!1,ae="",le=1,se=M,ce=window,de=()=>{$e("onMessage function not defined")},ue=()=>{},me=null,fe=null;const pe=e=>e.charAt(0).toUpperCase()+e.slice(1),he=e=>""!=`${e}`&&void 0!==e,ge=new WeakSet,ye=e=>"object"==typeof e&&ge.add(e);function ve(e){switch(!0){case!he(e):return"";case he(e.id):return`${e.nodeName.toUpperCase()}#${e.id}`;case he(e.name):return`${e.nodeName.toUpperCase()} (${e.name})`;default:return e.nodeName.toUpperCase()+(he(e.className)?`.${e.className}`:"")}}const be=(...e)=>[`[iframe-resizer][${Y}]`,...e].join(" "),ze=(...e)=>Z&&console?.log(be(...e)),we=(...e)=>console?.info(`[iframe-resizer][${Y}]`,...e),$e=(...e)=>console?.warn(be(...e)),Se=(...e)=>console?.warn((e=>t=>window.chrome?e(t.replaceAll("<br>","\n").replaceAll("<rb>","").replaceAll("</>","").replaceAll("<b>","").replaceAll("<i>","").replaceAll("<u>","")):e(t.replaceAll("<br>","\n").replaceAll(/<[/a-z]+>/gi,"")))(be)(...e)),je=e=>Se(e);function Pe(){var o,d;!function(){const e=e=>"true"===e,t=U.slice(j).split(":");Y=t[0],I=void 0===t[1]?I:Number(t[1]),L=void 0===t[2]?L:e(t[2]),Z=void 0===t[3]?Z:e(t[3]),A=void 0===t[6]?A:e(t[6]),R=t[7],F=void 0===t[8]?F:t[8],O=t[9],N=t[10],ie=void 0===t[11]?ie:Number(t[11]),V.enable=void 0!==t[12]&&e(t[12]),K=void 0===t[13]?K:t[13],se=void 0===t[14]?se:t[14],X=void 0===t[15]?X:e(t[15]),T=void 0===t[16]?T:Number(t[16]),C=void 0===t[17]?C:Number(t[17]),x=void 0===t[18]?x:e(t[18]),t[19],ae=t[20]||ae,Q=void 0===t[21]?Q:Number(t[21])}(),function(){function e(){const e=window.iframeResizer||window.iFrameResizer;ze(`Reading data from page: ${JSON.stringify(e)}`),de=e?.onMessage||de,ue=e?.onReady||ue,"number"==typeof e?.offset&&(Se("<rb>Deprecated option</>\n\n The <b>offset</> option has been renamed to <b>offsetSize</>. Use of the old name will be removed in a future version of <i>iframe-resizer</>."),x&&(T=e?.offset),L&&(C=e?.offset)),"number"==typeof e?.offsetSize&&(x&&(T=e?.offsetSize),L&&(C=e?.offsetSize)),Object.prototype.hasOwnProperty.call(e,"sizeSelector")&&(te=e.sizeSelector),oe=e?.targetOrigin||oe,F=e?.heightCalculationMethod||F,se=e?.widthCalculationMethod||se}function t(e,t){return"function"==typeof e&&(ze(`Setup custom ${t}CalcMethod`),l[t]=e,e="custom"),e}1!==Q&&("iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),F=t(F,"height"),se=t(se,"width")),ze(`TargetOrigin for parent set to: ${oe}`))}(),ze(`Initialising iFrame v${e} (${window.location.href})`),function(){try{ee="iframeParentListener"in window.parent}catch(e){ze("Cross domain iframe detected.")}}(),Q<0?je(`${s(Q+2)}${s(2)}`):ae.codePointAt(0)>4||Q<2&&je(s(3)),ae&&""!==ae&&"false"!==ae?ae!==e&&Se(`<rb>Version mismatch</>\n\nThe parent and child pages are running different versions of <i>iframe resizer</>.\n\nParent page: ${ae} - Child page: ${e}.\n`):Se("<rb>Legacy version detected on parent page</>\n\nDetected legacy version of parent page script. It is recommended to update the parent page to use <b>@iframe-resizer/parent</>.\n\nSee <u>https://iframe-resizer.com/setup/</> for more details.\n"),Re(),ke(),function(){let e=!1;const t=t=>document.querySelectorAll(`[${t}]`).forEach((o=>{e=!0,o.removeAttribute(t),o.toggleAttribute(n,!0)}));t("data-iframe-height"),t("data-iframe-width"),e&&Se("<rb>Deprecated Attributes</>\n \nThe <b>data-iframe-height</> and <b>data-iframe-width</> attributes have been deprecated and replaced with the single <b>data-iframe-size</> attribute. Use of the old attributes will be removed in a future version of <i>iframe-resizer</>.")}(),x!==L&&(G=(e=>(u=e.side,m=e.onChange,e=>e.forEach((e=>{h.has(e)||(g.observe(e),h.add(e))}))))({onChange:c(Ee),side:x?i:r})),Me(),1!==Q&&(ce.parentIframe=Object.freeze({autoResize:e=>(!0===e&&!1===A?(A=!0,Ne()):!1===e&&!0===A&&(A=!1,Oe("remove"),_?.disconnect(),k?.disconnect()),at(0,0,"autoResize",JSON.stringify(A)),A),close(){at(0,0,"close")},getId:()=>Y,getPageInfo(e){if("function"==typeof e)return me=e,at(0,0,"pageInfo"),void Se("<rb>Deprecated Method</>\n \nThe <b>getPageInfo()</> method has been deprecated and replaced with <b>getParentProps()</>. Use of this method will be removed in a future version of <i>iframe-resizer</>.\n");me=null,at(0,0,"pageInfoStop")},getParentProps(e){if("function"!=typeof e)throw new TypeError("parentIFrame.getParentProps(callback) callback not a function");return fe=e,at(0,0,"parentInfo"),()=>{fe=null,at(0,0,"parentInfoStop")}},getParentProperties(e){Se("<rb>Renamed Method</>\n \nThe <b>getParentProperties()</> method has been renamed <b>getParentProps()</>. Use of the old name will be removed in a future version of <i>iframe-resizer</>.\n"),this.getParentProps(e)},moveToAnchor(e){V.findTarget(e)},reset(){rt("parentIFrame.reset")},scrollBy(e,t){at(t,e,"scrollBy")},scrollTo(e,t){at(t,e,"scrollTo")},scrollToOffset(e,t){at(t,e,"scrollToOffset")},sendMessage(e,t){at(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod(e){F=e,Re()},setWidthCalculationMethod(e){se=e,ke()},setTargetOrigin(e){ze(`Set targetOrigin: ${e}`),oe=e},resize(e,t){nt("size",`parentIFrame.size(${e||""}${t?`,${t}`:""})`,e,t)},size(e,t){Se("<rb>Deprecated Method</>\n \nThe <b>size()</> method has been deprecated and replaced with <b>resize()</>. Use of this method will be removed in a future version of <i>iframe-resizer</>.\n"),this.resize(e,t)}}),ce.parentIFrame=ce.parentIframe),function(){function e(e){at(0,0,e.type,`${e.screenY}:${e.screenX}`)}function t(t,n){ze(`Add event listener: ${n}`),a(window.document,t,e)}!0===X&&(t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave"))}(),V=function(){const e=()=>({x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop});function n(n){const o=n.getBoundingClientRect(),i=e();return{x:parseInt(o.left,t)+parseInt(i.x,t),y:parseInt(o.top,t)+parseInt(i.y,t)}}function o(e){function t(e){const t=n(e);ze(`Moving to in page link (#${o}) at x: ${t.x}y: ${t.y}`),at(t.y,t.x,"scrollToOffset")}const o=e.split("#")[1]||e,i=decodeURIComponent(o),r=document.getElementById(i)||document.getElementsByName(i)[0];void 0===r?(ze(`In page link (#${o}) not found in iFrame, so sending to parent`),at(0,0,"inPageLink",`#${o}`)):t(r)}function i(){const{hash:e,href:t}=window.location;""!==e&&"#"!==e&&o(t)}function r(){function e(e){function t(e){e.preventDefault(),o(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&a(e,"click",t)}document.querySelectorAll('a[href^="#"]').forEach(e)}function l(){a(window,"hashchange",i)}function s(){setTimeout(i,v)}function c(){ze("Setting up location.hash handlers"),r(),l(),s()}return V.enable?1===Q?Se("In page linking requires a Professional or Business license. Please see https://iframe-resizer.com/pricing for more details."):c():ze("In page linking not enabled"),{findTarget:o}}(),ye(document.documentElement),ye(document.body),void 0===R&&(R=`${I}px`),Te("margin",(o="margin",(d=R).includes("-")&&($e(`Negative CSS value ignored for ${o}`),d=""),d)),Te("background",O),Te("padding",N),function(){const e=document.createElement("div");e.style.clear="both",e.style.display="block",e.style.height="0",document.body.append(e)}(),function(){const e=e=>e.style.setProperty("height","auto","important");e(document.documentElement),e(document.body),ze('HTML & body height set to "auto !important"')}(),Ce()}const Ee=()=>{nt("init","Init message from host page",void 0,void 0,e),document.title&&""!==document.title&&at(0,0,"title",document.title),Ne(),ue(),J=!1,ze("Initialization complete"),ze("---")};function Me(){const e=document.querySelectorAll(`[${n}]`);H=e.length>0,ze(`Tagged elements found: ${H}`),B=H?e:Xe(document)(),H?setTimeout(Ee):G(B)}function Te(e,t){void 0!==t&&""!==t&&"null"!==t&&(document.body.style.setProperty(e,t),ze(`Body ${e} set to "${t}"`))}function Ce(){""!==te&&(ze(`Applying sizeSelector: ${te}`),document.querySelectorAll(te).forEach((e=>{ze(`Applying data-iframe-size to: ${ve(e)}`),e.dataset.iframeSize=!0})))}function Ae(e){({add(t){function n(){nt(e.eventName,e.eventType)}b[t]=n,a(window,t,n,{passive:!0})},remove(e){const t=b[e];var n,o;delete b[e],n=e,o=t,window.removeEventListener(n,o,!1)}})[e.method](e.eventName),ze(`${pe(e.method)} event listener: ${e.eventType}`)}function Oe(e){Ae({method:e,eventType:"After Print",eventName:"afterprint"}),Ae({method:e,eventType:"Before Print",eventName:"beforeprint"}),Ae({method:e,eventType:"Ready State Change",eventName:"readystatechange"})}function Ie(e,t,n,o){return t!==e&&(e in n||($e(`${e} is not a valid option for ${o}CalculationMethod.`),e=t),e in f&&Se(`<rb>Deprecated ${o}CalculationMethod (${e})</>\n\nThis version of <i>iframe-resizer</> can auto detect the most suitable ${o} calculation method. It is recommended that you remove this option.`),ze(`${o} calculation method set to "${e}"`)),e}function Re(){F=Ie(F,w,_e,"height")}function ke(){se=Ie(se,M,et,"width")}function Ne(){!0===A?(Oe("add"),k=function(){function e(e){e.forEach(De),Ce(),Me()}function t(){const t=new window.MutationObserver(e),n=document.querySelector("body"),o={attributes:!1,attributeOldValue:!1,characterData:!1,characterDataOldValue:!1,childList:!0,subtree:!0};return ze("Create <body/> MutationObserver"),t.observe(n,o),t}const n=t();return{disconnect(){ze("Disconnect MutationObserver"),n.disconnect()}}}(),_=new ResizeObserver(Le),Fe(window.document)):ze("Auto Resize disabled")}let xe;function Le(e){if(!Array.isArray(e)||0===e.length)return;const t=e[0].target;xe=()=>nt("resizeObserver",`Resize Observed: ${ve(t)}`),setTimeout((()=>{xe&&xe(),xe=void 0}),0)}const Be=e=>{const t=getComputedStyle(e);return""!==t?.position&&"static"!==t?.position},qe=()=>[...Xe(document)()].filter(Be),He=new WeakSet;function We(e){e&&(He.has(e)||(_.observe(e),He.add(e),ze(`Attached resizeObserver: ${ve(e)}`)))}function Fe(e){[...qe(),...E.flatMap((t=>e.querySelector(t)))].forEach(We)}function De(e){"childList"===e.type&&Fe(e.target)}let Ue=null,Ve=4,Je=4;function Ze(e){const t=pe(e);let n=0,i=document.documentElement,r=H?0:document.documentElement.getBoundingClientRect().bottom,a=performance.now();const l=!H&&y()?p:B;let s=l.length;l.forEach((t=>{H||!z||t.checkVisibility(o)?(n=t.getBoundingClientRect()[e]+parseFloat(getComputedStyle(t).getPropertyValue(`margin-${e}`)),n>r&&(r=n,i=t)):s-=1})),a=(performance.now()-a).toPrecision(1),function(e,t,n,o){ge.has(e)||Ue===e||H&&o<=1||(Ue=e,we(`\n${t} position calculated from:\n`,e,`\nParsed ${o} ${H?"tagged":"potentially overflowing"} elements in ${n}ms`))}(i,t,a,s);const c=`\nParsed ${s} element${1===s?"":"s"} in ${a}ms\n${t} ${H?"tagged ":""}element found at: ${r}px\nPosition calculated from HTML element: ${ve(i)} (${function(e,t=30){const n=e?.outerHTML?.toString();return n?n.length<t?n:`${n.slice(0,t).replaceAll("\n"," ")}...`:e}(i,100)})`;return a<4||s<99||H||J?ze(c):Ve<a&&Ve<Je&&(Ve=1.2*a,Se(`<rb>Performance Warning</>\n\nCalculating the page size took an excessive amount of time. To improve performance add the <b>data-iframe-size</> attribute to the ${e} most element on the page.\n${c}`)),Je=a,r}const Qe=e=>[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll(),e.documentElementBoundingClientRect()],Xe=e=>()=>e.querySelectorAll("* :not(head):not(meta):not(base):not(title):not(script):not(link):not(style):not(map):not(area):not(option):not(optgroup):not(template):not(track):not(wbr):not(nobr)"),Ye={height:0,width:0},Ge={height:0,width:0};function Ke(e){function t(){return Ge[i]=r,Ye[i]=s,r}const n=y(),o=e===_e,i=o?"height":"width",r=e.documentElementBoundingClientRect(),a=Math.ceil(r),l=Math.floor(r),s=(e=>e.documentElementScroll()+Math.max(0,e.getOffset()))(e),c=`HTML: ${r} Page: ${s}`;switch(!0){case!e.enabled():return s;case H:return e.taggedElement();case!n&&0===Ge[i]&&0===Ye[i]:return ze(`Initial page size values: ${c}`),t();case re&&r===Ge[i]&&s===Ye[i]:return ze(`Size unchanged: ${c}`),Math.max(r,s);case 0===r:return ze(`Page is hidden: ${c}`),s;case!n&&r!==Ge[i]&&s<=Ye[i]:return ze(`New HTML bounding size: ${c}`,"Previous bounding size:",Ge[i]),t();case!o:return e.taggedElement();case!n&&r<Ge[i]:return ze("HTML bounding size decreased:",c),t();case s===l||s===a:return ze("HTML bounding size equals page size:",c),t();case r>s:return ze(`Page size < HTML bounding size: ${c}`),t();default:ze(`Content overflowing HTML element: ${c}`)}return Math.max(e.taggedElement(),t())}const _e={enabled:()=>x,getOffset:()=>T,auto:()=>Ke(_e),bodyOffset:()=>{const{body:e}=document,n=getComputedStyle(e);return e.offsetHeight+parseInt(n.marginTop,t)+parseInt(n.marginBottom,t)},bodyScroll:()=>document.body.scrollHeight,offset:()=>_e.bodyOffset(),custom:()=>l.height(),documentElementOffset:()=>document.documentElement.offsetHeight,documentElementScroll:()=>document.documentElement.scrollHeight,documentElementBoundingClientRect:()=>document.documentElement.getBoundingClientRect().bottom,max:()=>Math.max(...Qe(_e)),min:()=>Math.min(...Qe(_e)),grow:()=>_e.max(),lowestElement:()=>Ze(i),taggedElement:()=>Ze(i)},et={enabled:()=>L,getOffset:()=>C,auto:()=>Ke(et),bodyScroll:()=>document.body.scrollWidth,bodyOffset:()=>document.body.offsetWidth,custom:()=>l.width(),documentElementScroll:()=>document.documentElement.scrollWidth,documentElementOffset:()=>document.documentElement.offsetWidth,documentElementBoundingClientRect:()=>document.documentElement.getBoundingClientRect().right,max:()=>Math.max(...Qe(et)),min:()=>Math.min(...Qe(et)),rightMostElement:()=>Ze(r),scroll:()=>Math.max(et.bodyScroll(),et.documentElementScroll()),taggedElement:()=>Ze(r)};function tt(e,t,n,o,i){let r,a;!function(){const e=(e,t)=>!(Math.abs(e-t)<=ie);return r=void 0===n?_e[F]():n,a=void 0===o?et[se]():o,x&&e(W,r)||L&&e(le,a)}()&&"init"!==e?!(e in{init:1,size:1})&&(x&&F in P||L&&se in P)&&rt(t):(ot(),W=r,le=a,at(W,le,e,i))}function nt(e,t,n,o,i){document.hidden?ze("Page hidden - Ignored resize request"):(e in $||ze(`Trigger event: ${t}`),tt(e,t,n,o,i))}function ot(){re||(re=!0,ze("Trigger event lock on"),requestAnimationFrame((()=>{re=!1,ze("Trigger event lock off"),ze("--")})))}function it(e){W=_e[F](),le=et[se](),at(W,le,e)}function rt(e){const t=F;F=w,ze(`Reset trigger event: ${e}`),ot(),it("reset"),F=t}function at(e,t,n,o,i){Q<-1||(void 0!==i?ze(`Message targetOrigin: ${i}`):i=oe,function(){const r=`${Y}:${e+(T||0)}:${t+(C||0)}:${n}${void 0===o?"":`:${o}`}`;ze(`Sending message to host page (${r}) via ${ee?"sameDomain":"postMessage"}`),ee?window.parent.iframeParentListener(S+r):ne.postMessage(S+r,i)}())}function lt(e){const t={init:function(){U=e.data,ne=e.source,Pe(),q=!1,setTimeout((()=>{D=!1}),v)},reset(){D?ze("Page reset ignored by init"):(ze("Page size reset by host page"),it("resetPage"))},resize(){nt("resizeParent","Parent window requested size check")},moveToAnchor(){V.findTarget(o())},inPageLink(){this.moveToAnchor()},pageInfo(){const e=o();ze(`PageInfo received from parent: ${e}`),me?me(JSON.parse(e)):at(0,0,"pageInfoStop"),ze(" --")},parentInfo(){const e=o();ze(`ParentInfo received from parent: ${e}`),fe?fe(Object.freeze(JSON.parse(e))):at(0,0,"parentInfoStop"),ze(" --")},message(){const e=o();ze(`onMessage called from parent: ${e}`),de(JSON.parse(e)),ze(" --")}},n=()=>e.data.split("]")[1].split(":")[0],o=()=>e.data.slice(e.data.indexOf(":")+1),i=()=>"iframeResize"in window||void 0!==window.jQuery&&""in window.jQuery.prototype,r=()=>e.data.split(":")[2]in{true:1,false:1};S===`${e.data}`.slice(0,j)&&(!1!==q?r()?t.init():ze(`Ignored message of type "${n()}". Received before initialization.`):function(){const o=n();o in t?t[o]():i()||r()||$e(`Unexpected message (${e.data})`)}())}function st(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}window.iframeChildListener=e=>lt({data:e,sameDomain:!0}),a(window,"message",lt),a(window,"readystatechange",st),st()}();
"use strict";const e="5.2.0-beta.5",t=10,n="data-iframe-size",o="data-iframe-overflow",i="bottom",r="right",a=(e,t,n,o)=>e.addEventListener(t,n,o||!1),l=["<iy><yi>Puchspk Spjluzl Rlf</><iy><iy>","<iy><yi>Tpzzpun Spjluzl Rlf</><iy><iy>","Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.<iy><iy><i>Jvttlyjphs Spjluzl</><iy>Mvy jvttlyjphs bzl, <p>pmyhtl-ylzpgly</> ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>.<iy><iy><i>Vwlu Zvbyjl Spjluzl</><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-jvttlyjphs vwlu zvbyjl wyvqlja aolu fvb jhu bzl pa mvy myll bukly aol alytz vm aol NWS C3 Spjluzl. Av jvumpyt fvb hjjlwa aolzl alytz, wslhzl zla aol <i>spjluzl</> rlf pu <p>pmyhtl-ylzpgly</> vwapvuz av <i>NWSc3</>.<iy><iy>Mvy tvyl pumvythapvu wslhzl zll: <b>oaawz://pmyhtl-ylzpgly.jvt/nws</>","<i>NWSc3 Spjluzl Clyzpvu</><iy><iy>Aopz clyzpvu vm <p>pmyhtl-ylzpgly</> pz ilpun bzlk bukly aol alytz vm aol <i>NWS C3</> spjluzl. Aopz spjluzl hssvdz fvb av bzl <p>pmyhtl-ylzpgly</> pu Vwlu Zvbyjl wyvqljaz, iba pa ylxbpylz fvby wyvqlja av il wbispj, wyvcpkl haaypibapvu huk il spjluzlk bukly clyzpvu 3 vy shaly vm aol NUB Nlulyhs Wbispj Spjluzl.<iy><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-vwlu zvbyjl wyvqlja vy dlizpal, fvb dpss ullk av wbyjohzl h svd jvza vul aptl jvttlyjphs spjluzl.<iy><iy>Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>."];Object.fromEntries(["2cgs7fdf4xb","1c9ctcccr4z","1q2pc4eebgb","ueokt0969w","w2zxchhgqz","1umuxblj2e5"].map(((e,t)=>[e,Math.max(0,t-1)])));const s=e=>(e=>e.replaceAll(/[A-Za-z]/g,(e=>String.fromCodePoint((e<="Z"?90:122)>=(e=e.codePointAt(0)+19)?e:e-26))))(l[e]),c=e=>{let t=!1;return function(){return t?void 0:(t=!0,Reflect.apply(e,this,arguments))}},d=e=>e;let u=[];const m=e=>{const t=e.side||i,n=e.onChange||d,r={root:document.documentElement,rootMargin:"0px",threshold:1},a=new WeakSet,l=new IntersectionObserver((e=>{e.forEach((e=>{e.target.toggleAttribute(o,(e=>0===e.boundingClientRect[t]||e.boundingClientRect[t]>e.rootBounds[t])(e))})),u=document.querySelectorAll(`[${o}]`),n()}),r);return e=>e.forEach((e=>{a.has(e)||(l.observe(e),a.add(e))}))},f=()=>u.length>0;"undefined"!=typeof window&&function(){const o={contentVisibilityAuto:!0,opacityProperty:!0,visibilityProperty:!0},l={height:()=>(be("Custom height calculation function not defined"),Ye.auto()),width:()=>(be("Custom width calculation function not defined"),Ge.auto())},p={bodyOffset:1,bodyScroll:1,offset:1,documentElementOffset:1,documentElementScroll:1,documentElementBoundingClientRect:1,max:1,min:1,grow:1,lowestElement:1},h=128,g={},y="checkVisibility"in window,v="auto",b={reset:1,resetPage:1,init:1},z="[iFrameSizer]",w=z.length,$={max:1,min:1,bodyScroll:1,documentElementScroll:1},S=["body"],j="scroll";let P,E,M=!0,T="",C=0,A="",O=null,I="",R=!0,k=!1,N=null,x=!0,L=!1,B=1,q=v,H=!0,W="",F={},D=!0,U=!1,V=0,J=!1,Z="",Q=d,X="child",Y=null,G=!1,K="",_=window.parent,ee="*",te=0,ne=!1,oe="",ie=1,re=j,ae=window,le=()=>{be("onMessage function not defined")},se=()=>{},ce=null,de=null;const ue=e=>e.charAt(0).toUpperCase()+e.slice(1),me=e=>""!=`${e}`&&void 0!==e,fe=new WeakSet,pe=e=>"object"==typeof e&&fe.add(e);function he(e){switch(!0){case!me(e):return"";case me(e.id):return`${e.nodeName.toUpperCase()}#${e.id}`;case me(e.name):return`${e.nodeName.toUpperCase()} (${e.name})`;default:return e.nodeName.toUpperCase()+(me(e.className)?`.${e.className}`:"")}}const ge=(...e)=>[`[iframe-resizer][${Z}]`,...e].join(" "),ye=(...e)=>U&&console?.log(ge(...e)),ve=(...e)=>console?.info(`[iframe-resizer][${Z}]`,...e),be=(...e)=>console?.warn(ge(...e)),ze=(...e)=>console?.warn((e=>t=>window.chrome?e(t.replaceAll("<br>","\n").replaceAll("<rb>","").replaceAll("</>","").replaceAll("<b>","").replaceAll("<i>","").replaceAll("<u>","")):e(t.replaceAll("<br>","\n").replaceAll(/<[/a-z]+>/gi,"")))(ge)(...e)),we=e=>ze(e);function $e(){var o,d;!function(){const e=e=>"true"===e,t=W.slice(w).split(":");Z=t[0],C=void 0===t[1]?C:Number(t[1]),k=void 0===t[2]?k:e(t[2]),U=void 0===t[3]?U:e(t[3]),M=void 0===t[6]?M:e(t[6]),A=t[7],q=void 0===t[8]?q:t[8],T=t[9],I=t[10],te=void 0===t[11]?te:Number(t[11]),F.enable=void 0!==t[12]&&e(t[12]),X=void 0===t[13]?X:t[13],re=void 0===t[14]?re:t[14],J=void 0===t[15]?J:e(t[15]),P=void 0===t[16]?P:Number(t[16]),E=void 0===t[17]?E:Number(t[17]),R=void 0===t[18]?R:e(t[18]),t[19],oe=t[20]||oe,V=void 0===t[21]?V:Number(t[21])}(),function(){function e(){const e=window.iframeResizer||window.iFrameResizer;ye(`Reading data from page: ${JSON.stringify(e)}`),le=e?.onMessage||le,se=e?.onReady||se,"number"==typeof e?.offset&&(ze("<rb>Deprecated option</>\n\n The <b>offset</> option has been renamed to <b>offsetSize</>. Use of the old name will be removed in a future version of <i>iframe-resizer</>."),R&&(P=e?.offset),k&&(E=e?.offset)),"number"==typeof e?.offsetSize&&(R&&(P=e?.offsetSize),k&&(E=e?.offsetSize)),Object.prototype.hasOwnProperty.call(e,"sizeSelector")&&(K=e.sizeSelector),ee=e?.targetOrigin||ee,q=e?.heightCalculationMethod||q,re=e?.widthCalculationMethod||re}function t(e,t){return"function"==typeof e&&(ye(`Setup custom ${t}CalcMethod`),l[t]=e,e="custom"),e}1!==V&&("iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),q=t(q,"height"),re=t(re,"width")),ye(`TargetOrigin for parent set to: ${ee}`))}(),ye(`Initialising iFrame v${e} (${window.location.href})`),function(){try{G="iframeParentListener"in window.parent}catch(e){ye("Cross domain iframe detected.")}}(),V<0?we(`${s(V+2)}${s(2)}`):oe.codePointAt(0)>4||V<2&&we(s(3)),oe&&""!==oe&&"false"!==oe?oe!==e&&ze(`<rb>Version mismatch</>\n\nThe parent and child pages are running different versions of <i>iframe resizer</>.\n\nParent page: ${oe} - Child page: ${e}.\n`):ze("<rb>Legacy version detected on parent page</>\n\nDetected legacy version of parent page script. It is recommended to update the parent page to use <b>@iframe-resizer/parent</>.\n\nSee <u>https://iframe-resizer.com/setup/</> for more details.\n"),Ae(),Oe(),function(){let e=!1;const t=t=>document.querySelectorAll(`[${t}]`).forEach((o=>{e=!0,o.removeAttribute(t),o.toggleAttribute(n,!0)}));t("data-iframe-height"),t("data-iframe-width"),e&&ze("<rb>Deprecated Attributes</>\n \nThe <b>data-iframe-height</> and <b>data-iframe-width</> attributes have been deprecated and replaced with the single <b>data-iframe-size</> attribute. Use of the old attributes will be removed in a future version of <i>iframe-resizer</>.")}(),R!==k&&(Q=m({onChange:c(Se),side:R?i:r})),je(),1!==V&&(ae.parentIframe=Object.freeze({autoResize:e=>(!0===e&&!1===M?(M=!0,Ie()):!1===e&&!0===M&&(M=!1,Te("remove"),Y?.disconnect(),O?.disconnect()),ot(0,0,"autoResize",JSON.stringify(M)),M),close(){ot(0,0,"close")},getId:()=>Z,getPageInfo(e){if("function"==typeof e)return ce=e,ot(0,0,"pageInfo"),void ze("<rb>Deprecated Method</>\n \nThe <b>getPageInfo()</> method has been deprecated and replaced with <b>getParentProps()</>. Use of this method will be removed in a future version of <i>iframe-resizer</>.\n");ce=null,ot(0,0,"pageInfoStop")},getParentProps(e){if("function"!=typeof e)throw new TypeError("parentIFrame.getParentProps(callback) callback not a function");return de=e,ot(0,0,"parentInfo"),()=>{de=null,ot(0,0,"parentInfoStop")}},getParentProperties(e){ze("<rb>Renamed Method</>\n \nThe <b>getParentProperties()</> method has been renamed <b>getParentProps()</>. Use of the old name will be removed in a future version of <i>iframe-resizer</>.\n"),this.getParentProps(e)},moveToAnchor(e){F.findTarget(e)},reset(){nt("parentIFrame.reset")},scrollBy(e,t){ot(t,e,"scrollBy")},scrollTo(e,t){ot(t,e,"scrollTo")},scrollToOffset(e,t){ot(t,e,"scrollToOffset")},sendMessage(e,t){ot(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod(e){q=e,Ae()},setWidthCalculationMethod(e){re=e,Oe()},setTargetOrigin(e){ye(`Set targetOrigin: ${e}`),ee=e},resize(e,t){_e("size",`parentIFrame.size(${e||""}${t?`,${t}`:""})`,e,t)},size(e,t){ze("<rb>Deprecated Method</>\n \nThe <b>size()</> method has been deprecated and replaced with <b>resize()</>. Use of this method will be removed in a future version of <i>iframe-resizer</>.\n"),this.resize(e,t)}}),ae.parentIFrame=ae.parentIframe),function(){function e(e){ot(0,0,e.type,`${e.screenY}:${e.screenX}`)}function t(t,n){ye(`Add event listener: ${n}`),a(window.document,t,e)}!0===J&&(t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave"))}(),F=function(){const e=()=>({x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop});function n(n){const o=n.getBoundingClientRect(),i=e();return{x:parseInt(o.left,t)+parseInt(i.x,t),y:parseInt(o.top,t)+parseInt(i.y,t)}}function o(e){function t(e){const t=n(e);ye(`Moving to in page link (#${o}) at x: ${t.x}y: ${t.y}`),ot(t.y,t.x,"scrollToOffset")}const o=e.split("#")[1]||e,i=decodeURIComponent(o),r=document.getElementById(i)||document.getElementsByName(i)[0];void 0===r?(ye(`In page link (#${o}) not found in iFrame, so sending to parent`),ot(0,0,"inPageLink",`#${o}`)):t(r)}function i(){const{hash:e,href:t}=window.location;""!==e&&"#"!==e&&o(t)}function r(){function e(e){function t(e){e.preventDefault(),o(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&a(e,"click",t)}document.querySelectorAll('a[href^="#"]').forEach(e)}function l(){a(window,"hashchange",i)}function s(){setTimeout(i,h)}function c(){ye("Setting up location.hash handlers"),r(),l(),s()}return F.enable?1===V?ze("In page linking requires a Professional or Business license. Please see https://iframe-resizer.com/pricing for more details."):c():ye("In page linking not enabled"),{findTarget:o}}(),pe(document.documentElement),pe(document.body),void 0===A&&(A=`${C}px`),Pe("margin",(o="margin",(d=A).includes("-")&&(be(`Negative CSS value ignored for ${o}`),d=""),d)),Pe("background",T),Pe("padding",I),function(){const e=document.createElement("div");e.style.clear="both",e.style.display="block",e.style.height="0",document.body.append(e)}(),function(){const e=e=>e.style.setProperty("height","auto","important");e(document.documentElement),e(document.body),ye('HTML & body height set to "auto !important"')}(),Ee()}const Se=()=>{_e("init","Init message from host page",void 0,void 0,e),document.title&&""!==document.title&&ot(0,0,"title",document.title),Ie(),se(),D=!1,ye("Initialization complete"),ye("---")};function je(){const e=document.querySelectorAll(`[${n}]`);L=e.length>0,ye(`Tagged elements found: ${L}`),N=L?e:Je(document)(),L?setTimeout(Se):Q(N)}function Pe(e,t){void 0!==t&&""!==t&&"null"!==t&&(document.body.style.setProperty(e,t),ye(`Body ${e} set to "${t}"`))}function Ee(){""!==K&&(ye(`Applying sizeSelector: ${K}`),document.querySelectorAll(K).forEach((e=>{ye(`Applying data-iframe-size to: ${he(e)}`),e.dataset.iframeSize=!0})))}function Me(e){({add(t){function n(){_e(e.eventName,e.eventType)}g[t]=n,a(window,t,n,{passive:!0})},remove(e){const t=g[e];var n,o;delete g[e],n=e,o=t,window.removeEventListener(n,o,!1)}})[e.method](e.eventName),ye(`${ue(e.method)} event listener: ${e.eventType}`)}function Te(e){Me({method:e,eventType:"After Print",eventName:"afterprint"}),Me({method:e,eventType:"Before Print",eventName:"beforeprint"}),Me({method:e,eventType:"Ready State Change",eventName:"readystatechange"})}function Ce(e,t,n,o){return t!==e&&(e in n||(be(`${e} is not a valid option for ${o}CalculationMethod.`),e=t),e in p&&ze(`<rb>Deprecated ${o}CalculationMethod (${e})</>\n\nThis version of <i>iframe-resizer</> can auto detect the most suitable ${o} calculation method. It is recommended that you remove this option.`),ye(`${o} calculation method set to "${e}"`)),e}function Ae(){q=Ce(q,v,Ye,"height")}function Oe(){re=Ce(re,j,Ge,"width")}function Ie(){!0===M?(Te("add"),O=function(){function e(e){e.forEach(He),Ee(),je()}function t(){const t=new window.MutationObserver(e),n=document.querySelector("body"),o={attributes:!1,attributeOldValue:!1,characterData:!1,characterDataOldValue:!1,childList:!0,subtree:!0};return ye("Create <body/> MutationObserver"),t.observe(n,o),t}const n=t();return{disconnect(){ye("Disconnect MutationObserver"),n.disconnect()}}}(),Y=new ResizeObserver(ke),qe(window.document)):ye("Auto Resize disabled")}let Re;function ke(e){if(!Array.isArray(e)||0===e.length)return;const t=e[0].target;Re=()=>_e("resizeObserver",`Resize Observed: ${he(t)}`),setTimeout((()=>{Re&&Re(),Re=void 0}),0)}const Ne=e=>{const t=getComputedStyle(e);return""!==t?.position&&"static"!==t?.position},xe=()=>[...Je(document)()].filter(Ne),Le=new WeakSet;function Be(e){e&&(Le.has(e)||(Y.observe(e),Le.add(e),ye(`Attached resizeObserver: ${he(e)}`)))}function qe(e){[...xe(),...S.flatMap((t=>e.querySelector(t)))].forEach(Be)}function He(e){"childList"===e.type&&qe(e.target)}let We=null,Fe=4,De=4;function Ue(e){const t=ue(e);let n=0,i=document.documentElement,r=L?0:document.documentElement.getBoundingClientRect().bottom,a=performance.now();const l=!L&&f()?u:N;let s=l.length;l.forEach((t=>{L||!y||t.checkVisibility(o)?(n=t.getBoundingClientRect()[e]+parseFloat(getComputedStyle(t).getPropertyValue(`margin-${e}`)),n>r&&(r=n,i=t)):s-=1})),a=(performance.now()-a).toPrecision(1),function(e,t,n,o){fe.has(e)||We===e||L&&o<=1||(We=e,ve(`\n${t} position calculated from:\n`,e,`\nParsed ${o} ${L?"tagged":"potentially overflowing"} elements in ${n}ms`))}(i,t,a,s);const c=`\nParsed ${s} element${1===s?"":"s"} in ${a}ms\n${t} ${L?"tagged ":""}element found at: ${r}px\nPosition calculated from HTML element: ${he(i)} (${function(e,t=30){const n=e?.outerHTML?.toString();return n?n.length<t?n:`${n.slice(0,t).replaceAll("\n"," ")}...`:e}(i,100)})`;return a<4||s<99||L||D?ye(c):Fe<a&&Fe<De&&(Fe=1.2*a,ze(`<rb>Performance Warning</>\n\nCalculating the page size took an excessive amount of time. To improve performance add the <b>data-iframe-size</> attribute to the ${e} most element on the page.\n${c}`)),De=a,r}const Ve=e=>[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll(),e.documentElementBoundingClientRect()],Je=e=>()=>e.querySelectorAll("* :not(head):not(meta):not(base):not(title):not(script):not(link):not(style):not(map):not(area):not(option):not(optgroup):not(template):not(track):not(wbr):not(nobr)"),Ze={height:0,width:0},Qe={height:0,width:0};function Xe(e){function t(){return Qe[i]=r,Ze[i]=s,r}const n=f(),o=e===Ye,i=o?"height":"width",r=e.documentElementBoundingClientRect(),a=Math.ceil(r),l=Math.floor(r),s=(e=>e.documentElementScroll()+Math.max(0,e.getOffset()))(e),c=`HTML: ${r} Page: ${s}`;switch(!0){case!e.enabled():return s;case L:return e.taggedElement();case!n&&0===Qe[i]&&0===Ze[i]:return ye(`Initial page size values: ${c}`),t();case ne&&r===Qe[i]&&s===Ze[i]:return ye(`Size unchanged: ${c}`),Math.max(r,s);case 0===r:return ye(`Page is hidden: ${c}`),s;case!n&&r!==Qe[i]&&s<=Ze[i]:return ye(`New HTML bounding size: ${c}`,"Previous bounding size:",Qe[i]),t();case!o:return e.taggedElement();case!n&&r<Qe[i]:return ye("HTML bounding size decreased:",c),t();case s===l||s===a:return ye("HTML bounding size equals page size:",c),t();case r>s:return ye(`Page size < HTML bounding size: ${c}`),t();default:ye(`Content overflowing HTML element: ${c}`)}return Math.max(e.taggedElement(),t())}const Ye={enabled:()=>R,getOffset:()=>P,auto:()=>Xe(Ye),bodyOffset:()=>{const{body:e}=document,n=getComputedStyle(e);return e.offsetHeight+parseInt(n.marginTop,t)+parseInt(n.marginBottom,t)},bodyScroll:()=>document.body.scrollHeight,offset:()=>Ye.bodyOffset(),custom:()=>l.height(),documentElementOffset:()=>document.documentElement.offsetHeight,documentElementScroll:()=>document.documentElement.scrollHeight,documentElementBoundingClientRect:()=>document.documentElement.getBoundingClientRect().bottom,max:()=>Math.max(...Ve(Ye)),min:()=>Math.min(...Ve(Ye)),grow:()=>Ye.max(),lowestElement:()=>Ue(i),taggedElement:()=>Ue(i)},Ge={enabled:()=>k,getOffset:()=>E,auto:()=>Xe(Ge),bodyScroll:()=>document.body.scrollWidth,bodyOffset:()=>document.body.offsetWidth,custom:()=>l.width(),documentElementScroll:()=>document.documentElement.scrollWidth,documentElementOffset:()=>document.documentElement.offsetWidth,documentElementBoundingClientRect:()=>document.documentElement.getBoundingClientRect().right,max:()=>Math.max(...Ve(Ge)),min:()=>Math.min(...Ve(Ge)),rightMostElement:()=>Ue(r),scroll:()=>Math.max(Ge.bodyScroll(),Ge.documentElementScroll()),taggedElement:()=>Ue(r)};function Ke(e,t,n,o,i){let r,a;!function(){const e=(e,t)=>!(Math.abs(e-t)<=te);return r=void 0===n?Ye[q]():n,a=void 0===o?Ge[re]():o,R&&e(B,r)||k&&e(ie,a)}()&&"init"!==e?!(e in{init:1,size:1})&&(R&&q in $||k&&re in $)&&nt(t):(et(),B=r,ie=a,ot(B,ie,e,i))}function _e(e,t,n,o,i){document.hidden?ye("Page hidden - Ignored resize request"):(e in b||ye(`Trigger event: ${t}`),Ke(e,t,n,o,i))}function et(){ne||(ne=!0,ye("Trigger event lock on"),requestAnimationFrame((()=>{ne=!1,ye("Trigger event lock off"),ye("--")})))}function tt(e){B=Ye[q](),ie=Ge[re](),ot(B,ie,e)}function nt(e){const t=q;q=v,ye(`Reset trigger event: ${e}`),et(),tt("reset"),q=t}function ot(e,t,n,o,i){V<-1||(void 0!==i?ye(`Message targetOrigin: ${i}`):i=ee,function(){const r=`${Z}:${e+(P||0)}:${t+(E||0)}:${n}${void 0===o?"":`:${o}`}`;ye(`Sending message to host page (${r}) via ${G?"sameDomain":"postMessage"}`),G?window.parent.iframeParentListener(z+r):_.postMessage(z+r,i)}())}function it(e){const t={init:function(){W=e.data,_=e.source,$e(),x=!1,setTimeout((()=>{H=!1}),h)},reset(){H?ye("Page reset ignored by init"):(ye("Page size reset by host page"),tt("resetPage"))},resize(){_e("resizeParent","Parent window requested size check")},moveToAnchor(){F.findTarget(o())},inPageLink(){this.moveToAnchor()},pageInfo(){const e=o();ye(`PageInfo received from parent: ${e}`),ce?ce(JSON.parse(e)):ot(0,0,"pageInfoStop"),ye(" --")},parentInfo(){const e=o();ye(`ParentInfo received from parent: ${e}`),de?de(Object.freeze(JSON.parse(e))):ot(0,0,"parentInfoStop"),ye(" --")},message(){const e=o();ye(`onMessage called from parent: ${e}`),le(JSON.parse(e)),ye(" --")}},n=()=>e.data.split("]")[1].split(":")[0],o=()=>e.data.slice(e.data.indexOf(":")+1),i=()=>"iframeResize"in window||void 0!==window.jQuery&&""in window.jQuery.prototype,r=()=>e.data.split(":")[2]in{true:1,false:1};z===`${e.data}`.slice(0,w)&&(!1!==x?r()?t.init():ye(`Ignored message of type "${n()}". Received before initialization.`):function(){const o=n();o in t?t[o]():i()||r()||be(`Unexpected message (${e.data})`)}())}function rt(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}window.iframeChildListener=e=>it({data:e,sameDomain:!0}),a(window,"message",it),a(window,"readystatechange",rt),rt()}();
//# sourceMappingURL=index.cjs.js.map
/*!
* @preserve
*
* @module iframe-resizer/child 5.2.0-beta.4 (esm) - 2024-07-11
* @module iframe-resizer/child 5.2.0-beta.5 (esm) - 2024-07-11
*

@@ -20,3 +20,3 @@ * @license GPL-3.0 for non-commercial use only.

const e="5.2.0-beta.4",t=10,n="data-iframe-size",o="data-iframe-overflow",i="bottom",a="right",r=(e,t,n,o)=>e.addEventListener(t,n,o||!1),l=["<iy><yi>Puchspk Spjluzl Rlf</><iy><iy>","<iy><yi>Tpzzpun Spjluzl Rlf</><iy><iy>","Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.<iy><iy><i>Jvttlyjphs Spjluzl</><iy>Mvy jvttlyjphs bzl, <p>pmyhtl-ylzpgly</> ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>.<iy><iy><i>Vwlu Zvbyjl Spjluzl</><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-jvttlyjphs vwlu zvbyjl wyvqlja aolu fvb jhu bzl pa mvy myll bukly aol alytz vm aol NWS C3 Spjluzl. Av jvumpyt fvb hjjlwa aolzl alytz, wslhzl zla aol <i>spjluzl</> rlf pu <p>pmyhtl-ylzpgly</> vwapvuz av <i>NWSc3</>.<iy><iy>Mvy tvyl pumvythapvu wslhzl zll: <b>oaawz://pmyhtl-ylzpgly.jvt/nws</>","<i>NWSc3 Spjluzl Clyzpvu</><iy><iy>Aopz clyzpvu vm <p>pmyhtl-ylzpgly</> pz ilpun bzlk bukly aol alytz vm aol <i>NWS C3</> spjluzl. Aopz spjluzl hssvdz fvb av bzl <p>pmyhtl-ylzpgly</> pu Vwlu Zvbyjl wyvqljaz, iba pa ylxbpylz fvby wyvqlja av il wbispj, wyvcpkl haaypibapvu huk il spjluzlk bukly clyzpvu 3 vy shaly vm aol NUB Nlulyhs Wbispj Spjluzl.<iy><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-vwlu zvbyjl wyvqlja vy dlizpal, fvb dpss ullk av wbyjohzl h svd jvza vul aptl jvttlyjphs spjluzl.<iy><iy>Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>."];Object.fromEntries(["2cgs7fdf4xb","1c9ctcccr4z","1q2pc4eebgb","ueokt0969w","w2zxchhgqz","1umuxblj2e5"].map(((e,t)=>[e,Math.max(0,t-1)])));const s=e=>(e=>e.replaceAll(/[A-Za-z]/g,(e=>String.fromCodePoint((e<="Z"?90:122)>=(e=e.codePointAt(0)+19)?e:e-26))))(l[e]),c=e=>{let t=!1;return function(){return t?void 0:(t=!0,Reflect.apply(e,this,arguments))}},d=e=>e;let u=i,m=d;const f={root:document.documentElement,rootMargin:"0px",threshold:1};let p=[];const h=new WeakSet,g=new IntersectionObserver((e=>{e.forEach((e=>{e.target.toggleAttribute(o,(e=>0===e.boundingClientRect[u]||e.boundingClientRect[u]>e.rootBounds[u])(e))})),p=document.querySelectorAll(`[${o}]`),m()}),f),y=()=>p.length>0;"undefined"!=typeof window&&function(){const o={contentVisibilityAuto:!0,opacityProperty:!0,visibilityProperty:!0},l={height:()=>($e("Custom height calculation function not defined"),_e.auto()),width:()=>($e("Custom width calculation function not defined"),et.auto())},f={bodyOffset:1,bodyScroll:1,offset:1,documentElementOffset:1,documentElementScroll:1,documentElementBoundingClientRect:1,max:1,min:1,grow:1,lowestElement:1},v=128,b={},z="checkVisibility"in window,w="auto",$={reset:1,resetPage:1,init:1},S="[iFrameSizer]",j=S.length,P={max:1,min:1,bodyScroll:1,documentElementScroll:1},E=["body"],M="scroll";let T,C,A=!0,O="",I=0,R="",k=null,N="",x=!0,L=!1,B=null,q=!0,H=!1,W=1,F=w,D=!0,U="",V={},J=!0,Z=!1,Q=0,X=!1,Y="",G=d,K="child",_=null,ee=!1,te="",ne=window.parent,oe="*",ie=0,ae=!1,re="",le=1,se=M,ce=window,de=()=>{$e("onMessage function not defined")},ue=()=>{},me=null,fe=null;const pe=e=>e.charAt(0).toUpperCase()+e.slice(1),he=e=>""!=`${e}`&&void 0!==e,ge=new WeakSet,ye=e=>"object"==typeof e&&ge.add(e);function ve(e){switch(!0){case!he(e):return"";case he(e.id):return`${e.nodeName.toUpperCase()}#${e.id}`;case he(e.name):return`${e.nodeName.toUpperCase()} (${e.name})`;default:return e.nodeName.toUpperCase()+(he(e.className)?`.${e.className}`:"")}}const be=(...e)=>[`[iframe-resizer][${Y}]`,...e].join(" "),ze=(...e)=>Z&&console?.log(be(...e)),we=(...e)=>console?.info(`[iframe-resizer][${Y}]`,...e),$e=(...e)=>console?.warn(be(...e)),Se=(...e)=>console?.warn((e=>t=>window.chrome?e(t.replaceAll("<br>","\n").replaceAll("<rb>","").replaceAll("</>","").replaceAll("<b>","").replaceAll("<i>","").replaceAll("<u>","")):e(t.replaceAll("<br>","\n").replaceAll(/<[/a-z]+>/gi,"")))(be)(...e)),je=e=>Se(e);function Pe(){var o,d;!function(){const e=e=>"true"===e,t=U.slice(j).split(":");Y=t[0],I=void 0===t[1]?I:Number(t[1]),L=void 0===t[2]?L:e(t[2]),Z=void 0===t[3]?Z:e(t[3]),A=void 0===t[6]?A:e(t[6]),R=t[7],F=void 0===t[8]?F:t[8],O=t[9],N=t[10],ie=void 0===t[11]?ie:Number(t[11]),V.enable=void 0!==t[12]&&e(t[12]),K=void 0===t[13]?K:t[13],se=void 0===t[14]?se:t[14],X=void 0===t[15]?X:e(t[15]),T=void 0===t[16]?T:Number(t[16]),C=void 0===t[17]?C:Number(t[17]),x=void 0===t[18]?x:e(t[18]),t[19],re=t[20]||re,Q=void 0===t[21]?Q:Number(t[21])}(),function(){function e(){const e=window.iframeResizer||window.iFrameResizer;ze(`Reading data from page: ${JSON.stringify(e)}`),de=e?.onMessage||de,ue=e?.onReady||ue,"number"==typeof e?.offset&&(Se("<rb>Deprecated option</>\n\n The <b>offset</> option has been renamed to <b>offsetSize</>. Use of the old name will be removed in a future version of <i>iframe-resizer</>."),x&&(T=e?.offset),L&&(C=e?.offset)),"number"==typeof e?.offsetSize&&(x&&(T=e?.offsetSize),L&&(C=e?.offsetSize)),Object.prototype.hasOwnProperty.call(e,"sizeSelector")&&(te=e.sizeSelector),oe=e?.targetOrigin||oe,F=e?.heightCalculationMethod||F,se=e?.widthCalculationMethod||se}function t(e,t){return"function"==typeof e&&(ze(`Setup custom ${t}CalcMethod`),l[t]=e,e="custom"),e}1!==Q&&("iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),F=t(F,"height"),se=t(se,"width")),ze(`TargetOrigin for parent set to: ${oe}`))}(),ze(`Initialising iFrame v${e} (${window.location.href})`),function(){try{ee="iframeParentListener"in window.parent}catch(e){ze("Cross domain iframe detected.")}}(),Q<0?je(`${s(Q+2)}${s(2)}`):re.codePointAt(0)>4||Q<2&&je(s(3)),re&&""!==re&&"false"!==re?re!==e&&Se(`<rb>Version mismatch</>\n\nThe parent and child pages are running different versions of <i>iframe resizer</>.\n\nParent page: ${re} - Child page: ${e}.\n`):Se("<rb>Legacy version detected on parent page</>\n\nDetected legacy version of parent page script. It is recommended to update the parent page to use <b>@iframe-resizer/parent</>.\n\nSee <u>https://iframe-resizer.com/setup/</> for more details.\n"),Re(),ke(),function(){let e=!1;const t=t=>document.querySelectorAll(`[${t}]`).forEach((o=>{e=!0,o.removeAttribute(t),o.toggleAttribute(n,!0)}));t("data-iframe-height"),t("data-iframe-width"),e&&Se("<rb>Deprecated Attributes</>\n \nThe <b>data-iframe-height</> and <b>data-iframe-width</> attributes have been deprecated and replaced with the single <b>data-iframe-size</> attribute. Use of the old attributes will be removed in a future version of <i>iframe-resizer</>.")}(),x!==L&&(G=(e=>(u=e.side,m=e.onChange,e=>e.forEach((e=>{h.has(e)||(g.observe(e),h.add(e))}))))({onChange:c(Ee),side:x?i:a})),Me(),1!==Q&&(ce.parentIframe=Object.freeze({autoResize:e=>(!0===e&&!1===A?(A=!0,Ne()):!1===e&&!0===A&&(A=!1,Oe("remove"),_?.disconnect(),k?.disconnect()),rt(0,0,"autoResize",JSON.stringify(A)),A),close(){rt(0,0,"close")},getId:()=>Y,getPageInfo(e){if("function"==typeof e)return me=e,rt(0,0,"pageInfo"),void Se("<rb>Deprecated Method</>\n \nThe <b>getPageInfo()</> method has been deprecated and replaced with <b>getParentProps()</>. Use of this method will be removed in a future version of <i>iframe-resizer</>.\n");me=null,rt(0,0,"pageInfoStop")},getParentProps(e){if("function"!=typeof e)throw new TypeError("parentIFrame.getParentProps(callback) callback not a function");return fe=e,rt(0,0,"parentInfo"),()=>{fe=null,rt(0,0,"parentInfoStop")}},getParentProperties(e){Se("<rb>Renamed Method</>\n \nThe <b>getParentProperties()</> method has been renamed <b>getParentProps()</>. Use of the old name will be removed in a future version of <i>iframe-resizer</>.\n"),this.getParentProps(e)},moveToAnchor(e){V.findTarget(e)},reset(){at("parentIFrame.reset")},scrollBy(e,t){rt(t,e,"scrollBy")},scrollTo(e,t){rt(t,e,"scrollTo")},scrollToOffset(e,t){rt(t,e,"scrollToOffset")},sendMessage(e,t){rt(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod(e){F=e,Re()},setWidthCalculationMethod(e){se=e,ke()},setTargetOrigin(e){ze(`Set targetOrigin: ${e}`),oe=e},resize(e,t){nt("size",`parentIFrame.size(${e||""}${t?`,${t}`:""})`,e,t)},size(e,t){Se("<rb>Deprecated Method</>\n \nThe <b>size()</> method has been deprecated and replaced with <b>resize()</>. Use of this method will be removed in a future version of <i>iframe-resizer</>.\n"),this.resize(e,t)}}),ce.parentIFrame=ce.parentIframe),function(){function e(e){rt(0,0,e.type,`${e.screenY}:${e.screenX}`)}function t(t,n){ze(`Add event listener: ${n}`),r(window.document,t,e)}!0===X&&(t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave"))}(),V=function(){const e=()=>({x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop});function n(n){const o=n.getBoundingClientRect(),i=e();return{x:parseInt(o.left,t)+parseInt(i.x,t),y:parseInt(o.top,t)+parseInt(i.y,t)}}function o(e){function t(e){const t=n(e);ze(`Moving to in page link (#${o}) at x: ${t.x}y: ${t.y}`),rt(t.y,t.x,"scrollToOffset")}const o=e.split("#")[1]||e,i=decodeURIComponent(o),a=document.getElementById(i)||document.getElementsByName(i)[0];void 0===a?(ze(`In page link (#${o}) not found in iFrame, so sending to parent`),rt(0,0,"inPageLink",`#${o}`)):t(a)}function i(){const{hash:e,href:t}=window.location;""!==e&&"#"!==e&&o(t)}function a(){function e(e){function t(e){e.preventDefault(),o(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&r(e,"click",t)}document.querySelectorAll('a[href^="#"]').forEach(e)}function l(){r(window,"hashchange",i)}function s(){setTimeout(i,v)}function c(){ze("Setting up location.hash handlers"),a(),l(),s()}return V.enable?1===Q?Se("In page linking requires a Professional or Business license. Please see https://iframe-resizer.com/pricing for more details."):c():ze("In page linking not enabled"),{findTarget:o}}(),ye(document.documentElement),ye(document.body),void 0===R&&(R=`${I}px`),Te("margin",(o="margin",(d=R).includes("-")&&($e(`Negative CSS value ignored for ${o}`),d=""),d)),Te("background",O),Te("padding",N),function(){const e=document.createElement("div");e.style.clear="both",e.style.display="block",e.style.height="0",document.body.append(e)}(),function(){const e=e=>e.style.setProperty("height","auto","important");e(document.documentElement),e(document.body),ze('HTML & body height set to "auto !important"')}(),Ce()}const Ee=()=>{nt("init","Init message from host page",void 0,void 0,e),document.title&&""!==document.title&&rt(0,0,"title",document.title),Ne(),ue(),J=!1,ze("Initialization complete"),ze("---")};function Me(){const e=document.querySelectorAll(`[${n}]`);H=e.length>0,ze(`Tagged elements found: ${H}`),B=H?e:Xe(document)(),H?setTimeout(Ee):G(B)}function Te(e,t){void 0!==t&&""!==t&&"null"!==t&&(document.body.style.setProperty(e,t),ze(`Body ${e} set to "${t}"`))}function Ce(){""!==te&&(ze(`Applying sizeSelector: ${te}`),document.querySelectorAll(te).forEach((e=>{ze(`Applying data-iframe-size to: ${ve(e)}`),e.dataset.iframeSize=!0})))}function Ae(e){({add(t){function n(){nt(e.eventName,e.eventType)}b[t]=n,r(window,t,n,{passive:!0})},remove(e){const t=b[e];var n,o;delete b[e],n=e,o=t,window.removeEventListener(n,o,!1)}})[e.method](e.eventName),ze(`${pe(e.method)} event listener: ${e.eventType}`)}function Oe(e){Ae({method:e,eventType:"After Print",eventName:"afterprint"}),Ae({method:e,eventType:"Before Print",eventName:"beforeprint"}),Ae({method:e,eventType:"Ready State Change",eventName:"readystatechange"})}function Ie(e,t,n,o){return t!==e&&(e in n||($e(`${e} is not a valid option for ${o}CalculationMethod.`),e=t),e in f&&Se(`<rb>Deprecated ${o}CalculationMethod (${e})</>\n\nThis version of <i>iframe-resizer</> can auto detect the most suitable ${o} calculation method. It is recommended that you remove this option.`),ze(`${o} calculation method set to "${e}"`)),e}function Re(){F=Ie(F,w,_e,"height")}function ke(){se=Ie(se,M,et,"width")}function Ne(){!0===A?(Oe("add"),k=function(){function e(e){e.forEach(De),Ce(),Me()}function t(){const t=new window.MutationObserver(e),n=document.querySelector("body"),o={attributes:!1,attributeOldValue:!1,characterData:!1,characterDataOldValue:!1,childList:!0,subtree:!0};return ze("Create <body/> MutationObserver"),t.observe(n,o),t}const n=t();return{disconnect(){ze("Disconnect MutationObserver"),n.disconnect()}}}(),_=new ResizeObserver(Le),Fe(window.document)):ze("Auto Resize disabled")}let xe;function Le(e){if(!Array.isArray(e)||0===e.length)return;const t=e[0].target;xe=()=>nt("resizeObserver",`Resize Observed: ${ve(t)}`),setTimeout((()=>{xe&&xe(),xe=void 0}),0)}const Be=e=>{const t=getComputedStyle(e);return""!==t?.position&&"static"!==t?.position},qe=()=>[...Xe(document)()].filter(Be),He=new WeakSet;function We(e){e&&(He.has(e)||(_.observe(e),He.add(e),ze(`Attached resizeObserver: ${ve(e)}`)))}function Fe(e){[...qe(),...E.flatMap((t=>e.querySelector(t)))].forEach(We)}function De(e){"childList"===e.type&&Fe(e.target)}let Ue=null,Ve=4,Je=4;function Ze(e){const t=pe(e);let n=0,i=document.documentElement,a=H?0:document.documentElement.getBoundingClientRect().bottom,r=performance.now();const l=!H&&y()?p:B;let s=l.length;l.forEach((t=>{H||!z||t.checkVisibility(o)?(n=t.getBoundingClientRect()[e]+parseFloat(getComputedStyle(t).getPropertyValue(`margin-${e}`)),n>a&&(a=n,i=t)):s-=1})),r=(performance.now()-r).toPrecision(1),function(e,t,n,o){ge.has(e)||Ue===e||H&&o<=1||(Ue=e,we(`\n${t} position calculated from:\n`,e,`\nParsed ${o} ${H?"tagged":"potentially overflowing"} elements in ${n}ms`))}(i,t,r,s);const c=`\nParsed ${s} element${1===s?"":"s"} in ${r}ms\n${t} ${H?"tagged ":""}element found at: ${a}px\nPosition calculated from HTML element: ${ve(i)} (${function(e,t=30){const n=e?.outerHTML?.toString();return n?n.length<t?n:`${n.slice(0,t).replaceAll("\n"," ")}...`:e}(i,100)})`;return r<4||s<99||H||J?ze(c):Ve<r&&Ve<Je&&(Ve=1.2*r,Se(`<rb>Performance Warning</>\n\nCalculating the page size took an excessive amount of time. To improve performance add the <b>data-iframe-size</> attribute to the ${e} most element on the page.\n${c}`)),Je=r,a}const Qe=e=>[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll(),e.documentElementBoundingClientRect()],Xe=e=>()=>e.querySelectorAll("* :not(head):not(meta):not(base):not(title):not(script):not(link):not(style):not(map):not(area):not(option):not(optgroup):not(template):not(track):not(wbr):not(nobr)"),Ye={height:0,width:0},Ge={height:0,width:0};function Ke(e){function t(){return Ge[i]=a,Ye[i]=s,a}const n=y(),o=e===_e,i=o?"height":"width",a=e.documentElementBoundingClientRect(),r=Math.ceil(a),l=Math.floor(a),s=(e=>e.documentElementScroll()+Math.max(0,e.getOffset()))(e),c=`HTML: ${a} Page: ${s}`;switch(!0){case!e.enabled():return s;case H:return e.taggedElement();case!n&&0===Ge[i]&&0===Ye[i]:return ze(`Initial page size values: ${c}`),t();case ae&&a===Ge[i]&&s===Ye[i]:return ze(`Size unchanged: ${c}`),Math.max(a,s);case 0===a:return ze(`Page is hidden: ${c}`),s;case!n&&a!==Ge[i]&&s<=Ye[i]:return ze(`New HTML bounding size: ${c}`,"Previous bounding size:",Ge[i]),t();case!o:return e.taggedElement();case!n&&a<Ge[i]:return ze("HTML bounding size decreased:",c),t();case s===l||s===r:return ze("HTML bounding size equals page size:",c),t();case a>s:return ze(`Page size < HTML bounding size: ${c}`),t();default:ze(`Content overflowing HTML element: ${c}`)}return Math.max(e.taggedElement(),t())}const _e={enabled:()=>x,getOffset:()=>T,auto:()=>Ke(_e),bodyOffset:()=>{const{body:e}=document,n=getComputedStyle(e);return e.offsetHeight+parseInt(n.marginTop,t)+parseInt(n.marginBottom,t)},bodyScroll:()=>document.body.scrollHeight,offset:()=>_e.bodyOffset(),custom:()=>l.height(),documentElementOffset:()=>document.documentElement.offsetHeight,documentElementScroll:()=>document.documentElement.scrollHeight,documentElementBoundingClientRect:()=>document.documentElement.getBoundingClientRect().bottom,max:()=>Math.max(...Qe(_e)),min:()=>Math.min(...Qe(_e)),grow:()=>_e.max(),lowestElement:()=>Ze(i),taggedElement:()=>Ze(i)},et={enabled:()=>L,getOffset:()=>C,auto:()=>Ke(et),bodyScroll:()=>document.body.scrollWidth,bodyOffset:()=>document.body.offsetWidth,custom:()=>l.width(),documentElementScroll:()=>document.documentElement.scrollWidth,documentElementOffset:()=>document.documentElement.offsetWidth,documentElementBoundingClientRect:()=>document.documentElement.getBoundingClientRect().right,max:()=>Math.max(...Qe(et)),min:()=>Math.min(...Qe(et)),rightMostElement:()=>Ze(a),scroll:()=>Math.max(et.bodyScroll(),et.documentElementScroll()),taggedElement:()=>Ze(a)};function tt(e,t,n,o,i){let a,r;!function(){const e=(e,t)=>!(Math.abs(e-t)<=ie);return a=void 0===n?_e[F]():n,r=void 0===o?et[se]():o,x&&e(W,a)||L&&e(le,r)}()&&"init"!==e?!(e in{init:1,size:1})&&(x&&F in P||L&&se in P)&&at(t):(ot(),W=a,le=r,rt(W,le,e,i))}function nt(e,t,n,o,i){document.hidden?ze("Page hidden - Ignored resize request"):(e in $||ze(`Trigger event: ${t}`),tt(e,t,n,o,i))}function ot(){ae||(ae=!0,ze("Trigger event lock on"),requestAnimationFrame((()=>{ae=!1,ze("Trigger event lock off"),ze("--")})))}function it(e){W=_e[F](),le=et[se](),rt(W,le,e)}function at(e){const t=F;F=w,ze(`Reset trigger event: ${e}`),ot(),it("reset"),F=t}function rt(e,t,n,o,i){Q<-1||(void 0!==i?ze(`Message targetOrigin: ${i}`):i=oe,function(){const a=`${Y}:${e+(T||0)}:${t+(C||0)}:${n}${void 0===o?"":`:${o}`}`;ze(`Sending message to host page (${a}) via ${ee?"sameDomain":"postMessage"}`),ee?window.parent.iframeParentListener(S+a):ne.postMessage(S+a,i)}())}function lt(e){const t={init:function(){U=e.data,ne=e.source,Pe(),q=!1,setTimeout((()=>{D=!1}),v)},reset(){D?ze("Page reset ignored by init"):(ze("Page size reset by host page"),it("resetPage"))},resize(){nt("resizeParent","Parent window requested size check")},moveToAnchor(){V.findTarget(o())},inPageLink(){this.moveToAnchor()},pageInfo(){const e=o();ze(`PageInfo received from parent: ${e}`),me?me(JSON.parse(e)):rt(0,0,"pageInfoStop"),ze(" --")},parentInfo(){const e=o();ze(`ParentInfo received from parent: ${e}`),fe?fe(Object.freeze(JSON.parse(e))):rt(0,0,"parentInfoStop"),ze(" --")},message(){const e=o();ze(`onMessage called from parent: ${e}`),de(JSON.parse(e)),ze(" --")}},n=()=>e.data.split("]")[1].split(":")[0],o=()=>e.data.slice(e.data.indexOf(":")+1),i=()=>"iframeResize"in window||void 0!==window.jQuery&&""in window.jQuery.prototype,a=()=>e.data.split(":")[2]in{true:1,false:1};S===`${e.data}`.slice(0,j)&&(!1!==q?a()?t.init():ze(`Ignored message of type "${n()}". Received before initialization.`):function(){const o=n();o in t?t[o]():i()||a()||$e(`Unexpected message (${e.data})`)}())}function st(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}window.iframeChildListener=e=>lt({data:e,sameDomain:!0}),r(window,"message",lt),r(window,"readystatechange",st),st()}();
const e="5.2.0-beta.5",t=10,n="data-iframe-size",o="data-iframe-overflow",i="bottom",r="right",a=(e,t,n,o)=>e.addEventListener(t,n,o||!1),l=["<iy><yi>Puchspk Spjluzl Rlf</><iy><iy>","<iy><yi>Tpzzpun Spjluzl Rlf</><iy><iy>","Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.<iy><iy><i>Jvttlyjphs Spjluzl</><iy>Mvy jvttlyjphs bzl, <p>pmyhtl-ylzpgly</> ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>.<iy><iy><i>Vwlu Zvbyjl Spjluzl</><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-jvttlyjphs vwlu zvbyjl wyvqlja aolu fvb jhu bzl pa mvy myll bukly aol alytz vm aol NWS C3 Spjluzl. Av jvumpyt fvb hjjlwa aolzl alytz, wslhzl zla aol <i>spjluzl</> rlf pu <p>pmyhtl-ylzpgly</> vwapvuz av <i>NWSc3</>.<iy><iy>Mvy tvyl pumvythapvu wslhzl zll: <b>oaawz://pmyhtl-ylzpgly.jvt/nws</>","<i>NWSc3 Spjluzl Clyzpvu</><iy><iy>Aopz clyzpvu vm <p>pmyhtl-ylzpgly</> pz ilpun bzlk bukly aol alytz vm aol <i>NWS C3</> spjluzl. Aopz spjluzl hssvdz fvb av bzl <p>pmyhtl-ylzpgly</> pu Vwlu Zvbyjl wyvqljaz, iba pa ylxbpylz fvby wyvqlja av il wbispj, wyvcpkl haaypibapvu huk il spjluzlk bukly clyzpvu 3 vy shaly vm aol NUB Nlulyhs Wbispj Spjluzl.<iy><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-vwlu zvbyjl wyvqlja vy dlizpal, fvb dpss ullk av wbyjohzl h svd jvza vul aptl jvttlyjphs spjluzl.<iy><iy>Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>."];Object.fromEntries(["2cgs7fdf4xb","1c9ctcccr4z","1q2pc4eebgb","ueokt0969w","w2zxchhgqz","1umuxblj2e5"].map(((e,t)=>[e,Math.max(0,t-1)])));const s=e=>(e=>e.replaceAll(/[A-Za-z]/g,(e=>String.fromCodePoint((e<="Z"?90:122)>=(e=e.codePointAt(0)+19)?e:e-26))))(l[e]),c=e=>{let t=!1;return function(){return t?void 0:(t=!0,Reflect.apply(e,this,arguments))}},d=e=>e;let u=[];const m=e=>{const t=e.side||i,n=e.onChange||d,r={root:document.documentElement,rootMargin:"0px",threshold:1},a=new WeakSet,l=new IntersectionObserver((e=>{e.forEach((e=>{e.target.toggleAttribute(o,(e=>0===e.boundingClientRect[t]||e.boundingClientRect[t]>e.rootBounds[t])(e))})),u=document.querySelectorAll(`[${o}]`),n()}),r);return e=>e.forEach((e=>{a.has(e)||(l.observe(e),a.add(e))}))},f=()=>u.length>0;"undefined"!=typeof window&&function(){const o={contentVisibilityAuto:!0,opacityProperty:!0,visibilityProperty:!0},l={height:()=>(be("Custom height calculation function not defined"),Ye.auto()),width:()=>(be("Custom width calculation function not defined"),Ge.auto())},p={bodyOffset:1,bodyScroll:1,offset:1,documentElementOffset:1,documentElementScroll:1,documentElementBoundingClientRect:1,max:1,min:1,grow:1,lowestElement:1},h=128,g={},y="checkVisibility"in window,v="auto",b={reset:1,resetPage:1,init:1},z="[iFrameSizer]",w=z.length,$={max:1,min:1,bodyScroll:1,documentElementScroll:1},S=["body"],j="scroll";let P,E,M=!0,T="",C=0,A="",O=null,I="",R=!0,k=!1,N=null,x=!0,L=!1,B=1,q=v,H=!0,W="",F={},D=!0,U=!1,V=0,J=!1,Z="",Q=d,X="child",Y=null,G=!1,K="",_=window.parent,ee="*",te=0,ne=!1,oe="",ie=1,re=j,ae=window,le=()=>{be("onMessage function not defined")},se=()=>{},ce=null,de=null;const ue=e=>e.charAt(0).toUpperCase()+e.slice(1),me=e=>""!=`${e}`&&void 0!==e,fe=new WeakSet,pe=e=>"object"==typeof e&&fe.add(e);function he(e){switch(!0){case!me(e):return"";case me(e.id):return`${e.nodeName.toUpperCase()}#${e.id}`;case me(e.name):return`${e.nodeName.toUpperCase()} (${e.name})`;default:return e.nodeName.toUpperCase()+(me(e.className)?`.${e.className}`:"")}}const ge=(...e)=>[`[iframe-resizer][${Z}]`,...e].join(" "),ye=(...e)=>U&&console?.log(ge(...e)),ve=(...e)=>console?.info(`[iframe-resizer][${Z}]`,...e),be=(...e)=>console?.warn(ge(...e)),ze=(...e)=>console?.warn((e=>t=>window.chrome?e(t.replaceAll("<br>","\n").replaceAll("<rb>","").replaceAll("</>","").replaceAll("<b>","").replaceAll("<i>","").replaceAll("<u>","")):e(t.replaceAll("<br>","\n").replaceAll(/<[/a-z]+>/gi,"")))(ge)(...e)),we=e=>ze(e);function $e(){var o,d;!function(){const e=e=>"true"===e,t=W.slice(w).split(":");Z=t[0],C=void 0===t[1]?C:Number(t[1]),k=void 0===t[2]?k:e(t[2]),U=void 0===t[3]?U:e(t[3]),M=void 0===t[6]?M:e(t[6]),A=t[7],q=void 0===t[8]?q:t[8],T=t[9],I=t[10],te=void 0===t[11]?te:Number(t[11]),F.enable=void 0!==t[12]&&e(t[12]),X=void 0===t[13]?X:t[13],re=void 0===t[14]?re:t[14],J=void 0===t[15]?J:e(t[15]),P=void 0===t[16]?P:Number(t[16]),E=void 0===t[17]?E:Number(t[17]),R=void 0===t[18]?R:e(t[18]),t[19],oe=t[20]||oe,V=void 0===t[21]?V:Number(t[21])}(),function(){function e(){const e=window.iframeResizer||window.iFrameResizer;ye(`Reading data from page: ${JSON.stringify(e)}`),le=e?.onMessage||le,se=e?.onReady||se,"number"==typeof e?.offset&&(ze("<rb>Deprecated option</>\n\n The <b>offset</> option has been renamed to <b>offsetSize</>. Use of the old name will be removed in a future version of <i>iframe-resizer</>."),R&&(P=e?.offset),k&&(E=e?.offset)),"number"==typeof e?.offsetSize&&(R&&(P=e?.offsetSize),k&&(E=e?.offsetSize)),Object.prototype.hasOwnProperty.call(e,"sizeSelector")&&(K=e.sizeSelector),ee=e?.targetOrigin||ee,q=e?.heightCalculationMethod||q,re=e?.widthCalculationMethod||re}function t(e,t){return"function"==typeof e&&(ye(`Setup custom ${t}CalcMethod`),l[t]=e,e="custom"),e}1!==V&&("iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),q=t(q,"height"),re=t(re,"width")),ye(`TargetOrigin for parent set to: ${ee}`))}(),ye(`Initialising iFrame v${e} (${window.location.href})`),function(){try{G="iframeParentListener"in window.parent}catch(e){ye("Cross domain iframe detected.")}}(),V<0?we(`${s(V+2)}${s(2)}`):oe.codePointAt(0)>4||V<2&&we(s(3)),oe&&""!==oe&&"false"!==oe?oe!==e&&ze(`<rb>Version mismatch</>\n\nThe parent and child pages are running different versions of <i>iframe resizer</>.\n\nParent page: ${oe} - Child page: ${e}.\n`):ze("<rb>Legacy version detected on parent page</>\n\nDetected legacy version of parent page script. It is recommended to update the parent page to use <b>@iframe-resizer/parent</>.\n\nSee <u>https://iframe-resizer.com/setup/</> for more details.\n"),Ae(),Oe(),function(){let e=!1;const t=t=>document.querySelectorAll(`[${t}]`).forEach((o=>{e=!0,o.removeAttribute(t),o.toggleAttribute(n,!0)}));t("data-iframe-height"),t("data-iframe-width"),e&&ze("<rb>Deprecated Attributes</>\n \nThe <b>data-iframe-height</> and <b>data-iframe-width</> attributes have been deprecated and replaced with the single <b>data-iframe-size</> attribute. Use of the old attributes will be removed in a future version of <i>iframe-resizer</>.")}(),R!==k&&(Q=m({onChange:c(Se),side:R?i:r})),je(),1!==V&&(ae.parentIframe=Object.freeze({autoResize:e=>(!0===e&&!1===M?(M=!0,Ie()):!1===e&&!0===M&&(M=!1,Te("remove"),Y?.disconnect(),O?.disconnect()),ot(0,0,"autoResize",JSON.stringify(M)),M),close(){ot(0,0,"close")},getId:()=>Z,getPageInfo(e){if("function"==typeof e)return ce=e,ot(0,0,"pageInfo"),void ze("<rb>Deprecated Method</>\n \nThe <b>getPageInfo()</> method has been deprecated and replaced with <b>getParentProps()</>. Use of this method will be removed in a future version of <i>iframe-resizer</>.\n");ce=null,ot(0,0,"pageInfoStop")},getParentProps(e){if("function"!=typeof e)throw new TypeError("parentIFrame.getParentProps(callback) callback not a function");return de=e,ot(0,0,"parentInfo"),()=>{de=null,ot(0,0,"parentInfoStop")}},getParentProperties(e){ze("<rb>Renamed Method</>\n \nThe <b>getParentProperties()</> method has been renamed <b>getParentProps()</>. Use of the old name will be removed in a future version of <i>iframe-resizer</>.\n"),this.getParentProps(e)},moveToAnchor(e){F.findTarget(e)},reset(){nt("parentIFrame.reset")},scrollBy(e,t){ot(t,e,"scrollBy")},scrollTo(e,t){ot(t,e,"scrollTo")},scrollToOffset(e,t){ot(t,e,"scrollToOffset")},sendMessage(e,t){ot(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod(e){q=e,Ae()},setWidthCalculationMethod(e){re=e,Oe()},setTargetOrigin(e){ye(`Set targetOrigin: ${e}`),ee=e},resize(e,t){_e("size",`parentIFrame.size(${e||""}${t?`,${t}`:""})`,e,t)},size(e,t){ze("<rb>Deprecated Method</>\n \nThe <b>size()</> method has been deprecated and replaced with <b>resize()</>. Use of this method will be removed in a future version of <i>iframe-resizer</>.\n"),this.resize(e,t)}}),ae.parentIFrame=ae.parentIframe),function(){function e(e){ot(0,0,e.type,`${e.screenY}:${e.screenX}`)}function t(t,n){ye(`Add event listener: ${n}`),a(window.document,t,e)}!0===J&&(t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave"))}(),F=function(){const e=()=>({x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop});function n(n){const o=n.getBoundingClientRect(),i=e();return{x:parseInt(o.left,t)+parseInt(i.x,t),y:parseInt(o.top,t)+parseInt(i.y,t)}}function o(e){function t(e){const t=n(e);ye(`Moving to in page link (#${o}) at x: ${t.x}y: ${t.y}`),ot(t.y,t.x,"scrollToOffset")}const o=e.split("#")[1]||e,i=decodeURIComponent(o),r=document.getElementById(i)||document.getElementsByName(i)[0];void 0===r?(ye(`In page link (#${o}) not found in iFrame, so sending to parent`),ot(0,0,"inPageLink",`#${o}`)):t(r)}function i(){const{hash:e,href:t}=window.location;""!==e&&"#"!==e&&o(t)}function r(){function e(e){function t(e){e.preventDefault(),o(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&a(e,"click",t)}document.querySelectorAll('a[href^="#"]').forEach(e)}function l(){a(window,"hashchange",i)}function s(){setTimeout(i,h)}function c(){ye("Setting up location.hash handlers"),r(),l(),s()}return F.enable?1===V?ze("In page linking requires a Professional or Business license. Please see https://iframe-resizer.com/pricing for more details."):c():ye("In page linking not enabled"),{findTarget:o}}(),pe(document.documentElement),pe(document.body),void 0===A&&(A=`${C}px`),Pe("margin",(o="margin",(d=A).includes("-")&&(be(`Negative CSS value ignored for ${o}`),d=""),d)),Pe("background",T),Pe("padding",I),function(){const e=document.createElement("div");e.style.clear="both",e.style.display="block",e.style.height="0",document.body.append(e)}(),function(){const e=e=>e.style.setProperty("height","auto","important");e(document.documentElement),e(document.body),ye('HTML & body height set to "auto !important"')}(),Ee()}const Se=()=>{_e("init","Init message from host page",void 0,void 0,e),document.title&&""!==document.title&&ot(0,0,"title",document.title),Ie(),se(),D=!1,ye("Initialization complete"),ye("---")};function je(){const e=document.querySelectorAll(`[${n}]`);L=e.length>0,ye(`Tagged elements found: ${L}`),N=L?e:Je(document)(),L?setTimeout(Se):Q(N)}function Pe(e,t){void 0!==t&&""!==t&&"null"!==t&&(document.body.style.setProperty(e,t),ye(`Body ${e} set to "${t}"`))}function Ee(){""!==K&&(ye(`Applying sizeSelector: ${K}`),document.querySelectorAll(K).forEach((e=>{ye(`Applying data-iframe-size to: ${he(e)}`),e.dataset.iframeSize=!0})))}function Me(e){({add(t){function n(){_e(e.eventName,e.eventType)}g[t]=n,a(window,t,n,{passive:!0})},remove(e){const t=g[e];var n,o;delete g[e],n=e,o=t,window.removeEventListener(n,o,!1)}})[e.method](e.eventName),ye(`${ue(e.method)} event listener: ${e.eventType}`)}function Te(e){Me({method:e,eventType:"After Print",eventName:"afterprint"}),Me({method:e,eventType:"Before Print",eventName:"beforeprint"}),Me({method:e,eventType:"Ready State Change",eventName:"readystatechange"})}function Ce(e,t,n,o){return t!==e&&(e in n||(be(`${e} is not a valid option for ${o}CalculationMethod.`),e=t),e in p&&ze(`<rb>Deprecated ${o}CalculationMethod (${e})</>\n\nThis version of <i>iframe-resizer</> can auto detect the most suitable ${o} calculation method. It is recommended that you remove this option.`),ye(`${o} calculation method set to "${e}"`)),e}function Ae(){q=Ce(q,v,Ye,"height")}function Oe(){re=Ce(re,j,Ge,"width")}function Ie(){!0===M?(Te("add"),O=function(){function e(e){e.forEach(He),Ee(),je()}function t(){const t=new window.MutationObserver(e),n=document.querySelector("body"),o={attributes:!1,attributeOldValue:!1,characterData:!1,characterDataOldValue:!1,childList:!0,subtree:!0};return ye("Create <body/> MutationObserver"),t.observe(n,o),t}const n=t();return{disconnect(){ye("Disconnect MutationObserver"),n.disconnect()}}}(),Y=new ResizeObserver(ke),qe(window.document)):ye("Auto Resize disabled")}let Re;function ke(e){if(!Array.isArray(e)||0===e.length)return;const t=e[0].target;Re=()=>_e("resizeObserver",`Resize Observed: ${he(t)}`),setTimeout((()=>{Re&&Re(),Re=void 0}),0)}const Ne=e=>{const t=getComputedStyle(e);return""!==t?.position&&"static"!==t?.position},xe=()=>[...Je(document)()].filter(Ne),Le=new WeakSet;function Be(e){e&&(Le.has(e)||(Y.observe(e),Le.add(e),ye(`Attached resizeObserver: ${he(e)}`)))}function qe(e){[...xe(),...S.flatMap((t=>e.querySelector(t)))].forEach(Be)}function He(e){"childList"===e.type&&qe(e.target)}let We=null,Fe=4,De=4;function Ue(e){const t=ue(e);let n=0,i=document.documentElement,r=L?0:document.documentElement.getBoundingClientRect().bottom,a=performance.now();const l=!L&&f()?u:N;let s=l.length;l.forEach((t=>{L||!y||t.checkVisibility(o)?(n=t.getBoundingClientRect()[e]+parseFloat(getComputedStyle(t).getPropertyValue(`margin-${e}`)),n>r&&(r=n,i=t)):s-=1})),a=(performance.now()-a).toPrecision(1),function(e,t,n,o){fe.has(e)||We===e||L&&o<=1||(We=e,ve(`\n${t} position calculated from:\n`,e,`\nParsed ${o} ${L?"tagged":"potentially overflowing"} elements in ${n}ms`))}(i,t,a,s);const c=`\nParsed ${s} element${1===s?"":"s"} in ${a}ms\n${t} ${L?"tagged ":""}element found at: ${r}px\nPosition calculated from HTML element: ${he(i)} (${function(e,t=30){const n=e?.outerHTML?.toString();return n?n.length<t?n:`${n.slice(0,t).replaceAll("\n"," ")}...`:e}(i,100)})`;return a<4||s<99||L||D?ye(c):Fe<a&&Fe<De&&(Fe=1.2*a,ze(`<rb>Performance Warning</>\n\nCalculating the page size took an excessive amount of time. To improve performance add the <b>data-iframe-size</> attribute to the ${e} most element on the page.\n${c}`)),De=a,r}const Ve=e=>[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll(),e.documentElementBoundingClientRect()],Je=e=>()=>e.querySelectorAll("* :not(head):not(meta):not(base):not(title):not(script):not(link):not(style):not(map):not(area):not(option):not(optgroup):not(template):not(track):not(wbr):not(nobr)"),Ze={height:0,width:0},Qe={height:0,width:0};function Xe(e){function t(){return Qe[i]=r,Ze[i]=s,r}const n=f(),o=e===Ye,i=o?"height":"width",r=e.documentElementBoundingClientRect(),a=Math.ceil(r),l=Math.floor(r),s=(e=>e.documentElementScroll()+Math.max(0,e.getOffset()))(e),c=`HTML: ${r} Page: ${s}`;switch(!0){case!e.enabled():return s;case L:return e.taggedElement();case!n&&0===Qe[i]&&0===Ze[i]:return ye(`Initial page size values: ${c}`),t();case ne&&r===Qe[i]&&s===Ze[i]:return ye(`Size unchanged: ${c}`),Math.max(r,s);case 0===r:return ye(`Page is hidden: ${c}`),s;case!n&&r!==Qe[i]&&s<=Ze[i]:return ye(`New HTML bounding size: ${c}`,"Previous bounding size:",Qe[i]),t();case!o:return e.taggedElement();case!n&&r<Qe[i]:return ye("HTML bounding size decreased:",c),t();case s===l||s===a:return ye("HTML bounding size equals page size:",c),t();case r>s:return ye(`Page size < HTML bounding size: ${c}`),t();default:ye(`Content overflowing HTML element: ${c}`)}return Math.max(e.taggedElement(),t())}const Ye={enabled:()=>R,getOffset:()=>P,auto:()=>Xe(Ye),bodyOffset:()=>{const{body:e}=document,n=getComputedStyle(e);return e.offsetHeight+parseInt(n.marginTop,t)+parseInt(n.marginBottom,t)},bodyScroll:()=>document.body.scrollHeight,offset:()=>Ye.bodyOffset(),custom:()=>l.height(),documentElementOffset:()=>document.documentElement.offsetHeight,documentElementScroll:()=>document.documentElement.scrollHeight,documentElementBoundingClientRect:()=>document.documentElement.getBoundingClientRect().bottom,max:()=>Math.max(...Ve(Ye)),min:()=>Math.min(...Ve(Ye)),grow:()=>Ye.max(),lowestElement:()=>Ue(i),taggedElement:()=>Ue(i)},Ge={enabled:()=>k,getOffset:()=>E,auto:()=>Xe(Ge),bodyScroll:()=>document.body.scrollWidth,bodyOffset:()=>document.body.offsetWidth,custom:()=>l.width(),documentElementScroll:()=>document.documentElement.scrollWidth,documentElementOffset:()=>document.documentElement.offsetWidth,documentElementBoundingClientRect:()=>document.documentElement.getBoundingClientRect().right,max:()=>Math.max(...Ve(Ge)),min:()=>Math.min(...Ve(Ge)),rightMostElement:()=>Ue(r),scroll:()=>Math.max(Ge.bodyScroll(),Ge.documentElementScroll()),taggedElement:()=>Ue(r)};function Ke(e,t,n,o,i){let r,a;!function(){const e=(e,t)=>!(Math.abs(e-t)<=te);return r=void 0===n?Ye[q]():n,a=void 0===o?Ge[re]():o,R&&e(B,r)||k&&e(ie,a)}()&&"init"!==e?!(e in{init:1,size:1})&&(R&&q in $||k&&re in $)&&nt(t):(et(),B=r,ie=a,ot(B,ie,e,i))}function _e(e,t,n,o,i){document.hidden?ye("Page hidden - Ignored resize request"):(e in b||ye(`Trigger event: ${t}`),Ke(e,t,n,o,i))}function et(){ne||(ne=!0,ye("Trigger event lock on"),requestAnimationFrame((()=>{ne=!1,ye("Trigger event lock off"),ye("--")})))}function tt(e){B=Ye[q](),ie=Ge[re](),ot(B,ie,e)}function nt(e){const t=q;q=v,ye(`Reset trigger event: ${e}`),et(),tt("reset"),q=t}function ot(e,t,n,o,i){V<-1||(void 0!==i?ye(`Message targetOrigin: ${i}`):i=ee,function(){const r=`${Z}:${e+(P||0)}:${t+(E||0)}:${n}${void 0===o?"":`:${o}`}`;ye(`Sending message to host page (${r}) via ${G?"sameDomain":"postMessage"}`),G?window.parent.iframeParentListener(z+r):_.postMessage(z+r,i)}())}function it(e){const t={init:function(){W=e.data,_=e.source,$e(),x=!1,setTimeout((()=>{H=!1}),h)},reset(){H?ye("Page reset ignored by init"):(ye("Page size reset by host page"),tt("resetPage"))},resize(){_e("resizeParent","Parent window requested size check")},moveToAnchor(){F.findTarget(o())},inPageLink(){this.moveToAnchor()},pageInfo(){const e=o();ye(`PageInfo received from parent: ${e}`),ce?ce(JSON.parse(e)):ot(0,0,"pageInfoStop"),ye(" --")},parentInfo(){const e=o();ye(`ParentInfo received from parent: ${e}`),de?de(Object.freeze(JSON.parse(e))):ot(0,0,"parentInfoStop"),ye(" --")},message(){const e=o();ye(`onMessage called from parent: ${e}`),le(JSON.parse(e)),ye(" --")}},n=()=>e.data.split("]")[1].split(":")[0],o=()=>e.data.slice(e.data.indexOf(":")+1),i=()=>"iframeResize"in window||void 0!==window.jQuery&&""in window.jQuery.prototype,r=()=>e.data.split(":")[2]in{true:1,false:1};z===`${e.data}`.slice(0,w)&&(!1!==x?r()?t.init():ye(`Ignored message of type "${n()}". Received before initialization.`):function(){const o=n();o in t?t[o]():i()||r()||be(`Unexpected message (${e.data})`)}())}function rt(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}window.iframeChildListener=e=>it({data:e,sameDomain:!0}),a(window,"message",it),a(window,"readystatechange",rt),rt()}();
//# sourceMappingURL=index.esm.js.map
/*!
* @preserve
*
* @module iframe-resizer/child 5.2.0-beta.4 (umd) - 2024-07-11
* @module iframe-resizer/child 5.2.0-beta.5 (umd) - 2024-07-11
*

@@ -20,3 +20,3 @@ * @license GPL-3.0 for non-commercial use only.

!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";const e="5.2.0-beta.4",t=10,n="data-iframe-size",o="data-iframe-overflow",i="bottom",a="right",r=(e,t,n,o)=>e.addEventListener(t,n,o||!1),l=["<iy><yi>Puchspk Spjluzl Rlf</><iy><iy>","<iy><yi>Tpzzpun Spjluzl Rlf</><iy><iy>","Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.<iy><iy><i>Jvttlyjphs Spjluzl</><iy>Mvy jvttlyjphs bzl, <p>pmyhtl-ylzpgly</> ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>.<iy><iy><i>Vwlu Zvbyjl Spjluzl</><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-jvttlyjphs vwlu zvbyjl wyvqlja aolu fvb jhu bzl pa mvy myll bukly aol alytz vm aol NWS C3 Spjluzl. Av jvumpyt fvb hjjlwa aolzl alytz, wslhzl zla aol <i>spjluzl</> rlf pu <p>pmyhtl-ylzpgly</> vwapvuz av <i>NWSc3</>.<iy><iy>Mvy tvyl pumvythapvu wslhzl zll: <b>oaawz://pmyhtl-ylzpgly.jvt/nws</>","<i>NWSc3 Spjluzl Clyzpvu</><iy><iy>Aopz clyzpvu vm <p>pmyhtl-ylzpgly</> pz ilpun bzlk bukly aol alytz vm aol <i>NWS C3</> spjluzl. Aopz spjluzl hssvdz fvb av bzl <p>pmyhtl-ylzpgly</> pu Vwlu Zvbyjl wyvqljaz, iba pa ylxbpylz fvby wyvqlja av il wbispj, wyvcpkl haaypibapvu huk il spjluzlk bukly clyzpvu 3 vy shaly vm aol NUB Nlulyhs Wbispj Spjluzl.<iy><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-vwlu zvbyjl wyvqlja vy dlizpal, fvb dpss ullk av wbyjohzl h svd jvza vul aptl jvttlyjphs spjluzl.<iy><iy>Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>."];Object.fromEntries(["2cgs7fdf4xb","1c9ctcccr4z","1q2pc4eebgb","ueokt0969w","w2zxchhgqz","1umuxblj2e5"].map(((e,t)=>[e,Math.max(0,t-1)])));const s=e=>(e=>e.replaceAll(/[A-Za-z]/g,(e=>String.fromCodePoint((e<="Z"?90:122)>=(e=e.codePointAt(0)+19)?e:e-26))))(l[e]),c=e=>{let t=!1;return function(){return t?void 0:(t=!0,Reflect.apply(e,this,arguments))}},d=e=>e;let u=i,m=d;const f={root:document.documentElement,rootMargin:"0px",threshold:1};let p=[];const h=new WeakSet,g=new IntersectionObserver((e=>{e.forEach((e=>{e.target.toggleAttribute(o,(e=>0===e.boundingClientRect[u]||e.boundingClientRect[u]>e.rootBounds[u])(e))})),p=document.querySelectorAll(`[${o}]`),m()}),f),y=()=>p.length>0;"undefined"!=typeof window&&function(){const o={contentVisibilityAuto:!0,opacityProperty:!0,visibilityProperty:!0},l={height:()=>($e("Custom height calculation function not defined"),_e.auto()),width:()=>($e("Custom width calculation function not defined"),et.auto())},f={bodyOffset:1,bodyScroll:1,offset:1,documentElementOffset:1,documentElementScroll:1,documentElementBoundingClientRect:1,max:1,min:1,grow:1,lowestElement:1},v=128,b={},z="checkVisibility"in window,w="auto",$={reset:1,resetPage:1,init:1},S="[iFrameSizer]",j=S.length,P={max:1,min:1,bodyScroll:1,documentElementScroll:1},E=["body"],M="scroll";let T,C,A=!0,O="",I=0,R="",k=null,N="",x=!0,L=!1,B=null,q=!0,H=!1,W=1,F=w,D=!0,U="",V={},J=!0,Z=!1,Q=0,X=!1,Y="",G=d,K="child",_=null,ee=!1,te="",ne=window.parent,oe="*",ie=0,ae=!1,re="",le=1,se=M,ce=window,de=()=>{$e("onMessage function not defined")},ue=()=>{},me=null,fe=null;const pe=e=>e.charAt(0).toUpperCase()+e.slice(1),he=e=>""!=`${e}`&&void 0!==e,ge=new WeakSet,ye=e=>"object"==typeof e&&ge.add(e);function ve(e){switch(!0){case!he(e):return"";case he(e.id):return`${e.nodeName.toUpperCase()}#${e.id}`;case he(e.name):return`${e.nodeName.toUpperCase()} (${e.name})`;default:return e.nodeName.toUpperCase()+(he(e.className)?`.${e.className}`:"")}}const be=(...e)=>[`[iframe-resizer][${Y}]`,...e].join(" "),ze=(...e)=>Z&&console?.log(be(...e)),we=(...e)=>console?.info(`[iframe-resizer][${Y}]`,...e),$e=(...e)=>console?.warn(be(...e)),Se=(...e)=>console?.warn((e=>t=>window.chrome?e(t.replaceAll("<br>","\n").replaceAll("<rb>","").replaceAll("</>","").replaceAll("<b>","").replaceAll("<i>","").replaceAll("<u>","")):e(t.replaceAll("<br>","\n").replaceAll(/<[/a-z]+>/gi,"")))(be)(...e)),je=e=>Se(e);function Pe(){var o,d;!function(){const e=e=>"true"===e,t=U.slice(j).split(":");Y=t[0],I=void 0===t[1]?I:Number(t[1]),L=void 0===t[2]?L:e(t[2]),Z=void 0===t[3]?Z:e(t[3]),A=void 0===t[6]?A:e(t[6]),R=t[7],F=void 0===t[8]?F:t[8],O=t[9],N=t[10],ie=void 0===t[11]?ie:Number(t[11]),V.enable=void 0!==t[12]&&e(t[12]),K=void 0===t[13]?K:t[13],se=void 0===t[14]?se:t[14],X=void 0===t[15]?X:e(t[15]),T=void 0===t[16]?T:Number(t[16]),C=void 0===t[17]?C:Number(t[17]),x=void 0===t[18]?x:e(t[18]),t[19],re=t[20]||re,Q=void 0===t[21]?Q:Number(t[21])}(),function(){function e(){const e=window.iframeResizer||window.iFrameResizer;ze(`Reading data from page: ${JSON.stringify(e)}`),de=e?.onMessage||de,ue=e?.onReady||ue,"number"==typeof e?.offset&&(Se("<rb>Deprecated option</>\n\n The <b>offset</> option has been renamed to <b>offsetSize</>. Use of the old name will be removed in a future version of <i>iframe-resizer</>."),x&&(T=e?.offset),L&&(C=e?.offset)),"number"==typeof e?.offsetSize&&(x&&(T=e?.offsetSize),L&&(C=e?.offsetSize)),Object.prototype.hasOwnProperty.call(e,"sizeSelector")&&(te=e.sizeSelector),oe=e?.targetOrigin||oe,F=e?.heightCalculationMethod||F,se=e?.widthCalculationMethod||se}function t(e,t){return"function"==typeof e&&(ze(`Setup custom ${t}CalcMethod`),l[t]=e,e="custom"),e}1!==Q&&("iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),F=t(F,"height"),se=t(se,"width")),ze(`TargetOrigin for parent set to: ${oe}`))}(),ze(`Initialising iFrame v${e} (${window.location.href})`),function(){try{ee="iframeParentListener"in window.parent}catch(e){ze("Cross domain iframe detected.")}}(),Q<0?je(`${s(Q+2)}${s(2)}`):re.codePointAt(0)>4||Q<2&&je(s(3)),re&&""!==re&&"false"!==re?re!==e&&Se(`<rb>Version mismatch</>\n\nThe parent and child pages are running different versions of <i>iframe resizer</>.\n\nParent page: ${re} - Child page: ${e}.\n`):Se("<rb>Legacy version detected on parent page</>\n\nDetected legacy version of parent page script. It is recommended to update the parent page to use <b>@iframe-resizer/parent</>.\n\nSee <u>https://iframe-resizer.com/setup/</> for more details.\n"),Re(),ke(),function(){let e=!1;const t=t=>document.querySelectorAll(`[${t}]`).forEach((o=>{e=!0,o.removeAttribute(t),o.toggleAttribute(n,!0)}));t("data-iframe-height"),t("data-iframe-width"),e&&Se("<rb>Deprecated Attributes</>\n \nThe <b>data-iframe-height</> and <b>data-iframe-width</> attributes have been deprecated and replaced with the single <b>data-iframe-size</> attribute. Use of the old attributes will be removed in a future version of <i>iframe-resizer</>.")}(),x!==L&&(G=(e=>(u=e.side,m=e.onChange,e=>e.forEach((e=>{h.has(e)||(g.observe(e),h.add(e))}))))({onChange:c(Ee),side:x?i:a})),Me(),1!==Q&&(ce.parentIframe=Object.freeze({autoResize:e=>(!0===e&&!1===A?(A=!0,Ne()):!1===e&&!0===A&&(A=!1,Oe("remove"),_?.disconnect(),k?.disconnect()),rt(0,0,"autoResize",JSON.stringify(A)),A),close(){rt(0,0,"close")},getId:()=>Y,getPageInfo(e){if("function"==typeof e)return me=e,rt(0,0,"pageInfo"),void Se("<rb>Deprecated Method</>\n \nThe <b>getPageInfo()</> method has been deprecated and replaced with <b>getParentProps()</>. Use of this method will be removed in a future version of <i>iframe-resizer</>.\n");me=null,rt(0,0,"pageInfoStop")},getParentProps(e){if("function"!=typeof e)throw new TypeError("parentIFrame.getParentProps(callback) callback not a function");return fe=e,rt(0,0,"parentInfo"),()=>{fe=null,rt(0,0,"parentInfoStop")}},getParentProperties(e){Se("<rb>Renamed Method</>\n \nThe <b>getParentProperties()</> method has been renamed <b>getParentProps()</>. Use of the old name will be removed in a future version of <i>iframe-resizer</>.\n"),this.getParentProps(e)},moveToAnchor(e){V.findTarget(e)},reset(){at("parentIFrame.reset")},scrollBy(e,t){rt(t,e,"scrollBy")},scrollTo(e,t){rt(t,e,"scrollTo")},scrollToOffset(e,t){rt(t,e,"scrollToOffset")},sendMessage(e,t){rt(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod(e){F=e,Re()},setWidthCalculationMethod(e){se=e,ke()},setTargetOrigin(e){ze(`Set targetOrigin: ${e}`),oe=e},resize(e,t){nt("size",`parentIFrame.size(${e||""}${t?`,${t}`:""})`,e,t)},size(e,t){Se("<rb>Deprecated Method</>\n \nThe <b>size()</> method has been deprecated and replaced with <b>resize()</>. Use of this method will be removed in a future version of <i>iframe-resizer</>.\n"),this.resize(e,t)}}),ce.parentIFrame=ce.parentIframe),function(){function e(e){rt(0,0,e.type,`${e.screenY}:${e.screenX}`)}function t(t,n){ze(`Add event listener: ${n}`),r(window.document,t,e)}!0===X&&(t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave"))}(),V=function(){const e=()=>({x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop});function n(n){const o=n.getBoundingClientRect(),i=e();return{x:parseInt(o.left,t)+parseInt(i.x,t),y:parseInt(o.top,t)+parseInt(i.y,t)}}function o(e){function t(e){const t=n(e);ze(`Moving to in page link (#${o}) at x: ${t.x}y: ${t.y}`),rt(t.y,t.x,"scrollToOffset")}const o=e.split("#")[1]||e,i=decodeURIComponent(o),a=document.getElementById(i)||document.getElementsByName(i)[0];void 0===a?(ze(`In page link (#${o}) not found in iFrame, so sending to parent`),rt(0,0,"inPageLink",`#${o}`)):t(a)}function i(){const{hash:e,href:t}=window.location;""!==e&&"#"!==e&&o(t)}function a(){function e(e){function t(e){e.preventDefault(),o(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&r(e,"click",t)}document.querySelectorAll('a[href^="#"]').forEach(e)}function l(){r(window,"hashchange",i)}function s(){setTimeout(i,v)}function c(){ze("Setting up location.hash handlers"),a(),l(),s()}return V.enable?1===Q?Se("In page linking requires a Professional or Business license. Please see https://iframe-resizer.com/pricing for more details."):c():ze("In page linking not enabled"),{findTarget:o}}(),ye(document.documentElement),ye(document.body),void 0===R&&(R=`${I}px`),Te("margin",(o="margin",(d=R).includes("-")&&($e(`Negative CSS value ignored for ${o}`),d=""),d)),Te("background",O),Te("padding",N),function(){const e=document.createElement("div");e.style.clear="both",e.style.display="block",e.style.height="0",document.body.append(e)}(),function(){const e=e=>e.style.setProperty("height","auto","important");e(document.documentElement),e(document.body),ze('HTML & body height set to "auto !important"')}(),Ce()}const Ee=()=>{nt("init","Init message from host page",void 0,void 0,e),document.title&&""!==document.title&&rt(0,0,"title",document.title),Ne(),ue(),J=!1,ze("Initialization complete"),ze("---")};function Me(){const e=document.querySelectorAll(`[${n}]`);H=e.length>0,ze(`Tagged elements found: ${H}`),B=H?e:Xe(document)(),H?setTimeout(Ee):G(B)}function Te(e,t){void 0!==t&&""!==t&&"null"!==t&&(document.body.style.setProperty(e,t),ze(`Body ${e} set to "${t}"`))}function Ce(){""!==te&&(ze(`Applying sizeSelector: ${te}`),document.querySelectorAll(te).forEach((e=>{ze(`Applying data-iframe-size to: ${ve(e)}`),e.dataset.iframeSize=!0})))}function Ae(e){({add(t){function n(){nt(e.eventName,e.eventType)}b[t]=n,r(window,t,n,{passive:!0})},remove(e){const t=b[e];var n,o;delete b[e],n=e,o=t,window.removeEventListener(n,o,!1)}})[e.method](e.eventName),ze(`${pe(e.method)} event listener: ${e.eventType}`)}function Oe(e){Ae({method:e,eventType:"After Print",eventName:"afterprint"}),Ae({method:e,eventType:"Before Print",eventName:"beforeprint"}),Ae({method:e,eventType:"Ready State Change",eventName:"readystatechange"})}function Ie(e,t,n,o){return t!==e&&(e in n||($e(`${e} is not a valid option for ${o}CalculationMethod.`),e=t),e in f&&Se(`<rb>Deprecated ${o}CalculationMethod (${e})</>\n\nThis version of <i>iframe-resizer</> can auto detect the most suitable ${o} calculation method. It is recommended that you remove this option.`),ze(`${o} calculation method set to "${e}"`)),e}function Re(){F=Ie(F,w,_e,"height")}function ke(){se=Ie(se,M,et,"width")}function Ne(){!0===A?(Oe("add"),k=function(){function e(e){e.forEach(De),Ce(),Me()}function t(){const t=new window.MutationObserver(e),n=document.querySelector("body"),o={attributes:!1,attributeOldValue:!1,characterData:!1,characterDataOldValue:!1,childList:!0,subtree:!0};return ze("Create <body/> MutationObserver"),t.observe(n,o),t}const n=t();return{disconnect(){ze("Disconnect MutationObserver"),n.disconnect()}}}(),_=new ResizeObserver(Le),Fe(window.document)):ze("Auto Resize disabled")}let xe;function Le(e){if(!Array.isArray(e)||0===e.length)return;const t=e[0].target;xe=()=>nt("resizeObserver",`Resize Observed: ${ve(t)}`),setTimeout((()=>{xe&&xe(),xe=void 0}),0)}const Be=e=>{const t=getComputedStyle(e);return""!==t?.position&&"static"!==t?.position},qe=()=>[...Xe(document)()].filter(Be),He=new WeakSet;function We(e){e&&(He.has(e)||(_.observe(e),He.add(e),ze(`Attached resizeObserver: ${ve(e)}`)))}function Fe(e){[...qe(),...E.flatMap((t=>e.querySelector(t)))].forEach(We)}function De(e){"childList"===e.type&&Fe(e.target)}let Ue=null,Ve=4,Je=4;function Ze(e){const t=pe(e);let n=0,i=document.documentElement,a=H?0:document.documentElement.getBoundingClientRect().bottom,r=performance.now();const l=!H&&y()?p:B;let s=l.length;l.forEach((t=>{H||!z||t.checkVisibility(o)?(n=t.getBoundingClientRect()[e]+parseFloat(getComputedStyle(t).getPropertyValue(`margin-${e}`)),n>a&&(a=n,i=t)):s-=1})),r=(performance.now()-r).toPrecision(1),function(e,t,n,o){ge.has(e)||Ue===e||H&&o<=1||(Ue=e,we(`\n${t} position calculated from:\n`,e,`\nParsed ${o} ${H?"tagged":"potentially overflowing"} elements in ${n}ms`))}(i,t,r,s);const c=`\nParsed ${s} element${1===s?"":"s"} in ${r}ms\n${t} ${H?"tagged ":""}element found at: ${a}px\nPosition calculated from HTML element: ${ve(i)} (${function(e,t=30){const n=e?.outerHTML?.toString();return n?n.length<t?n:`${n.slice(0,t).replaceAll("\n"," ")}...`:e}(i,100)})`;return r<4||s<99||H||J?ze(c):Ve<r&&Ve<Je&&(Ve=1.2*r,Se(`<rb>Performance Warning</>\n\nCalculating the page size took an excessive amount of time. To improve performance add the <b>data-iframe-size</> attribute to the ${e} most element on the page.\n${c}`)),Je=r,a}const Qe=e=>[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll(),e.documentElementBoundingClientRect()],Xe=e=>()=>e.querySelectorAll("* :not(head):not(meta):not(base):not(title):not(script):not(link):not(style):not(map):not(area):not(option):not(optgroup):not(template):not(track):not(wbr):not(nobr)"),Ye={height:0,width:0},Ge={height:0,width:0};function Ke(e){function t(){return Ge[i]=a,Ye[i]=s,a}const n=y(),o=e===_e,i=o?"height":"width",a=e.documentElementBoundingClientRect(),r=Math.ceil(a),l=Math.floor(a),s=(e=>e.documentElementScroll()+Math.max(0,e.getOffset()))(e),c=`HTML: ${a} Page: ${s}`;switch(!0){case!e.enabled():return s;case H:return e.taggedElement();case!n&&0===Ge[i]&&0===Ye[i]:return ze(`Initial page size values: ${c}`),t();case ae&&a===Ge[i]&&s===Ye[i]:return ze(`Size unchanged: ${c}`),Math.max(a,s);case 0===a:return ze(`Page is hidden: ${c}`),s;case!n&&a!==Ge[i]&&s<=Ye[i]:return ze(`New HTML bounding size: ${c}`,"Previous bounding size:",Ge[i]),t();case!o:return e.taggedElement();case!n&&a<Ge[i]:return ze("HTML bounding size decreased:",c),t();case s===l||s===r:return ze("HTML bounding size equals page size:",c),t();case a>s:return ze(`Page size < HTML bounding size: ${c}`),t();default:ze(`Content overflowing HTML element: ${c}`)}return Math.max(e.taggedElement(),t())}const _e={enabled:()=>x,getOffset:()=>T,auto:()=>Ke(_e),bodyOffset:()=>{const{body:e}=document,n=getComputedStyle(e);return e.offsetHeight+parseInt(n.marginTop,t)+parseInt(n.marginBottom,t)},bodyScroll:()=>document.body.scrollHeight,offset:()=>_e.bodyOffset(),custom:()=>l.height(),documentElementOffset:()=>document.documentElement.offsetHeight,documentElementScroll:()=>document.documentElement.scrollHeight,documentElementBoundingClientRect:()=>document.documentElement.getBoundingClientRect().bottom,max:()=>Math.max(...Qe(_e)),min:()=>Math.min(...Qe(_e)),grow:()=>_e.max(),lowestElement:()=>Ze(i),taggedElement:()=>Ze(i)},et={enabled:()=>L,getOffset:()=>C,auto:()=>Ke(et),bodyScroll:()=>document.body.scrollWidth,bodyOffset:()=>document.body.offsetWidth,custom:()=>l.width(),documentElementScroll:()=>document.documentElement.scrollWidth,documentElementOffset:()=>document.documentElement.offsetWidth,documentElementBoundingClientRect:()=>document.documentElement.getBoundingClientRect().right,max:()=>Math.max(...Qe(et)),min:()=>Math.min(...Qe(et)),rightMostElement:()=>Ze(a),scroll:()=>Math.max(et.bodyScroll(),et.documentElementScroll()),taggedElement:()=>Ze(a)};function tt(e,t,n,o,i){let a,r;!function(){const e=(e,t)=>!(Math.abs(e-t)<=ie);return a=void 0===n?_e[F]():n,r=void 0===o?et[se]():o,x&&e(W,a)||L&&e(le,r)}()&&"init"!==e?!(e in{init:1,size:1})&&(x&&F in P||L&&se in P)&&at(t):(ot(),W=a,le=r,rt(W,le,e,i))}function nt(e,t,n,o,i){document.hidden?ze("Page hidden - Ignored resize request"):(e in $||ze(`Trigger event: ${t}`),tt(e,t,n,o,i))}function ot(){ae||(ae=!0,ze("Trigger event lock on"),requestAnimationFrame((()=>{ae=!1,ze("Trigger event lock off"),ze("--")})))}function it(e){W=_e[F](),le=et[se](),rt(W,le,e)}function at(e){const t=F;F=w,ze(`Reset trigger event: ${e}`),ot(),it("reset"),F=t}function rt(e,t,n,o,i){Q<-1||(void 0!==i?ze(`Message targetOrigin: ${i}`):i=oe,function(){const a=`${Y}:${e+(T||0)}:${t+(C||0)}:${n}${void 0===o?"":`:${o}`}`;ze(`Sending message to host page (${a}) via ${ee?"sameDomain":"postMessage"}`),ee?window.parent.iframeParentListener(S+a):ne.postMessage(S+a,i)}())}function lt(e){const t={init:function(){U=e.data,ne=e.source,Pe(),q=!1,setTimeout((()=>{D=!1}),v)},reset(){D?ze("Page reset ignored by init"):(ze("Page size reset by host page"),it("resetPage"))},resize(){nt("resizeParent","Parent window requested size check")},moveToAnchor(){V.findTarget(o())},inPageLink(){this.moveToAnchor()},pageInfo(){const e=o();ze(`PageInfo received from parent: ${e}`),me?me(JSON.parse(e)):rt(0,0,"pageInfoStop"),ze(" --")},parentInfo(){const e=o();ze(`ParentInfo received from parent: ${e}`),fe?fe(Object.freeze(JSON.parse(e))):rt(0,0,"parentInfoStop"),ze(" --")},message(){const e=o();ze(`onMessage called from parent: ${e}`),de(JSON.parse(e)),ze(" --")}},n=()=>e.data.split("]")[1].split(":")[0],o=()=>e.data.slice(e.data.indexOf(":")+1),i=()=>"iframeResize"in window||void 0!==window.jQuery&&""in window.jQuery.prototype,a=()=>e.data.split(":")[2]in{true:1,false:1};S===`${e.data}`.slice(0,j)&&(!1!==q?a()?t.init():ze(`Ignored message of type "${n()}". Received before initialization.`):function(){const o=n();o in t?t[o]():i()||a()||$e(`Unexpected message (${e.data})`)}())}function st(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}window.iframeChildListener=e=>lt({data:e,sameDomain:!0}),r(window,"message",lt),r(window,"readystatechange",st),st()}()}));
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";const e="5.2.0-beta.5",t=10,n="data-iframe-size",o="data-iframe-overflow",i="bottom",r="right",a=(e,t,n,o)=>e.addEventListener(t,n,o||!1),l=["<iy><yi>Puchspk Spjluzl Rlf</><iy><iy>","<iy><yi>Tpzzpun Spjluzl Rlf</><iy><iy>","Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.<iy><iy><i>Jvttlyjphs Spjluzl</><iy>Mvy jvttlyjphs bzl, <p>pmyhtl-ylzpgly</> ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>.<iy><iy><i>Vwlu Zvbyjl Spjluzl</><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-jvttlyjphs vwlu zvbyjl wyvqlja aolu fvb jhu bzl pa mvy myll bukly aol alytz vm aol NWS C3 Spjluzl. Av jvumpyt fvb hjjlwa aolzl alytz, wslhzl zla aol <i>spjluzl</> rlf pu <p>pmyhtl-ylzpgly</> vwapvuz av <i>NWSc3</>.<iy><iy>Mvy tvyl pumvythapvu wslhzl zll: <b>oaawz://pmyhtl-ylzpgly.jvt/nws</>","<i>NWSc3 Spjluzl Clyzpvu</><iy><iy>Aopz clyzpvu vm <p>pmyhtl-ylzpgly</> pz ilpun bzlk bukly aol alytz vm aol <i>NWS C3</> spjluzl. Aopz spjluzl hssvdz fvb av bzl <p>pmyhtl-ylzpgly</> pu Vwlu Zvbyjl wyvqljaz, iba pa ylxbpylz fvby wyvqlja av il wbispj, wyvcpkl haaypibapvu huk il spjluzlk bukly clyzpvu 3 vy shaly vm aol NUB Nlulyhs Wbispj Spjluzl.<iy><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-vwlu zvbyjl wyvqlja vy dlizpal, fvb dpss ullk av wbyjohzl h svd jvza vul aptl jvttlyjphs spjluzl.<iy><iy>Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>."];Object.fromEntries(["2cgs7fdf4xb","1c9ctcccr4z","1q2pc4eebgb","ueokt0969w","w2zxchhgqz","1umuxblj2e5"].map(((e,t)=>[e,Math.max(0,t-1)])));const s=e=>(e=>e.replaceAll(/[A-Za-z]/g,(e=>String.fromCodePoint((e<="Z"?90:122)>=(e=e.codePointAt(0)+19)?e:e-26))))(l[e]),c=e=>{let t=!1;return function(){return t?void 0:(t=!0,Reflect.apply(e,this,arguments))}},d=e=>e;let u=[];const m=e=>{const t=e.side||i,n=e.onChange||d,r={root:document.documentElement,rootMargin:"0px",threshold:1},a=new WeakSet,l=new IntersectionObserver((e=>{e.forEach((e=>{e.target.toggleAttribute(o,(e=>0===e.boundingClientRect[t]||e.boundingClientRect[t]>e.rootBounds[t])(e))})),u=document.querySelectorAll(`[${o}]`),n()}),r);return e=>e.forEach((e=>{a.has(e)||(l.observe(e),a.add(e))}))},f=()=>u.length>0;"undefined"!=typeof window&&function(){const o={contentVisibilityAuto:!0,opacityProperty:!0,visibilityProperty:!0},l={height:()=>(be("Custom height calculation function not defined"),Ye.auto()),width:()=>(be("Custom width calculation function not defined"),Ge.auto())},p={bodyOffset:1,bodyScroll:1,offset:1,documentElementOffset:1,documentElementScroll:1,documentElementBoundingClientRect:1,max:1,min:1,grow:1,lowestElement:1},h=128,g={},y="checkVisibility"in window,v="auto",b={reset:1,resetPage:1,init:1},z="[iFrameSizer]",w=z.length,$={max:1,min:1,bodyScroll:1,documentElementScroll:1},S=["body"],j="scroll";let P,E,M=!0,T="",C=0,A="",O=null,I="",R=!0,k=!1,N=null,x=!0,L=!1,B=1,q=v,H=!0,W="",F={},D=!0,U=!1,V=0,J=!1,Z="",Q=d,X="child",Y=null,G=!1,K="",_=window.parent,ee="*",te=0,ne=!1,oe="",ie=1,re=j,ae=window,le=()=>{be("onMessage function not defined")},se=()=>{},ce=null,de=null;const ue=e=>e.charAt(0).toUpperCase()+e.slice(1),me=e=>""!=`${e}`&&void 0!==e,fe=new WeakSet,pe=e=>"object"==typeof e&&fe.add(e);function he(e){switch(!0){case!me(e):return"";case me(e.id):return`${e.nodeName.toUpperCase()}#${e.id}`;case me(e.name):return`${e.nodeName.toUpperCase()} (${e.name})`;default:return e.nodeName.toUpperCase()+(me(e.className)?`.${e.className}`:"")}}const ge=(...e)=>[`[iframe-resizer][${Z}]`,...e].join(" "),ye=(...e)=>U&&console?.log(ge(...e)),ve=(...e)=>console?.info(`[iframe-resizer][${Z}]`,...e),be=(...e)=>console?.warn(ge(...e)),ze=(...e)=>console?.warn((e=>t=>window.chrome?e(t.replaceAll("<br>","\n").replaceAll("<rb>","").replaceAll("</>","").replaceAll("<b>","").replaceAll("<i>","").replaceAll("<u>","")):e(t.replaceAll("<br>","\n").replaceAll(/<[/a-z]+>/gi,"")))(ge)(...e)),we=e=>ze(e);function $e(){var o,d;!function(){const e=e=>"true"===e,t=W.slice(w).split(":");Z=t[0],C=void 0===t[1]?C:Number(t[1]),k=void 0===t[2]?k:e(t[2]),U=void 0===t[3]?U:e(t[3]),M=void 0===t[6]?M:e(t[6]),A=t[7],q=void 0===t[8]?q:t[8],T=t[9],I=t[10],te=void 0===t[11]?te:Number(t[11]),F.enable=void 0!==t[12]&&e(t[12]),X=void 0===t[13]?X:t[13],re=void 0===t[14]?re:t[14],J=void 0===t[15]?J:e(t[15]),P=void 0===t[16]?P:Number(t[16]),E=void 0===t[17]?E:Number(t[17]),R=void 0===t[18]?R:e(t[18]),t[19],oe=t[20]||oe,V=void 0===t[21]?V:Number(t[21])}(),function(){function e(){const e=window.iframeResizer||window.iFrameResizer;ye(`Reading data from page: ${JSON.stringify(e)}`),le=e?.onMessage||le,se=e?.onReady||se,"number"==typeof e?.offset&&(ze("<rb>Deprecated option</>\n\n The <b>offset</> option has been renamed to <b>offsetSize</>. Use of the old name will be removed in a future version of <i>iframe-resizer</>."),R&&(P=e?.offset),k&&(E=e?.offset)),"number"==typeof e?.offsetSize&&(R&&(P=e?.offsetSize),k&&(E=e?.offsetSize)),Object.prototype.hasOwnProperty.call(e,"sizeSelector")&&(K=e.sizeSelector),ee=e?.targetOrigin||ee,q=e?.heightCalculationMethod||q,re=e?.widthCalculationMethod||re}function t(e,t){return"function"==typeof e&&(ye(`Setup custom ${t}CalcMethod`),l[t]=e,e="custom"),e}1!==V&&("iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),q=t(q,"height"),re=t(re,"width")),ye(`TargetOrigin for parent set to: ${ee}`))}(),ye(`Initialising iFrame v${e} (${window.location.href})`),function(){try{G="iframeParentListener"in window.parent}catch(e){ye("Cross domain iframe detected.")}}(),V<0?we(`${s(V+2)}${s(2)}`):oe.codePointAt(0)>4||V<2&&we(s(3)),oe&&""!==oe&&"false"!==oe?oe!==e&&ze(`<rb>Version mismatch</>\n\nThe parent and child pages are running different versions of <i>iframe resizer</>.\n\nParent page: ${oe} - Child page: ${e}.\n`):ze("<rb>Legacy version detected on parent page</>\n\nDetected legacy version of parent page script. It is recommended to update the parent page to use <b>@iframe-resizer/parent</>.\n\nSee <u>https://iframe-resizer.com/setup/</> for more details.\n"),Ae(),Oe(),function(){let e=!1;const t=t=>document.querySelectorAll(`[${t}]`).forEach((o=>{e=!0,o.removeAttribute(t),o.toggleAttribute(n,!0)}));t("data-iframe-height"),t("data-iframe-width"),e&&ze("<rb>Deprecated Attributes</>\n \nThe <b>data-iframe-height</> and <b>data-iframe-width</> attributes have been deprecated and replaced with the single <b>data-iframe-size</> attribute. Use of the old attributes will be removed in a future version of <i>iframe-resizer</>.")}(),R!==k&&(Q=m({onChange:c(Se),side:R?i:r})),je(),1!==V&&(ae.parentIframe=Object.freeze({autoResize:e=>(!0===e&&!1===M?(M=!0,Ie()):!1===e&&!0===M&&(M=!1,Te("remove"),Y?.disconnect(),O?.disconnect()),ot(0,0,"autoResize",JSON.stringify(M)),M),close(){ot(0,0,"close")},getId:()=>Z,getPageInfo(e){if("function"==typeof e)return ce=e,ot(0,0,"pageInfo"),void ze("<rb>Deprecated Method</>\n \nThe <b>getPageInfo()</> method has been deprecated and replaced with <b>getParentProps()</>. Use of this method will be removed in a future version of <i>iframe-resizer</>.\n");ce=null,ot(0,0,"pageInfoStop")},getParentProps(e){if("function"!=typeof e)throw new TypeError("parentIFrame.getParentProps(callback) callback not a function");return de=e,ot(0,0,"parentInfo"),()=>{de=null,ot(0,0,"parentInfoStop")}},getParentProperties(e){ze("<rb>Renamed Method</>\n \nThe <b>getParentProperties()</> method has been renamed <b>getParentProps()</>. Use of the old name will be removed in a future version of <i>iframe-resizer</>.\n"),this.getParentProps(e)},moveToAnchor(e){F.findTarget(e)},reset(){nt("parentIFrame.reset")},scrollBy(e,t){ot(t,e,"scrollBy")},scrollTo(e,t){ot(t,e,"scrollTo")},scrollToOffset(e,t){ot(t,e,"scrollToOffset")},sendMessage(e,t){ot(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod(e){q=e,Ae()},setWidthCalculationMethod(e){re=e,Oe()},setTargetOrigin(e){ye(`Set targetOrigin: ${e}`),ee=e},resize(e,t){_e("size",`parentIFrame.size(${e||""}${t?`,${t}`:""})`,e,t)},size(e,t){ze("<rb>Deprecated Method</>\n \nThe <b>size()</> method has been deprecated and replaced with <b>resize()</>. Use of this method will be removed in a future version of <i>iframe-resizer</>.\n"),this.resize(e,t)}}),ae.parentIFrame=ae.parentIframe),function(){function e(e){ot(0,0,e.type,`${e.screenY}:${e.screenX}`)}function t(t,n){ye(`Add event listener: ${n}`),a(window.document,t,e)}!0===J&&(t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave"))}(),F=function(){const e=()=>({x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop});function n(n){const o=n.getBoundingClientRect(),i=e();return{x:parseInt(o.left,t)+parseInt(i.x,t),y:parseInt(o.top,t)+parseInt(i.y,t)}}function o(e){function t(e){const t=n(e);ye(`Moving to in page link (#${o}) at x: ${t.x}y: ${t.y}`),ot(t.y,t.x,"scrollToOffset")}const o=e.split("#")[1]||e,i=decodeURIComponent(o),r=document.getElementById(i)||document.getElementsByName(i)[0];void 0===r?(ye(`In page link (#${o}) not found in iFrame, so sending to parent`),ot(0,0,"inPageLink",`#${o}`)):t(r)}function i(){const{hash:e,href:t}=window.location;""!==e&&"#"!==e&&o(t)}function r(){function e(e){function t(e){e.preventDefault(),o(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&a(e,"click",t)}document.querySelectorAll('a[href^="#"]').forEach(e)}function l(){a(window,"hashchange",i)}function s(){setTimeout(i,h)}function c(){ye("Setting up location.hash handlers"),r(),l(),s()}return F.enable?1===V?ze("In page linking requires a Professional or Business license. Please see https://iframe-resizer.com/pricing for more details."):c():ye("In page linking not enabled"),{findTarget:o}}(),pe(document.documentElement),pe(document.body),void 0===A&&(A=`${C}px`),Pe("margin",(o="margin",(d=A).includes("-")&&(be(`Negative CSS value ignored for ${o}`),d=""),d)),Pe("background",T),Pe("padding",I),function(){const e=document.createElement("div");e.style.clear="both",e.style.display="block",e.style.height="0",document.body.append(e)}(),function(){const e=e=>e.style.setProperty("height","auto","important");e(document.documentElement),e(document.body),ye('HTML & body height set to "auto !important"')}(),Ee()}const Se=()=>{_e("init","Init message from host page",void 0,void 0,e),document.title&&""!==document.title&&ot(0,0,"title",document.title),Ie(),se(),D=!1,ye("Initialization complete"),ye("---")};function je(){const e=document.querySelectorAll(`[${n}]`);L=e.length>0,ye(`Tagged elements found: ${L}`),N=L?e:Je(document)(),L?setTimeout(Se):Q(N)}function Pe(e,t){void 0!==t&&""!==t&&"null"!==t&&(document.body.style.setProperty(e,t),ye(`Body ${e} set to "${t}"`))}function Ee(){""!==K&&(ye(`Applying sizeSelector: ${K}`),document.querySelectorAll(K).forEach((e=>{ye(`Applying data-iframe-size to: ${he(e)}`),e.dataset.iframeSize=!0})))}function Me(e){({add(t){function n(){_e(e.eventName,e.eventType)}g[t]=n,a(window,t,n,{passive:!0})},remove(e){const t=g[e];var n,o;delete g[e],n=e,o=t,window.removeEventListener(n,o,!1)}})[e.method](e.eventName),ye(`${ue(e.method)} event listener: ${e.eventType}`)}function Te(e){Me({method:e,eventType:"After Print",eventName:"afterprint"}),Me({method:e,eventType:"Before Print",eventName:"beforeprint"}),Me({method:e,eventType:"Ready State Change",eventName:"readystatechange"})}function Ce(e,t,n,o){return t!==e&&(e in n||(be(`${e} is not a valid option for ${o}CalculationMethod.`),e=t),e in p&&ze(`<rb>Deprecated ${o}CalculationMethod (${e})</>\n\nThis version of <i>iframe-resizer</> can auto detect the most suitable ${o} calculation method. It is recommended that you remove this option.`),ye(`${o} calculation method set to "${e}"`)),e}function Ae(){q=Ce(q,v,Ye,"height")}function Oe(){re=Ce(re,j,Ge,"width")}function Ie(){!0===M?(Te("add"),O=function(){function e(e){e.forEach(He),Ee(),je()}function t(){const t=new window.MutationObserver(e),n=document.querySelector("body"),o={attributes:!1,attributeOldValue:!1,characterData:!1,characterDataOldValue:!1,childList:!0,subtree:!0};return ye("Create <body/> MutationObserver"),t.observe(n,o),t}const n=t();return{disconnect(){ye("Disconnect MutationObserver"),n.disconnect()}}}(),Y=new ResizeObserver(ke),qe(window.document)):ye("Auto Resize disabled")}let Re;function ke(e){if(!Array.isArray(e)||0===e.length)return;const t=e[0].target;Re=()=>_e("resizeObserver",`Resize Observed: ${he(t)}`),setTimeout((()=>{Re&&Re(),Re=void 0}),0)}const Ne=e=>{const t=getComputedStyle(e);return""!==t?.position&&"static"!==t?.position},xe=()=>[...Je(document)()].filter(Ne),Le=new WeakSet;function Be(e){e&&(Le.has(e)||(Y.observe(e),Le.add(e),ye(`Attached resizeObserver: ${he(e)}`)))}function qe(e){[...xe(),...S.flatMap((t=>e.querySelector(t)))].forEach(Be)}function He(e){"childList"===e.type&&qe(e.target)}let We=null,Fe=4,De=4;function Ue(e){const t=ue(e);let n=0,i=document.documentElement,r=L?0:document.documentElement.getBoundingClientRect().bottom,a=performance.now();const l=!L&&f()?u:N;let s=l.length;l.forEach((t=>{L||!y||t.checkVisibility(o)?(n=t.getBoundingClientRect()[e]+parseFloat(getComputedStyle(t).getPropertyValue(`margin-${e}`)),n>r&&(r=n,i=t)):s-=1})),a=(performance.now()-a).toPrecision(1),function(e,t,n,o){fe.has(e)||We===e||L&&o<=1||(We=e,ve(`\n${t} position calculated from:\n`,e,`\nParsed ${o} ${L?"tagged":"potentially overflowing"} elements in ${n}ms`))}(i,t,a,s);const c=`\nParsed ${s} element${1===s?"":"s"} in ${a}ms\n${t} ${L?"tagged ":""}element found at: ${r}px\nPosition calculated from HTML element: ${he(i)} (${function(e,t=30){const n=e?.outerHTML?.toString();return n?n.length<t?n:`${n.slice(0,t).replaceAll("\n"," ")}...`:e}(i,100)})`;return a<4||s<99||L||D?ye(c):Fe<a&&Fe<De&&(Fe=1.2*a,ze(`<rb>Performance Warning</>\n\nCalculating the page size took an excessive amount of time. To improve performance add the <b>data-iframe-size</> attribute to the ${e} most element on the page.\n${c}`)),De=a,r}const Ve=e=>[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll(),e.documentElementBoundingClientRect()],Je=e=>()=>e.querySelectorAll("* :not(head):not(meta):not(base):not(title):not(script):not(link):not(style):not(map):not(area):not(option):not(optgroup):not(template):not(track):not(wbr):not(nobr)"),Ze={height:0,width:0},Qe={height:0,width:0};function Xe(e){function t(){return Qe[i]=r,Ze[i]=s,r}const n=f(),o=e===Ye,i=o?"height":"width",r=e.documentElementBoundingClientRect(),a=Math.ceil(r),l=Math.floor(r),s=(e=>e.documentElementScroll()+Math.max(0,e.getOffset()))(e),c=`HTML: ${r} Page: ${s}`;switch(!0){case!e.enabled():return s;case L:return e.taggedElement();case!n&&0===Qe[i]&&0===Ze[i]:return ye(`Initial page size values: ${c}`),t();case ne&&r===Qe[i]&&s===Ze[i]:return ye(`Size unchanged: ${c}`),Math.max(r,s);case 0===r:return ye(`Page is hidden: ${c}`),s;case!n&&r!==Qe[i]&&s<=Ze[i]:return ye(`New HTML bounding size: ${c}`,"Previous bounding size:",Qe[i]),t();case!o:return e.taggedElement();case!n&&r<Qe[i]:return ye("HTML bounding size decreased:",c),t();case s===l||s===a:return ye("HTML bounding size equals page size:",c),t();case r>s:return ye(`Page size < HTML bounding size: ${c}`),t();default:ye(`Content overflowing HTML element: ${c}`)}return Math.max(e.taggedElement(),t())}const Ye={enabled:()=>R,getOffset:()=>P,auto:()=>Xe(Ye),bodyOffset:()=>{const{body:e}=document,n=getComputedStyle(e);return e.offsetHeight+parseInt(n.marginTop,t)+parseInt(n.marginBottom,t)},bodyScroll:()=>document.body.scrollHeight,offset:()=>Ye.bodyOffset(),custom:()=>l.height(),documentElementOffset:()=>document.documentElement.offsetHeight,documentElementScroll:()=>document.documentElement.scrollHeight,documentElementBoundingClientRect:()=>document.documentElement.getBoundingClientRect().bottom,max:()=>Math.max(...Ve(Ye)),min:()=>Math.min(...Ve(Ye)),grow:()=>Ye.max(),lowestElement:()=>Ue(i),taggedElement:()=>Ue(i)},Ge={enabled:()=>k,getOffset:()=>E,auto:()=>Xe(Ge),bodyScroll:()=>document.body.scrollWidth,bodyOffset:()=>document.body.offsetWidth,custom:()=>l.width(),documentElementScroll:()=>document.documentElement.scrollWidth,documentElementOffset:()=>document.documentElement.offsetWidth,documentElementBoundingClientRect:()=>document.documentElement.getBoundingClientRect().right,max:()=>Math.max(...Ve(Ge)),min:()=>Math.min(...Ve(Ge)),rightMostElement:()=>Ue(r),scroll:()=>Math.max(Ge.bodyScroll(),Ge.documentElementScroll()),taggedElement:()=>Ue(r)};function Ke(e,t,n,o,i){let r,a;!function(){const e=(e,t)=>!(Math.abs(e-t)<=te);return r=void 0===n?Ye[q]():n,a=void 0===o?Ge[re]():o,R&&e(B,r)||k&&e(ie,a)}()&&"init"!==e?!(e in{init:1,size:1})&&(R&&q in $||k&&re in $)&&nt(t):(et(),B=r,ie=a,ot(B,ie,e,i))}function _e(e,t,n,o,i){document.hidden?ye("Page hidden - Ignored resize request"):(e in b||ye(`Trigger event: ${t}`),Ke(e,t,n,o,i))}function et(){ne||(ne=!0,ye("Trigger event lock on"),requestAnimationFrame((()=>{ne=!1,ye("Trigger event lock off"),ye("--")})))}function tt(e){B=Ye[q](),ie=Ge[re](),ot(B,ie,e)}function nt(e){const t=q;q=v,ye(`Reset trigger event: ${e}`),et(),tt("reset"),q=t}function ot(e,t,n,o,i){V<-1||(void 0!==i?ye(`Message targetOrigin: ${i}`):i=ee,function(){const r=`${Z}:${e+(P||0)}:${t+(E||0)}:${n}${void 0===o?"":`:${o}`}`;ye(`Sending message to host page (${r}) via ${G?"sameDomain":"postMessage"}`),G?window.parent.iframeParentListener(z+r):_.postMessage(z+r,i)}())}function it(e){const t={init:function(){W=e.data,_=e.source,$e(),x=!1,setTimeout((()=>{H=!1}),h)},reset(){H?ye("Page reset ignored by init"):(ye("Page size reset by host page"),tt("resetPage"))},resize(){_e("resizeParent","Parent window requested size check")},moveToAnchor(){F.findTarget(o())},inPageLink(){this.moveToAnchor()},pageInfo(){const e=o();ye(`PageInfo received from parent: ${e}`),ce?ce(JSON.parse(e)):ot(0,0,"pageInfoStop"),ye(" --")},parentInfo(){const e=o();ye(`ParentInfo received from parent: ${e}`),de?de(Object.freeze(JSON.parse(e))):ot(0,0,"parentInfoStop"),ye(" --")},message(){const e=o();ye(`onMessage called from parent: ${e}`),le(JSON.parse(e)),ye(" --")}},n=()=>e.data.split("]")[1].split(":")[0],o=()=>e.data.slice(e.data.indexOf(":")+1),i=()=>"iframeResize"in window||void 0!==window.jQuery&&""in window.jQuery.prototype,r=()=>e.data.split(":")[2]in{true:1,false:1};z===`${e.data}`.slice(0,w)&&(!1!==x?r()?t.init():ye(`Ignored message of type "${n()}". Received before initialization.`):function(){const o=n();o in t?t[o]():i()||r()||be(`Unexpected message (${e.data})`)}())}function rt(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}window.iframeChildListener=e=>it({data:e,sameDomain:!0}),a(window,"message",it),a(window,"readystatechange",rt),rt()}()}));
//# sourceMappingURL=index.umd.js.map
{
"name": "@iframe-resizer/child",
"version": "5.2.0-beta.4",
"version": "5.2.0-beta.5",
"license": "GPL-3.0",

@@ -5,0 +5,0 @@ "homepage": "https://iframe-resizer.com",

@@ -25,2 +25,2 @@ [<img src="https://iframe-resizer.com/logo-full.svg" alt="" title="" style="margin-bottom: -20px">](https://iframe-resizer.com)

_iframe-resizer version 5.2.0-beta.4 2024-07-11 - 13:40:16.253Z_
_iframe-resizer version 5.2.0-beta.5 2024-07-11 - 17:27:35.316Z_

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc