1(globalThis.TURBOPACK=globalThis.TURBOPACK||[]).push(["object"==typeof document?document.currentScript:void 0,{93215:e=>{e.v({default:"gallery-module-scss-module__e1QtSW__default",image:"gallery-module-scss-module__e1QtSW__image",lightboxImage:"gallery-module-scss-module__e1QtSW__lightboxImage",photos:"gallery-module-scss-module__e1QtSW__photos",thumbnail:"gallery-module-scss-module__e1QtSW__thumbnail",withPadding:"gallery-module-scss-module__e1QtSW__withPadding"})},36375:e=>{"use strict";e.s({default:()=>n2},36375);var t,n,l=e.i(31636),r=e.i(38653),i=e.i(60566),o=e.i(5208),a=e.i(28952),u=e.i(77778),c=e.i(52447),s=e.i(45087);function d(e,t){let[n,l]=t,[r,i]=e;return void 0!==r&&void 0!==i&&void 0!==n&&void 0!==l&&n>r&&n-r<=20&&l<i?[r,l]:r!==n||i!==l?[n,l]:e}function h(e,t,n){let[[l],i]=(0,r.useReducer)(d,[n]),o=function(e){let t=(0,r.useRef)(e);return(!e||!t.current||e.length!==t.current.length||t.current.some((t,n)=>t!==e[n]))&&(t.current=e),t.current}(t),a=(0,r.useRef)(void 0);return{containerRef:(0,r.useCallback)(t=>{var n;null==(n=a.current)||n.disconnect(),a.current=void 0;let l=()=>i([function(e,t){let n=null==e?void 0:e.clientWidth;if(void 0!==n&&t&&t.length>0){let e=[...t.filter(e=>e>0)].sort((e,t)=>t-e);e.push(Math.floor(e[e.length-1]/2)),n=e.find((t,l)=>t<=n||l===e.length-1)}return n}(t,o),window.innerWidth-document.documentElement.clientWidth]);l(),t&&"undefined"!=typeof ResizeObserver&&(a.current=new ResizeObserver(l),a.current.observe(t)),"function"==typeof e?e(t):e&&(e.current=t)},[e,o]),containerWidth:l}}function f(e){return["react-photo-album",e].filter(Boolean).join("--")}function m(e){let{width:t,height:n}=e;return t/n}let p=Object.freeze([1200,600,300,0]);function v(e,t){return"function"==typeof e?e(t):e}function g(e,t){return void 0!==t?v(e,t):void 0}function b(e,t,n){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;
1if(void 0===t)return;let r=g(e,t);return Math.round(Math.max(void 0===r?v(n[Math.max(p.findIndex(e=>e<=t),0)],t):r,l))}function w(e,t){let{spacing:n,padding:l,componentsProps:r,render:i}=t;return{spacing:b(n,e,[20,15,10,5]),padding:b(l,e,[0,0,0,0]),componentsProps:v(r,e)||{},render:v(i,e)}}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=10**t;return Math.round((e+Number.EPSILON)*n)/n}let y=(0,r.forwardRef)(function(e,t){let{as:n,render:r,context:i,classes:o=[],variables:a={},style:u,className:c,children:s,...d}=e,h=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return[...t].filter(Boolean).join(" ")}(...(Array.isArray(o)?o:[o]).filter(e=>"string"==typeof e).map(f),c),m={style:{...Object.fromEntries(Object.entries(a).map(e=>{var t;let[n,l]=e;return[(t=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),"--".concat(f(t))),"number"==typeof l?E(l,5):l]})),...u},className:h,children:s,...d};if(r){let e=r({ref:t,...m},i);if(e)return e}return(0,l.jsx)(n||"div",{ref:t,...m})}),x=(0,r.forwardRef)(function(e,t){let n,{photo:r,index:i,width:o,height:a,onClick:u,render:{wrapper:c,link:s,button:d,image:h,extras:f}={},componentsProps:{link:m,button:p,wrapper:v,image:g}={}}=e,{href:b}=r,w={photo:r,index:i,width:E(o,3),height:E(a,3)};return n=b?{...m,as:"a",render:s,classes:["photo","link"],href:b,onClick:u}:u?{...p,as:"button",type:"button",render:d,classes:["photo","button"],onClick:u}:{...v,render:c,classes:"photo"},(0,l.jsxs)(y,{ref:t,variables:{photoWidth:w.width,photoHeight:w.height},...{context:w,...n},children:[(0,l.jsx)(y,{as:"img",classes:"image",render:h,context:w,...g}),null==f?void 0:f({},w)]})}),M=(0,r.forwardRef)(function(e,t){let{layout:n,sizes:i,model:o,skeleton:a,onClick:u,render:{container:c,track:s,photo:d,...h}={},componentsProps:{container:f,track:m,link:p,button:g,wrapper:b,image:w}={}}=e,{spacing:M,padding:C,containerWidth:k,tracks:R,variables:S,horizontal:N}=o||{};return(0,l.jsxs)(y,{role:"group","aria-label":"Photo album",...f,variables:{spacing:M,padding:C,containerWidth:k,...S},classes:["",n],render:c,ref:t,children:[void 0!==M&&void 0!==C&&void 0!==k&&(null==R?void 0:R.map((e,t)=>{let{photos:n,variables:o}=e,a=n.length,c=N?a:R.length;return(0,r.createElement)(y,{...m,key:t,render:s,classes:"track",variables:{trackSize:a,...o}},n.map(e=>{let{photo:t,index:n,width:r}=e,{key:o,src:a,alt:s,title:f,label:m}=t,y=u?e=>{u({event:e,photo:t,index:n})}:void 0;if(d){let t=d({onClick:y},e);if(t)return t}let R=e=>m?{"aria-label":m,...e}:e;return(0,l.jsx)(x,{onClick:y,render:h,componentsProps:{image:{loading:"lazy",decoding:"async",src:a,alt:s,title:f,...function(e,t,n,l,r,i,o){let a,u=e=>{var t,a;let u=i*(r-1)+2*o*r;return"calc((".concat(null!=(a=null==(t=e.match(/^\s*calc\((.*)\)\s*$/))?void 0:t[1])?a:e," - ").concat(u,"px) / ").concat(E((l-u)/n,5),")")},c=e.srcSet;return c&&c.length>0&&(a=c.concat(!c.some(t=>{let{width:n}=t;return n===e.width})?[{src:e.src,width:e.width,height:e.height}]:[]).sort((e,t)=>e.width-t.width).map(e=>"".concat(e.src," ").concat(e.width,"w")).join(", ")),{srcSet:a,sizes:(null==t?void 0:t.size)?(t.sizes||[]).map(e=>{let{viewport:t,size:n}=e;return"".concat(t," ").concat(u(n))}).concat(u(t.size)).join(", "):"".concat(Math.ceil(n/l*100),"vw")}}(t,i,r,k,c,M,C),...v(w,e)},link:R(v(p,e)),button:R(v(g,e)),wrapper:v(b,e)},...e},null!=o?o:a)}))})),void 0===k&&a]})});function C(e,t,n,l){return(t-(e.length-1)*n-2*l*e.length)/e.reduce((e,t)=>e+m(t),0)}let k=(0,r.forwardRef)(function(e,t){let{photos:n,breakpoints:i,defaultContainerWidth:o,...a}=e,{containerRef:u,containerWidth:c}=h(t,i,o),{spacing:s,padding:d,targetRowHeight:f,minPhotos:p,maxPhotos:v,...y}=function(e,t){let{photos:n,targetRowHeight:l,rowConstraints:r,...i}
1=t,{spacing:o,padding:a,componentsProps:u,render:c}=w(e,i),{singleRowMaxHeight:s,minPhotos:d,maxPhotos:h}=g(r,e)||{};if(void 0!==s&&void 0!==o&&void 0!==a){let e=Math.floor(n.reduce((e,t)=>{let{width:n,height:l}=t;return e+n/l*s-2*a},a*n.length*2+o*(n.length-1)));e>0&&(u.container={...u.container},u.container.style={maxWidth:e,...u.container.style})}return{...i,targetRowHeight:b(l,e,[e=>e/5,e=>e/4,e=>e/3,e=>e/2]),render:c,spacing:o,padding:a,minPhotos:d,maxPhotos:h,componentsProps:u}}(c,{photos:n,...a}),x=(0,r.useMemo)(()=>void 0!==c&&void 0!==s&&void 0!==d&&void 0!==f?function(e,t,n,l,r,i,o){let a=E(l/r/Math.min(...e.map(e=>m(e))))+(i||0)+2,u=function(e,t,n){var l=function(e,t,n){var l;let r=new Map,i=new Set,o=new Map;o.set(0,0);let a=function(e){let t=0,n=[],l=(t,l)=>0>e(n[t],n[l]),r=(e,t)=>{let l=n[e];n[e]=n[t],n[t]=l};return{push:e=>{n[t+=1]=e;let i=t,o=Math.floor(i/2);for(;i>1&&l(o,i);)r(o,i),o=Math.floor((i=o)/2)},pop:()=>{if(0===t)return;r(1,t),t-=1;let e=n.pop(),i=1,o=2;for(;o<=t&&(o<t&&l(o,o+1)&&(o+=1),l(i,o));)r(i,o),o=2*(i=o);return e},size:()=>t}}((l=e=>e[1],(e,t)=>l(t)-l(e)));for(a.push([t,0]);a.size()>0;){let[t,n]=a.pop();if(!i.has(t)){let l=e(t);i.add(t),l.forEach((e,l)=>{let i=n+e,u=r.get(l),c=o.get(l);(void 0===c||c>i&&(c/i>1.005||void 0!==u&&u<t))&&(o.set(l,i),a.push([l,i]),r.set(l,t))})}}return o.has(n)?r:void 0}(e,0,n);if(!l)return;let r=[];for(let e=n;void 0!==e;e=l.get(e))r.push(e);return r.reverse()}(u=>{let c=new Map;c.set(u,0);let s=Math.min(a,o||1/0);for(let o=u+(i||1);o<e.length+1&&!(o-u>s);o+=1){let i=function(e,t,n,l,r,i,o){let a=e.slice(t,n),u=C(a,l,r,i);return u>0?(u-o)**2*a.length:void 0}(e,u,o,l,t,n,r);if(void 0===i)break;c.set(o,i)}return c},0,e.length);if(!u)return;let c=[];for(let r=1;r<u.length;r+=1){let i=e.map((e,t)=>({photo:e,index:t})).slice(u[r-1],u[r]),o=C(i.map(e=>{let{photo:t}=e;return t}),l,t,n);c.push({photos:i.map(e=>{let{photo:t,index:n}=e;return{photo:t,index:n,width:o*m(t),height:o}})})}return{spacing:t,padding:n,containerWidth:l,tracks:c,horizontal:!0}}(n,s,d,c,f,p,v):void 0,[n,s,d,c,f,p,v]);return(0,l.jsx)(M,{layout:"rows",ref:u,model:x,...y})});function R(e,t,n,l,r,i,o){let a=[],u=o.reduce((e,t)=>e+t,0);for(let c=0;c<e.length-1;c+=1){let s=t.map((e,t)=>({photo:e,index:t})).slice(e[c],e[c+1]),d=o.reduce((e,t,n)=>e+(i[c]-i[n])*t,0),h=(r-(e.length-2)*n-2*(e.length-1)*l-d)*o[c]/u;a.push({photos:s.map(e=>{let{photo:t,index:n}=e;return{photo:t,index:n,width:h,height:h/m(t)}}),variables:{adjustedGaps:d,columnRatio:o[c]}})}return{tracks:a,variables:{totalRatio:u}}}let S=(0,r.forwardRef)(function(e,t){let{photos:n,breakpoints:i,defaultContainerWidth:o,...a}=e,{containerRef:u,containerWidth:c}=h(t,i,o),{spacing:s,padding:d,columns:f,...p}=function(e,t){let{columns:n,...l}=t;return{...l,...w(e,l),columns:b(n,e,[5,4,3,2],1)}}(c,{photos:n,...a}),v=(0,r.useMemo)(()=>void 0!==c&&void 0!==s&&void 0!==d&&void 0!==f?function e(t,n,l,r,i){let o=(r-n*(i-1)-2*l*i)/i,{tracks:a,variables:u}=function(e,t,n,l,r,i){var o;let a=[],u=[];if(e.length<=i){let r=e.length>0?e.reduce((e,t)=>e+m(t),0)/e.length:1;for(let t=0;t<i;t+=1)a[t]=2*n,u[t]=t<e.length?m(e[t]):r;return R(Array.from({length:i+1},(t,n)=>Math.min(n,e.length)),e,t,n,l,a,u)}let c=(e.reduce((e,t)=>e+r/m(t),0)+t*(e.length-i)+2*n*e.length)/i,s=function(e,t,n){let l=[n];for(let r=n,i=t;i>0;i-=1)[r]=e.get(r)[i],l.push(r);return l.reverse()}(function(e,t,n,l){let r=new Map,i=new Set;i.add(0);for(let n=0;n<t;n+=1){let o=[...i.keys()];i.clear(),o.forEach(o=>{let a=n>0?r.get(o)[n][1]:0;e(o).forEach(e=>{let[u,c]=e,s=r.get(u);s||(s=[],r.set(u,s));let d=a+c,h=s[n+1];(!h||h[1]>d&&(h[1]/d>1.0001||o<h[0]))&&(s[n+1]=[o,d]),n<t-1&&u!==l&&i.add(u)})})}return r}(l=>{let i=[],o=1.5*c,a=r/m(e[l])+2*n;for(let u=l+1;u<e.length+1&&(i.push([u,(c-a)**2]),!(a>o)&&u!==e.length);u+=1)a+=r/m(e[u])+t+2*n;return i},i,0,o=e.length),i,o);for(let l=0;l<s.length-1;l+=1){let r=e.slice(s[l],s[l+1]);a[l]=t*(r.length-1)+2*n*r.length,u[l]=1/r.reduce((e,t)=>e+1/m(t),0)}return R(s,e,t,n,l,a,u)}(t,n,l,r,o,i);return a.some(e=>e.photos.some(e=>{let{width:t,height:n}=e;return t<0||n<0}))?i>1?e(t,n,l,r,i-1):void 0:{tracks:a,spacing:n,padding:l,containerWidth:r,variables:{columns:i,...u}}}(n,s,d,c,f):void 0,[n,s,d,c,f]);return(0,l.jsx)(M,{layout:"columns",ref:u,model:v,...p})}),N=(0,r.forwardRef)(function(e,t){let{photos:n,breakpoints:i,defaultContainerWidth:o,...a}=e,{containerRef:u,containerWidth:c}=h(t,i,o),{spacing:s,padding:d,columns:f,...p}
1=function(e,t){let{columns:n,...l}=t;return{...l,...w(e,l),columns:b(n,e,[5,4,3,2],1)}}(c,{photos:n,...a}),v=(0,r.useMemo)(()=>void 0!==c&&void 0!==s&&void 0!==d&&void 0!==f?function e(t,n,l,r,i){let o=(r-n*(i-1)-2*l*i)/i;if(o<=0)return i>1?e(t,n,l,r,i-1):void 0;let a=[];for(let e=0;e<i;e+=1)a[e]=0;let u=t.reduce((e,t,r)=>{let i=a.reduce((e,t,n)=>t<a[e]-1?n:e,0);return a[i]=a[i]+o/m(t)+n+2*l,e[i].push({photo:t,index:r}),e},Array.from({length:i},()=>[]));return{spacing:n,padding:l,containerWidth:r,variables:{columns:i},tracks:u.map(e=>({photos:e.map(e=>{let{photo:t,index:n}=e;return{photo:t,index:n,width:o,height:o/m(t)}})}))}}(n,s,d,c,f):void 0,[n,s,d,c,f]);return(0,l.jsx)(M,{layout:"masonry",ref:u,model:v,...p})}),P=(0,r.forwardRef)(function(e,t){let{layout:n,...r}=e;return"rows"===n?(0,l.jsx)(k,{ref:t,...r}):"columns"===n?(0,l.jsx)(S,{ref:t,...r}):"masonry"===n?(0,l.jsx)(N,{ref:t,...r}):null}),L="carousel",F="controller",I="no-scroll",_="portal",z="toolbar",T="captions",A="fullscreen",W="thumbnails",j="zoom",H="loading",O="error",D="complete",U=e=>"active-slide-".concat(e);U(H),U("playing"),U(O),U(D);let X="fullsize",B="flex_center",V="no_scroll_padding",Z="slide",Y="slide_wrapper",q="prev",K="next",Q="swipe",$="close",G="onPointerDown",J="onPointerMove",ee="onPointerUp",et="onPointerLeave",en="onPointerCancel",el="onKeyDown",er="onWheel",ei="icon",eo="contain",ea="cover",eu="Unknown action type";var ec=e.i(95168);let es="yarl__";function ed(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return[...t].filter(Boolean).join(" ")}function eh(e){return"".concat(es).concat(e)}function ef(e){return"--".concat(es).concat(e)}function em(e,t){return"".concat(e).concat(t?"_".concat(t):"")}function ep(e){return t=>em(e,t)}function ev(e,t){var n;return null!=(n=null==e?void 0:e[t])?n:t}function eg(e,t,n){return ev(e,"{index} of {total}").replace(/\{index}/g,"".concat(eR(n,t.length)+1)).replace(/\{total}/g,"".concat(t.length))}function eb(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return()=>{t.forEach(e=>{e()})}}function ew(e,t,n){return()=>{let l=r.useContext(n);if(!l)throw Error("".concat(e," must be used within a ").concat(t,".Provider"));return l}}function eE(){return"undefined"!=typeof window}function ey(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function ex(e){return void 0===e.type||"image"===e.type}function eM(e,t){return e.imageFit===ea||e.imageFit!==eo&&t===ea}function eC(e){return"string"==typeof e?Number.parseInt(e,10):e}function ek(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){let t=eC(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function eR(e,t){return t>0?(e%t+t)%t:0}function eS(e){return e.length>0}function eN(e,t){return e[eR(t,e.length)]}function eP(e,t){return eS(e)?eN(e,t):void 0}function eL(e){return ex(e)?e.src:void 0}function eF(e,t,n){if(!n)return e;let{buttons:l,...i}=e,o=l.findIndex(e=>e===t),a=r.isValidElement(n)?r.cloneElement(n,{key:t},null):n;if(o>=0){let e=[...l];return e.splice(o,1,a),{buttons:e,...i}}return{buttons:[a,...l],...i}}function eI(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))}let e_=Number(r.version.split(".")[0])>=19,ez={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[$]},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:eo,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1,disableSwipeNavigation:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function eT(e,t){return{name:e,component:t}}function eA(e,t){return{module:e,children:t}}function eW(e,t,n){return e.flatMap(e=>{var l;return null!=(l=function e(t,n,l){return t.module.name===n?l(t):t.children?[eA(t.module,t.children.flatMap(t=>{var r;return null!=(r=e(t,n,l))?r:[]}))]:[t]}(e,t,n))?l:[]})}let ej=r.createContext(null),eH=ew("useA11yContext","A11yContext",ej);function eO(e){let{children:t}=e,[n,l]=r.useState(!1),[i,o]=r.useState(!1),a=r.useMemo(()=>({focusWithin:n,trackFocusWithin:(e,t)=>{let n=n=>r=>{var i;r.currentTarget.contains(r.relatedTarget)||l(n),null==(i=n?e:t)||i(r)};return{onFocus:n(!0),onBlur:n(!1)}},autoPlaying:i,setAutoPlaying:o}),[n,i]);return r.createElement(ej.Provider,{value:a},t)}let eD=r.createContext(null),eU=ew("useDocument","DocumentContext",eD);function eX(e){let{nodeRef:t,children:n}=e,l=r.useMemo(()=>{let e=e=>{var n;return(null==(n=e||t.current)?void 0:n.ownerDocument)||document};return{getOwnerDocument:e,getOwnerWindow:t=>{var n;return(null==(n=e(t))?void 0:n.defaultView)||window}}},[t]);return r.createElement(eD.Provider,{value:l},n)}let eB=r.createContext(null),eV=ew("useEvents","EventsContext",eB);function eZ(e){let{children:t}=e,[n]=r.useState({});r.useEffect(()=>()=>
1{Object.keys(n).forEach(e=>delete n[e])},[n]);let l=r.useMemo(()=>{let e=(e,t)=>{var l;null==(l=n[e])||l.splice(0,n[e].length,...n[e].filter(e=>e!==t))};return{publish:function(){for(var e,t=arguments.length,l=Array(t),r=0;r<t;r++)l[r]=arguments[r];let[i,o]=l;null==(e=n[i])||e.forEach(e=>e(o))},subscribe:(t,l)=>(n[t]||(n[t]=[]),n[t].push(l),()=>e(t,l)),unsubscribe:e}},[n]);return r.createElement(eB.Provider,{value:l},t)}let eY=r.createContext(null),eq=ew("useLightboxProps","LightboxPropsContext",eY);function eK(e){let{children:t,...n}=e;return r.createElement(eY.Provider,{value:n},t)}let eQ=r.createContext(null),e$=ew("useLightboxState","LightboxStateContext",eQ),eG=r.createContext(null),eJ=ew("useLightboxDispatch","LightboxDispatchContext",eG);function e0(e,t){switch(t.type){case"swipe":{let{slides:n}=e,l=(null==t?void 0:t.increment)||0,r=e.globalIndex+l,i=eR(r,n.length),o=eP(n,i);return{slides:n,currentIndex:i,globalIndex:r,currentSlide:o,animation:l||void 0!==t.duration?{increment:l,duration:t.duration,easing:t.easing}:void 0}}case"update":if(t.slides!==e.slides||t.index!==e.currentIndex)return{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:eP(t.slides,t.index)};return e;default:throw Error(eu)}}function e1(e){let{slides:t,index:n,children:l}=e,[i,o]=r.useReducer(e0,{slides:t,currentIndex:n,globalIndex:n,currentSlide:eP(t,n)});r.useEffect(()=>{o({type:"update",slides:t,index:n})},[t,n]);let a=r.useMemo(()=>({...i,state:i,dispatch:o}),[i,o]);return r.createElement(eG.Provider,{value:o},r.createElement(eQ.Provider,{value:a},l))}let e2=r.createContext(null),e5=ew("useTimeouts","TimeoutsContext",e2);function e4(e){let{children:t}=e,[n]=r.useState([]);r.useEffect(()=>()=>{n.forEach(e=>window.clearTimeout(e)),n.splice(0,n.length)},[n]);let l=r.useMemo(()=>{let e=e=>{n.splice(0,n.length,...n.filter(t=>t!==e))};return{setTimeout:(t,l)=>{let r=window.setTimeout(()=>{e(r),t()},l);return n.push(r),r},clearTimeout:t=>{void 0!==t&&(e(t),window.clearTimeout(t))}}},[n]);return r.createElement(e2.Provider,{value:l},t)}let e3=r.forwardRef(function(e,t){let{label:n,className:l,icon:i,renderIcon:o,onClick:a,style:u,...c}=e,{styles:s,labels:d}=eq(),h=ev(d,n);return r.createElement("button",{ref:t,type:"button",title:h,"aria-label":h,className:ed(eh("button"),l),onClick:a,style:{...u,...s.button},...c},o?o():r.createElement(i,{className:eh(ei),style:s.icon}))});function e9(e,t){let n=e=>r.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}function e8(e,t){return e9(e,r.createElement("g",{fill:"currentColor"},r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}function e6(e,t){return e9(e,r.createElement(r.Fragment,null,r.createElement("defs",null,r.createElement("mask",{id:"strike"},r.createElement("path",{d:"M0 0h24v24H0z",fill:"white"}),r.createElement("path",{d:"M0 0L24 24",stroke:"black",strokeWidth:4}))),r.createElement("path",{d:"M0.70707 2.121320L21.878680 23.292883",stroke:"currentColor",strokeWidth:2}),r.createElement("g",{fill:"currentColor",mask:"url(#strike)"},r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t)))}let e7=e8("Close",r.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"})),te=e8("Previous",r.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),tt=e8("Next",r.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),tn=e8("Loading",r.createElement(r.Fragment,null,Array.from({length:8}).map((e,t,n)=>r.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(".concat(360/n.length*t,", 12, 12)")})))),tl=e8("Error",r.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"})),tr=eE()?r.useLayoutEffect:r.useEffect;function ti(){let[e,t]=r.useState(!1);return r.useEffect(()=>{var e,n;let l=null==(e=window.matchMedia)?void 0:e.call(window,"(prefers-reduced-motion: reduce)");t(null==l?void 0:l.matches);let r=e=>t(e.matches);return null==(n=null==l?void 0:l.addEventListener)||n.call(l,"change",r),()=>{var e;return null==(e=null==l?void 0:l.removeEventListener)?void 0:e.call(l,"change",r)}},[]),e}function to(e,t){let n=r.useRef(void 0),l=r.useRef(void 0),i=ti();return tr(()=>{var r,o,a;if(e.current&&void 0!==n.current&&!i){let{keyframes:i,duration:u,easing:c,onfinish:s}=t(n.current,e.current.getBoundingClientRect(),function(e){let t=0,n=0,l=0,r=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(r){let e=r[1].split(",").map(eC);6===e.length?(t=e[4],n=e[5]):16===e.length&&(t=e[12],n=e[13],l=e[14])}return{x:t,y:n,z:l}}(e.current))||{};if(i&&u){null==(r=l.current)||r.cancel(),l.current=void 0;try{l.current=null==(a=(o=e.current).animate)?void 0:a.call(o,i,{duration:u,easing:c})}catch(e){console.error(e)}l.current&&(l.current.onfinish=()=>{l.current=void 0,null==s||s()})}}n.current=void 0}),{prepareAnimation:e=>{n.current=e},isAnimationPlaying:()=>{var e;return(null==(e=l.current)?void 0:e.playState)==="running"}}}function ta(){let e=r.useRef(null),t=r.useRef(void 0),[n,l]=r.useState();return{setContainerRef:r.useCallback(n=>{e.current=n,t.current&&(t.current.disconnect(),t.current=void 0);let r=()=>{if(n){let e=window.getComputedStyle(n),t=e=>parseFloat(e)||0;l({width:Math.round(n.clientWidth-t(e.paddingLeft)-t(e.paddingRight)),height:Math.round(n.clientHeight-t(e.paddingTop)-t(e.paddingBottom))})}else l(void 0)};
1r(),n&&"undefined"!=typeof ResizeObserver&&(t.current=new ResizeObserver(r),t.current.observe(n))},[]),containerRef:e,containerRect:n}}function tu(){let e=r.useRef(void 0),{setTimeout:t,clearTimeout:n}=e5();return r.useCallback((l,r)=>{n(e.current),e.current=t(l,r>0?r:0)},[t,n])}function tc(e){let t=r.useRef(e);return tr(()=>{t.current=e}),r.useCallback(function(){for(var e,n=arguments.length,l=Array(n),r=0;r<n;r++)l[r]=arguments[r];return null==(e=t.current)?void 0:e.call(t,...l)},[])}function ts(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function td(e,t){return r.useMemo(()=>null==e&&null==t?null:n=>{ts(e,n),ts(t,n)},[e,t])}function th(){let[e,t]=r.useState(!1);return tr(()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)},[]),e}function tf(){let[e]=r.useState({}),t=r.useCallback((t,n)=>{var l;null==(l=e[t])||l.forEach(e=>{n.isPropagationStopped()||e(n)})},[e]);return{registerSensors:r.useMemo(()=>({onPointerDown:e=>t(G,e),onPointerMove:e=>t(J,e),onPointerUp:e=>t(ee,e),onPointerLeave:e=>t(et,e),onPointerCancel:e=>t(en,e),onKeyDown:e=>t(el,e),onKeyUp:e=>t("onKeyUp",e),onWheel:e=>t(er,e)}),[t]),subscribeSensors:r.useCallback((t,n)=>(e[t]||(e[t]=[]),e[t].unshift(n),()=>{let l=e[t];l&&l.splice(0,l.length,...l.filter(e=>e!==n))}),[e])}}function tm(e,t){let n=r.useRef(0),l=tu(),i=tc(function(){for(var t=arguments.length,l=Array(t),r=0;r<t;r++)l[r]=arguments[r];n.current=Date.now(),e(l)});return r.useCallback(function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];l(()=>{i(r)},t-(Date.now()-n.current))},[t,i,l])}let tp=ep("slide"),tv=ep("slide_image");function tg(e){var t,n,l,i,o,a,u,c;let{slide:s,offset:d,render:h,rect:f,imageFit:m,imageProps:p,onClick:v,onLoad:g,onError:b,style:w}=e,[E,y]=r.useState(H),{publish:x}=eV(),{setTimeout:M}=e5(),C=r.useRef(null);r.useEffect(()=>{0===d&&x(U(E))},[d,E,x]);let k=tc(e=>{("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{e.parentNode&&(y(D),M(()=>{null==g||g(e)},0))})}),R=r.useCallback(e=>{C.current=e,(null==e?void 0:e.complete)&&k(e)},[k]),S=r.useCallback(e=>{k(e.currentTarget)},[k]),N=tc(()=>{y(O),null==b||b()}),P=eM(s,m),L=(e,t)=>Number.isFinite(e)?e:t,F=L(Math.max(...(null!=(n=null==(t=s.srcSet)?void 0:t.map(e=>e.width))?n:[]).concat(s.width?[s.width]:[]).filter(Boolean)),(null==(l=C.current)?void 0:l.naturalWidth)||0),I=L(Math.max(...(null!=(o=null==(i=s.srcSet)?void 0:i.map(e=>e.height))?o:[]).concat(s.height?[s.height]:[]).filter(Boolean)),(null==(a=C.current)?void 0:a.naturalHeight)||0),_=null==(u=s.srcSet)?void 0:u.sort((e,t)=>e.width-t.width).map(e=>"".concat(e.src," ").concat(e.width,"w")).join(", "),z=_&&f&&eE()?"".concat(Math.round(Math.min(f&&!P&&s.width&&s.height?f.height/s.height*s.width:Number.MAX_VALUE,f.width)),"px"):void 0,{style:T,className:A,...W}=p||{};return r.createElement(r.Fragment,null,r.createElement("img",{ref:R,onLoad:S,onError:N,onClick:v,draggable:!1,className:ed(eh(tv()),P&&eh(tv("cover")),E!==D&&eh(tv("loading")),A),style:{...F&&I?{maxWidth:"min(".concat(F,"px, 100%)"),maxHeight:"min(".concat(I,"px, 100%)")}:{maxWidth:"100%",maxHeight:"100%"},...w,...T},...W,alt:null!=(c=s.alt)?c:"",sizes:z,srcSet:_,src:s.src}),E!==D&&r.createElement("div",{className:eh(tp("placeholder"))},E===H&&((null==h?void 0:h.iconLoading)?h.iconLoading():r.createElement(tn,{className:ed(eh(ei),eh(tp(H)))})),E===O&&((null==h?void 0:h.iconError)?h.iconError():r.createElement(tl,{className:ed(eh(ei),eh(tp(O)))}))))}let tb=r.forwardRef(function(e,t){let{className:n,children:l,onFocus:i,onBlur:o,...a}=e,u=r.useRef(null),{trackFocusWithin:c}=eH();return r.createElement(eX,{nodeRef:u},r.createElement("div",{ref:td(t,u),className:ed(eh("root"),n),...c(i,o),...a},l))});function tw(e,t,n,l,i){r.useEffect(()=>i?()=>{}:eb(e(G,t),e(J,n),e(ee,l),e(et,l),e(en,l)),[e,t,n,l,i])}!function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"}(t||(t={})),function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"}(n||(n={}));let tE=ep("container"),ty=r.createContext(null),tx=ew("useController","ControllerContext",ty),tM=eT(F,function(e){var l;let{children:i,...o}=e,{carousel:a,animation:u,controller:c,on:s,styles:d,render:h}=o,{closeOnPullUp:f,closeOnPullDown:m,preventDefaultWheelX:p,preventDefaultWheelY:v}=c,[g,b]=r.useState(),w=e$(),E=eJ(),[y,x]=r.useState(t.NONE),M=r.useRef(0),C=r.useRef(0),k=r.useRef(1),{registerSensors:R,subscribeSensors:S}=tf(),{subscribe:N,publish:P}=eV(),L=tu(),F=tu(),I=tu(),{containerRef:z,setContainerRef:T,containerRect:A}=ta(),W=td(function(e){let{preventDefaultWheelX:t,preventDefaultWheelY:n}=e,l=r.useRef(null),i=tc(e=>{let l=Math.abs(e.deltaX)>Math.abs(e.deltaY);(l&&t||!l&&n||e.ctrlKey)&&e.preventDefault()});return r.useCallback(e=>{var t;e?e.addEventListener("wheel",i,{passive:!1}):null==(t=l.current)||t.removeEventListener("wheel",i),l.current=e},[i])}({preventDefaultWheelX:p,preventDefaultWheelY:v}),T),j=r.useRef(null),H=td(j,void 0),{getOwnerDocument:O}=eU(),D=th(),U=e=>(D?-1:1)*("number"==typeof e?e:1),X=tc(()=>{var e;return null==(e=z.current)?void 0:e.focus()}),V=tc(()=>o),G=tc(()=>w),J=r.useCallback(e=>P(q,e),[P]),ee=r.useCallback(e=>P(K,e),[P]),et=r.useCallback(()=>P($),[P]),en=e=>!(a.finite&&(U(e)>0&&0===w.currentIndex||0>U(e)&&w.currentIndex===w.slides.length-1)),el=e=>{var t;M.current=e,null==(t=z.current)||t.style.setProperty(ef("swipe_offset"),"".concat(Math.round(e),"px"))},ei=e=>{var t,n;C.current=e,k.current=Math.min(Math.max(ey(1-(m&&e>0?e:f&&e<0?-e:0)/60*.5,2),.5),1),null==(t=z.current)||t.style.setProperty(ef("pull_offset"),"".concat(Math.round(e),"px")),null==(n=z.current)||n.style.setProperty(ef("pull_opacity"),"".concat(k.current))},{prepareAnimation:eo}
1=to(j,(e,t,n)=>{if(j.current&&A)return{keyframes:[{transform:"translate(0, ".concat(e.rect.y-t.y+n.y,"px)"),opacity:e.opacity},{transform:"translate(0, 0)",opacity:1}],duration:e.duration,easing:u.easing.fade}}),ea=(e,n)=>{if(f||m){ei(e);let l=0;j.current&&(l=u.fade*(n?2:1),eo({rect:j.current.getBoundingClientRect(),opacity:k.current,duration:l})),I(()=>{ei(0),x(t.NONE)},l),x(t.ANIMATION),n||et()}},{prepareAnimation:eu,isAnimationPlaying:ec}=to(j,(e,t,n)=>{var l;if(j.current&&A&&(null==(l=w.animation)?void 0:l.duration)){let l=ek(a.spacing),r=(l.percent?l.percent*A.width/100:l.pixel)||0;return{keyframes:[{transform:"translate(".concat(U(w.globalIndex-e.index)*(A.width+r)+e.rect.x-t.x+n.x,"px, 0)")},{transform:"translate(0, 0)"}],duration:w.animation.duration,easing:w.animation.easing}}}),es=tc(e=>{var n,l;let r=e.offset||0,i=r?u.swipe:null!=(n=u.navigation)?n:u.swipe,o=r||ec()?u.easing.swipe:u.easing.navigation,{direction:a}=e,c=null!=(l=e.count)?l:1,s=t.ANIMATION,d=i*c;if(!a){let t=null==A?void 0:A.width,n=e.duration||0,l=t?i/t*Math.abs(r):i;0!==c?(n<l?d=d/l*Math.max(n,l/5):t&&(d=i/t*(t-Math.abs(r))),a=U(r)>0?q:K):d=i/2}let h=0;a===q?en(U(1))?h=-c:(s=t.NONE,d=i):a===K&&(en(U(-1))?h=c:(s=t.NONE,d=i)),F(()=>{el(0),x(t.NONE)},d=Math.round(d)),j.current&&eu({rect:j.current.getBoundingClientRect(),index:w.globalIndex}),x(s),P(Q,{type:"swipe",increment:h,duration:d,easing:o})});r.useEffect(()=>{var e,t;(null==(e=w.animation)?void 0:e.increment)&&(null==(t=w.animation)?void 0:t.duration)&&L(()=>E({type:"swipe",increment:0}),w.animation.duration)},[w.animation,E,L]);let em=[S,en,(null==A?void 0:A.width)||0,u.swipe,()=>x(t.SWIPE),e=>el(e),(e,t)=>es({offset:e,duration:t,count:1}),e=>es({offset:e,count:0})],ep=[()=>{m&&x(t.PULL)},e=>ei(e),e=>ea(e),e=>ea(e,!0)];!function(e,t,l,i,o,a,u,c,s,d,h,f,m,p,v,g){let{disableSwipeNavigation:b,closeOnBackdropClick:w}=e,E=r.useRef(0),y=r.useRef([]),x=r.useRef(void 0),M=r.useRef(0),C=r.useRef(n.NONE),k=r.useCallback(e=>{x.current===e.pointerId&&(x.current=void 0,C.current=n.NONE);let t=y.current;t.splice(0,t.length,...t.filter(t=>t.pointerId!==e.pointerId))},[]),R=r.useCallback(e=>{k(e),e.persist(),y.current.push(e)},[k]),S=r.useCallback(e=>y.current.find(t=>{let{pointerId:n}=t;return e.pointerId===n}),[]),N=tc(e=>{R(e)}),P=(e,t)=>h&&e>t||d&&e<-t,L=tc(e=>{let t=S(e);if(t)if(x.current===e.pointerId){let e=Date.now()-M.current,t=E.current;C.current===n.SWIPE?Math.abs(t)>.3*i||Math.abs(t)>5&&e<o?c(t,e):s(t):C.current===n.PULL&&(P(t,60)?p(t,e):v(t)),E.current=0,C.current=n.NONE}else{let{target:n}=e;w&&n instanceof HTMLElement&&n===t.target&&(n.classList.contains(eh(Z))||n.classList.contains(eh(Y)))&&g()}k(e)});tw(t,N,tc(e=>{let t=S(e);if(t){let r=x.current===e.pointerId;if(0===e.buttons)return void(r&&0!==E.current?L(e):k(t));let i=e.clientX-t.clientX,o=e.clientY-t.clientY;if(void 0===x.current){let t=t=>{R(e),x.current=e.pointerId,M.current=Date.now(),C.current=t};Math.abs(i)>Math.abs(o)&&Math.abs(i)>30&&l(i)?b||(t(n.SWIPE),a()):Math.abs(o)>Math.abs(i)&&P(o,30)&&(t(n.PULL),f())}else r&&(C.current===n.SWIPE?(E.current=i,u(i)):C.current===n.PULL&&(E.current=o,m(o)))}}),L)}(c,...em,f,m,...ep,et),function(e,n,l,i,o,a,u,c,s){let d=r.useRef(0),h=r.useRef(0),f=r.useRef(void 0),m=r.useRef(void 0),p=r.useRef(0),v=r.useRef(void 0),g=r.useRef(0),{setTimeout:b,clearTimeout:w}=e5(),E=r.useCallback(()=>{f.current&&(w(f.current),f.current=void 0)},[w]),y=r.useCallback(()=>{m.current&&(w(m.current),m.current=void 0)},[w]),x=tc(()=>{e!==t.SWIPE&&(d.current=0,g.current=0,E(),y())});r.useEffect(x,[e,x]);let M=tc(e=>{m.current=void 0,d.current===e&&s(d.current)}),C=tc(n=>{if(n.ctrlKey||Math.abs(n.deltaY)>Math.abs(n.deltaX))return;let r=e=>{p.current=e,w(v.current),v.current=e>0?b(()=>{p.current=0,v.current=void 0},300):void 0};if(e===t.NONE){if(Math.abs(n.deltaX)<=1.2*Math.abs(p.current))return void r(n.deltaX);if(!l(-n.deltaX))return;if(h.current+=n.deltaX,E(),Math.abs(h.current)>30)h.current=0,r(0),g.current=Date.now(),a();else{let e=h.current;f.current=b(()=>{f.current=void 0,e===h.current&&(h.current=0)},o)}}else if(e===t.SWIPE){let e=d.current-n.deltaX;if(d.current=e=Math.min(Math.abs(e),i)*Math.sign(e),u(e),y(),Math.abs(e)>.2*i){r(n.deltaX),c(e,Date.now()-g.current);return}m.current=b(()=>M(e),2*o)}else r(n.deltaX)});r.useEffect(()=>n(er,C),[n,C])}(y,...em);let ev=tc(()=>{c.focus&&O().querySelector(".".concat(eh(_)," .").concat(eh(tE())))&&X()});r.useEffect(ev,[ev]);let eg=tc(()=>{var e;null==(e=s.view)||e.call(s,{index:w.currentIndex})});r.useEffect(eg,[w.globalIndex,eg]),r.useEffect(()=>eb(N(q,e=>es({direction:q,...e})),N(K,e=>es({direction:K,...e})),N(Q,e=>E(e))),[N,es,E]);let ew=r.useMemo(()=>
1({prev:J,next:ee,close:et,focus:X,slideRect:A?function(e,t){let n=ek(t),l=void 0!==n.percent?e.width/100*n.percent:n.pixel;return{width:Math.max(e.width-2*l,0),height:Math.max(e.height-2*l,0)}}(A,a.padding):{width:0,height:0},containerRect:A||{width:0,height:0},subscribeSensors:S,containerRef:z,setCarouselRef:H,toolbarWidth:g,setToolbarWidth:b}),[J,ee,et,X,S,A,z,H,g,b,a.padding]);return r.useImperativeHandle(c.ref,()=>({prev:J,next:ee,close:et,focus:X,getLightboxProps:V,getLightboxState:G}),[J,ee,et,X,V,G]),r.createElement("div",{ref:W,className:ed(eh(tE()),eh(B)),style:{...y===t.SWIPE?{[ef("swipe_offset")]:"".concat(Math.round(M.current),"px")}:null,...y===t.PULL?{[ef("pull_offset")]:"".concat(Math.round(C.current),"px"),[ef("pull_opacity")]:"".concat(k.current)}:null,..."none"!==c.touchAction?{[ef("controller_touch_action")]:c.touchAction}:null,...d.container},tabIndex:-1,...R},A&&r.createElement(ty.Provider,{value:ew},i,null==(l=h.controls)?void 0:l.call(h)))});function tC(e){var t,n,l,i;let o,{slide:a,offset:u}=e,c=r.useRef(null),{currentIndex:s,slides:d}=e$(),{slideRect:h,focus:f}=tx(),{render:m,carousel:{imageFit:p,imageProps:v},on:{click:g},styles:{slide:b},labels:w}=eq(),{getOwnerDocument:E}=eU(),y=0!==u;return r.useEffect(()=>{var e;y&&(null==(e=c.current)?void 0:e.contains(E().activeElement))&&f()},[y,f,E]),r.createElement("div",{ref:c,className:ed(eh(em(Z,void 0)),!y&&eh(em(Z,"current")),eh(B)),...{inert:e_?y:y?"":void 0},style:b,role:"group","aria-roledescription":ev(w,"Slide"),"aria-label":eg(w,d,s+u)},(!(o=null==(t=m.slide)?void 0:t.call(m,{slide:a,offset:u,rect:h}))&&ex(a)&&(o=r.createElement(tg,{slide:a,offset:u,render:m,rect:h,imageFit:p,imageProps:v,onClick:y?void 0:()=>null==g?void 0:g({index:s})})),o?r.createElement(r.Fragment,null,null==(n=m.slideHeader)?void 0:n.call(m,{slide:a}),(null!=(l=m.slideContainer)?l:e=>{let{children:t}=e;return t})({slide:a,children:o}),null==(i=m.slideFooter)?void 0:i.call(m,{slide:a})):null))}function tk(){let e=eq().styles.slide;return r.createElement("div",{className:eh(Z),style:e})}let tR=eT(L,function(e){let{carousel:t,labels:n}=e,{slides:l,currentIndex:i,globalIndex:o}=e$(),{setCarouselRef:a}=tx(),{autoPlaying:u,focusWithin:c}=eH(),s=ek(t.spacing),d=ek(t.padding),h=eI(t,l,1),f=[];if(eS(l))for(let e=i-h;e<=i+h;e+=1){let n=eN(l,e),r=o-i+e,a=t.finite&&(e<0||e>l.length-1);f.push(a?{key:r}:{key:["".concat(r),eL(n)].filter(Boolean).join("|"),offset:e-i,slide:n})}return r.createElement("div",{ref:a,className:ed(eh(em(L,void 0)),f.length>0&&eh(em(L,"with_slides"))),style:{["".concat(ef(em(L,"slides_count")))]:f.length,["".concat(ef(em(L,"spacing_px")))]:s.pixel||0,["".concat(ef(em(L,"spacing_percent")))]:s.percent||0,["".concat(ef(em(L,"padding_px")))]:d.pixel||0,["".concat(ef(em(L,"padding_percent")))]:d.percent||0},role:"region","aria-live":u&&!c?"off":"polite","aria-roledescription":ev(n,"Carousel"),"aria-label":ev(n,"Photo gallery")},f.map(e=>{let{key:t,slide:n,offset:l}=e;return n?r.createElement(tC,{key:t,slide:n,offset:l}):r.createElement(tk,{key:t})}))});function tS(){let{carousel:e}=eq(),{slides:t,currentIndex:n}=e$();return{prevDisabled:0===t.length||e.finite&&0===n,nextDisabled:0===t.length||e.finite&&n===t.length-1}}function tN(e){var t;let n=th(),{publish:l}=eV(),{animation:i}=eq(),{prevDisabled:o,nextDisabled:a}=tS(),u=(null!=(t=i.navigation)?t:i.swipe)/2,c=tm(()=>l(q),u),s=tm(()=>l(K),u),d=tc(e=>{switch(e.key){case"Escape":l($);break;case"ArrowLeft":(n?a:o)||(n?s:c)();break;case"ArrowRight":(n?o:a)||(n?c:s)()}});r.useEffect(()=>e(el,d),[e,d])}function tP(e){let{label:t,icon:n,renderIcon:l,action:i,onClick:o,disabled:a,style:u}=e;return r.createElement(e3,{label:t,icon:n,renderIcon:l,className:eh("navigation_".concat(i)),disabled:a,onClick:o,style:u,...function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r.useRef(!1);return tr(()=>{t&&n.current&&(n.current=!1,e())},[t,e]),{onFocus:r.useCallback(()=>{n.current=!0},[]),onBlur:r.useCallback(()=>{n.current=!1},[])}}(tx().focus,a)})}let tL=eT("navigation",function(e){let{render:{buttonPrev:t,buttonNext:n,iconPrev:l,iconNext:i},styles:o}=e,{prev:a,next:u,subscribeSensors:c}
1=tx(),{prevDisabled:s,nextDisabled:d}=tS();return tN(c),r.createElement(r.Fragment,null,t?t():r.createElement(tP,{label:"Previous",action:q,icon:te,renderIcon:l,style:o.navigationPrev,disabled:s,onClick:a}),n?n():r.createElement(tP,{label:"Next",action:K,icon:tt,renderIcon:i,style:o.navigationNext,disabled:d,onClick:u}))}),tF=eh("no_scroll"),tI=eh(V);function t_(e,t,n){let l=window.getComputedStyle(e),r=n?"padding-left":"padding-right",i=n?l.paddingLeft:l.paddingRight,o=e.style.getPropertyValue(r);return e.style.setProperty(r,"".concat((eC(i)||0)+t,"px")),()=>{o?e.style.setProperty(r,o):e.style.removeProperty(r)}}let tz=eT(I,function(e){let{noScroll:{disabled:t},children:n}=e,l=th(),{getOwnerDocument:i,getOwnerWindow:o}=eU();return r.useEffect(()=>{if(t)return()=>{};let e=[],n=o(),{body:r,documentElement:a}=i(),u=Math.round(n.innerWidth-a.clientWidth);if(u>0){e.push(t_(r,u,l));let t=r.getElementsByTagName("*");for(let r=0;r<t.length;r+=1){let i=t[r];"style"in i&&"fixed"===n.getComputedStyle(i).getPropertyValue("position")&&!i.classList.contains(tI)&&e.push(t_(i,u,l))}}return r.classList.add(tF),()=>{r.classList.remove(tF),e.forEach(e=>e())}},[l,t,i,o]),r.createElement(r.Fragment,null,n)});function tT(e,t,n){let l=e.getAttribute(t);return e.setAttribute(t,n),()=>{l?e.setAttribute(t,l):e.removeAttribute(t)}}let tA=eT(_,function(e){let{children:t,animation:n,styles:l,className:i,on:o,portal:a,close:u,labels:c}=e,[s,d]=r.useState(!1),[h,f]=r.useState(!1),m=r.useRef([]),p=r.useRef(null),{setTimeout:v}=e5(),{subscribe:g}=eV(),b=ti()?0:n.fade;r.useEffect(()=>(d(!0),()=>{d(!1),f(!1)}),[]);let w=tc(()=>{m.current.forEach(e=>e()),m.current=[]}),E=tc(()=>{var e;f(!1),w(),null==(e=o.exiting)||e.call(o),v(()=>{var e;null==(e=o.exited)||e.call(o),u()},b)});r.useEffect(()=>g($,E),[g,E]);let y=tc(e=>{var t,n,l;e.scrollTop,f(!0),null==(t=o.entering)||t.call(o);let r=null!=(l=null==(n=e.parentNode)?void 0:n.children)?l:[];for(let t=0;t<r.length;t+=1){let n=r[t];-1===["TEMPLATE","SCRIPT","STYLE"].indexOf(n.tagName)&&n!==e&&(m.current.push(tT(n,"inert","")),m.current.push(tT(n,"aria-hidden","true")))}m.current.push(()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.focus)||t.call(e)}),v(()=>{var e;null==(e=o.entered)||e.call(o)},b)}),x=r.useCallback(e=>{e?y(e):w()},[y,w]);return s?(0,ec.createPortal)(r.createElement(tb,{ref:x,className:ed(i,eh(em(_,void 0)),eh(V),h&&eh(em(_,"open"))),"aria-modal":!0,role:"dialog","aria-label":ev(c,"Lightbox"),style:{...n.fade!==ez.animation.fade?{[ef("fade_animation_duration")]:"".concat(b,"ms")}:null,...n.easing.fade!==ez.animation.easing.fade?{[ef("fade_animation_timing_function")]:n.easing.fade}:null,...l.root},onFocus:e=>{p.current||(p.current=e.relatedTarget)}},t),a.root||document.body):null}),tW=eT("root",function(e){let{children:t}=e;return r.createElement(r.Fragment,null,t)}),tj=eT(z,function(e){let{toolbar:{buttons:t},render:{buttonClose:n,iconClose:l},styles:i}=e,{close:o,setToolbarWidth:a}=tx(),{setContainerRef:u,containerRect:c}=ta();return tr(()=>{a(null==c?void 0:c.width)},[a,null==c?void 0:c.width]),r.createElement("div",{ref:u,style:i.toolbar,className:eh(em(z,void 0))},null==t?void 0:t.map(e=>e===$?n?n():r.createElement(e3,{key:$,label:"Close",icon:e7,renderIcon:l,onClick:o}):e))});function tH(e){let{carousel:t,animation:n,render:l,toolbar:i,controller:o,noScroll:a,on:u,plugins:c,slides:s,index:d,...h}=e,{animation:f,carousel:m,render:p,toolbar:v,controller:g,noScroll:b,on:w,slides:E,index:y,plugins:x,...M}=ez,{config:C,augmentation:k}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=e,r=e=>{let t=[...l];for(;t.length>0;){let n=t.pop();if((null==n?void 0:n.module.name)===e)return!0;(null==n?void 0:n.children)&&t.push(...n.children)}return!1},i=(e,t)=>{if(""===e){l=[eA(t,l)];return}l=eW(l,e,e=>[eA(t,[e])])},o=(e,t)=>{l=eW(l,e,e=>[eA(e.module,[eA(t,e.children)])])},a=(e,t,n)=>{l=eW(l,e,e=>{var l;return[eA(e.module,[...n?[eA(t)]:[],...null!=(l=e.children)?l:[],...n?[]:[eA(t)]])]})},u=(e,t,n)=>{l=eW(l,e,e=>[...n?[eA(t)]:[],e,...n?[]:[eA(t)]])},c=e=>{o(F,e)},s=(e,t)=>{l=eW(l,e,e=>[eA(t,e.children)])},d=e=>{l=eW(l,e,e=>e.children)},h=e=>{n.push(e)};
1return t.forEach(e=>{e({contains:r,addParent:i,append:o,addChild:a,addSibling:u,addModule:c,replace:s,remove:d,augment:h})}),{config:l,augmentation:e=>n.reduce((e,t)=>t(e),e)}}([eA(tA,[eA(tz,[eA(tM,[eA(tR),eA(tj),eA(tL)])])])],c||x),R=k({animation:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{easing:n,...l}=e,{easing:r,...i}=t;return{easing:{...n,...r},...l,...i}}(f,n),carousel:{...m,...t},render:{...p,...l},toolbar:{...v,...i},controller:{...g,...o},noScroll:{...b,...a},on:{...w,...u},...M,...h});return R.open?r.createElement(eK,{...R},r.createElement(e1,{slides:s||E,index:eC(d||y)},r.createElement(e4,null,r.createElement(eZ,null,r.createElement(eO,null,function e(t,n){var l;return r.createElement(t.module.component,{key:t.module.name,...n},null==(l=t.children)?void 0:l.map(t=>e(t,n)))}(eA(tW,C),R)))))):null}let tO=e=>eh("slide_".concat(e)),tD={descriptionTextAlign:"start",descriptionMaxLines:3,showToggle:!1,hidden:!1},tU=e=>({...tD,...e}),tX=r.createContext(null),tB=ew("useCaptions","CaptionsContext",tX);function tV(e){let{captions:t,children:n}=e,{ref:l,hidden:i}=tU(t),[o,a]=r.useState(!i),u=r.useMemo(()=>({visible:o,show:()=>a(!0),hide:()=>a(!1)}),[o]);return r.useImperativeHandle(l,()=>u,[u]),r.createElement(tX.Provider,{value:u},n)}function tZ(e){let{title:t}=e,{toolbarWidth:n}=tx(),{styles:l}=eq(),{visible:i}=tB();return i?r.createElement("div",{role:"heading","aria-level":2,style:l.captionsTitleContainer,className:ed(tO("captions_container"),tO("title_container"))},r.createElement("div",{className:tO("title"),style:{...n?{[ef("toolbar_width")]:"".concat(n,"px")}:null,...l.captionsTitle}},t)):null}function tY(e){let{description:t}=e,{descriptionTextAlign:n,descriptionMaxLines:l}=function(){let{captions:e}=eq();return tU(e)}(),{styles:i,labels:o}=eq(),{visible:a}=tB();return a?r.createElement("div",{style:i.captionsDescriptionContainer,className:ed(tO("captions_container"),tO("description_container"))},r.createElement("div",{className:tO("description"),style:{...n!==tD.descriptionTextAlign||l!==tD.descriptionMaxLines?{[ef("slide_description_text_align")]:n,[ef("slide_description_max_lines")]:l}:null,...i.captionsDescription},role:"paragraph","aria-roledescription":ev(o,"Caption")},"string"==typeof t?t.split("\n").flatMap((e,t)=>[...t>0?[r.createElement("br",{key:t})]:[],e]):t)):null}let tq=()=>r.createElement(r.Fragment,null,r.createElement("path",{strokeWidth:2,stroke:"currentColor",strokeLinejoin:"round",fill:"none",d:"M3 5l18 0l0 14l-18 0l0-14z"}),r.createElement("path",{d:"M7 15h3c.55 0 1-.45 1-1v-1H9.5v.5h-2v-3h2v.5H11v-1c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1zm7 0h3c.55 0 1-.45 1-1v-1h-1.5v.5h-2v-3h2v.5H18v-1c0-.55-.45-1-1-1h-3c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1z"})),tK=e8("CaptionsVisible",tq()),tQ=e6("CaptionsVisible",tq());function t$(){let{visible:e,show:t,hide:n}=tB(),{render:l}=eq();return l.buttonCaptions?r.createElement(r.Fragment,null,l.buttonCaptions({visible:e,show:t,hide:n})):r.createElement(e3,{label:e?"Hide captions":"Show captions",icon:e?tK:tQ,renderIcon:e?l.iconCaptionsVisible:l.iconCaptionsHidden,onClick:e?n:t})}function tG(e){let{augment:t,addModule:n}=e;t(e=>{let{captions:t,render:{slideFooter:n,...l},toolbar:i,...o}=e,a=tU(t);return{render:{slideFooter:e=>{let{slide:t}=e;return r.createElement(r.Fragment,null,null==n?void 0:n({slide:t}),t.title&&r.createElement(tZ,{title:t.title}),t.description&&r.createElement(tY,{description:t.description}))},...l},toolbar:eF(i,T,a.showToggle?r.createElement(t$,null):null),captions:a,...o}}),n(eT(T,tV))}let tJ={separator:"/",container:{}},t0=e=>({...tJ,...e});function t1(e){let{counter:t}=e,{slides:n,currentIndex:l}=e$(),{separator:i,container:{className:o,...a},className:u,...c}=t0(t);return 0===n.length?null:r.createElement("div",{className:ed(eh("counter"),o||u),...c,...a,"aria-hidden":!0},l+1," ",i," ",n.length)}function t2(e){let{augment:t,addChild:n}=e;t(e=>{let{counter:t,...n}=e;return{counter:t0(t),...n}}),n(F,eT("counter",t1))}let t5={download:void 0},t4=e=>({...t5,...e});function t3(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){let t=document.createEvent("MouseEvents");
1t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}function t9(e,t){let n=document.createElement("a");if(n.rel="noopener",n.download=t||"",n.download||(n.target="_blank"),"string"==typeof e)if(n.href=e,n.origin!==window.location.origin)if(function(e){let t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}(n.href)){let n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=()=>{t9(n.response,t)},n.onerror=()=>{console.error("Failed to download file")},n.send()}else n.target="_blank",t3(n);else t3(n);else n.href=URL.createObjectURL(e),setTimeout(()=>URL.revokeObjectURL(n.href),3e4),setTimeout(()=>t3(n),0)}let t8=e8("DownloadIcon",r.createElement("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z"}));function t6(){let{render:e,on:t,download:n}=eq(),{download:l}=t4(n),{currentSlide:i,currentIndex:o}=e$();if(e.buttonDownload)return r.createElement(r.Fragment,null,e.buttonDownload());let a=i&&(i.downloadUrl||"string"==typeof i.download&&i.download||"object"==typeof i.download&&i.download.url||ex(i)&&i.src)||void 0,u=l?(null==i?void 0:i.download)!==!1:!!a;return r.createElement(e3,{label:"Download",icon:t8,renderIcon:e.iconDownload,disabled:!u,onClick:()=>{var e;i&&((l||(()=>{i&&a&&t9(a,i.downloadFilename||"object"==typeof i.download&&i.download.filename||void 0)}))({slide:i,saveAs:t9}),null==(e=t.download)||e.call(t,{index:o}))}})}function t7(e){let{augment:t}=e;t(e=>{let{toolbar:t,download:n,...l}=e;return{toolbar:eF(t,"download",r.createElement(t6,null)),download:t4(n),...l}})}let ne={auto:!1,ref:null},nt=e=>({...ne,...e}),nn=r.createContext(null),nl=ew("useFullscreen","FullscreenContext",nn);function nr(e){let{fullscreen:t,on:n,children:l}=e,{auto:i,ref:o}=nt(t),a=r.useRef(null),[u,c]=r.useState(),[s,d]=r.useState(!1),h=r.useRef(!1),{getOwnerDocument:f}=eU();tr(()=>{var e,t,n,l;let r=f();c(!(null!=(l=null!=(n=null!=(t=null!=(e=r.fullscreenEnabled)?e:r.webkitFullscreenEnabled)?t:r.mozFullScreenEnabled)?n:r.msFullscreenEnabled)&&l))},[f]);let m=r.useCallback(()=>{var e;let t=f(),n=t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement;return(null==(e=null==n?void 0:n.shadowRoot)?void 0:e.fullscreenElement)||n},[f]),p=r.useCallback(()=>{let e=a.current;try{e.requestFullscreen?e.requestFullscreen().catch(()=>{}):e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}catch(e){}},[]),v=r.useCallback(()=>{if(!m())return;let e=f();try{e.exitFullscreen?e.exitFullscreen().catch(()=>{}):e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen()}catch(e){}},[m,f]);r.useEffect(()=>{let e=f(),t=()=>{d(m()===a.current)};return eb(...["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].map(n=>(e.addEventListener(n,t),()=>e.removeEventListener(n,t))))},[m,f]);let g=tc(()=>{var e;return null==(e=n.enterFullscreen)?void 0:e.call(n)}),b=tc(()=>{var e;return null==(e=n.exitFullscreen)?void 0:e.call(n)});r.useEffect(()=>{s&&(h.current=!0),h.current&&(s?g:b)()},[s,g,b]);let w=tc(()=>{var e;return null==(e=i?p:null)||e(),v});r.useEffect(w,[w]);let E=r.useMemo(()=>({fullscreen:s,disabled:u,enter:p,exit:v}),[s,u,p,v]);return r.useImperativeHandle(o,()=>E,[E]),r.createElement("div",{ref:a,className:ed(eh(A),eh(X))},r.createElement(nn.Provider,{value:E},l))}let ni=e8("EnterFullscreen",r.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})),no=e8("ExitFullscreen",r.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}));function na(){var e;let{fullscreen:t,disabled:n,enter:l,exit:i}=nl(),{render:o}=eq();return n?null:o.buttonFullscreen?r.createElement(r.Fragment,null,null==(e=o.buttonFullscreen)?void 0:e.call(o,{fullscreen:t,disabled:n,enter:l,exit:i})):r.createElement(e3,{disabled:n,label:t?"Exit Fullscreen":"Enter Fullscreen",icon:t?no:ni,renderIcon:t?o.iconExitFullscreen:o.iconEnterFullscreen,onClick:t?i:l})}function nu(e){let{augment:t,contains:n,addParent:l}=e;t(e=>{let{fullscreen:t,toolbar:n,...l}=e;return{toolbar:eF(n,A,r.createElement(na,null)),fullscreen:nt(t),...l}}),l(n(W)?W:F,eT(A,nr))}let nc={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,scrollToZoom:!1};
1function ns(e){let{minZoom:t,...n}={...nc,...e};return{minZoom:Math.min(Math.max(t,Number.EPSILON),1),...n}}function nd(){let{zoom:e}=eq();return ns(e)}function nh(e,t){return((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2)**.5}function nf(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return e*Math.min(1+Math.abs(t/n),l)**Math.sign(t)}let nm=r.createContext(null),np=ew("useZoom","ZoomControllerContext",nm);function nv(e){let{children:t}=e,[n,l]=r.useState(),{slideRect:i}=tx(),{ref:o,minZoom:a}=nd(),{imageRect:u,maxZoom:c}=function(e,t){var n,l;let r={width:0,height:0},i={width:0,height:0},{currentSlide:o}=e$(),{imageFit:a}=eq().carousel,{maxZoomPixelRatio:u}=nd();if(e&&o){let c={...o,...t};if(ex(c)){let t=eM(c,a),o=Math.max(...((null==(n=c.srcSet)?void 0:n.map(e=>e.width))||[]).concat(c.width?[c.width]:[])),s=Math.max(...((null==(l=c.srcSet)?void 0:l.map(e=>e.height))||[]).concat(c.height?[c.height]:[]));o>0&&s>0&&e.width>0&&e.height>0&&(i={width:(i=t?{width:Math.round(Math.min(o,e.width/e.height*s)),height:Math.round(Math.min(s,e.height/e.width*o))}:{width:o,height:s}).width*u,height:i.height*u},r=t?{width:Math.min(e.width,i.width,o),height:Math.min(e.height,i.height,s)}:{width:Math.round(Math.min(e.width,e.height/s*o,o)),height:Math.round(Math.min(e.height,e.width/o*s,s))})}}let c=r.width?Math.max(ey(i.width/r.width,5),1):1;return{imageRect:r,maxZoom:c}}(i,null==n?void 0:n.imageDimensions),{zoom:s,offsetX:d,offsetY:h,disabled:f,changeZoom:m,changeOffsets:p,zoomIn:v,zoomOut:g}=function(e,t,n){let[l,i]=r.useState(1),[o,a]=r.useState(0),[u,c]=r.useState(0),s=function(e,t,n,l){let i=r.useRef(void 0),o=r.useRef(void 0),{zoom:a}=eq().animation,u=ti(),c=tc(()=>{var r,c,s;if(null==(r=i.current)||r.cancel(),i.current=void 0,o.current&&(null==l?void 0:l.current)){try{i.current=null==(s=(c=l.current).animate)?void 0:s.call(c,[{transform:o.current},{transform:"scale(".concat(e,") translateX(").concat(t,"px) translateY(").concat(n,"px)")}],{duration:u?0:null!=a?a:500,easing:i.current?"ease-out":"ease-in-out"})}catch(e){console.error(e)}o.current=void 0,i.current&&(i.current.onfinish=()=>{i.current=void 0})}});return tr(c,[e,t,n,c]),r.useCallback(()=>{o.current=(null==l?void 0:l.current)?window.getComputedStyle(l.current).transform:void 0},[l])}(l,o,u,n),{currentSlide:d,globalIndex:h}=e$(),{containerRect:f,slideRect:m}=tx(),{minZoom:p,zoomInMultiplier:v}=nd(),g=d&&ex(d)?d.src:void 0,b=!g||!(null==n?void 0:n.current);tr(()=>{i(1),a(0),c(0)},[h,g]);let w=r.useCallback((t,n,r)=>{let i=r||l,s=o-(t||0),d=u-(n||0),h=(e.width*i-m.width)/2/i,f=(e.height*i-m.height)/2/i;a(Math.min(Math.abs(s),Math.max(h,0))*Math.sign(s)),c(Math.min(Math.abs(d),Math.max(f,0))*Math.sign(d))},[l,o,u,m,e.width,e.height]),E=r.useCallback((e,n,r,o)=>{let a=ey(Math.min(Math.max(e+.001<t?e:t,p),t),5);
1a!==l&&(n||s(),w(r?r*(1/l-1/a):0,o?o*(1/l-1/a):0,a),i(a))},[l,p,t,w,s]),y=tc(()=>{l>1&&(l>t&&E(t,!0),w())});tr(y,[f.width,f.height,y]);let x=r.useCallback(()=>{let e=l*v;E(l<1&&e>1?1:e)},[l,v,E]),M=r.useCallback(()=>{let e=l/v;E(l>1&&e<1?1:e)},[l,v,E]);return{zoom:l,offsetX:o,offsetY:u,disabled:b,changeOffsets:w,changeZoom:E,zoomIn:x,zoomOut:M}}(u,c,null==n?void 0:n.zoomWrapperRef),{on:b}=eq(),w=tc(()=>{var e;f||null==(e=b.zoom)||e.call(b,{zoom:s})});r.useEffect(w,[s,w]),function(e,t,n,l,i,o,a,u,c){let s=r.useRef([]),d=r.useRef(0),h=r.useRef(void 0),{globalIndex:f}=e$(),{getOwnerWindow:m}=eU(),{containerRef:p,subscribeSensors:v}=tx(),{keyboardMoveDistance:g,zoomInMultiplier:b,wheelZoomDistanceFactor:w,scrollToZoom:E,doubleTapDelay:y,doubleClickDelay:x,doubleClickMaxStops:M,pinchZoomDistanceFactor:C}=nd(),k=r.useCallback(e=>{if(p.current){let{pageX:t,pageY:n}=e,{scrollX:l,scrollY:r}=m(),{left:i,top:o,width:a,height:u}=p.current.getBoundingClientRect();return[t-i-l-a/2,n-o-r-u/2]}return[]},[p,m]),R=tc(t=>{let{key:n,metaKey:l,ctrlKey:r}=t,c=l||r,s=()=>{t.preventDefault(),t.stopPropagation()};if(e>1){let e=(e,t)=>{s(),u(e,t)};"ArrowDown"===n?e(0,g):"ArrowUp"===n?e(0,-g):"ArrowLeft"===n?e(-g,0):"ArrowRight"===n&&e(g,0)}"+"===n||c&&"="===n?(s(),i()):"-"===n||c&&"_"===n?(s(),o()):c&&"0"===n&&(s(),a(1))}),S=tc(t=>{if((t.ctrlKey||E)&&Math.abs(t.deltaY)>Math.abs(t.deltaX)){t.stopPropagation(),a(nf(e,-t.deltaY,w),!0,...k(t));return}e>1&&(t.stopPropagation(),E||u(t.deltaX,t.deltaY))}),N=r.useCallback(e=>{let t=s.current;t.splice(0,t.length,...t.filter(t=>t.pointerId!==e.pointerId))},[]),P=r.useCallback(e=>{N(e),e.persist(),s.current.push(e)},[N]),L=tc(l=>{var r;let i=s.current;if("mouse"===l.pointerType&&l.buttons>1||!(null==(r=null==c?void 0:c.current)?void 0:r.contains(l.target)))return;e>1&&l.stopPropagation();let{timeStamp:o}=l;0===i.length&&o-d.current<("touch"===l.pointerType?y:x)?(d.current=0,a(e>=1?e!==n?e*Math.max(n**(1/M),b):1:e!==t?e/Math.max(t**(-1/M),b):1,!1,...k(l))):d.current=o,P(l),2===i.length&&(h.current=nh(i[0],i[1]))}),F=tc(t=>{let n=s.current,l=n.find(e=>e.pointerId===t.pointerId);if(2===n.length&&h.current){t.stopPropagation(),P(t);let l=nh(n[0],n[1]),r=l-h.current;Math.abs(r)>0&&(a(nf(e,r,C),!0,...n.map(e=>k(e)).reduce((e,t)=>t.map((t,n)=>e[n]+t/2))),h.current=l);return}e>1&&(t.stopPropagation(),l&&(1===n.length&&u((l.clientX-t.clientX)/e,(l.clientY-t.clientY)/e),P(t)))}),I=r.useCallback(e=>{let t=s.current;2===t.length&&t.find(t=>t.pointerId===e.pointerId)&&(h.current=void 0),N(e)},[N]),_=r.useCallback(()=>{let e=s.current;e.splice(0,e.length),d.current=0,h.current=void 0},[]);tw(v,L,F,I,l),r.useEffect(_,[f,_]),r.useEffect(()=>l?()=>{}:eb(_,v(el,R),v(er,S)),[l,v,_,R,S])}(s,a,c,f,v,g,m,p,null==n?void 0:n.zoomWrapperRef);let E=r.useMemo(()=>({zoom:s,minZoom:a,maxZoom:c,offsetX:d,offsetY:h,disabled:f,zoomIn:v,zoomOut:g,changeZoom:m}),[s,a,c,d,h,f,v,g,m]);r.useImperativeHandle(o,()=>E,[E]);let y=r.useMemo(()=>({...E,setZoomWrapper:l}),[E,l]);return r.createElement(nm.Provider,{value:y},t)}let ng=e8("ZoomIn",r.createElement(r.Fragment,null,r.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),r.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))),nb=e8("ZoomOut",r.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"})),nw=r.forwardRef(function(e,t){let{zoomIn:n,onLoseFocus:l}=e,i=r.useRef(!1),o=r.useRef(!1),{zoom:a,minZoom:u,maxZoom:c,zoomIn:s,zoomOut:d,disabled:h}=np(),{render:f}=eq(),m=h||(n?a>=c:a<=u);return r.useEffect(()=>{m&&i.current&&o.current&&l(),m||(i.current=!0)},[m,l]),r.createElement(e3,{ref:t,disabled:m,label:n?"Zoom in":"Zoom out",icon:n?ng:nb,renderIcon:n?f.iconZoomIn:f.iconZoomOut,onClick:n?s:d,onFocus:()=>{o.current=!0},onBlur:()=>{o.current=!1}})});function nE(){let e=r.useRef(null),t=r.useRef(null),{focus:n}=tx(),l=r.useCallback(e=>{var t,l;(null==(t=e.current)?void 0:t.disabled)?n():null==(l=e.current)||l.focus()},[n]),i=r.useCallback(()=>l(e),[l]),o=r.useCallback(()=>l(t),[l]);return r.createElement(r.Fragment,null,r.createElement(nw,{zoomIn:!0,ref:e,onLoseFocus:o}),r.createElement(nw,{ref:t,onLoseFocus:i}))}function ny(){let{render:e}=eq(),t=np();
1return e.buttonZoom?r.createElement(r.Fragment,null,e.buttonZoom(t)):r.createElement(nE,null)}function nx(e,t){let{current:n,preload:l}=e,{type:r,source:i}=t;switch(r){case"fetch":if(!n)return{current:i};return{current:n,preload:i};case"done":if(i===l)return{current:i};return{current:n,preload:l};default:throw Error(eu)}}function nM(e){var t,n;let[{current:l,preload:i},o]=r.useReducer(nx,{}),{slide:a,rect:u,imageFit:c,render:s,interactive:d}=e,h=a.srcSet.sort((e,t)=>e.width-t.width),f=null!=(t=a.width)?t:h[h.length-1].width,m=null!=(n=a.height)?n:h[h.length-1].height,p=eM(a,c),v=Math.max(...h.map(e=>e.width)),g=Math.min((p?Math.max:Math.min)(u.width,f*(u.height/m)),v),b=(eE()?null==window?void 0:window.devicePixelRatio:void 0)||1,w=tc(()=>{var e;let t=null!=(e=h.find(e=>e.width>=g*b))?e:h[h.length-1];(!l||h.findIndex(e=>e.src===l)<h.findIndex(e=>e===t))&&o({type:"fetch",source:t.src})});tr(w,[u.width,u.height,b,w]);let E=tc(e=>o({type:"done",source:e})),y={WebkitTransform:d?"initial":"translateZ(0)"};return p||Object.assign(y,u.width/u.height<f/m?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),r.createElement(r.Fragment,null,i&&i!==l&&r.createElement(tg,{key:"preload",...e,offset:void 0,slide:{...a,src:i,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...y},onLoad:()=>E(i),render:{...s,iconLoading:()=>null,iconError:()=>null}}),l&&r.createElement(tg,{key:"current",...e,slide:{...a,src:l,srcSet:void 0},style:y}))}function nC(e){var t,n;let{render:l,slide:i,offset:o,rect:a}=e,[u,c]=r.useState(),s=r.useRef(null),{zoom:d,maxZoom:h,offsetX:f,offsetY:m,setZoomWrapper:p}=np(),v=d>1,{carousel:g,on:b}=eq(),{currentIndex:w}=e$();tr(()=>0===o?(p({zoomWrapperRef:s,imageDimensions:u}),()=>p(void 0)):()=>{},[o,u,p]);let E=null==(t=l.slide)?void 0:t.call(l,{slide:i,offset:o,rect:a,zoom:d,maxZoom:h});if(!E&&ex(i)){let e={slide:i,offset:o,rect:a,render:l,imageFit:g.imageFit,imageProps:g.imageProps,onClick:0===o?()=>{var e;return null==(e=b.click)?void 0:e.call(b,{index:w})}:void 0};E=((null==(n=i.srcSet)?void 0:n.length)||0)>0?r.createElement(nM,{...e,slide:i,interactive:v,rect:0===o?{width:a.width*d,height:a.height*d}:a}):r.createElement(tg,{onLoad:e=>c({width:e.naturalWidth,height:e.naturalHeight}),...e})}return E?r.createElement("div",{ref:s,className:ed(eh(X),eh(B),eh(Y),v&&eh("slide_wrapper_interactive")),style:0===o?{transform:"scale(".concat(d,") translateX(").concat(f,"px) translateY(").concat(m,"px)")}:void 0},E):null}let nk=e=>{let{augment:t,addModule:n}=e;t(e=>{let{zoom:t,toolbar:n,render:l,controller:i,...o}=e,a=ns(t);return{zoom:a,toolbar:eF(n,j,r.createElement(ny,null)),render:{...l,slide:e=>{var t;return ex(e.slide)?r.createElement(nC,{render:l,...e}):null==(t=l.slide)?void 0:t.call(l,e)}},controller:{...i,preventDefaultWheelY:a.scrollToZoom},...o}}),n(eT(j,nv))};function nR(e){let{inline:{className:t,style:n,...l}={},styles:i,children:o}=e;return r.createElement(tb,{className:ed(eh("relative"),t),style:{[ef("controller_overscroll_behavior")]:"contain auto",...i.root,...n},...l},o)}function nS(e){let{augment:t,replace:n,remove:l}=e;t(e=>{let{toolbar:{buttons:t,...n},open:l,close:r,controller:{focus:i,aria:o,touchAction:a,...u},className:c,...s}=e;return{open:!0,close:()=>{},toolbar:{buttons:t.filter(e=>e!==$),...n},inline:{style:{width:"100%",height:"100%"},className:c},controller:{focus:!1,aria:!0,touchAction:"pan-y",...u},className:c,...s}}),l(I),n(_,eT("inline",nR))}let nN={ref:null,position:"bottom",width:120,height:80,border:1,borderRadius:4,padding:4,gap:16,imageFit:"contain",vignette:!0,hidden:!1,showToggle:!1},nP=e=>({...nN,...e});function nL(){let{thumbnails:e}=eq();return nP(e)}let nF=e=>em(W,e),nI=e=>nF(em("thumbnail",e)),n_=e8("VideoThumbnail",r.createElement("path",{d:"M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})),nz=e8("UnknownThumbnail",r.createElement("path",{d:"M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zM8.5 12.5l2.5 3.01L14.5 11l4.5 6H5l3.5-4.5z"})),nT=ep("active"),nA=ep("fadein"),nW=ep("fadeout"),nj=ep("placeholder"),nH="delay",nO="duration";function nD(e){let{slide:t,index:n,onClick:l,fadeIn:i,fadeOut:o,placeholder:a,onLoseFocus:u}=e,c=r.useRef(null),{render:s,styles:d,labels:h}=eq(),{slides:f,globalIndex:m}=e$(),{getOwnerDocument:p}=eU(),{width:v,height:g,imageFit:b}=nL(),w=n===m,E=tc(u);return r.useEffect(()=>{o&&p().activeElement===c.current&&E()},[o,E,p]),r.createElement("button",{ref:c,type:"button",className:ed(eh(B),eh(nI()),w&&eh(nI(nT())),i&&eh(nI(nA())),o&&eh(nI(nW())),a&&eh(nI(nj()))),style:{...i?{[ef(nI(nA(nO)))]:"".concat(i.duration,"ms"),[ef(nI(nA(nH
1)))]:"".concat(i.delay,"ms")}:null,...o?{[ef(nI(nW(nO)))]:"".concat(o.duration,"ms"),[ef(nI(nW(nH)))]:"".concat(o.delay,"ms")}:null,...d.thumbnail},onClick:l,"aria-current":!!w||void 0,"aria-label":eg(h,f,n)},t&&function(e){var t;let{slide:n,render:l,rect:i,imageFit:o}=e,a=null==(t=l.thumbnail)?void 0:t.call(l,{slide:n,render:l,rect:i,imageFit:o});if(a)return a;let u={render:l,rect:i,imageFit:o};if(n.thumbnail)return r.createElement(tg,{slide:{src:n.thumbnail},...u});if(ex(n))return r.createElement(tg,{slide:n,...u});let c=eh(nI(ei));return"video"===n.type?r.createElement(r.Fragment,null,n.poster&&r.createElement(tg,{slide:{src:n.poster},...u}),r.createElement(n_,{className:c})):r.createElement(nz,{className:c})}({slide:t,render:s,rect:{width:v,height:g},imageFit:b}))}function nU(e){return["top","bottom"].includes(e)}function nX(e,t){return t+2*(e.border+e.padding)+e.gap}function nB(e){let{visible:t,containerRef:n}=e,l=r.useRef(null),i=th(),{publish:o,subscribe:a}=eV(),{carousel:u,styles:c,labels:s}=eq(),{slides:d,globalIndex:h,animation:f}=e$(),{registerSensors:m,subscribeSensors:p}=tf();tN(p);let v=nL(),{position:g,width:b,height:w,border:E,borderStyle:y,borderColor:x,borderRadius:M,padding:C,gap:k,vignette:R}=v,S=(null==f?void 0:f.duration)!==void 0&&(null==f?void 0:f.increment)||0,N=(null==f?void 0:f.duration)||0,{prepareAnimation:P}=to(l,e=>({keyframes:nU(g)?[{transform:"translateX(".concat((i?-1:1)*nX(v,b)*S+e,"px)")},{transform:"translateX(0)"}]:[{transform:"translateY(".concat(nX(v,w)*S+e,"px)")},{transform:"translateY(0)"}],duration:N,easing:null==f?void 0:f.easing})),L=tc(()=>{let e=0;if(n.current&&l.current){let t=n.current.getBoundingClientRect(),r=l.current.getBoundingClientRect();e=nU(g)?r.left-t.left-(t.width-r.width)/2:r.top-t.top-(t.height-r.height)/2}P(e)});r.useEffect(()=>eb(a(Q,L)),[a,L]);let F=eI(u,d),I=[];if(eS(d))for(let e=h-F-Math.abs(S);e<=h+F+Math.abs(S);e+=1){let t=u.finite&&(e<0||e>d.length-1)||S<0&&e<h-F||S>0&&e>h+F?null:eN(d,e),n=["".concat(e),function(e){let{thumbnail:t,poster:n}=e||{thumbnail:"placeholder"};return"string"==typeof t&&t||"string"==typeof n&&n||e&&eL(e)||void 0}(t)].filter(Boolean).join("|");I.push({key:n,index:e,slide:t})}return r.createElement("div",{className:ed(eh(nF("container")),eh(B)),style:{...!t?{display:"none"}:null,...b!==nN.width?{[ef(nI("width"))]:"".concat(b,"px")}:null,...w!==nN.height?{[ef(nI("height"))]:"".concat(w,"px")}:null,...E!==nN.border?{[ef(nI("border"))]:"".concat(E,"px")}:null,...y?{[ef(nI("border_style"))]:y}:null,...x?{[ef(nI("border_color"))]:x}:null,...M!==nN.borderRadius?{[ef(nI("border_radius"))]:"".concat(M,"px")}:null,...C!==nN.padding?{[ef(nI("padding"))]:"".concat(C,"px")}:null,...k!==nN.gap?{[ef(nI("gap"))]:"".concat(k,"px")}:null,...c.thumbnailsContainer}},r.createElement("nav",{ref:l,style:c.thumbnailsTrack,className:ed(eh(nF("track")),eh(B)),"aria-label":ev(s,"Thumbnails"),tabIndex:-1,...m},I.map(e=>{let{key:t,index:n,slide:i}=e,a=N/Math.abs(S||1),u=S>0&&n>h+F-S&&n<=h+F||S<0&&n<h-F-S&&n>=h-F?{duration:a,delay:((S>0?n-(h+F-S):h-F-S-n)-1)*a}:void 0,c=S>0&&n<h-F||S<0&&n>h+F?{duration:a,delay:(S>0?S-(h-F-n):-S-(n-(h+F)))*a}:void 0;return r.createElement(nD,{key:t,index:n,slide:i,fadeIn:u,fadeOut:c,placeholder:!i,onClick:()=>{n>h?o(K,{count:n-h}):n<h&&o(q,{count:h-n})},onLoseFocus:()=>{var e;return null==(e=l.current)?void 0:e.focus()}})})),R&&r.createElement("div",{className:eh(nF("vignette"))}))}let nV=r.createContext(null),nZ=ew("useThumbnails","ThumbnailsContext",nV);function nY(e){let{children:t,...n}=e,{ref:l,position:i,hidden:o}=nP(n.thumbnails),[a,u]=r.useState(!o),c=r.useRef(null),s=r.useMemo(()=>({visible:a,show:()=>u(!0),hide:()=>u(!1)}),[a]);return r.useImperativeHandle(l,()=>s,[s]),r.createElement(eK,{...n},r.createElement(nV.Provider,{value:s},r.createElement("div",{ref:c,className:ed(eh(nF()),eh(nF("".concat(i))))},["start","top"].includes(i)&&r.createElement(nB,{containerRef:c,visible:a}),r.createElement("div",{className:eh(nF("wrapper"))},t),["end","bottom"].includes(i)&&r.createElement(nB,{containerRef:c,visible:a}))))}let nq=()=>r.createElement(r.Fragment,null,r.createElement("path",{strokeWidth:2,stroke:"currentColor",strokeLinejoin:"round",fill:"none",d:"M3 5l18 0l0 14l-18 0l0-14z"}),r.createElement("path",{d:"M5 14h4v3h-4zM10 14h4v3h-4zM15 14h4v3h-4z"}
1)),nK=e8("ThumbnailsVisible",nq()),nQ=e6("ThumbnailsHidden",nq());function n$(){let{visible:e,show:t,hide:n}=nZ(),{render:l}=eq();return l.buttonThumbnails?r.createElement(r.Fragment,null,l.buttonThumbnails({visible:e,show:t,hide:n})):r.createElement(e3,{label:e?"Hide thumbnails":"Show thumbnails",icon:e?nK:nQ,renderIcon:e?l.iconThumbnailsVisible:l.iconThumbnailsHidden,onClick:e?n:t})}function nG(e){let{augment:t,contains:n,append:l,addParent:i}=e;t(e=>{let{thumbnails:t,toolbar:n,...l}=e,i=nP(t);return{toolbar:eF(n,W,i.showToggle?r.createElement(n$,null):null),thumbnails:i,...l}});let o=eT(W,nY);n(A)?l(A,o):i(F,o)}var nJ=e.i(93215),n0=e.i(68);let n1=e=>(null==e?void 0:e.url)?e.url.split("?")[0]:"",n2=e=>{var t,n,d,h,f,m,p,v,g;let{slice:b}=e,[w,E]=(0,r.useState)(-1),y=(null==b||null==(n=b.primary)||null==(t=n.images)?void 0:t.filter(e=>a.isFilled.image(null==e?void 0:e.image)).map((e,t)=>{var n,l;return{key:t,src:e.image.url,originalSrc:n1(e.image),download:n1(e.image),width:null==(n=e.image.dimensions)?void 0:n.width,height:null==(l=e.image.dimensions)?void 0:l.height,alt:e.image.alt||"",description:a.isFilled.keyText(e.description)?e.description:void 0}}))||[],x=y.map(e=>({...e,src:e.originalSrc||e.src,download:e.originalSrc||e.download||e.src}));return(0,l.jsx)(s.BackgroundImage,{slicePrimary:null==b?void 0:b.primary,children:(0,l.jsxs)("div",{className:(0,i.default)(nJ.default.default,!a.isFilled.keyText(null==b||null==(d=b.primary)?void 0:d.title)&&nJ.default.withPadding),style:(0,u.sliceStyle)(null==b?void 0:b.primary),children:[(null==b||null==(h=b.primary)?void 0:h.title)&&(0,l.jsx)("div",{className:(0,i.default)(n0.default.top),children:(0,l.jsx)("div",{className:(0,i.default)(n0.default.left),children:a.isFilled.keyText(null==b||null==(f=b.primary)?void 0:f.title)&&(0,l.jsx)("h1",{className:(0,i.default)(n0.default.h1),id:(0,u.dashify)(null==b||null==(m=b.primary)?void 0:m.title),children:(0,l.jsx)(c.RevealTitle,{size:"small",children:null==b||null==(p=b.primary)?void 0:p.title})})})}),(0,l.jsxs)("div",{className:(0,i.default)(nJ.default.photos),children:[(null==b||null==(v=b.primary)?void 0:v.style)==="Photo album"&&y.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(P,{photos:y,layout:"masonry",columns:e=>e<480?1:3,spacing:10,padding:0,onClick:e=>{let{index:t}=e;return E(t)},renderPhoto:e=>{let{photo:t,wrapperStyle:n}=e;return(0,l.jsx)("div",{style:n,children:(0,l.jsx)(o.PrismicNextImage,{field:{url:t.src,alt:t.alt},width:t.width,height:t.height,fallbackAlt:"",onClick:()=>E(t.key),className:nJ.default.image})},t.key)}}),-1!==w&&(0,l.jsx)(tH,{slides:x,index:w,open:w>=0,close:()=>E(-1),plugins:[tG,t2,t7,nu,nk],captions:{descriptionTextAlign:"start"}
1,counter:{container:{style:{top:"unset",bottom:0}}}})]}),(null==b||null==(g=b.primary)?void 0:g.style)==="Carousel"&&y.length>0&&(0,l.jsx)(tH,{slides:x,index:w,inline:{style:{width:"100%",maxWidth:"100%",aspectRatio:"3 / 2",margin:"0 auto"}},plugins:[tG,t7,nu,nk,nS,nG],captions:{descriptionTextAlign:"center"},counter:{container:{style:{top:"unset",bottom:0}}}})]})]})})}}}]); 2 3//# sourceMappingURL=11d23a6c0386ddbe.js.map
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.