PageSourceSearch

https://www.climatecentral.org/_next/static/chunks/2025-6ffb24aeb7e755ae.js

js climatecentral.org collected 2026-09-24 08:26:52 UTC 26,826 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2025],{58561:()=>{},91737:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>e0});var r,l,i=n(12115);let o="carousel",a="controller",u="portal",c="toolbar",s="loading",d="error",f="complete",h=e=>`active-slide-${e}`;h(s),h("playing"),h(d),h(f);let v="flex_center",p="no_scroll_padding",m="prev",g="next",E="swipe",b="close",y="onPointerDown",w="onPointerMove",x="onPointerUp",N="onPointerLeave",M="onPointerCancel",C="onKeyDown",L="onWheel",P="icon",k="contain",I="cover";var S=n(47650);let _={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[b]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:k,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullDown:!1,closeOnBackdropClick:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function R(e,t){return{name:e,component:t}}function O(e,t){return{module:e,children:t}}function $(e,t,n){return e.flatMap(e=>{var r;return null!==(r=function e(t,n,r){return t.module.name===n?r(t):t.children?[O(t.module,t.children.flatMap(t=>{var l;return null!==(l=e(t,n,r))&&void 0!==l?l:[]}))]:[t]}(e,t,n))&&void 0!==r?r:[]})}let A=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return[...t].filter(e=>!!e).join(" ")},W="yarl__",D=e=>`${W}${e}`,T=e=>`--${W}${e}`,F=(e,t)=>`${e}${t?`_${t}`:""}`,U=e=>t=>F(e,t),X=(e,t)=>e&&e[t]?e[t]:t,z=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return()=>{t.forEach(e=>{e()})}},B=(e,t,n)=>()=>{let r=i.useContext(n);if(!r)throw Error(`${e} must be used within a ${t}.Provider`);return r},H=()=>!0,K=e=>void 0===e.type||"image"===e.type,V=(e,t)=>e.imageFit===I||e.imageFit!==k&&t===I;function Y(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){let t=parseInt(e,10);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}let j=(e,t)=>t>0?(e%t+t)%t:0,q=e=>e.length>0,G=(e,t)=>e[j(t,e.length)],J=(e,t)=>q(e)?G(e,t):void 0,Q=i.createContext(null),Z=B("useEvents","EventsContext",Q);function ee(e){let{children:t}=e,[n]=i.useState({});i.useEffect(()=>()=>{Object.keys(n).forEach(e=>delete n[e])},[n]);let r=i.useMemo(()=>{let e=(e,t)=>{var r;null===(r=n[e])||void 0===r||r.splice(0,n[e].length,...n[e].filter(e=>e!==t))};return{publish:function(){for(var e,t=arguments.length,r=Array(t),l=0;l<t;l++)r[l]=arguments[l];let[i,o]=r;null===(e=n[i])||void 0===e||e.forEach(e=>e(o))},subscribe:(t,r)=>(n[t]||(n[t]=[]),n[t].push(r),()=>e(t,r)),unsubscribe:e}},[n]);return i.createElement(Q.Provider,{value:r},t)}let et=i.createContext(null),en=B("useLightboxProps","LightboxPropsContext",et);function er(e){let{children:t,...n}=e;return i.createElement(et.Provider,{value:n},t)}let el=i.createContext(null),ei=B("useLightboxState","LightboxStateContext",el),eo=i.createContext(null),ea=B("useLightboxDispatch","LightboxDispatchContext",eo);function eu(e,t){switch(t.type){case"swipe":{let{slides:n}=e,r=(null==t?void 0:t.increment)||0,l=e.globalIndex+r,i=j(l,n.length),o=J(n,i);return{slides:n,currentIndex:i,globalIndex:l,currentSlide:o,animation:r||t.duration?{increment:r,duration:t.duration,easing:t.easing}:void 0}}case"update":return{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:J(t.slides,t.index)};default:throw Error("Unknown action type")}}function ec(e){let{slides:t,index:n,children:r}=e,[l,o]=i.useReducer(eu,{slides:t,currentIndex:n,globalIndex:n,currentSlide:J(t,n)});i.useEffect(()=>{o({type:"update",slides:t,index:n})},[t,n]);let a=i.useMemo(()=>({...l,state:l,dispatch:o}),[l,o]);return i.createElement(eo.Provider,{value:o},i.createElement(el.Provider,{value:a},r))}let es=i.createContext(null),ed=B("useTimeouts","TimeoutsContext",es);function ef(e){let{children:t}=e,[n]=i.useState([]);i.useEffect(()=>()=>{n.forEach(e=>window.clearTimeout(e)),n.splice(0,n.length)},[n]);let r=i.useMemo(()=>{let e=e=>{n.splice(0,n.length,...n.filter(t=>t!==e))};return{setTimeout:(t,r)=>{let l=window.setTimeout(()=>{e(l),t()},r);return n.push(l),l},clearTimeout:t=>{void 0!==t&&(e(t),window.clearTimeout(t))}}},[n]);return i.createElement(es.Provider,{value:r},t)}let eh=i.forwardRef(function(e,t){let{label:n,className:r,icon:l,renderIcon:o,onClick:a,style:u,...c}=e,{styles:s,labels:d}=en();return i.createElement("button",{ref:t,type:"button","aria-label":X(d,n),className:A(D("button"),r),onClick:a,style:{...u,...s.button},...c},o?o():i.createElement(l,{className:D(P),style:s.icon}))});function ev(e,t){return function(e,t){let n=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...e},t);return n.displayName=e,n}(e,i.createElement("g",{fill:"currentColor"},i.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}let ep=ev("Close",i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),em=ev("Previous",i.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),eg=ev("Next",i.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),eE=ev("Loading",i.createElement(i.Fragment,null,Array.from({length:8}).map((e,t,n)=>i.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(t+1),transform:`rotate(${360/n.length*t}, 12, 12)`})))),eb=ev("Error",i.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),ey=H()?i.useLayoutEffect:i.useEffect;function ew(){let[e,t]=i.useState(!1);return i.useEffect(()=>{var e,n;let r=null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-reduced-motion: reduce)");t(null==r?void 0:r.matches);let l=e=>t(e.matches);return null===(n=null==r?void 0:r.addEventListener)||void 0===n||n.call(r,"change",l),()=>{var e;return null===(e=null==r?void 0:r.removeEventListener)||void 0===e?void 0:e.call(r,"change",l)}},[]),e}function ex(e,t){let n=i.useRef(),r=i.useRef(),l=ew();return ey(()=>{var i,o,a;if(e.current&&void 0!==n.current&&!l){let{keyframes:l,duration:u,easing:c,onfinish:s}=t(n.current,e.current.getBoundingClientRect(),function(e){let t=0,n=0,r=0,l=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(l){let e=l[1].split(",").map(e=>Number.parseInt(e,10));6===e.length?(t=e[4],n=e[5]):16===e.length&&(t=e[12],n=e[13],r=e[14])}return{x:t,y:n,z:r}}(e.current))||{};if(l&&u){null===(i=r.current)||void 0===i||i.cancel(),r.current=void 0;try{r.current=null===(a=(o=e.current).animate)||void 0===a?void 0:a.call(o,l,{duration:u,easing:c})}catch(e){console.error(e)}r.current&&(r.current.onfinish=()=>{r.current=void 0,null==s||s()})}}n.current=void 0}),{prepareAnimation:e=>{n.current=e},isAnimationPlaying:()=>{var e;return(null===(e=r.current)||void 0===e?void 0:e.playState)==="running"}}}function eN(){let e=i.useRef(null),t=i.useRef(),[n,r]=i.useState();return{setContainerRef:i.useCallback(n=>{e.current=n,t.current&&(t.current.disconnect(),t.current=void 0);let l=()=>{if(n){let e=window.getComputedStyle(n),t=e=>parseFloat(e)||0;r({width:Math.round(n.clientWidth-t(e.paddingLeft)-t(e.paddingRight)),height:Math.round(n.clientHeight-t(e.paddingTop)-t(e.paddingBottom))})}else r(void 0)};
1l(),n&&"undefined"!=typeof ResizeObserver&&(t.current=new ResizeObserver(l),t.current.observe(n))},[]),containerRef:e,containerRect:n}}function eM(){let e=i.useRef(),{setTimeout:t,clearTimeout:n}=ed();return i.useCallback((r,l)=>{n(e.current),e.current=t(r,l>0?l:0)},[t,n])}function eC(e){let t=i.useRef(e);return ey(()=>{t.current=e}),i.useCallback(function(){for(var e,n=arguments.length,r=Array(n),l=0;l<n;l++)r[l]=arguments[l];return null===(e=t.current)||void 0===e?void 0:e.call(t,...r)},[])}function eL(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function eP(e,t){return i.useMemo(()=>null==e&&null==t?null:n=>{eL(e,n),eL(t,n)},[e,t])}function ek(){let[e,t]=i.useState(!1);return ey(()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)},[]),e}function eI(e,t){let n=i.useRef(0),r=eM(),l=eC(function(){for(var t=arguments.length,r=Array(t),l=0;l<t;l++)r[l]=arguments[l];n.current=Date.now(),e(r)});return i.useCallback(function(){for(var e=arguments.length,i=Array(e),o=0;o<e;o++)i[o]=arguments[o];r(()=>{l(i)},t-(Date.now()-n.current))},[t,l,r])}let eS=U("slide"),e_=U("slide_image");function eR(e){var t,n,r,l,o,a,u;let{slide:c,offset:v,render:p,rect:m,imageFit:g,imageProps:E,onClick:b,onLoad:y,style:w}=e,[x,N]=i.useState(s),{publish:M}=Z(),{setTimeout:C}=ed(),L=i.useRef(null);i.useEffect(()=>{0===v&&M(h(x))},[v,x,M]);let k=eC(e=>{("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{e.parentNode&&(N(f),C(()=>{null==y||y(e)},0))})}),I=i.useCallback(e=>{L.current=e,(null==e?void 0:e.complete)&&k(e)},[k]),S=i.useCallback(e=>{k(e.currentTarget)},[k]),_=i.useCallback(()=>{N(d)},[]),R=V(c,g),O=(e,t)=>Number.isFinite(e)?e:t,$=O(Math.max(...(null!==(n=null===(t=c.srcSet)||void 0===t?void 0:t.map(e=>e.width))&&void 0!==n?n:[]).concat(c.width?[c.width]:[]).filter(Boolean)),(null===(r=L.current)||void 0===r?void 0:r.naturalWidth)||0),W=O(Math.max(...(null!==(o=null===(l=c.srcSet)||void 0===l?void 0:l.map(e=>e.height))&&void 0!==o?o:[]).concat(c.height?[c.height]:[]).filter(Boolean)),(null===(a=L.current)||void 0===a?void 0:a.naturalHeight)||0),T=$&&W?{maxWidth:`min(${$}px, 100%)`,maxHeight:`min(${W}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},F=null===(u=c.srcSet)||void 0===u?void 0:u.sort((e,t)=>e.width-t.width).map(e=>`${e.src}
1 ${e.width}w`).join(", "),U=F&&m&&H()?`${Math.round(Math.min(m&&!R&&c.width&&c.height?m.height/c.height*c.width:Number.MAX_VALUE,m.width))}px`:void 0,{style:X,className:z,...B}=E||{};return i.createElement(i.Fragment,null,i.createElement("img",{ref:I,onLoad:S,onError:_,onClick:b,draggable:!1,className:A(D(e_()),R&&D(e_("cover")),x!==f&&D(e_("loading")),z),style:{...T,...w,...X},...B,alt:c.alt,sizes:U,srcSet:F,src:c.src}),x!==f&&i.createElement("div",{className:D(eS("placeholder"))},x===s&&((null==p?void 0:p.iconLoading)?p.iconLoading():i.createElement(eE,{className:A(D(P),D(eS(s)))})),x===d&&((null==p?void 0:p.iconError)?p.iconError():i.createElement(eb,{className:A(D(P),D(eS(d)))}))))}!function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL_DOWN=2]="PULL_DOWN",e[e.ANIMATION=3]="ANIMATION"}(r||(r={})),function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL_DOWN=2]="PULL_DOWN"}(l||(l={}));let eO="wheel";function e$(e){(Math.abs(e.deltaX)>Math.abs(e.deltaY)||e.ctrlKey)&&e.preventDefault()}let eA=U("container"),eW=i.createContext(null),eD=B("useController","ControllerContext",eW),eT=R(a,function(e){var t;let{children:n,...o}=e,{carousel:a,animation:c,controller:s,on:d,styles:f,render:h}=o,[p,P]=i.useState(),k=ei(),I=ea(),[S,_]=i.useState(r.NONE),R=i.useRef(0),O=i.useRef(0),$=i.useRef(1),{registerSensors:W,subscribeSensors:F}=function(){let[e]=i.useState({}),t=i.useCallback((t,n)=>{var r;null===(r=e[t])||void 0===r||r.forEach(e=>{n.isPropagationStopped()||e(n)})},[e]);return{registerSensors:i.useMemo(()=>({onPointerDown:e=>t(y,e),onPointerMove:e=>t(w,e),onPointerUp:e=>t(x,e),onPointerLeave:e=>t(N,e),onPointerCancel:e=>t(M,e),onKeyDown:e=>t(C,e),onKeyUp:e=>t("onKeyUp",e),onWheel:e=>t(L,e)}),[t]),subscribeSensors:i.useCallback((t,n)=>(e[t]||(e[t]=[]),e[t].unshift(n),()=>{let r=e[t];r&&r.splice(0,r.length,...r.filter(e=>e!==n))}),[e])}}(),{subscribe:U,publish:X}=Z(),B=eM(),H=eM(),K=eM(),{containerRef:V,setContainerRef:j,containerRect:q}=eN(),G=eP(function(){let e=i.useRef(null);return i.useCallback(t=>{var n;t?t.addEventListener(eO,e$,{passive:!1}):null===(n=e.current)||void 0===n||n.removeEventListener(eO,e$),e.current=t},[])}(),j),J=i.useRef(null),Q=eP(J,void 0),ee=ek(),et=e=>(ee?-1:1)*("number"==typeof e?e:1),en=eC(()=>{var e;return null===(e=V.current)||void 0===e?void 0:e.focus()}),er=eC(()=>o),el=eC(()=>k),eo=i.useCallback(e=>X(m,e),[X]),eu=i.useCallback(e=>X(g,e),[X]),ec=i.useCallback(()=>X(b),[X]),es=e=>!(a.finite&&(et(e)>0&&0===k.currentIndex||0>et(e)&&k.currentIndex===k.slides.length-1)),ef=e=>{var t;R.current=e,null===(t=V.current)||void 0===t||t.style.setProperty(T("swipe_offset"),`${Math.round(e)}px`)},{closeOnPullDown:eh}=s,ev=e=>{var t,n;O.current=e,$.current=Math.min(Math.max(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=10**t;return Math.round((e+Number.EPSILON)*n)/n}(1-e/60*.5,2),.5),1),null===(t=V.current)||void 0===t||t.style.setProperty(T("pull_down_offset"),`${Math.round(e)}px`),null===(n=V.current)||void 0===n||n.style.setProperty(T("pull_down_opacity"),`${$.current}`)},{prepareAnimation:ep}=ex(J,(e,t,n)=>{if(J.current&&q)return{keyframes:[{transform:`translate(0, ${e.rect.y-t.y+n.y}px)`,opacity:e.opacity},{transform:"translate(0, 0)",opacity:1}],duration:e.duration,easing:c.easing.fade}}),em=(e,t)=>{if(eh){ev(e);let n=0;J.current&&(n=c.fade*(t?2:1),ep({rect:J.current.getBoundingClientRect(),opacity:$.current,duration:n})),K(()=>{ev(0),_(r.NONE)},n),_(r.ANIMATION),t||ec()}},{prepareAnimation:eg,isAnimationPlaying:eE}=ex(J,(e,t,n)=>{var r;if(J.current&&q&&(null===(r=k.animation)||void 0===r?void 0:r.duration)){let r=Y(a.spacing),l=(r.percent?r.percent*q.width/100:r.pixel)||0;return{keyframes:[{transform:`translate(${et(k.globalIndex-e.index)*(q.width+l)+e.rect.x-t.x+n.x}px, 0)`},{transform:"translate(0, 0)"}],duration:k.animation.duration,easing:k.animation.easing}}}),eb=eC(e=>{var t,n;let l=e.offset||0,i=l?c.swipe:null!==(t=c.navigation)&&void 0!==t?t:c.swipe,o=l||eE()?c.easing.swipe:c.easing.navigation,{direction:a}=e,u=null!==(n=e.count)&&void 0!==n?n:1,s=r.ANIMATION,d=i*u;if(!a){let t=null==q?void 0:q.width,n=e.duration||0,r=t?i/t*Math.abs(l):i;0!==u?(n<r?d=d/r*Math.max(n,r/5):t&&(d=i/t*(t-Math.abs(l))),a=et(l)>0?m:g):d=i/2}let f=0;a===m?es(et(1))?f=-u:(s=r.NONE,d=i):a===g&&(es(et(-1))?f=u:(s=r.NONE,d=i)),H(()=>{ef(0),_(r.NONE)},d=Math.round(d)),J.current&&eg({rect:J.current.getBoundingClientRect(),index:k.globalIndex}),_(s),X(E,{type:"swipe",increment:f,duration:d,easing:o})});i.useEffect(()=>{var e,t;(null===(e=k.animation)||void 0===e?void 0:e.increment)&&(null===(t=k.animation)||void 0===t?void 0:t.duration)&&B(()=>I({type:"swipe",increment:0}),k.animation.duration)},[k.animation,I,B]);let ey=[F,es,(null==q?void 0:q.width)||0,c.swipe,()=>_(r.SWIPE),e=>
1ef(e),(e,t)=>eb({offset:e,duration:t,count:1}),e=>eb({offset:e,count:0})],ew=[()=>{eh&&_(r.PULL_DOWN)},e=>ev(e),e=>em(e),e=>em(e,!0)];!function(e,t,n,r,o,a,u,c,s,d,f,h,v){var p;let m=i.useRef(0),g=i.useRef([]),E=i.useRef(),b=i.useRef(0),C=i.useRef(l.NONE),L=i.useCallback(e=>{E.current===e.pointerId&&(E.current=void 0,C.current=l.NONE);let t=g.current;t.splice(0,t.length,...t.filter(t=>t.pointerId!==e.pointerId))},[]),P=i.useCallback(e=>{L(e),e.persist(),g.current.push(e)},[L]),k=eC(e=>{P(e)}),I=eC(e=>{if(g.current.find(t=>t.pointerId===e.pointerId)&&E.current===e.pointerId){let e=Date.now()-b.current,t=m.current;C.current===l.SWIPE?Math.abs(t)>.3*n||Math.abs(t)>5&&e<r?u(t,e):c(t):C.current===l.PULL_DOWN&&(t>60?h(t,e):v(t)),m.current=0,C.current=l.NONE}L(e)}),S=eC(e=>{let n=g.current.find(t=>t.pointerId===e.pointerId);if(n){let r=E.current===e.pointerId;if(0===e.buttons){r&&0!==m.current?I(e):L(n);return}let i=e.clientX-n.clientX,u=e.clientY-n.clientY;if(void 0===E.current){let n=t=>{P(e),E.current=e.pointerId,b.current=Date.now(),C.current=t};Math.abs(i)>Math.abs(u)&&Math.abs(i)>30&&t(i)?(n(l.SWIPE),o()):s&&Math.abs(u)>Math.abs(i)&&u>30&&(n(l.PULL_DOWN),d())}else r&&(C.current===l.SWIPE?(m.current=i,a(i)):C.current===l.PULL_DOWN&&(m.current=u,f(u)))}});i.useEffect(()=>z(e(y,k),e(w,S),e(x,I),e(N,I),e(M,I)),[e,k,S,I,p])}(...ey,eh,...ew),function(e,t,n,l,o,a,u,c,s){let d=i.useRef(0),f=i.useRef(0),h=i.useRef(),v=i.useRef(),p=i.useRef(0),m=i.useRef(0),{setTimeout:g,clearTimeout:E}=ed(),b=i.useCallback(()=>{h.current&&(E(h.current),h.current=void 0)},[E]),y=i.useCallback(()=>{v.current&&(E(v.current),v.current=void 0)},[E]),w=eC(()=>{e!==r.SWIPE&&(d.current=0,m.current=0,b(),y())});i.useEffect(w,[e,w]);let x=eC(e=>{v.current=void 0,d.current===e&&s(d.current)}),N=eC(t=>{if(!(t.ctrlKey||Math.abs(t.deltaY)>Math.abs(t.deltaX))){if(e===r.NONE){if(Math.abs(t.deltaX)<=1.2*Math.abs(p.current)){p.current=t.deltaX;return}if(n(-t.deltaX)){if(f.current+=t.deltaX,b(),Math.abs(f.current)>30)f.current=0,p.current=0,m.current=Date.now(),a();else{let e=f.current;h.current=g(()=>{h.current=void 0,e===f.current&&(f.current=0)},o)}}}else if(e===r.SWIPE){let e=d.current-t.deltaX;if(e=Math.min(Math.abs(e),l)*Math.sign(e),d.current=e,u(e),y(),Math.abs(e)>.2*l){p.current=t.deltaX,c(e,Date.now()-m.current);return}v.current=g(()=>x(e),2*o)}else p.current=t.deltaX}});i.useEffect(()=>t(L,N),[t,N])}(S,...ey);let eL=eC(()=>{s.focus&&document.querySelector(`.${D(u)} .${D(eA())}`)&&en()});i.useEffect(eL,[eL]);let eI=eC(()=>{var e;null===(e=d.view)||void 0===e||e.call(d,{index:k.currentIndex})});i.useEffect(eI,[k.globalIndex,eI]),i.useEffect(()=>z(U(m,e=>eb({direction:m,...e})),U(g,e=>eb({direction:g,...e})),U(E,e=>I(e))),[U,eb,I]);let eS=i.useMemo(()=>({prev:eo,next:eu,close:ec,focus:en,slideRect:q?function(e,t){let n=Y(t),r=void 0!==n.percent?e.width/100*n.percent:n.pixel;return{width:Math.max(e.width-2*r,0),height:Math.max(e.height-2*r,0)}}(q,a.padding):{width:0,height:0},containerRect:q||{width:0,height:0},subscribeSensors:F,containerRef:V,setCarouselRef:Q,toolbarWidth:p,setToolbarWidth:P}),[eo,eu,ec,en,F,q,V,Q,p,P,a.padding]);return i.useImperativeHandle(s.ref,()=>({prev:eo,next:eu,close:ec,focus:en,getLightboxProps:er,getLightboxState:el}),[eo,eu,ec,en,er,el]),i.createElement("div",{ref:G,className:A(D(eA()),D(v)),style:{...S===r.SWIPE?{[T("swipe_offset")]:`${Math.round(R.current)}px`}:null,...S===r.PULL_DOWN?{[T("pull_down_offset")]:`${Math.round(O.current)}px`,[T("pull_down_opacity")]:`${$.current}`}:null,..."none"!==s.touchAction?{[T("controller_touch_action")]:s.touchAction}:null,...f.container},...s.aria?{role:"presentation","aria-live":"polite"}:null,tabIndex:-1,...W},q&&i.createElement(eW.Provider,{value:eS},n,null===(t=h.controls)||void 0===t?void 0:t.call(h)))});function eF(e){return F("slide",e)}function eU(e){var t,n,r,l;let o,{slide:a,offset:u}=e,c=i.useRef(null),{currentIndex:s}=ei(),{slideRect:d,close:f}=eD(),{render:h,carousel:{imageFit:p,imageProps:m},on:{click:g},controller:{closeOnBackdropClick:E},styles:{slide:b}}=en();return i.createElement("div",{ref:c,className:A(D(eF()),0===u&&D(eF("current")),D(v)),onClick:e=>{let t=c.current,n=e.target instanceof HTMLElement?e.target:void 0;E&&n&&t&&(n===t||Array.from(t.children).find(e=>e===n)&&n.classList.contains(D("slide_wrapper")))&&f()},style:b},(!(o=null===(t=h.slide)||void 0===t?void 0:t.call(h,{slide:a,offset:u,rect:d}))&&K(a)&&(o=i.createElement(eR,{slide:a,offset:u,render:h,rect:d,imageFit:p,imageProps:m,onClick:0===u?()=>null==g?void 0:g({index:s}):void 0})),o?i.createElement(i.Fragment,null,null===(n=h.slideHeader)||void 0===n?void 0:n.call(h,{slide:a}),(null!==(r=h.slideContainer)&&void 0!==r?r:e=>{let{children:t}=e;return t})({slide:a,children:o}),null===(l=h.slideFooter)||void 0===l?void 0:l.call(h,{slide:a})):null))}function eX(){let e=en().styles.slide;return i.createElement("div",{className:D("slide"),style:e})}let ez=R(o,function(e){let{carousel:t}=e,{slides:n,currentIndex:r,globalIndex:l}=ei(),{setCarouselRef:a}=eD(),u=Y(t.spacing),c=Y(t.padding),s=[],d=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}(t,n,1);if(q(n)){for(let e=r-d;e<r;e+=1){let o=l+e-r;s.push(!t.finite||e>=0?i.createElement(eU,{key:o,slide:n[(e+d*n.length)%n.length],offset:e-r}):i.createElement(eX,{key:o}))}s.push(i.createElement(eU,{key:l,slide:n[r],offset:0}));for(let e=r+1;e<=r+d;e+=1){let o=l+e-r;s.push(!t.finite||e<=n.length-1?i.createElement(eU,{key:o,slide:n[e%n.length],offset:e-r}):i.createElement(eX,{key:o}))}}return i.createElement("div",{ref:a,className:A(D(F(o,void 0)),s.length>0&&D(F(o,"with_slides"))),style:{[`${T(F(o,"slides_count"))}`]:s.length,[`${T(F(o,"spacing_px"))}`]:u.pixel||0,[`${T(F(o,"spacing_percent"))}`]:u.percent||0,[`${T(F(o,"padding_px"))}`]:c.pixel||0,[`${T(F(o,"padding_percent"))}`]:c.percent||0}},s)});function eB(){let{carousel:e}=en(),{slides:t,currentIndex:n}=ei();return{prevDisabled:0===t.length||e.finite&&0===n,nextDisabled:0===t.length||e.finite&&n===t.length-1}}function eH(e){let{label:t,icon:n,renderIcon:r,action:l,onClick:o,disabled:a,style:u}=e;return i.createElement(eh,{label:t,icon:n,renderIcon:r,className:D(`navigation_${l}`),disabled:a,onClick:o,style:u,...function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i.useRef();return ey(()=>{t&&n.current&&(n.current=!1,e())},[t,e]),{onFocus:i.useCallback(()=>{n.current=!0},[]),onBlur:i.useCallback(()=>{n.current=!1},[])}}(eD().focus,a)})}let eK=R("navigation",function(e){let{render:{buttonPrev:t,buttonNext:n,iconPrev:r,iconNext:l},styles:o}=e,{prev:a,next:u,subscribeSensors:c}
1=eD(),{prevDisabled:s,nextDisabled:d}=eB();return!function(e){var t;let n=ek(),{publish:r}=Z(),{animation:l}=en(),{prevDisabled:o,nextDisabled:a}=eB(),u=(null!==(t=l.navigation)&&void 0!==t?t:l.swipe)/2,c=eI(()=>r(m),u),s=eI(()=>r(g),u),d=eC(e=>{switch(e.key){case"Escape":r(b);break;case"ArrowLeft":(n?a:o)||(n?s:c)();break;case"ArrowRight":(n?o:a)||(n?c:s)()}});i.useEffect(()=>e(C,d),[e,d])}(c),i.createElement(i.Fragment,null,t?t():i.createElement(eH,{label:"Previous",action:m,icon:em,renderIcon:r,style:o.navigationPrev,disabled:s,onClick:a}),n?n():i.createElement(eH,{label:"Next",action:g,icon:eg,renderIcon:l,style:o.navigationNext,disabled:d,onClick:u}))}),eV=D("no_scroll"),eY=D(p);function ej(e,t,n){let r=window.getComputedStyle(e),l=n?"padding-left":"padding-right",i=n?r.paddingLeft:r.paddingRight,o=e.style.getPropertyValue(l);return e.style.setProperty(l,`${(parseInt(i,10)||0)+t}px`),()=>{o?e.style.setProperty(l,o):e.style.removeProperty(l)}}let eq=R("no-scroll",function(e){let{noScroll:{disabled:t},children:n}=e,r=ek();return ey(()=>{if(t)return()=>{};let e=[],{body:n,documentElement:l}=document,i=Math.round(window.innerWidth-l.clientWidth);if(i>0){e.push(ej(n,i,r));let t=n.getElementsByTagName("*");for(let n=0;n<t.length;n+=1){let l=t[n];"style"in l&&"fixed"===window.getComputedStyle(l).getPropertyValue("position")&&!l.classList.contains(eY)&&e.push(ej(l,i,r))}}return n.classList.add(eV),()=>{n.classList.remove(eV),e.forEach(e=>e())}},[r,t]),i.createElement(i.Fragment,null,n)});function eG(e,t,n){let r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}let eJ=R(u,function(e){let{children:t,animation:n,styles:r,className:l,on:o,portal:a,close:c}=e,[s,d]=i.useState(!1),[f,h]=i.useState(!1),v=i.useRef([]),m=i.useRef(null),{setTimeout:g}=ed(),{subscribe:E}=Z(),y=ew()?0:n.fade;i.useEffect(()=>(d(!0),()=>{d(!1),h(!1)}),[]);let w=eC(()=>{var e;h(!1),v.current.forEach(e=>e()),v.current=[],null===(e=o.exiting)||void 0===e||e.call(o),g(()=>{var e;null===(e=o.exited)||void 0===e||e.call(o),c()},y)});i.useEffect(()=>E(b,w),[E,w]);let x=eC(e=>{var t,n,r;e.scrollTop,h(!0),null===(t=o.entering)||void 0===t||t.call(o);let l=null!==(r=null===(n=e.parentNode)||void 0===n?void 0:n.children)&&void 0!==r?r:[];for(let t=0;t<l.length;t+=1){let n=l[t];-1===["TEMPLATE","SCRIPT","STYLE"].indexOf(n.tagName)&&n!==e&&(v.current.push(eG(n,"inert","true")),v.current.push(eG(n,"aria-hidden","true")))}v.current.push(()=>{var e,t;null===(t=null===(e=m.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}),g(()=>{var e;null===(e=o.entered)||void 0===e||e.call(o)},y)}),N=i.useCallback(e=>{e&&x(e)},[x]);return s?(0,S.createPortal)(i.createElement("div",{ref:N,className:A(l,D("root"),D(F(u,void 0)),D(p),f&&D(F(u,"open"))),role:"presentation","aria-live":"polite",style:{...n.fade!==_.animation.fade?{[T("fade_animation_duration")]:`${y}ms`}:null,...n.easing.fade!==_.animation.easing.fade?{[T("fade_animation_timing_function")]:n.easing.fade}:null,...r.root},onFocus:e=>{m.current||(m.current=e.relatedTarget)}},t),a.root||document.body):null}),eQ=R("root",function(e){let{children:t}=e;return i.createElement(i.Fragment,null,t)}),eZ=R(c,function(e){let{toolbar:{buttons:t},render:{buttonClose:n,iconClose:r},styles:l}=e,{close:o,setToolbarWidth:a}=eD(),{setContainerRef:u,containerRect:s}=eN();ey(()=>{a(null==s?void 0:s.width)},[a,null==s?void 0:s.width]);let d=()=>n?n():i.createElement(eh,{key:b,label:"Close",icon:ep,renderIcon:r,onClick:o});return i.createElement("div",{ref:u,style:l.toolbar,className:D(F(c,void 0))},null==t?void 0:t.map(e=>e===b?d():e))});function e0(e){let{carousel:t,animation:n,render:r,toolbar:l,controller:o,noScroll:u,on:c,plugins:s,slides:d,index:f,...h}=e,{animation:v,carousel:p,render:m,toolbar:g,controller:E,noScroll:b,on:y,slides:w,index:x,plugins:N,...M}=_,{config:C,augmentation:L}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=e,l=e=>{let t=[...r];for(;t.length>0;){let n=t.pop();if((null==n?void 0:n.module.name)===e)return!0;
1(null==n?void 0:n.children)&&t.push(...n.children)}return!1},i=(e,t)=>{if(""===e){r=[O(t,r)];return}r=$(r,e,e=>[O(t,[e])])},o=(e,t)=>{r=$(r,e,e=>[O(e.module,[O(t,e.children)])])},u=(e,t,n)=>{r=$(r,e,e=>{var r;return[O(e.module,[...n?[O(t)]:[],...null!==(r=e.children)&&void 0!==r?r:[],...n?[]:[O(t)]])]})},c=(e,t,n)=>{r=$(r,e,e=>[...n?[O(t)]:[],e,...n?[]:[O(t)]])},s=e=>{o(a,e)},d=(e,t)=>{r=$(r,e,e=>[O(t,e.children)])},f=e=>{r=$(r,e,e=>e.children)},h=e=>{n.push(e)};return t.forEach(e=>{e({contains:l,addParent:i,append:o,addChild:u,addSibling:c,addModule:s,replace:d,remove:f,augment:h})}),{config:r,augmentation:e=>n.reduce((e,t)=>t(e),e)}}([O(eJ,[O(eq,[O(eT,[O(ez),O(eZ),O(eK)])])])],s||N),P=L({animation:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{easing:n,...r}=e,{easing:l,...i}=t;return{easing:{...n,...l},...r,...i}}(v,n),carousel:{...p,...t},render:{...m,...r},toolbar:{...g,...l},controller:{...E,...o},noScroll:{...b,...u},on:{...y,...c},...M,...h});return P.open?i.createElement(er,{...P},i.createElement(ec,{slides:d||w,index:f||x},i.createElement(ef,null,i.createElement(ee,null,function e(t,n){var r;return i.createElement(t.module.component,{key:t.module.name,...n},null===(r=t.children)||void 0===r?void 0:r.map(t=>e(t,n)))}(O(eQ,C),P))))):null}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.