(()=>{var Oe=Object.create;var Ce=Object.defineProperty;var je=Object.getOwnPropertyDescriptor;var Be=Object.getOwnPropertyNames;var qe=Object.getPrototypeOf,He=Object.prototype.hasOwnProperty;var re=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports);var Ue=(t,r,n,_)=>{if(r&&typeof r=="object"||typeof r=="function")for(let b of Be(r))!He.call(t,b)&&b!==n&&Ce(t,b,{get:()=>r[b],enumerable:!(_=je(r,b))||_.enumerable});return t};var ie=(t,r,n)=>(n=t!=null?Oe(qe(t)):{},Ue(r||!t||!t.__esModule?Ce(n,"default",{value:t,enumerable:!0}):n,t));var w=re((De,ne)=>{(function(t,r){var n=r(t,t.document,Date);t.lazySizes=n,typeof ne=="object"&&ne.exports&&(ne.exports=n)})(typeof window<"u"?window:{},function(r,n,_){"use strict";var b,a;if(function(){var o,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};a=r.lazySizesConfig||r.lazysizesConfig||{};for(o in i)o in a||(a[o]=i[o])}(),!n||!n.getElementsByClassName)return{init:function(){},cfg:a,noSupport:!0};var T=n.documentElement,C=r.HTMLPictureElement,M="addEventListener",y="getAttribute",s=r[M].bind(r),l=r.setTimeout,f=r.requestAnimationFrame||l,v=r.requestIdleCallback,d=/^picture$/i,g=["load","error","lazyincluded","_lazyloaded"],x={},L=Array.prototype.forEach,E=function(o,i){return x[i]||(x[i]=new RegExp("(\\s|^)"+i+"(\\s|$)")),x[i].test(o[y]("class")||"")&&x[i]},U=function(o,i){E(o,i)||o.setAttribute("class",(o[y]("class")||"").trim()+" "+i)},se=function(o,i){var c;(c=E(o,i))&&o.setAttribute("class",(o[y]("class")||"").replace(c," "))},oe=function(o,i,c){var N=c?M:"removeEventListener";c&&oe(o,i),g.forEach(function(A){o[N](A,i)})},J=function(o,i,c,N,A){var p=n.createEvent("Event");return c||(c={}),c.instance=b,p.initEvent(i,!N,!A),p.detail=c,o.dispatchEvent(p),p},le=function(o,i){var c;!C&&(c=r.picturefill||a.pf)?(i&&i.src&&!o[y]("srcset")&&o.setAttribute("srcset",i.src),c({reevaluate:!0,elements:[o]})):i&&i.src&&(o.src=i.src)},K=function(o,i){return(getComputedStyle(o,null)||{})[i]},ve=function(o,i,c){for(c=c||o.offsetWidth;c<a.minSize&&i&&!o._lazysizesWidth;)c=i.offsetWidth,i=i.parentNode;return c},X=function(){var o,i,c=[],N=[],A=c,p=function(){var h=A;for(A=c.length?N:c,o=!0,i=!1;h.length;)h.shift()();o=!1},S=function(h,m){o&&!m?h.apply(this,arguments):(A.push(h),i||(i=!0,(n.hidden?l:f)(p)))};return S._lsFlush=p,S}(),ee=function(o,i){return i?function(){X(o)}:function(){var c=this,N=arguments;X(function(){o.apply(c,N)})}},Ne=function(o){var i,c=0,N=a.throttleDelay,A=a.ricTimeout,p=function(){i=!1,c=_.now(),o()},S=v&&A>49?function(){v(p,{timeout:A}),A!==a.ricTimeout&&(A=a.ricTimeout)}:ee(function(){l(p)},!0);return function(h){var m;(h=h===!0)&&(A=33),!i&&(i=!0,m=N-(_.now()-c),m<0&&(m=0),h||m<9?S():l(S,m))}},ge=function(o){var i,c,N=99,A=function(){i=null,o()},p=function(){var S=_.now()-c;S<N?l(p,N-S):(v||A)(A)};return function(){c=_.now(),i||(i=l(p,N))}},pe=function(){var o,i,c,N,A,p,S,h,m,k,j,D,Se=/^img$/i,Fe=/^iframe$/i,_e="onscroll"in r&&!/(gle|ing)bot/.test(navigator.userAgent),xe=0,Y=0,O=0,Q=-1,be=function(e){O--,(!e||O<0||!e.target)&&(O=0)},he=function(e){return D==null&&(D=K(n.body,"visibility")=="hidden"),D||!(K(e.parentNode,"visibility")=="hidden"&&K(e,"visibility")=="hidden")},Te=function(e,u){var z,F=e,R=he(e);for(h-=u,j+=u,m-=u,k+=u;R&&(F=F.offsetParent)&&F!=n.body&&F!=T;)R=(K(F,"opacity")||1)>0,R&&K(F,"overflow")!="visible"&&(z=F.getBoundingClientRect(),R=k>z.left&&m<z.right&&j>z.top-1&&h<z.bottom+1);return R},ze=function(){var e,u,z,F,R,W,B,q,$,H,V,G,P=b.elements;if((N=a.loadMode)&&O<8&&(e=P.length)){for(u=0,Q++;u<e;u++)if(!(!P[u]||P[u]._lazyRace)){if(!_e||b.prematureUnveil&&b.prematureUnveil(P[u])){Z(P[u]);continue}if((!(q=P[u][y]("data-expand"))||!(W=q*1))&&(W=Y),H||(H=!a.expand||a.expand<1?T.clientHeight>500&&T.clientWidth>500?500:370:a.expand,b._defEx=H,V=H*a.expFactor,G=a.hFac,D=null,Y<V&&O<1&&Q>2&&N>2&&!n.hidden?(Y=V,Q=0):N>1&&Q>1&&O<6?Y=H:Y=xe),$!==W&&(p=innerWidth+W*G,S=innerHeight+W,B=W*-1,$=W),z=P[u].getBoundingClientRect(),(j=z.bottom)>=B&&(h=z.top)<=S&&(k=z.right)>=B*G&&(m=z.left)<=p&&(j||k||m||h)&&(a.loadHidden||he(P[u]))&&(i&&O<3&&!q&&(N<3||Q<4)||Te(P[u],W))){if(Z(P[u]),R=!0,O>9)break}else!R&&i&&!F&&O<4&&Q<4&&N>2&&(o[0]||a.preloadAfterLoad)&&(o[0]||!q&&(j||k||m||h||P[u][y](a.sizesAttr)!="auto"))&&(F=o[0]||P[u])}F&&!R&&Z(F)}},I=Ne(ze),ye=function(e){var u=e.target;if(u._lazyCache){delete u._lazyCache;return}be(e),U(u,a.loadedClass),se(u,a.loadingClass),oe(u,Ee),J(u,"lazyloaded")},Re=ee(ye),Ee=function(e){Re({target:e.target})},We=function(e,u){var z=e.getAttribute("data-load-mode")||a.iframeLoadMode;z==0?e.contentWindow.location.replace(u):z==1&&(e.src=u)},ke=function(e){var u,z=e[y](a.srcsetAttr);(u=a.customMedia[e[y]("data-media")||e[y]("media")])&&e.setAttribute("media",u),z&&e.setAttribute("srcset",z)},Ie=ee(function(e,u,z,F,R){var W,B,q,$,H,V;(H=J(e,"lazybeforeunveil",u)).defaultPrevented||(F&&(z?U(e,a.autosizesClass):e.setAttribute("sizes",F)),B=e[y](a.srcsetAttr),W=e[y](a.srcAttr),R&&(q=e.parentNode,$=q&&d.test(q.nodeName||"")),V=u.firesLoad||"src"in e&&(B||W||$),H={target:e},U(e,a.loadingClass),V&&(clearTimeout(c),c=l(be,2500),oe(e,Ee,!0)),$&&L.call(q.getElementsByTagName("source"),ke),B?e.setAttribute("srcset",B):W&&!$&&(Fe.test(e.nodeName)?We(e,W):e.src=W),R&&(B||$)&&le(e,{src:W})),e._lazyRace&&delete e._lazyRace,se(e,a.lazyClass),X(function(){var G=e.complete&&e.naturalWidth>1;(!V||G)&&(G&&U(e,a.fastLoadedClass),ye(H),e._lazyCache=!0,l(function(){"_lazyCache"in e&&delete e._lazyCache},9)),e.loading=="lazy"&&O--},!0)}),Z=function(e){if(!e._lazyRace){var u,z=Se.test(e.nodeName),F=z&&(e[y](a.sizesAttr)||e[y]("sizes")),R=F=="auto";(R||!i)&&z&&(e[y]("src")||e.srcset)&&!e.complete&&!E(e,a.errorClass)&&E(e,a.lazyClass)||(u=J(e,"lazyunveilread").detail,R&&ue.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,O++,Ie(e,u,R,F,z))}},Pe=ge(function(){a.loadMode=3,I()}),me=function(){a.loadMode==3&&(a.loadMode=2),Pe()},ae=function(){if(!i){if(_.now()-A<999){l(ae,999);return}i=!0,a.loadMode=3,I(),s("scroll",me,!0)}};return{_:function(){A=_.now(),b.elements=n.getElementsByClassName(a.lazyClass),o=n.getElementsByClassName(a.lazyClass+" "+a.preloadClass),s("scroll",I,!0),s("resize",I,!0),s("pageshow",function(e){if(e.persisted){var u=n.querySelectorAll("."+a.loadingClass);u.length&&u.forEach&&f(function(){u.forEach(function(z){z.complete&&Z(z)})})}}),r.MutationObserver?new MutationObserver(I).observe(T,{childList:!0,subtree:!0,attributes:!0}):(T[M]("DOMNodeInserted",I,!0),T[M]("DOMAttrModified",I,!0),setInterval(I,999)),s("hashchange",I,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){n[M](e,I,!0)}),/d$|^c/.test(n.readyState)?ae():(s("load",ae),n[M]("DOMContentLoaded",I),l(ae,2e4)),b.elements.length?(ze(),X._lsFlush()):I()},checkElems:I,unveil:Z,_aLSL:me}}(),ue=function(){var o,i=ee(function(p,S,h,m){var k,j,D;if(p._lazysizesWidth=m,m+="px",p.setAttribute("sizes",m),d.test(S.nodeName||""))for(k=S.getElementsByTagName("source"),j=0,D=k.length;j<D;j++)k[j].setAttribute("sizes",m);h.detail.dataAttr||le(p,h.detail)}),c=function(p,S,h){var m,k=p.parentNode;k&&(h=ve(p,k,h),m=J(p,"lazybeforesizes",{width:h,dataAttr:!!S}),m.defaultPrevented||(h=m.detail.width,h&&h!==p._lazysizesWidth&&i(p,k,m,h)))},N=function(){var p,S=o.length;if(S)for(p=0;p<S;p++)c(o[p])},A=ge(N);return{_:function(){o=n.getElementsByClassName(a.autosizesClass),s("resize",A)},checkElems:A,updateElem:c}}(),te=function(){!te.i&&n.getElementsByClassName&&(te.i=!0,ue._(),pe._())};return l(function(){a.init&&te()}),b={cfg:a,autoSizer:ue,loader:pe,init:te,uP:le,aC:U,rC:se,hC:E,fire:J,gW:ve,rAF:X},b})});var Le=re((Ve,fe)=>{(function(t,r){var n=function(){r(t.lazySizes),t.removeEventListener("lazyunveilread",n,!0)};r=r.bind(null,t,t.document),typeof fe=="object"&&fe.exports?r(w()):typeof define=="function"&&define.amd?define(["lazysizes"],r):t.lazySizes?n():t.addEventListener("lazyunveilread",n,!0)})(window,function(t,r,n){"use strict";var _="loading"in HTMLImageElement.prototype,b="loading"in HTMLIFrameElement.prototype,a=!1,T=n.prematureUnveil,C=n.cfg,M={focus:1,mouseover:1,click:1,load:1,transitionend:1,animationend:1,scroll:1,resize:1};if(C.nativeLoading||(C.nativeLoading={}),!t.addEventListener||!t.MutationObserver||!_&&!b)return;function y(){var l=n.loader,f=l.checkElems,v=function(){setTimeout(function(){t.removeEventListener("scroll",l._aLSL,!0)},1e3)},d=typeof C.nativeLoading.disableListeners=="object"?C.nativeLoading.disableListeners:M;d.scroll&&(t.addEventListener("load",v),v(),t.removeEventListener("scroll",f,!0)),d.resize&&t.removeEventListener("resize",f,!0),Object.keys(d).forEach(function(g){d[g]&&r.removeEventListener(g,f,!0)})}function s(){a||(a=!0,_&&b&&C.nativeLoading.disableListeners&&(C.nativeLoading.disableListeners===!0&&(C.nativeLoading.setLoadingAttribute=!0),y()),C.nativeLoading.setLoadingAttribute&&t.addEventListener("lazybeforeunveil",function(l){var f=l.target;"loading"in f&&!f.getAttribute("loading")&&f.setAttribute("loading","lazy")},!0))}n.prematureUnveil=function(f){if(a||s(),"loading"in f&&(C.nativeLoading.setLoadingAttribute||f.getAttribute("loading"))&&(f.getAttribute("data-sizes")!="auto"||f.offsetWidth))return!0;if(T)return T(f)}})});var Ae=re((Qe,de)=>{(function(t,r){if(t){var n=function(){r(t.lazySizes),t.removeEventListener("lazyunveilread",n,!0)};r=r.bind(null,t,t.document),typeof de=="object"&&de.exports?r(w()):typeof define=="function"&&define.amd?define(["lazysizes"],r):t.lazySizes?n():t.addEventListener("lazyunveilread",n,!0)}})(typeof window<"u"?window:0,function(t,r,n){"use strict";var _=function(){var b,a,T,C,M=n.cfg,y={"data-bgset":1,"data-include":1,"data-poster":1,"data-bg":1,"data-script":1},s="(\\s|^)("+M.loadedClass,l=r.documentElement,f=function(d){n.rAF(function(){n.rC(d,M.loadedClass),M.unloadedClass&&n.rC(d,M.unloadedClass),n.aC(d,M.lazyClass),(d.style.display=="none"||d.parentNode&&d.parentNode.style.display=="none")&&setTimeout(function(){n.loader.unveil(d)},0)})},v=function(d){var g,x,L,E;for(g=0,x=d.length;g<x;g++)L=d[g],E=L.target,E.getAttribute(L.attributeName)&&(E.localName=="source"&&E.parentNode&&(E=E.parentNode.querySelector("img")),E&&s.test(E.className)&&f(E))};M.unloadedClass&&(s+="|"+M.unloadedClass),s+="|"+M.loadingClass+")(\\s|$)",s=new RegExp(s),y[M.srcAttr]=1,y[M.srcsetAttr]=1,t.MutationObserver?(T=new MutationObserver(v),b=function(){C||(C=!0,T.observe(l,{subtree:!0,attributes:!0,attributeFilter:Object.keys(y)}))},a=function(){C&&(C=!1,T.disconnect())}):(l.addEventListener("DOMAttrModified",function(){var d,g=[],x=function(){v(g),g=[],d=!1};return function(L){C&&y[L.attrName]&&L.newValue&&(g.push({target:L.target,attributeName:L.attrName}),d||(setTimeout(x),d=!0))}}(),!0),b=function(){C=!0},a=function(){C=!1}),addEventListener("lazybeforeunveil",a,!0),addEventListener("lazybeforeunveil",b),addEventListener("lazybeforesizes",a,!0),addEventListener("lazybeforesizes",b),b(),removeEventListener("lazybeforeunveil",_)};addEventListener("lazybeforeunveil",_)})});var Me=re((Ge,ce)=>{(function(t,r){if(t){var n=function(){r(t.lazySizes),t.removeEventListener("lazyunveilread",n,!0)};r=r.bind(null,t,t.document),typeof ce=="object"&&ce.exports?r(w()):typeof define=="function"&&define.amd?define(["lazysizes"],r):t.lazySizes?n():t.addEventListener("lazyunveilread",n,!0)}})(typeof window<"u"?window:0,function(t,r,n){"use strict";if(t.addEventListener){var _=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,b=/parent-fit["']*\s*:\s*["']*(contain|cover|width)/,a=/parent-container["']*\s*:\s*["']*(.+?)(?=(\s|$|,|'|"|;))/,T=/^picture$/i,C=n.cfg,M=function(s){return getComputedStyle(s,null)||{}},y={getParent:function(s,l){var f=s,v=s.parentNode;return(!l||l=="prev")&&v&&T.test(v.nodeName||"")&&(v=v.parentNode),l!="self"&&(l=="prev"?f=s.previousElementSibling:l&&(v.closest||t.jQuery)?f=(v.closest?v.closest(l):jQuery(v).closest(l)[0])||v:f=v),f},getFit:function(s){var l,f,v=M(s),d=v.content||v.fontFamily,g={fit:s._lazysizesParentFit||s.getAttribute("data-parent-fit")};return!g.fit&&d&&(l=d.match(b))&&(g.fit=l[1]),g.fit?(f=s._lazysizesParentContainer||s.getAttribute("data-parent-container"),!f&&d&&(l=d.match(a))&&(f=l[1]),g.parent=y.getParent(s,f)):g.fit=v.objectFit,g},getImageRatio:function(s){var l,f,v,d,g,x,L,E=s.parentNode,U=E&&T.test(E.nodeName||"")?E.querySelectorAll("source, img"):[s];for(l=0;l<U.length;l++)if(s=U[l],f=s.getAttribute(C.srcsetAttr)||s.getAttribute("srcset")||s.getAttribute("data-pfsrcset")||s.getAttribute("data-risrcset")||"",v=s._lsMedia||s.getAttribute("media"),v=C.customMedia[s.getAttribute("data-media")||v]||v,f&&(!v||(t.matchMedia&&matchMedia(v)||{}).matches)){d=parseFloat(s.getAttribute("data-aspectratio")),d||(g=f.match(_),g?g[2]=="w"?(x=g[1],L=g[3]):(x=g[3],L=g[1]):(x=s.getAttribute("width"),L=s.getAttribute("height")),d=x/L);break}return d},calculateSize:function(s,l){var f,v,d,g,x=this.getFit(s),L=x.fit,E=x.parent;return L!="width"&&(L!="contain"&&L!="cover"||!(d=this.getImageRatio(s)))?l:(E?l=E.clientWidth:E=s,g=l,L=="width"?g=l:(v=E.clientHeight,(f=l/v)&&(L=="cover"&&f<d||L=="contain"&&f>d)&&(g=l*(d/f))),g)}};n.parentFit=y,r.addEventListener("lazybeforesizes",function(s){if(!(s.defaultPrevented||s.detail.instance!=n)){var l=s.target;s.detail.width=y.calculateSize(l,s.detail.width)}})}})});var Je=ie(w()),Ke=ie(Le()),Xe=ie(Ae()),Ye=ie(Me());document.addEventListener("lazybeforesizes",t=>{let r=t.target.getAttribute("data-aspectratio");r&&(t.detail.width===parseFloat(r)&&(t.detail.width=t.detail.instance.parentFit.getFit(t.target).parent.clientWidth),t.detail.width=Math.round(t.detail.width))});})();
