1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26],{17860:e=>{e.exports={root:"PageIndex_root__c_mBM",rootBar:"PageIndex_rootBar__A3Bpx",rootPreview:"PageIndex_rootPreview__3xcZm",rootPreviewCurrentVideo:"PageIndex_rootPreviewCurrentVideo__z8Vpl"}},27092:e=>{e.exports={slide:"FadeTrack_slide__uOzt8",active:"FadeTrack_active__zgqiZ",slideFocusOverlay:"FadeTrack_slideFocusOverlay__uDEpU",slideImage:"FadeTrack_slideImage__C02EU",slideVideo:"FadeTrack_slideVideo__TA7xr",fadeTrackLoading:"FadeTrack_fadeTrackLoading__Qybmr",zoomIn:"FadeTrack_zoomIn__C1vtq",dragging:"FadeTrack_dragging__7FzRs"}},40026:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(27925),o=n(44478),i=n(42969),a=n(14232),l=n(98477),c=n(59765),u=n(73164),s=n(80956),d=n(42908),v=n(27092),f=n.n(v),m=n(37876);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var b=function(e){var t=e.items,n=e.currentIndex,r=e.isPreviewMode,o=e.onImageClick,i=e.isVideoSrc,a=e.ariaLabels,l=e.isZoomIn,u=e.isDragging,s=e.zoomScale,v=e.zoomPosition,_=e.onMouseDown,b=e.onMouseMove,h=e.onMouseUp,g=e.videoRefs,w=e.videoLoadedIndices,y=e.width,P=e.height,x=e.mode,j=e.isMobile,O=e.imageObjectFit;return(0,m.jsx)(m.Fragment,{children:t.map(function(e,t){var M=t===n,k=(0,c.Z2)([f().slide,M?f().active:""]);return(0,m.jsxs)("div",{className:k,style:l?u?{cursor:"grabbing"}:{cursor:"grab"}:{cursor:"default"},children:[!r&&M&&(0,m.jsx)("button",{type:"button",className:f().slideFocusOverlay,"aria-label":null==a?void 0:a.slideEnterPreview,onClick:function(n){n.stopPropagation(),o(e,t)}}),i(e.src)?(0,m.jsx)("video",{ref:function(e){g.current&&(g.current[t]=e)},src:w.has(t)?e.src:void 0,className:f().slideVideo,poster:e.poster,style:p({},y||P?p(p({},y&&{width:y}),P&&{height:P}):{}),tabIndex:0,playsInline:!0,controls:!0,autoPlay:!r||t===n}):(0,m.jsx)(d._,{src:e.src,alt:e.alt,fetchPriority:0===t?"high":"auto",loading:0===t?"eager":"lazy",decoding:0===t?"sync":"async",className:f().slideImage,imageClassName:(0,c.Z2)([l?f().zoomIn:"",u?f().dragging:""]),forceSquare:"slide"!==x&&!r,objectFit:O,style:p(p({},y||P?p(p({},y&&{width:y}),P&&{height:P}):{}),l&&t===n?{transform:"scale(".concat(s,") translate(").concat(v.x,"px, ").concat(v.y,"px)"),transformOrigin:"center center",transition:u?"none":"transform 0.3s ease-out"}:{}),onClick:function(n){return o(e,t,n)},onMouseDown:j||l?void 0:_,onMouseMove:j||l?void 0:b,onMouseUp:j||l?void 0:h})]},t)})})},h=n(18155),g=n(9799),w=n(17860),y=n.n(w);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var j=function(e){var t=e.currentIndex,n=e.total,r=e.variant;return e.isCurrentVideo,(0,m.jsxs)("div",x(x({className:(0,c.Z2)([y().root,y().rootPreview,y().rootPreviewCurrentVideo])},"bar"===r?{"aria-live":"polite","aria-atomic":"true"}:{}),{},{children:[t+1,(0,m.jsxs)("span",{children:["/",n]})]}))},O=n(39316),M=n(45434),k=n.n(M),I=function(e){var t=e.variant,n=e.items,r=e.currentIndex,o=e.onThumbnailClick,i=e.visible,a=e.showArrows,l=void 0!==a&&a,u=e.onPrev,s=e.onNext,v=e.loop,f=void 0===v||v,_=e.ariaLabels,p="preview"===t;
1return(0,m.jsx)("div",{className:(0,c.Z2)([k().root,p?k().rootPreview:k().rootDefault,void 0!==i&&i?k().visible:""]),children:(0,m.jsxs)("div",{className:k().thumbnailsContent,children:[l&&p&&(0,m.jsx)("button",{type:"button","aria-label":null==_?void 0:_.arrowLeft,className:(0,c.Z2)([k().arrow,k().arrowLeft]),disabled:!f&&0===r,onClick:function(){return null==u?void 0:u()},children:(0,m.jsx)(O.A,{direction:"left",size:24,fillOpacity:"1"})}),n.map(function(e,t){var i,a;return(0,m.jsx)("button",{type:"button","aria-label":null!=(i=null==_||null==(a=_.thumbnail)?void 0:a.call(_,t,n.length))?i:"Select slide ".concat(t+1),className:(0,c.Z2)([k().thumbnail,t===r?k().active:""]),onClick:function(){return null==o?void 0:o(t)},children:(0,m.jsx)(d._,{src:e.thumbnail||e.poster||e.src,alt:e.alt,className:k().thumbnailImage})},t)}),l&&p&&(0,m.jsx)("button",{type:"button","aria-label":null==_?void 0:_.arrowRight,className:(0,c.Z2)([k().arrow,k().arrowRight]),disabled:!f&&r===n.length-1,onClick:function(){return null==s?void 0:s()},children:(0,m.jsx)(O.A,{direction:"right",size:24,fillOpacity:"1"})})]})})},C=n(48142),T=n.n(C),S=function(e){var t=e.onClose,n=e.currentIndex,r=e.total,o=e.onPrev,i=e.onNext,a=e.loop,l=e.canDownload,c=e.currentItem,u=e.onThumbnailClick,s=e.items,d=e.closeButtonRef,v=e.ariaLabels,f=e.isCurrentVideo,_=e.children;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",{className:T().previewTopActions,children:[void 0!==l&&l&&(null==c?void 0:c.src)&&(0,m.jsx)(g.A,{src:c.origionSrc||c.src,onClick:function(e){return e.stopPropagation()}}),(0,m.jsx)("button",{ref:d,type:"button",className:T().close,"aria-label":null==v?void 0:v.closePreview,onClick:function(e){e.stopPropagation(),t()},children:(0,m.jsx)(h.A,{stroke:"#F3F2EDD9"})})]}),_,r>1&&(0,m.jsx)(j,{variant:"preview",currentIndex:n,total:r,isCurrentVideo:void 0!==f&&f}),r>1&&(0,m.jsx)(I,{variant:"preview",items:s,currentIndex:n,visible:!0,showArrows:!0,loop:a,ariaLabels:{arrowLeft:null==v?void 0:v.arrowLeft,arrowRight:null==v?void 0:v.arrowRight,thumbnail:null==v?void 0:v.thumbnail},onPrev:o,onNext:i,onThumbnailClick:u})]})},D=n(54346),E=n.n(D);function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var A=[".mp4",".webm",".mov",".m4v",".avi",".ogg"],F=function(e){return A.some(function(t){return e.toLowerCase().includes(t)})};let R=function(e){var t=e.open,n=e.onClose,i=e.items,d=e.initialIndex,v=void 0===d?0:d,f=e.canDownload,_=e.isMobile,p=void 0!==_&&_,h=e.loop,g=void 0===h||h,w=e.onPreviewModeChange,y=void 0===w?null:w,P=e.onPreviewModeZoom,x=void 0===P?null:P,j=e.onSlideChange,O=e.onImageClick,M=e.onPrevSlide,I=void 0===M?null:M,C=e.onNextSlide,D=void 0===C?null:C,L=e.onThumbnailClick,A=void 0===L?null:L,R=e.emptyText,V=e.emptyIcon,z=e.renderEmpty,Z=e.ariaLabels,B=e.width,q=e.height,U=e.imageObjectFit,H=(0,a.useState)(0),Q=H[0],X=H[1],Y=(0,a.useState)(!1),G=Y[0],K=Y[1],W=(0,a.useState)(!1),J=W[0],$=W[1],ee=(0,a.useState)(1),et=ee[0],en=ee[1],er=(0,a.useState)({x:0,y:0}),eo=er[0],ei=er[1],ea=(0,a.useState)(!1),el=ea[0],ec=ea[1],eu=(0,a.useState)({x:0,y:0}),es=eu[0],ed=eu[1],ev=(0,a.useState)({x:0,y:0}),ef=ev[0],em=ev[1],e_=(0,a.useState)(function(){return new Set([0])}),ep=e_[0],eb=e_[1],eh=(0,a.useRef)(null),eg=(0,a.useRef)(!1),ew=(0,a.useRef)({}),ey=(0,a.useRef)(Q),eP=(0,a.useRef)(function(){}),ex=(0,a.useRef)(null),ej=(0,a.useMemo)(function(){return i.map(function(e){var t=F(e.src);return N(N({},e),{},{src:t&&p&&e.srcMobile?e.srcMobile:e.src,poster:t&&p&&e.posterMobile?e.posterMobile:e.poster})})},[i,p]);(0,a.useLayoutEffect)(function(){if(t&&0!==ej.length){var e=Math.max(0,Math.min(v,ej.length-1));X(e),eb(new Set([e])),$(!1),en(1),ei({x:0,y:0})}},[t,v,ej.length]),(0,a.useLayoutEffect)(function(){eb(function(e){if(e.has(Q))return e;var t=new Set(e);return t.add(Q),t})},[Q]);var eO=(0,a.useCallback)(function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];$(!1),e&&(null==x||x(1)),en(1),ei({x:0,y:0})},[x]),eM=(0,a.useCallback)(function(e){var t=Math.max(0,Math.min(e,ej.length-1));if(!G&&t!==Q){K(!0);var n=t;g&&(e<0?n=ej.length-1:e>=ej.length&&(n=0)),requestAnimationFrame(function(){X(n),null==j||j(n)}),setTimeout(function(){return K(!1)},300)}},[Q,G,ej.length,g,j]),ek=(0,a.useCallback)(function(e){var t=g?(Q+1)%ej.length:Q+1;t!==Q&&(eM(t),eO(!1)),null==D||D(t,e)},[Q,eM,g,eO,ej.length,D]),eI=(0,a.useCallback)(function(e){var t=g?(Q-1+ej.length)%ej.length:Q-1;t!==Q&&(eM(t),eO(!1)),null==I||I(t,e)},[Q,eM,g,eO,ej.length,I]),eC=(0,a.useCallback)(function(e,t,n){if(!el&&!eg.current&&!p){if
1(J)eO();else if(n&&!F(e.src)){var r=n.target.getBoundingClientRect(),o=n.clientX-r.left,i=n.clientY-r.top,a=o/r.width*100,l=i/r.height*100;en(2),ei({x:(50-a)*2,y:(50-l)*2}),$(!0),null==x||x(2)}null==O||O(e,t)}},[el,p,J,O,x,eO]),eT=(0,a.useCallback)(function(e){eO(!1),eM(e),null==A||A(e)},[eM,eO,A]),eS=(0,a.useCallback)(function(e){J&&(e.preventDefault(),e.stopPropagation(),ec(!0),ed({x:e.clientX,y:e.clientY}),em(eo))},[J,eo]),eD=(0,a.useCallback)(function(e){if(el&&J){e.preventDefault(),e.stopPropagation(),eg.current=!0;var t=e.clientX-es.x,n=e.clientY-es.y;ei({x:ef.x+t,y:ef.y+n})}},[el,J,es,ef]),eE=(0,a.useCallback)(function(e){el&&(e.preventDefault(),e.stopPropagation(),ec(!1),em(eo),setTimeout(function(){eg.current=!1},100))},[el,eo]);(0,a.useEffect)(function(){if(t){var e=function(e){return eD(e)},n=function(e){return eE(e)},r=function(e){return eS(e)};return document.body.addEventListener("mousemove",e),document.body.addEventListener("mouseup",n),document.body.addEventListener("mousedown",r),function(){document.body.removeEventListener("mousemove",e),document.body.removeEventListener("mouseup",n),document.body.removeEventListener("mousedown",r)}}},[t,eD,eE,eS]),(0,a.useEffect)(function(){if(t&&eh.current){var e=eh.current,n=function(e){return Array.from(e.querySelectorAll('button:not([disabled]), a[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(function(e){return null!==e.offsetParent&&!e.hasAttribute("aria-hidden")})},r=function(){var t=e.querySelector(".".concat(T().previewTopActions)),r=e.querySelector(".".concat(k().rootPreview)),i=t?n(t):[],a=e.querySelector("video"),l=r?n(r):[],c=(null==a?void 0:a.offsetParent)!=null?[a]:[];return[].concat((0,o.A)(i),c,(0,o.A)(l))},i=window.requestAnimationFrame(function(){var e;null==(e=ex.current)||e.focus()}),a=function(e){if("Tab"===e.key){var t,n=r();if(0!==n.length){var o=document.activeElement,i=n.indexOf(o),a=(null==o||null==(t=o.closest)?void 0:t.call(o,"video"))||(null==o?void 0:o.tagName)==="VIDEO",l=-1===i;if(e.shiftKey){if(l||i<=0)if(e.preventDefault(),l&&a){var c=n.find(function(e){return"VIDEO"===e.tagName});null==c||c.focus()}else n[n.length-1].focus()}else if(l||i>=n.length-1)if(e.preventDefault(),l&&a){var u=n.findIndex(function(e){return"VIDEO"===e.tagName}),s=u>=0?n[u+1]:n[0];null==s||s.focus()}else n[0].focus()}}};return document.addEventListener("keydown",a,!0),function(){window.cancelAnimationFrame(i),document.removeEventListener("keydown",a,!0)}}},[t]);var eL=(0,s.o_)({minSwipeDistance:50,onSwipeLeft:function(){return ek("drag")},onSwipeRight:function(){return eI("drag")},preventScroll:!0,stopPropagation:!0,enableHorizontal:!0}),eN=eL.onTouchStart,eA=eL.onTouchMove,eF=eL.onTouchEnd,eR=eL.touchAction;if((0,a.useEffect)(function(){eP.current=ek},[ek]),(0,a.useEffect)(function(){if(t){var e=function(e){"Escape"===e.key?J?eO():n():"ArrowLeft"===e.key?eI("arrow"):"ArrowRight"===e.key&&ek("arrow")};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}},[t,eI,ek,J,eO,n]),(0,a.useEffect)(function(){if(t)return null==y||y(!0),(0,u.mh)(document.body,{reserveScrollBarGap:!0}),function(){null==y||y(!1),(0,u.fY)(document.body)}},[t,y]),(0,a.useEffect)(function(){X(function(e){return Math.min(e,Math.max(0,ej.length-1))})},[ej.length]),(0,a.useEffect)(function(){if(ey.current!==Q){var e=ew.current[ey.current];e&&e.pause(),ey.current=Q}Object.entries(ew.current).forEach(function(e){var t=(0,r.A)(e,2),n=t[0],o=t[1];o&&(Number(n)===Q?o.play().catch(function(){}):o.pause())})},[Q]),!t||"undefined"==typeof document)return null;if(0===ej.length)return(0,l.createPortal)((0,m.jsx)("div",{ref:eh,className:(0,c.Z2)([E().carousel,E().preview,E().empty]),style:{width:"100vw",height:"100vh"},children:(0,m.jsx)(S,{currentIndex:0,total:0,loop:g,canDownload:!1,items:[],closeButtonRef:ex,ariaLabels:Z,onClose:n,onPrev:function(){},onNext:function(){},onThumbnailClick:function(){},children:z?z():(0,m.jsxs)("div",{className:E().emptyState,children:[V&&(0,m.jsx)("div",{className:E().emptyIcon,
1children:V}),(0,m.jsx)("div",{className:E().emptyText,children:void 0===R?"":R})]})})}),document.body);var eV=ej[Q],ez=eV&&F(eV.src),eZ=(0,m.jsx)("div",{className:E().carouselContainer,style:{touchAction:eR},onTouchStart:eN,onTouchMove:eA,onTouchEnd:eF,children:(0,m.jsx)(b,{items:ej,currentIndex:Q,isPreviewMode:!0,width:B,height:q,isVideoSrc:F,ariaLabels:Z,isZoomIn:J,isDragging:el,zoomScale:et,zoomPosition:eo,videoRefs:ew,videoLoadedIndices:ep,mode:"fade",isMobile:p,imageObjectFit:U,onImageClick:eC,onMouseDown:eS,onMouseMove:eD,onMouseUp:eE})});return(0,l.createPortal)((0,m.jsx)("div",{ref:eh,role:"dialog","aria-modal":"true","aria-label":null==Z?void 0:Z.carousel,className:(0,c.Z2)([E().carousel,E().preview,ez?E().currentIsVideo:""]),style:{width:"100vw",height:"100vh"},children:(0,m.jsx)(S,{currentIndex:Q,total:ej.length,loop:g,canDownload:void 0!==f&&f,currentItem:eV,isCurrentVideo:!!ez,items:ej,closeButtonRef:ex,ariaLabels:Z,onClose:function(){n(),eO(!1)},onPrev:function(){return eI("arrow")},onNext:function(){return ek("arrow")},onThumbnailClick:eT,children:eZ})}),document.body)}},45434:e=>{e.exports={root:"Thumbnails_root__b6MMr",visible:"Thumbnails_visible__pkuPm",rootDefault:"Thumbnails_rootDefault__DBdH_",rootPreview:"Thumbnails_rootPreview__8L1go",thumbnailsContent:"Thumbnails_thumbnailsContent__Ki7e8",arrow:"Thumbnails_arrow__LHV9e",arrowRight:"Thumbnails_arrowRight__YeuFC",arrowLeft:"Thumbnails_arrowLeft__L4jHP",thumbnail:"Thumbnails_thumbnail__bOnzx",active:"Thumbnails_active__oKegi",thumbnailImage:"Thumbnails_thumbnailImage__sWvbT"}},48142:e=>{e.exports={previewTopActions:"PreviewMode_previewTopActions__ZJILu",close:"PreviewMode_close__SuMTC"}},54346:e=>{e.exports={carousel:"PreviewMedia_carousel__jxy_7",carouselContainer:"PreviewMedia_carouselContainer__y_D06",slideTrackWrapper:"PreviewMedia_slideTrackWrapper__dntXw",slideTrack:"PreviewMedia_slideTrack__UC0e4",slideFocusOverlay:"PreviewMedia_slideFocusOverlay__nlcyj",slideItem:"PreviewMedia_slideItem__G8IFQ",active:"PreviewMedia_active__x0jAQ",imageItem:"PreviewMedia_imageItem__NfckI",videoItem:"PreviewMedia_videoItem__KjN5m",videoPlayBtn:"PreviewMedia_videoPlayBtn__VVZv1",videoFullscreenBtn:"PreviewMedia_videoFullscreenBtn__rNpeT",slideImage:"PreviewMedia_slideImage__UX0ia",arrow:"PreviewMedia_arrow__534_J",arrowRight:"PreviewMedia_arrowRight__ZI1Q3",arrowLeft:"PreviewMedia_arrowLeft__ouTqn",loading:"PreviewMedia_loading__2U3ms",thumbnail:"PreviewMedia_thumbnail__r00Gp",slideMode:"PreviewMedia_slideMode__euj5e",empty:"PreviewMedia_empty__7UqLF",emptyState:"PreviewMedia_emptyState__WigHz",emptyIcon:"PreviewMedia_emptyIcon__reZtB",emptyText:"PreviewMedia_emptyText___j1BA",preview:"PreviewMedia_preview__pnZGT",zoomIn:"PreviewMedia_zoomIn__dzhDA",dragging:"PreviewMedia_dragging__mSQPD",slideVideo:"PreviewMedia_slideVideo__r4q_M"}}}]); 2//# sourceMappingURL=26-a0ba6b1c77706d52.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.