diff --git a/iframe-resizer.zip b/iframe-resizer.zip index 328799197..bfd44c24d 100644 Binary files a/iframe-resizer.zip and b/iframe-resizer.zip differ diff --git a/js-dist/iframe-resizer.child.js b/js-dist/iframe-resizer.child.js index 9b4855853..22d7e3b5d 100644 --- a/js-dist/iframe-resizer.child.js +++ b/js-dist/iframe-resizer.child.js @@ -1,7 +1,7 @@ /*! * @preserve * - * @module iframe-resizer/child 5.2.4 (iife) + * @module iframe-resizer/child 5.2.5 (iife) * * @license GPL-3.0 for non-commercial use only. * For commercial use, you must purchase a license from @@ -17,4 +17,4 @@ */ -!function(){"use strict";const e="5.2.4",t=10,n="data-iframe-size",o="data-iframe-overflow",i="bottom",r="right",a="resizeParent",l=(e,t,n,o)=>e.addEventListener(t,n,o||!1),s=(e,t,n)=>e.removeEventListener(t,n,!1),c=["Puchspk Spjluzl Rlf","Tpzzpun Spjluzl Rlf","Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.Jvttlyjphs SpjluzlMvy jvttlyjphs bzl,

pmyhtl-ylzpgly ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa oaawz://pmyhtl-ylzpgly.jvt/wypjpun.Vwlu Zvbyjl SpjluzlPm 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 spjluzl rlf pu

pmyhtl-ylzpgly vwapvuz av NWSc3.Mvy tvyl pumvythapvu wslhzl zll: oaawz://pmyhtl-ylzpgly.jvt/nws","NWSc3 Spjluzl ClyzpvuAopz clyzpvu vm

pmyhtl-ylzpgly pz ilpun bzlk bukly aol alytz vm aol NWS C3 spjluzl. Aopz spjluzl hssvdz fvb av bzl

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.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.Mvy tvyl pumvythapvu cpzpa oaawz://pmyhtl-ylzpgly.jvt/wypjpun."];Object.fromEntries(["2cgs7fdf4xb","1c9ctcccr4z","1q2pc4eebgb","ueokt0969w","w2zxchhgqz","1umuxblj2e5"].map(((e,t)=>[e,Math.max(0,t-1)])));const d=e=>(e=>e.replaceAll(/[A-Za-z]/g,(e=>String.fromCodePoint((e<="Z"?90:122)>=(e=e.codePointAt(0)+19)?e:e-26))))(c[e]),u=e=>{let t=!1;return function(){return t?void 0:(t=!0,Reflect.apply(e,this,arguments))}},m=e=>e;let f="";const p=e=>""!=`${e}`&&void 0!==e;const h=(...e)=>[`[iframe-resizer][${f}]`,...e].join(" "),y=(...e)=>console?.info(`[iframe-resizer][${f}]`,...e),g=(...e)=>console?.warn(h(...e)),v=(...e)=>console?.warn((e=>t=>window.chrome?e(t.replaceAll("
","\n").replaceAll("","").replaceAll("","").replaceAll("","").replaceAll("","").replaceAll("","")):e(t.replaceAll("
","\n").replaceAll(/<[/a-z]+>/gi,"")))(h)(...e)),b=e=>v(e);let w=[];const z=e=>{const t=e.side||i,n=e.onChange||m,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))})),w=document.querySelectorAll(`[${o}]`),n()}),r);function s(e){e?.nodeType===Node.ELEMENT_NODE&&(a.has(e)||(l.observe(e),a.add(e)))}return e=>e.forEach(s)},E=()=>w.length>0,S=1e5,j="--ifr-start",$="--ifr-end",P="--ifr-measure",T=[],C=new WeakSet,O=e=>"object"==typeof e&&C.add(e),M=e=>Math.floor(e*S)/S;let A=null,N=null,k={};const I=setInterval((()=>{if(T.length<10)return;if(k.hasTags&&k.len<25)return;T.sort();const e=Math.min(T.reduce(((e,t)=>e+t),0)/T.length,T[Math.floor(T.length/2)]);e<=4||(clearInterval(I),v(`Performance Warning\n\nCalculating the page size is taking an excessive amount of time (${M(e)}ms).\n\nTo improve performance add the data-iframe-size attribute to the ${k.Side.toLowerCase()} most element on the page. For more details see: https://iframe-resizer.com/perf.`))}),5e3);function R(e){e.getEntries().forEach((e=>{if(e.name===$){const{duration:t}=performance.measure(P,j,$);!function(e,t){const{Side:n,len:o,hasTags:i,logging:r}=e;k=e,C.has(N)||A===N||i&&o<=1||(r||O(N),A=N,y(`\n${n} position calculated from:`,N,`\nParsed ${o} ${i?"tagged":"potentially overflowing"} elements in ${M(t)}ms`))}(e.detail,t),T.push(t),T.length>100&&T.shift()}}))}function x(){new PerformanceObserver(R).observe({entryTypes:["mark"]}),O(document.documentElement),O(document.body)}"undefined"!=typeof document&&"undefined"!=typeof PerformanceObserver&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",x):x()),"undefined"!=typeof window&&function(){const o={contentVisibilityAuto:!0,opacityProperty:!0,visibilityProperty:!0},c={height:()=>(g("Custom height calculation function not defined"),qe.auto()),width:()=>(g("Custom width calculation function not defined"),De.auto())},h={bodyOffset:1,bodyScroll:1,offset:1,documentElementOffset:1,documentElementScroll:1,documentElementBoundingClientRect:1,max:1,min:1,grow:1,lowestElement:1},y=128,S={},P="checkVisibility"in window,T="auto",C="[iFrameSizer]",O=C.length,M={max:1,min:1,bodyScroll:1,documentElementScroll:1},A="scroll";let k,I,R=!0,x="",B=0,L="",q="",D=!0,W=!1,F=!0,U=!1,V=1,J=T,H=!0,Z="",_={},Q=!1,X=0,Y=!1,G="",K=m,ee="child",te=null,ne=!1,oe="",ie=[],re=window.parent,ae="*",le=0,se=!1,ce="",de=1,ue=A,me=window,fe=()=>{g("onMessage function not defined")},pe=()=>{},he=null,ye=null;function ge(){var o,s;!function(){const e=e=>"true"===e,t=Z.slice(O).split(":");G=t[0],B=void 0===t[1]?B:Number(t[1]),W=void 0===t[2]?W:e(t[2]),Q=void 0===t[3]?Q:e(t[3]),R=void 0===t[6]?R:e(t[6]),L=t[7],J=void 0===t[8]?J:t[8],x=t[9],q=t[10],le=void 0===t[11]?le:Number(t[11]),_.enable=void 0!==t[12]&&e(t[12]),ee=void 0===t[13]?ee:t[13],ue=void 0===t[14]?ue:t[14],Y=void 0===t[15]?Y:e(t[15]),k=void 0===t[16]?k:Number(t[16]),I=void 0===t[17]?I:Number(t[17]),D=void 0===t[18]?D:e(t[18]),t[19],ce=t[20]||ce,X=void 0===t[21]?X:Number(t[21])}(),function(){function e(){const e=window.iframeResizer||window.iFrameResizer;fe=e?.onMessage||fe,pe=e?.onReady||pe,"number"==typeof e?.offset&&(v("Deprecated option\n\n The offset option has been renamed to offsetSize. Use of the old name will be removed in a future version of iframe-resizer."),D&&(k=e?.offset),W&&(I=e?.offset)),"number"==typeof e?.offsetSize&&(D&&(k=e?.offsetSize),W&&(I=e?.offsetSize)),Object.prototype.hasOwnProperty.call(e,"sizeSelector")&&(oe=e.sizeSelector),ae=e?.targetOrigin||ae,J=e?.heightCalculationMethod||J,ue=e?.widthCalculationMethod||ue}function t(e,t){return"function"==typeof e&&(c[t]=e,e="custom"),e}1!==X&&"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),J=t(J,"height"),ue=t(ue,"width"))}(),f={id:G,logging:Q}.id,function(){try{ne="iframeParentListener"in window.parent}catch(e){}}(),X<0?b(`${d(X+2)}${d(2)}`):ce.codePointAt(0)>4||X<2&&b(d(3)),ce&&""!==ce&&"false"!==ce?ce!==e&&v(`Version mismatch\n\nThe parent and child pages are running different versions of iframe resizer.\n\nParent page: ${ce} - Child page: ${e}.\n`):v("Legacy version detected on parent page\n\nDetected legacy version of parent page script. It is recommended to update the parent page to use @iframe-resizer/parent.\n\nSee https://iframe-resizer.com/setup/ for more details.\n"),$e(),Pe(),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&&v("Deprecated Attributes\n \nThe data-iframe-height and data-iframe-width attributes have been deprecated and replaced with the single data-iframe-size attribute. Use of the old attributes will be removed in a future version of iframe-resizer.")}(),be(),D!==W&&(K=z({onChange:u(ve),side:D?i:r})),1!==X&&(me.parentIframe=Object.freeze({autoResize:e=>(!0===e&&!1===R?(R=!0,Fe("autoResizeEnabled","Auto Resize enabled")):!1===e&&!0===R&&(R=!1),He(0,0,"autoResize",JSON.stringify(R)),R),close(){He(0,0,"close")},getId:()=>G,getPageInfo(e){if("function"==typeof e)return he=e,He(0,0,"pageInfo"),void v("Deprecated Method\n \nThe getPageInfo() method has been deprecated and replaced with getParentProps(). Use of this method will be removed in a future version of iframe-resizer.\n");he=null,He(0,0,"pageInfoStop")},getParentProps(e){if("function"!=typeof e)throw new TypeError("parentIFrame.getParentProps(callback) callback not a function");return ye=e,He(0,0,"parentInfo"),()=>{ye=null,He(0,0,"parentInfoStop")}},getParentProperties(e){v("Renamed Method\n \nThe getParentProperties() method has been renamed getParentProps(). Use of the old name will be removed in a future version of iframe-resizer.\n"),this.getParentProps(e)},moveToAnchor(e){_.findTarget(e)},reset(){Je()},scrollBy(e,t){He(t,e,"scrollBy")},scrollTo(e,t){He(t,e,"scrollTo")},scrollToOffset(e,t){He(t,e,"scrollToOffset")},sendMessage(e,t){He(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod(e){J=e,$e()},setWidthCalculationMethod(e){ue=e,Pe()},setTargetOrigin(e){ae=e},resize(e,t){Fe(a,`parentIFrame.resize(${e||""}${t?`,${t}`:""})`,e,t)},size(e,t){v("Deprecated Method\n \nThe size() method has been deprecated and replaced with resize(). Use of this method will be removed in a future version of iframe-resizer.\n"),this.resize(e,t)}}),me.parentIFrame=me.parentIframe),function(){function e(e){He(0,0,e.type,`${e.screenY}:${e.screenX}`)}function t(t,n){l(window.document,t,e)}!0===Y&&(t("mouseenter"),t("mouseleave"))}(),_=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);He(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?He(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")&&l(e,"click",t)}document.querySelectorAll('a[href^="#"]').forEach(e)}function a(){l(window,"hashchange",i)}function s(){setTimeout(i,y)}function c(){r(),a(),s()}return _.enable&&(1===X?v("In page linking requires a Professional or Business license. Please see https://iframe-resizer.com/pricing for more details."):c()),{findTarget:o}}(),we(Re(document)()),void 0===L&&(L=`${B}px`),ze("margin",(o="margin",(s=L).includes("-")&&(g(`Negative CSS value ignored for ${o}`),s=""),s)),ze("background",x),ze("padding",q),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)}(),Ee()}const ve=()=>{var t;Fe("init","Init message from host page",void 0,void 0,e),document.title&&""!==document.title&&He(0,0,"title",document.title),Se({method:t="add",eventType:"After Print",eventName:"afterprint"}),Se({method:t,eventType:"Before Print",eventName:"beforeprint"}),Se({method:t,eventType:"Ready State Change",eventName:"readystatechange"}),function(){const e=new Set;let t=!1,n=0,o=[];const i=t=>{const{length:n}=t;for(let o=0;or*s+++a&&u0}function we(e){U?setTimeout(ve):K(e)}function ze(e,t){void 0!==t&&""!==t&&"null"!==t&&document.body.style.setProperty(e,t)}function Ee(){""!==oe&&document.querySelectorAll(oe).forEach((e=>{e.dataset.iframeSize=!0}))}function Se(e){({add(t){function n(){Fe(e.eventName,e.eventType)}S[t]=n,l(window,t,n,{passive:!0})},remove(e){const t=S[e];delete S[e],s(window,e,t)}})[e.method](e.eventName)}function je(e,t,n,o){return t!==e&&(e in n||(g(`${e} is not a valid option for ${o}CalculationMethod.`),e=t),e in h&&v(`Deprecated ${o}CalculationMethod (${e})\n\nThis version of iframe-resizer can auto detect the most suitable ${o} calculation method. It is recommended that you remove this option.`)),e}function $e(){J=je(J,T,qe,"height")}function Pe(){ue=je(ue,A,De,"width")}let Te;function Ce(e){if(!Array.isArray(e)||0===e.length)return;const t=e[0].target;Te=()=>Fe("resizeObserver",`Resize Observed: ${function(e){switch(!0){case!p(e):return"";case p(e.id):return`${e.nodeName.toUpperCase()}#${e.id}`;case p(e.name):return`${e.nodeName.toUpperCase()} (${e.name})`;default:return e.nodeName.toUpperCase()+(p(e.className)?`.${e.className}`:"")}}(t)}`),setTimeout((()=>{Te&&Te(),Te=void 0}),0)}const Oe=e=>{if(e?.nodeType!==Node.ELEMENT_NODE)return!1;const t=getComputedStyle(e);return""!==t?.position&&"static"!==t?.position},Me=e=>e?.nodeType!==Node.ELEMENT_NODE?null:[...Re(e)()].filter(Oe).forEach(Ne),Ae=new WeakSet;function Ne(e){Ae.has(e)||(te.observe(e),Ae.add(e))}function ke(e){performance.mark(j);const t=(n=e).charAt(0).toUpperCase()+n.slice(1);var n;let i=0,r=document.documentElement,a=U?0:document.documentElement.getBoundingClientRect().bottom;performance.mark(j);const l=U?ie:E()?w:Re(document)();let s=l.length;return l.forEach((t=>{U||!P||t.checkVisibility(o)?(i=t.getBoundingClientRect()[e]+parseFloat(getComputedStyle(t).getPropertyValue(`margin-${e}`)),i>a&&(a=i,r=t)):s-=1})),N=r,performance.mark($,{detail:{Side:t,len:s,hasTags:U,logging:Q}}),a}const Ie=e=>[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll(),e.documentElementBoundingClientRect()],Re=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)"),xe={height:0,width:0},Be={height:0,width:0};function Le(e){function t(){return Be[i]=r,xe[i]=s,r}const n=E(),o=e===qe,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);switch(!0){case!e.enabled():return s;case U:return e.taggedElement();case!n&&0===Be[i]&&0===xe[i]:return t();case se&&r===Be[i]&&s===xe[i]:return Math.max(r,s);case 0===r:return s;case!n&&r!==Be[i]&&s<=xe[i]:return t();case!o:return e.taggedElement();case!n&&rs:return t()}return Math.max(e.taggedElement(),t())}const qe={enabled:()=>D,getOffset:()=>k,auto:()=>Le(qe),bodyOffset:()=>{const{body:e}=document,n=getComputedStyle(e);return e.offsetHeight+parseInt(n.marginTop,t)+parseInt(n.marginBottom,t)},bodyScroll:()=>document.body.scrollHeight,offset:()=>qe.bodyOffset(),custom:()=>c.height(),documentElementOffset:()=>document.documentElement.offsetHeight,documentElementScroll:()=>document.documentElement.scrollHeight,documentElementBoundingClientRect:()=>document.documentElement.getBoundingClientRect().bottom,max:()=>Math.max(...Ie(qe)),min:()=>Math.min(...Ie(qe)),grow:()=>qe.max(),lowestElement:()=>ke(i),taggedElement:()=>ke(i)},De={enabled:()=>W,getOffset:()=>I,auto:()=>Le(De),bodyScroll:()=>document.body.scrollWidth,bodyOffset:()=>document.body.offsetWidth,custom:()=>c.width(),documentElementScroll:()=>document.documentElement.scrollWidth,documentElementOffset:()=>document.documentElement.offsetWidth,documentElementBoundingClientRect:()=>document.documentElement.getBoundingClientRect().right,max:()=>Math.max(...Ie(De)),min:()=>Math.min(...Ie(De)),rightMostElement:()=>ke(r),scroll:()=>Math.max(De.bodyScroll(),De.documentElementScroll()),taggedElement:()=>ke(r)};function We(e,t,n,o,i){let r,a;!function(){const e=(e,t)=>!(Math.abs(e-t)<=le);return r=void 0===n?qe[J]():n,a=void 0===o?De[ue]():o,D&&e(V,r)||W&&e(de,a)}()&&"init"!==e?!(e in{init:1,size:1})&&(D&&J in M||W&&ue in M)&&Je():(Ue(),V=r,de=a,He(V,de,e,i))}function Fe(e,t,n,o,i){(R||e===a)&&(document.hidden||We(e,0,n,o,i))}function Ue(){se||(se=!0,requestAnimationFrame((()=>{se=!1})))}function Ve(e){V=qe[J](),de=De[ue](),He(V,de,e)}function Je(e){const t=J;J=T,Ue(),Ve("reset"),J=t}function He(e,t,n,o,i){X<-1||(void 0!==i||(i=ae),function(){const r=`${G}:${e+(k||0)}:${t+(I||0)}:${n}${void 0===o?"":`:${o}`}`;ne?window.parent.iframeParentListener(C+r):re.postMessage(C+r,i)}())}function Ze(e){const t={init:function(){Z=e.data,re=e.source,ge(),F=!1,setTimeout((()=>{H=!1}),y)},reset(){H||Ve("resetPage")},resize(){Fe(a)},moveToAnchor(){_.findTarget(o())},inPageLink(){this.moveToAnchor()},pageInfo(){const e=o();he?he(JSON.parse(e)):He(0,0,"pageInfoStop")},parentInfo(){const e=o();ye?ye(Object.freeze(JSON.parse(e))):He(0,0,"parentInfoStop")},message(){const e=o();fe(JSON.parse(e))}},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};C===`${e.data}`.slice(0,O)&&(!1!==F?r()&&t.init():function(){const o=n();o in t?t[o]():i()||r()||g(`Unexpected message (${e.data})`)}())}function _e(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}function Qe(e){return Ze(e),me}window.iframeChildListener=e=>Ze({data:e,sameDomain:!0}),l(window,"message",Ze),l(window,"readystatechange",_e),_e();try{top?.document?.getElementById("banner")&&(me={},window.mockMsgListener=Qe,s(window,"message",Ze),define([],(()=>Qe)))}catch(e){}}()}(); +!function(){"use strict";const e="5.2.5",t=10,n="data-iframe-size",o="data-iframe-overflow",i="bottom",r="right",a="resizeParent",l=(e,t,n,o)=>e.addEventListener(t,n,o||!1),s=(e,t,n)=>e.removeEventListener(t,n,!1),c=["Puchspk Spjluzl Rlf","Tpzzpun Spjluzl Rlf","Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.Jvttlyjphs SpjluzlMvy jvttlyjphs bzl,

pmyhtl-ylzpgly ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa oaawz://pmyhtl-ylzpgly.jvt/wypjpun.Vwlu Zvbyjl SpjluzlPm 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 spjluzl rlf pu

pmyhtl-ylzpgly vwapvuz av NWSc3.Mvy tvyl pumvythapvu wslhzl zll: oaawz://pmyhtl-ylzpgly.jvt/nws","NWSc3 Spjluzl ClyzpvuAopz clyzpvu vm

pmyhtl-ylzpgly pz ilpun bzlk bukly aol alytz vm aol NWS C3 spjluzl. Aopz spjluzl hssvdz fvb av bzl

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.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.Mvy tvyl pumvythapvu cpzpa oaawz://pmyhtl-ylzpgly.jvt/wypjpun."];Object.fromEntries(["2cgs7fdf4xb","1c9ctcccr4z","1q2pc4eebgb","ueokt0969w","w2zxchhgqz","1umuxblj2e5"].map(((e,t)=>[e,Math.max(0,t-1)])));const d=e=>(e=>e.replaceAll(/[A-Za-z]/g,(e=>String.fromCodePoint((e<="Z"?90:122)>=(e=e.codePointAt(0)+19)?e:e-26))))(c[e]),u=e=>e;let m="";const f=e=>""!=`${e}`&&void 0!==e;const p=(...e)=>[`[iframe-resizer][${m||"child"}]`,...e].join(" "),h=(...e)=>console?.info(`[iframe-resizer][${m}]`,...e),y=(...e)=>console?.warn(p(...e)),g=(...e)=>console?.warn((e=>t=>window.chrome?e(t.replaceAll("
","\n").replaceAll("","").replaceAll("","").replaceAll("","").replaceAll("","").replaceAll("","")):e(t.replaceAll("
","\n").replaceAll(/<[/a-z]+>/gi,"")))(p)(...e)),b=e=>g(e);let v=[];const w=e=>{const t=e.side||i,n=e.onChange||u,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))})),v=document.querySelectorAll(`[${o}]`),n()}),r);function s(e){e?.nodeType===Node.ELEMENT_NODE&&(a.has(e)||(l.observe(e),a.add(e)))}return e=>e.forEach(s)},z=()=>v.length>0,E=1e5,S="--ifr-start",j="--ifr-end",C="--ifr-measure",$=[],M=new WeakSet,O=e=>"object"==typeof e&&M.add(e),P=e=>Math.floor(e*E)/E;let T=null,A=null,N={};const R=setInterval((()=>{if($.length<10)return;if(N.hasTags&&N.len<25)return;$.sort();const e=Math.min($.reduce(((e,t)=>e+t),0)/$.length,$[Math.floor($.length/2)]);e<=4||(clearInterval(R),g(`Performance Warning\n\nCalculating the page size is taking an excessive amount of time (${P(e)}ms).\n\nTo improve performance add the data-iframe-size attribute to the ${N.Side.toLowerCase()} most element on the page. For more details see: https://iframe-resizer.com/perf.`))}),5e3);function k(e){e.getEntries().forEach((e=>{if(e.name===j){const{duration:t}=performance.measure(C,S,j);!function(e,t){const{Side:n,len:o,hasTags:i,logging:r}=e;N=e,M.has(A)||T===A||i&&o<=1||(r||O(A),T=A,h(`\n${n} position calculated from:`,A,`\nParsed ${o} ${i?"tagged":"potentially overflowing"} elements in ${P(t)}ms`))}(e.detail,t),$.push(t),$.length>100&&$.shift()}}))}function I(){new PerformanceObserver(k).observe({entryTypes:["mark"]}),O(document.documentElement),O(document.body)}"undefined"!=typeof document&&"undefined"!=typeof PerformanceObserver&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",I):I()),"undefined"!=typeof window&&function(){const o={contentVisibilityAuto:!0,opacityProperty:!0,visibilityProperty:!0},c={height:()=>(y("Custom height calculation function not defined"),Le.auto()),width:()=>(y("Custom width calculation function not defined"),Be.auto())},p={bodyOffset:1,bodyScroll:1,offset:1,documentElementOffset:1,documentElementScroll:1,boundingClientRect:1,max:1,min:1,grow:1,lowestElement:1},h=128,E={},C="checkVisibility"in window,$="auto",M="[iFrameSizer]",O=M.length,P={max:1,min:1,bodyScroll:1,documentElementScroll:1},T="scroll";let N,R,k,I=!0,x="",L=0,B="",q="",D=!0,W=!1,F=!0,U=!1,V=1,J=$,H=!0,Z="",_={},Q=!1,X=0,Y=!1,G="",K=u,ee="child",te=null,ne=!1,oe="",ie=[],re=window.parent,ae="*",le=0,se=!1,ce="",de=1,ue=T,me=window,fe=()=>{y("onMessage function not defined")},pe=()=>{},he=null,ye=null;function ge(){var o,s,u;!function(){const e=e=>"true"===e,t=Z.slice(O).split(":");G=t[0],L=void 0===t[1]?L:Number(t[1]),W=void 0===t[2]?W:e(t[2]),Q=void 0===t[3]?Q:e(t[3]),I=void 0===t[6]?I:e(t[6]),B=t[7],J=void 0===t[8]?J:t[8],x=t[9],q=t[10],le=void 0===t[11]?le:Number(t[11]),_.enable=void 0!==t[12]&&e(t[12]),ee=void 0===t[13]?ee:t[13],ue=void 0===t[14]?ue:t[14],Y=void 0===t[15]?Y:e(t[15]),N=void 0===t[16]?N:Number(t[16]),R=void 0===t[17]?R:Number(t[17]),D=void 0===t[18]?D:e(t[18]),t[19],ce=t[20]||ce,X=void 0===t[21]?X:Number(t[21])}(),function(){function e(){const e=window.iframeResizer||window.iFrameResizer;fe=e?.onMessage||fe,pe=e?.onReady||pe,"number"==typeof e?.offset&&(g("Deprecated option\n\n The offset option has been renamed to offsetSize. Use of the old name will be removed in a future version of iframe-resizer."),D&&(N=e?.offset),W&&(R=e?.offset)),"number"==typeof e?.offsetSize&&(D&&(N=e?.offsetSize),W&&(R=e?.offsetSize)),Object.prototype.hasOwnProperty.call(e,"sizeSelector")&&(oe=e.sizeSelector),ae=e?.targetOrigin||ae,J=e?.heightCalculationMethod||J,ue=e?.widthCalculationMethod||ue}function t(e,t){return"function"==typeof e&&(c[t]=e,e="custom"),e}1!==X&&"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),J=t(J,"height"),ue=t(ue,"width"))}(),m={id:G,logging:Q}.id,function(){try{ne="iframeParentListener"in window.parent}catch(e){}}(),X<0?b(`${d(X+2)}${d(2)}`):ce.codePointAt(0)>4||X<2&&b(d(3)),ce&&""!==ce&&"false"!==ce?ce!==e&&g(`Version mismatch\n\nThe parent and child pages are running different versions of iframe resizer.\n\nParent page: ${ce} - Child page: ${e}.\n`):g("Legacy version detected on parent page\n\nDetected legacy version of parent page script. It is recommended to update the parent page to use @iframe-resizer/parent.\n\nSee https://iframe-resizer.com/setup/ for more details.\n"),je(),Ce(),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&&g("Deprecated Attributes\n \nThe data-iframe-height and data-iframe-width attributes have been deprecated and replaced with the single data-iframe-size attribute. Use of the old attributes will be removed in a future version of iframe-resizer.")}(),be(),D!==W&&(K=w({onChange:()=>De("overflowChanged","Overflow updated"),side:D?i:r})),1!==X&&(me.parentIframe=Object.freeze({autoResize:e=>(!0===e&&!1===I?(I=!0,De("autoResizeEnabled","Auto Resize enabled")):!1===e&&!0===I&&(I=!1),Ve(0,0,"autoResize",JSON.stringify(I)),I),close(){Ve(0,0,"close")},getId:()=>G,getPageInfo(e){if("function"==typeof e)return he=e,Ve(0,0,"pageInfo"),void g("Deprecated Method\n \nThe getPageInfo() method has been deprecated and replaced with getParentProps(). Use of this method will be removed in a future version of iframe-resizer.\n");he=null,Ve(0,0,"pageInfoStop")},getParentProps(e){if("function"!=typeof e)throw new TypeError("parentIFrame.getParentProps(callback) callback not a function");return ye=e,Ve(0,0,"parentInfo"),()=>{ye=null,Ve(0,0,"parentInfoStop")}},getParentProperties(e){g("Renamed Method\n \nThe getParentProperties() method has been renamed getParentProps(). Use of the old name will be removed in a future version of iframe-resizer.\n"),this.getParentProps(e)},moveToAnchor(e){_.findTarget(e)},reset(){Ue()},scrollBy(e,t){Ve(t,e,"scrollBy")},scrollTo(e,t){Ve(t,e,"scrollTo")},scrollToOffset(e,t){Ve(t,e,"scrollToOffset")},sendMessage(e,t){Ve(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod(e){J=e,je()},setWidthCalculationMethod(e){ue=e,Ce()},setTargetOrigin(e){ae=e},resize(e,t){De(a,`parentIFrame.resize(${e||""}${t?`,${t}`:""})`,e,t)},size(e,t){g("Deprecated Method\n \nThe size() method has been deprecated and replaced with resize(). Use of this method will be removed in a future version of iframe-resizer.\n"),this.resize(e,t)}}),me.parentIFrame=me.parentIframe),function(){function e(e){Ve(0,0,e.type,`${e.screenY}:${e.screenX}`)}function t(t,n){l(window.document,t,e)}!0===Y&&(t("mouseenter"),t("mouseleave"))}(),_=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);Ve(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?Ve(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")&&l(e,"click",t)}document.querySelectorAll('a[href^="#"]').forEach(e)}function a(){l(window,"hashchange",i)}function s(){setTimeout(i,h)}function c(){r(),a(),s()}return _.enable&&(1===X?g("In page linking requires a Professional or Business license. Please see https://iframe-resizer.com/pricing for more details."):c()),{findTarget:o}}(),ve(Re(document)()),void 0===B&&(B=`${L}px`),we("margin",(s="margin",(u=B).includes("-")&&(y(`Negative CSS value ignored for ${s}`),u=""),u)),we("background",x),we("padding",q),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(),De("init","Init message from host page",void 0,void 0,e),document.title&&""!==document.title&&Ve(0,0,"title",document.title),Ee({method:o="add",eventType:"After Print",eventName:"afterprint"}),Ee({method:o,eventType:"Before Print",eventName:"beforeprint"}),Ee({method:o,eventType:"Ready State Change",eventName:"readystatechange"}),function(){const e=new Set;let t=!1,n=0,o=[];const i=t=>{const{length:n}=t;for(let o=0;or*s+++a&&u0}function ve(e){U||K(e)}function we(e,t){void 0!==t&&""!==t&&"null"!==t&&document.body.style.setProperty(e,t)}function ze(){""!==oe&&document.querySelectorAll(oe).forEach((e=>{e.dataset.iframeSize=!0}))}function Ee(e){({add(t){function n(){De(e.eventName,e.eventType)}E[t]=n,l(window,t,n,{passive:!0})},remove(e){const t=E[e];delete E[e],s(window,e,t)}})[e.method](e.eventName)}function Se(e,t,n,o){return t!==e&&(e in n||(y(`${e} is not a valid option for ${o}CalculationMethod.`),e=t),e in p&&g(`Deprecated ${o}CalculationMethod (${e})\n\nThis version of iframe-resizer can auto detect the most suitable ${o} calculation method. It is recommended that you remove this option.`)),e}function je(){J=Se(J,$,Le,"height")}function Ce(){ue=Se(ue,T,Be,"width")}function $e(e){if(!Array.isArray(e)||0===e.length)return;const t=e[0].target;k=()=>De("resizeObserver",`Resize Observed: ${function(e){switch(!0){case!f(e):return"";case f(e.id):return`${e.nodeName.toUpperCase()}#${e.id}`;case f(e.name):return`${e.nodeName.toUpperCase()} (${e.name})`;default:return e.nodeName.toUpperCase()+(f(e.className)?`.${e.className}`:"")}}(t)}`),setTimeout((()=>{k&&k(),k=void 0}),0)}const Me=e=>{if(e?.nodeType!==Node.ELEMENT_NODE)return!1;const t=getComputedStyle(e);return""!==t?.position&&"static"!==t?.position},Oe=e=>e?.nodeType!==Node.ELEMENT_NODE?null:[...Re(e)()].filter(Me).forEach(Te),Pe=new WeakSet;function Te(e){Pe.has(e)||(te.observe(e),Pe.add(e))}function Ae(e){performance.mark(S);const t=(n=e).charAt(0).toUpperCase()+n.slice(1);var n;let i=0,r=document.documentElement,a=U?0:document.documentElement.getBoundingClientRect().bottom;performance.mark(S);const l=U?ie:z()?v:Re(document)();let s=l.length;return l.forEach((t=>{U||!C||t.checkVisibility(o)?(i=t.getBoundingClientRect()[e]+parseFloat(getComputedStyle(t).getPropertyValue(`margin-${e}`)),i>a&&(a=i,r=t)):s-=1})),A=r,performance.mark(j,{detail:{Side:t,len:s,hasTags:U,logging:Q}}),a}const Ne=e=>[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll(),e.boundingClientRect()],Re=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)"),ke={height:0,width:0},Ie={height:0,width:0};function xe(e){function t(){return Ie[i]=r,ke[i]=s,r}const n=z(),o=e===Le,i=o?"height":"width",r=e.boundingClientRect(),a=Math.ceil(r),l=Math.floor(r),s=(e=>e.documentElementScroll()+Math.max(0,e.getOffset()))(e);switch(!0){case!e.enabled():return s;case U:return e.taggedElement();case!n&&0===Ie[i]&&0===ke[i]:return t();case se&&r===Ie[i]&&s===ke[i]:return Math.max(r,s);case 0===r:return s;case!n&&r!==Ie[i]&&s<=ke[i]:return t();case!o:return e.taggedElement();case!n&&rs:return t()}return Math.max(e.taggedElement(),t())}const Le={enabled:()=>D,getOffset:()=>N,auto:()=>xe(Le),bodyOffset:()=>{const{body:e}=document,n=getComputedStyle(e);return e.offsetHeight+parseInt(n.marginTop,t)+parseInt(n.marginBottom,t)},bodyScroll:()=>document.body.scrollHeight,offset:()=>Le.bodyOffset(),custom:()=>c.height(),documentElementOffset:()=>document.documentElement.offsetHeight,documentElementScroll:()=>document.documentElement.scrollHeight,boundingClientRect:()=>Math.max(document.documentElement.getBoundingClientRect().bottom,document.body.getBoundingClientRect().bottom),max:()=>Math.max(...Ne(Le)),min:()=>Math.min(...Ne(Le)),grow:()=>Le.max(),lowestElement:()=>Ae(i),taggedElement:()=>Ae(i)},Be={enabled:()=>W,getOffset:()=>R,auto:()=>xe(Be),bodyScroll:()=>document.body.scrollWidth,bodyOffset:()=>document.body.offsetWidth,custom:()=>c.width(),documentElementScroll:()=>document.documentElement.scrollWidth,documentElementOffset:()=>document.documentElement.offsetWidth,boundingClientRect:()=>Math.max(document.documentElement.getBoundingClientRect().right,document.body.getBoundingClientRect().right),max:()=>Math.max(...Ne(Be)),min:()=>Math.min(...Ne(Be)),rightMostElement:()=>Ae(r),scroll:()=>Math.max(Be.bodyScroll(),Be.documentElementScroll()),taggedElement:()=>Ae(r)};function qe(e,t,n,o,i){let r,a;!function(){const e=(e,t)=>!(Math.abs(e-t)<=le);return r=void 0===n?Le[J]():n,a=void 0===o?Be[ue]():o,D&&e(V,r)||W&&e(de,a)}()&&"init"!==e?!(e in{init:1,size:1})&&(D&&J in P||W&&ue in P)&&Ue():(We(),V=r,de=a,Ve(V,de,e,i))}function De(e,t,n,o,i){(I||e===a)&&(document.hidden||qe(e,0,n,o,i))}function We(){se||(se=!0,requestAnimationFrame((()=>{se=!1})))}function Fe(e){V=Le[J](),de=Be[ue](),Ve(V,de,e)}function Ue(e){const t=J;J=$,We(),Fe("reset"),J=t}function Ve(e,t,n,o,i){X<-1||(void 0!==i||(i=ae),function(){const r=`${G}:${e+(N||0)}:${t+(R||0)}:${n}${void 0===o?"":`:${o}`}`;ne?window.parent.iframeParentListener(M+r):re.postMessage(M+r,i)}())}function Je(e){const t={init:function(){Z=e.data,re=e.source,ge(),F=!1,setTimeout((()=>{H=!1}),h)},reset(){H||Fe("resetPage")},resize(){De(a)},moveToAnchor(){_.findTarget(o())},inPageLink(){this.moveToAnchor()},pageInfo(){const e=o();he?he(JSON.parse(e)):Ve(0,0,"pageInfoStop")},parentInfo(){const e=o();ye?ye(Object.freeze(JSON.parse(e))):Ve(0,0,"parentInfoStop")},message(){const e=o();fe(JSON.parse(e))}},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};M===`${e.data}`.slice(0,O)&&(!1!==F?r()&&t.init():function(){const o=n();o in t?t[o]():i()||r()||y(`Unexpected message (${e.data})`)}())}function He(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}function Ze(e){return Je(e),me}"iframeChildListener"in window?y("Already setup"):(window.iframeChildListener=e=>Je({data:e,sameDomain:!0}),l(window,"message",Je),l(window,"readystatechange",He),He());try{top?.document?.getElementById("banner")&&(me={},window.mockMsgListener=Ze,s(window,"message",Je),define([],(()=>Ze)))}catch(e){}}()}(); diff --git a/js-dist/iframe-resizer.jquery.js b/js-dist/iframe-resizer.jquery.js index d6765512d..479ab6990 100644 --- a/js-dist/iframe-resizer.jquery.js +++ b/js-dist/iframe-resizer.jquery.js @@ -1,7 +1,7 @@ /*! * @preserve * - * @module iframe-resizer/jquery 5.2.4 (iife) + * @module iframe-resizer/jquery 5.2.5 (iife) * * @license GPL-3.0 for non-commercial use only. * For commercial use, you must purchase a license from @@ -17,4 +17,4 @@ */ -!function(){"use strict";const e="5.2.4",i="[iFrameSizer]",t=i.length,n=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),o=(e,i,t,n)=>e.addEventListener(i,t,n||!1),r=(e,i,t)=>e.removeEventListener(i,t,!1);const a="[iframe-resizer]";const s=e=>`${a}[${function(e){return window.top===window.self?`Parent page: ${e}`:window?.parentIFrame?.getId?`${window.parentIFrame.getId()}: ${e}`:`Nested parent page: ${e}`}(e)}]`,l=(e,i,...t)=>window?.console[e](s(i),...t),c=(e,...i)=>l("warn",e,...i),d=(e,i)=>console?.warn((e=>i=>window.chrome?e(i.replaceAll("
","\n").replaceAll("","").replaceAll("","").replaceAll("","").replaceAll("","").replaceAll("","")):e(i.replaceAll("
","\n").replaceAll(/<[/a-z]+>/gi,"")))((e=>(...i)=>[`${a}[${e}]`,...i].join(" "))(e))(i)),u=e=>{if(!e)return"";let i=-559038744,t=1103547984;for(let n,o=0;o>>15,1935289751),t^=Math.imul(t^i>>>15,3405138345),i^=t>>>16,t^=i>>>16,(2097152*(t>>>0)+(i>>>11)).toString(36)},f=e=>e.replaceAll(/[A-Za-z]/g,(e=>String.fromCodePoint((e<="Z"?90:122)>=(e=e.codePointAt(0)+19)?e:e-26))),p=["Puchspk Spjluzl Rlf","Tpzzpun Spjluzl Rlf","Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.Jvttlyjphs SpjluzlMvy jvttlyjphs bzl,

pmyhtl-ylzpgly ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa oaawz://pmyhtl-ylzpgly.jvt/wypjpun.Vwlu Zvbyjl SpjluzlPm 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 spjluzl rlf pu

pmyhtl-ylzpgly vwapvuz av NWSc3.Mvy tvyl pumvythapvu wslhzl zll: oaawz://pmyhtl-ylzpgly.jvt/nws","NWSc3 Spjluzl ClyzpvuAopz clyzpvu vm

pmyhtl-ylzpgly pz ilpun bzlk bukly aol alytz vm aol NWS C3 spjluzl. Aopz spjluzl hssvdz fvb av bzl

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.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.Mvy tvyl pumvythapvu cpzpa oaawz://pmyhtl-ylzpgly.jvt/wypjpun."],h=["NWSc3","zvsv","wyv","ibzpulzz","vlt"],m=Object.fromEntries(["2cgs7fdf4xb","1c9ctcccr4z","1q2pc4eebgb","ueokt0969w","w2zxchhgqz","1umuxblj2e5"].map(((e,i)=>[e,Math.max(0,i-1)]))),y=e=>f(p[e]);var g=e=>{const i=e[f("spjluzl")];if(!i)return-1;const t=i.split("-");let n=function(e=""){let i=-2;const t=u(f(e));return t in m&&(i=m[t]),i}(t[0]);return 0===n||(e=>e[2]===u(e[0]+e[1]))(t)||(n=-2),n};var w={};var b=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyPadding:null,checkOrigin:!0,direction:"vertical",inPageLinks:!1,heightCalculationMethod:"auto",id:"iFrameResizer",log:!1,license:void 0,mouseEvents:!0,offsetHeight:null,offsetWidth:null,postMessageTarget:null,sameDomain:!1,scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,waitForLoad:!1,widthCalculationMethod:"auto",onClose:()=>!0,onClosed(){},onInit:!1,onMessage:null,onMouseEnter(){},onMouseLeave(){},onReady:e=>{"function"==typeof w[e.id].onInit&&(d(e.id,"\nDeprecated Option\n\nThe onInit() function is deprecated and has been replaced with onReady(). It will be removed in a future version of iFrame Resizer.\n "),w[e.id].onInit(e))},onResized(){},onScroll:()=>!0}),v={position:null,version:e};function z(n){function a(){S(H),I(),C("onResized",H)}function s(e){if("border-box"!==e.boxSizing)return 0;return(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function l(e){if("border-box"!==e.boxSizing)return 0;return(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function u(e){return A.slice(A.indexOf(":")+7+e)}const f=(e,i)=>(t,n)=>{const o={};var r,a;r=function(){x(`Send ${e} (${t})`,`${e}:${i()}`,n)},o[a=n]||(r(),o[a]=requestAnimationFrame((()=>{o[a]=null})))},p=(e,i)=>()=>{const t=i=>()=>{w[s]?e(i,s):a()};function n(e,i){i(window,"scroll",t("scroll")),i(window,"resize",t("resize window"))}function a(){n(0,r),l.disconnect(),c.disconnect()}const s=P,l=new ResizeObserver(t("page observed")),c=new ResizeObserver(t("iframe observed"));n(0,o),l.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),c.observe(w[s].iframe,{attributes:!0,childList:!1,subtree:!1}),w[s]&&(w[s][`stop${i}`]=a)},h=e=>()=>{e in w[P]&&(w[P][e](),delete w[P][e])},m=f("pageInfo",(function(){const e=document.body.getBoundingClientRect(),i=H.iframe.getBoundingClientRect(),{scrollY:t,scrollX:n,innerHeight:o,innerWidth:r}=window,{clientHeight:a,clientWidth:s}=document.documentElement;return JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(a,o||0),clientWidth:Math.max(s,r||0),offsetTop:parseInt(i.top-e.top,10),offsetLeft:parseInt(i.left-e.left,10),scrollTop:t,scrollLeft:n,documentHeight:a,documentWidth:s,windowHeight:o,windowWidth:r})})),y=f("parentInfo",(function(){const{iframe:e}=H,{scrollWidth:i,scrollHeight:t}=document.documentElement,{width:n,height:o,offsetLeft:r,offsetTop:a,pageLeft:s,pageTop:l,scale:c}=window.visualViewport;return JSON.stringify({iframe:e.getBoundingClientRect(),document:{scrollWidth:i,scrollHeight:t},viewport:{width:n,height:o,offsetLeft:r,offsetTop:a,pageLeft:s,pageTop:l,scale:c}})})),g=p(m,"PageInfo"),b=p(y,"ParentInfo"),z=h("stopPageInfo"),k=h("stopParentInfo");function F(e){const i=e.getBoundingClientRect();return R(),{x:Number(i.left)+Number(v.position.x),y:Number(i.top)+Number(v.position.y)}}function N(e){const i=e?F(H.iframe):{x:0,y:0};let t=((e,i)=>({x:e.width+i.x,y:e.height+i.y}))(H,i);window.top===window.self?(v.position=t,E(P)):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):c(P,"Unable to scroll to requested position, window.parentIFrame not found")}function E(e){const{x:i,y:t}=v.position,n=w[e]?.iframe;!1!==C("onScroll",{iframe:n,top:t,left:i,x:i,y:t})?I():$()}function O(e){let i={};if(0===H.width&&0===H.height){const e=u(9).split(":");i={x:e[1],y:e[0]}}else i={x:H.width,y:H.height};C(e,{iframe:H.iframe,screenX:Number(i.x),screenY:Number(i.y),type:H.type})}const C=(e,i)=>j(P,e,i);let A=n.data,H={},P=null;"[iFrameResizerChild]Ready"!==A?i===`${A}`.slice(0,t)&&A.slice(t).split(":")[0]in w&&(H=function(){const e=A.slice(t).split(":"),i=e[1]?Number(e[1]):0,n=w[e[0]]?.iframe,o=getComputedStyle(n);return{iframe:n,id:e[0],height:i+s(o)+l(o),width:Number(e[2]),type:e[3],msg:e[4]}}(),P=H.id,P?(function(e){if(!w[e])throw new Error(`${H.type} No settings for ${e}. Message was: ${A}`)}(P),H.type in{true:1,false:1,undefined:1}||(w[P].loaded=!0,function(){let e=!0;return null===H.iframe&&(c(P,`The iframe (${H.id}) was not found.`),e=!1),e}()&&function(){const{origin:e,sameDomain:i}=n;if(i)return!0;let t=w[P]?.checkOrigin;if(t&&"null"!=`${e}`&&!(t.constructor===Array?function(){let i=0,n=!1;for(;iLegacy version detected in iframe\n\nDetected legacy version of child page script. It is recommended to update the page in the iframe to use @iframe-resizer/child.\n\nSee https://iframe-resizer.com/setup/#child-page-setup for more details.\n")),L=!0,C("onReady",H.iframe);break;default:if(0===H.width&&0===H.height)return void c(P,`Unsupported message received (${H.type}), this is likely due to the iframe containing a later version of iframe-resizer than the parent page`);if(0===H.width||0===H.height)return;if(document.hidden)return;a()}var i,t}())):c("","iframeResizer received messageData without id, message was: ",A)):Object.keys(w).forEach((e=>{w[e].mode>=0&&x("iFrame requested init",W(e),e)}))}function j(e,i,t){let n=null,o=null;if(w[e]){if(n=w[e][i],"function"!=typeof n)throw new TypeError(`${i} on iFrame[${e}] is not a function`);o=n(t)}return o}function k(e){const i=e.id;delete w[i]}function T(e){const i=e.id;if(!1!==j(i,"onClose",i)){try{e.parentNode&&e.remove()}catch(e){c(i,e)}j(i,"onClosed",i),k(e)}}function R(e){null===v.position&&(v.position={x:window.scrollX,y:window.scrollY})}function $(){v.position=null}function I(e){null!==v.position&&(window.scrollTo(v.position.x,v.position.y),$())}function M(e){R(e.id),S(e),x("reset","reset",e.id)}function S(e){const i=e.id;function t(i){const t=`${e[i]}px`;e.iframe.style[i]=t}w[i].sizeHeight&&t("height"),w[i].sizeWidth&&t("width")}function x(e,t,n,o){w[n]&&(w[n]?.postMessageTarget?function(){const{postMessageTarget:e,targetOrigin:o}=w[n];if(w[n].sameDomain)try{return void w[n].iframe.contentWindow.iframeChildListener(i+t)}catch(e){}e.postMessage(i+t,o)}():c(n,`[${e}] IFrame(${n}) not found`),o&&w[n]?.warningTimeout&&(w[n].msgTimeout=setTimeout((function(){if(void 0===w[n])return;const{waitForLoad:e}=w[n];w[n].loaded||w[n].loadErrorShown||(w[n].loadErrorShown=!0,d(n,`\nNo response from iFrame\n \nThe iframe (${n}) has not responded within ${w[n].warningTimeout/1e3} seconds. Check @iframe-resizer/child package has been loaded in the iframe.\n${e?"\nThe waitForLoad option is currently set to true. If the iframe loads before the JavaScript runs, this option will prevent iframe-resizer from initialising. To disable this, set the waitForLoad option to false. \n":""}\nThis message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.\n`))}),w[n].warningTimeout)))}function W(e){const i=w[e];return[e,"8",i.sizeWidth,i.log,"32",!0,i.autoResize,i.bodyMargin,i.heightCalculationMethod,i.bodyBackground,i.bodyPadding,i.tolerance,i.inPageLinks,"child",i.widthCalculationMethod,i.mouseEvents,i.offsetHeight,i.offsetWidth,i.sizeHeight,i.license,v.version,i.mode].join(":")}let F=0,L=!1,N=!1;var E=i=>t=>{function r(e){if(!e)return{};if("object"!=typeof e)throw new TypeError("Options is not an object");return("sizeWidth"in e||"sizeHeight"in e||"autoResize"in e)&&d(s,'Deprecated Option\n\nThe sizeWidth, sizeHeight and autoResize options have been replaced with new direction option which expects values of "vertical", "horizontal" or "horizontal".\n'),e}function a(e){const i=w[e]?.iframe?.title;return""===i||void 0===i}const s=function(e){if(e&&"string"!=typeof e)throw new TypeError("Invalid id for iFrame. Expected String");return""!==e&&e||(t.id=e=function(){let e=i?.id||b.id+F++;return null!==document.getElementById(e)&&(e+=F++),e}(),(i||{}).log),e}(t.id);return s in w&&"iFrameResizer"in t?c(s,"Ignored iFrame, already setup."):(function(e){var i,n;w[s]={iframe:t,firstRun:!0,remoteHost:t?.src.split("/").slice(0,3).join("/"),...b,...r(e),mode:g(e),syncTitle:a(s)},function(){if("horizontal"===w[s].direction)return w[s].sizeWidth=!0,void(w[s].sizeHeight=!1);if("none"===w[s].direction)return w[s].sizeWidth=!1,w[s].sizeHeight=!1,void(w[s].autoResize=!1);if("vertical"!==w[s].direction)throw new TypeError(s,`Direction value of "${w[s].direction}" is not valid`)}(),(i=e?.offsetSize||e?.offset)&&("vertical"===w[s].direction?w[s].offsetHeight=i:w[s].offsetWidth=i),e?.offset&&d(s,"Deprecated option\n\n The offset option has been renamed to offsetSize. Use of the old name will be removed in a future version of iframe-resizer."),null===w[s].postMessageTarget&&(w[s].postMessageTarget=t.contentWindow),w[s].targetOrigin=!0===w[s].checkOrigin?""===(n=w[s].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*"}(i),function(){const{mode:i}=w[s];i<0&&d("Parent",`${y(i+2)}${y(2)}`),N||i<0||(N=!0,((e,...i)=>{l("info",e,...i)})(`v${e} (${(e=>f(h[e]))(i)})`),i<1&&d("Parent",y(3)))}(),C(),function(){switch(t.style.overflow=!1===w[s]?.scrolling?"hidden":"auto",w[s]?.scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=w[s]?w[s].scrolling:"no"}}(),function(){const{bodyMargin:e}=w[s];"number"!=typeof e&&"0"!==e||(w[s].bodyMargin=`${e}px`)}(),function(e){const{id:i}=t;-1!==w[i].mode&&-2!==w[i].mode&&(o(t,"load",(function(){x("iFrame.onload",`${e}:${L}`,i,!0),function(){const e=w[s]?.firstRun,i=w[s]?.heightCalculationMethod in n;!e&&i&&M({iframe:t,height:0,width:0,type:"init"})}()})),!1===w[i].waitForLoad&&x("init",`${e}:${L}`,i,!0))}(W(s)),function(){if(w[s]){const e={close:T.bind(null,w[s].iframe),disconnect:k.bind(null,w[s].iframe),removeListeners(){d(s,"\nDeprecated Method Name\n\nThe emoveListeners() method has been renamed to isconnect().\n"),this.disconnect()},resize:x.bind(null,"Window resize","resize",s),moveToAnchor(e){x("Move to anchor",`moveToAnchor:${e}`,s)},sendMessage(e){x("Send Message",`message:${e=JSON.stringify(e)}`,s)}};w[s].iframe.iframeResizer=e,w[s].iframe.iFrameResizer=e}}()),t?.iFrameResizer};function O(){!1===document.hidden&&function(e,i){const t=e=>w[e]?.autoResize&&!w[e]?.firstRun;Object.keys(w).forEach((function(n){t(n)&&x(e,i,n)}))}("Tab Visible","resize")}const C=(e=>{let i=!1;return function(){return i?void 0:(i=!0,Reflect.apply(e,this,arguments))}})((()=>{o(window,"message",z),o(document,"visibilitychange",O),window.iframeParentListener=e=>z({data:e,sameDomain:!0})}));switch(!0){case void 0===window.jQuery:c("","Unable to bind to jQuery, it is not available.");break;case!window.jQuery.fn:c("","Unable to bind to jQuery, it is not fully loaded.");break;case window.jQuery.fn.iframeResize:c("","iframeResize is already assigned to jQuery.fn.");break;default:window.jQuery.fn.iframeResize=function(e){const i=E(e);return this.filter("iframe").each(i).end()},window.jQuery.fn.iFrameResize=function(e){return c("","Deprecated: Use the iframeResize method instead of iFrameResize"),this.iframeResize(e)}}}(); +!function(){"use strict";const e="5.2.5",i="[iFrameSizer]",t=i.length,n=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),o=(e,i,t,n)=>e.addEventListener(i,t,n||!1),r=(e,i,t)=>e.removeEventListener(i,t,!1);const a="[iframe-resizer]";const s=e=>`${a}[${function(e){return window.top===window.self?`Parent page: ${e}`:window?.parentIFrame?.getId?`${window.parentIFrame.getId()}: ${e}`:`Nested parent page: ${e}`}(e)}]`,l=(e,i,...t)=>window?.console[e](s(i),...t),c=(e,...i)=>l("warn",e,...i),d=(e,i)=>console?.warn((e=>i=>window.chrome?e(i.replaceAll("
","\n").replaceAll("","").replaceAll("","").replaceAll("","").replaceAll("","").replaceAll("","")):e(i.replaceAll("
","\n").replaceAll(/<[/a-z]+>/gi,"")))((e=>(...i)=>[`${a}[${e}]`,...i].join(" "))(e))(i)),u=e=>{if(!e)return"";let i=-559038744,t=1103547984;for(let n,o=0;o>>15,1935289751),t^=Math.imul(t^i>>>15,3405138345),i^=t>>>16,t^=i>>>16,(2097152*(t>>>0)+(i>>>11)).toString(36)},f=e=>e.replaceAll(/[A-Za-z]/g,(e=>String.fromCodePoint((e<="Z"?90:122)>=(e=e.codePointAt(0)+19)?e:e-26))),p=["Puchspk Spjluzl Rlf","Tpzzpun Spjluzl Rlf","Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.Jvttlyjphs SpjluzlMvy jvttlyjphs bzl,

pmyhtl-ylzpgly ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa oaawz://pmyhtl-ylzpgly.jvt/wypjpun.Vwlu Zvbyjl SpjluzlPm 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 spjluzl rlf pu

pmyhtl-ylzpgly vwapvuz av NWSc3.Mvy tvyl pumvythapvu wslhzl zll: oaawz://pmyhtl-ylzpgly.jvt/nws","NWSc3 Spjluzl ClyzpvuAopz clyzpvu vm

pmyhtl-ylzpgly pz ilpun bzlk bukly aol alytz vm aol NWS C3 spjluzl. Aopz spjluzl hssvdz fvb av bzl

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.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.Mvy tvyl pumvythapvu cpzpa oaawz://pmyhtl-ylzpgly.jvt/wypjpun."],h=["NWSc3","zvsv","wyv","ibzpulzz","vlt"],m=Object.fromEntries(["2cgs7fdf4xb","1c9ctcccr4z","1q2pc4eebgb","ueokt0969w","w2zxchhgqz","1umuxblj2e5"].map(((e,i)=>[e,Math.max(0,i-1)]))),y=e=>f(p[e]);var g=e=>{const i=e[f("spjluzl")];if(!i)return-1;const t=i.split("-");let n=function(e=""){let i=-2;const t=u(f(e));return t in m&&(i=m[t]),i}(t[0]);return 0===n||(e=>e[2]===u(e[0]+e[1]))(t)||(n=-2),n};var w={};var b=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyPadding:null,checkOrigin:!0,direction:"vertical",inPageLinks:!1,heightCalculationMethod:"auto",id:"iFrameResizer",log:!1,license:void 0,mouseEvents:!0,offsetHeight:null,offsetWidth:null,postMessageTarget:null,sameDomain:!1,scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,waitForLoad:!1,widthCalculationMethod:"auto",onClose:()=>!0,onClosed(){},onInit:!1,onMessage:null,onMouseEnter(){},onMouseLeave(){},onReady:e=>{"function"==typeof w[e.id].onInit&&(d(e.id,"\nDeprecated Option\n\nThe onInit() function is deprecated and has been replaced with onReady(). It will be removed in a future version of iFrame Resizer.\n "),w[e.id].onInit(e))},onResized(){},onScroll:()=>!0}),v={position:null,version:e};function z(n){function a(){S(H),I(),C("onResized",H)}function s(e){if("border-box"!==e.boxSizing)return 0;return(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function l(e){if("border-box"!==e.boxSizing)return 0;return(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function u(e){return A.slice(A.indexOf(":")+7+e)}const f=(e,i)=>(t,n)=>{const o={};var r,a;r=function(){x(`Send ${e} (${t})`,`${e}:${i()}`,n)},o[a=n]||(r(),o[a]=requestAnimationFrame((()=>{o[a]=null})))},p=(e,i)=>()=>{const t=i=>()=>{w[s]?e(i,s):a()};function n(e,i){i(window,"scroll",t("scroll")),i(window,"resize",t("resize window"))}function a(){n(0,r),l.disconnect(),c.disconnect()}const s=P,l=new ResizeObserver(t("page observed")),c=new ResizeObserver(t("iframe observed"));n(0,o),l.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),c.observe(w[s].iframe,{attributes:!0,childList:!1,subtree:!1}),w[s]&&(w[s][`stop${i}`]=a)},h=e=>()=>{e in w[P]&&(w[P][e](),delete w[P][e])},m=f("pageInfo",(function(){const e=document.body.getBoundingClientRect(),i=H.iframe.getBoundingClientRect(),{scrollY:t,scrollX:n,innerHeight:o,innerWidth:r}=window,{clientHeight:a,clientWidth:s}=document.documentElement;return JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(a,o||0),clientWidth:Math.max(s,r||0),offsetTop:parseInt(i.top-e.top,10),offsetLeft:parseInt(i.left-e.left,10),scrollTop:t,scrollLeft:n,documentHeight:a,documentWidth:s,windowHeight:o,windowWidth:r})})),y=f("parentInfo",(function(){const{iframe:e}=H,{scrollWidth:i,scrollHeight:t}=document.documentElement,{width:n,height:o,offsetLeft:r,offsetTop:a,pageLeft:s,pageTop:l,scale:c}=window.visualViewport;return JSON.stringify({iframe:e.getBoundingClientRect(),document:{scrollWidth:i,scrollHeight:t},viewport:{width:n,height:o,offsetLeft:r,offsetTop:a,pageLeft:s,pageTop:l,scale:c}})})),g=p(m,"PageInfo"),b=p(y,"ParentInfo"),z=h("stopPageInfo"),k=h("stopParentInfo");function F(e){const i=e.getBoundingClientRect();return R(),{x:Number(i.left)+Number(v.position.x),y:Number(i.top)+Number(v.position.y)}}function N(e){const i=e?F(H.iframe):{x:0,y:0};let t=((e,i)=>({x:e.width+i.x,y:e.height+i.y}))(H,i);window.top===window.self?(v.position=t,E(P)):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):c(P,"Unable to scroll to requested position, window.parentIFrame not found")}function E(e){const{x:i,y:t}=v.position,n=w[e]?.iframe;!1!==C("onScroll",{iframe:n,top:t,left:i,x:i,y:t})?I():$()}function O(e){let i={};if(0===H.width&&0===H.height){const e=u(9).split(":");i={x:e[1],y:e[0]}}else i={x:H.width,y:H.height};C(e,{iframe:H.iframe,screenX:Number(i.x),screenY:Number(i.y),type:H.type})}const C=(e,i)=>j(P,e,i);let A=n.data,H={},P=null;"[iFrameResizerChild]Ready"!==A?i===`${A}`.slice(0,t)&&A.slice(t).split(":")[0]in w&&(H=function(){const e=A.slice(t).split(":"),i=e[1]?Number(e[1]):0,n=w[e[0]]?.iframe,o=getComputedStyle(n);return{iframe:n,id:e[0],height:i+s(o)+l(o),width:Number(e[2]),type:e[3],msg:e[4]}}(),P=H.id,P?(function(e){if(!w[e])throw new Error(`${H.type} No settings for ${e}. Message was: ${A}`)}(P),H.type in{true:1,false:1,undefined:1}||(w[P].loaded=!0,function(){let e=!0;return null===H.iframe&&(c(P,`The iframe (${H.id}) was not found.`),e=!1),e}()&&function(){const{origin:e,sameDomain:i}=n;if(i)return!0;let t=w[P]?.checkOrigin;if(t&&"null"!=`${e}`&&!(t.constructor===Array?function(){let i=0,n=!1;for(;iLegacy version detected in iframe\n\nDetected legacy version of child page script. It is recommended to update the page in the iframe to use @iframe-resizer/child.\n\nSee https://iframe-resizer.com/setup/#child-page-setup for more details.\n")),L=!0,C("onReady",H.iframe);break;default:if(0===H.width&&0===H.height)return void c(P,`Unsupported message received (${H.type}), this is likely due to the iframe containing a later version of iframe-resizer than the parent page`);if(0===H.width||0===H.height)return;if(document.hidden)return;a()}var i,t}())):c("","iframeResizer received messageData without id, message was: ",A)):Object.keys(w).forEach((e=>{w[e].mode>=0&&x("iFrame requested init",W(e),e)}))}function j(e,i,t){let n=null,o=null;if(w[e]){if(n=w[e][i],"function"!=typeof n)throw new TypeError(`${i} on iFrame[${e}] is not a function`);o=n(t)}return o}function k(e){const i=e.id;delete w[i]}function T(e){const i=e.id;if(!1!==j(i,"onClose",i)){try{e.parentNode&&e.remove()}catch(e){c(i,e)}j(i,"onClosed",i),k(e)}}function R(e){null===v.position&&(v.position={x:window.scrollX,y:window.scrollY})}function $(){v.position=null}function I(e){null!==v.position&&(window.scrollTo(v.position.x,v.position.y),$())}function M(e){R(e.id),S(e),x("reset","reset",e.id)}function S(e){const i=e.id;function t(i){const t=`${e[i]}px`;e.iframe.style[i]=t}w[i].sizeHeight&&t("height"),w[i].sizeWidth&&t("width")}function x(e,t,n,o){w[n]&&(w[n]?.postMessageTarget?function(){const{postMessageTarget:e,targetOrigin:o}=w[n];if(w[n].sameDomain)try{return void w[n].iframe.contentWindow.iframeChildListener(i+t)}catch(e){}e.postMessage(i+t,o)}():c(n,`[${e}] IFrame(${n}) not found`),o&&w[n]?.warningTimeout&&(w[n].msgTimeout=setTimeout((function(){if(void 0===w[n])return;const{waitForLoad:e}=w[n];w[n].loaded||w[n].loadErrorShown||(w[n].loadErrorShown=!0,d(n,`\nNo response from iFrame\n \nThe iframe (${n}) has not responded within ${w[n].warningTimeout/1e3} seconds. Check @iframe-resizer/child package has been loaded in the iframe.\n${e?"\nThe waitForLoad option is currently set to true. If the iframe loads before the JavaScript runs, this option will prevent iframe-resizer from initialising. To disable this, set the waitForLoad option to false. \n":""}\nThis message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.\n`))}),w[n].warningTimeout)))}function W(e){const i=w[e];return[e,"8",i.sizeWidth,i.log,"32",!0,i.autoResize,i.bodyMargin,i.heightCalculationMethod,i.bodyBackground,i.bodyPadding,i.tolerance,i.inPageLinks,"child",i.widthCalculationMethod,i.mouseEvents,i.offsetHeight,i.offsetWidth,i.sizeHeight,i.license,v.version,i.mode].join(":")}let F=0,L=!1,N=!1;var E=i=>t=>{function r(e){if(!e)return{};if("object"!=typeof e)throw new TypeError("Options is not an object");return("sizeWidth"in e||"sizeHeight"in e||"autoResize"in e)&&d(s,'Deprecated Option\n\nThe sizeWidth, sizeHeight and autoResize options have been replaced with new direction option which expects values of "vertical", "horizontal" or "horizontal".\n'),e}function a(e){const i=w[e]?.iframe?.title;return""===i||void 0===i}const s=function(e){if(e&&"string"!=typeof e)throw new TypeError("Invalid id for iFrame. Expected String");return""!==e&&e||(t.id=e=function(){let e=i?.id||b.id+F++;return null!==document.getElementById(e)&&(e+=F++),e}(),(i||{}).log),e}(t.id);return s in w&&"iFrameResizer"in t?c(s,"Ignored iFrame, already setup."):(function(e){var i,n;w[s]={iframe:t,firstRun:!0,remoteHost:t?.src.split("/").slice(0,3).join("/"),...b,...r(e),mode:g(e),syncTitle:a(s)},function(){if("horizontal"===w[s].direction)return w[s].sizeWidth=!0,void(w[s].sizeHeight=!1);if("none"===w[s].direction)return w[s].sizeWidth=!1,w[s].sizeHeight=!1,void(w[s].autoResize=!1);if("vertical"!==w[s].direction)throw new TypeError(s,`Direction value of "${w[s].direction}" is not valid`)}(),(i=e?.offsetSize||e?.offset)&&("vertical"===w[s].direction?w[s].offsetHeight=i:w[s].offsetWidth=i),e?.offset&&d(s,"Deprecated option\n\n The offset option has been renamed to offsetSize. Use of the old name will be removed in a future version of iframe-resizer."),null===w[s].postMessageTarget&&(w[s].postMessageTarget=t.contentWindow),w[s].targetOrigin=!0===w[s].checkOrigin?""===(n=w[s].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*"}(i),function(){const{mode:i}=w[s];i<0&&d("Parent",`${y(i+2)}${y(2)}`),N||i<0||(N=!0,((e,...i)=>{l("info",e,...i)})(`v${e} (${(e=>f(h[e]))(i)})`),i<1&&d("Parent",y(3)))}(),C(),function(){switch(t.style.overflow=!1===w[s]?.scrolling?"hidden":"auto",w[s]?.scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=w[s]?w[s].scrolling:"no"}}(),function(){const{bodyMargin:e}=w[s];"number"!=typeof e&&"0"!==e||(w[s].bodyMargin=`${e}px`)}(),function(e){const{id:i}=t;-1!==w[i].mode&&-2!==w[i].mode&&(o(t,"load",(function(){x("iFrame.onload",`${e}:${L}`,i,!0),function(){const e=w[s]?.firstRun,i=w[s]?.heightCalculationMethod in n;!e&&i&&M({iframe:t,height:0,width:0,type:"init"})}()})),!1===w[i].waitForLoad&&x("init",`${e}:${L}`,i,!0))}(W(s)),function(){if(w[s]){const e={close:T.bind(null,w[s].iframe),disconnect:k.bind(null,w[s].iframe),removeListeners(){d(s,"\nDeprecated Method Name\n\nThe emoveListeners() method has been renamed to isconnect().\n"),this.disconnect()},resize:x.bind(null,"Window resize","resize",s),moveToAnchor(e){x("Move to anchor",`moveToAnchor:${e}`,s)},sendMessage(e){x("Send Message",`message:${e=JSON.stringify(e)}`,s)}};w[s].iframe.iframeResizer=e,w[s].iframe.iFrameResizer=e}}()),t?.iFrameResizer};function O(){!1===document.hidden&&function(e,i){const t=e=>w[e]?.autoResize&&!w[e]?.firstRun;Object.keys(w).forEach((function(n){t(n)&&x(e,i,n)}))}("Tab Visible","resize")}const C=(e=>{let i=!1;return function(){return i?void 0:(i=!0,Reflect.apply(e,this,arguments))}})((()=>{o(window,"message",z),o(document,"visibilitychange",O),window.iframeParentListener=e=>z({data:e,sameDomain:!0})}));switch(!0){case void 0===window.jQuery:c("","Unable to bind to jQuery, it is not available.");break;case!window.jQuery.fn:c("","Unable to bind to jQuery, it is not fully loaded.");break;case window.jQuery.fn.iframeResize:c("","iframeResize is already assigned to jQuery.fn.");break;default:window.jQuery.fn.iframeResize=function(e){const i=E(e);return this.filter("iframe").each(i).end()},window.jQuery.fn.iFrameResize=function(e){return c("","Deprecated: Use the iframeResize method instead of iFrameResize"),this.iframeResize(e)}}}(); diff --git a/js-dist/iframe-resizer.parent.js b/js-dist/iframe-resizer.parent.js index 00627e87b..041d444fa 100644 --- a/js-dist/iframe-resizer.parent.js +++ b/js-dist/iframe-resizer.parent.js @@ -1,7 +1,7 @@ /*! * @preserve * - * @module iframe-resizer/parent 5.2.4 (iife) + * @module iframe-resizer/parent 5.2.5 (iife) * * @license GPL-3.0 for non-commercial use only. * For commercial use, you must purchase a license from @@ -17,4 +17,4 @@ */ -!function(){"use strict";const e="[iframe-resizer]";const t=t=>`${e}[${function(e){return window.top===window.self?`Parent page: ${e}`:window?.parentIFrame?.getId?`${window.parentIFrame.getId()}: ${e}`:`Nested parent page: ${e}`}(t)}]`,i=(e,i,...n)=>window?.console[e](t(i),...n),n=(e,...t)=>i("warn",e,...t),o=(t,i)=>console?.warn((e=>t=>window.chrome?e(t.replaceAll("
","\n").replaceAll("","").replaceAll("","").replaceAll("","").replaceAll("","").replaceAll("","")):e(t.replaceAll("
","\n").replaceAll(/<[/a-z]+>/gi,"")))((t=>(...i)=>[`${e}[${t}]`,...i].join(" "))(t))(i)),r="5.2.4",a="[iFrameSizer]",s=a.length,l=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),c=(e,t,i,n)=>e.addEventListener(t,i,n||!1),d=(e,t,i)=>e.removeEventListener(t,i,!1),u=e=>{if(!e)return"";let t=-559038744,i=1103547984;for(let n,o=0;o>>15,1935289751),i^=Math.imul(i^t>>>15,3405138345),t^=i>>>16,i^=t>>>16,(2097152*(i>>>0)+(t>>>11)).toString(36)},f=e=>e.replaceAll(/[A-Za-z]/g,(e=>String.fromCodePoint((e<="Z"?90:122)>=(e=e.codePointAt(0)+19)?e:e-26))),p=["Puchspk Spjluzl Rlf","Tpzzpun Spjluzl Rlf","Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.Jvttlyjphs SpjluzlMvy jvttlyjphs bzl,

pmyhtl-ylzpgly ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa oaawz://pmyhtl-ylzpgly.jvt/wypjpun.Vwlu Zvbyjl SpjluzlPm 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 spjluzl rlf pu

pmyhtl-ylzpgly vwapvuz av NWSc3.Mvy tvyl pumvythapvu wslhzl zll: oaawz://pmyhtl-ylzpgly.jvt/nws","NWSc3 Spjluzl ClyzpvuAopz clyzpvu vm

pmyhtl-ylzpgly pz ilpun bzlk bukly aol alytz vm aol NWS C3 spjluzl. Aopz spjluzl hssvdz fvb av bzl

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.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.Mvy tvyl pumvythapvu cpzpa oaawz://pmyhtl-ylzpgly.jvt/wypjpun."],h=["NWSc3","zvsv","wyv","ibzpulzz","vlt"],m=Object.fromEntries(["2cgs7fdf4xb","1c9ctcccr4z","1q2pc4eebgb","ueokt0969w","w2zxchhgqz","1umuxblj2e5"].map(((e,t)=>[e,Math.max(0,t-1)]))),y=e=>f(p[e]);var g=e=>{const t=e[f("spjluzl")];if(!t)return-1;const i=t.split("-");let n=function(e=""){let t=-2;const i=u(f(e));return i in m&&(t=m[i]),t}(i[0]);return 0===n||(e=>e[2]===u(e[0]+e[1]))(i)||(n=-2),n};var w={};var b=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyPadding:null,checkOrigin:!0,direction:"vertical",inPageLinks:!1,heightCalculationMethod:"auto",id:"iFrameResizer",log:!1,license:void 0,mouseEvents:!0,offsetHeight:null,offsetWidth:null,postMessageTarget:null,sameDomain:!1,scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,waitForLoad:!1,widthCalculationMethod:"auto",onClose:()=>!0,onClosed(){},onInit:!1,onMessage:null,onMouseEnter(){},onMouseLeave(){},onReady:e=>{"function"==typeof w[e.id].onInit&&(o(e.id,"\nDeprecated Option\n\nThe onInit() function is deprecated and has been replaced with onReady(). It will be removed in a future version of iFrame Resizer.\n "),w[e.id].onInit(e))},onResized(){},onScroll:()=>!0}),v={position:null,version:r};function z(e){function t(){S(H),I(),A("onResized",H)}function i(e){if("border-box"!==e.boxSizing)return 0;return(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function l(e){if("border-box"!==e.boxSizing)return 0;return(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function u(e){return C.slice(C.indexOf(":")+7+e)}const f=(e,t)=>(i,n)=>{const o={};var r,a;r=function(){x(`Send ${e} (${i})`,`${e}:${t()}`,n)},o[a=n]||(r(),o[a]=requestAnimationFrame((()=>{o[a]=null})))},p=(e,t)=>()=>{const i=t=>()=>{w[r]?e(t,r):o()};function n(e,t){t(window,"scroll",i("scroll")),t(window,"resize",i("resize window"))}function o(){n(0,d),a.disconnect(),s.disconnect()}const r=P,a=new ResizeObserver(i("page observed")),s=new ResizeObserver(i("iframe observed"));n(0,c),a.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),s.observe(w[r].iframe,{attributes:!0,childList:!1,subtree:!1}),w[r]&&(w[r][`stop${t}`]=o)},h=e=>()=>{e in w[P]&&(w[P][e](),delete w[P][e])},m=f("pageInfo",(function(){const e=document.body.getBoundingClientRect(),t=H.iframe.getBoundingClientRect(),{scrollY:i,scrollX:n,innerHeight:o,innerWidth:r}=window,{clientHeight:a,clientWidth:s}=document.documentElement;return JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(a,o||0),clientWidth:Math.max(s,r||0),offsetTop:parseInt(t.top-e.top,10),offsetLeft:parseInt(t.left-e.left,10),scrollTop:i,scrollLeft:n,documentHeight:a,documentWidth:s,windowHeight:o,windowWidth:r})})),y=f("parentInfo",(function(){const{iframe:e}=H,{scrollWidth:t,scrollHeight:i}=document.documentElement,{width:n,height:o,offsetLeft:r,offsetTop:a,pageLeft:s,pageTop:l,scale:c}=window.visualViewport;return JSON.stringify({iframe:e.getBoundingClientRect(),document:{scrollWidth:t,scrollHeight:i},viewport:{width:n,height:o,offsetLeft:r,offsetTop:a,pageLeft:s,pageTop:l,scale:c}})})),g=p(m,"PageInfo"),b=p(y,"ParentInfo"),z=h("stopPageInfo"),T=h("stopParentInfo");function W(e){const t=e.getBoundingClientRect();return $(),{x:Number(t.left)+Number(v.position.x),y:Number(t.top)+Number(v.position.y)}}function N(e){const t=e?W(H.iframe):{x:0,y:0};let i=((e,t)=>({x:e.width+t.x,y:e.height+t.y}))(H,t);window.top===window.self?(v.position=i,L(P)):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](i.x,i.y):n(P,"Unable to scroll to requested position, window.parentIFrame not found")}function L(e){const{x:t,y:i}=v.position,n=w[e]?.iframe;!1!==A("onScroll",{iframe:n,top:i,left:t,x:t,y:i})?I():R()}function O(e){let t={};if(0===H.width&&0===H.height){const e=u(9).split(":");t={x:e[1],y:e[0]}}else t={x:H.width,y:H.height};A(e,{iframe:H.iframe,screenX:Number(t.x),screenY:Number(t.y),type:H.type})}const A=(e,t)=>j(P,e,t);let C=e.data,H={},P=null;"[iFrameResizerChild]Ready"!==C?a===`${C}`.slice(0,s)&&C.slice(s).split(":")[0]in w&&(H=function(){const e=C.slice(s).split(":"),t=e[1]?Number(e[1]):0,n=w[e[0]]?.iframe,o=getComputedStyle(n);return{iframe:n,id:e[0],height:t+i(o)+l(o),width:Number(e[2]),type:e[3],msg:e[4]}}(),P=H.id,P?(function(e){if(!w[e])throw new Error(`${H.type} No settings for ${e}. Message was: ${C}`)}(P),H.type in{true:1,false:1,undefined:1}||(w[P].loaded=!0,function(){let e=!0;return null===H.iframe&&(n(P,`The iframe (${H.id}) was not found.`),e=!1),e}()&&function(){const{origin:t,sameDomain:i}=e;if(i)return!0;let n=w[P]?.checkOrigin;if(n&&"null"!=`${t}`&&!(n.constructor===Array?function(){let e=0,i=!1;for(;eLegacy version detected in iframe\n\nDetected legacy version of child page script. It is recommended to update the page in the iframe to use @iframe-resizer/child.\n\nSee https://iframe-resizer.com/setup/#child-page-setup for more details.\n")),F=!0,A("onReady",H.iframe);break;default:if(0===H.width&&0===H.height)return void n(P,`Unsupported message received (${H.type}), this is likely due to the iframe containing a later version of iframe-resizer than the parent page`);if(0===H.width||0===H.height)return;if(document.hidden)return;t()}var e,i}())):n("","iframeResizer received messageData without id, message was: ",C)):Object.keys(w).forEach((e=>{w[e].mode>=0&&x("iFrame requested init",E(e),e)}))}function j(e,t,i){let n=null,o=null;if(w[e]){if(n=w[e][t],"function"!=typeof n)throw new TypeError(`${t} on iFrame[${e}] is not a function`);o=n(i)}return o}function T(e){const t=e.id;delete w[t]}function k(e){const t=e.id;if(!1!==j(t,"onClose",t)){try{e.parentNode&&e.remove()}catch(e){n(t,e)}j(t,"onClosed",t),T(e)}}function $(e){null===v.position&&(v.position={x:window.scrollX,y:window.scrollY})}function R(){v.position=null}function I(e){null!==v.position&&(window.scrollTo(v.position.x,v.position.y),R())}function M(e){$(e.id),S(e),x("reset","reset",e.id)}function S(e){const t=e.id;function i(t){const i=`${e[t]}px`;e.iframe.style[t]=i}w[t].sizeHeight&&i("height"),w[t].sizeWidth&&i("width")}function x(e,t,i,r){w[i]&&(w[i]?.postMessageTarget?function(){const{postMessageTarget:e,targetOrigin:n}=w[i];if(w[i].sameDomain)try{return void w[i].iframe.contentWindow.iframeChildListener(a+t)}catch(e){}e.postMessage(a+t,n)}():n(i,`[${e}] IFrame(${i}) not found`),r&&w[i]?.warningTimeout&&(w[i].msgTimeout=setTimeout((function(){if(void 0===w[i])return;const{waitForLoad:e}=w[i];w[i].loaded||w[i].loadErrorShown||(w[i].loadErrorShown=!0,o(i,`\nNo response from iFrame\n \nThe iframe (${i}) has not responded within ${w[i].warningTimeout/1e3} seconds. Check @iframe-resizer/child package has been loaded in the iframe.\n${e?"\nThe waitForLoad option is currently set to true. If the iframe loads before the JavaScript runs, this option will prevent iframe-resizer from initialising. To disable this, set the waitForLoad option to false. \n":""}\nThis message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.\n`))}),w[i].warningTimeout)))}function E(e){const t=w[e];return[e,"8",t.sizeWidth,t.log,"32",!0,t.autoResize,t.bodyMargin,t.heightCalculationMethod,t.bodyBackground,t.bodyPadding,t.tolerance,t.inPageLinks,"child",t.widthCalculationMethod,t.mouseEvents,t.offsetHeight,t.offsetWidth,t.sizeHeight,t.license,v.version,t.mode].join(":")}let W=0,F=!1,N=!1;var L=e=>t=>{function a(e){if(!e)return{};if("object"!=typeof e)throw new TypeError("Options is not an object");return("sizeWidth"in e||"sizeHeight"in e||"autoResize"in e)&&o(d,'Deprecated Option\n\nThe sizeWidth, sizeHeight and autoResize options have been replaced with new direction option which expects values of "vertical", "horizontal" or "horizontal".\n'),e}function s(e){const t=w[e]?.iframe?.title;return""===t||void 0===t}const d=function(i){if(i&&"string"!=typeof i)throw new TypeError("Invalid id for iFrame. Expected String");return""!==i&&i||(t.id=i=function(){let t=e?.id||b.id+W++;return null!==document.getElementById(t)&&(t+=W++),t}(),(e||{}).log),i}(t.id);return d in w&&"iFrameResizer"in t?n(d,"Ignored iFrame, already setup."):(function(e){var i,n;w[d]={iframe:t,firstRun:!0,remoteHost:t?.src.split("/").slice(0,3).join("/"),...b,...a(e),mode:g(e),syncTitle:s(d)},function(){if("horizontal"===w[d].direction)return w[d].sizeWidth=!0,void(w[d].sizeHeight=!1);if("none"===w[d].direction)return w[d].sizeWidth=!1,w[d].sizeHeight=!1,void(w[d].autoResize=!1);if("vertical"!==w[d].direction)throw new TypeError(d,`Direction value of "${w[d].direction}" is not valid`)}(),(i=e?.offsetSize||e?.offset)&&("vertical"===w[d].direction?w[d].offsetHeight=i:w[d].offsetWidth=i),e?.offset&&o(d,"Deprecated option\n\n The offset option has been renamed to offsetSize. Use of the old name will be removed in a future version of iframe-resizer."),null===w[d].postMessageTarget&&(w[d].postMessageTarget=t.contentWindow),w[d].targetOrigin=!0===w[d].checkOrigin?""===(n=w[d].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*"}(e),function(){const{mode:e}=w[d];e<0&&o("Parent",`${y(e+2)}${y(2)}`),N||e<0||(N=!0,((e,...t)=>{i("info",e,...t)})(`v${r} (${(e=>f(h[e]))(e)})`),e<1&&o("Parent",y(3)))}(),A(),function(){switch(t.style.overflow=!1===w[d]?.scrolling?"hidden":"auto",w[d]?.scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=w[d]?w[d].scrolling:"no"}}(),function(){const{bodyMargin:e}=w[d];"number"!=typeof e&&"0"!==e||(w[d].bodyMargin=`${e}px`)}(),function(e){const{id:i}=t;-1!==w[i].mode&&-2!==w[i].mode&&(c(t,"load",(function(){x("iFrame.onload",`${e}:${F}`,i,!0),function(){const e=w[d]?.firstRun,i=w[d]?.heightCalculationMethod in l;!e&&i&&M({iframe:t,height:0,width:0,type:"init"})}()})),!1===w[i].waitForLoad&&x("init",`${e}:${F}`,i,!0))}(E(d)),function(){if(w[d]){const e={close:k.bind(null,w[d].iframe),disconnect:T.bind(null,w[d].iframe),removeListeners(){o(d,"\nDeprecated Method Name\n\nThe emoveListeners() method has been renamed to isconnect().\n"),this.disconnect()},resize:x.bind(null,"Window resize","resize",d),moveToAnchor(e){x("Move to anchor",`moveToAnchor:${e}`,d)},sendMessage(e){x("Send Message",`message:${e=JSON.stringify(e)}`,d)}};w[d].iframe.iframeResizer=e,w[d].iframe.iFrameResizer=e}}()),t?.iFrameResizer};function O(){!1===document.hidden&&function(e,t){const i=e=>w[e]?.autoResize&&!w[e]?.firstRun;Object.keys(w).forEach((function(n){i(n)&&x(e,t,n)}))}("Tab Visible","resize")}const A=(e=>{let t=!1;return function(){return t?void 0:(t=!0,Reflect.apply(e,this,arguments))}})((()=>{c(window,"message",z),c(document,"visibilitychange",O),window.iframeParentListener=e=>z({data:e,sameDomain:!0})})),C="[iframeResizer] ";window.iframeResize=function(){function e(e){switch(!0){case!e:throw new TypeError(`${C}iframe is not defined`);case!e.tagName:throw new TypeError(`${C}Not a valid DOM element`);case"IFRAME"!==e.tagName.toUpperCase():throw new TypeError(`${C}Expected