PageSourceSearch

https://app.aieasypic.com/_next/static/chunks/9568-906458a57fa525fd.js

js aieasypic.com collected 2026-10-04 13:25:26 UTC 46,540 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9568],{8126:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(55729),l=n(59861);let i={share:void 0},a=e=>({...i,...e}),o=(0,l.wt)("ShareIcon",r.createElement("path",{d:"m16 5-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4 4 4zm4 5v11c0 1.1-.9 2-2 2H6c-1.11 0-2-.9-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3c1.1 0 2 .89 2 2z"}));function u(){let{render:e,on:t,share:n}=(0,l.D$)(),{share:i}=a(n),{currentSlide:u,currentIndex:c}=(0,l.mp)();if(!("undefined"!=typeof navigator&&navigator.canShare))return null;if(e.buttonShare)return r.createElement(r.Fragment,null,e.buttonShare());let s=u&&("object"==typeof u.share&&u.share||"string"==typeof u.share&&{url:u.share}||(0,l.tx)(u)&&{url:u.src})||void 0,d=i?(null==u?void 0:u.share)!==!1:s&&navigator.canShare(s);return r.createElement(l.K0,{label:"Share",icon:o,renderIcon:e.iconShare,disabled:!d,onClick:()=>{var e;u&&((i||(()=>{s&&navigator.share(s).catch(()=>{})}))({slide:u}),null==(e=t.share)||e.call(t,{index:c}))}})}function c({augment:e}){e(({toolbar:e,share:t,...n})=>({toolbar:(0,l.bo)(e,"share",r.createElement(u,null)),share:a(t),...n}))}},18813:()=>{},23545:()=>{},59854:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(55729),l=n(59861),i=n(63964);let a={maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,scrollToZoom:!1},o=e=>({...a,...e});function u(){let{zoom:e}=(0,l.D$)();return o(e)}function c(e,t){return((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2)**.5}function s(e,t,n=100,r=2){return e*Math.min(1+Math.abs(t/n),r)**Math.sign(t)}let d=r.createContext(null),h=(0,l.Tz)("useZoom","ZoomControllerContext",d);function f({children:e}){let[t,n]=r.useState(),{slideRect:a}=(0,l.as)(),{imageRect:o,maxZoom:h}=function(e,t){var n,r;let i={width:0,height:0},a={width:0,height:0},{currentSlide:o}=(0,l.mp)(),{imageFit:c}=(0,l.D$)().carousel,{maxZoomPixelRatio:s}=u();if(e&&o){let u={...o,...t};if((0,l.tx)(u)){let t=(0,l.QJ)(u,c),o=Math.max(...((null==(n=u.srcSet)?void 0:n.map(e=>e.width))||[]).concat(u.width?[u.width]:[])),d=Math.max(...((null==(r=u.srcSet)?void 0:r.map(e=>e.height))||[]).concat(u.height?[u.height]:[]));o>0&&d>0&&e.width>0&&e.height>0&&(a={width:(a=t?{width:Math.round(Math.min(o,e.width/e.height*d)),height:Math.round(Math.min(d,e.height/e.width*o))}:{width:o,height:d}).width*s,height:a.height*s},i=t?{width:Math.min(e.width,a.width,o),height:Math.min(e.height,a.height,d)}:{width:Math.round(Math.min(e.width,e.height/d*o,o)),height:Math.round(Math.min(e.height,e.width/o*d,d))})}}let d=i.width?Math.max((0,l.LI)(a.width/i.width,5),1):1;return{imageRect:i,maxZoom:d}}(a,null==t?void 0:t.imageDimensions),{zoom:f,offsetX:m,offsetY:p,disabled:g,changeZoom:v,changeOffsets:b,zoomIn:E,zoomOut:w}=function(e,t,n){let[i,a]=r.useState(1),[o,c]=r.useState(0),[s,d]=r.useState(0),h=function(e,t,n,i){let a=r.useRef(),o=r.useRef(),{zoom:u}=(0,l.D$)().animation,c=(0,l.iJ)(),s=(0,l.DK)(()=>{var r,l,s;if(null==(r=a.current)||r.cancel(),a.current=void 0,o.current&&(null==i?void 0:i.current)){try{a.current=null==(s=(l=i.current).animate)?void 0:s.call(l,[{transform:o.current},{transform:`scale(${e}) translateX(${t}px) translateY(${n}px)`}],{duration:c?0:null!=u?u:500,easing:a.current?"ease-out":"ease-in-out"})}catch(e){console.error(e)}o.current=void 0,a.current&&(a.current.onfinish=()=>{a.current=void 0})}});return(0,l.Nf)(s,[e,t,n,s]),r.useCallback(()=>{o.current=(null==i?void 0:i.current)?window.getComputedStyle(i.current).transform:void 0},[i])}(i,o,s,n),{currentSlide:f,globalIndex:m}=(0,l.mp)(),{containerRect:p,slideRect:g}=(0,l.as)(),{zoomInMultiplier:v}=u(),b=f&&(0,l.tx)(f)?f.src:void 0,E=!b||!(null==n?void 0:n.current);(0,l.Nf)(()=>{a(1),c(0),d(0)},[m,b]);let w=r.useCallback((t,n,r)=>{let l=r||i,a=o-(t||0),u=s-(n||0),h=(e.width*l-g.width)/2/l,f=(e.height*l-g.height)/2/l;c(Math.min(Math.abs(a),Math.max(h,0))*Math.sign(a)),d(Math.min(Math.abs(u),Math.max(f,0))*Math.sign(u))},[i,o,s,g,e.width,e.height]),y=r.useCallback((e,n,r,o)=>{let u=(0,l.LI)(Math.min(Math.max(e+.001<t?e:t,1),t),5);u!==i&&(n||h(),w(r?r*(1/i-1/u):0,o?o*(1/i-1/u):0,u),a(u))},[i,t,w,h]),x=(0,l.DK)(()=>{i>1&&(i>t&&y(t,!0),w())});(0,l.Nf)(x,[p.width,p.height,x]);let M=r.useCallback(()=>y(i*v),[i,v,y]),C=r.useCallback(()=>y(i/v),[i,v,y]);return{zoom:i,offsetX:o,offsetY:s,disabled:E,changeOffsets:w,changeZoom:y,zoomIn:M,zoomOut:C}}(o,h,null==t?void 0:t.zoomWrapperRef),{on:y}=(0,l.D$)(),x=(0,l.DK)(()=>{var e;g||null==(e=y.zoom)||e.call(y,{zoom:f})});r.useEffect(x,[f,x]),function(e,t,n,a,o,d){let h=r.useRef([]),f=r.useRef(0),m=r.useRef(),{globalIndex:p}=(0,l.mp)(),{getOwnerWindow:g}=(0,l.uG)(),{containerRef:v,subscribeSensors:b}=(0,l.as)(),{keyboardMoveDistance:E,zoomInMultiplier:w,wheelZoomDistanceFactor:y,scrollToZoom:x,doubleTapDelay:M,doubleClickDelay:C,doubleClickMaxStops:k,pinchZoomDistanceFactor:N}=u(),R=r.useCallback(e=>{if(v.current){let{pageX:t,pageY:n}=e,{scrollX:r,scrollY:l}=g(),{left:i,top:a,width:o,height:u}=v.current.getBoundingClientRect();return[t-i-r-o/2,n-a-l-u/2]}return[]},[v,g]),I=(0,l.DK)(t=>{let n=()=>{t.preventDefault(),t.stopPropagation()};if(e>1){let e=(e,t)=>
1{n(),o(e,t)};"ArrowDown"===t.key?e(0,E):"ArrowUp"===t.key?e(0,-E):"ArrowLeft"===t.key?e(-E,0):"ArrowRight"===t.key&&e(E,0)}let r=e=>{n(),a(e)},l=()=>t.getModifierState("Meta");"+"===t.key||"="===t.key&&l()?r(e*w):"-"===t.key||"_"===t.key&&l()?r(e/w):"0"===t.key&&l()&&r(1)}),$=(0,l.DK)(t=>{if((t.ctrlKey||x)&&Math.abs(t.deltaY)>Math.abs(t.deltaX)){t.stopPropagation(),a(s(e,-t.deltaY,y),!0,...R(t));return}e>1&&(t.stopPropagation(),x||o(t.deltaX,t.deltaY))}),P=r.useCallback(e=>{let t=h.current;t.splice(0,t.length,...t.filter(t=>t.pointerId!==e.pointerId))},[]),L=r.useCallback(e=>{P(e),e.persist(),h.current.push(e)},[P]),S=(0,l.DK)(n=>{var r;let l=h.current;if("mouse"===n.pointerType&&n.buttons>1||!(null==(r=null==d?void 0:d.current)?void 0:r.contains(n.target)))return;e>1&&n.stopPropagation();let{timeStamp:i}=n;0===l.length&&i-f.current<("touch"===n.pointerType?M:C)?(f.current=0,a(e!==t?e*Math.max(t**(1/k),w):1,!1,...R(n))):f.current=i,L(n),2===l.length&&(m.current=c(l[0],l[1]))}),D=(0,l.DK)(t=>{let n=h.current,r=n.find(e=>e.pointerId===t.pointerId);if(2===n.length&&m.current){t.stopPropagation(),L(t);let r=c(n[0],n[1]),l=r-m.current;Math.abs(l)>0&&(a(s(e,l,N),!0,...n.map(e=>R(e)).reduce((e,t)=>t.map((t,n)=>e[n]+t/2))),m.current=r);return}e>1&&(t.stopPropagation(),r&&(1===n.length&&o((r.clientX-t.clientX)/e,(r.clientY-t.clientY)/e),L(t)))}),F=r.useCallback(e=>{let t=h.current;2===t.length&&t.find(t=>t.pointerId===e.pointerId)&&(m.current=void 0),P(e)},[P]),z=r.useCallback(()=>{let e=h.current;e.splice(0,e.length),f.current=0,m.current=void 0},[]);(0,l.yQ)(b,S,D,F,n),r.useEffect(z,[p,z]),r.useEffect(()=>n?()=>{}:(0,l.tP)(z,b(i.uF,I),b(i.j7,$)),[n,b,z,I,$])}(f,h,g,v,b,null==t?void 0:t.zoomWrapperRef);let M=r.useMemo(()=>({zoom:f,maxZoom:h,offsetX:m,offsetY:p,disabled:g,zoomIn:E,zoomOut:w,changeZoom:v}),[f,h,m,p,g,E,w,v]);r.useImperativeHandle(u().ref,()=>M,[M]);let C=r.useMemo(()=>({...M,setZoomWrapper:n}),[M,n]);return r.createElement(d.Provider,{value:C},e)}let m=(0,l.wt)("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"}))),p=(0,l.wt)("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"})),g=r.forwardRef(function({zoomIn:e,onLoseFocus:t},n){let i=r.useRef(!1),a=r.useRef(!1),{zoom:o,maxZoom:u,zoomIn:c,zoomOut:s,disabled:d}=h(),{render:f}=(0,l.D$)(),g=d||(e?o>=u:o<=1);return r.useEffect(()=>{g&&i.current&&a.current&&t(),g||(i.current=!0)},[g,t]),r.createElement(l.K0,{ref:n,disabled:g,label:e?"Zoom in":"Zoom out",icon:e?m:p,renderIcon:e?f.iconZoomIn:f.iconZoomOut,onClick:e?c:s,onFocus:()=>{a.current=!0},onBlur:()=>{a.current=!1}})});function v(){let e=r.useRef(null),t=r.useRef(null),{focus:n}=(0,l.as)(),i=r.useCallback(e=>{var t,r;(null==(t=e.current)?void 0:t.disabled)?n():null==(r=e.current)||r.focus()},[n]),a=r.useCallback(()=>i(e),[i]),o=r.useCallback(()=>i(t),[i]);return r.createElement(r.Fragment,null,r.createElement(g,{zoomIn:!0,ref:e,onLoseFocus:o}),r.createElement(g,{ref:t,onLoseFocus:a}))}function b(){let{render:e}=(0,l.D$)(),t=h();
1return e.buttonZoom?r.createElement(r.Fragment,null,e.buttonZoom(t)):r.createElement(v,null)}function E({current:e,preload:t},{type:n,source:r}){switch(n){case"fetch":if(!e)return{current:r};return{current:e,preload:r};case"done":if(r===t)return{current:r};return{current:e,preload:t};default:throw Error(i.V)}}function w(e){var t,n;let[{current:i,preload:a},o]=r.useReducer(E,{}),{slide:u,rect:c,imageFit:s,render:d,interactive:h}=e,f=u.srcSet.sort((e,t)=>e.width-t.width),m=null!=(t=u.width)?t:f[f.length-1].width,p=null!=(n=u.height)?n:f[f.length-1].height,g=(0,l.QJ)(u,s),v=Math.max(...f.map(e=>e.width)),b=Math.min((g?Math.max:Math.min)(c.width,m*(c.height/p)),v),w=(0,l.Y5)(),y=(0,l.DK)(()=>{var e;let t=null!=(e=f.find(e=>e.width>=b*w))?e:f[f.length-1];(!i||f.findIndex(e=>e.src===i)<f.findIndex(e=>e===t))&&o({type:"fetch",source:t.src})});(0,l.Nf)(y,[c.width,c.height,w,y]);let x=(0,l.DK)(e=>o({type:"done",source:e})),M={WebkitTransform:h?"initial":"translateZ(0)"};return g||Object.assign(M,c.width/c.height<m/p?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),r.createElement(r.Fragment,null,a&&a!==i&&r.createElement(l.Z$,{key:"preload",...e,slide:{...u,src:a,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...M},onLoad:()=>x(a),render:{...d,iconLoading:()=>null,iconError:()=>null}}),i&&r.createElement(l.Z$,{key:"current",...e,slide:{...u,src:i,srcSet:void 0},style:M}))}function y({render:e,slide:t,offset:n,rect:a}){var o,u;let[c,s]=r.useState(),d=r.useRef(null),{zoom:f,maxZoom:m,offsetX:p,offsetY:g,setZoomWrapper:v}=h(),b=f>1,{carousel:E,on:y}=(0,l.D$)(),{currentIndex:x}=(0,l.mp)();(0,l.Nf)(()=>0===n?(v({zoomWrapperRef:d,imageDimensions:c}),()=>v(void 0)):()=>{},[n,c,v]);let M=null==(o=e.slide)?void 0:o.call(e,{slide:t,offset:n,rect:a,zoom:f,maxZoom:m});if(!M&&(0,l.tx)(t)){let i={slide:t,offset:n,rect:a,render:e,imageFit:E.imageFit,imageProps:E.imageProps,onClick:0===n?()=>{var e;return null==(e=y.click)?void 0:e.call(y,{index:x})}:void 0};M=((null==(u=t.srcSet)?void 0:u.length)||0)>0?r.createElement(w,{...i,slide:t,interactive:b,rect:0===n?{width:a.width*f,height:a.height*f}:a}):r.createElement(l.Z$,{onLoad:e=>s({width:e.naturalWidth,height:e.naturalHeight}),...i})}return M?r.createElement("div",{ref:d,className:(0,l.$z)((0,l.oF)(i.CC),(0,l.oF)(i.tC),(0,l.oF)(i.pc),b&&(0,l.oF)(i.Ue)),style:0===n?{transform:`scale(${f}) translateX(${p}px) translateY(${g}px)`}:void 0},M):null}let x=({augment:e,addModule:t})=>{e(({zoom:e,toolbar:t,render:n,controller:a,...u})=>{let c=o(e);return{zoom:c,toolbar:(0,l.bo)(t,i.AH,r.createElement(b,null)),render:{...n,slide:e=>{var t;return(0,l.tx)(e.slide)?r.createElement(y,{render:n,...e}):null==(t=n.slide)?void 0:t.call(n,e)}},controller:{...a,preventDefaultWheelY:c.scrollToZoom},...u}}),t((0,l.Fi)(i.AH,f))}},59861:(e,t,n)=>{"use strict";n.d(t,{$z:()=>c,Ay:()=>eZ,D$:()=>H,DB:()=>M,DK:()=>eh,Fi:()=>L,Hw:()=>N,JZ:()=>eD,K0:()=>q,LI:()=>v,LJ:()=>A,Nf:()=>eo,Q5:()=>et,QJ:()=>E,RT:()=>K,Tz:()=>p,Vg:()=>d,Y5:()=>x,Yc:()=>eg,Z$:()=>ew,as:()=>ek,bo:()=>R,eS:()=>I,f4:()=>h,fh:()=>f,gZ:()=>C,iJ:()=>eu,mp:()=>Z,oF:()=>s,sM:()=>ec,tP:()=>m,tx:()=>b,uG:()=>z,wt:()=>ee,x3:()=>ep,yQ:()=>ex});var r,l,i=n(55729),a=n(63964),o=n(56760);let u="yarl__";function c(...e){return[...e].filter(Boolean).join(" ")}function s(e){return`${u}${e}`}function d(e){return`--${u}${e}`}function h(e,t){return`${e}${t?`_${t}`:""}`}function f(e){return t=>h(e,t)}function m(...e){return()=>{e.forEach(e=>{e()})}}function p(e,t,n){return()=>{let r=i.useContext(n);if(!r)throw Error(`${e} must be used within a ${t}.Provider`);return r}}function g(){return"undefined"!=typeof window}function v(e,t=0){let n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function b(e){return void 0===e.type||"image"===e.type}function E(e,t){return e.imageFit===a.e7||e.imageFit!==a.Td&&t===a.e7}function w(e){return"string"==typeof e?Number.parseInt(e,10):e}function y(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){let t=w(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function x(){return(g()?null==window?void 0:window.devicePixelRatio:void 0)||1}function M(e){return e.length>0}function C(e,t){var n;return e[(n=e.length)>0?(t%n+n)%n:0]}function k(e,t){return M(e)?C(e,t):void 0}function N(e){return b(e)?e.src:void 0}function R(e,t,n){if(!n)return e;let{buttons:r,...l}=e,a=r.findIndex(e=>e===t),o=i.isValidElement(n)?i.cloneElement(n,{key:t},null):n;if(a>=0){let e=[...r];return e.splice(a,1,o),{buttons:e,...l}}return{buttons:[o,...r],...l}}function I(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}let $=Number(i.version.split(".")[0])>=19,P={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[a.C]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",n
1avigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:a.Td,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function L(e,t){return{name:e,component:t}}function S(e,t){return{module:e,children:t}}function D(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?[S(t.module,t.children.flatMap(t=>{var l;return null!=(l=e(t,n,r))?l:[]}))]:[t]}(e,t,n))?r:[]})}let F=i.createContext(null),z=p("useDocument","DocumentContext",F);function T({nodeRef:e,children:t}){let n=i.useMemo(()=>{let t=t=>{var n;return(null==(n=t||e.current)?void 0:n.ownerDocument)||document};return{getOwnerDocument:t,getOwnerWindow:e=>{var n;return(null==(n=t(e))?void 0:n.defaultView)||window}}},[e]);return i.createElement(F.Provider,{value:n},t)}let _=i.createContext(null),A=p("useEvents","EventsContext",_);function O({children:e}){let[t]=i.useState({});i.useEffect(()=>()=>{Object.keys(t).forEach(e=>delete t[e])},[t]);let n=i.useMemo(()=>{let e=(e,n)=>{var r;null==(r=t[e])||r.splice(0,t[e].length,...t[e].filter(e=>e!==n))};return{publish:(...[e,n])=>{var r;null==(r=t[e])||r.forEach(e=>e(n))},subscribe:(n,r)=>(t[n]||(t[n]=[]),t[n].push(r),()=>e(n,r)),unsubscribe:e}},[t]);return i.createElement(_.Provider,{value:n},e)}let V=i.createContext(null),H=p("useLightboxProps","LightboxPropsContext",V);function K({children:e,...t}){return i.createElement(V.Provider,{value:t},e)}let W=i.createContext(null),Z=p("useLightboxState","LightboxStateContext",W),Y=i.createContext(null),X=p("useLightboxDispatch","LightboxDispatchContext",Y);function Q(e,t){switch(t.type){case"swipe":{var n;let{slides:r}=e,l=(null==t?void 0:t.increment)||0,i=e.globalIndex+l,a=(n=r.length)>0?(i%n+n)%n:0,o=k(r,a);return{slides:r,currentIndex:a,globalIndex:i,currentSlide:o,animation:l||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:k(t.slides,t.index)};return e;default:throw Error(a.V)}}function U({slides:e,index:t,children:n}){let[r,l]=i.useReducer(Q,{slides:e,currentIndex:t,globalIndex:t,currentSlide:k(e,t)});i.useEffect(()=>{l({type:"update",slides:e,index:t})},[e,t]);let a=i.useMemo(()=>({...r,state:r,dispatch:l}),[r,l]);return i.createElement(Y.Provider,{value:l},i.createElement(W.Provider,{value:a},n))}let j=i.createContext(null),B=p("useTimeouts","TimeoutsContext",j);function J({children:e}){let[t]=i.useState([]);i.useEffect(()=>()=>{t.forEach(e=>window.clearTimeout(e)),t.splice(0,t.length)},[t]);let n=i.useMemo(()=>{let e=e=>{t.splice(0,t.length,...t.filter(t=>t!==e))};return{setTimeout:(n,r)=>{let l=window.setTimeout(()=>{e(l),n()},r);return t.push(l),l},clearTimeout:t=>{void 0!==t&&(e(t),window.clearTimeout(t))}}},[t]);return i.createElement(j.Provider,{value:n},e)}let q=i.forwardRef(function({label:e,className:t,icon:n,renderIcon:r,onClick:l,style:o,...u},d){var h;let{styles:f,labels:m}=H(),p=null!=(h=null==m?void 0:m[e])?h:e;return i.createElement("button",{ref:d,type:"button",title:p,"aria-label":p,className:c(s(a.Uj),t),onClick:l,style:{...o,...f.button},...u},r?r():i.createElement(n,{className:s(a.jR),style:f.icon}))});function G(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}function ee(e,t){return G(e,i.createElement("g",{fill:"currentColor"},i.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}function et(e,t){return G(e,i.createElement(i.Fragment,null,i.createElement("defs",null,i.createElement("mask",{id:"strike"},i.createElement("path",{d:"M0 0h24v24H0z",fill:"white"}),i.createElement("path",{d:"M0 0L24 24",stroke:"black",strokeWidth:4}))),i.createElement("path",{d:"M0.70707 2.121320L21.878680 23.292883",stroke:"currentColor",strokeWidth:2}),i.createElement("g",{fill:"currentColor",mask:"url(#strike)"},i.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t)))}let en=ee("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"})),er=ee("Previous",i.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),el=ee("Next",i.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),ei=ee("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)`})))),ea=ee("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"})),eo=g()?i.useLayoutEffect:i.useEffect;function eu(){let[e,t]=i.useState(!1);return i.useEffect(()=>{var e,n;let r=null==(e=window.matchMedia)?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)||n.call(r,"change",l),()=>{var e;return null==(e=null==r?void 0:r.removeEventListener)?void 0:e.call(r,"change",l)}},[]),e}function ec(e,t){let n=i.useRef(),r=i.useRef(),l=eu();return eo(()=>{var i,a,o;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(w);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)||i.cancel(),r.current=void 0;try{r.current=null==(o=(a=e.current).animate)?void 0:o.call(a,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.playState)==="running"}}}function es(){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 ed(){let e=i.useRef(),{setTimeout:t,clearTimeout:n}=B();return i.useCallback((r,l)=>{n(e.current),e.current=t(r,l>0?l:0)},[t,n])}function eh(e){let t=i.useRef(e);return eo(()=>{t.current=e}),i.useCallback((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[])}function ef(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function em(e,t){return i.useMemo(()=>null==e&&null==t?null:n=>{ef(e,n),ef(t,n)},[e,t])}function ep(){let[e,t]=i.useState(!1);return eo(()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)},[]),e}function eg(){let[e]=i.useState({}),t=i.useCallback((t,n)=>{var r;null==(r=e[t])||r.forEach(e=>{n.isPropagationStopped()||e(n)})},[e]);return{registerSensors:i.useMemo(()=>({onPointerDown:e=>t(a.qq,e),onPointerMove:e=>t(a.RK,e),onPointerUp:e=>t(a.tu,e),onPointerLeave:e=>t(a.tD,e),onPointerCancel:e=>t(a.s,e),onKeyDown:e=>t(a.uF,e),onKeyUp:e=>t(a.t$,e),onWheel:e=>t(a.j7,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])}}function ev(e,t){let n=i.useRef(0),r=ed(),l=eh((...t)=>{n.current=Date.now(),e(t)});return i.useCallback((...e)=>{r(()=>{l(e)},t-(Date.now()-n.current))},[t,l,r])}let eb=f("slide"),eE=f("slide_image");function ew({slide:e,offset:t,render:n,rect:r,imageFit:l,imageProps:o,onClick:u,onLoad:d,onError:h,style:f}){var m,p,v,b,w,y,x;let[M,C]=i.useState(a.Qo),{publish:k}=A(),{setTimeout:N}=B(),R=i.useRef(null);i.useEffect(()=>{0===t&&k((0,a.EC)(M))},[t,M,k]);let I=eh(e=>{("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{e.parentNode&&(C(a.P9),N(()=>{null==d||d(e)},0))})}),$=i.useCallback(e=>{R.current=e,(null==e?void 0:e.complete)&&I(e)},[I]),P=i.useCallback(e=>{I(e.currentTarget)},[I]),L=eh(()=>{C(a.I1),null==h||h()}),S=E(e,l),D=(e,t)=>Number.isFinite(e)?e:t,F=D(Math.max(...(null!=(p=null==(m=e.srcSet)?void 0:m.map(e=>e.width))?p:[]).concat(e.width?[e.width]:[]).filter(Boolean)),(null==(v=R.current)?void 0:v.naturalWidth)||0),z=D(Math.max(...(null!=(w=null==(b=e.srcSet)?void 0:b.map(e=>e.height))?w:[]).concat(e.height?[e.height]:[]).filter(Boolean)),(null==(y=R.current)?void 0:y.naturalHeight)||0),T=F&&z?{maxWidth:`min(${F}px, 100%)`,maxHeight:`min(${z}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},_=null==(x=e.srcSet)?void 0:x.sort((e,t)=>e.width-t.width).map(e=>`${e.src}
1 ${e.width}w`).join(", "),O=_&&r&&g()?`${Math.round(Math.min(r&&!S&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,r.width))}px`:void 0,{style:V,className:H,...K}=o||{};return i.createElement(i.Fragment,null,i.createElement("img",{ref:$,onLoad:P,onError:L,onClick:u,draggable:!1,className:c(s(eE()),S&&s(eE("cover")),M!==a.P9&&s(eE("loading")),H),style:{...T,...f,...V},...K,alt:e.alt,sizes:O,srcSet:_,src:e.src}),M!==a.P9&&i.createElement("div",{className:s(eb(a.Bv))},M===a.Qo&&((null==n?void 0:n.iconLoading)?n.iconLoading():i.createElement(ei,{className:c(s(a.jR),s(eb(a.Qo)))})),M===a.I1&&((null==n?void 0:n.iconError)?n.iconError():i.createElement(ea,{className:c(s(a.jR),s(eb(a.I1)))}))))}let ey=i.forwardRef(function({className:e,children:t,...n},r){let l=i.useRef(null);return i.createElement(T,{nodeRef:l},i.createElement("div",{ref:em(r,l),className:c(s("root"),e),...n},t))});function ex(e,t,n,r,l){i.useEffect(()=>l?()=>{}:m(e(a.qq,t),e(a.RK,n),e(a.tu,r),e(a.tD,r),e(a.s,r)),[e,t,n,r,l])}!function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"}(r||(r={})),function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"}(l||(l={}));let eM=f("container"),eC=i.createContext(null),ek=p("useController","ControllerContext",eC),eN=L(a.Kv,function({children:e,...t}){var n;let{carousel:o,animation:u,controller:h,on:f,styles:p,render:g}=t,{closeOnPullUp:b,closeOnPullDown:E,preventDefaultWheelX:w,preventDefaultWheelY:x}=h,[M,C]=i.useState(),k=Z(),N=X(),[R,I]=i.useState(r.NONE),$=i.useRef(0),P=i.useRef(0),L=i.useRef(1),{registerSensors:S,subscribeSensors:D}=eg(),{subscribe:F,publish:T}=A(),_=ed(),O=ed(),V=ed(),{containerRef:H,setContainerRef:K,containerRect:W}=es(),Y=em(function({preventDefaultWheelX:e,preventDefaultWheelY:t}){let n=i.useRef(null),r=eh(n=>{let r=Math.abs(n.deltaX)>Math.abs(n.deltaY);(r&&e||!r&&t||n.ctrlKey)&&n.preventDefault()});return i.useCallback(e=>{var t;e?e.addEventListener("wheel",r,{passive:!1}):null==(t=n.current)||t.removeEventListener("wheel",r),n.current=e},[r])}({preventDefaultWheelX:w,preventDefaultWheelY:x}),K),Q=i.useRef(null),U=em(Q,void 0),{getOwnerDocument:j}=z(),J=ep(),q=e=>(J?-1:1)*("number"==typeof e?e:1),G=eh(()=>{var e;return null==(e=H.current)?void 0:e.focus()}),ee=eh(()=>t),et=eh(()=>k),en=i.useCallback(e=>T(a.zn,e),[T]),er=i.useCallback(e=>T(a.Nc,e),[T]),el=i.useCallback(()=>T(a.C),[T]),ei=e=>!(o.finite&&(q(e)>0&&0===k.currentIndex||0>q(e)&&k.currentIndex===k.slides.length-1)),ea=e=>{var t;$.current=e,null==(t=H.current)||t.style.setProperty(d("swipe_offset"),`${Math.round(e)}px`)},eo=e=>{var t,n;P.current=e,L.current=Math.min(Math.max(v(1-(E&&e>0?e:b&&e<0?-e:0)/60*.5,2),.5),1),null==(t=H.current)||t.style.setProperty(d("pull_offset"),`${Math.round(e)}px`),null==(n=H.current)||n.style.setProperty(d("pull_opacity"),`${L.current}`)},{prepareAnimation:eu}=ec(Q,(e,t,n)=>{if(Q.current&&W)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:u.easing.fade}}),ef=(e,t)=>{if(b||E){eo(e);let n=0;Q.current&&(n=u.fade*(t?2:1),eu({rect:Q.current.getBoundingClientRect(),opacity:L.current,duration:n})),V(()=>{eo(0),I(r.NONE)},n),I(r.ANIMATION),t||el()}},{prepareAnimation:ev,isAnimationPlaying:eb}=ec(Q,(e,t,n)=>{var r;if(Q.current&&W&&(null==(r=k.animation)?void 0:r.duration)){let r=y(o.spacing),l=(r.percent?r.percent*W.width/100:r.pixel)||0;return{keyframes:[{transform:`translate(${q(k.globalIndex-e.index)*(W.width+l)+e.rect.x-t.x+n.x}px, 0)`},{transform:"translate(0, 0)"}],duration:k.animation.duration,easing:k.animation.easing}}}),eE=eh(e=>{var t,n;let l=e.offset||0,i=l?u.swipe:null!=(t=u.navigation)?t:u.swipe,o=l||eb()?u.easing.swipe:u.easing.navigation,{direction:c}=e,s=null!=(n=e.count)?n:1,d=r.ANIMATION,h=i*s;if(!c){let t=null==W?void 0:W.width,n=e.duration||0,r=t?i/t*Math.abs(l):i;0!==s?(n<r?h=h/r*Math.max(n,r/5):t&&(h=i/t*(t-Math.abs(l))),c=q(l)>0?a.zn:a.Nc):h=i/2}let f=0;c===a.zn?ei(q(1))?f=-s:(d=r.NONE,h=i):c===a.Nc&&(ei(q(-1))?f=s:(d=r.NONE,h=i)),O(()=>{ea(0),I(r.NONE)}
1,h=Math.round(h)),Q.current&&ev({rect:Q.current.getBoundingClientRect(),index:k.globalIndex}),I(d),T(a.sI,{type:"swipe",increment:f,duration:h,easing:o})});i.useEffect(()=>{var e,t;(null==(e=k.animation)?void 0:e.increment)&&(null==(t=k.animation)?void 0:t.duration)&&_(()=>N({type:"swipe",increment:0}),k.animation.duration)},[k.animation,N,_]);let ew=[D,ei,(null==W?void 0:W.width)||0,u.swipe,()=>I(r.SWIPE),e=>ea(e),(e,t)=>eE({offset:e,duration:t,count:1}),e=>eE({offset:e,count:0})],ey=[()=>{E&&I(r.PULL)},e=>eo(e),e=>ef(e),e=>ef(e,!0)];!function(e,t,n,r,a,o,u,c,s,d,h,f,m,p){let g=i.useRef(0),v=i.useRef([]),b=i.useRef(),E=i.useRef(0),w=i.useRef(l.NONE),y=i.useCallback(e=>{b.current===e.pointerId&&(b.current=void 0,w.current=l.NONE);let t=v.current;t.splice(0,t.length,...t.filter(t=>t.pointerId!==e.pointerId))},[]),x=i.useCallback(e=>{y(e),e.persist(),v.current.push(e)},[y]),M=eh(e=>{x(e)}),C=(e,t)=>d&&e>t||s&&e<-t,k=eh(e=>{if(v.current.find(t=>t.pointerId===e.pointerId)&&b.current===e.pointerId){let e=Date.now()-E.current,t=g.current;w.current===l.SWIPE?Math.abs(t)>.3*n||Math.abs(t)>5&&e<r?u(t,e):c(t):w.current===l.PULL&&(C(t,60)?m(t,e):p(t)),g.current=0,w.current=l.NONE}y(e)});ex(e,M,eh(e=>{let n=v.current.find(t=>t.pointerId===e.pointerId);if(n){let r=b.current===e.pointerId;if(0===e.buttons)return void(r&&0!==g.current?k(e):y(n));let i=e.clientX-n.clientX,u=e.clientY-n.clientY;if(void 0===b.current){let n=t=>{x(e),b.current=e.pointerId,E.current=Date.now(),w.current=t};Math.abs(i)>Math.abs(u)&&Math.abs(i)>30&&t(i)?(n(l.SWIPE),a()):Math.abs(u)>Math.abs(i)&&C(u,30)&&(n(l.PULL),h())}else r&&(w.current===l.SWIPE?(g.current=i,o(i)):w.current===l.PULL&&(g.current=u,f(u)))}}),k)}(...ew,b,E,...ey),function(e,t,n,l,o,u,c,s,d){let h=i.useRef(0),f=i.useRef(0),m=i.useRef(),p=i.useRef(),g=i.useRef(0),v=i.useRef(),b=i.useRef(0),{setTimeout:E,clearTimeout:w}=B(),y=i.useCallback(()=>{m.current&&(w(m.current),m.current=void 0)},[w]),x=i.useCallback(()=>{p.current&&(w(p.current),p.current=void 0)},[w]),M=eh(()=>{e!==r.SWIPE&&(h.current=0,b.current=0,y(),x())});i.useEffect(M,[e,M]);let C=eh(e=>{p.current=void 0,h.current===e&&d(h.current)}),k=eh(t=>{if(t.ctrlKey||Math.abs(t.deltaY)>Math.abs(t.deltaX))return;let i=e=>{g.current=e,w(v.current),v.current=e>0?E(()=>{g.current=0,v.current=void 0},300):void 0};if(e===r.NONE){if(Math.abs(t.deltaX)<=1.2*Math.abs(g.current))return void i(t.deltaX);if(!n(-t.deltaX))return;if(f.current+=t.deltaX,y(),Math.abs(f.current)>30)f.current=0,i(0),b.current=Date.now(),u();else{let e=f.current;m.current=E(()=>{m.current=void 0,e===f.current&&(f.current=0)},o)}}else if(e===r.SWIPE){let e=h.current-t.deltaX;if(h.current=e=Math.min(Math.abs(e),l)*Math.sign(e),c(e),x(),Math.abs(e)>.2*l){i(t.deltaX),s(e,Date.now()-b.current);return}p.current=E(()=>C(e),2*o)}else i(t.deltaX)});i.useEffect(()=>t(a.j7,k),[t,k])}(R,...ew);let ek=eh(()=>{h.focus&&j().querySelector(`.${s(a.kJ)} .${s(eM())}`)&&G()});i.useEffect(ek,[ek]);let eN=eh(()=>{var e;null==(e=f.view)||e.call(f,{index:k.currentIndex})});i.useEffect(eN,[k.globalIndex,eN]),i.useEffect(()=>m(F(a.zn,e=>eE({direction:a.zn,...e})),F(a.Nc,e=>eE({direction:a.Nc,...e})),F(a.sI,e=>N(e))),[F,eE,N]);let eR=i.useMemo(()=>({prev:en,next:er,close:el,focus:G,slideRect:W?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)}}(W,o.padding):{width:0,height:0},containerRect:W||{width:0,height:0},subscribeSensors:D,containerRef:H,setCarouselRef:U,toolbarWidth:M,setToolbarWidth:C}),[en,er,el,G,D,W,H,U,M,C,o.padding]);return i.useImperativeHandle(h.ref,()=>({prev:en,next:er,close:el,focus:G,getLightboxProps:ee,getLightboxState:et}),[en,er,el,G,ee,et]),i.createElement("div",{ref:Y,className:c(s(eM()),s(a.tC)),style:{...R===r.SWIPE?{[d("swipe_offset")]:`${Math.round($.current)}px`}:null,...R===r.PULL?{[d("pull_offset")]:`${Math.round(P.current)}px`,[d("pull_opacity")]:`${L.current}`}:null,..."none"!==h.touchAction?{[d("controller_touch_action")]:h.touchAction}:null,...p.container},...h.aria?{role:"presentation","aria-live":"polite"}:null,tabIndex:-1,...S},W&&i.createElement(eC.Provider,{value:eR},e,null==(n=g.controls)?void 0:n.call(g)))});function eR(e){return h(a.mY,e)}function eI(e){return h("slide",e)}function e$({slide:e,offset:t}){var n,r,l,o;let u,d=i.useRef(null),{currentIndex:h}=Z(),{slideRect:f,close:m,focus:p}=ek(),{render:g,carousel:{imageFit:v,imageProps:E},on:{click:w},controller:{closeOnBackdropClick:y},styles:{slide:x}}=H(),{getOwnerDocument:M}=z(),C=0!==t;return i.useEffect(()=>{var e;
1C&&(null==(e=d.current)?void 0:e.contains(M().activeElement))&&p()},[C,p,M]),i.createElement("div",{ref:d,className:c(s(eI()),!C&&s(eI("current")),s(a.tC)),...{inert:$?C:C?"":void 0},onClick:e=>{let t=d.current,n=e.target instanceof HTMLElement?e.target:void 0;y&&n&&t&&(n===t||Array.from(t.children).find(e=>e===n)&&n.classList.contains(s(a.pc)))&&m()},style:x},(!(u=null==(n=g.slide)?void 0:n.call(g,{slide:e,offset:t,rect:f}))&&b(e)&&(u=i.createElement(ew,{slide:e,offset:t,render:g,rect:f,imageFit:v,imageProps:E,onClick:C?void 0:()=>null==w?void 0:w({index:h})})),u?i.createElement(i.Fragment,null,null==(r=g.slideHeader)?void 0:r.call(g,{slide:e}),(null!=(l=g.slideContainer)?l:({children:e})=>e)({slide:e,children:u}),null==(o=g.slideFooter)?void 0:o.call(g,{slide:e})):null))}function eP(){let e=H().styles.slide;return i.createElement("div",{className:s("slide"),style:e})}let eL=L(a.mY,function({carousel:e}){let{slides:t,currentIndex:n,globalIndex:r}=Z(),{setCarouselRef:l}=ek(),a=y(e.spacing),o=y(e.padding),u=I(e,t,1),h=[];if(M(t))for(let l=n-u;l<=n+u;l+=1){let i=C(t,l),a=r-n+l,o=e.finite&&(l<0||l>t.length-1);h.push(o?{key:a}:{key:[`${a}`,N(i)].filter(Boolean).join("|"),offset:l-n,slide:i})}return i.createElement("div",{ref:l,className:c(s(eR()),h.length>0&&s(eR("with_slides"))),style:{[`${d(eR("slides_count"))}`]:h.length,[`${d(eR("spacing_px"))}`]:a.pixel||0,[`${d(eR("spacing_percent"))}`]:a.percent||0,[`${d(eR("padding_px"))}`]:o.pixel||0,[`${d(eR("padding_percent"))}`]:o.percent||0}},h.map(({key:e,slide:t,offset:n})=>t?i.createElement(e$,{key:e,slide:t,offset:n}):i.createElement(eP,{key:e})))});function eS(){let{carousel:e}=H(),{slides:t,currentIndex:n}=Z();return{prevDisabled:0===t.length||e.finite&&0===n,nextDisabled:0===t.length||e.finite&&n===t.length-1}}function eD(e){var t;let n=ep(),{publish:r}=A(),{animation:l}=H(),{prevDisabled:o,nextDisabled:u}=eS(),c=(null!=(t=l.navigation)?t:l.swipe)/2,s=ev(()=>r(a.zn),c),d=ev(()=>r(a.Nc),c),h=eh(e=>{switch(e.key){case a.or:r(a.C);break;case a.A9:(n?u:o)||(n?d:s)();break;case a.jn:(n?o:u)||(n?s:d)()}});i.useEffect(()=>e(a.uF,h),[e,h])}function eF({label:e,icon:t,renderIcon:n,action:r,onClick:l,disabled:a,style:o}){return i.createElement(q,{label:e,icon:t,renderIcon:n,className:s(`navigation_${r}`),disabled:a,onClick:l,style:o,...function(e,t=!1){let n=i.useRef();return eo(()=>{t&&n.current&&(n.current=!1,e())},[t,e]),{onFocus:i.useCallback(()=>{n.current=!0},[]),onBlur:i.useCallback(()=>{n.current=!1},[])}}(ek().focus,a)})}let ez=L(a.Ky,function({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:l}){let{prev:o,next:u,subscribeSensors:c}=ek(),{prevDisabled:s,nextDisabled:d}=eS();return eD(c),i.createElement(i.Fragment,null,e?e():i.createElement(eF,{label:"Previous",action:a.zn,icon:er,renderIcon:n,style:l.navigationPrev,disabled:s,onClick:o}),t?t():i.createElement(eF,{label:"Next",action:a.Nc,icon:el,renderIcon:r,style:l.navigationNext,disabled:d,onClick:u}))}),eT=s(a.HR),e_=s(a.vg);function eA(e,t,n){let r=window.getComputedStyle(e),l=n?"padding-left":"padding-right",i=n?r.paddingLeft:r.paddingRight,a=e.style.getPropertyValue(l);return e.style.setProperty(l,`${(w(i)||0)+t}px`),()=>{a?e.style.setProperty(l,a):e.style.removeProperty(l)}}let eO=L(a.b6,function({noScroll:{disabled:e},children:t}){let n=ep(),{getOwnerDocument:r,getOwnerWindow:l}=z();return i.useEffect(()=>{if(e)return()=>{};let t=[],i=l(),{body:a,documentElement:o}=r(),u=Math.round(i.innerWidth-o.clientWidth);if(u>0){t.push(eA(a,u,n));let e=a.getElementsByTagName("*");for(let r=0;r<e.length;r+=1){let l=e[r];"style"in l&&"fixed"===i.getComputedStyle(l).getPropertyValue("position")&&!l.classList.contains(e_)&&t.push(eA(l,u,n))}}return a.classList.add(eT),()=>{a.classList.remove(eT),t.forEach(e=>e())}},[n,e,r,l]),i.createElement(i.Fragment,null,t)});function eV(e,t,n){let r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}let eH=L(a.kJ,function({children:e,animation:t,styles:n,className:r,on:l,portal:u,close:f}){let[m,p]=i.useState(!1),[g,v]=i.useState(!1),b=i.useRef([]),E=i.useRef(null),{setTimeout:w}=B(),{subscribe:y}=A(),x=eu()?0:t.fade;i.useEffect(()=>(p(!0),()=>{p(!1),v(!1)}),[]);let M=eh(()=>
1{b.current.forEach(e=>e()),b.current=[]}),C=eh(()=>{var e;v(!1),M(),null==(e=l.exiting)||e.call(l),w(()=>{var e;null==(e=l.exited)||e.call(l),f()},x)});i.useEffect(()=>y(a.C,C),[y,C]);let k=eh(e=>{var t,n,r;e.scrollTop,v(!0),null==(t=l.entering)||t.call(l);let i=null!=(r=null==(n=e.parentNode)?void 0:n.children)?r:[];for(let t=0;t<i.length;t+=1){let n=i[t];-1===["TEMPLATE","SCRIPT","STYLE"].indexOf(n.tagName)&&n!==e&&(b.current.push(eV(n,"inert","")),b.current.push(eV(n,"aria-hidden","true")))}b.current.push(()=>{var e,t;null==(t=null==(e=E.current)?void 0:e.focus)||t.call(e)}),w(()=>{var e;null==(e=l.entered)||e.call(l)},x)}),N=i.useCallback(e=>{e?k(e):M()},[k,M]);return m?(0,o.createPortal)(i.createElement(ey,{ref:N,className:c(r,s(h(a.kJ,void 0)),s(a.vg),g&&s(h(a.kJ,"open"))),role:"presentation","aria-live":"polite",style:{...t.fade!==P.animation.fade?{[d("fade_animation_duration")]:`${x}ms`}:null,...t.easing.fade!==P.animation.easing.fade?{[d("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:e=>{E.current||(E.current=e.relatedTarget)}},e),u.root||document.body):null}),eK=L(a.OT,function({children:e}){return i.createElement(i.Fragment,null,e)}),eW=L(a.pq,function({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){let{close:l,setToolbarWidth:o}=ek(),{setContainerRef:u,containerRect:c}=es();return eo(()=>{o(null==c?void 0:c.width)},[o,null==c?void 0:c.width]),i.createElement("div",{ref:u,style:r.toolbar,className:s(h(a.pq,void 0))},null==e?void 0:e.map(e=>e===a.C?t?t():i.createElement(q,{key:a.C,label:"Close",icon:en,renderIcon:n,onClick:l}):e))});function eZ({carousel:e,animation:t,render:n,toolbar:r,controller:l,noScroll:o,on:u,plugins:c,slides:s,index:d,...h}){let{animation:f,carousel:m,render:p,toolbar:g,controller:v,noScroll:b,on:E,slides:y,index:x,plugins:M,...C}=P,{config:k,augmentation:N}=function(e,t=[],n=[]){let 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;(null==n?void 0:n.children)&&t.push(...n.children)}return!1},i=(e,t)=>{if(""===e){r=[S(t,r)];return}r=D(r,e,e=>[S(t,[e])])},o=(e,t)=>{r=D(r,e,e=>[S(e.module,[S(t,e.children)])])},u=(e,t,n)=>{r=D(r,e,e=>{var r;return[S(e.module,[...n?[S(t)]:[],...null!=(r=e.children)?r:[],...n?[]:[S(t)]])]})},c=(e,t,n)=>{r=D(r,e,e=>[...n?[S(t)]:[],e,...n?[]:[S(t)]])},s=e=>{o(a.Kv,e)},d=(e,t)=>{r=D(r,e,e=>[S(t,e.children)])},h=e=>{r=D(r,e,e=>e.children)},f=e=>{n.push(e)};return t.forEach(e=>{e({contains:l,addParent:i,append:o,addChild:u,addSibling:c,addModule:s,replace:d,remove:h,augment:f})}),{config:r,augmentation:e=>n.reduce((e,t)=>t(e),e)}}([S(eH,[S(eO,[S(eN,[S(eL),S(eW),S(ez)])])])],c||M),R=N({animation:function(e,t={}){let{easing:n,...r}=e,{easing:l,...i}=t;return{easing:{...n,...l},...r,...i}}(f,t),carousel:{...m,...e},render:{...p,...n},toolbar:{...g,...r},controller:{...v,...l},noScroll:{...b,...o},on:{...E,...u},...C,...h});return R.open?i.createElement(K,{...R},i.createElement(U,{slides:s||y,index:w(d||x)},i.createElement(J,null,i.createElement(O,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.map(t=>e(t,n)))}(S(eK,k),R))))):null}},61704:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var r=n(55729),l=n(59861),i=n(63964);let a={ref:null,position:"bottom",width:120,height:80,border:1,borderRadius:4,padding:4,gap:16,imageFit:"contain",vignette:!0,hidden:!1,showToggle:!1},o=e=>({...a,...e});function u(){let{thumbnails:e}=(0,l.D$)();return o(e)}let c=e=>(0,l.f4)(i.QQ,e),s=e=>c((0,l.f4)("thumbnail",e)),d=(0,l.wt)("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"})),h=(0,l.wt)("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"})),f=(0,l.fh)("active"),m=(0,l.fh)("fadein"),p=(0,l.fh)("fadeout"),g=(0,l.fh)("placeholder"),v="delay",b="duration";function E({slide:e,onClick:t,active:n,fadeIn:a,fadeOut:o,placeholder:c,onLoseFocus:E}){let w=r.useRef(null),{render:y,styles:x}=(0,l.D$)(),{getOwnerDocument:M}=(0,l.uG)(),{width:C,height:k,imageFit:N}=u(),R=(0,l.DK)(E);return r.useEffect(()=>{o&&M().activeElement===w.current&&R()},[o,R,M]),r.createElement("button",{ref:w,type:"button",className:(0,l.$z)((0,l.oF)(i.tC),(0,l.oF)(s()),n&&(0,l.oF)(s(f())),a&&(0,l.oF)(s(m())),o&&(0,l.oF)(s(p())),c&&(0,l.oF)(s(g()))),style:{...a?{[(0,l.Vg)(s(m(b)))]:`${a.duration}ms`,[(0,l.Vg)(s(m(v)))]:`${a.delay}ms`}:null,...o?{[(0,l.Vg)(s(p(b)))]:`${o.duration}ms`,[(0,l.Vg)(s(p(v)))]:`${o.delay}ms`}:null,...x.thumbnail},onClick:t},e&&function({slide:e,render:t,rect:n,imageFit:a}){var o;let u=null==(o=t.thumbnail)?void 0:o.call(t,{slide:e,render:t,rect:n,imageFit:a});if(u)return u;let c={render:t,rect:n,imageFit:a};if(e.thumbnail)return r.createElement(l.Z$,{slide:{src:e.thumbnail},...c});if((0,l.tx)(e))return r.createElement(l.Z$,{slide:e,...c});let f=(0,l.oF)(s(i.jR));return"video"===e.type?r.createElement(r.Fragment,null,e.poster&&r.createElement(l.Z$,{slide:{src:e.poster},...c}),r.createElement(d,{className:f})):r.createElement(h,{className:f})}({slide:e,render:y,rect:{width:C,height:k},imageFit:N}))}function w(e){return["top","bottom"].includes(e)}function y(e,t){return t+2*(e.border+e.padding)+e.gap}function x({visible:e,containerRef:t}){let n=r.useRef(null),o=(0,l.x3)(),{publish:d,subscribe:h}=(0,l.LJ)(),{carousel:f,styles:m}=(0,l.D$)(),{slides:p,globalIndex:g,animation:v}=(0,l.mp)(),{registerSensors:b,subscribeSensors:x}=(0,l.Yc)();(0,l.JZ)(x);let M=u(),{position:C,width:k,height:N,border:R,borderStyle:I,borderColor:$,borderRadius:P,padding:L,gap:S,vignette:D}=M,F=(null==v?void 0:v.duration)||0,z=F>0&&(null==v?void 0:v.increment)||0,{prepareAnimation:T}=(0,l.sM)(n,e=>({keyframes:w(C)?[{transform:`translateX(${(o?-1:1)*y(M,k)*z+e}px)`},{transform:"translateX(0)"}]:[{transform:`translateY(${y(M,N)*z+e}px)`},{transform:"translateY(0)"}],duration:F,easing:null==v?void 0:v.easing})),_=(0,l.DK)(()=>{let e=0;if(t.current&&n.current){let r=t.current.getBoundingClientRect(),l=n.current.getBoundingClientRect();e=w(C)?l.left-r.left-(r.width-l.width)/2:l.top-r.top-(r.height-l.height)/2}T(e)});r.useEffect(()=>(0,l.tP)(h(i.sI,_)),[h,_]);let A=(0,l.eS)(f,p),O=[];
1if((0,l.DB)(p))for(let e=g-A-Math.abs(z);e<=g+A+Math.abs(z);e+=1){let t=f.finite&&(e<0||e>p.length-1)||z<0&&e<g-A||z>0&&e>g+A?null:(0,l.gZ)(p,e),n=[`${e}`,function(e){let{thumbnail:t,poster:n}=e||{thumbnail:"placeholder"};return"string"==typeof t&&t||"string"==typeof n&&n||e&&(0,l.Hw)(e)||void 0}(t)].filter(Boolean).join("|");O.push({key:n,index:e,slide:t})}return r.createElement("div",{className:(0,l.$z)((0,l.oF)(c("container")),(0,l.oF)(i.tC)),style:{...!e?{display:"none"}:null,...k!==a.width?{[(0,l.Vg)(s("width"))]:`${k}px`}:null,...N!==a.height?{[(0,l.Vg)(s("height"))]:`${N}px`}:null,...R!==a.border?{[(0,l.Vg)(s("border"))]:`${R}px`}:null,...I?{[(0,l.Vg)(s("border_style"))]:I}:null,...$?{[(0,l.Vg)(s("border_color"))]:$}:null,...P!==a.borderRadius?{[(0,l.Vg)(s("border_radius"))]:`${P}px`}:null,...L!==a.padding?{[(0,l.Vg)(s("padding"))]:`${L}px`}:null,...S!==a.gap?{[(0,l.Vg)(s("gap"))]:`${S}px`}:null,...m.thumbnailsContainer}},r.createElement("nav",{ref:n,style:m.thumbnailsTrack,className:(0,l.$z)((0,l.oF)(c("track")),(0,l.oF)(i.tC)),tabIndex:-1,...b},O.map(({key:e,index:t,slide:l})=>{let a=F/Math.abs(z||1),o=z>0&&t>g+A-z&&t<=g+A||z<0&&t<g-A-z&&t>=g-A?{duration:a,delay:((z>0?t-(g+A-z):g-A-z-t)-1)*a}:void 0,u=z>0&&t<g-A||z<0&&t>g+A?{duration:a,delay:(z>0?z-(g-A-t):-z-(t-(g+A)))*a}:void 0;return r.createElement(E,{key:e,slide:l,active:t===g,fadeIn:o,fadeOut:u,placeholder:!l,onClick:()=>{t>g?d(i.Nc,{count:t-g}):t<g&&d(i.zn,{count:g-t})},onLoseFocus:()=>{var e;return null==(e=n.current)?void 0:e.focus()}})})),D&&r.createElement("div",{className:(0,l.oF)(c("vignette"))}))}let M=r.createContext(null),C=(0,l.Tz)("useThumbnails","ThumbnailsContext",M);function k({children:e,...t}){let{ref:n,position:i,hidden:a}=o(t.thumbnails),[u,s]=r.useState(!a),d=r.useRef(null),h=r.useMemo(()=>({visible:u,show:()=>s(!0),hide:()=>s(!1)}),[u]);return r.useImperativeHandle(n,()=>h,[h]),r.createElement(l.RT,{...t},r.createElement(M.Provider,{value:h},r.createElement("div",{ref:d,className:(0,l.$z)((0,l.oF)(c()),(0,l.oF)(c(`${i}`)))},["start","top"].includes(i)&&r.createElement(x,{containerRef:d,visible:u}),r.createElement("div",{className:(0,l.oF)(c("wrapper"))},e),["end","bottom"].includes(i)&&r.createElement(x,{containerRef:d,visible:u}))))}let N=()=>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"})),R=(0,l.wt)("ThumbnailsVisible",N()),I=(0,l.Q5)("ThumbnailsHidden",N());function $(){let{visible:e,show:t,hide:n}=C(),{render:i}=(0,l.D$)();return i.buttonThumbnails?r.createElement(r.Fragment,null,i.buttonThumbnails({visible:e,show:t,hide:n})):r.createElement(l.K0,{label:e?"Hide thumbnails":"Show thumbnails",
1icon:e?R:I,renderIcon:e?i.iconThumbnailsVisible:i.iconThumbnailsHidden,onClick:e?n:t})}function P({augment:e,contains:t,append:n,addParent:a}){e(({thumbnails:e,toolbar:t,...n})=>{let a=o(e);return{toolbar:(0,l.bo)(t,i.QQ,a.showToggle?r.createElement($,null):null),thumbnails:a,...n}});let u=(0,l.Fi)(i.QQ,k);t(i.Qe)?n(i.Qe,u):a(i.Kv,u)}},63964:(e,t,n)=>{"use strict";n.d(t,{A9:()=>_,AH:()=>h,Bv:()=>g,C:()=>R,CC:()=>b,EC:()=>v,HR:()=>w,I1:()=>m,Kv:()=>l,Ky:()=>i,Nc:()=>k,OT:()=>u,P9:()=>p,QQ:()=>d,Qe:()=>s,Qo:()=>f,RK:()=>$,Td:()=>H,Ue:()=>M,Uj:()=>O,V:()=>W,b6:()=>a,e7:()=>K,j7:()=>z,jR:()=>V,jn:()=>A,kJ:()=>o,mY:()=>r,or:()=>T,pc:()=>x,pq:()=>c,qq:()=>I,s:()=>S,sI:()=>N,t$:()=>F,tC:()=>E,tD:()=>L,tu:()=>P,uF:()=>D,vg:()=>y,zn:()=>C});let r="carousel",l="controller",i="navigation",a="no-scroll",o="portal",u="root",c="toolbar",s="fullscreen",d="thumbnails",h="zoom",f="loading",m="error",p="complete",g="placeholder",v=e=>`active-slide-${e}`;v(f),v("playing"),v(m),v(p);let b="fullsize",E="flex_center",w="no_scroll",y="no_scroll_padding",x="slide_wrapper",M="slide_wrapper_interactive",C="prev",k="next",N="swipe",R="close",I="onPointerDown",$="onPointerMove",P="onPointerUp",L="onPointerLeave",S="onPointerCancel",D="onKeyDown",F="onKeyUp",z="onWheel",T="Escape",_="ArrowLeft",A="ArrowRight",O="button",V="icon",H="contain",K="cover",W="Unknown action type"}}]);

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.