From 6e32f3eb19c3c452f6d2dc3421405b8f73a936b6 Mon Sep 17 00:00:00 2001 From: Maestr1 Date: Thu, 21 Mar 2024 22:22:52 +0300 Subject: [PATCH] Updates --- assets/{index-C1k-a1M0.js => index-CFBiywwC.js} | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{index-C1k-a1M0.js => index-CFBiywwC.js} (91%) diff --git a/assets/index-C1k-a1M0.js b/assets/index-CFBiywwC.js similarity index 91% rename from assets/index-C1k-a1M0.js rename to assets/index-CFBiywwC.js index 9798305..d6d9291 100644 --- a/assets/index-C1k-a1M0.js +++ b/assets/index-CFBiywwC.js @@ -72,4 +72,4 @@ Error generating stack: `+l.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Br=T;function G0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Q0=typeof Object.is=="function"?Object.is:G0,K0=Br.useSyncExternalStore,Y0=Br.useRef,X0=Br.useEffect,q0=Br.useMemo,Z0=Br.useDebugValue;Nf.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=Y0(null);if(l.current===null){var o={hasValue:!1,value:null};l.current=o}else o=l.current;l=q0(function(){function s(v){if(!u){if(u=!0,c=v,v=r(v),i!==void 0&&o.hasValue){var g=o.value;if(i(g,v))return d=g}return d=v}if(g=d,Q0(c,v))return g;var y=r(v);return i!==void 0&&i(g,y)?g:(c=v,d=y)}var u=!1,c,d,p=n===void 0?null:n;return[function(){return s(t())},p===null?void 0:function(){return s(p())}]},[t,n,r,i]);var a=K0(e,l[0],l[1]);return X0(function(){o.hasValue=!0,o.value=a},[a]),Z0(a),a};zf.exports=Nf;var J0=zf.exports,Me="default"in ao?Y:ao,Fu=Symbol.for("react-redux-context"),$u=typeof globalThis<"u"?globalThis:{};function ev(){if(!Me.createContext)return{};const e=$u[Fu]??($u[Fu]=new Map);let t=e.get(Me.createContext);return t||(t=Me.createContext(null),e.set(Me.createContext,t)),t}var At=ev(),tv=()=>{throw new Error("uSES not initialized!")};function pa(e=At){return function(){return Me.useContext(e)}}var If=pa(),Rf=tv,nv=e=>{Rf=e},rv=(e,t)=>e===t;function iv(e=At){const t=e===At?If:pa(e),n=(r,i={})=>{const{equalityFn:l=rv,devModeChecks:o={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:s,getServerState:u,stabilityCheck:c,identityFunctionCheck:d}=t();Me.useRef(!0);const p=Me.useCallback({[r.name](g){return r(g)}}[r.name],[r,c,o.stabilityCheck]),v=Rf(s.addNestedSub,a.getState,u||a.getState,p,l);return Me.useDebugValue(v),v};return Object.assign(n,{withTypes:()=>n}),n}var lv=iv();function ov(e){e()}function sv(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ov(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Bu={notify(){},get:()=>[]};function av(e,t){let n,r=Bu,i=0,l=!1;function o(y){c();const S=r.subscribe(y);let f=!1;return()=>{f||(f=!0,S(),d())}}function a(){r.notify()}function s(){g.onStateChange&&g.onStateChange()}function u(){return l}function c(){i++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=sv())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Bu)}function p(){l||(l=!0,c())}function v(){l&&(l=!1,d())}const g={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:s,isSubscribed:u,trySubscribe:p,tryUnsubscribe:v,getListeners:()=>r};return g}var uv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cv=uv?Me.useLayoutEffect:Me.useEffect;function dv({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:l="once"}){const o=Me.useMemo(()=>{const u=av(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:l}},[e,r,i,l]),a=Me.useMemo(()=>e.getState(),[e]);cv(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,a]);const s=t||At;return Me.createElement(s.Provider,{value:o},n)}var fv=dv;function jf(e=At){const t=e===At?If:pa(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var pv=jf();function hv(e=At){const t=e===At?pv:jf(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var mv=hv();nv(J0.useSyncExternalStoreWithSelector);const vv=mv,os=lv;function Vu(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function ha(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:Vu(t[n])&&Vu(e[n])&&Object.keys(t[n]).length>0&&ha(e[n],t[n])})}const Df={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Hn(){const e=typeof document<"u"?document:{};return ha(e,Df),e}const gv={document:Df,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function je(){const e=typeof window<"u"?window:{};return ha(e,gv),e}function yv(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function wv(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function ss(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function Yi(){return Date.now()}function Sv(e){const t=je();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function xv(e,t){t===void 0&&(t="x");const n=je();let r,i,l;const o=Sv(e);return n.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(a=>a.replace(",",".")).join(", ")),l=new n.WebKitCSSMatrix(i==="none"?"":i)):(l=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=l.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=l.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=l.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function oi(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Ev(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Pe(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;nt.indexOf(l)<0);for(let l=0,o=i.length;ll?"next":"prev",c=(p,v)=>u==="next"&&p>=v||u==="prev"&&p<=v,d=()=>{a=new Date().getTime(),o===null&&(o=a);const p=Math.max(Math.min((a-o)/s,1),0),v=.5-Math.cos(p*Math.PI)/2;let g=l+v*(n-l);if(c(g,n)&&(g=n),t.wrapperEl.scrollTo({[r]:g}),c(g,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:g})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(d)};d()}function st(e,t){return t===void 0&&(t=""),[...e.children].filter(n=>n.matches(t))}function Xi(e){try{console.warn(e);return}catch{}}function as(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:yv(t)),n}function Cv(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function kv(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Tt(e,t){return je().getComputedStyle(e,null).getPropertyValue(t)}function Uu(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Tv(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Hu(e,t,n){const r=je();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let Jl;function Pv(){const e=je(),t=Hn();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Ff(){return Jl||(Jl=Pv()),Jl}let eo;function _v(e){let{userAgent:t}=e===void 0?{}:e;const n=Ff(),r=je(),i=r.navigator.platform,l=t||r.navigator.userAgent,o={ios:!1,android:!1},a=r.screen.width,s=r.screen.height,u=l.match(/(Android);?[\s\/]+([\d.]+)?/);let c=l.match(/(iPad).*OS\s([\d_]+)/);const d=l.match(/(iPod)(.*OS\s([\d_]+))?/),p=!c&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v=i==="Win32";let g=i==="MacIntel";const y=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&g&&n.touch&&y.indexOf(`${a}x${s}`)>=0&&(c=l.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),g=!1),u&&!v&&(o.os="android",o.android=!0),(c||p||d)&&(o.os="ios",o.ios=!0),o}function $f(e){return e===void 0&&(e={}),eo||(eo=_v(e)),eo}let to;function Mv(){const e=je(),t=$f();let n=!1;function r(){const a=e.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(r()){const a=String(e.navigator.userAgent);if(a.includes("Version/")){const[s,u]=a.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));n=s<16||s===16&&u<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),l=r(),o=l||i&&t.ios;return{isSafari:n||l,needPerspectiveFix:n,need3dFix:o,isWebView:i}}function Ov(){return to||(to=Mv()),to}function Lv(e){let{swiper:t,on:n,emit:r}=e;const i=je();let l=null,o=null;const a=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},s=()=>{!t||t.destroyed||!t.initialized||(l=new ResizeObserver(d=>{o=i.requestAnimationFrame(()=>{const{width:p,height:v}=t;let g=p,y=v;d.forEach(S=>{let{contentBoxSize:f,contentRect:m,target:h}=S;h&&h!==t.el||(g=m?m.width:(f[0]||f).inlineSize,y=m?m.height:(f[0]||f).blockSize)}),(g!==p||y!==v)&&a()})}),l.observe(t.el))},u=()=>{o&&i.cancelAnimationFrame(o),l&&l.unobserve&&t.el&&(l.unobserve(t.el),l=null)},c=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof i.ResizeObserver<"u"){s();return}i.addEventListener("resize",a),i.addEventListener("orientationchange",c)}),n("destroy",()=>{u(),i.removeEventListener("resize",a),i.removeEventListener("orientationchange",c)})}function zv(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const l=[],o=je(),a=function(c,d){d===void 0&&(d={});const p=o.MutationObserver||o.WebkitMutationObserver,v=new p(g=>{if(t.__preventObserver__)return;if(g.length===1){i("observerUpdate",g[0]);return}const y=function(){i("observerUpdate",g[0])};o.requestAnimationFrame?o.requestAnimationFrame(y):o.setTimeout(y,0)});v.observe(c,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:typeof d.childList>"u"?!0:d.childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),l.push(v)},s=()=>{if(t.params.observer){if(t.params.observeParents){const c=Tv(t.hostEl);for(let d=0;d{l.forEach(c=>{c.disconnect()}),l.splice(0,l.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",s),r("destroy",u)}var Nv={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(l=>{r.eventsListeners[l]||(r.eventsListeners[l]=[]),r.eventsListeners[l][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var l=arguments.length,o=new Array(l),a=0;a=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,l)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(l,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var i=arguments.length,l=new Array(i),o=0;o{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(u=>{u.apply(r,[s,...n])}),e.eventsListeners&&e.eventsListeners[s]&&e.eventsListeners[s].forEach(u=>{u.apply(r,n)})}),e}};function Iv(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Tt(r,"padding-left")||0,10)-parseInt(Tt(r,"padding-right")||0,10),n=n-parseInt(Tt(r,"padding-top")||0,10)-parseInt(Tt(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function Rv(){const e=this;function t(k,N){return parseFloat(k.getPropertyValue(e.getDirectionLabel(N))||0)}const n=e.params,{wrapperEl:r,slidesEl:i,size:l,rtlTranslate:o,wrongRTL:a}=e,s=e.virtual&&n.virtual.enabled,u=s?e.virtual.slides.length:e.slides.length,c=st(i,`.${e.params.slideClass}, swiper-slide`),d=s?e.virtual.slides.length:c.length;let p=[];const v=[],g=[];let y=n.slidesOffsetBefore;typeof y=="function"&&(y=n.slidesOffsetBefore.call(e));let S=n.slidesOffsetAfter;typeof S=="function"&&(S=n.slidesOffsetAfter.call(e));const f=e.snapGrid.length,m=e.slidesGrid.length;let h=n.spaceBetween,w=-y,x=0,E=0;if(typeof l>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*l:typeof h=="string"&&(h=parseFloat(h)),e.virtualSize=-h,c.forEach(k=>{o?k.style.marginLeft="":k.style.marginRight="",k.style.marginBottom="",k.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(si(r,"--swiper-centered-offset-before",""),si(r,"--swiper-centered-offset-after",""));const M=n.grid&&n.grid.rows>1&&e.grid;M?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let C;const O=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(k=>typeof n.breakpoints[k].slidesPerView<"u").length>0;for(let k=0;k1&&p.push(e.virtualSize-l)}if(s&&n.loop){const k=g[0]+h;if(n.slidesPerGroup>1){const N=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),D=k*n.slidesPerGroup;for(let R=0;R!n.cssMode||n.loop?!0:D!==c.length-1).forEach(N=>{N.style[k]=`${h}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let k=0;g.forEach(D=>{k+=D+(h||0)}),k-=h;const N=k-l;p=p.map(D=>D<=0?-y:D>N?N+S:D)}if(n.centerInsufficientSlides){let k=0;if(g.forEach(N=>{k+=N+(h||0)}),k-=h,k{p[R]=D-N}),v.forEach((D,R)=>{v[R]=D+N})}}if(Object.assign(e,{slides:c,snapGrid:p,slidesGrid:v,slidesSizesGrid:g}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){si(r,"--swiper-centered-offset-before",`${-p[0]}px`),si(r,"--swiper-centered-offset-after",`${e.size/2-g[g.length-1]/2}px`);const k=-e.snapGrid[0],N=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(D=>D+k),e.slidesGrid=e.slidesGrid.map(D=>D+N)}if(d!==u&&e.emit("slidesLengthChange"),p.length!==f&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),v.length!==m&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!s&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const k=`${n.containerModifierClass}backface-hidden`,N=e.el.classList.contains(k);d<=n.maxBackfaceHiddenSlides?N||e.el.classList.add(k):N&&e.el.classList.remove(k)}}function jv(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,l;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const o=a=>r?t.slides[t.getSlideIndexByData(a)]:t.slides[a];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(a=>{n.push(a)});else for(l=0;lt.slides.length&&!r)break;n.push(o(a))}else n.push(o(t.activeIndex));for(l=0;li?a:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function Dv(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r"u"&&t.updateSlidesOffset();let o=-e;i&&(o=e),r.forEach(s=>{s.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:typeof a=="string"&&(a=parseFloat(a));for(let s=0;s=0&&v<=t.size-t.slidesSizesGrid[s];(v>=0&&v1&&g<=t.size||v<=0&&g>=t.size)&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(s),r[s].classList.add(n.slideVisibleClass)),y&&r[s].classList.add(n.slideFullyVisibleClass),u.progress=i?-d:d,u.originalProgress=i?-p:p}}function Fv(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:l,isEnd:o,progressLoop:a}=t;const s=l,u=o;if(r===0)i=0,l=!0,o=!0;else{i=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;l=c||i<=0,o=d||i>=1,c&&(i=0),d&&(i=1)}if(n.loop){const c=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),p=t.slidesGrid[c],v=t.slidesGrid[d],g=t.slidesGrid[t.slidesGrid.length-1],y=Math.abs(e);y>=p?a=(y-p)/g:a=(y+g-v)/g,a>1&&(a-=1)}Object.assign(t,{progress:i,progressLoop:a,isBeginning:l,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),l&&!s&&t.emit("reachBeginning toEdge"),o&&!u&&t.emit("reachEnd toEdge"),(s&&!l||u&&!o)&&t.emit("fromEdge"),t.emit("progress",i)}function $v(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,l=e.virtual&&n.virtual.enabled,o=e.grid&&n.grid&&n.grid.rows>1,a=d=>st(r,`.${n.slideClass}${d}, swiper-slide${d}`)[0];t.forEach(d=>{d.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let s,u,c;if(l)if(n.loop){let d=i-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),s=a(`[data-swiper-slide-index="${d}"]`)}else s=a(`[data-swiper-slide-index="${i}"]`);else o?(s=t.filter(d=>d.column===i)[0],c=t.filter(d=>d.column===i+1)[0],u=t.filter(d=>d.column===i-1)[0]):s=t[i];s&&(s.classList.add(n.slideActiveClass),o?(c&&c.classList.add(n.slideNextClass),u&&u.classList.add(n.slidePrevClass)):(c=kv(s,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c&&(c=t[0]),c&&c.classList.add(n.slideNextClass),u=Cv(s,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u===0&&(u=t[t.length-1]),u&&u.classList.add(n.slidePrevClass))),e.emitSlidesClasses()}const Ei=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let i=r.querySelector(`.${e.params.lazyPreloaderClass}`);!i&&e.isElement&&(r.shadowRoot?i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},no=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},us=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const o=i,a=[o-t];a.push(...Array.from({length:t}).map((s,u)=>o+r+u)),e.slides.forEach((s,u)=>{a.includes(s.column)&&no(e,u)});return}const l=i+r-1;if(e.params.rewind||e.params.loop)for(let o=i-t;o<=l+t;o+=1){const a=(o%n+n)%n;(al)&&no(e,a)}else for(let o=Math.max(i-t,0);o<=Math.min(l+t,n-1);o+=1)o!==i&&(o>l||o=t[l]&&r=t[l]&&r=t[l]&&(i=l);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function Vv(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:l,realIndex:o,snapIndex:a}=t;let s=e,u;const c=v=>{let g=v-t.virtual.slidesBefore;return g<0&&(g=t.virtual.slides.length+g),g>=t.virtual.slides.length&&(g-=t.virtual.slides.length),g};if(typeof s>"u"&&(s=Bv(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const v=Math.min(i.slidesPerGroupSkip,s);u=v+Math.floor((s-v)/i.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),s===l&&!t.params.loop){u!==a&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(s===l&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(s);return}const d=t.grid&&i.grid&&i.grid.rows>1;let p;if(t.virtual&&i.virtual.enabled&&i.loop)p=c(s);else if(d){const v=t.slides.filter(y=>y.column===s)[0];let g=parseInt(v.getAttribute("data-swiper-slide-index"),10);Number.isNaN(g)&&(g=Math.max(t.slides.indexOf(v),0)),p=Math.floor(g/i.grid.rows)}else if(t.slides[s]){const v=t.slides[s].getAttribute("data-swiper-slide-index");v?p=parseInt(v,10):p=s}else p=s;Object.assign(t,{previousSnapIndex:a,snapIndex:u,previousRealIndex:o,realIndex:p,previousIndex:l,activeIndex:s}),t.initialized&&us(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==p&&t.emit("realIndexChange"),t.emit("slideChange"))}function Uv(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(a=>{!i&&a.matches&&a.matches(`.${r.slideClass}, swiper-slide`)&&(i=a)});let l=!1,o;if(i){for(let a=0;as?c=s:r&&eo?a="next":l=s.length&&(S=s.length-1);const f=-s[S];if(a.normalizeSlideIndex)for(let h=0;h=x&&w=x&&w=x&&(o=h)}if(l.initialized&&o!==d&&(!l.allowSlideNext&&(p?f>l.translate&&f>l.minTranslate():fl.translate&&f>l.maxTranslate()&&(d||0)!==o))return!1;o!==(c||0)&&n&&l.emit("beforeSlideChangeStart"),l.updateProgress(f);let m;if(o>d?m="next":o0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{v[h?"scrollLeft":"scrollTop"]=w})):v[h?"scrollLeft":"scrollTop"]=w,x&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return Af({swiper:l,targetPosition:w,side:h?"left":"top"}),!0;v.scrollTo({[h?"left":"top"]:w,behavior:"smooth"})}return!0}return l.setTransition(t),l.setTranslate(f),l.updateActiveIndex(o),l.updateSlidesClasses(),l.emit("beforeTransitionStart",t,r),l.transitionStart(n,m),t===0?l.transitionEnd(n,m):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(w){!l||l.destroyed||w.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(n,m))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function tg(e,t,n,r){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;const l=i.grid&&i.params.grid&&i.params.grid.rows>1;let o=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)o=o+i.virtual.slidesBefore;else{let a;if(l){const p=o*i.params.grid.rows;a=i.slides.filter(v=>v.getAttribute("data-swiper-slide-index")*1===p)[0].column}else a=i.getSlideIndexByData(o);const s=l?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:u}=i.params;let c=i.params.slidesPerView;c==="auto"?c=i.slidesPerViewDynamic():(c=Math.ceil(parseFloat(i.params.slidesPerView,10)),u&&c%2===0&&(c=c+1));let d=s-av.getAttribute("data-swiper-slide-index")*1===p)[0].column}else o=i.getSlideIndexByData(o)}return requestAnimationFrame(()=>{i.slideTo(o,t,n,r)}),i}function ng(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);const r=this,{enabled:i,params:l,animating:o}=r;if(!i||r.destroyed)return r;let a=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const s=r.activeIndex{r.slideTo(r.activeIndex+s,e,t,n)}),!0}return l.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+s,e,t,n)}function rg(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);const r=this,{params:i,snapGrid:l,slidesGrid:o,rtlTranslate:a,enabled:s,animating:u}=r;if(!s||r.destroyed)return r;const c=r.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=a?r.translate:-r.translate;function p(f){return f<0?-Math.floor(Math.abs(f)):Math.floor(f)}const v=p(d),g=l.map(f=>p(f));let y=l[g.indexOf(v)-1];if(typeof y>"u"&&i.cssMode){let f;l.forEach((m,h)=>{v>=m&&(f=h)}),typeof f<"u"&&(y=l[f>0?f-1:f])}let S=0;if(typeof y<"u"&&(S=o.indexOf(y),S<0&&(S=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(S=S-r.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),i.rewind&&r.isBeginning){const f=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(f,e,t,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(S,e,t,n)}),!0;return r.slideTo(S,e,t,n)}function ig(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);const r=this;if(!r.destroyed)return r.slideTo(r.activeIndex,e,t,n)}function lg(e,t,n,r){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),r===void 0&&(r=.5);const i=this;if(i.destroyed)return;let l=i.activeIndex;const o=Math.min(i.params.slidesPerGroupSkip,l),a=o+Math.floor((l-o)/i.params.slidesPerGroup),s=i.rtlTranslate?i.translate:-i.translate;if(s>=i.snapGrid[a]){const u=i.snapGrid[a],c=i.snapGrid[a+1];s-u>(c-u)*r&&(l+=i.params.slidesPerGroup)}else{const u=i.snapGrid[a-1],c=i.snapGrid[a];s-u<=(c-u)*r&&(l-=i.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,i.slidesGrid.length-1),i.slideTo(l,e,t,n)}function og(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,l;const o=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;l=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?ie.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=e.getSlideIndex(st(n,`${o}[data-swiper-slide-index="${l}"]`)[0]),ss(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(st(n,`${o}[data-swiper-slide-index="${l}"]`)[0]),ss(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var sg={slideTo:eg,slideToLoop:tg,slideNext:ng,slidePrev:rg,slideReset:ig,slideToClosest:lg,slideToClickedSlide:og};function ag(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const i=()=>{st(r,`.${n.slideClass}, swiper-slide`).forEach((d,p)=>{d.setAttribute("data-swiper-slide-index",p)})},l=t.grid&&n.grid&&n.grid.rows>1,o=n.slidesPerGroup*(l?n.grid.rows:1),a=t.slides.length%o!==0,s=l&&t.slides.length%n.grid.rows!==0,u=c=>{for(let d=0;d1;u.length"u"?l=s.getSlideIndex(u.filter(R=>R.classList.contains(v.slideActiveClass))[0]):x=l;const E=r==="next"||!r,M=r==="prev"||!r;let C=0,O=0;const k=m?Math.ceil(u.length/v.grid.rows):u.length,D=(m?u[l].column:l)+(g&&typeof i>"u"?-y/2+.5:0);if(D=0;ye-=1)u[ye].column===te&&h.push(ye)}else h.push(k-H-1)}}else if(D+y>k-f){O=Math.max(D-(k-f*2),S);for(let R=0;R{te.column===H&&w.push(ye)}):w.push(H)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),M&&h.forEach(R=>{u[R].swiperLoopMoveDOM=!0,p.prepend(u[R]),u[R].swiperLoopMoveDOM=!1}),E&&w.forEach(R=>{u[R].swiperLoopMoveDOM=!0,p.append(u[R]),u[R].swiperLoopMoveDOM=!1}),s.recalcSlides(),v.slidesPerView==="auto"?s.updateSlides():m&&(h.length>0&&M||w.length>0&&E)&&s.slides.forEach((R,H)=>{s.grid.updateSlide(H,R,s.slides)}),v.watchSlidesProgress&&s.updateSlidesOffset(),n){if(h.length>0&&M){if(typeof t>"u"){const R=s.slidesGrid[x],te=s.slidesGrid[x+C]-R;a?s.setTranslate(s.translate-te):(s.slideTo(x+Math.ceil(C),0,!1,!0),i&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-te,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-te))}else if(i){const R=m?h.length/v.grid.rows:h.length;s.slideTo(s.activeIndex+R,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(w.length>0&&E)if(typeof t>"u"){const R=s.slidesGrid[x],te=s.slidesGrid[x-O]-R;a?s.setTranslate(s.translate-te):(s.slideTo(x-O,0,!1,!0),i&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-te,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-te))}else{const R=m?w.length/v.grid.rows:w.length;s.slideTo(s.activeIndex-R,0,!1,!0)}}if(s.allowSlidePrev=c,s.allowSlideNext=d,s.controller&&s.controller.control&&!o){const R={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:l,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(H=>{!H.destroyed&&H.params.loop&&H.loopFix({...R,slideTo:H.params.slidesPerView===v.slidesPerView?n:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...R,slideTo:s.controller.control.params.slidesPerView===v.slidesPerView?n:!1})}s.emit("loopFix")}function cg(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const l=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[l]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var dg={loopCreate:ag,loopFix:ug,loopDestroy:cg};function fg(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function pg(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var hg={setGrabCursor:fg,unsetGrabCursor:pg};function mg(e,t){t===void 0&&(t=this);function n(r){if(!r||r===Hn()||r===je())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function Wu(e,t,n){const r=je(),{params:i}=e,l=i.edgeSwipeDetection,o=i.edgeSwipeThreshold;return l&&(n<=o||n>=r.innerWidth-o)?l==="prevent"?(t.preventDefault(),!0):!1:!0}function vg(e){const t=this,n=Hn();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if(r.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){Wu(t,r,r.targetTouches[0].pageX);return}const{params:l,touches:o,enabled:a}=t;if(!a||!l.simulateTouch&&r.pointerType==="mouse"||t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let s=r.target;if(l.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(s)||"which"in r&&r.which===3||"button"in r&&r.button>0||i.isTouched&&i.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",c=r.composedPath?r.composedPath():r.path;u&&r.target&&r.target.shadowRoot&&c&&(s=c[0]);const d=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,p=!!(r.target&&r.target.shadowRoot);if(l.noSwiping&&(p?mg(d,s):s.closest(d))){t.allowClick=!0;return}if(l.swipeHandler&&!s.closest(l.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;const v=o.currentX,g=o.currentY;if(!Wu(t,r,v))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=v,o.startY=g,i.touchStartTime=Yi(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(i.allowThresholdMove=!1);let y=!0;s.matches(i.focusableElements)&&(y=!1,s.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==s&&n.activeElement.blur();const S=y&&t.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||S)&&!s.isContentEditable&&r.preventDefault(),l.freeMode&&l.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function gg(e){const t=Hn(),n=this,r=n.touchEventsData,{params:i,touches:l,rtlTranslate:o,enabled:a}=n;if(!a||!i.simulateTouch&&e.pointerType==="mouse")return;let s=e;if(s.originalEvent&&(s=s.originalEvent),s.type==="pointermove"&&(r.touchId!==null||s.pointerId!==r.pointerId))return;let u;if(s.type==="touchmove"){if(u=[...s.changedTouches].filter(E=>E.identifier===r.touchId)[0],!u||u.identifier!==r.touchId)return}else u=s;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",s);return}const c=u.pageX,d=u.pageY;if(s.preventedByNestedSwiper){l.startX=c,l.startY=d;return}if(!n.allowTouchMove){s.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(l,{startX:c,startY:d,currentX:c,currentY:d}),r.touchStartTime=Yi());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(dl.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(cl.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&s.target===t.activeElement&&s.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",s),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=c,l.currentY=d;const p=l.currentX-l.startX,v=l.currentY-l.startY;if(n.params.threshold&&Math.sqrt(p**2+v**2)"u"){let E;n.isHorizontal()&&l.currentY===l.startY||n.isVertical()&&l.currentX===l.startX?r.isScrolling=!1:p*p+v*v>=25&&(E=Math.atan2(Math.abs(v),Math.abs(p))*180/Math.PI,r.isScrolling=n.isHorizontal()?E>i.touchAngle:90-E>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",s),typeof r.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(r.startMoving=!0),r.isScrolling){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&s.cancelable&&s.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&s.stopPropagation();let g=n.isHorizontal()?p:v,y=n.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;i.oneWayMovement&&(g=Math.abs(g)*(o?1:-1),y=Math.abs(y)*(o?1:-1)),l.diff=g,g*=i.touchRatio,o&&(g=-g,y=-y);const S=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=y>0?"prev":"next";const f=n.params.loop&&!i.cssMode,m=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(f&&m&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const E=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(E)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",s)}let h;if(new Date().getTime(),r.isMoved&&r.allowThresholdMove&&S!==n.touchesDirection&&f&&m&&Math.abs(g)>=1){Object.assign(l,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",s),r.isMoved=!0,r.currentTranslate=g+r.startTranslate;let w=!0,x=i.resistanceRatio;if(i.touchReleaseOnEdges&&(x=0),g>0?(f&&m&&!h&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(w=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+g)**x))):g<0&&(f&&m&&!h&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(g)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,r.currentTranslate=r.startTranslate,l.diff=n.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function yg(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let i;if(r.type==="touchend"||r.type==="touchcancel"){if(i=[...r.changedTouches].filter(x=>x.identifier===n.touchId)[0],!i||i.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:s,slidesGrid:u,enabled:c}=t;if(!c||!o.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}o.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=Yi(),p=d-n.touchStartTime;if(t.allowClick){const x=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(x&&x[0]||r.target,x),t.emit("tap click",r),p<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=Yi(),ss(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||a.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let v;if(o.followFinger?v=s?t.translate:-t.translate:v=-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:v});return}const g=v>=-t.maxTranslate()&&!t.params.loop;let y=0,S=t.slidesSizesGrid[0];for(let x=0;x=u[x]&&v=u[x])&&(y=x,S=u[u.length-1]-u[u.length-2])}let f=null,m=null;o.rewind&&(t.isBeginning?m=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(f=0));const h=(v-u[y])/S,w=yo.longSwipesMs){if(!o.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(h>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?f:y+w):t.slideTo(y)),t.swipeDirection==="prev"&&(h>1-o.longSwipesRatio?t.slideTo(y+w):m!==null&&h<0&&Math.abs(h)>o.longSwipesRatio?t.slideTo(m):t.slideTo(y))}else{if(!o.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(y+w):t.slideTo(y):(t.swipeDirection==="next"&&t.slideTo(f!==null?f:y+w),t.swipeDirection==="prev"&&t.slideTo(m!==null?m:y))}}function bu(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:l}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=o&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&l!==e.snapGrid&&e.checkOverflow()}function wg(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Sg(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const l=e.maxTranslate()-e.minTranslate();l===0?i=0:i=(e.translate-e.minTranslate())/l,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function xg(e){const t=this;Ei(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function Eg(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Vf=(e,t)=>{const n=Hn(),{params:r,el:i,wrapperEl:l,device:o}=e,a=!!r.nested,s=t==="on"?"addEventListener":"removeEventListener",u=t;n[s]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),i[s]("touchstart",e.onTouchStart,{passive:!1}),i[s]("pointerdown",e.onTouchStart,{passive:!1}),n[s]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[s]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[s]("touchend",e.onTouchEnd,{passive:!0}),n[s]("pointerup",e.onTouchEnd,{passive:!0}),n[s]("pointercancel",e.onTouchEnd,{passive:!0}),n[s]("touchcancel",e.onTouchEnd,{passive:!0}),n[s]("pointerout",e.onTouchEnd,{passive:!0}),n[s]("pointerleave",e.onTouchEnd,{passive:!0}),n[s]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[s]("click",e.onClick,!0),r.cssMode&&l[s]("scroll",e.onScroll),r.updateOnWindowResize?e[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",bu,!0):e[u]("observerUpdate",bu,!0),i[s]("load",e.onLoad,{capture:!0})};function Cg(){const e=this,{params:t}=e;e.onTouchStart=vg.bind(e),e.onTouchMove=gg.bind(e),e.onTouchEnd=yg.bind(e),e.onDocumentTouchStart=Eg.bind(e),t.cssMode&&(e.onScroll=Sg.bind(e)),e.onClick=wg.bind(e),e.onLoad=xg.bind(e),Vf(e,"on")}function kg(){Vf(this,"off")}var Tg={attachEvents:Cg,detachEvents:kg};const Gu=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Pg(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,l=r.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const o=e.getBreakpoint(l,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const s=(o in l?l[o]:void 0)||e.originalParams,u=Gu(e,r),c=Gu(e,s),d=r.enabled;u&&!c?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(i.classList.add(`${r.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill==="column"||!s.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(f=>{if(typeof s[f]>"u")return;const m=r[f]&&r[f].enabled,h=s[f]&&s[f].enabled;m&&!h&&e[f].disable(),!m&&h&&e[f].enable()});const p=s.direction&&s.direction!==r.direction,v=r.loop&&(s.slidesPerView!==r.slidesPerView||p),g=r.loop;p&&n&&e.changeDirection(),Pe(e.params,s);const y=e.params.enabled,S=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!y?e.disable():!d&&y&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",s),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!g&&S?(e.loopCreate(t),e.updateSlides()):g&&!S&&e.loopDestroy()),e.emit("breakpoint",s)}function _g(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const i=je(),l=t==="window"?i.innerHeight:n.clientHeight,o=Object.keys(e).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const s=parseFloat(a.substr(1));return{value:l*s,point:a}}return{value:a,point:a}});o.sort((a,s)=>parseInt(a.value,10)-parseInt(s.value,10));for(let a=0;a{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function Lg(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:l}=e,o=Og(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.classList.add(...t),e.emitContainerClasses()}function zg(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}var Ng={addClasses:Lg,removeClasses:zg};function Ig(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,l=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>l}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var Rg={checkOverflow:Ig},cs={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function jg(e,t){return function(r){r===void 0&&(r={});const i=Object.keys(r)[0],l=r[i];if(typeof l!="object"||l===null){Pe(t,r);return}if(e[i]===!0&&(e[i]={enabled:!0}),i==="navigation"&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),!(i in e&&"enabled"in l)){Pe(t,r);return}typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),Pe(t,r)}}const ro={eventsEmitter:Nv,update:Hv,translate:Yv,transition:Jv,slide:sg,loop:dg,grabCursor:hg,events:Tg,breakpoints:Mg,checkOverflow:Rg,classes:Ng},io={};let ma=class nt{constructor(){let t,n;for(var r=arguments.length,i=new Array(r),l=0;l1){const c=[];return o.querySelectorAll(n.el).forEach(d=>{const p=Pe({},n,{el:d});c.push(new nt(p))}),c}const a=this;a.__swiper__=!0,a.support=Ff(),a.device=$f({userAgent:n.userAgent}),a.browser=Ov(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],n.modules&&Array.isArray(n.modules)&&a.modules.push(...n.modules);const s={};a.modules.forEach(c=>{c({params:n,swiper:a,extendParams:jg(n,s),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const u=Pe({},cs,s);return a.params=Pe({},u,io,n),a.originalParams=Pe({},a.params),a.passedParams=Pe({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach(c=>{a.on(c,a.params.on[c])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=st(n,`.${r.slideClass}, swiper-slide`),l=Uu(i[0]);return Uu(t)-l}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=st(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),o=(r.maxTranslate()-i)*t+i;r.translateTo(o,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:i,slides:l,slidesGrid:o,slidesSizesGrid:a,size:s,activeIndex:u}=r;let c=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let d=l[u]?Math.ceil(l[u].swiperSlideSize):0,p;for(let v=u+1;vs&&(p=!0));for(let v=u-1;v>=0;v-=1)l[v]&&!p&&(d+=l[v].swiperSlideSize,c+=1,d>s&&(p=!0))}else if(t==="current")for(let d=u+1;d=0;d-=1)o[u]-o[d]{o.complete&&Ei(t,o)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const o=t.rtlTranslate?t.translate*-1:t.translate,a=Math.min(Math.max(o,t.maxTranslate()),t.minTranslate());t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}let l;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const o=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;l=t.slideTo(o.length-1,0,!1,!0)}else l=t.slideTo(t.activeIndex,0,!1,!0);l||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(l=>{t==="vertical"?l.style.width="":l.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):st(r,i())[0];return!o&&n.params.createElements&&(o=as("div",n.params.wrapperClass),r.append(o),st(r,`.${n.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(n,{el:r,wrapperEl:o,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:o,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Tt(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Tt(r,"direction")==="rtl"),wrongRTL:Tt(o,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const i=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&i.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(l=>{l.complete?Ei(n,l):l.addEventListener("load",o=>{Ei(n,o.target)})}),us(n),n.initialized=!0,us(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:i,el:l,wrapperEl:o,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),l.removeAttribute("style"),o.removeAttribute("style"),a&&a.length&&a.forEach(s=>{s.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),s.removeAttribute("style"),s.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(s=>{r.off(s)}),t!==!1&&(r.el.swiper=null,wv(r)),r.destroyed=!0),null}static extendDefaults(t){Pe(io,t)}static get extendedDefaults(){return io}static get defaults(){return cs}static installModule(t){nt.prototype.__modules__||(nt.prototype.__modules__=[]);const n=nt.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>nt.installModule(n)),nt):(nt.installModule(t),nt)}};Object.keys(ro).forEach(e=>{Object.keys(ro[e]).forEach(t=>{ma.prototype[t]=ro[e][t]})});ma.use([Lv,zv]);const Uf=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function ln(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function On(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:ln(t[r])&&ln(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:On(e[r],t[r]):e[r]=t[r]})}function Hf(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Wf(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function bf(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function Gf(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function Dg(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function Ag(e){let{swiper:t,slides:n,passedParams:r,changedParams:i,nextEl:l,prevEl:o,scrollbarEl:a,paginationEl:s}=e;const u=i.filter(O=>O!=="children"&&O!=="direction"&&O!=="wrapperClass"),{params:c,pagination:d,navigation:p,scrollbar:v,virtual:g,thumbs:y}=t;let S,f,m,h,w,x,E,M;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(S=!0),i.includes("controller")&&r.controller&&r.controller.control&&c.controller&&!c.controller.control&&(f=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||s)&&(c.pagination||c.pagination===!1)&&d&&!d.el&&(m=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||a)&&(c.scrollbar||c.scrollbar===!1)&&v&&!v.el&&(h=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||o)&&(r.navigation.nextEl||l)&&(c.navigation||c.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(w=!0);const C=O=>{t[O]&&(t[O].destroy(),O==="navigation"?(t.isElement&&(t[O].prevEl.remove(),t[O].nextEl.remove()),c[O].prevEl=void 0,c[O].nextEl=void 0,t[O].prevEl=void 0,t[O].nextEl=void 0):(t.isElement&&t[O].el.remove(),c[O].el=void 0,t[O].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!r.loop?x=!0:!c.loop&&r.loop?E=!0:M=!0),u.forEach(O=>{if(ln(c[O])&&ln(r[O]))Object.assign(c[O],r[O]),(O==="navigation"||O==="pagination"||O==="scrollbar")&&"enabled"in r[O]&&!r[O].enabled&&C(O);else{const k=r[O];(k===!0||k===!1)&&(O==="navigation"||O==="pagination"||O==="scrollbar")?k===!1&&C(O):c[O]=r[O]}}),u.includes("controller")&&!f&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&n&&g&&c.virtual.enabled?(g.slides=n,g.update(!0)):i.includes("virtual")&&g&&c.virtual.enabled&&(n&&(g.slides=n),g.update(!0)),i.includes("children")&&n&&c.loop&&(M=!0),S&&y.init()&&y.update(!0),f&&(t.controller.control=c.controller.control),m&&(t.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),t.el.appendChild(s)),s&&(c.pagination.el=s),d.init(),d.render(),d.update()),h&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),t.el.appendChild(a)),a&&(c.scrollbar.el=a),v.init(),v.updateSize(),v.setTranslate()),w&&(t.isElement&&((!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-next"),l.innerHTML=t.hostEl.constructor.nextButtonSvg,l.part.add("button-next"),t.el.appendChild(l)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),o.innerHTML=t.hostEl.constructor.prevButtonSvg,o.part.add("button-prev"),t.el.appendChild(o))),l&&(c.navigation.nextEl=l),o&&(c.navigation.prevEl=o),p.init(),p.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&t.changeDirection(r.direction,!1),(x||M)&&t.loopDestroy(),(E||M)&&t.loopCreate(),t.update()}function Fg(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},i={};On(n,cs),n._emitClasses=!0,n.init=!1;const l={},o=Uf.map(s=>s.replace(/_/,"")),a=Object.assign({},e);return Object.keys(a).forEach(s=>{typeof e[s]>"u"||(o.indexOf(s)>=0?ln(e[s])?(n[s]={},i[s]={},On(n[s],e[s]),On(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):s.search(/on[A-Z]/)===0&&typeof e[s]=="function"?t?r[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:n.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:l[s]=e[s])}),["navigation","pagination","scrollbar"].forEach(s=>{n[s]===!0&&(n[s]={}),n[s]===!1&&delete n[s]}),{params:n,passedParams:i,rest:l,events:r}}function $g(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:l,scrollbarEl:o,swiper:a}=e;Hf(t)&&r&&i&&(a.params.navigation.nextEl=r,a.originalParams.navigation.nextEl=r,a.params.navigation.prevEl=i,a.originalParams.navigation.prevEl=i),Wf(t)&&l&&(a.params.pagination.el=l,a.originalParams.pagination.el=l),bf(t)&&o&&(a.params.scrollbar.el=o,a.originalParams.scrollbar.el=o),a.init(n)}function Bg(e,t,n,r,i){const l=[];if(!t)return l;const o=s=>{l.indexOf(s)<0&&l.push(s)};if(n&&r){const s=r.map(i),u=n.map(i);s.join("")!==u.join("")&&o("children"),r.length!==n.length&&o("children")}return Uf.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in e&&s in t)if(ln(e[s])&&ln(t[s])){const u=Object.keys(e[s]),c=Object.keys(t[s]);u.length!==c.length?o(s):(u.forEach(d=>{e[s][d]!==t[s][d]&&o(s)}),c.forEach(d=>{e[s][d]!==t[s][d]&&o(s)}))}else e[s]!==t[s]&&o(s)}),l}const Vg=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{Qf(n)?t.push(n):n.props&&n.props.children&&Kf(n.props.children).forEach(r=>t.push(r))}),t}function Ug(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return Y.Children.toArray(e).forEach(r=>{if(Qf(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=Kf(r.props.children);i.length>0?i.forEach(l=>t.push(l)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function Hg(e,t,n){if(!n)return null;const r=c=>{let d=c;return c<0?d=t.length+c:d>=t.length&&(d=d-t.length),d},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:l,to:o}=n,a=e.params.loop?-t.length:0,s=e.params.loop?t.length*2:t.length,u=[];for(let c=a;c=l&&c<=o&&u.push(t[r(c)]);return u.map((c,d)=>Y.cloneElement(c,{swiper:e,style:i,key:c.props.virtualIndex||c.key||`slide-${d}`}))}function fr(e,t){return typeof window>"u"?T.useEffect(e,t):T.useLayoutEffect(e,t)}const Qu=T.createContext(null),Wg=T.createContext(null),Yf=T.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:l,onSwiper:o,...a}=e===void 0?{}:e,s=!1;const[u,c]=T.useState("swiper"),[d,p]=T.useState(null),[v,g]=T.useState(!1),y=T.useRef(!1),S=T.useRef(null),f=T.useRef(null),m=T.useRef(null),h=T.useRef(null),w=T.useRef(null),x=T.useRef(null),E=T.useRef(null),M=T.useRef(null),{params:C,passedParams:O,rest:k,events:N}=Fg(a),{slides:D,slots:R}=Ug(l),H=()=>{g(!v)};Object.assign(C.on,{_containerClasses(I,j){c(j)}});const te=()=>{Object.assign(C.on,N),s=!0;const I={...C};if(delete I.wrapperClass,f.current=new ma(I),f.current.virtual&&f.current.params.virtual.enabled){f.current.virtual.slides=D;const j={cache:!1,slides:D,renderExternal:p,renderExternalUpdate:!1};On(f.current.params.virtual,j),On(f.current.originalParams.virtual,j)}};S.current||te(),f.current&&f.current.on("_beforeBreakpoint",H);const ye=()=>{s||!N||!f.current||Object.keys(N).forEach(I=>{f.current.on(I,N[I])})},Ut=()=>{!N||!f.current||Object.keys(N).forEach(I=>{f.current.off(I,N[I])})};T.useEffect(()=>()=>{f.current&&f.current.off("_beforeBreakpoint",H)}),T.useEffect(()=>{!y.current&&f.current&&(f.current.emitSlidesClasses(),y.current=!0)}),fr(()=>{if(t&&(t.current=S.current),!!S.current)return f.current.destroyed&&te(),$g({el:S.current,nextEl:w.current,prevEl:x.current,paginationEl:E.current,scrollbarEl:M.current,swiper:f.current},C),o&&!f.current.destroyed&&o(f.current),()=>{f.current&&!f.current.destroyed&&f.current.destroy(!0,!1)}},[]),fr(()=>{ye();const I=Bg(O,m.current,D,h.current,j=>j.key);return m.current=O,h.current=D,I.length&&f.current&&!f.current.destroyed&&Ag({swiper:f.current,slides:D,passedParams:O,changedParams:I,nextEl:w.current,prevEl:x.current,scrollbarEl:M.current,paginationEl:E.current}),()=>{Ut()}}),fr(()=>{Vg(f.current)},[d]);function L(){return C.virtual?Hg(f.current,D,d):D.map((I,j)=>Y.cloneElement(I,{swiper:f.current,swiperSlideIndex:j}))}return Y.createElement(r,qi({ref:S,className:Gf(`${u}${n?` ${n}`:""}`)},k),Y.createElement(Wg.Provider,{value:f.current},R["container-start"],Y.createElement(i,{className:Dg(C.wrapperClass)},R["wrapper-start"],L(),R["wrapper-end"]),Hf(C)&&Y.createElement(Y.Fragment,null,Y.createElement("div",{ref:x,className:"swiper-button-prev"}),Y.createElement("div",{ref:w,className:"swiper-button-next"})),bf(C)&&Y.createElement("div",{ref:M,className:"swiper-scrollbar"}),Wf(C)&&Y.createElement("div",{ref:E,className:"swiper-pagination"}),R["container-end"]))});Yf.displayName="Swiper";const Xf=T.forwardRef(function(e,t){let{tag:n="div",children:r,className:i="",swiper:l,zoom:o,lazy:a,virtualIndex:s,swiperSlideIndex:u,...c}=e===void 0?{}:e;const d=T.useRef(null),[p,v]=T.useState("swiper-slide"),[g,y]=T.useState(!1);function S(w,x,E){x===d.current&&v(E)}fr(()=>{if(typeof u<"u"&&(d.current.swiperSlideIndex=u),t&&(t.current=d.current),!(!d.current||!l)){if(l.destroyed){p!=="swiper-slide"&&v("swiper-slide");return}return l.on("_slideClass",S),()=>{l&&l.off("_slideClass",S)}}}),fr(()=>{l&&d.current&&!l.destroyed&&v(l.getSlideClasses(d.current))},[l]);const f={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},m=()=>typeof r=="function"?r(f):r,h=()=>{y(!0)};return Y.createElement(n,qi({ref:d,className:Gf(`${p}${i?` ${i}`:""}`),"data-swiper-slide-index":s,onLoad:h},c),o&&Y.createElement(Qu.Provider,{value:f},Y.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},m(),a&&!g&&Y.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&Y.createElement(Qu.Provider,{value:f},m(),a&&!g&&Y.createElement("div",{className:"swiper-lazy-preloader"})))});Xf.displayName="SwiperSlide";function Ku(e){const t=os(n=>n.availableSubscriptionsReducer.availableSubscriptions);return _.jsxs("section",{children:[_.jsx(Lf,{title:e.title,link:e.link}),_.jsx(Yf,{tag:"ul",slidesPerView:e.slidesPerView,spaceBetween:8,className:"cards-slider",children:t.map((n,r)=>_.jsx(Xf,{tag:"li",children:_.jsx(xt,{to:`services/${n.id}`,children:_.jsx("img",{src:e.cardType==="square"?n.iconSquare:n.iconBig,alt:""})})},`card-${r}`))})]})}function bg(e){return _.jsx("ul",{className:"card-list",children:e.items.map((t,n)=>_.jsx("li",{children:_.jsxs(xt,{className:"card-list__link link",to:`/services/category/${t.id}`,children:[_.jsxs("div",{className:"card-list__title",children:[_.jsx("img",{src:t.icon,alt:""}),_.jsx("h3",{children:t.name})]}),_.jsx("p",{children:"от 99р."})]})},`category-card-${n}`))})}function Gg(){const e=os(n=>n.availableSubscriptionsReducer.availableSubscriptions),t=os(n=>n.subscriptionsCategoriesReducer.subscriptionsCategories);return _.jsxs(_.Fragment,{children:[_.jsx(Vm,{}),_.jsx(Ku,{slidesPerView:3,items:e,title:"Мои подписки",cardType:"square",link:"/services/my-services"}),_.jsx(Ku,{slidesPerView:1.8,items:e,title:"Популярное",cardType:"big",link:"/services/category/popular"}),_.jsxs("section",{children:[_.jsx(Lf,{title:"Каталог",link:"/services/available"}),_.jsx(bg,{items:t})]})]})}function Qg({onClick:e,isMenuOpen:t}){return _.jsx(_.Fragment,{children:_.jsxs("button",{onClick:e,className:`burger-btn ${t?"burger-btn_active":""}`,children:[_.jsx("span",{className:"burger-btn__bar-top"}),_.jsx("span",{className:"burger-btn__bar-mid"}),_.jsx("span",{className:"burger-btn__bar-bot"})]})})}const Kg="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.02%202.84016L3.63%207.04016C2.73%207.74016%202%209.23016%202%2010.3602V17.7702C2%2020.0902%203.89%2021.9902%206.21%2021.9902H17.79C20.11%2021.9902%2022%2020.0902%2022%2017.7802V10.5002C22%209.29016%2021.19%207.74016%2020.2%207.05016L14.02%202.72016C12.62%201.74016%2010.37%201.79016%209.02%202.84016Z'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12%2017.9902V14.9902'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Yg="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.38086%2012.0001L10.7909%2014.4201L15.6209%209.58008'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10.7489%202.45031C11.4389%201.86031%2012.5689%201.86031%2013.2689%202.45031L14.8489%203.81031C15.1489%204.07031%2015.7089%204.28031%2016.1089%204.28031H17.8089C18.8689%204.28031%2019.7389%205.15031%2019.7389%206.21031V7.91031C19.7389%208.30031%2019.9489%208.87031%2020.2089%209.17031L21.5689%2010.7503C22.1589%2011.4403%2022.1589%2012.5703%2021.5689%2013.2703L20.2089%2014.8503C19.9489%2015.1503%2019.7389%2015.7103%2019.7389%2016.1103V17.8103C19.7389%2018.8703%2018.8689%2019.7403%2017.8089%2019.7403H16.1089C15.7189%2019.7403%2015.1489%2019.9503%2014.8489%2020.2103L13.2689%2021.5703C12.5789%2022.1603%2011.4489%2022.1603%2010.7489%2021.5703L9.16891%2020.2103C8.86891%2019.9503%208.30891%2019.7403%207.90891%2019.7403H6.17891C5.11891%2019.7403%204.24891%2018.8703%204.24891%2017.8103V16.1003C4.24891%2015.7103%204.03891%2015.1503%203.78891%2014.8503L2.43891%2013.2603C1.85891%2012.5703%201.85891%2011.4503%202.43891%2010.7603L3.78891%209.17031C4.03891%208.87031%204.24891%208.31031%204.24891%207.92031V6.20031C4.24891%205.14031%205.11891%204.27031%206.17891%204.27031H7.90891C8.29891%204.27031%208.86891%204.06031%209.16891%203.80031L10.7489%202.45031Z'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Xg="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18.04%2013.55C17.62%2013.96%2017.38%2014.55%2017.44%2015.18C17.53%2016.26%2018.52%2017.05%2019.6%2017.05H21.5V18.24C21.5%2020.31%2019.81%2022%2017.74%2022H7.64C8.47%2021.27%209%2020.2%209%2019C9%2016.79%207.21%2015%205%2015C4.06%2015%203.19%2015.33%202.5%2015.88V11.51C2.5%209.44001%204.18999%207.75%206.25999%207.75H17.74C19.81%207.75%2021.5%209.44001%2021.5%2011.51V12.95H19.48C18.92%2012.95%2018.41%2013.17%2018.04%2013.55Z'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.5%2011.5096V7.83965C2.5%206.64965%203.23%205.58961%204.34%205.16961L12.28%202.16961C13.52%201.70961%2014.85%202.61963%2014.85%203.94964V7.74962'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.5588%2013.9692V16.0292C22.5588%2016.5792%2022.1188%2017.0292%2021.5588%2017.0492H19.5988C18.5188%2017.0492%2017.5288%2016.2592%2017.4388%2015.1792C17.3788%2014.5492%2017.6188%2013.9592%2018.0388%2013.5492C18.4088%2013.1692%2018.9188%2012.9492%2019.4788%2012.9492H21.5588C22.1188%2012.9692%2022.5588%2013.4192%2022.5588%2013.9692Z'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%2012H14'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9%2019C9%2020.2%208.47%2021.27%207.64%2022C6.93%2022.62%206.01%2023%205%2023C2.79%2023%201%2021.21%201%2019C1%2017.74%201.58%2016.61%202.5%2015.88C3.19%2015.33%204.06%2015%205%2015C7.21%2015%209%2016.79%209%2019Z'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25%2017.75V19.25L4%2020'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",qg="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%202V5'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M16%202V5'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M3.5%209.08984H20.5'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M21%208.5V17C21%2020%2019.5%2022%2016%2022H8C4.5%2022%203%2020%203%2017V8.5C3%205.5%204.5%203.5%208%203.5H16C19.5%203.5%2021%205.5%2021%208.5Z'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15.6937%2013.6992H15.7027'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15.6937%2016.6992H15.7027'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9945%2013.6992H12.0035'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9945%2016.6992H12.0035'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.29529%2013.6992H8.30427'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.29529%2016.6992H8.30427'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Zg="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17%2018.4297H13L8.54999%2021.3897C7.88999%2021.8297%207%2021.3598%207%2020.5598V18.4297C4%2018.4297%202%2016.4297%202%2013.4297V7.42969C2%204.42969%204%202.42969%207%202.42969H17C20%202.42969%2022%204.42969%2022%207.42969V13.4297C22%2016.4297%2020%2018.4297%2017%2018.4297Z'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9998%2011.3594V11.1494C11.9998%2010.4694%2012.4198%2010.1094%2012.8398%209.8194C13.2498%209.5394%2013.6598%209.17941%2013.6598%208.51941C13.6598%207.59941%2012.9198%206.85938%2011.9998%206.85938C11.0798%206.85938%2010.3398%207.59941%2010.3398%208.51941'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9955%2013.75H12.0045'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";function Jg(e){return _.jsx("div",{className:`overlay ${e.isMenuOpen?"overlay_active":""}`})}function e1(e){return _.jsxs(_.Fragment,{children:[_.jsx("nav",{className:`nav-burger nav-burger_${e.isMenuOpen?"active":""}`,children:_.jsxs("ul",{children:[_.jsx("li",{children:_.jsxs(xt,{className:"link",to:"/",children:[_.jsx("img",{src:Kg,alt:""}),"Главная"]})}),_.jsx("li",{children:_.jsxs(xt,{className:"link",to:"/",children:[_.jsx("img",{src:Yg,alt:""}),"Мои подписки"]})}),_.jsx("li",{children:_.jsxs(xt,{className:"link",to:"/",children:[_.jsx("img",{src:Xg,alt:""}),"История платежей"]})}),_.jsx("li",{children:_.jsxs(xt,{className:"link",to:"/",children:[" ",_.jsx("img",{src:qg,alt:""}),"Календарь"]})}),_.jsx("li",{children:_.jsxs(xt,{className:"link",to:"/",children:[_.jsx("img",{src:Zg,alt:""}),"Частые вопросы"]})})]})}),_.jsx(Jg,{isMenuOpen:e.isMenuOpen})]})}function t1(e){return _.jsxs("header",{className:"header",children:[_.jsx(Qg,{onClick:e.handleClick,isMenuOpen:e.isMenuOpen}),_.jsx(e1,{isMenuOpen:e.isMenuOpen})]})}function n1(){const[e,t]=T.useState(!1);function n(){t(!e)}return _.jsxs(_.Fragment,{children:[_.jsx(t1,{handleClick:n,isMenuOpen:e}),_.jsx("main",{children:_.jsx(I0,{})})]})}function r1(){return _.jsx("div",{children:"Error! 404 Page not found"})}const i1=[{id:"1",name:"Книги",description:"Книги по подписке",icon:"src/images/icons/books.svg"},{id:"2",name:"Музыка",description:"Музыка по подписке",icon:"src/images/icons/music.svg"},{id:"3",name:"Здоровье",description:"Здоровье по подписке",icon:"src/images/icons/heart.svg"},{id:"4",name:"Кино",description:"Кино по подписке",icon:"src/images/icons/video.svg"}],l1={availableSubscriptions:[{id:"1",name:"Подписка на 1 месяц",category:"Базовая",startDate:"01.01.2022",endDate:"01.02.2022",subscriptionType:"month",cost:100,iconBig:"src/images/cards_images/ivi_big.png",iconSquare:"src/images/cards_images/ivi_square.png"},{id:"2",name:"Подписка на 3 месяца",category:"Базовая",startDate:"01.01.2022",endDate:"01.02.2022",subscriptionType:"month",cost:200,iconBig:"src/images/cards_images/kinopoisk_big.png",iconSquare:"src/images/cards_images/oko_square.png"},{id:"3",name:"Подписка на 6 месяцов",category:"Базовая",startDate:"01.01.2022",endDate:"01.02.2022",subscriptionType:"month",cost:300,iconBig:"src/images/cards_images/plus_big.png",iconSquare:"src/images/cards_images/spotify_square.png"},{id:"3",name:"Подписка на 6 месяцов",category:"Базовая",startDate:"01.01.2022",endDate:"01.02.2022",subscriptionType:"month",cost:300,iconBig:"src/images/cards_images/plus_big.png",iconSquare:"src/images/cards_images/spotify_square.png"},{id:"3",name:"Подписка на 6 месяцов",category:"Базовая",startDate:"01.01.2022",endDate:"01.02.2022",subscriptionType:"month",cost:300,iconBig:"src/images/cards_images/plus_big.png",iconSquare:"src/images/cards_images/spotify_square.png"},{id:"3",name:"Подписка на 6 месяцов",category:"Базовая",startDate:"01.01.2022",endDate:"01.02.2022",subscriptionType:"month",cost:300,iconBig:"src/images/cards_images/plus_big.png",iconSquare:"src/images/cards_images/spotify_square.png"}]};function o1(){return _.jsx("section",{children:"AvailableServicesPage"})}function s1(){const{id:e}=w0();return _.jsx("section",{children:e})}function a1(){return _.jsx("section",{children:"PurchasePage"})}function u1(){return _.jsx("section",{children:"SuccessPurchasePage"})}function oe(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var c1=typeof Symbol=="function"&&Symbol.observable||"@@observable",Yu=c1,lo=()=>Math.random().toString(36).substring(7).split("").join("."),d1={INIT:`@@redux/INIT${lo()}`,REPLACE:`@@redux/REPLACE${lo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${lo()}`},Zi=d1;function va(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function qf(e,t,n){if(typeof e!="function")throw new Error(oe(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(oe(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(oe(1));return n(qf)(e,t)}let r=e,i=t,l=new Map,o=l,a=0,s=!1;function u(){o===l&&(o=new Map,l.forEach((S,f)=>{o.set(f,S)}))}function c(){if(s)throw new Error(oe(3));return i}function d(S){if(typeof S!="function")throw new Error(oe(4));if(s)throw new Error(oe(5));let f=!0;u();const m=a++;return o.set(m,S),function(){if(f){if(s)throw new Error(oe(6));f=!1,u(),o.delete(m),l=null}}}function p(S){if(!va(S))throw new Error(oe(7));if(typeof S.type>"u")throw new Error(oe(8));if(typeof S.type!="string")throw new Error(oe(17));if(s)throw new Error(oe(9));try{s=!0,i=r(i,S)}finally{s=!1}return(l=o).forEach(m=>{m()}),S}function v(S){if(typeof S!="function")throw new Error(oe(10));r=S,p({type:Zi.REPLACE})}function g(){const S=d;return{subscribe(f){if(typeof f!="object"||f===null)throw new Error(oe(11));function m(){const w=f;w.next&&w.next(c())}return m(),{unsubscribe:S(m)}},[Yu](){return this}}}return p({type:Zi.INIT}),{dispatch:p,subscribe:d,getState:c,replaceReducer:v,[Yu]:g}}function f1(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Zi.INIT})>"u")throw new Error(oe(12));if(typeof n(void 0,{type:Zi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(oe(13))})}function p1(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw a&&a.type,new Error(oe(14));u[d]=g,s=s||g!==v}return s=s||r.length!==Object.keys(o).length,s?u:o}}function Ji(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function h1(...e){return t=>(n,r)=>{const i=t(n,r);let l=()=>{throw new Error(oe(15))};const o={getState:i.getState,dispatch:(s,...u)=>l(s,...u)},a=e.map(s=>s(o));return l=Ji(...a)(i.dispatch),{...i,dispatch:l}}}function m1(e){return va(e)&&"type"in e&&typeof e.type=="string"}var Zf=Symbol.for("immer-nothing"),Xu=Symbol.for("immer-draftable"),ze=Symbol.for("immer-state");function Ge(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var An=Object.getPrototypeOf;function Ft(e){return!!e&&!!e[ze]}function pt(e){var t;return e?Jf(e)||Array.isArray(e)||!!e[Xu]||!!((t=e.constructor)!=null&&t[Xu])||El(e)||Cl(e):!1}var v1=Object.prototype.constructor.toString();function Jf(e){if(!e||typeof e!="object")return!1;const t=An(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===v1}function el(e,t){xl(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function xl(e){const t=e[ze];return t?t.type_:Array.isArray(e)?1:El(e)?2:Cl(e)?3:0}function ds(e,t){return xl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ep(e,t,n){const r=xl(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function g1(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function El(e){return e instanceof Map}function Cl(e){return e instanceof Set}function Qt(e){return e.copy_||e.base_}function fs(e,t){if(El(e))return new Map(e);if(Cl(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Jf(e))return An(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[ze];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=y1),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>ga(r,!0))),e}function y1(){Ge(2)}function kl(e){return Object.isFrozen(e)}var w1={};function on(e){const t=w1[e];return t||Ge(0,e),t}var Nr;function tp(){return Nr}function S1(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function qu(e,t){t&&(on("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ps(e){hs(e),e.drafts_.forEach(x1),e.drafts_=null}function hs(e){e===Nr&&(Nr=e.parent_)}function Zu(e){return Nr=S1(Nr,e)}function x1(e){const t=e[ze];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ju(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ze].modified_&&(ps(t),Ge(4)),pt(e)&&(e=tl(t,e),t.parent_||nl(t,e)),t.patches_&&on("Patches").generateReplacementPatches_(n[ze].base_,e,t.patches_,t.inversePatches_)):e=tl(t,n,[]),ps(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Zf?e:void 0}function tl(e,t,n){if(kl(t))return t;const r=t[ze];if(!r)return el(t,(i,l)=>ec(e,r,t,i,l,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return nl(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let l=i,o=!1;r.type_===3&&(l=new Set(i),i.clear(),o=!0),el(l,(a,s)=>ec(e,r,i,a,s,n,o)),nl(e,i,!1),n&&e.patches_&&on("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function ec(e,t,n,r,i,l,o){if(Ft(i)){const a=l&&t&&t.type_!==3&&!ds(t.assigned_,r)?l.concat(r):void 0,s=tl(e,i,a);if(ep(n,r,s),Ft(s))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(pt(i)&&!kl(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;tl(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&nl(e,i)}}function nl(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ga(t,n)}function E1(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:tp(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,l=ya;n&&(i=[r],l=Ir);const{revoke:o,proxy:a}=Proxy.revocable(i,l);return r.draft_=a,r.revoke_=o,a}var ya={get(e,t){if(t===ze)return e;const n=Qt(e);if(!ds(n,t))return C1(e,n,t);const r=n[t];return e.finalized_||!pt(r)?r:r===oo(e.base_,t)?(so(e),e.copy_[t]=vs(r,e)):r},has(e,t){return t in Qt(e)},ownKeys(e){return Reflect.ownKeys(Qt(e))},set(e,t,n){const r=np(Qt(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=oo(Qt(e),t),l=i==null?void 0:i[ze];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(g1(n,i)&&(n!==void 0||ds(e.base_,t)))return!0;so(e),ms(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return oo(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,so(e),ms(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Qt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ge(11)},getPrototypeOf(e){return An(e.base_)},setPrototypeOf(){Ge(12)}},Ir={};el(ya,(e,t)=>{Ir[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ir.deleteProperty=function(e,t){return Ir.set.call(this,e,t,void 0)};Ir.set=function(e,t,n){return ya.set.call(this,e[0],t,n,e[0])};function oo(e,t){const n=e[ze];return(n?Qt(n):e)[t]}function C1(e,t,n){var i;const r=np(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function np(e,t){if(!(t in e))return;let n=An(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=An(n)}}function ms(e){e.modified_||(e.modified_=!0,e.parent_&&ms(e.parent_))}function so(e){e.copy_||(e.copy_=fs(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var k1=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const l=n;n=t;const o=this;return function(s=l,...u){return o.produce(s,c=>n.call(this,c,...u))}}typeof n!="function"&&Ge(6),r!==void 0&&typeof r!="function"&&Ge(7);let i;if(pt(t)){const l=Zu(this),o=vs(t,void 0);let a=!0;try{i=n(o),a=!1}finally{a?ps(l):hs(l)}return qu(l,r),Ju(i,l)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Zf&&(i=void 0),this.autoFreeze_&&ga(i,!0),r){const l=[],o=[];on("Patches").generateReplacementPatches_(t,i,l,o),r(l,o)}return i}else Ge(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...a)=>this.produceWithPatches(o,s=>t(s,...a));let r,i;return[this.produce(t,n,(o,a)=>{r=o,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){pt(e)||Ge(8),Ft(e)&&(e=rp(e));const t=Zu(this),n=vs(e,void 0);return n[ze].isManual_=!0,hs(t),n}finishDraft(e,t){const n=e&&e[ze];(!n||!n.isManual_)&&Ge(9);const{scope_:r}=n;return qu(r,t),Ju(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=on("Patches").applyPatches_;return Ft(e)?r(e,t):this.produce(e,i=>r(i,t))}};function vs(e,t){const n=El(e)?on("MapSet").proxyMap_(e,t):Cl(e)?on("MapSet").proxySet_(e,t):E1(e,t);return(t?t.scope_:tp()).drafts_.push(n),n}function rp(e){return Ft(e)||Ge(10,e),ip(e)}function ip(e){if(!pt(e)||kl(e))return e;const t=e[ze];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=fs(e,t.scope_.immer_.useStrictShallowCopy_)}else n=fs(e,!0);return el(n,(r,i)=>{ep(n,r,ip(i))}),t&&(t.finalized_=!1),n}var Ne=new k1,lp=Ne.produce;Ne.produceWithPatches.bind(Ne);Ne.setAutoFreeze.bind(Ne);Ne.setUseStrictShallowCopy.bind(Ne);Ne.applyPatches.bind(Ne);Ne.createDraft.bind(Ne);Ne.finishDraft.bind(Ne);function T1(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function P1(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function _1(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var tc=e=>Array.isArray(e)?e:[e];function M1(e){const t=Array.isArray(e[0])?e[0]:e;return _1(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function O1(e,t){const n=[],{length:r}=e;for(let i=0;i{n=ai(),o.resetResultsCount()},o.resultsCount=()=>l,o.resetResultsCount=()=>{l=0},o}function op(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let l=0,o=0,a,s={},u=i.pop();typeof u=="object"&&(s=u,u=i.pop()),T1(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...s},{memoize:d,memoizeOptions:p=[],argsMemoize:v=wa,argsMemoizeOptions:g=[],devModeChecks:y={}}=c,S=tc(p),f=tc(g),m=M1(i),h=d(function(){return l++,u.apply(null,arguments)},...S),w=v(function(){o++;const E=O1(m,arguments);return a=h.apply(null,E),a},...f);return Object.assign(w,{resultFunc:u,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>a,recomputations:()=>l,resetRecomputations:()=>{l=0},memoize:d,argsMemoize:v})};return Object.assign(r,{withTypes:()=>r}),r}var I1=op(wa),R1=Object.assign((e,t=I1)=>{P1(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(l=>e[l]);return t(r,(...l)=>l.reduce((o,a,s)=>(o[n[s]]=a,o),{}))},{withTypes:()=>R1});function sp(e){return({dispatch:n,getState:r})=>i=>l=>typeof l=="function"?l(n,r,e):i(l)}var j1=sp(),D1=sp,A1=(...e)=>{const t=op(...e),n=Object.assign((...r)=>{const i=t(...r),l=(o,...a)=>i(Ft(o)?rp(o):o,...a);return Object.assign(l,i),l},{withTypes:()=>n});return n};A1(wa);var F1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ji:Ji.apply(null,arguments)};function Fn(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(ke(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>m1(r)&&r.type===e,n}var ap=class nr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,nr.prototype)}static get[Symbol.species](){return nr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new nr(...t[0].concat(this)):new nr(...t.concat(this))}};function rc(e){return pt(e)?lp(e,()=>{}):e}function ic(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(ke(10));const r=n.insert(t,e);return e.set(t,r),r}function $1(e){return typeof e=="boolean"}var B1=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let o=new ap;return n&&($1(n)?o.push(j1):o.push(D1(n.extraArgument))),o},V1="RTK_autoBatch",up=e=>t=>{setTimeout(t,e)},U1=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:up(10),H1=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,l=!1,o=!1;const a=new Set,s=e.type==="tick"?queueMicrotask:e.type==="raf"?U1:e.type==="callback"?e.queueNotification:up(e.timeout),u=()=>{o=!1,l&&(l=!1,a.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const d=()=>i&&c(),p=r.subscribe(d);return a.add(c),()=>{p(),a.delete(c)}},dispatch(c){var d;try{return i=!((d=c==null?void 0:c.meta)!=null&&d[V1]),l=!i,l&&(o||(o=!0,s(u))),r.dispatch(c)}finally{i=!0}}})},W1=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new ap(e);return r&&i.push(H1(typeof r=="object"?r:void 0)),i},b1=!0;function G1(e){const t=B1(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:l=void 0,enhancers:o=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(va(n))a=p1(n);else throw new Error(ke(1));let s;typeof r=="function"?s=r(t):s=t();let u=Ji;i&&(u=F1({trace:!b1,...typeof i=="object"&&i}));const c=h1(...s),d=W1(c);let p=typeof o=="function"?o(d):d();const v=u(...p);return qf(a,l,v)}function cp(e){const t={},n=[];let r;const i={addCase(l,o){const a=typeof l=="string"?l:l.type;if(!a)throw new Error(ke(28));if(a in t)throw new Error(ke(29));return t[a]=o,i},addMatcher(l,o){return n.push({matcher:l,reducer:o}),i},addDefaultCase(l){return r=l,i}};return e(i),[t,n,r]}function Q1(e){return typeof e=="function"}function K1(e,t){let[n,r,i]=cp(t),l;if(Q1(e))l=()=>rc(e());else{const a=rc(e);l=()=>a}function o(a=l(),s){let u=[n[s.type],...r.filter(({matcher:c})=>c(s)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,d)=>{if(d)if(Ft(c)){const v=d(c,s);return v===void 0?c:v}else{if(pt(c))return lp(c,p=>d(p,s));{const p=d(c,s);if(p===void 0){if(c===null)return c;throw new Error(ke(9))}return p}}return c},a)}return o.getInitialState=l,o}var Y1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",X1=(e=21)=>{let t="",n=e;for(;n--;)t+=Y1[Math.random()*64|0];return t},q1=Symbol.for("rtk-slice-createasyncthunk");function Z1(e,t){return`${e}/${t}`}function J1({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[q1];return function(i){const{name:l,reducerPath:o=l}=i;if(!l)throw new Error(ke(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(ty()):i.reducers)||{},s=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(h,w){const x=typeof h=="string"?h:h.type;if(!x)throw new Error(ke(12));if(x in u.sliceCaseReducersByType)throw new Error(ke(13));return u.sliceCaseReducersByType[x]=w,c},addMatcher(h,w){return u.sliceMatchers.push({matcher:h,reducer:w}),c},exposeAction(h,w){return u.actionCreators[h]=w,c},exposeCaseReducer(h,w){return u.sliceCaseReducersByName[h]=w,c}};s.forEach(h=>{const w=a[h],x={reducerName:h,type:Z1(l,h),createNotation:typeof i.reducers=="function"};ry(w)?ly(x,w,c,t):ny(x,w,c)});function d(){const[h={},w=[],x=void 0]=typeof i.extraReducers=="function"?cp(i.extraReducers):[i.extraReducers],E={...h,...u.sliceCaseReducersByType};return K1(i.initialState,M=>{for(let C in E)M.addCase(C,E[C]);for(let C of u.sliceMatchers)M.addMatcher(C.matcher,C.reducer);for(let C of w)M.addMatcher(C.matcher,C.reducer);x&&M.addDefaultCase(x)})}const p=h=>h,v=new Map;let g;function y(h,w){return g||(g=d()),g(h,w)}function S(){return g||(g=d()),g.getInitialState()}function f(h,w=!1){function x(M){let C=M[h];return typeof C>"u"&&w&&(C=S()),C}function E(M=p){const C=ic(v,w,{insert:()=>new WeakMap});return ic(C,M,{insert:()=>{const O={};for(const[k,N]of Object.entries(i.selectors??{}))O[k]=ey(N,M,S,w);return O}})}return{reducerPath:h,getSelectors:E,get selectors(){return E(x)},selectSlice:x}}const m={name:l,reducer:y,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:S,...f(o),injectInto(h,{reducerPath:w,...x}={}){const E=w??o;return h.inject({reducerPath:E,reducer:y},x),{...m,...f(E,!0)}}};return m}}function ey(e,t,n,r){function i(l,...o){let a=t(l);return typeof a>"u"&&r&&(a=n()),e(a,...o)}return i.unwrapped=e,i}var dp=J1();function ty(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function ny({type:e,reducerName:t,createNotation:n},r,i){let l,o;if("reducer"in r){if(n&&!iy(r))throw new Error(ke(17));l=r.reducer,o=r.prepare}else l=r;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,o?Fn(e,o):Fn(e))}function ry(e){return e._reducerDefinitionType==="asyncThunk"}function iy(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ly({type:e,reducerName:t},n,r,i){if(!i)throw new Error(ke(18));const{payloadCreator:l,fulfilled:o,pending:a,rejected:s,settled:u,options:c}=n,d=i(e,l,c);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),a&&r.addCase(d.pending,a),s&&r.addCase(d.rejected,s),u&&r.addMatcher(d.settled,u),r.exposeCaseReducer(t,{fulfilled:o||ui,pending:a||ui,rejected:s||ui,settled:u||ui})}function ui(){}var oy=(e,t)=>{if(typeof e!="function")throw new Error(ke(32))},Sa="listenerMiddleware",sy=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:l}=e;if(t)i=Fn(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(ke(21));return oy(l),{predicate:i,type:t,effect:l}},ay=Object.assign(e=>{const{type:t,predicate:n,effect:r}=sy(e);return{id:X1(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(ke(22))}}},{withTypes:()=>ay}),uy=Object.assign(Fn(`${Sa}/add`),{withTypes:()=>uy});Fn(`${Sa}/removeAll`);var cy=Object.assign(Fn(`${Sa}/remove`),{withTypes:()=>cy});function ke(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const dy={availableSubscriptions:[]},fp=dp({name:"availableSubscriptions",initialState:dy,reducers:{addAvailableSubscriptions:(e,t)=>{e.availableSubscriptions=t.payload}}}),{addAvailableSubscriptions:fy}=fp.actions,py=fp.reducer;function hy(){return _.jsx("section",{children:"CategorizedServicesPage"})}function my(){return _.jsx("section",{children:"UserServicesPage"})}const vy={subscriptionsCategories:[]},pp=dp({name:"subscriptionsCategories",initialState:vy,reducers:{addSubscriptionsCategories:(e,t)=>{e.subscriptionsCategories=t.payload}}}),{addSubscriptionsCategories:gy}=pp.actions,yy=pp.reducer;function wy(){const e=vv();return T.useEffect(()=>{e(fy(l1.availableSubscriptions)),e(gy(i1))},[e]),_.jsxs(j0,{children:[_.jsxs(qe,{path:"/",element:_.jsx(n1,{}),children:[_.jsx(qe,{index:!0,element:_.jsx(Gg,{})}),_.jsx(qe,{path:"/services/available",element:_.jsx(o1,{})}),_.jsx(qe,{path:"/services/my-services",element:_.jsx(my,{})}),_.jsx(qe,{path:"/services/category/:category",element:_.jsx(hy,{})}),_.jsx(qe,{path:"/services/:id",element:_.jsx(s1,{})}),_.jsx(qe,{path:"/purchase",element:_.jsx(a1,{})}),_.jsx(qe,{path:"/successful-purchase",element:_.jsx(u1,{})})]}),_.jsx(qe,{path:"*",element:_.jsx(r1,{})})]})}const Sy=G1({reducer:{availableSubscriptionsReducer:py,subscriptionsCategoriesReducer:yy},middleware:e=>e(),enhancers:e=>e()});uo.createRoot(document.getElementById("root")).render(_.jsx(Y.StrictMode,{children:_.jsx(fv,{store:Sy,children:_.jsx(U0,{basename:"/pay2u_hackathon_frontend",children:_.jsx(wy,{})})})})); + */var Br=T;function G0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Q0=typeof Object.is=="function"?Object.is:G0,K0=Br.useSyncExternalStore,Y0=Br.useRef,X0=Br.useEffect,q0=Br.useMemo,Z0=Br.useDebugValue;Nf.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=Y0(null);if(l.current===null){var o={hasValue:!1,value:null};l.current=o}else o=l.current;l=q0(function(){function s(v){if(!u){if(u=!0,c=v,v=r(v),i!==void 0&&o.hasValue){var g=o.value;if(i(g,v))return d=g}return d=v}if(g=d,Q0(c,v))return g;var y=r(v);return i!==void 0&&i(g,y)?g:(c=v,d=y)}var u=!1,c,d,p=n===void 0?null:n;return[function(){return s(t())},p===null?void 0:function(){return s(p())}]},[t,n,r,i]);var a=K0(e,l[0],l[1]);return X0(function(){o.hasValue=!0,o.value=a},[a]),Z0(a),a};zf.exports=Nf;var J0=zf.exports,Me="default"in ao?Y:ao,Fu=Symbol.for("react-redux-context"),$u=typeof globalThis<"u"?globalThis:{};function ev(){if(!Me.createContext)return{};const e=$u[Fu]??($u[Fu]=new Map);let t=e.get(Me.createContext);return t||(t=Me.createContext(null),e.set(Me.createContext,t)),t}var At=ev(),tv=()=>{throw new Error("uSES not initialized!")};function pa(e=At){return function(){return Me.useContext(e)}}var If=pa(),Rf=tv,nv=e=>{Rf=e},rv=(e,t)=>e===t;function iv(e=At){const t=e===At?If:pa(e),n=(r,i={})=>{const{equalityFn:l=rv,devModeChecks:o={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:s,getServerState:u,stabilityCheck:c,identityFunctionCheck:d}=t();Me.useRef(!0);const p=Me.useCallback({[r.name](g){return r(g)}}[r.name],[r,c,o.stabilityCheck]),v=Rf(s.addNestedSub,a.getState,u||a.getState,p,l);return Me.useDebugValue(v),v};return Object.assign(n,{withTypes:()=>n}),n}var lv=iv();function ov(e){e()}function sv(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ov(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Bu={notify(){},get:()=>[]};function av(e,t){let n,r=Bu,i=0,l=!1;function o(y){c();const S=r.subscribe(y);let f=!1;return()=>{f||(f=!0,S(),d())}}function a(){r.notify()}function s(){g.onStateChange&&g.onStateChange()}function u(){return l}function c(){i++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=sv())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Bu)}function p(){l||(l=!0,c())}function v(){l&&(l=!1,d())}const g={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:s,isSubscribed:u,trySubscribe:p,tryUnsubscribe:v,getListeners:()=>r};return g}var uv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cv=uv?Me.useLayoutEffect:Me.useEffect;function dv({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:l="once"}){const o=Me.useMemo(()=>{const u=av(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:l}},[e,r,i,l]),a=Me.useMemo(()=>e.getState(),[e]);cv(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,a]);const s=t||At;return Me.createElement(s.Provider,{value:o},n)}var fv=dv;function jf(e=At){const t=e===At?If:pa(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var pv=jf();function hv(e=At){const t=e===At?pv:jf(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var mv=hv();nv(J0.useSyncExternalStoreWithSelector);const vv=mv,os=lv;function Vu(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function ha(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:Vu(t[n])&&Vu(e[n])&&Object.keys(t[n]).length>0&&ha(e[n],t[n])})}const Df={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Hn(){const e=typeof document<"u"?document:{};return ha(e,Df),e}const gv={document:Df,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function je(){const e=typeof window<"u"?window:{};return ha(e,gv),e}function yv(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function wv(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function ss(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function Yi(){return Date.now()}function Sv(e){const t=je();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function xv(e,t){t===void 0&&(t="x");const n=je();let r,i,l;const o=Sv(e);return n.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(a=>a.replace(",",".")).join(", ")),l=new n.WebKitCSSMatrix(i==="none"?"":i)):(l=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=l.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=l.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=l.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function oi(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Ev(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Pe(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;nt.indexOf(l)<0);for(let l=0,o=i.length;ll?"next":"prev",c=(p,v)=>u==="next"&&p>=v||u==="prev"&&p<=v,d=()=>{a=new Date().getTime(),o===null&&(o=a);const p=Math.max(Math.min((a-o)/s,1),0),v=.5-Math.cos(p*Math.PI)/2;let g=l+v*(n-l);if(c(g,n)&&(g=n),t.wrapperEl.scrollTo({[r]:g}),c(g,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:g})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(d)};d()}function st(e,t){return t===void 0&&(t=""),[...e.children].filter(n=>n.matches(t))}function Xi(e){try{console.warn(e);return}catch{}}function as(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:yv(t)),n}function Cv(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function kv(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Tt(e,t){return je().getComputedStyle(e,null).getPropertyValue(t)}function Uu(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Tv(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Hu(e,t,n){const r=je();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let Jl;function Pv(){const e=je(),t=Hn();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Ff(){return Jl||(Jl=Pv()),Jl}let eo;function _v(e){let{userAgent:t}=e===void 0?{}:e;const n=Ff(),r=je(),i=r.navigator.platform,l=t||r.navigator.userAgent,o={ios:!1,android:!1},a=r.screen.width,s=r.screen.height,u=l.match(/(Android);?[\s\/]+([\d.]+)?/);let c=l.match(/(iPad).*OS\s([\d_]+)/);const d=l.match(/(iPod)(.*OS\s([\d_]+))?/),p=!c&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v=i==="Win32";let g=i==="MacIntel";const y=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&g&&n.touch&&y.indexOf(`${a}x${s}`)>=0&&(c=l.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),g=!1),u&&!v&&(o.os="android",o.android=!0),(c||p||d)&&(o.os="ios",o.ios=!0),o}function $f(e){return e===void 0&&(e={}),eo||(eo=_v(e)),eo}let to;function Mv(){const e=je(),t=$f();let n=!1;function r(){const a=e.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(r()){const a=String(e.navigator.userAgent);if(a.includes("Version/")){const[s,u]=a.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));n=s<16||s===16&&u<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),l=r(),o=l||i&&t.ios;return{isSafari:n||l,needPerspectiveFix:n,need3dFix:o,isWebView:i}}function Ov(){return to||(to=Mv()),to}function Lv(e){let{swiper:t,on:n,emit:r}=e;const i=je();let l=null,o=null;const a=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},s=()=>{!t||t.destroyed||!t.initialized||(l=new ResizeObserver(d=>{o=i.requestAnimationFrame(()=>{const{width:p,height:v}=t;let g=p,y=v;d.forEach(S=>{let{contentBoxSize:f,contentRect:m,target:h}=S;h&&h!==t.el||(g=m?m.width:(f[0]||f).inlineSize,y=m?m.height:(f[0]||f).blockSize)}),(g!==p||y!==v)&&a()})}),l.observe(t.el))},u=()=>{o&&i.cancelAnimationFrame(o),l&&l.unobserve&&t.el&&(l.unobserve(t.el),l=null)},c=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof i.ResizeObserver<"u"){s();return}i.addEventListener("resize",a),i.addEventListener("orientationchange",c)}),n("destroy",()=>{u(),i.removeEventListener("resize",a),i.removeEventListener("orientationchange",c)})}function zv(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const l=[],o=je(),a=function(c,d){d===void 0&&(d={});const p=o.MutationObserver||o.WebkitMutationObserver,v=new p(g=>{if(t.__preventObserver__)return;if(g.length===1){i("observerUpdate",g[0]);return}const y=function(){i("observerUpdate",g[0])};o.requestAnimationFrame?o.requestAnimationFrame(y):o.setTimeout(y,0)});v.observe(c,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:typeof d.childList>"u"?!0:d.childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),l.push(v)},s=()=>{if(t.params.observer){if(t.params.observeParents){const c=Tv(t.hostEl);for(let d=0;d{l.forEach(c=>{c.disconnect()}),l.splice(0,l.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",s),r("destroy",u)}var Nv={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(l=>{r.eventsListeners[l]||(r.eventsListeners[l]=[]),r.eventsListeners[l][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var l=arguments.length,o=new Array(l),a=0;a=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,l)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(l,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var i=arguments.length,l=new Array(i),o=0;o{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(u=>{u.apply(r,[s,...n])}),e.eventsListeners&&e.eventsListeners[s]&&e.eventsListeners[s].forEach(u=>{u.apply(r,n)})}),e}};function Iv(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Tt(r,"padding-left")||0,10)-parseInt(Tt(r,"padding-right")||0,10),n=n-parseInt(Tt(r,"padding-top")||0,10)-parseInt(Tt(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function Rv(){const e=this;function t(k,N){return parseFloat(k.getPropertyValue(e.getDirectionLabel(N))||0)}const n=e.params,{wrapperEl:r,slidesEl:i,size:l,rtlTranslate:o,wrongRTL:a}=e,s=e.virtual&&n.virtual.enabled,u=s?e.virtual.slides.length:e.slides.length,c=st(i,`.${e.params.slideClass}, swiper-slide`),d=s?e.virtual.slides.length:c.length;let p=[];const v=[],g=[];let y=n.slidesOffsetBefore;typeof y=="function"&&(y=n.slidesOffsetBefore.call(e));let S=n.slidesOffsetAfter;typeof S=="function"&&(S=n.slidesOffsetAfter.call(e));const f=e.snapGrid.length,m=e.slidesGrid.length;let h=n.spaceBetween,w=-y,x=0,E=0;if(typeof l>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*l:typeof h=="string"&&(h=parseFloat(h)),e.virtualSize=-h,c.forEach(k=>{o?k.style.marginLeft="":k.style.marginRight="",k.style.marginBottom="",k.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(si(r,"--swiper-centered-offset-before",""),si(r,"--swiper-centered-offset-after",""));const M=n.grid&&n.grid.rows>1&&e.grid;M?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let C;const O=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(k=>typeof n.breakpoints[k].slidesPerView<"u").length>0;for(let k=0;k1&&p.push(e.virtualSize-l)}if(s&&n.loop){const k=g[0]+h;if(n.slidesPerGroup>1){const N=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),D=k*n.slidesPerGroup;for(let R=0;R!n.cssMode||n.loop?!0:D!==c.length-1).forEach(N=>{N.style[k]=`${h}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let k=0;g.forEach(D=>{k+=D+(h||0)}),k-=h;const N=k-l;p=p.map(D=>D<=0?-y:D>N?N+S:D)}if(n.centerInsufficientSlides){let k=0;if(g.forEach(N=>{k+=N+(h||0)}),k-=h,k{p[R]=D-N}),v.forEach((D,R)=>{v[R]=D+N})}}if(Object.assign(e,{slides:c,snapGrid:p,slidesGrid:v,slidesSizesGrid:g}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){si(r,"--swiper-centered-offset-before",`${-p[0]}px`),si(r,"--swiper-centered-offset-after",`${e.size/2-g[g.length-1]/2}px`);const k=-e.snapGrid[0],N=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(D=>D+k),e.slidesGrid=e.slidesGrid.map(D=>D+N)}if(d!==u&&e.emit("slidesLengthChange"),p.length!==f&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),v.length!==m&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!s&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const k=`${n.containerModifierClass}backface-hidden`,N=e.el.classList.contains(k);d<=n.maxBackfaceHiddenSlides?N||e.el.classList.add(k):N&&e.el.classList.remove(k)}}function jv(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,l;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const o=a=>r?t.slides[t.getSlideIndexByData(a)]:t.slides[a];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(a=>{n.push(a)});else for(l=0;lt.slides.length&&!r)break;n.push(o(a))}else n.push(o(t.activeIndex));for(l=0;li?a:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function Dv(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r"u"&&t.updateSlidesOffset();let o=-e;i&&(o=e),r.forEach(s=>{s.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:typeof a=="string"&&(a=parseFloat(a));for(let s=0;s=0&&v<=t.size-t.slidesSizesGrid[s];(v>=0&&v1&&g<=t.size||v<=0&&g>=t.size)&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(s),r[s].classList.add(n.slideVisibleClass)),y&&r[s].classList.add(n.slideFullyVisibleClass),u.progress=i?-d:d,u.originalProgress=i?-p:p}}function Fv(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:l,isEnd:o,progressLoop:a}=t;const s=l,u=o;if(r===0)i=0,l=!0,o=!0;else{i=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;l=c||i<=0,o=d||i>=1,c&&(i=0),d&&(i=1)}if(n.loop){const c=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),p=t.slidesGrid[c],v=t.slidesGrid[d],g=t.slidesGrid[t.slidesGrid.length-1],y=Math.abs(e);y>=p?a=(y-p)/g:a=(y+g-v)/g,a>1&&(a-=1)}Object.assign(t,{progress:i,progressLoop:a,isBeginning:l,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),l&&!s&&t.emit("reachBeginning toEdge"),o&&!u&&t.emit("reachEnd toEdge"),(s&&!l||u&&!o)&&t.emit("fromEdge"),t.emit("progress",i)}function $v(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,l=e.virtual&&n.virtual.enabled,o=e.grid&&n.grid&&n.grid.rows>1,a=d=>st(r,`.${n.slideClass}${d}, swiper-slide${d}`)[0];t.forEach(d=>{d.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let s,u,c;if(l)if(n.loop){let d=i-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),s=a(`[data-swiper-slide-index="${d}"]`)}else s=a(`[data-swiper-slide-index="${i}"]`);else o?(s=t.filter(d=>d.column===i)[0],c=t.filter(d=>d.column===i+1)[0],u=t.filter(d=>d.column===i-1)[0]):s=t[i];s&&(s.classList.add(n.slideActiveClass),o?(c&&c.classList.add(n.slideNextClass),u&&u.classList.add(n.slidePrevClass)):(c=kv(s,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c&&(c=t[0]),c&&c.classList.add(n.slideNextClass),u=Cv(s,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u===0&&(u=t[t.length-1]),u&&u.classList.add(n.slidePrevClass))),e.emitSlidesClasses()}const Ei=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let i=r.querySelector(`.${e.params.lazyPreloaderClass}`);!i&&e.isElement&&(r.shadowRoot?i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},no=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},us=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const o=i,a=[o-t];a.push(...Array.from({length:t}).map((s,u)=>o+r+u)),e.slides.forEach((s,u)=>{a.includes(s.column)&&no(e,u)});return}const l=i+r-1;if(e.params.rewind||e.params.loop)for(let o=i-t;o<=l+t;o+=1){const a=(o%n+n)%n;(al)&&no(e,a)}else for(let o=Math.max(i-t,0);o<=Math.min(l+t,n-1);o+=1)o!==i&&(o>l||o=t[l]&&r=t[l]&&r=t[l]&&(i=l);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function Vv(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:l,realIndex:o,snapIndex:a}=t;let s=e,u;const c=v=>{let g=v-t.virtual.slidesBefore;return g<0&&(g=t.virtual.slides.length+g),g>=t.virtual.slides.length&&(g-=t.virtual.slides.length),g};if(typeof s>"u"&&(s=Bv(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const v=Math.min(i.slidesPerGroupSkip,s);u=v+Math.floor((s-v)/i.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),s===l&&!t.params.loop){u!==a&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(s===l&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(s);return}const d=t.grid&&i.grid&&i.grid.rows>1;let p;if(t.virtual&&i.virtual.enabled&&i.loop)p=c(s);else if(d){const v=t.slides.filter(y=>y.column===s)[0];let g=parseInt(v.getAttribute("data-swiper-slide-index"),10);Number.isNaN(g)&&(g=Math.max(t.slides.indexOf(v),0)),p=Math.floor(g/i.grid.rows)}else if(t.slides[s]){const v=t.slides[s].getAttribute("data-swiper-slide-index");v?p=parseInt(v,10):p=s}else p=s;Object.assign(t,{previousSnapIndex:a,snapIndex:u,previousRealIndex:o,realIndex:p,previousIndex:l,activeIndex:s}),t.initialized&&us(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==p&&t.emit("realIndexChange"),t.emit("slideChange"))}function Uv(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(a=>{!i&&a.matches&&a.matches(`.${r.slideClass}, swiper-slide`)&&(i=a)});let l=!1,o;if(i){for(let a=0;as?c=s:r&&eo?a="next":l=s.length&&(S=s.length-1);const f=-s[S];if(a.normalizeSlideIndex)for(let h=0;h=x&&w=x&&w=x&&(o=h)}if(l.initialized&&o!==d&&(!l.allowSlideNext&&(p?f>l.translate&&f>l.minTranslate():fl.translate&&f>l.maxTranslate()&&(d||0)!==o))return!1;o!==(c||0)&&n&&l.emit("beforeSlideChangeStart"),l.updateProgress(f);let m;if(o>d?m="next":o0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{v[h?"scrollLeft":"scrollTop"]=w})):v[h?"scrollLeft":"scrollTop"]=w,x&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return Af({swiper:l,targetPosition:w,side:h?"left":"top"}),!0;v.scrollTo({[h?"left":"top"]:w,behavior:"smooth"})}return!0}return l.setTransition(t),l.setTranslate(f),l.updateActiveIndex(o),l.updateSlidesClasses(),l.emit("beforeTransitionStart",t,r),l.transitionStart(n,m),t===0?l.transitionEnd(n,m):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(w){!l||l.destroyed||w.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(n,m))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function tg(e,t,n,r){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;const l=i.grid&&i.params.grid&&i.params.grid.rows>1;let o=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)o=o+i.virtual.slidesBefore;else{let a;if(l){const p=o*i.params.grid.rows;a=i.slides.filter(v=>v.getAttribute("data-swiper-slide-index")*1===p)[0].column}else a=i.getSlideIndexByData(o);const s=l?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:u}=i.params;let c=i.params.slidesPerView;c==="auto"?c=i.slidesPerViewDynamic():(c=Math.ceil(parseFloat(i.params.slidesPerView,10)),u&&c%2===0&&(c=c+1));let d=s-av.getAttribute("data-swiper-slide-index")*1===p)[0].column}else o=i.getSlideIndexByData(o)}return requestAnimationFrame(()=>{i.slideTo(o,t,n,r)}),i}function ng(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);const r=this,{enabled:i,params:l,animating:o}=r;if(!i||r.destroyed)return r;let a=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const s=r.activeIndex{r.slideTo(r.activeIndex+s,e,t,n)}),!0}return l.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+s,e,t,n)}function rg(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);const r=this,{params:i,snapGrid:l,slidesGrid:o,rtlTranslate:a,enabled:s,animating:u}=r;if(!s||r.destroyed)return r;const c=r.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=a?r.translate:-r.translate;function p(f){return f<0?-Math.floor(Math.abs(f)):Math.floor(f)}const v=p(d),g=l.map(f=>p(f));let y=l[g.indexOf(v)-1];if(typeof y>"u"&&i.cssMode){let f;l.forEach((m,h)=>{v>=m&&(f=h)}),typeof f<"u"&&(y=l[f>0?f-1:f])}let S=0;if(typeof y<"u"&&(S=o.indexOf(y),S<0&&(S=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(S=S-r.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),i.rewind&&r.isBeginning){const f=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(f,e,t,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(S,e,t,n)}),!0;return r.slideTo(S,e,t,n)}function ig(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);const r=this;if(!r.destroyed)return r.slideTo(r.activeIndex,e,t,n)}function lg(e,t,n,r){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),r===void 0&&(r=.5);const i=this;if(i.destroyed)return;let l=i.activeIndex;const o=Math.min(i.params.slidesPerGroupSkip,l),a=o+Math.floor((l-o)/i.params.slidesPerGroup),s=i.rtlTranslate?i.translate:-i.translate;if(s>=i.snapGrid[a]){const u=i.snapGrid[a],c=i.snapGrid[a+1];s-u>(c-u)*r&&(l+=i.params.slidesPerGroup)}else{const u=i.snapGrid[a-1],c=i.snapGrid[a];s-u<=(c-u)*r&&(l-=i.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,i.slidesGrid.length-1),i.slideTo(l,e,t,n)}function og(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,l;const o=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;l=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?ie.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=e.getSlideIndex(st(n,`${o}[data-swiper-slide-index="${l}"]`)[0]),ss(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(st(n,`${o}[data-swiper-slide-index="${l}"]`)[0]),ss(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var sg={slideTo:eg,slideToLoop:tg,slideNext:ng,slidePrev:rg,slideReset:ig,slideToClosest:lg,slideToClickedSlide:og};function ag(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const i=()=>{st(r,`.${n.slideClass}, swiper-slide`).forEach((d,p)=>{d.setAttribute("data-swiper-slide-index",p)})},l=t.grid&&n.grid&&n.grid.rows>1,o=n.slidesPerGroup*(l?n.grid.rows:1),a=t.slides.length%o!==0,s=l&&t.slides.length%n.grid.rows!==0,u=c=>{for(let d=0;d1;u.length"u"?l=s.getSlideIndex(u.filter(R=>R.classList.contains(v.slideActiveClass))[0]):x=l;const E=r==="next"||!r,M=r==="prev"||!r;let C=0,O=0;const k=m?Math.ceil(u.length/v.grid.rows):u.length,D=(m?u[l].column:l)+(g&&typeof i>"u"?-y/2+.5:0);if(D=0;ye-=1)u[ye].column===te&&h.push(ye)}else h.push(k-H-1)}}else if(D+y>k-f){O=Math.max(D-(k-f*2),S);for(let R=0;R{te.column===H&&w.push(ye)}):w.push(H)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),M&&h.forEach(R=>{u[R].swiperLoopMoveDOM=!0,p.prepend(u[R]),u[R].swiperLoopMoveDOM=!1}),E&&w.forEach(R=>{u[R].swiperLoopMoveDOM=!0,p.append(u[R]),u[R].swiperLoopMoveDOM=!1}),s.recalcSlides(),v.slidesPerView==="auto"?s.updateSlides():m&&(h.length>0&&M||w.length>0&&E)&&s.slides.forEach((R,H)=>{s.grid.updateSlide(H,R,s.slides)}),v.watchSlidesProgress&&s.updateSlidesOffset(),n){if(h.length>0&&M){if(typeof t>"u"){const R=s.slidesGrid[x],te=s.slidesGrid[x+C]-R;a?s.setTranslate(s.translate-te):(s.slideTo(x+Math.ceil(C),0,!1,!0),i&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-te,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-te))}else if(i){const R=m?h.length/v.grid.rows:h.length;s.slideTo(s.activeIndex+R,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(w.length>0&&E)if(typeof t>"u"){const R=s.slidesGrid[x],te=s.slidesGrid[x-O]-R;a?s.setTranslate(s.translate-te):(s.slideTo(x-O,0,!1,!0),i&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-te,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-te))}else{const R=m?w.length/v.grid.rows:w.length;s.slideTo(s.activeIndex-R,0,!1,!0)}}if(s.allowSlidePrev=c,s.allowSlideNext=d,s.controller&&s.controller.control&&!o){const R={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:l,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(H=>{!H.destroyed&&H.params.loop&&H.loopFix({...R,slideTo:H.params.slidesPerView===v.slidesPerView?n:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...R,slideTo:s.controller.control.params.slidesPerView===v.slidesPerView?n:!1})}s.emit("loopFix")}function cg(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const l=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[l]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var dg={loopCreate:ag,loopFix:ug,loopDestroy:cg};function fg(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function pg(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var hg={setGrabCursor:fg,unsetGrabCursor:pg};function mg(e,t){t===void 0&&(t=this);function n(r){if(!r||r===Hn()||r===je())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function Wu(e,t,n){const r=je(),{params:i}=e,l=i.edgeSwipeDetection,o=i.edgeSwipeThreshold;return l&&(n<=o||n>=r.innerWidth-o)?l==="prevent"?(t.preventDefault(),!0):!1:!0}function vg(e){const t=this,n=Hn();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if(r.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){Wu(t,r,r.targetTouches[0].pageX);return}const{params:l,touches:o,enabled:a}=t;if(!a||!l.simulateTouch&&r.pointerType==="mouse"||t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let s=r.target;if(l.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(s)||"which"in r&&r.which===3||"button"in r&&r.button>0||i.isTouched&&i.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",c=r.composedPath?r.composedPath():r.path;u&&r.target&&r.target.shadowRoot&&c&&(s=c[0]);const d=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,p=!!(r.target&&r.target.shadowRoot);if(l.noSwiping&&(p?mg(d,s):s.closest(d))){t.allowClick=!0;return}if(l.swipeHandler&&!s.closest(l.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;const v=o.currentX,g=o.currentY;if(!Wu(t,r,v))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=v,o.startY=g,i.touchStartTime=Yi(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(i.allowThresholdMove=!1);let y=!0;s.matches(i.focusableElements)&&(y=!1,s.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==s&&n.activeElement.blur();const S=y&&t.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||S)&&!s.isContentEditable&&r.preventDefault(),l.freeMode&&l.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function gg(e){const t=Hn(),n=this,r=n.touchEventsData,{params:i,touches:l,rtlTranslate:o,enabled:a}=n;if(!a||!i.simulateTouch&&e.pointerType==="mouse")return;let s=e;if(s.originalEvent&&(s=s.originalEvent),s.type==="pointermove"&&(r.touchId!==null||s.pointerId!==r.pointerId))return;let u;if(s.type==="touchmove"){if(u=[...s.changedTouches].filter(E=>E.identifier===r.touchId)[0],!u||u.identifier!==r.touchId)return}else u=s;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",s);return}const c=u.pageX,d=u.pageY;if(s.preventedByNestedSwiper){l.startX=c,l.startY=d;return}if(!n.allowTouchMove){s.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(l,{startX:c,startY:d,currentX:c,currentY:d}),r.touchStartTime=Yi());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(dl.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(cl.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&s.target===t.activeElement&&s.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",s),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=c,l.currentY=d;const p=l.currentX-l.startX,v=l.currentY-l.startY;if(n.params.threshold&&Math.sqrt(p**2+v**2)"u"){let E;n.isHorizontal()&&l.currentY===l.startY||n.isVertical()&&l.currentX===l.startX?r.isScrolling=!1:p*p+v*v>=25&&(E=Math.atan2(Math.abs(v),Math.abs(p))*180/Math.PI,r.isScrolling=n.isHorizontal()?E>i.touchAngle:90-E>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",s),typeof r.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(r.startMoving=!0),r.isScrolling){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&s.cancelable&&s.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&s.stopPropagation();let g=n.isHorizontal()?p:v,y=n.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;i.oneWayMovement&&(g=Math.abs(g)*(o?1:-1),y=Math.abs(y)*(o?1:-1)),l.diff=g,g*=i.touchRatio,o&&(g=-g,y=-y);const S=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=y>0?"prev":"next";const f=n.params.loop&&!i.cssMode,m=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(f&&m&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const E=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(E)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",s)}let h;if(new Date().getTime(),r.isMoved&&r.allowThresholdMove&&S!==n.touchesDirection&&f&&m&&Math.abs(g)>=1){Object.assign(l,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",s),r.isMoved=!0,r.currentTranslate=g+r.startTranslate;let w=!0,x=i.resistanceRatio;if(i.touchReleaseOnEdges&&(x=0),g>0?(f&&m&&!h&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(w=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+g)**x))):g<0&&(f&&m&&!h&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(g)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,r.currentTranslate=r.startTranslate,l.diff=n.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function yg(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let i;if(r.type==="touchend"||r.type==="touchcancel"){if(i=[...r.changedTouches].filter(x=>x.identifier===n.touchId)[0],!i||i.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:s,slidesGrid:u,enabled:c}=t;if(!c||!o.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}o.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=Yi(),p=d-n.touchStartTime;if(t.allowClick){const x=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(x&&x[0]||r.target,x),t.emit("tap click",r),p<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=Yi(),ss(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||a.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let v;if(o.followFinger?v=s?t.translate:-t.translate:v=-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:v});return}const g=v>=-t.maxTranslate()&&!t.params.loop;let y=0,S=t.slidesSizesGrid[0];for(let x=0;x=u[x]&&v=u[x])&&(y=x,S=u[u.length-1]-u[u.length-2])}let f=null,m=null;o.rewind&&(t.isBeginning?m=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(f=0));const h=(v-u[y])/S,w=yo.longSwipesMs){if(!o.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(h>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?f:y+w):t.slideTo(y)),t.swipeDirection==="prev"&&(h>1-o.longSwipesRatio?t.slideTo(y+w):m!==null&&h<0&&Math.abs(h)>o.longSwipesRatio?t.slideTo(m):t.slideTo(y))}else{if(!o.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(y+w):t.slideTo(y):(t.swipeDirection==="next"&&t.slideTo(f!==null?f:y+w),t.swipeDirection==="prev"&&t.slideTo(m!==null?m:y))}}function bu(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:l}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=o&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&l!==e.snapGrid&&e.checkOverflow()}function wg(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Sg(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const l=e.maxTranslate()-e.minTranslate();l===0?i=0:i=(e.translate-e.minTranslate())/l,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function xg(e){const t=this;Ei(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function Eg(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Vf=(e,t)=>{const n=Hn(),{params:r,el:i,wrapperEl:l,device:o}=e,a=!!r.nested,s=t==="on"?"addEventListener":"removeEventListener",u=t;n[s]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),i[s]("touchstart",e.onTouchStart,{passive:!1}),i[s]("pointerdown",e.onTouchStart,{passive:!1}),n[s]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[s]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[s]("touchend",e.onTouchEnd,{passive:!0}),n[s]("pointerup",e.onTouchEnd,{passive:!0}),n[s]("pointercancel",e.onTouchEnd,{passive:!0}),n[s]("touchcancel",e.onTouchEnd,{passive:!0}),n[s]("pointerout",e.onTouchEnd,{passive:!0}),n[s]("pointerleave",e.onTouchEnd,{passive:!0}),n[s]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[s]("click",e.onClick,!0),r.cssMode&&l[s]("scroll",e.onScroll),r.updateOnWindowResize?e[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",bu,!0):e[u]("observerUpdate",bu,!0),i[s]("load",e.onLoad,{capture:!0})};function Cg(){const e=this,{params:t}=e;e.onTouchStart=vg.bind(e),e.onTouchMove=gg.bind(e),e.onTouchEnd=yg.bind(e),e.onDocumentTouchStart=Eg.bind(e),t.cssMode&&(e.onScroll=Sg.bind(e)),e.onClick=wg.bind(e),e.onLoad=xg.bind(e),Vf(e,"on")}function kg(){Vf(this,"off")}var Tg={attachEvents:Cg,detachEvents:kg};const Gu=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Pg(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,l=r.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const o=e.getBreakpoint(l,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const s=(o in l?l[o]:void 0)||e.originalParams,u=Gu(e,r),c=Gu(e,s),d=r.enabled;u&&!c?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(i.classList.add(`${r.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill==="column"||!s.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(f=>{if(typeof s[f]>"u")return;const m=r[f]&&r[f].enabled,h=s[f]&&s[f].enabled;m&&!h&&e[f].disable(),!m&&h&&e[f].enable()});const p=s.direction&&s.direction!==r.direction,v=r.loop&&(s.slidesPerView!==r.slidesPerView||p),g=r.loop;p&&n&&e.changeDirection(),Pe(e.params,s);const y=e.params.enabled,S=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!y?e.disable():!d&&y&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",s),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!g&&S?(e.loopCreate(t),e.updateSlides()):g&&!S&&e.loopDestroy()),e.emit("breakpoint",s)}function _g(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const i=je(),l=t==="window"?i.innerHeight:n.clientHeight,o=Object.keys(e).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const s=parseFloat(a.substr(1));return{value:l*s,point:a}}return{value:a,point:a}});o.sort((a,s)=>parseInt(a.value,10)-parseInt(s.value,10));for(let a=0;a{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function Lg(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:l}=e,o=Og(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.classList.add(...t),e.emitContainerClasses()}function zg(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}var Ng={addClasses:Lg,removeClasses:zg};function Ig(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,l=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>l}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var Rg={checkOverflow:Ig},cs={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function jg(e,t){return function(r){r===void 0&&(r={});const i=Object.keys(r)[0],l=r[i];if(typeof l!="object"||l===null){Pe(t,r);return}if(e[i]===!0&&(e[i]={enabled:!0}),i==="navigation"&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),!(i in e&&"enabled"in l)){Pe(t,r);return}typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),Pe(t,r)}}const ro={eventsEmitter:Nv,update:Hv,translate:Yv,transition:Jv,slide:sg,loop:dg,grabCursor:hg,events:Tg,breakpoints:Mg,checkOverflow:Rg,classes:Ng},io={};let ma=class nt{constructor(){let t,n;for(var r=arguments.length,i=new Array(r),l=0;l1){const c=[];return o.querySelectorAll(n.el).forEach(d=>{const p=Pe({},n,{el:d});c.push(new nt(p))}),c}const a=this;a.__swiper__=!0,a.support=Ff(),a.device=$f({userAgent:n.userAgent}),a.browser=Ov(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],n.modules&&Array.isArray(n.modules)&&a.modules.push(...n.modules);const s={};a.modules.forEach(c=>{c({params:n,swiper:a,extendParams:jg(n,s),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const u=Pe({},cs,s);return a.params=Pe({},u,io,n),a.originalParams=Pe({},a.params),a.passedParams=Pe({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach(c=>{a.on(c,a.params.on[c])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=st(n,`.${r.slideClass}, swiper-slide`),l=Uu(i[0]);return Uu(t)-l}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=st(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),o=(r.maxTranslate()-i)*t+i;r.translateTo(o,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:i,slides:l,slidesGrid:o,slidesSizesGrid:a,size:s,activeIndex:u}=r;let c=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let d=l[u]?Math.ceil(l[u].swiperSlideSize):0,p;for(let v=u+1;vs&&(p=!0));for(let v=u-1;v>=0;v-=1)l[v]&&!p&&(d+=l[v].swiperSlideSize,c+=1,d>s&&(p=!0))}else if(t==="current")for(let d=u+1;d=0;d-=1)o[u]-o[d]{o.complete&&Ei(t,o)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const o=t.rtlTranslate?t.translate*-1:t.translate,a=Math.min(Math.max(o,t.maxTranslate()),t.minTranslate());t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}let l;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const o=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;l=t.slideTo(o.length-1,0,!1,!0)}else l=t.slideTo(t.activeIndex,0,!1,!0);l||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(l=>{t==="vertical"?l.style.width="":l.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):st(r,i())[0];return!o&&n.params.createElements&&(o=as("div",n.params.wrapperClass),r.append(o),st(r,`.${n.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(n,{el:r,wrapperEl:o,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:o,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Tt(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Tt(r,"direction")==="rtl"),wrongRTL:Tt(o,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const i=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&i.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(l=>{l.complete?Ei(n,l):l.addEventListener("load",o=>{Ei(n,o.target)})}),us(n),n.initialized=!0,us(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:i,el:l,wrapperEl:o,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),l.removeAttribute("style"),o.removeAttribute("style"),a&&a.length&&a.forEach(s=>{s.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),s.removeAttribute("style"),s.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(s=>{r.off(s)}),t!==!1&&(r.el.swiper=null,wv(r)),r.destroyed=!0),null}static extendDefaults(t){Pe(io,t)}static get extendedDefaults(){return io}static get defaults(){return cs}static installModule(t){nt.prototype.__modules__||(nt.prototype.__modules__=[]);const n=nt.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>nt.installModule(n)),nt):(nt.installModule(t),nt)}};Object.keys(ro).forEach(e=>{Object.keys(ro[e]).forEach(t=>{ma.prototype[t]=ro[e][t]})});ma.use([Lv,zv]);const Uf=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function ln(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function On(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:ln(t[r])&&ln(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:On(e[r],t[r]):e[r]=t[r]})}function Hf(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Wf(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function bf(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function Gf(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function Dg(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function Ag(e){let{swiper:t,slides:n,passedParams:r,changedParams:i,nextEl:l,prevEl:o,scrollbarEl:a,paginationEl:s}=e;const u=i.filter(O=>O!=="children"&&O!=="direction"&&O!=="wrapperClass"),{params:c,pagination:d,navigation:p,scrollbar:v,virtual:g,thumbs:y}=t;let S,f,m,h,w,x,E,M;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(S=!0),i.includes("controller")&&r.controller&&r.controller.control&&c.controller&&!c.controller.control&&(f=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||s)&&(c.pagination||c.pagination===!1)&&d&&!d.el&&(m=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||a)&&(c.scrollbar||c.scrollbar===!1)&&v&&!v.el&&(h=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||o)&&(r.navigation.nextEl||l)&&(c.navigation||c.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(w=!0);const C=O=>{t[O]&&(t[O].destroy(),O==="navigation"?(t.isElement&&(t[O].prevEl.remove(),t[O].nextEl.remove()),c[O].prevEl=void 0,c[O].nextEl=void 0,t[O].prevEl=void 0,t[O].nextEl=void 0):(t.isElement&&t[O].el.remove(),c[O].el=void 0,t[O].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!r.loop?x=!0:!c.loop&&r.loop?E=!0:M=!0),u.forEach(O=>{if(ln(c[O])&&ln(r[O]))Object.assign(c[O],r[O]),(O==="navigation"||O==="pagination"||O==="scrollbar")&&"enabled"in r[O]&&!r[O].enabled&&C(O);else{const k=r[O];(k===!0||k===!1)&&(O==="navigation"||O==="pagination"||O==="scrollbar")?k===!1&&C(O):c[O]=r[O]}}),u.includes("controller")&&!f&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&n&&g&&c.virtual.enabled?(g.slides=n,g.update(!0)):i.includes("virtual")&&g&&c.virtual.enabled&&(n&&(g.slides=n),g.update(!0)),i.includes("children")&&n&&c.loop&&(M=!0),S&&y.init()&&y.update(!0),f&&(t.controller.control=c.controller.control),m&&(t.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),t.el.appendChild(s)),s&&(c.pagination.el=s),d.init(),d.render(),d.update()),h&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),t.el.appendChild(a)),a&&(c.scrollbar.el=a),v.init(),v.updateSize(),v.setTranslate()),w&&(t.isElement&&((!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-next"),l.innerHTML=t.hostEl.constructor.nextButtonSvg,l.part.add("button-next"),t.el.appendChild(l)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),o.innerHTML=t.hostEl.constructor.prevButtonSvg,o.part.add("button-prev"),t.el.appendChild(o))),l&&(c.navigation.nextEl=l),o&&(c.navigation.prevEl=o),p.init(),p.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&t.changeDirection(r.direction,!1),(x||M)&&t.loopDestroy(),(E||M)&&t.loopCreate(),t.update()}function Fg(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},i={};On(n,cs),n._emitClasses=!0,n.init=!1;const l={},o=Uf.map(s=>s.replace(/_/,"")),a=Object.assign({},e);return Object.keys(a).forEach(s=>{typeof e[s]>"u"||(o.indexOf(s)>=0?ln(e[s])?(n[s]={},i[s]={},On(n[s],e[s]),On(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):s.search(/on[A-Z]/)===0&&typeof e[s]=="function"?t?r[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:n.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:l[s]=e[s])}),["navigation","pagination","scrollbar"].forEach(s=>{n[s]===!0&&(n[s]={}),n[s]===!1&&delete n[s]}),{params:n,passedParams:i,rest:l,events:r}}function $g(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:l,scrollbarEl:o,swiper:a}=e;Hf(t)&&r&&i&&(a.params.navigation.nextEl=r,a.originalParams.navigation.nextEl=r,a.params.navigation.prevEl=i,a.originalParams.navigation.prevEl=i),Wf(t)&&l&&(a.params.pagination.el=l,a.originalParams.pagination.el=l),bf(t)&&o&&(a.params.scrollbar.el=o,a.originalParams.scrollbar.el=o),a.init(n)}function Bg(e,t,n,r,i){const l=[];if(!t)return l;const o=s=>{l.indexOf(s)<0&&l.push(s)};if(n&&r){const s=r.map(i),u=n.map(i);s.join("")!==u.join("")&&o("children"),r.length!==n.length&&o("children")}return Uf.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in e&&s in t)if(ln(e[s])&&ln(t[s])){const u=Object.keys(e[s]),c=Object.keys(t[s]);u.length!==c.length?o(s):(u.forEach(d=>{e[s][d]!==t[s][d]&&o(s)}),c.forEach(d=>{e[s][d]!==t[s][d]&&o(s)}))}else e[s]!==t[s]&&o(s)}),l}const Vg=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{Qf(n)?t.push(n):n.props&&n.props.children&&Kf(n.props.children).forEach(r=>t.push(r))}),t}function Ug(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return Y.Children.toArray(e).forEach(r=>{if(Qf(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=Kf(r.props.children);i.length>0?i.forEach(l=>t.push(l)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function Hg(e,t,n){if(!n)return null;const r=c=>{let d=c;return c<0?d=t.length+c:d>=t.length&&(d=d-t.length),d},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:l,to:o}=n,a=e.params.loop?-t.length:0,s=e.params.loop?t.length*2:t.length,u=[];for(let c=a;c=l&&c<=o&&u.push(t[r(c)]);return u.map((c,d)=>Y.cloneElement(c,{swiper:e,style:i,key:c.props.virtualIndex||c.key||`slide-${d}`}))}function fr(e,t){return typeof window>"u"?T.useEffect(e,t):T.useLayoutEffect(e,t)}const Qu=T.createContext(null),Wg=T.createContext(null),Yf=T.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:l,onSwiper:o,...a}=e===void 0?{}:e,s=!1;const[u,c]=T.useState("swiper"),[d,p]=T.useState(null),[v,g]=T.useState(!1),y=T.useRef(!1),S=T.useRef(null),f=T.useRef(null),m=T.useRef(null),h=T.useRef(null),w=T.useRef(null),x=T.useRef(null),E=T.useRef(null),M=T.useRef(null),{params:C,passedParams:O,rest:k,events:N}=Fg(a),{slides:D,slots:R}=Ug(l),H=()=>{g(!v)};Object.assign(C.on,{_containerClasses(I,j){c(j)}});const te=()=>{Object.assign(C.on,N),s=!0;const I={...C};if(delete I.wrapperClass,f.current=new ma(I),f.current.virtual&&f.current.params.virtual.enabled){f.current.virtual.slides=D;const j={cache:!1,slides:D,renderExternal:p,renderExternalUpdate:!1};On(f.current.params.virtual,j),On(f.current.originalParams.virtual,j)}};S.current||te(),f.current&&f.current.on("_beforeBreakpoint",H);const ye=()=>{s||!N||!f.current||Object.keys(N).forEach(I=>{f.current.on(I,N[I])})},Ut=()=>{!N||!f.current||Object.keys(N).forEach(I=>{f.current.off(I,N[I])})};T.useEffect(()=>()=>{f.current&&f.current.off("_beforeBreakpoint",H)}),T.useEffect(()=>{!y.current&&f.current&&(f.current.emitSlidesClasses(),y.current=!0)}),fr(()=>{if(t&&(t.current=S.current),!!S.current)return f.current.destroyed&&te(),$g({el:S.current,nextEl:w.current,prevEl:x.current,paginationEl:E.current,scrollbarEl:M.current,swiper:f.current},C),o&&!f.current.destroyed&&o(f.current),()=>{f.current&&!f.current.destroyed&&f.current.destroy(!0,!1)}},[]),fr(()=>{ye();const I=Bg(O,m.current,D,h.current,j=>j.key);return m.current=O,h.current=D,I.length&&f.current&&!f.current.destroyed&&Ag({swiper:f.current,slides:D,passedParams:O,changedParams:I,nextEl:w.current,prevEl:x.current,scrollbarEl:M.current,paginationEl:E.current}),()=>{Ut()}}),fr(()=>{Vg(f.current)},[d]);function L(){return C.virtual?Hg(f.current,D,d):D.map((I,j)=>Y.cloneElement(I,{swiper:f.current,swiperSlideIndex:j}))}return Y.createElement(r,qi({ref:S,className:Gf(`${u}${n?` ${n}`:""}`)},k),Y.createElement(Wg.Provider,{value:f.current},R["container-start"],Y.createElement(i,{className:Dg(C.wrapperClass)},R["wrapper-start"],L(),R["wrapper-end"]),Hf(C)&&Y.createElement(Y.Fragment,null,Y.createElement("div",{ref:x,className:"swiper-button-prev"}),Y.createElement("div",{ref:w,className:"swiper-button-next"})),bf(C)&&Y.createElement("div",{ref:M,className:"swiper-scrollbar"}),Wf(C)&&Y.createElement("div",{ref:E,className:"swiper-pagination"}),R["container-end"]))});Yf.displayName="Swiper";const Xf=T.forwardRef(function(e,t){let{tag:n="div",children:r,className:i="",swiper:l,zoom:o,lazy:a,virtualIndex:s,swiperSlideIndex:u,...c}=e===void 0?{}:e;const d=T.useRef(null),[p,v]=T.useState("swiper-slide"),[g,y]=T.useState(!1);function S(w,x,E){x===d.current&&v(E)}fr(()=>{if(typeof u<"u"&&(d.current.swiperSlideIndex=u),t&&(t.current=d.current),!(!d.current||!l)){if(l.destroyed){p!=="swiper-slide"&&v("swiper-slide");return}return l.on("_slideClass",S),()=>{l&&l.off("_slideClass",S)}}}),fr(()=>{l&&d.current&&!l.destroyed&&v(l.getSlideClasses(d.current))},[l]);const f={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},m=()=>typeof r=="function"?r(f):r,h=()=>{y(!0)};return Y.createElement(n,qi({ref:d,className:Gf(`${p}${i?` ${i}`:""}`),"data-swiper-slide-index":s,onLoad:h},c),o&&Y.createElement(Qu.Provider,{value:f},Y.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},m(),a&&!g&&Y.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&Y.createElement(Qu.Provider,{value:f},m(),a&&!g&&Y.createElement("div",{className:"swiper-lazy-preloader"})))});Xf.displayName="SwiperSlide";function Ku(e){const t=os(n=>n.availableSubscriptionsReducer.availableSubscriptions);return _.jsxs("section",{children:[_.jsx(Lf,{title:e.title,link:e.link}),_.jsx(Yf,{tag:"ul",slidesPerView:e.slidesPerView,spaceBetween:8,className:"cards-slider",children:t.map((n,r)=>_.jsx(Xf,{tag:"li",children:_.jsx(xt,{to:`services/${n.id}`,children:_.jsx("img",{src:e.cardType==="square"?n.iconSquare:n.iconBig,alt:""})})},`card-${r}`))})]})}function bg(e){return _.jsx("ul",{className:"card-list",children:e.items.map((t,n)=>_.jsx("li",{children:_.jsxs(xt,{className:"card-list__link link",to:`/services/category/${t.id}`,children:[_.jsxs("div",{className:"card-list__title",children:[_.jsx("img",{src:t.icon,alt:""}),_.jsx("h3",{children:t.name})]}),_.jsx("p",{children:"от 99р."})]})},`category-card-${n}`))})}function Gg(){const e=os(n=>n.availableSubscriptionsReducer.availableSubscriptions),t=os(n=>n.subscriptionsCategoriesReducer.subscriptionsCategories);return _.jsxs(_.Fragment,{children:[_.jsx(Vm,{}),_.jsx(Ku,{slidesPerView:3,items:e,title:"Мои подписки",cardType:"square",link:"/services/my-services"}),_.jsx(Ku,{slidesPerView:1.8,items:e,title:"Популярное",cardType:"big",link:"/services/category/popular"}),_.jsxs("section",{children:[_.jsx(Lf,{title:"Каталог",link:"/services/available"}),_.jsx(bg,{items:t})]})]})}function Qg({onClick:e,isMenuOpen:t}){return _.jsx(_.Fragment,{children:_.jsxs("button",{onClick:e,className:`burger-btn ${t?"burger-btn_active":""}`,children:[_.jsx("span",{className:"burger-btn__bar-top"}),_.jsx("span",{className:"burger-btn__bar-mid"}),_.jsx("span",{className:"burger-btn__bar-bot"})]})})}const Kg="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.02%202.84016L3.63%207.04016C2.73%207.74016%202%209.23016%202%2010.3602V17.7702C2%2020.0902%203.89%2021.9902%206.21%2021.9902H17.79C20.11%2021.9902%2022%2020.0902%2022%2017.7802V10.5002C22%209.29016%2021.19%207.74016%2020.2%207.05016L14.02%202.72016C12.62%201.74016%2010.37%201.79016%209.02%202.84016Z'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12%2017.9902V14.9902'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Yg="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.38086%2012.0001L10.7909%2014.4201L15.6209%209.58008'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10.7489%202.45031C11.4389%201.86031%2012.5689%201.86031%2013.2689%202.45031L14.8489%203.81031C15.1489%204.07031%2015.7089%204.28031%2016.1089%204.28031H17.8089C18.8689%204.28031%2019.7389%205.15031%2019.7389%206.21031V7.91031C19.7389%208.30031%2019.9489%208.87031%2020.2089%209.17031L21.5689%2010.7503C22.1589%2011.4403%2022.1589%2012.5703%2021.5689%2013.2703L20.2089%2014.8503C19.9489%2015.1503%2019.7389%2015.7103%2019.7389%2016.1103V17.8103C19.7389%2018.8703%2018.8689%2019.7403%2017.8089%2019.7403H16.1089C15.7189%2019.7403%2015.1489%2019.9503%2014.8489%2020.2103L13.2689%2021.5703C12.5789%2022.1603%2011.4489%2022.1603%2010.7489%2021.5703L9.16891%2020.2103C8.86891%2019.9503%208.30891%2019.7403%207.90891%2019.7403H6.17891C5.11891%2019.7403%204.24891%2018.8703%204.24891%2017.8103V16.1003C4.24891%2015.7103%204.03891%2015.1503%203.78891%2014.8503L2.43891%2013.2603C1.85891%2012.5703%201.85891%2011.4503%202.43891%2010.7603L3.78891%209.17031C4.03891%208.87031%204.24891%208.31031%204.24891%207.92031V6.20031C4.24891%205.14031%205.11891%204.27031%206.17891%204.27031H7.90891C8.29891%204.27031%208.86891%204.06031%209.16891%203.80031L10.7489%202.45031Z'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Xg="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18.04%2013.55C17.62%2013.96%2017.38%2014.55%2017.44%2015.18C17.53%2016.26%2018.52%2017.05%2019.6%2017.05H21.5V18.24C21.5%2020.31%2019.81%2022%2017.74%2022H7.64C8.47%2021.27%209%2020.2%209%2019C9%2016.79%207.21%2015%205%2015C4.06%2015%203.19%2015.33%202.5%2015.88V11.51C2.5%209.44001%204.18999%207.75%206.25999%207.75H17.74C19.81%207.75%2021.5%209.44001%2021.5%2011.51V12.95H19.48C18.92%2012.95%2018.41%2013.17%2018.04%2013.55Z'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.5%2011.5096V7.83965C2.5%206.64965%203.23%205.58961%204.34%205.16961L12.28%202.16961C13.52%201.70961%2014.85%202.61963%2014.85%203.94964V7.74962'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.5588%2013.9692V16.0292C22.5588%2016.5792%2022.1188%2017.0292%2021.5588%2017.0492H19.5988C18.5188%2017.0492%2017.5288%2016.2592%2017.4388%2015.1792C17.3788%2014.5492%2017.6188%2013.9592%2018.0388%2013.5492C18.4088%2013.1692%2018.9188%2012.9492%2019.4788%2012.9492H21.5588C22.1188%2012.9692%2022.5588%2013.4192%2022.5588%2013.9692Z'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%2012H14'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9%2019C9%2020.2%208.47%2021.27%207.64%2022C6.93%2022.62%206.01%2023%205%2023C2.79%2023%201%2021.21%201%2019C1%2017.74%201.58%2016.61%202.5%2015.88C3.19%2015.33%204.06%2015%205%2015C7.21%2015%209%2016.79%209%2019Z'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25%2017.75V19.25L4%2020'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",qg="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%202V5'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M16%202V5'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M3.5%209.08984H20.5'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M21%208.5V17C21%2020%2019.5%2022%2016%2022H8C4.5%2022%203%2020%203%2017V8.5C3%205.5%204.5%203.5%208%203.5H16C19.5%203.5%2021%205.5%2021%208.5Z'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15.6937%2013.6992H15.7027'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15.6937%2016.6992H15.7027'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9945%2013.6992H12.0035'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9945%2016.6992H12.0035'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.29529%2013.6992H8.30427'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.29529%2016.6992H8.30427'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Zg="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17%2018.4297H13L8.54999%2021.3897C7.88999%2021.8297%207%2021.3598%207%2020.5598V18.4297C4%2018.4297%202%2016.4297%202%2013.4297V7.42969C2%204.42969%204%202.42969%207%202.42969H17C20%202.42969%2022%204.42969%2022%207.42969V13.4297C22%2016.4297%2020%2018.4297%2017%2018.4297Z'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9998%2011.3594V11.1494C11.9998%2010.4694%2012.4198%2010.1094%2012.8398%209.8194C13.2498%209.5394%2013.6598%209.17941%2013.6598%208.51941C13.6598%207.59941%2012.9198%206.85938%2011.9998%206.85938C11.0798%206.85938%2010.3398%207.59941%2010.3398%208.51941'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9955%2013.75H12.0045'%20stroke='%23333333'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";function Jg(e){return _.jsx("div",{className:`overlay ${e.isMenuOpen?"overlay_active":""}`})}function e1(e){return _.jsxs(_.Fragment,{children:[_.jsx("nav",{className:`nav-burger nav-burger_${e.isMenuOpen?"active":""}`,children:_.jsxs("ul",{children:[_.jsx("li",{children:_.jsxs(xt,{className:"link",to:"/",children:[_.jsx("img",{src:Kg,alt:""}),"Главная"]})}),_.jsx("li",{children:_.jsxs(xt,{className:"link",to:"/",children:[_.jsx("img",{src:Yg,alt:""}),"Мои подписки"]})}),_.jsx("li",{children:_.jsxs(xt,{className:"link",to:"/",children:[_.jsx("img",{src:Xg,alt:""}),"История платежей"]})}),_.jsx("li",{children:_.jsxs(xt,{className:"link",to:"/",children:[" ",_.jsx("img",{src:qg,alt:""}),"Календарь"]})}),_.jsx("li",{children:_.jsxs(xt,{className:"link",to:"/",children:[_.jsx("img",{src:Zg,alt:""}),"Частые вопросы"]})})]})}),_.jsx(Jg,{isMenuOpen:e.isMenuOpen})]})}function t1(e){return _.jsxs("header",{className:"header",children:[_.jsx(Qg,{onClick:e.handleClick,isMenuOpen:e.isMenuOpen}),_.jsx(e1,{isMenuOpen:e.isMenuOpen})]})}function n1(){const[e,t]=T.useState(!1);function n(){t(!e)}return _.jsxs(_.Fragment,{children:[_.jsx(t1,{handleClick:n,isMenuOpen:e}),_.jsx("main",{children:_.jsx(I0,{})})]})}function r1(){return _.jsx("div",{children:"Error! 404 Page not found"})}const i1=[{id:"1",name:"Книги",description:"Книги по подписке",icon:"./src/images/icons/books.svg"},{id:"2",name:"Музыка",description:"Музыка по подписке",icon:"./src/images/icons/music.svg"},{id:"3",name:"Здоровье",description:"Здоровье по подписке",icon:"./src/images/icons/heart.svg"},{id:"4",name:"Кино",description:"Кино по подписке",icon:"./src/images/icons/video.svg"}],l1={availableSubscriptions:[{id:"1",name:"Подписка на 1 месяц",category:"Базовая",startDate:"01.01.2022",endDate:"01.02.2022",subscriptionType:"month",cost:100,iconBig:"./src/images/cards_images/ivi_big.png",iconSquare:"./src/images/cards_images/ivi_square.png"},{id:"2",name:"Подписка на 3 месяца",category:"Базовая",startDate:"01.01.2022",endDate:"01.02.2022",subscriptionType:"month",cost:200,iconBig:"./src/images/cards_images/kinopoisk_big.png",iconSquare:"./src/images/cards_images/oko_square.png"},{id:"3",name:"Подписка на 6 месяцов",category:"Базовая",startDate:"01.01.2022",endDate:"01.02.2022",subscriptionType:"month",cost:300,iconBig:"./src/images/cards_images/plus_big.png",iconSquare:"./src/images/cards_images/spotify_square.png"},{id:"3",name:"Подписка на 6 месяцов",category:"Базовая",startDate:"01.01.2022",endDate:"01.02.2022",subscriptionType:"month",cost:300,iconBig:"./src/images/cards_images/plus_big.png",iconSquare:"./src/images/cards_images/spotify_square.png"},{id:"3",name:"Подписка на 6 месяцов",category:"Базовая",startDate:"01.01.2022",endDate:"01.02.2022",subscriptionType:"month",cost:300,iconBig:"./src/images/cards_images/plus_big.png",iconSquare:"./src/images/cards_images/spotify_square.png"},{id:"3",name:"Подписка на 6 месяцов",category:"Базовая",startDate:"01.01.2022",endDate:"01.02.2022",subscriptionType:"month",cost:300,iconBig:"./src/images/cards_images/plus_big.png",iconSquare:"./src/images/cards_images/spotify_square.png"}]};function o1(){return _.jsx("section",{children:"AvailableServicesPage"})}function s1(){const{id:e}=w0();return _.jsx("section",{children:e})}function a1(){return _.jsx("section",{children:"PurchasePage"})}function u1(){return _.jsx("section",{children:"SuccessPurchasePage"})}function oe(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var c1=typeof Symbol=="function"&&Symbol.observable||"@@observable",Yu=c1,lo=()=>Math.random().toString(36).substring(7).split("").join("."),d1={INIT:`@@redux/INIT${lo()}`,REPLACE:`@@redux/REPLACE${lo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${lo()}`},Zi=d1;function va(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function qf(e,t,n){if(typeof e!="function")throw new Error(oe(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(oe(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(oe(1));return n(qf)(e,t)}let r=e,i=t,l=new Map,o=l,a=0,s=!1;function u(){o===l&&(o=new Map,l.forEach((S,f)=>{o.set(f,S)}))}function c(){if(s)throw new Error(oe(3));return i}function d(S){if(typeof S!="function")throw new Error(oe(4));if(s)throw new Error(oe(5));let f=!0;u();const m=a++;return o.set(m,S),function(){if(f){if(s)throw new Error(oe(6));f=!1,u(),o.delete(m),l=null}}}function p(S){if(!va(S))throw new Error(oe(7));if(typeof S.type>"u")throw new Error(oe(8));if(typeof S.type!="string")throw new Error(oe(17));if(s)throw new Error(oe(9));try{s=!0,i=r(i,S)}finally{s=!1}return(l=o).forEach(m=>{m()}),S}function v(S){if(typeof S!="function")throw new Error(oe(10));r=S,p({type:Zi.REPLACE})}function g(){const S=d;return{subscribe(f){if(typeof f!="object"||f===null)throw new Error(oe(11));function m(){const w=f;w.next&&w.next(c())}return m(),{unsubscribe:S(m)}},[Yu](){return this}}}return p({type:Zi.INIT}),{dispatch:p,subscribe:d,getState:c,replaceReducer:v,[Yu]:g}}function f1(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Zi.INIT})>"u")throw new Error(oe(12));if(typeof n(void 0,{type:Zi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(oe(13))})}function p1(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw a&&a.type,new Error(oe(14));u[d]=g,s=s||g!==v}return s=s||r.length!==Object.keys(o).length,s?u:o}}function Ji(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function h1(...e){return t=>(n,r)=>{const i=t(n,r);let l=()=>{throw new Error(oe(15))};const o={getState:i.getState,dispatch:(s,...u)=>l(s,...u)},a=e.map(s=>s(o));return l=Ji(...a)(i.dispatch),{...i,dispatch:l}}}function m1(e){return va(e)&&"type"in e&&typeof e.type=="string"}var Zf=Symbol.for("immer-nothing"),Xu=Symbol.for("immer-draftable"),ze=Symbol.for("immer-state");function Ge(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var An=Object.getPrototypeOf;function Ft(e){return!!e&&!!e[ze]}function pt(e){var t;return e?Jf(e)||Array.isArray(e)||!!e[Xu]||!!((t=e.constructor)!=null&&t[Xu])||El(e)||Cl(e):!1}var v1=Object.prototype.constructor.toString();function Jf(e){if(!e||typeof e!="object")return!1;const t=An(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===v1}function el(e,t){xl(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function xl(e){const t=e[ze];return t?t.type_:Array.isArray(e)?1:El(e)?2:Cl(e)?3:0}function ds(e,t){return xl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ep(e,t,n){const r=xl(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function g1(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function El(e){return e instanceof Map}function Cl(e){return e instanceof Set}function Qt(e){return e.copy_||e.base_}function fs(e,t){if(El(e))return new Map(e);if(Cl(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Jf(e))return An(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[ze];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=y1),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>ga(r,!0))),e}function y1(){Ge(2)}function kl(e){return Object.isFrozen(e)}var w1={};function on(e){const t=w1[e];return t||Ge(0,e),t}var Nr;function tp(){return Nr}function S1(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function qu(e,t){t&&(on("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ps(e){hs(e),e.drafts_.forEach(x1),e.drafts_=null}function hs(e){e===Nr&&(Nr=e.parent_)}function Zu(e){return Nr=S1(Nr,e)}function x1(e){const t=e[ze];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ju(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ze].modified_&&(ps(t),Ge(4)),pt(e)&&(e=tl(t,e),t.parent_||nl(t,e)),t.patches_&&on("Patches").generateReplacementPatches_(n[ze].base_,e,t.patches_,t.inversePatches_)):e=tl(t,n,[]),ps(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Zf?e:void 0}function tl(e,t,n){if(kl(t))return t;const r=t[ze];if(!r)return el(t,(i,l)=>ec(e,r,t,i,l,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return nl(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let l=i,o=!1;r.type_===3&&(l=new Set(i),i.clear(),o=!0),el(l,(a,s)=>ec(e,r,i,a,s,n,o)),nl(e,i,!1),n&&e.patches_&&on("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function ec(e,t,n,r,i,l,o){if(Ft(i)){const a=l&&t&&t.type_!==3&&!ds(t.assigned_,r)?l.concat(r):void 0,s=tl(e,i,a);if(ep(n,r,s),Ft(s))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(pt(i)&&!kl(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;tl(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&nl(e,i)}}function nl(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ga(t,n)}function E1(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:tp(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,l=ya;n&&(i=[r],l=Ir);const{revoke:o,proxy:a}=Proxy.revocable(i,l);return r.draft_=a,r.revoke_=o,a}var ya={get(e,t){if(t===ze)return e;const n=Qt(e);if(!ds(n,t))return C1(e,n,t);const r=n[t];return e.finalized_||!pt(r)?r:r===oo(e.base_,t)?(so(e),e.copy_[t]=vs(r,e)):r},has(e,t){return t in Qt(e)},ownKeys(e){return Reflect.ownKeys(Qt(e))},set(e,t,n){const r=np(Qt(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=oo(Qt(e),t),l=i==null?void 0:i[ze];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(g1(n,i)&&(n!==void 0||ds(e.base_,t)))return!0;so(e),ms(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return oo(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,so(e),ms(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Qt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ge(11)},getPrototypeOf(e){return An(e.base_)},setPrototypeOf(){Ge(12)}},Ir={};el(ya,(e,t)=>{Ir[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ir.deleteProperty=function(e,t){return Ir.set.call(this,e,t,void 0)};Ir.set=function(e,t,n){return ya.set.call(this,e[0],t,n,e[0])};function oo(e,t){const n=e[ze];return(n?Qt(n):e)[t]}function C1(e,t,n){var i;const r=np(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function np(e,t){if(!(t in e))return;let n=An(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=An(n)}}function ms(e){e.modified_||(e.modified_=!0,e.parent_&&ms(e.parent_))}function so(e){e.copy_||(e.copy_=fs(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var k1=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const l=n;n=t;const o=this;return function(s=l,...u){return o.produce(s,c=>n.call(this,c,...u))}}typeof n!="function"&&Ge(6),r!==void 0&&typeof r!="function"&&Ge(7);let i;if(pt(t)){const l=Zu(this),o=vs(t,void 0);let a=!0;try{i=n(o),a=!1}finally{a?ps(l):hs(l)}return qu(l,r),Ju(i,l)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Zf&&(i=void 0),this.autoFreeze_&&ga(i,!0),r){const l=[],o=[];on("Patches").generateReplacementPatches_(t,i,l,o),r(l,o)}return i}else Ge(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...a)=>this.produceWithPatches(o,s=>t(s,...a));let r,i;return[this.produce(t,n,(o,a)=>{r=o,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){pt(e)||Ge(8),Ft(e)&&(e=rp(e));const t=Zu(this),n=vs(e,void 0);return n[ze].isManual_=!0,hs(t),n}finishDraft(e,t){const n=e&&e[ze];(!n||!n.isManual_)&&Ge(9);const{scope_:r}=n;return qu(r,t),Ju(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=on("Patches").applyPatches_;return Ft(e)?r(e,t):this.produce(e,i=>r(i,t))}};function vs(e,t){const n=El(e)?on("MapSet").proxyMap_(e,t):Cl(e)?on("MapSet").proxySet_(e,t):E1(e,t);return(t?t.scope_:tp()).drafts_.push(n),n}function rp(e){return Ft(e)||Ge(10,e),ip(e)}function ip(e){if(!pt(e)||kl(e))return e;const t=e[ze];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=fs(e,t.scope_.immer_.useStrictShallowCopy_)}else n=fs(e,!0);return el(n,(r,i)=>{ep(n,r,ip(i))}),t&&(t.finalized_=!1),n}var Ne=new k1,lp=Ne.produce;Ne.produceWithPatches.bind(Ne);Ne.setAutoFreeze.bind(Ne);Ne.setUseStrictShallowCopy.bind(Ne);Ne.applyPatches.bind(Ne);Ne.createDraft.bind(Ne);Ne.finishDraft.bind(Ne);function T1(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function P1(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function _1(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var tc=e=>Array.isArray(e)?e:[e];function M1(e){const t=Array.isArray(e[0])?e[0]:e;return _1(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function O1(e,t){const n=[],{length:r}=e;for(let i=0;i{n=ai(),o.resetResultsCount()},o.resultsCount=()=>l,o.resetResultsCount=()=>{l=0},o}function op(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let l=0,o=0,a,s={},u=i.pop();typeof u=="object"&&(s=u,u=i.pop()),T1(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...s},{memoize:d,memoizeOptions:p=[],argsMemoize:v=wa,argsMemoizeOptions:g=[],devModeChecks:y={}}=c,S=tc(p),f=tc(g),m=M1(i),h=d(function(){return l++,u.apply(null,arguments)},...S),w=v(function(){o++;const E=O1(m,arguments);return a=h.apply(null,E),a},...f);return Object.assign(w,{resultFunc:u,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>a,recomputations:()=>l,resetRecomputations:()=>{l=0},memoize:d,argsMemoize:v})};return Object.assign(r,{withTypes:()=>r}),r}var I1=op(wa),R1=Object.assign((e,t=I1)=>{P1(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(l=>e[l]);return t(r,(...l)=>l.reduce((o,a,s)=>(o[n[s]]=a,o),{}))},{withTypes:()=>R1});function sp(e){return({dispatch:n,getState:r})=>i=>l=>typeof l=="function"?l(n,r,e):i(l)}var j1=sp(),D1=sp,A1=(...e)=>{const t=op(...e),n=Object.assign((...r)=>{const i=t(...r),l=(o,...a)=>i(Ft(o)?rp(o):o,...a);return Object.assign(l,i),l},{withTypes:()=>n});return n};A1(wa);var F1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ji:Ji.apply(null,arguments)};function Fn(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(ke(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>m1(r)&&r.type===e,n}var ap=class nr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,nr.prototype)}static get[Symbol.species](){return nr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new nr(...t[0].concat(this)):new nr(...t.concat(this))}};function rc(e){return pt(e)?lp(e,()=>{}):e}function ic(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(ke(10));const r=n.insert(t,e);return e.set(t,r),r}function $1(e){return typeof e=="boolean"}var B1=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let o=new ap;return n&&($1(n)?o.push(j1):o.push(D1(n.extraArgument))),o},V1="RTK_autoBatch",up=e=>t=>{setTimeout(t,e)},U1=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:up(10),H1=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,l=!1,o=!1;const a=new Set,s=e.type==="tick"?queueMicrotask:e.type==="raf"?U1:e.type==="callback"?e.queueNotification:up(e.timeout),u=()=>{o=!1,l&&(l=!1,a.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const d=()=>i&&c(),p=r.subscribe(d);return a.add(c),()=>{p(),a.delete(c)}},dispatch(c){var d;try{return i=!((d=c==null?void 0:c.meta)!=null&&d[V1]),l=!i,l&&(o||(o=!0,s(u))),r.dispatch(c)}finally{i=!0}}})},W1=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new ap(e);return r&&i.push(H1(typeof r=="object"?r:void 0)),i},b1=!0;function G1(e){const t=B1(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:l=void 0,enhancers:o=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(va(n))a=p1(n);else throw new Error(ke(1));let s;typeof r=="function"?s=r(t):s=t();let u=Ji;i&&(u=F1({trace:!b1,...typeof i=="object"&&i}));const c=h1(...s),d=W1(c);let p=typeof o=="function"?o(d):d();const v=u(...p);return qf(a,l,v)}function cp(e){const t={},n=[];let r;const i={addCase(l,o){const a=typeof l=="string"?l:l.type;if(!a)throw new Error(ke(28));if(a in t)throw new Error(ke(29));return t[a]=o,i},addMatcher(l,o){return n.push({matcher:l,reducer:o}),i},addDefaultCase(l){return r=l,i}};return e(i),[t,n,r]}function Q1(e){return typeof e=="function"}function K1(e,t){let[n,r,i]=cp(t),l;if(Q1(e))l=()=>rc(e());else{const a=rc(e);l=()=>a}function o(a=l(),s){let u=[n[s.type],...r.filter(({matcher:c})=>c(s)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,d)=>{if(d)if(Ft(c)){const v=d(c,s);return v===void 0?c:v}else{if(pt(c))return lp(c,p=>d(p,s));{const p=d(c,s);if(p===void 0){if(c===null)return c;throw new Error(ke(9))}return p}}return c},a)}return o.getInitialState=l,o}var Y1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",X1=(e=21)=>{let t="",n=e;for(;n--;)t+=Y1[Math.random()*64|0];return t},q1=Symbol.for("rtk-slice-createasyncthunk");function Z1(e,t){return`${e}/${t}`}function J1({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[q1];return function(i){const{name:l,reducerPath:o=l}=i;if(!l)throw new Error(ke(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(ty()):i.reducers)||{},s=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(h,w){const x=typeof h=="string"?h:h.type;if(!x)throw new Error(ke(12));if(x in u.sliceCaseReducersByType)throw new Error(ke(13));return u.sliceCaseReducersByType[x]=w,c},addMatcher(h,w){return u.sliceMatchers.push({matcher:h,reducer:w}),c},exposeAction(h,w){return u.actionCreators[h]=w,c},exposeCaseReducer(h,w){return u.sliceCaseReducersByName[h]=w,c}};s.forEach(h=>{const w=a[h],x={reducerName:h,type:Z1(l,h),createNotation:typeof i.reducers=="function"};ry(w)?ly(x,w,c,t):ny(x,w,c)});function d(){const[h={},w=[],x=void 0]=typeof i.extraReducers=="function"?cp(i.extraReducers):[i.extraReducers],E={...h,...u.sliceCaseReducersByType};return K1(i.initialState,M=>{for(let C in E)M.addCase(C,E[C]);for(let C of u.sliceMatchers)M.addMatcher(C.matcher,C.reducer);for(let C of w)M.addMatcher(C.matcher,C.reducer);x&&M.addDefaultCase(x)})}const p=h=>h,v=new Map;let g;function y(h,w){return g||(g=d()),g(h,w)}function S(){return g||(g=d()),g.getInitialState()}function f(h,w=!1){function x(M){let C=M[h];return typeof C>"u"&&w&&(C=S()),C}function E(M=p){const C=ic(v,w,{insert:()=>new WeakMap});return ic(C,M,{insert:()=>{const O={};for(const[k,N]of Object.entries(i.selectors??{}))O[k]=ey(N,M,S,w);return O}})}return{reducerPath:h,getSelectors:E,get selectors(){return E(x)},selectSlice:x}}const m={name:l,reducer:y,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:S,...f(o),injectInto(h,{reducerPath:w,...x}={}){const E=w??o;return h.inject({reducerPath:E,reducer:y},x),{...m,...f(E,!0)}}};return m}}function ey(e,t,n,r){function i(l,...o){let a=t(l);return typeof a>"u"&&r&&(a=n()),e(a,...o)}return i.unwrapped=e,i}var dp=J1();function ty(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function ny({type:e,reducerName:t,createNotation:n},r,i){let l,o;if("reducer"in r){if(n&&!iy(r))throw new Error(ke(17));l=r.reducer,o=r.prepare}else l=r;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,o?Fn(e,o):Fn(e))}function ry(e){return e._reducerDefinitionType==="asyncThunk"}function iy(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ly({type:e,reducerName:t},n,r,i){if(!i)throw new Error(ke(18));const{payloadCreator:l,fulfilled:o,pending:a,rejected:s,settled:u,options:c}=n,d=i(e,l,c);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),a&&r.addCase(d.pending,a),s&&r.addCase(d.rejected,s),u&&r.addMatcher(d.settled,u),r.exposeCaseReducer(t,{fulfilled:o||ui,pending:a||ui,rejected:s||ui,settled:u||ui})}function ui(){}var oy=(e,t)=>{if(typeof e!="function")throw new Error(ke(32))},Sa="listenerMiddleware",sy=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:l}=e;if(t)i=Fn(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(ke(21));return oy(l),{predicate:i,type:t,effect:l}},ay=Object.assign(e=>{const{type:t,predicate:n,effect:r}=sy(e);return{id:X1(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(ke(22))}}},{withTypes:()=>ay}),uy=Object.assign(Fn(`${Sa}/add`),{withTypes:()=>uy});Fn(`${Sa}/removeAll`);var cy=Object.assign(Fn(`${Sa}/remove`),{withTypes:()=>cy});function ke(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const dy={availableSubscriptions:[]},fp=dp({name:"availableSubscriptions",initialState:dy,reducers:{addAvailableSubscriptions:(e,t)=>{e.availableSubscriptions=t.payload}}}),{addAvailableSubscriptions:fy}=fp.actions,py=fp.reducer;function hy(){return _.jsx("section",{children:"CategorizedServicesPage"})}function my(){return _.jsx("section",{children:"UserServicesPage"})}const vy={subscriptionsCategories:[]},pp=dp({name:"subscriptionsCategories",initialState:vy,reducers:{addSubscriptionsCategories:(e,t)=>{e.subscriptionsCategories=t.payload}}}),{addSubscriptionsCategories:gy}=pp.actions,yy=pp.reducer;function wy(){const e=vv();return T.useEffect(()=>{e(fy(l1.availableSubscriptions)),e(gy(i1))},[e]),_.jsxs(j0,{children:[_.jsxs(qe,{path:"/",element:_.jsx(n1,{}),children:[_.jsx(qe,{index:!0,element:_.jsx(Gg,{})}),_.jsx(qe,{path:"/services/available",element:_.jsx(o1,{})}),_.jsx(qe,{path:"/services/my-services",element:_.jsx(my,{})}),_.jsx(qe,{path:"/services/category/:category",element:_.jsx(hy,{})}),_.jsx(qe,{path:"/services/:id",element:_.jsx(s1,{})}),_.jsx(qe,{path:"/purchase",element:_.jsx(a1,{})}),_.jsx(qe,{path:"/successful-purchase",element:_.jsx(u1,{})})]}),_.jsx(qe,{path:"*",element:_.jsx(r1,{})})]})}const Sy=G1({reducer:{availableSubscriptionsReducer:py,subscriptionsCategoriesReducer:yy},middleware:e=>e(),enhancers:e=>e()});uo.createRoot(document.getElementById("root")).render(_.jsx(Y.StrictMode,{children:_.jsx(fv,{store:Sy,children:_.jsx(U0,{basename:"/pay2u_hackathon_frontend",children:_.jsx(wy,{})})})})); diff --git a/index.html b/index.html index 4085d42..bf6da37 100644 --- a/index.html +++ b/index.html @@ -29,7 +29,7 @@ PAY2U - +