vevet 5.3.0 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cdn/vevet.iife.min.js +31 -34
- package/lib/cjs/components/Cursor/HoverElement/index.js +250 -0
- package/lib/cjs/components/Cursor/HoverElement/index.js.map +1 -0
- package/lib/cjs/components/Cursor/HoverElement/types.js +3 -0
- package/lib/cjs/components/Cursor/HoverElement/types.js.map +1 -0
- package/lib/cjs/components/Cursor/Path/index.js +109 -0
- package/lib/cjs/components/Cursor/Path/index.js.map +1 -0
- package/lib/cjs/components/Cursor/Path/svgQuadraticCurvePath.js.map +1 -0
- package/lib/cjs/components/Cursor/Path/types.js +3 -0
- package/lib/cjs/components/Cursor/Path/types.js.map +1 -0
- package/lib/cjs/components/Cursor/constants.js +5 -0
- package/lib/cjs/components/Cursor/constants.js.map +1 -0
- package/lib/cjs/components/Cursor/index.js +175 -191
- package/lib/cjs/components/Cursor/index.js.map +1 -1
- package/lib/cjs/components/Cursor/styles.js +3 -2
- package/lib/cjs/components/Cursor/styles.js.map +1 -1
- package/lib/cjs/components/ProgressPreloader/index.js +13 -4
- package/lib/cjs/components/ProgressPreloader/index.js.map +1 -1
- package/lib/cjs/components/Scrollbar/styles.js +2 -1
- package/lib/cjs/components/Scrollbar/styles.js.map +1 -1
- package/lib/cjs/components/Snap/logic/Track/index.js +2 -2
- package/lib/cjs/components/Snap/logic/Track/index.js.map +1 -1
- package/lib/cjs/components/Snap/slide/SlideParallax/index.js +30 -12
- package/lib/cjs/components/Snap/slide/SlideParallax/index.js.map +1 -1
- package/lib/cjs/internal/prependStyles.js +14 -0
- package/lib/cjs/internal/prependStyles.js.map +1 -0
- package/lib/cjs/manifest.json +1 -1
- package/lib/esm/components/Cursor/HoverElement/index.js +200 -0
- package/lib/esm/components/Cursor/HoverElement/index.js.map +1 -0
- package/lib/esm/components/Cursor/HoverElement/types.js +2 -0
- package/lib/esm/components/Cursor/HoverElement/types.js.map +1 -0
- package/lib/esm/components/Cursor/Path/index.js +91 -0
- package/lib/esm/components/Cursor/Path/index.js.map +1 -0
- package/lib/esm/components/Cursor/Path/svgQuadraticCurvePath.js.map +1 -0
- package/lib/esm/components/Cursor/Path/types.js +2 -0
- package/lib/esm/components/Cursor/Path/types.js.map +1 -0
- package/lib/esm/components/Cursor/constants.js +2 -0
- package/lib/esm/components/Cursor/constants.js.map +1 -0
- package/lib/esm/components/Cursor/index.js +171 -200
- package/lib/esm/components/Cursor/index.js.map +1 -1
- package/lib/esm/components/Cursor/styles.js +5 -7
- package/lib/esm/components/Cursor/styles.js.map +1 -1
- package/lib/esm/components/ProgressPreloader/index.js +9 -4
- package/lib/esm/components/ProgressPreloader/index.js.map +1 -1
- package/lib/esm/components/Scrollbar/styles.js +3 -2
- package/lib/esm/components/Scrollbar/styles.js.map +1 -1
- package/lib/esm/components/Snap/logic/Track/index.js +2 -2
- package/lib/esm/components/Snap/logic/Track/index.js.map +1 -1
- package/lib/esm/components/Snap/slide/SlideParallax/index.js +30 -12
- package/lib/esm/components/Snap/slide/SlideParallax/index.js.map +1 -1
- package/lib/esm/internal/prependStyles.js +11 -0
- package/lib/esm/internal/prependStyles.js.map +1 -0
- package/lib/esm/manifest.json +1 -1
- package/lib/types/components/Cursor/HoverElement/index.d.ts +60 -0
- package/lib/types/components/Cursor/HoverElement/index.d.ts.map +1 -0
- package/lib/types/components/Cursor/HoverElement/types.d.ts +60 -0
- package/lib/types/components/Cursor/HoverElement/types.d.ts.map +1 -0
- package/lib/types/components/Cursor/Path/index.d.ts +26 -0
- package/lib/types/components/Cursor/Path/index.d.ts.map +1 -0
- package/lib/types/components/Cursor/Path/svgQuadraticCurvePath.d.ts +3 -0
- package/lib/types/components/Cursor/Path/svgQuadraticCurvePath.d.ts.map +1 -0
- package/lib/types/components/Cursor/Path/types.d.ts +11 -0
- package/lib/types/components/Cursor/Path/types.d.ts.map +1 -0
- package/lib/types/components/Cursor/constants.d.ts +2 -0
- package/lib/types/components/Cursor/constants.d.ts.map +1 -0
- package/lib/types/components/Cursor/index.d.ts +47 -59
- package/lib/types/components/Cursor/index.d.ts.map +1 -1
- package/lib/types/components/Cursor/styles.d.ts.map +1 -1
- package/lib/types/components/Cursor/types.d.ts +38 -42
- package/lib/types/components/Cursor/types.d.ts.map +1 -1
- package/lib/types/components/ProgressPreloader/index.d.ts +2 -0
- package/lib/types/components/ProgressPreloader/index.d.ts.map +1 -1
- package/lib/types/components/ProgressPreloader/types.d.ts +5 -0
- package/lib/types/components/ProgressPreloader/types.d.ts.map +1 -1
- package/lib/types/components/Scrollbar/styles.d.ts.map +1 -1
- package/lib/types/components/Snap/slide/SlideParallax/index.d.ts +4 -0
- package/lib/types/components/Snap/slide/SlideParallax/index.d.ts.map +1 -1
- package/lib/types/components/Snap/slide/SlideParallax/types.d.ts +3 -1
- package/lib/types/components/Snap/slide/SlideParallax/types.d.ts.map +1 -1
- package/lib/types/internal/prependStyles.d.ts +2 -0
- package/lib/types/internal/prependStyles.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/Cursor/HoverElement/index.ts +283 -0
- package/src/components/Cursor/HoverElement/types.ts +75 -0
- package/src/components/Cursor/Path/index.ts +120 -0
- package/src/components/Cursor/{utils → Path}/svgQuadraticCurvePath.ts +1 -1
- package/src/components/Cursor/Path/types.ts +11 -0
- package/src/components/Cursor/constants.ts +1 -0
- package/src/components/Cursor/index.ts +245 -282
- package/src/components/Cursor/styles.ts +5 -7
- package/src/components/Cursor/types.ts +41 -45
- package/src/components/ProgressPreloader/index.ts +12 -3
- package/src/components/ProgressPreloader/types.ts +6 -0
- package/src/components/Scrollbar/styles.ts +3 -2
- package/src/components/Snap/logic/Track/index.ts +2 -2
- package/src/components/Snap/slide/SlideParallax/index.ts +38 -10
- package/src/components/Snap/slide/SlideParallax/types.ts +3 -1
- package/src/internal/prependStyles.ts +9 -0
- package/src/manifest.json +1 -1
- package/lib/cjs/components/Cursor/utils/svgQuadraticCurvePath.js.map +0 -1
- package/lib/esm/components/Cursor/utils/svgQuadraticCurvePath.js.map +0 -1
- package/lib/types/components/Cursor/utils/svgQuadraticCurvePath.d.ts +0 -3
- package/lib/types/components/Cursor/utils/svgQuadraticCurvePath.d.ts.map +0 -1
- /package/lib/cjs/components/Cursor/{utils → Path}/svgQuadraticCurvePath.js +0 -0
- /package/lib/esm/components/Cursor/{utils → Path}/svgQuadraticCurvePath.js +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";var Vevet=(()=>{var Ys=Object.create;var Ee=Object.defineProperty;var Gs=Object.getOwnPropertyDescriptor;var Js=Object.getOwnPropertyNames;var Zs=Object.getPrototypeOf,er=Object.prototype.hasOwnProperty;var ne=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports),tr=(i,e)=>{for(var t in e)Ee(i,t,{get:e[t],enumerable:!0})},ii=(i,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Js(e))!er.call(i,r)&&r!==t&&Ee(i,r,{get:()=>e[r],enumerable:!(s=Gs(e,r))||s.enumerable});return i};var si=(i,e,t)=>(t=i!=null?Ys(Zs(i)):{},ii(e||!i||!i.__esModule?Ee(t,"default",{value:i,enumerable:!0}):t,i)),ir=i=>ii(Ee({},"__esModule",{value:!0}),i);var Ri=ne((fo,Ai)=>{var Mi=!1,Z,rt,nt,Ae,Re,Ii,De,ot,at,lt,Pi,ct,ht,Ti,Ci;function D(){if(!Mi){Mi=!0;var i=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(i),t=/(Mac OS X)|(Windows)|(Linux)/.exec(i);if(ct=/\b(iPhone|iP[ao]d)/.exec(i),ht=/\b(iP[ao]d)/.exec(i),lt=/Android/i.exec(i),Ti=/FBAN\/\w+;/i.exec(i),Ci=/Mobile/i.exec(i),Pi=!!/Win64/.exec(i),e){Z=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,Z&&document&&document.documentMode&&(Z=document.documentMode);var s=/(?:Trident\/(\d+.\d+))/.exec(i);Ii=s?parseFloat(s[1])+4:Z,rt=e[2]?parseFloat(e[2]):NaN,nt=e[3]?parseFloat(e[3]):NaN,Ae=e[4]?parseFloat(e[4]):NaN,Ae?(e=/(?:Chrome\/(\d+\.\d+))/.exec(i),Re=e&&e[1]?parseFloat(e[1]):NaN):Re=NaN}else Z=rt=nt=Re=Ae=NaN;if(t){if(t[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(i);De=r?parseFloat(r[1].replace("_",".")):!0}else De=!1;ot=!!t[2],at=!!t[3]}else De=ot=at=!1}}var dt={ie:function(){return D()||Z},ieCompatibilityMode:function(){return D()||Ii>Z},ie64:function(){return dt.ie()&&Pi},firefox:function(){return D()||rt},opera:function(){return D()||nt},webkit:function(){return D()||Ae},safari:function(){return dt.webkit()},chrome:function(){return D()||Re},windows:function(){return D()||ot},osx:function(){return D()||De},linux:function(){return D()||at},iphone:function(){return D()||ct},mobile:function(){return D()||ct||ht||lt||Ci},nativeApp:function(){return D()||Ti},android:function(){return D()||lt},ipad:function(){return D()||ht}};Ai.exports=dt});var zi=ne((mo,Di)=>{"use strict";var ze=!!(typeof window!="undefined"&&window.document&&window.document.createElement),zr={canUseDOM:ze,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:ze&&!!(window.addEventListener||window.attachEvent),canUseViewport:ze&&!!window.screen,isInWorker:!ze};Di.exports=zr});var $i=ne((_o,Ni)=>{"use strict";var ji=zi(),ki;ji.canUseDOM&&(ki=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function jr(i,e){if(!ji.canUseDOM||e&&!("addEventListener"in document))return!1;var t="on"+i,s=t in document;if(!s){var r=document.createElement("div");r.setAttribute(t,"return;"),s=typeof r[t]=="function"}return!s&&ki&&i==="wheel"&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}Ni.exports=jr});var Hi=ne((go,Fi)=>{"use strict";var kr=Ri(),Nr=$i(),Bi=10,Wi=40,Li=800;function Vi(i){var e=0,t=0,s=0,r=0;return"detail"in i&&(t=i.detail),"wheelDelta"in i&&(t=-i.wheelDelta/120),"wheelDeltaY"in i&&(t=-i.wheelDeltaY/120),"wheelDeltaX"in i&&(e=-i.wheelDeltaX/120),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(e=t,t=0),s=e*Bi,r=t*Bi,"deltaY"in i&&(r=i.deltaY),"deltaX"in i&&(s=i.deltaX),(s||r)&&i.deltaMode&&(i.deltaMode==1?(s*=Wi,r*=Wi):(s*=Li,r*=Li)),s&&!e&&(e=s<1?-1:1),r&&!t&&(t=r<1?-1:1),{spinX:e,spinY:t,pixelX:s,pixelY:r}}Vi.getEventType=function(){return kr.firefox()?"DOMMouseScroll":Nr("wheel")?"wheel":"mousewheel"};Fi.exports=Vi});var Xi=ne((vo,Ui)=>{Ui.exports=Hi()});var Bs=ne((xe,ue)=>{var en=1/0,Os=9007199254740991,tn=4294967295,sn="[object Function]",rn="[object GeneratorFunction]",nn="[object RegExp]",on="[object Symbol]",an=/^(?:0|[1-9]\d*)$/,Zt="\\ud800-\\udfff",Ms="\\u0300-\\u036f\\ufe20-\\ufe23",Is="\\u20d0-\\u20f0",Ps="\\ufe0e\\ufe0f",ln="["+Zt+"]",Gt="["+Ms+Is+"]",Jt="\\ud83c[\\udffb-\\udfff]",cn="(?:"+Gt+"|"+Jt+")",Ts="[^"+Zt+"]",Cs="(?:\\ud83c[\\udde6-\\uddff]){2}",As="[\\ud800-\\udbff][\\udc00-\\udfff]",Rs="\\u200d",Ds=cn+"?",zs="["+Ps+"]?",hn="(?:"+Rs+"(?:"+[Ts,Cs,As].join("|")+")"+zs+Ds+")*",dn=zs+Ds+hn,pn="(?:"+[Ts+Gt+"?",Gt,Cs,As,ln].join("|")+")",un=RegExp(Jt+"(?="+Jt+")|"+pn+dn,"g"),fn=RegExp("["+Rs+Zt+Ms+Is+Ps+"]"),js=typeof global=="object"&&global&&global.Object===Object&&global,mn=typeof self=="object"&&self&&self.Object===Object&&self,_n=js||mn||Function("return this")(),ks=typeof xe=="object"&&xe&&!xe.nodeType&&xe,vs=ks&&typeof ue=="object"&&ue&&!ue.nodeType&&ue,gn=vs&&vs.exports===ks,bs=gn&&js.process,ws=function(){try{return bs&&bs.binding("util")}catch(i){}}(),ys=ws&&ws.isRegExp;function vn(i){return i.split("")}function bn(i){return function(e){return i(e)}}function Ns(i){return fn.test(i)}function wn(i){return Ns(i)?yn(i):vn(i)}function yn(i){return i.match(un)||[]}var xn=Object.prototype,ei=xn.toString,xs=_n.Symbol,Ss=xs?xs.prototype:void 0,Es=Ss?Ss.toString:void 0;function Sn(i){return ti(i)&&ei.call(i)==nn}function En(i,e,t){var s=-1,r=i.length;e<0&&(e=-e>r?0:r+e),t=t>r?r:t,t<0&&(t+=r),r=e>t?0:t-e>>>0,e>>>=0;for(var n=Array(r);++s<r;)n[s]=i[s+e];return n}function $s(i){if(typeof i=="string")return i;if(zn(i))return Es?Es.call(i):"";var e=i+"";return e=="0"&&1/i==-en?"-0":e}function On(i,e,t){var s=i.length;return t=t===void 0?s:t,!e&&t>=s?i:En(i,e,t)}function Mn(i,e){return e=e==null?Os:e,!!e&&(typeof i=="number"||an.test(i))&&i>-1&&i%1==0&&i<e}function In(i,e,t){if(!ti(t))return!1;var s=typeof e;return(s=="number"?Tn(t)&&Mn(e,t.length):s=="string"&&e in t)?Pn(t[e],i):!1}function Pn(i,e){return i===e||i!==i&&e!==e}function Tn(i){return i!=null&&An(i.length)&&!Cn(i)}function Cn(i){var e=ti(i)?ei.call(i):"";return e==sn||e==rn}function An(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Os}function ti(i){var e=typeof i;return!!i&&(e=="object"||e=="function")}function Rn(i){return!!i&&typeof i=="object"}var Dn=ys?bn(ys):Sn;function zn(i){return typeof i=="symbol"||Rn(i)&&ei.call(i)==on}function jn(i){return i==null?"":$s(i)}function kn(i,e,t){return t&&typeof t!="number"&&In(i,e,t)&&(e=t=void 0),t=t===void 0?tn:t>>>0,t?(i=jn(i),i&&(typeof e=="string"||e!=null&&!Dn(e))&&(e=$s(e),!e&&Ns(i))?On(wn(i),0,t):i.split(e,t)):[]}ue.exports=kn});var Wn={};tr(Wn,{Callbacks:()=>R,Canvas:()=>G,CanvasMedia:()=>_e,Cursor:()=>le,EaseInBack:()=>ft,EaseInBounce:()=>mt,EaseInCirc:()=>_t,EaseInCubic:()=>gt,EaseInElastic:()=>vt,EaseInExpo:()=>bt,EaseInOutBack:()=>wt,EaseInOutBounce:()=>yt,EaseInOutCirc:()=>xt,EaseInOutCubic:()=>St,EaseInOutElastic:()=>Et,EaseInOutExpo:()=>Ot,EaseInOutQuad:()=>Mt,EaseInOutQuart:()=>It,EaseInOutQuint:()=>Pt,EaseInOutSine:()=>Tt,EaseInQuad:()=>Ct,EaseInQuart:()=>At,EaseInQuint:()=>Rt,EaseInSine:()=>Dt,EaseOutBack:()=>zt,EaseOutBounce:()=>Y,EaseOutCirc:()=>jt,EaseOutCubic:()=>ee,EaseOutElastic:()=>kt,EaseOutExpo:()=>Nt,EaseOutQuad:()=>$t,EaseOutQuart:()=>Bt,EaseOutQuint:()=>Wt,EaseOutSine:()=>Lt,InView:()=>ge,Marquee:()=>ve,Module:()=>x,Pointers:()=>be,Preloader:()=>we,ProgressPreloader:()=>ye,Raf:()=>L,Responsive:()=>Ne,ScrollProgress:()=>Ve,Scrollbar:()=>Le,Snap:()=>pe,SnapSlide:()=>de,SplitText:()=>Ze,Swipe:()=>ie,Timeline:()=>A,addEventListener:()=>w,app:()=>Bn,clamp:()=>y,clampScope:()=>je,closest:()=>Ce,damp:()=>ut,easing:()=>Vt,inRange:()=>Ft,initVevet:()=>v,lerp:()=>B,loop:()=>W,normalizeWheel:()=>pt,onResize:()=>$,presetCssVars:()=>Gi,scoped:()=>Q,toPixels:()=>N,uid:()=>fe,vevet:()=>Ks});var ri=function(i,e,t){if(t||arguments.length===2)for(var s=0,r=e.length,n;s<r;s++)(n||!(s in e))&&(n||(n=Array.prototype.slice.call(e,0,s)),n[s]=e[s]);return i.concat(n||Array.prototype.slice.call(e))},sr=function(){function i(e,t,s){this.name=e,this.version=t,this.os=s,this.type="browser"}return i}();var rr=function(){function i(e){this.version=e,this.type="node",this.name="node",this.os=process.platform}return i}();var nr=function(){function i(e,t,s,r){this.name=e,this.version=t,this.os=s,this.bot=r,this.type="bot-device"}return i}();var or=function(){function i(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return i}();var ar=function(){function i(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return i}();var lr=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,cr=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,ni=3,hr=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",lr]],oi=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function li(i){return i?ai(i):typeof document=="undefined"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"?new ar:typeof navigator!="undefined"?ai(navigator.userAgent):ur()}function dr(i){return i!==""&&hr.reduce(function(e,t){var s=t[0],r=t[1];if(e)return e;var n=r.exec(i);return!!n&&[s,n]},!1)}function ai(i){var e=dr(i);if(!e)return null;var t=e[0],s=e[1];if(t==="searchbot")return new or;var r=s[1]&&s[1].split(".").join("_").split("_").slice(0,3);r?r.length<ni&&(r=ri(ri([],r,!0),fr(ni-r.length),!0)):r=[];var n=r.join("."),o=pr(i),a=cr.exec(i);return a&&a[1]?new nr(t,n,o,a[1]):new sr(t,n,o)}function pr(i){for(var e=0,t=oi.length;e<t;e++){var s=oi[e],r=s[0],n=s[1],o=n.exec(i);if(o)return r}return null}function ur(){var i=typeof process!="undefined"&&process.version;return i?new rr(process.version.slice(1)):null}function fr(i){for(var e=[],t=0;t<i;t++)e.push("0");return e}var et=/iPhone/i,ci=/iPod/i,hi=/iPad/i,di=/\biOS-universal(?:.+)Mac\b/i,tt=/\bAndroid(?:.+)Mobile\b/i,pi=/Android/i,oe=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Oe=/Silk/i,X=/Windows Phone/i,ui=/\bWindows(?:.+)ARM\b/i,fi=/BlackBerry/i,mi=/BB10/i,_i=/Opera Mini/i,gi=/\b(CriOS|Chrome)(?:.+)Mobile/i,vi=/Mobile(?:.+)Firefox\b/i,bi=function(i){return typeof i!="undefined"&&i.platform==="MacIntel"&&typeof i.maxTouchPoints=="number"&&i.maxTouchPoints>1&&typeof MSStream=="undefined"};function mr(i){return function(e){return e.test(i)}}function Me(i){var e={userAgent:"",platform:"",maxTouchPoints:0};!i&&typeof navigator!="undefined"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof i=="string"?e.userAgent=i:i&&i.userAgent&&(e={userAgent:i.userAgent,platform:i.platform,maxTouchPoints:i.maxTouchPoints||0});var t=e.userAgent,s=t.split("[FBAN");typeof s[1]!="undefined"&&(t=s[0]),s=t.split("Twitter"),typeof s[1]!="undefined"&&(t=s[0]);var r=mr(t),n={apple:{phone:r(et)&&!r(X),ipod:r(ci),tablet:!r(et)&&(r(hi)||bi(e))&&!r(X),universal:r(di),device:(r(et)||r(ci)||r(hi)||r(di)||bi(e))&&!r(X)},amazon:{phone:r(oe),tablet:!r(oe)&&r(Oe),device:r(oe)||r(Oe)},android:{phone:!r(X)&&r(oe)||!r(X)&&r(tt),tablet:!r(X)&&!r(oe)&&!r(tt)&&(r(Oe)||r(pi)),device:!r(X)&&(r(oe)||r(Oe)||r(tt)||r(pi))||r(/\bokhttp\b/i)},windows:{phone:r(X),tablet:r(ui),device:r(X)||r(ui)},other:{blackberry:r(fi),blackberry10:r(mi),opera:r(_i),firefox:r(vi),chrome:r(gi),device:r(fi)||r(mi)||r(_i)||r(vi)||r(gi)},any:!1,phone:!1,tablet:!1};return n.any=n.apple.device||n.android.device||n.windows.device||n.other.device,n.phone=n.apple.phone||n.android.phone||n.windows.phone,n.tablet=n.apple.tablet||n.android.tablet||n.windows.tablet,n}var _r=Object.defineProperty,gr=Object.defineProperties,vr=Object.getOwnPropertyDescriptors,wi=Object.getOwnPropertySymbols,br=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,yi=(i,e,t)=>e in i?_r(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ie=(i,e)=>{for(var t in e||(e={}))br.call(e,t)&&yi(i,t,e[t]);if(wi)for(var t of wi(e))wr.call(e,t)&&yi(i,t,e[t]);return i},Pe=(i,e)=>gr(i,vr(e));var yr="Window is not available and no user agent was provided.",xr=()=>{var i,e;if(typeof window!="undefined"){let t=((i=window==null?void 0:window.navigator)==null?void 0:i.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.vendor)||(window==null?void 0:window.opera);if(t)return t}return console.error(yr),""},Te={isInApp:!1,appKey:void 0,appName:void 0,skipped:!1},Sr=i=>i.match(/(iPhone|iPad|iPod|Macintosh)/)!==null,Er=({skip:i,appKey:e,ua:t})=>{if(!i||i.length===0)return!1;let s=Sr(t);return i.some(({appKey:r,platform:n})=>e===r&&(!n||s&&n==="apple"||!s&&n==="android"))},Qn=new RegExp(/Mozilla\/5\.0 \([^\)]+\) AppleWebKit\/[^\s]+ \(KHTML, like Gecko\) Version\/[^\s]+ (Mobile\/[^\s]+ )?Safari\/[^\s]+$/);var Or=()=>"TelegramWebview"in window||"TelegramWebviewProxy"in window||"TelegramWebviewProxyProto"in window,xi={telegram:{name:"Telegram"}},Mr=()=>{if(typeof window!="undefined"&&Or())return"telegram"},qn=Object.keys(xi),it={messenger:{regex:/(\bFB[\w_]+\/(Messenger))|(^(?!.*\buseragents)(?!.*\bIABMV).*(FB_IAB|FBAN).*)/i,name:"Facebook Messenger"},instagram:{regex:/\bInstagram/i,name:"Instagram"},facebook:{regex:/\bFB[\w_]+\/|\bFacebook/i,name:"Facebook"},twitter:{regex:/\bTwitter/i,name:"Twitter"},line:{regex:/\bLine\//i,name:"Line"},wechat:{regex:/\bMicroMessenger\//i,name:"WeChat"},threads:{regex:/\bBarcelona/i,name:"Threads"},tiktok:{regex:/musical_ly|Bytedance/i,name:"TikTok"},snapchat:{regex:/Snapchat/i,name:"Snapchat"},linkedin:{regex:/LinkedInApp/i,name:"LinkedIn"},gsa:{regex:/GSA/i,name:"Google Search App"},whatsapp:{regex:/\b(WAiOS|WA4A)\//i,name:"WhatsApp"}},Ir=Object.keys(it),Pr=i=>Ir.find(e=>it[e].regex.test(i)),Tr=["WebView","(iPhone|iPod|iPad)(?!.*Safari/)","Android.*wv\\)"],Cr=new RegExp(`${Tr.map(i=>`(${i})`).join("|")}`,"i");var Ar=(i={})=>{var e,t;let{skip:s,ua:r=""}=i,n=r||xr();if(!n)return Pe(Ie({},Te),{ua:n});let o=c=>Er({skip:s,appKey:c,ua:n}),a=Pr(n);if(a||n.match(Cr)!==null)return o(a)?Pe(Ie({},Te),{ua:n,skipped:!0}):{isInApp:!0,appKey:a,appName:a?it[a].name:void 0,ua:n,skipped:!1};let l=Mr();return l?o(l)?Pe(Ie({},Te),{ua:n,skipped:!0}):{isInApp:!0,appKey:l,appName:(t=(e=xi)==null?void 0:e[l])==null?void 0:t.name,ua:n,skipped:!1}:Pe(Ie({},Te),{ua:n})};var Si=Ar;var Ei={version:"5.3.0"};function Ce(i,e){return!Array.isArray(e)||e.length===0?i:e.reduce((t,s)=>Math.abs(s-i)<Math.abs(t-i)?s:t)}var j=typeof window!="undefined",_=j?document:void 0,I=j?_.documentElement:void 0,M=j?_.body:void 0;function k(i){return typeof i=="number"}function N(i){if(!j)return 0;let e=v();if(window.vevet5_toPixelsCache||(window.vevet5_toPixelsCache=new Map,e.onResize("any",()=>{window.vevet5_toPixelsCache.clear()},{name:"toPixels"})),window.vevet5_toPixelsCache.has(i))return window.vevet5_toPixelsCache.get(i);let t=0,s=parseFloat(`${i}`);return k(i)?t=i:Number.isNaN(s)?t=0:i.includes("rem")?t=s*e.rem:i.includes("vw")?t=s*e.vw:i.includes("vh")?t=s*e.vh:i.includes("svh")?t=s*e.svh:i.includes("px")&&(t=s),window.vevet5_toPixelsCache.set(i,t),t}var Oi=0;function fe(i="id"){return Oi+=1,`${i}_${Oi}`}function g(i,e,t){let s=t.value;t.value=function(...n){if(!this._isDestroyed)return s.apply(this,n)}}function st(i){try{i()}catch(e){console.error(e)}}var me=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},Dr=function(i,e){var t={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&e.indexOf(s)<0&&(t[s]=i[s]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(i);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(i,s[r])&&(t[s[r]]=i[s[r]]);return t},R=class{constructor(e={}){this._props=e,this._isDestroyed=!1,this._list=[]}get list(){return this._list}add(e,t,s={}){let r=fe("callback");return this._list.push(Object.assign(Object.assign({},s),{id:r,target:e,action:t})),{id:r,remove:()=>this.remove(r)}}on(e,t,s={}){let r=this.add(e,t,s);return()=>{r.remove()}}remove(e){return this._remove(e)}_remove(e,t=!1){return this._list=this._list.filter(r=>!!(r.id!==e||r.protected&&!t)),!this._list.some(({id:r})=>r===e)}_removeAll(){for(;this._list.length>0;)this._remove(this._list[0].id,!0)}_callAction(e,t){var{id:s,timeout:r,action:n}=e,o=Dr(e,["id","timeout","action"]);let{ctx:a}=this._props;r?setTimeout(()=>st(()=>n(t,a)),r):st(()=>n(t,a)),o.once&&this._remove(s,!0)}emit(e,t){this._list.forEach(s=>{s.target===e&&this._callAction(s,t)})}destroy(){this._removeAll(),this._isDestroyed=!0}};me([g],R.prototype,"add",null);me([g],R.prototype,"on",null);me([g],R.prototype,"remove",null);me([g],R.prototype,"emit",null);me([g],R.prototype,"destroy",null);function w(i,e,t,s){return i.addEventListener(e,t,s),()=>{i.removeEventListener(e,t,s)}}var Qi=si(Xi());function pt(i){return(0,Qi.default)(i)}function $({callback:i,element:e,viewportTarget:t="width",resizeDebounce:s=0,name:r}){let n=v(),o,a,l=!0,c,h=u=>{o&&(clearTimeout(o),o=void 0),o=setTimeout(()=>i(),u!=null?u:s)};return e&&(a=new ResizeObserver(()=>{if(l){l=!1;return}h(n.props.resizeDebounce+s)}),(Array.isArray(e)?e:[e]).forEach(u=>{a==null||a.observe(u)})),t&&(c=n.onResize(t,()=>h(),{name:r})),{remove:()=>{o&&clearTimeout(o),a==null||a.disconnect(),c==null||c()},resize:()=>i(),debounceResize:()=>h()}}function S(i,e){i.classList.add(e)}function V(i,e){i.classList.remove(e)}function T(i,e,t){i.classList.toggle(e,t)}function K(i,e){return i.classList.contains(e)}function qi({prefix:i,applyClassNames:e}){let t=new R,s=!1;_.readyState==="complete"?setTimeout(()=>r(),0):w(window,"load",()=>r());function r(){let{body:o}=document;s=!0,e&&(V(I,`${i}loading`),V(o,`${i}loading`),S(I,`${i}loaded`)),t.emit("loaded",void 0)}function n(o){return s?(o(),()=>{}):t.on("loaded",()=>o())}return{onLoad:n,getIsLoaded:()=>s}}function Ki({prefix:i,props:e,isMobile:t,isInApp:s}){let r=_.getElementById("vevet_css_preset");r||(r=_.createElement("style"),r.id="vevet_css_preset",M.appendChild(r));let n=_.createElement("div"),{style:o}=n;n.id="vevet_svh_helper",o.position="fixed",o.top="-100svh",o.left="-100px",o.width="1px",o.height="100svh",M.appendChild(n);let a=new R,l={width:0,height:0,sHeight:0,vw:0,vh:0,svh:0,scrollbarWidth:0,rem:16,landscape:!1,portrait:!1,dpr:window.devicePixelRatio,lowerDpr:window.devicePixelRatio};b(),f(),p();let c;function h(){c&&(clearTimeout(c),c=void 0),e.resizeDebounce?c=setTimeout(()=>d(),e.resizeDebounce):d()}w(window,"resize",()=>h());let u=new ResizeObserver(()=>h());u.observe(I),u.observe(M);function d(){let{width:m,height:E}=l;b(),f(),p();let{width:O,height:P}=l;a.emit("trigger",void 0),(O!==m||P!==E)&&a.emit("any",void 0),O!==m&&P===E&&a.emit("onlyWidth",void 0),P!==E&&O===m&&a.emit("onlyHeight",void 0),O!==m&&P!==E&&a.emit("both",void 0),O!==m&&a.emit("width",void 0),P!==E&&a.emit("height",void 0)}function b(){let{width:m}=l,E=getComputedStyle(I);if(l.width=window.innerWidth,l.height=window.innerHeight,l.scrollbarWidth=window.innerWidth-I.clientWidth,l.vw=l.width/100,l.vh=l.height/100,l.rem=parseFloat(E.fontSize),l.landscape=l.width>l.height,l.portrait=l.width<l.height,l.dpr=window.devicePixelRatio,l.lowerDpr=t?Math.min(l.dpr,2):1,t&&s){let O=I.clientHeight;(m!==l.width||!l.sHeight||m===l.width&&O<l.sHeight)&&(l.sHeight=O,l.svh=l.sHeight/100)}else l.svh=n.clientHeight/100||I.clientHeight/100,l.sHeight=l.svh*100}function f(){e.applyClassNames&&(T(I,`${i}landscape`,l.landscape),T(I,`${i}portrait`,l.portrait))}function p(){r.innerHTML=`
|
|
1
|
+
"use strict";var Vevet=(()=>{var er=Object.create;var Oe=Object.defineProperty;var tr=Object.getOwnPropertyDescriptor;var ir=Object.getOwnPropertyNames;var sr=Object.getPrototypeOf,rr=Object.prototype.hasOwnProperty;var ne=(s,e)=>()=>(e||s((e={exports:{}}).exports,e),e.exports),nr=(s,e)=>{for(var t in e)Oe(s,t,{get:e[t],enumerable:!0})},oi=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ir(e))!rr.call(s,r)&&r!==t&&Oe(s,r,{get:()=>e[r],enumerable:!(i=tr(e,r))||i.enumerable});return s};var ai=(s,e,t)=>(t=s!=null?er(sr(s)):{},oi(e||!s||!s.__esModule?Oe(t,"default",{value:s,enumerable:!0}):t,s)),or=s=>oi(Oe({},"__esModule",{value:!0}),s);var ji=ne((vo,zi)=>{var Ci=!1,Z,at,lt,De,Re,Ai,ke,ct,ht,dt,Di,pt,ut,Ri,ki;function j(){if(!Ci){Ci=!0;var s=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(s),t=/(Mac OS X)|(Windows)|(Linux)/.exec(s);if(pt=/\b(iPhone|iP[ao]d)/.exec(s),ut=/\b(iP[ao]d)/.exec(s),dt=/Android/i.exec(s),Ri=/FBAN\/\w+;/i.exec(s),ki=/Mobile/i.exec(s),Di=!!/Win64/.exec(s),e){Z=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,Z&&document&&document.documentMode&&(Z=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(s);Ai=i?parseFloat(i[1])+4:Z,at=e[2]?parseFloat(e[2]):NaN,lt=e[3]?parseFloat(e[3]):NaN,De=e[4]?parseFloat(e[4]):NaN,De?(e=/(?:Chrome\/(\d+\.\d+))/.exec(s),Re=e&&e[1]?parseFloat(e[1]):NaN):Re=NaN}else Z=at=lt=Re=De=NaN;if(t){if(t[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(s);ke=r?parseFloat(r[1].replace("_",".")):!0}else ke=!1;ct=!!t[2],ht=!!t[3]}else ke=ct=ht=!1}}var ft={ie:function(){return j()||Z},ieCompatibilityMode:function(){return j()||Ai>Z},ie64:function(){return ft.ie()&&Di},firefox:function(){return j()||at},opera:function(){return j()||lt},webkit:function(){return j()||De},safari:function(){return ft.webkit()},chrome:function(){return j()||Re},windows:function(){return j()||ct},osx:function(){return j()||ke},linux:function(){return j()||ht},iphone:function(){return j()||pt},mobile:function(){return j()||pt||ut||dt||ki},nativeApp:function(){return j()||Ri},android:function(){return j()||dt},ipad:function(){return j()||ut}};zi.exports=ft});var $i=ne((bo,Ni)=>{"use strict";var ze=!!(typeof window!="undefined"&&window.document&&window.document.createElement),$r={canUseDOM:ze,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:ze&&!!(window.addEventListener||window.attachEvent),canUseViewport:ze&&!!window.screen,isInWorker:!ze};Ni.exports=$r});var Vi=ne((wo,Li)=>{"use strict";var Bi=$i(),Wi;Bi.canUseDOM&&(Wi=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Br(s,e){if(!Bi.canUseDOM||e&&!("addEventListener"in document))return!1;var t="on"+s,i=t in document;if(!i){var r=document.createElement("div");r.setAttribute(t,"return;"),i=typeof r[t]=="function"}return!i&&Wi&&s==="wheel"&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}Li.exports=Br});var qi=ne((yo,Yi)=>{"use strict";var Wr=ji(),Lr=Vi(),Fi=10,Hi=40,Xi=800;function Ui(s){var e=0,t=0,i=0,r=0;return"detail"in s&&(t=s.detail),"wheelDelta"in s&&(t=-s.wheelDelta/120),"wheelDeltaY"in s&&(t=-s.wheelDeltaY/120),"wheelDeltaX"in s&&(e=-s.wheelDeltaX/120),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(e=t,t=0),i=e*Fi,r=t*Fi,"deltaY"in s&&(r=s.deltaY),"deltaX"in s&&(i=s.deltaX),(i||r)&&s.deltaMode&&(s.deltaMode==1?(i*=Hi,r*=Hi):(i*=Xi,r*=Xi)),i&&!e&&(e=i<1?-1:1),r&&!t&&(t=r<1?-1:1),{spinX:e,spinY:t,pixelX:i,pixelY:r}}Ui.getEventType=function(){return Wr.firefox()?"DOMMouseScroll":Lr("wheel")?"wheel":"mousewheel"};Yi.exports=Ui});var Ki=ne((xo,Qi)=>{Qi.exports=qi()});var Fs=ne((Se,fe)=>{var nn=1/0,Ts=9007199254740991,on=4294967295,an="[object Function]",ln="[object GeneratorFunction]",cn="[object RegExp]",hn="[object Symbol]",dn=/^(?:0|[1-9]\d*)$/,si="\\ud800-\\udfff",Cs="\\u0300-\\u036f\\ufe20-\\ufe23",As="\\u20d0-\\u20f0",Ds="\\ufe0e\\ufe0f",pn="["+si+"]",ti="["+Cs+As+"]",ii="\\ud83c[\\udffb-\\udfff]",un="(?:"+ti+"|"+ii+")",Rs="[^"+si+"]",ks="(?:\\ud83c[\\udde6-\\uddff]){2}",zs="[\\ud800-\\udbff][\\udc00-\\udfff]",js="\\u200d",Ns=un+"?",$s="["+Ds+"]?",fn="(?:"+js+"(?:"+[Rs,ks,zs].join("|")+")"+$s+Ns+")*",mn=$s+Ns+fn,_n="(?:"+[Rs+ti+"?",ti,ks,zs,pn].join("|")+")",gn=RegExp(ii+"(?="+ii+")|"+_n+mn,"g"),vn=RegExp("["+js+si+Cs+As+Ds+"]"),Bs=typeof global=="object"&&global&&global.Object===Object&&global,bn=typeof self=="object"&&self&&self.Object===Object&&self,wn=Bs||bn||Function("return this")(),Ws=typeof Se=="object"&&Se&&!Se.nodeType&&Se,xs=Ws&&typeof fe=="object"&&fe&&!fe.nodeType&&fe,yn=xs&&xs.exports===Ws,Ss=yn&&Bs.process,Es=function(){try{return Ss&&Ss.binding("util")}catch(s){}}(),Os=Es&&Es.isRegExp;function xn(s){return s.split("")}function Sn(s){return function(e){return s(e)}}function Ls(s){return vn.test(s)}function En(s){return Ls(s)?On(s):xn(s)}function On(s){return s.match(gn)||[]}var Mn=Object.prototype,ri=Mn.toString,Ms=wn.Symbol,Is=Ms?Ms.prototype:void 0,Ps=Is?Is.toString:void 0;function In(s){return ni(s)&&ri.call(s)==cn}function Pn(s,e,t){var i=-1,r=s.length;e<0&&(e=-e>r?0:r+e),t=t>r?r:t,t<0&&(t+=r),r=e>t?0:t-e>>>0,e>>>=0;for(var n=Array(r);++i<r;)n[i]=s[i+e];return n}function Vs(s){if(typeof s=="string")return s;if($n(s))return Ps?Ps.call(s):"";var e=s+"";return e=="0"&&1/s==-nn?"-0":e}function Tn(s,e,t){var i=s.length;return t=t===void 0?i:t,!e&&t>=i?s:Pn(s,e,t)}function Cn(s,e){return e=e==null?Ts:e,!!e&&(typeof s=="number"||dn.test(s))&&s>-1&&s%1==0&&s<e}function An(s,e,t){if(!ni(t))return!1;var i=typeof e;return(i=="number"?Rn(t)&&Cn(e,t.length):i=="string"&&e in t)?Dn(t[e],s):!1}function Dn(s,e){return s===e||s!==s&&e!==e}function Rn(s){return s!=null&&zn(s.length)&&!kn(s)}function kn(s){var e=ni(s)?ri.call(s):"";return e==an||e==ln}function zn(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Ts}function ni(s){var e=typeof s;return!!s&&(e=="object"||e=="function")}function jn(s){return!!s&&typeof s=="object"}var Nn=Os?Sn(Os):In;function $n(s){return typeof s=="symbol"||jn(s)&&ri.call(s)==hn}function Bn(s){return s==null?"":Vs(s)}function Wn(s,e,t){return t&&typeof t!="number"&&An(s,e,t)&&(e=t=void 0),t=t===void 0?on:t>>>0,t?(s=Bn(s),s&&(typeof e=="string"||e!=null&&!Nn(e))&&(e=Vs(e),!e&&Ls(s))?Tn(En(s),0,t):s.split(e,t)):[]}fe.exports=Wn});var Hn={};nr(Hn,{Callbacks:()=>z,Canvas:()=>G,CanvasMedia:()=>ge,Cursor:()=>ce,EaseInBack:()=>gt,EaseInBounce:()=>vt,EaseInCirc:()=>bt,EaseInCubic:()=>wt,EaseInElastic:()=>yt,EaseInExpo:()=>xt,EaseInOutBack:()=>St,EaseInOutBounce:()=>Et,EaseInOutCirc:()=>Ot,EaseInOutCubic:()=>Mt,EaseInOutElastic:()=>It,EaseInOutExpo:()=>Pt,EaseInOutQuad:()=>Tt,EaseInOutQuart:()=>Ct,EaseInOutQuint:()=>At,EaseInOutSine:()=>Dt,EaseInQuad:()=>Rt,EaseInQuart:()=>kt,EaseInQuint:()=>zt,EaseInSine:()=>jt,EaseOutBack:()=>Nt,EaseOutBounce:()=>K,EaseOutCirc:()=>$t,EaseOutCubic:()=>ee,EaseOutElastic:()=>Bt,EaseOutExpo:()=>Wt,EaseOutQuad:()=>Lt,EaseOutQuart:()=>Vt,EaseOutQuint:()=>Ft,EaseOutSine:()=>Ht,InView:()=>ve,Marquee:()=>be,Module:()=>x,Pointers:()=>we,Preloader:()=>ye,ProgressPreloader:()=>xe,Raf:()=>V,Responsive:()=>$e,ScrollProgress:()=>Ue,Scrollbar:()=>Xe,Snap:()=>ue,SnapSlide:()=>pe,SplitText:()=>it,Swipe:()=>ie,Timeline:()=>k,addEventListener:()=>y,app:()=>Fn,clamp:()=>w,clampScope:()=>je,closest:()=>Ae,damp:()=>_t,easing:()=>Xt,inRange:()=>Ut,initVevet:()=>b,lerp:()=>C,loop:()=>L,normalizeWheel:()=>mt,onResize:()=>W,presetCssVars:()=>ts,scoped:()=>U,toPixels:()=>P,uid:()=>me,vevet:()=>Zs});var li=function(s,e,t){if(t||arguments.length===2)for(var i=0,r=e.length,n;i<r;i++)(n||!(i in e))&&(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return s.concat(n||Array.prototype.slice.call(e))},ar=function(){function s(e,t,i){this.name=e,this.version=t,this.os=i,this.type="browser"}return s}();var lr=function(){function s(e){this.version=e,this.type="node",this.name="node",this.os=process.platform}return s}();var cr=function(){function s(e,t,i,r){this.name=e,this.version=t,this.os=i,this.bot=r,this.type="bot-device"}return s}();var hr=function(){function s(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return s}();var dr=function(){function s(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return s}();var pr=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,ur=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,ci=3,fr=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",pr]],hi=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function pi(s){return s?di(s):typeof document=="undefined"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"?new dr:typeof navigator!="undefined"?di(navigator.userAgent):gr()}function mr(s){return s!==""&&fr.reduce(function(e,t){var i=t[0],r=t[1];if(e)return e;var n=r.exec(s);return!!n&&[i,n]},!1)}function di(s){var e=mr(s);if(!e)return null;var t=e[0],i=e[1];if(t==="searchbot")return new hr;var r=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);r?r.length<ci&&(r=li(li([],r,!0),vr(ci-r.length),!0)):r=[];var n=r.join("."),o=_r(s),a=ur.exec(s);return a&&a[1]?new cr(t,n,o,a[1]):new ar(t,n,o)}function _r(s){for(var e=0,t=hi.length;e<t;e++){var i=hi[e],r=i[0],n=i[1],o=n.exec(s);if(o)return r}return null}function gr(){var s=typeof process!="undefined"&&process.version;return s?new lr(process.version.slice(1)):null}function vr(s){for(var e=[],t=0;t<s;t++)e.push("0");return e}var st=/iPhone/i,ui=/iPod/i,fi=/iPad/i,mi=/\biOS-universal(?:.+)Mac\b/i,rt=/\bAndroid(?:.+)Mobile\b/i,_i=/Android/i,oe=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Me=/Silk/i,X=/Windows Phone/i,gi=/\bWindows(?:.+)ARM\b/i,vi=/BlackBerry/i,bi=/BB10/i,wi=/Opera Mini/i,yi=/\b(CriOS|Chrome)(?:.+)Mobile/i,xi=/Mobile(?:.+)Firefox\b/i,Si=function(s){return typeof s!="undefined"&&s.platform==="MacIntel"&&typeof s.maxTouchPoints=="number"&&s.maxTouchPoints>1&&typeof MSStream=="undefined"};function br(s){return function(e){return e.test(s)}}function Ie(s){var e={userAgent:"",platform:"",maxTouchPoints:0};!s&&typeof navigator!="undefined"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof s=="string"?e.userAgent=s:s&&s.userAgent&&(e={userAgent:s.userAgent,platform:s.platform,maxTouchPoints:s.maxTouchPoints||0});var t=e.userAgent,i=t.split("[FBAN");typeof i[1]!="undefined"&&(t=i[0]),i=t.split("Twitter"),typeof i[1]!="undefined"&&(t=i[0]);var r=br(t),n={apple:{phone:r(st)&&!r(X),ipod:r(ui),tablet:!r(st)&&(r(fi)||Si(e))&&!r(X),universal:r(mi),device:(r(st)||r(ui)||r(fi)||r(mi)||Si(e))&&!r(X)},amazon:{phone:r(oe),tablet:!r(oe)&&r(Me),device:r(oe)||r(Me)},android:{phone:!r(X)&&r(oe)||!r(X)&&r(rt),tablet:!r(X)&&!r(oe)&&!r(rt)&&(r(Me)||r(_i)),device:!r(X)&&(r(oe)||r(Me)||r(rt)||r(_i))||r(/\bokhttp\b/i)},windows:{phone:r(X),tablet:r(gi),device:r(X)||r(gi)},other:{blackberry:r(vi),blackberry10:r(bi),opera:r(wi),firefox:r(xi),chrome:r(yi),device:r(vi)||r(bi)||r(wi)||r(xi)||r(yi)},any:!1,phone:!1,tablet:!1};return n.any=n.apple.device||n.android.device||n.windows.device||n.other.device,n.phone=n.apple.phone||n.android.phone||n.windows.phone,n.tablet=n.apple.tablet||n.android.tablet||n.windows.tablet,n}var wr=Object.defineProperty,yr=Object.defineProperties,xr=Object.getOwnPropertyDescriptors,Ei=Object.getOwnPropertySymbols,Sr=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable,Oi=(s,e,t)=>e in s?wr(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Pe=(s,e)=>{for(var t in e||(e={}))Sr.call(e,t)&&Oi(s,t,e[t]);if(Ei)for(var t of Ei(e))Er.call(e,t)&&Oi(s,t,e[t]);return s},Te=(s,e)=>yr(s,xr(e));var Or="Window is not available and no user agent was provided.",Mr=()=>{var s,e;if(typeof window!="undefined"){let t=((s=window==null?void 0:window.navigator)==null?void 0:s.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.vendor)||(window==null?void 0:window.opera);if(t)return t}return console.error(Or),""},Ce={isInApp:!1,appKey:void 0,appName:void 0,skipped:!1},Ir=s=>s.match(/(iPhone|iPad|iPod|Macintosh)/)!==null,Pr=({skip:s,appKey:e,ua:t})=>{if(!s||s.length===0)return!1;let i=Ir(t);return s.some(({appKey:r,platform:n})=>e===r&&(!n||i&&n==="apple"||!i&&n==="android"))},Gn=new RegExp(/Mozilla\/5\.0 \([^\)]+\) AppleWebKit\/[^\s]+ \(KHTML, like Gecko\) Version\/[^\s]+ (Mobile\/[^\s]+ )?Safari\/[^\s]+$/);var Tr=()=>"TelegramWebview"in window||"TelegramWebviewProxy"in window||"TelegramWebviewProxyProto"in window,Mi={telegram:{name:"Telegram"}},Cr=()=>{if(typeof window!="undefined"&&Tr())return"telegram"},Jn=Object.keys(Mi),nt={messenger:{regex:/(\bFB[\w_]+\/(Messenger))|(^(?!.*\buseragents)(?!.*\bIABMV).*(FB_IAB|FBAN).*)/i,name:"Facebook Messenger"},instagram:{regex:/\bInstagram/i,name:"Instagram"},facebook:{regex:/\bFB[\w_]+\/|\bFacebook/i,name:"Facebook"},twitter:{regex:/\bTwitter/i,name:"Twitter"},line:{regex:/\bLine\//i,name:"Line"},wechat:{regex:/\bMicroMessenger\//i,name:"WeChat"},threads:{regex:/\bBarcelona/i,name:"Threads"},tiktok:{regex:/musical_ly|Bytedance/i,name:"TikTok"},snapchat:{regex:/Snapchat/i,name:"Snapchat"},linkedin:{regex:/LinkedInApp/i,name:"LinkedIn"},gsa:{regex:/GSA/i,name:"Google Search App"},whatsapp:{regex:/\b(WAiOS|WA4A)\//i,name:"WhatsApp"}},Ar=Object.keys(nt),Dr=s=>Ar.find(e=>nt[e].regex.test(s)),Rr=["WebView","(iPhone|iPod|iPad)(?!.*Safari/)","Android.*wv\\)"],kr=new RegExp(`${Rr.map(s=>`(${s})`).join("|")}`,"i");var zr=(s={})=>{var e,t;let{skip:i,ua:r=""}=s,n=r||Mr();if(!n)return Te(Pe({},Ce),{ua:n});let o=c=>Pr({skip:i,appKey:c,ua:n}),a=Dr(n);if(a||n.match(kr)!==null)return o(a)?Te(Pe({},Ce),{ua:n,skipped:!0}):{isInApp:!0,appKey:a,appName:a?nt[a].name:void 0,ua:n,skipped:!1};let l=Cr();return l?o(l)?Te(Pe({},Ce),{ua:n,skipped:!0}):{isInApp:!0,appKey:l,appName:(t=(e=Mi)==null?void 0:e[l])==null?void 0:t.name,ua:n,skipped:!1}:Te(Pe({},Ce),{ua:n})};var Ii=zr;var Pi={version:"5.4.0"};function Ae(s,e){return!Array.isArray(e)||e.length===0?s:e.reduce((t,i)=>Math.abs(i-s)<Math.abs(t-s)?i:t)}var B=typeof window!="undefined",v=B?document:void 0,I=B?v.documentElement:void 0,T=B?v.body:void 0;function A(s){return typeof s=="number"}function P(s){if(!B)return 0;let e=b();if(window.vevet5_toPixelsCache||(window.vevet5_toPixelsCache=new Map,e.onResize("any",()=>{window.vevet5_toPixelsCache.clear()},{name:"toPixels"})),window.vevet5_toPixelsCache.has(s))return window.vevet5_toPixelsCache.get(s);let t=0,i=parseFloat(`${s}`);return A(s)?t=s:Number.isNaN(i)?t=0:s.includes("rem")?t=i*e.rem:s.includes("vw")?t=i*e.vw:s.includes("vh")?t=i*e.vh:s.includes("svh")?t=i*e.svh:s.includes("px")&&(t=i),window.vevet5_toPixelsCache.set(s,t),t}var Ti=0;function me(s="id"){return Ti+=1,`${s}_${Ti}`}function _(s,e,t){let i=t.value;t.value=function(...n){if(!this._isDestroyed)return i.apply(this,n)}}function ot(s){try{s()}catch(e){console.error(e)}}var _e=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},Nr=function(s,e){var t={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&e.indexOf(i)<0&&(t[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(s);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(s,i[r])&&(t[i[r]]=s[i[r]]);return t},z=class{constructor(e={}){this._props=e,this._isDestroyed=!1,this._list=[]}get list(){return this._list}add(e,t,i={}){let r=me("callback");return this._list.push(Object.assign(Object.assign({},i),{id:r,target:e,action:t})),{id:r,remove:()=>this.remove(r)}}on(e,t,i={}){let r=this.add(e,t,i);return()=>{r.remove()}}remove(e){return this._remove(e)}_remove(e,t=!1){return this._list=this._list.filter(r=>!!(r.id!==e||r.protected&&!t)),!this._list.some(({id:r})=>r===e)}_removeAll(){for(;this._list.length>0;)this._remove(this._list[0].id,!0)}_callAction(e,t){var{id:i,timeout:r,action:n}=e,o=Nr(e,["id","timeout","action"]);let{ctx:a}=this._props;r?setTimeout(()=>ot(()=>n(t,a)),r):ot(()=>n(t,a)),o.once&&this._remove(i,!0)}emit(e,t){this._list.forEach(i=>{i.target===e&&this._callAction(i,t)})}destroy(){this._removeAll(),this._isDestroyed=!0}};_e([_],z.prototype,"add",null);_e([_],z.prototype,"on",null);_e([_],z.prototype,"remove",null);_e([_],z.prototype,"emit",null);_e([_],z.prototype,"destroy",null);function y(s,e,t,i){return s.addEventListener(e,t,i),()=>{s.removeEventListener(e,t,i)}}var Gi=ai(Ki());function mt(s){return(0,Gi.default)(s)}function W({callback:s,element:e,viewportTarget:t="width",resizeDebounce:i=0,name:r}){let n=b(),o,a,l=!0,c,h=p=>{o&&(clearTimeout(o),o=void 0),o=setTimeout(()=>s(),p!=null?p:i)};return e&&(a=new ResizeObserver(()=>{if(l){l=!1;return}h(n.props.resizeDebounce+i)}),(Array.isArray(e)?e:[e]).forEach(p=>{a==null||a.observe(p)})),t&&(c=n.onResize(t,()=>h(),{name:r})),{remove:()=>{o&&clearTimeout(o),a==null||a.disconnect(),c==null||c()},resize:()=>s(),debounceResize:()=>h()}}function S(s,e){s.classList.add(e)}function F(s,e){s.classList.remove(e)}function D(s,e,t){s.classList.toggle(e,t)}function Q(s,e){return s.classList.contains(e)}function Ji({prefix:s,applyClassNames:e}){let t=new z,i=!1;v.readyState==="complete"?setTimeout(()=>r(),0):y(window,"load",()=>r());function r(){let{body:o}=document;i=!0,e&&(F(I,`${s}loading`),F(o,`${s}loading`),S(I,`${s}loaded`)),t.emit("loaded",void 0)}function n(o){return i?(o(),()=>{}):t.on("loaded",()=>o())}return{onLoad:n,getIsLoaded:()=>i}}function Zi({prefix:s,props:e,isMobile:t,isInApp:i}){let r=v.getElementById("vevet_css_preset");r||(r=v.createElement("style"),r.id="vevet_css_preset",T.appendChild(r));let n=v.createElement("div"),{style:o}=n;n.id="vevet_svh_helper",o.position="fixed",o.top="-100svh",o.left="-100px",o.width="1px",o.height="100svh",T.appendChild(n);let a=new z,l={width:0,height:0,sHeight:0,vw:0,vh:0,svh:0,scrollbarWidth:0,rem:16,landscape:!1,portrait:!1,dpr:window.devicePixelRatio,lowerDpr:window.devicePixelRatio};g(),f(),u();let c;function h(){c&&(clearTimeout(c),c=void 0),e.resizeDebounce?c=setTimeout(()=>d(),e.resizeDebounce):d()}y(window,"resize",()=>h());let p=new ResizeObserver(()=>h());p.observe(I),p.observe(T);function d(){let{width:m,height:O}=l;g(),f(),u();let{width:E,height:M}=l;a.emit("trigger",void 0),(E!==m||M!==O)&&a.emit("any",void 0),E!==m&&M===O&&a.emit("onlyWidth",void 0),M!==O&&E===m&&a.emit("onlyHeight",void 0),E!==m&&M!==O&&a.emit("both",void 0),E!==m&&a.emit("width",void 0),M!==O&&a.emit("height",void 0)}function g(){let{width:m}=l,O=getComputedStyle(I);if(l.width=window.innerWidth,l.height=window.innerHeight,l.scrollbarWidth=window.innerWidth-I.clientWidth,l.vw=l.width/100,l.vh=l.height/100,l.rem=parseFloat(O.fontSize),l.landscape=l.width>l.height,l.portrait=l.width<l.height,l.dpr=window.devicePixelRatio,l.lowerDpr=t?Math.min(l.dpr,2):1,t&&i){let E=I.clientHeight;(m!==l.width||!l.sHeight||m===l.width&&E<l.sHeight)&&(l.sHeight=E,l.svh=l.sHeight/100)}else l.svh=n.clientHeight/100||I.clientHeight/100,l.sHeight=l.svh*100}function f(){e.applyClassNames&&(D(I,`${s}landscape`,l.landscape),D(I,`${s}portrait`,l.portrait))}function u(){r.innerHTML=`
|
|
2
2
|
html {
|
|
3
3
|
--vw: ${l.vw}px;
|
|
4
4
|
--vh: ${l.vh}px;
|
|
5
5
|
--svh: ${l.svh}px;
|
|
6
6
|
--scrollbar-width: ${l.scrollbarWidth}px;
|
|
7
7
|
}
|
|
8
|
-
`}return{data:l,callbacks:a}}function
|
|
8
|
+
`}return{data:l,callbacks:a}}function es(s){var e;let i=Object.assign(Object.assign({},{resizeDebounce:0,easing:[.25,.1,.25,1],applyClassNames:!1}),s),r="v-",n=pi(),o=Ie(),a=(e=(n==null?void 0:n.os)||"")===null||e===void 0?void 0:e.split(" ")[0].toLowerCase(),l=((n==null?void 0:n.name)||"").toLowerCase(),c=o.phone||o.tablet,{isInApp:h,appName:p}=Ii(),d=h?(p||"unknown").toLowerCase():!1,g=Ji({prefix:r,applyClassNames:i.applyClassNames}),f=Zi({prefix:r,props:i,isMobile:c,isInApp:h}),u=Object.assign(Object.assign({},f.data),{viewportCallbacks:f.callbacks,version:Pi.version,props:i,prefix:r,phone:o.phone,tablet:o.tablet,mobile:c,osName:a,browserName:l,inAppBrowser:d,doc:v,html:I,body:T,loaded:!1,onLoad:g.onLoad,onResize:(...m)=>f.callbacks.on(...m)});return g.onLoad(()=>{u.loaded=!0}),f.callbacks.add("trigger",()=>{Object.keys(f.data).forEach(O=>{u[O]=f.data[O]})},{protected:!0,name:"vevet core"}),function(){i.applyClassNames&&(S(I,`${r}os-${a}`),S(I,`${r}browser-${l}`),D(I,`${r}phone`,u.phone),D(I,`${r}tablet`,u.tablet),D(I,`${r}mobile`,u.mobile))}(),u}function b(){var s;if(window.vevet5)return window.vevet5;let e=(s=window.VEVET_PROPS)!==null&&s!==void 0?s:{},t=es(e);return window.vevet5=t,window.vevet5}B&&(window.vevet5=b());var ts=`var presetVevetCss = function update() {
|
|
9
9
|
if (window.vevet5) {
|
|
10
10
|
return;
|
|
11
11
|
}
|
|
@@ -33,13 +33,13 @@ var presetVevetCssObserver = new ResizeObserver(presetVevetCss);
|
|
|
33
33
|
presetVevetCssObserver.observe(document.documentElement);
|
|
34
34
|
presetVevetCssObserver.observe(document.body);
|
|
35
35
|
|
|
36
|
-
presetVevetCss();`;function y(i,e=0,t=1){let s=Math.min(e,t),r=Math.max(e,t);return Math.max(s,Math.min(i,r))}function Q(i,e=0,t=1){return(i-e)/(t-e)}function je(i,e=[0,1],t=[0,1]){let s=Q(i,e[0],e[1]);return y(s,t[0],t[1])}function B(i,e,t,s=0){let r=i+(e-i)*t;return Math.abs(e-r)<=s?e:r}function ut(i,e,t,s,r=0){return B(i,e,1-Math.exp(-t*60*(s/1e3)),r)}var ft=i=>2.70158*i*i*i-1.70158*i*i;var Y=i=>i<.36363636363636365?7.5625*i*i:i<.7272727272727273?7.5625*(i-=.5454545454545454)*i+.75:i<.9090909090909091?7.5625*(i-=.8181818181818182)*i+.9375:7.5625*(i-=.9545454545454546)*i+.984375;var mt=i=>1-Y(1-i);var _t=i=>1-Math.sqrt(1-Math.pow(i,2));var gt=i=>Math.pow(i,3);var vt=i=>{let e=2*Math.PI/3;return i===0?0:i===1?1:-Math.pow(2,10*i-10)*Math.sin((i*10-10.75)*e)};var bt=i=>i===0?0:Math.pow(2,10*i-10);var wt=i=>{let t=2.5949095;return i<.5?Math.pow(2*i,2)*((t+1)*2*i-t)/2:(Math.pow(2*i-2,2)*((t+1)*(i*2-2)+t)+2)/2};var yt=i=>i<.5?(1-Y(1-2*i))/2:(1+Y(2*i-1))/2;var xt=i=>i<.5?(1-Math.sqrt(1-Math.pow(2*i,2)))/2:(Math.sqrt(1-Math.pow(-2*i+2,2))+1)/2;var St=i=>i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2;var Et=i=>{let e=2*Math.PI/4.5;return i===0?0:i===1?1:i<.5?-(Math.pow(2,20*i-10)*Math.sin((20*i-11.125)*e))/2:Math.pow(2,-20*i+10)*Math.sin((20*i-11.125)*e)/2+1};var Ot=i=>i===0?0:i===1?1:i<.5?Math.pow(2,20*i-10)/2:(2-Math.pow(2,-20*i+10))/2;var Mt=i=>i<.5?2*i*i:1-Math.pow(-2*i+2,2)/2;var It=i=>i<.5?8*i*i*i*i:1-Math.pow(-2*i+2,4)/2;var Pt=i=>i<.5?16*i*i*i*i*i:1-Math.pow(-2*i+2,5)/2;var Tt=i=>-(Math.cos(Math.PI*i)-1)/2;var Ct=i=>Math.pow(i,2);var At=i=>Math.pow(i,4);var Rt=i=>Math.pow(i,5);var Dt=i=>1-Math.cos(i*Math.PI/2);var zt=i=>1+2.70158*Math.pow(i-1,3)+1.70158*Math.pow(i-1,2);var jt=i=>Math.sqrt(1-Math.pow(i-1,2));var ee=i=>1-Math.pow(1-i,3);var kt=i=>{let e=2*Math.PI/3;return i===0?0:i===1?1:Math.pow(2,-10*i)*Math.sin((i*10-.75)*e)+1};var Nt=i=>i===1?1:1-Math.pow(2,-10*i);var $t=i=>1-Math.pow(1-i,2);var Bt=i=>1-Math.pow(1-i,4);var Wt=i=>1-Math.pow(1-i,5);var Lt=i=>Math.sin(i*Math.PI/2);function Ji(i,e){let[t,s,r,n]=e;if(t===s&&r===n)return i;let o=[];for(let a=0;a<11;++a)o[a]=ke(a*.1,t,r);return i===0?0:i===1?1:ke($r(e,i,o),s,n)}function ke(i,e,t){return((Zi(e,t)*i+es(e,t))*i+ts(e))*i}function Zi(i,e){return 1-3*e+3*i}function es(i,e){return 3*e-6*i}function ts(i){return 3*i}function $r(i,e,t){let s=i[0],r=i[2],n=0,o=1;for(;o!==10&&t[o]<=e;++o)n+=.1;--o;let a=(e-t[o])/(t[o+1]-t[o]),l=n+a*.1,c=is(l,s,r);return c>=.001?Br(e,l,s,r):c===0?l:Wr(e,n,n+.1,s,r)}function is(i,e,t){return 3*Zi(e,t)*i*i+2*es(e,t)*i+ts(e)}function Br(i,e,t,s){for(let r=0;r<4;++r){let n=is(e,t,s);if(n===0)return e;let o=ke(e,t,s)-i;e-=o/n}return e}function Wr(i,e,t,s,r){let n,o,a=0;do o=e+(t-e)/2,n=ke(o,s,r)-i,n>0?t=o:e=o;while(Math.abs(n)>1e-7&&++a<10);return o}function ss(i,e=!1){return Array.isArray(e)?Ji(i,e):typeof e=="function"?e(i):i}var Vt=(i,e)=>{var t;return e===void 0&&(e=(t=v().props.easing)!==null&&t!==void 0?t:!1),ss(i,e)};function Ft(i,e=0,t=1){let s=Math.min(e,t),r=Math.max(e,t);return i>=s&&i<=r}function W(i,e,t){let s=t-e;return((i-e)%s+s)%s+e}function rs(i,e){let r=Object.keys(e).filter(n=>e[n]!==void 0).reduce((n,o)=>(n[o]=e[o],n),{});return Object.assign(Object.assign({},i),r)}var Ht=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},x=class{_getStatic(){return{__staticProp:null}}_getMutable(){return{__mutableProp:null}}get props(){return this._props}get prefix(){return v().prefix}get name(){return this.constructor.name}get isDestroyed(){return this._isDestroyed}get callbacks(){return this._callbacks}constructor(e,t){this._isDestroyed=!1,this._destroyable=[],this._callbacks=new R({ctx:this}),this._props=rs(Object.assign(Object.assign({},this._getStatic()),this._getMutable()),Object.assign({},e)),t&&Object.keys(t).filter(r=>r.startsWith("on")).forEach(r=>{let n=r.slice(2);n=n.charAt(0).toLowerCase()+n.slice(1),this._callbacks.on(n,t[r])})}_handleProps(){this.callbacks.emit("props",void 0)}updateProps(e){this._props=Object.assign(Object.assign({},this._props),e),this._handleProps()}onDestroy(e){if(this.isDestroyed){e();return}this._destroyable.push(e)}on(e,t,s={}){return this.callbacks.on(e,t,s)}_cn(...e){return e.map(t=>`${this.prefix}${t}`).join(" ")}_addTempClassName(e,t){K(e,t)||(S(e,t),this.onDestroy(()=>V(e,t)))}destroy(){this._destroy()}_destroy(){this._callbacks.emit("destroy",void 0),this._callbacks.destroy(),this._destroyable.forEach(e=>e()),this._isDestroyed=!0}};Ht([g],x.prototype,"updateProps",null);Ht([g],x.prototype,"on",null);Ht([g],x.prototype,"destroy",null);var Lr=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},Ne=class{get props(){return this._props}constructor(e,t,s){this._source=e,this._rules=t,this._onChange=s,this._isDestroyed=!1,this._destructors=[],this._prevBreakpoints="[]";let r=e,n=v(),o=r instanceof x?r.name:"Object";if(this._fetchInitProps(),this._props=Object.assign({},this._initProps),r instanceof x){r.on("destroy",()=>this.destroy(),{name:this.constructor.name,protected:!0});let a=r.updateProps.bind(r);r.updateProps=l=>{a(l),this._initProps=Object.assign(Object.assign({},this._initProps),l)},Object.defineProperty(r,"_$_responseProps",{value:l=>{a(l)}})}this._handleUpdate(),this._destructors.push(n.onResize("any",()=>this._handleUpdate(),{name:`${this.constructor.name} / ${o}`}))}_fetchInitProps(){let e=this._source;if(e instanceof x){this._initProps={},Object.keys(e._getMutable()).forEach(s=>{this._initProps[s]=e.props[s]});return}this._initProps=this._source}_getActiveRules(){let e=v();return this._rules.filter(({at:s})=>s==="tablet "&&e.tablet||s==="phone"&&e.phone||s==="mobile"&&e.mobile||s==="non_mobile"&&!e.mobile||s==="portrait"&&e.portrait||s==="landscape"&&e.landscape?!0:s.startsWith("@media")?window.matchMedia(s.replace("@media","")).matches:!1)}_getResponsiveProps(){let e=this._getActiveRules(),t={};return e.forEach(({props:s})=>{t=Object.assign(Object.assign({},t),s)}),t}_handleUpdate(){var e;let s=this._getActiveRules().map(({at:n})=>n),r=JSON.stringify(s);this._prevBreakpoints!==r&&(this._prevBreakpoints=r,this._props=Object.assign(Object.assign({},this._initProps),this._getResponsiveProps()),this._source instanceof x&&this._source._$_responseProps(this._props),(e=this._onChange)===null||e===void 0||e.call(this,this.props))}destroy(){this._isDestroyed=!0,this._destructors.forEach(e=>e())}};Lr([g],Ne.prototype,"destroy",null);var ns=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},G=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{container:null,append:!0,resizeOnInit:!0,resizeOnRuntime:!1,viewportTarget:"any",resizeDebounce:0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{width:"auto",height:"auto",dpr:"auto"})}get canvas(){return this._canvas}get ctx(){return this._ctx}get width(){return this._width}get offsetWidth(){return this.width/this.dpr}get height(){return this._height}get offsetHeight(){return this.height/this.dpr}get dpr(){return this._dpr}get canRender(){return this.width>0&&this.height>0}constructor(e,t){super(e,t);let{append:s,container:r,resizeOnInit:n,resizeOnRuntime:o,viewportTarget:a,resizeDebounce:l}=this.props;this._width=0,this._height=0,this._dpr=1,this._canvas=_.createElement("canvas");let{style:c}=this._canvas;if(c.position="absolute",c.top="0",c.left="0",c.width="100%",c.height="100%",s&&r instanceof HTMLElement&&(r.append(this._canvas),this.onDestroy(()=>this.canvas.remove())),this._ctx=this._canvas.getContext("2d"),n&&this.resize(),o){let h=$({callback:()=>this.resize(),element:this.props.container,viewportTarget:a,resizeDebounce:l,name:this.name});this.onDestroy(()=>h.remove())}}_handleProps(){super._handleProps(),this.resize()}resize(){let e=v(),{props:t,canvas:s}=this,{container:r}=this.props;this._dpr=k(t.dpr)?t.dpr:e.dpr;let n=0,o=0;t.width==="auto"?n=(r==null?void 0:r.offsetWidth)||e.width:n=t.width,t.height==="auto"?o=(r==null?void 0:r.offsetHeight)||e.height:o=t.height,n*=this._dpr,o*=this._dpr,this._width=n,this._height=o,s.width=n,s.height=o,this.callbacks.emit("resize",void 0)}render(e){this.canRender&&e({ctx:this.ctx,width:this.width,height:this.height,dpr:this.dpr,offsetWidth:this.offsetWidth,offsetHeight:this.offsetHeight,canvas:this.canvas})}};ns([g],G.prototype,"resize",null);ns([g],G.prototype,"render",null);function $e(i){let e=Fr(i),t=Vr(i),s;return i.rule==="cover"?s=Hr(i,e,t):i.rule==="contain"?s=Ur(i,e,t):i.rule==="top-left"?s=Xr(i,t):i.rule==="top-right"?s=Qr(i,e,t):i.rule==="bottom-left"?s=qr(i,e,t):i.rule==="bottom-right"?s=Kr(i,e,t):i.rule==="center"&&(s=Yr(i,e,t)),Object.assign(s,{sourceWidth:t.width,sourceHeight:t.height})}function C(i){return typeof i.scale!="undefined"?i.scale:1}function Vr(i){let{source:e}=i;return i.sourceWidth&&i.sourceHeight?{width:i.sourceWidth,height:i.sourceHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:{width:e.width,height:e.height}}function Fr(i){return"container"in i?{width:i.container.clientWidth,height:i.container.clientHeight}:{width:i.width,height:i.height}}function Hr(i,e,t){let s=e.width*C(i),r=t.height*s/t.width;r/C(i)<e.height&&(r=e.height*C(i),s=t.width*r/t.height);let n=(e.width-s)/2,o=(e.height-r)/2;return{width:s,height:r,x:n,y:o}}function Ur(i,e,t){let s=0,r=0,n=t.width/t.height;e.width>e.height?(r=e.height,s=r*n,s>e.width&&(s=e.width,r=s/n)):e.height>=e.width&&(s=e.width,r=s/n,r>e.height&&(r=e.height,s=r*n)),s*=C(i),r*=C(i);let o=(e.width-s)/2,a=(e.height-r)/2;return{width:s,height:r,x:o,y:a}}function Xr(i,e){let t=e.width*C(i),s=e.height*C(i);return{width:t,height:s,x:0,y:0}}function Qr(i,e,t){let s=t.width*C(i),r=t.height*C(i),n=e.width-t.width;return{width:s,height:r,x:n,y:0}}function qr(i,e,t){let s=t.width*C(i),r=t.height*C(i),n=e.height-t.height;return{width:s,height:r,x:0,y:n}}function Kr(i,e,t){let s=t.width*C(i),r=t.height*C(i),n=e.width-t.width,o=e.height-t.height;return{width:s,height:r,x:n,y:o}}function Yr(i,e,t){let s=t.width*C(i),r=t.height*C(i),n=(e.width-t.width)/2,o=(e.height-t.height)/2;return{width:s,height:r,x:n,y:o}}var os=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},_e=class extends G{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{autoRenderVideo:!0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{rule:"cover"})}constructor(e,t){super(e,t),this._setMediaEvents()}get hasRequestVideoFrameCallback(){return"requestVideoFrameCallback"in this.props.media}_setMediaEvents(){let{autoRenderVideo:e,media:t}=this.props;if(!e||!(t instanceof HTMLVideoElement))return;if(this.hasRequestVideoFrameCallback){this._requestVideoFrame();return}let s=w(t,"timeupdate",()=>{this.render()});this.onDestroy(()=>s())}resize(){super.resize(),this.render()}_requestVideoFrame(){if(this.isDestroyed)return;this.render();let{media:e}=this.props;e instanceof HTMLVideoElement&&e.requestVideoFrameCallback(()=>this._requestVideoFrame())}render(){super.render(e=>this._prerender(e))}_prerender({width:e,height:t,ctx:s}){let{media:r,rule:n}=this.props,o,a,l;r instanceof G?(o=r.canvas,a=r.width,l=r.height):o=r;let c=$e({source:o,sourceWidth:a,sourceHeight:l,rule:n,scale:1,width:e,height:t});s.clearRect(0,0,e,t),s.drawImage(o,c.x,c.y,c.width,c.height),this.callbacks.emit("render",void 0)}};os([g],_e.prototype,"resize",null);os([g],_e.prototype,"render",null);var as=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},L=class extends x{_getStatic(){return Object.assign({},super._getStatic())}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{fps:"auto",enabled:!1,fpsRecalcFrames:10})}get isPlaying(){return this._isPlaying}get timestamp(){var e;return(e=this._timestamp)!==null&&e!==void 0?e:0}get index(){return this._index}get fps(){return this._fps}get duration(){return this._duration}get fpsFactor(){return 60/this.fps}constructor(e,t){super(e,t),this._isPlaying=!1,this._raf=null,this._lastTimestamp=null,this._timestamp=null,this._index=0,this._fps=60,this._duration=0,this._fps=this.props.fps==="auto"?this._fps:this.props.fps,this.props.enabled&&this._play()}_handleProps(){super._handleProps(),this._lastTimestamp=null,this.props.enabled?this._play():this._pause()}play(){this.props.enabled||this.updateProps({enabled:!0})}_play(){this.isPlaying||(this._isPlaying=!0,this.callbacks.emit("play",void 0),this.callbacks.emit("toggle",void 0),this._raf=window.requestAnimationFrame(this._animate.bind(this)))}pause(){this.props.enabled&&this.updateProps({enabled:!1})}_pause(){this.isPlaying&&(this._raf&&(window.cancelAnimationFrame(this._raf),this._raf=null),this._isPlaying=!1,this.callbacks.emit("pause",void 0),this.callbacks.emit("toggle",void 0))}_animate(){var e,t;if(!this._isPlaying)return;this._raf=window.requestAnimationFrame(this._animate.bind(this));let s=this.props.fps==="auto"?1:1e3/this.props.fps;this._timestamp=performance.now(),(e=this._lastTimestamp)!==null&&e!==void 0||(this._lastTimestamp=this._timestamp);let r=this._timestamp-((t=this._lastTimestamp)!==null&&t!==void 0?t:this._timestamp);r<s||(this._duration=r,this._lastTimestamp=this._timestamp,this._index+=1,this._computeFPS(),this.callbacks.emit("frame",{fps:this.fps,fpsFactor:this.fpsFactor,duration:this.duration,lerpFactor:this.lerpFactor.bind(this)}))}lerpFactor(e){return 1-Math.exp(-e*60*(this.duration/1e3))}_computeFPS(){let{duration:e,index:t,props:s}=this;if(t>10&&t%s.fpsRecalcFrames!==0||e<=0||e>250)return;let o=1e3/60/e;this._fps=Math.round(60*o)||1}_destroy(){this.pause(),super._destroy()}};as([g],L.prototype,"play",null);as([g],L.prototype,"pause",null);var ae=null;function ls(i){return ae||(ae=_.createElement("style"),M.appendChild(ae),ae.innerHTML=`
|
|
37
|
-
.${
|
|
38
|
-
.${
|
|
36
|
+
presetVevetCss();`;function w(s,e=0,t=1){let i=Math.min(e,t),r=Math.max(e,t);return Math.max(i,Math.min(s,r))}function U(s,e=0,t=1){return(s-e)/(t-e)}function je(s,e=[0,1],t=[0,1]){let i=U(s,e[0],e[1]);return w(i,t[0],t[1])}function C(s,e,t,i=0){let r=s+(e-s)*t;return Math.abs(e-r)<=i?e:r}function _t(s,e,t,i,r=0){return C(s,e,1-Math.exp(-t*60*(i/1e3)),r)}var gt=s=>2.70158*s*s*s-1.70158*s*s;var K=s=>s<.36363636363636365?7.5625*s*s:s<.7272727272727273?7.5625*(s-=.5454545454545454)*s+.75:s<.9090909090909091?7.5625*(s-=.8181818181818182)*s+.9375:7.5625*(s-=.9545454545454546)*s+.984375;var vt=s=>1-K(1-s);var bt=s=>1-Math.sqrt(1-Math.pow(s,2));var wt=s=>Math.pow(s,3);var yt=s=>{let e=2*Math.PI/3;return s===0?0:s===1?1:-Math.pow(2,10*s-10)*Math.sin((s*10-10.75)*e)};var xt=s=>s===0?0:Math.pow(2,10*s-10);var St=s=>{let t=2.5949095;return s<.5?Math.pow(2*s,2)*((t+1)*2*s-t)/2:(Math.pow(2*s-2,2)*((t+1)*(s*2-2)+t)+2)/2};var Et=s=>s<.5?(1-K(1-2*s))/2:(1+K(2*s-1))/2;var Ot=s=>s<.5?(1-Math.sqrt(1-Math.pow(2*s,2)))/2:(Math.sqrt(1-Math.pow(-2*s+2,2))+1)/2;var Mt=s=>s<.5?4*s*s*s:1-Math.pow(-2*s+2,3)/2;var It=s=>{let e=2*Math.PI/4.5;return s===0?0:s===1?1:s<.5?-(Math.pow(2,20*s-10)*Math.sin((20*s-11.125)*e))/2:Math.pow(2,-20*s+10)*Math.sin((20*s-11.125)*e)/2+1};var Pt=s=>s===0?0:s===1?1:s<.5?Math.pow(2,20*s-10)/2:(2-Math.pow(2,-20*s+10))/2;var Tt=s=>s<.5?2*s*s:1-Math.pow(-2*s+2,2)/2;var Ct=s=>s<.5?8*s*s*s*s:1-Math.pow(-2*s+2,4)/2;var At=s=>s<.5?16*s*s*s*s*s:1-Math.pow(-2*s+2,5)/2;var Dt=s=>-(Math.cos(Math.PI*s)-1)/2;var Rt=s=>Math.pow(s,2);var kt=s=>Math.pow(s,4);var zt=s=>Math.pow(s,5);var jt=s=>1-Math.cos(s*Math.PI/2);var Nt=s=>1+2.70158*Math.pow(s-1,3)+1.70158*Math.pow(s-1,2);var $t=s=>Math.sqrt(1-Math.pow(s-1,2));var ee=s=>1-Math.pow(1-s,3);var Bt=s=>{let e=2*Math.PI/3;return s===0?0:s===1?1:Math.pow(2,-10*s)*Math.sin((s*10-.75)*e)+1};var Wt=s=>s===1?1:1-Math.pow(2,-10*s);var Lt=s=>1-Math.pow(1-s,2);var Vt=s=>1-Math.pow(1-s,4);var Ft=s=>1-Math.pow(1-s,5);var Ht=s=>Math.sin(s*Math.PI/2);function is(s,e){let[t,i,r,n]=e;if(t===i&&r===n)return s;let o=[];for(let a=0;a<11;++a)o[a]=Ne(a*.1,t,r);return s===0?0:s===1?1:Ne(Vr(e,s,o),i,n)}function Ne(s,e,t){return((ss(e,t)*s+rs(e,t))*s+ns(e))*s}function ss(s,e){return 1-3*e+3*s}function rs(s,e){return 3*e-6*s}function ns(s){return 3*s}function Vr(s,e,t){let i=s[0],r=s[2],n=0,o=1;for(;o!==10&&t[o]<=e;++o)n+=.1;--o;let a=(e-t[o])/(t[o+1]-t[o]),l=n+a*.1,c=os(l,i,r);return c>=.001?Fr(e,l,i,r):c===0?l:Hr(e,n,n+.1,i,r)}function os(s,e,t){return 3*ss(e,t)*s*s+2*rs(e,t)*s+ns(e)}function Fr(s,e,t,i){for(let r=0;r<4;++r){let n=os(e,t,i);if(n===0)return e;let o=Ne(e,t,i)-s;e-=o/n}return e}function Hr(s,e,t,i,r){let n,o,a=0;do o=e+(t-e)/2,n=Ne(o,i,r)-s,n>0?t=o:e=o;while(Math.abs(n)>1e-7&&++a<10);return o}function as(s,e=!1){return Array.isArray(e)?is(s,e):typeof e=="function"?e(s):s}var Xt=(s,e)=>{var t;return e===void 0&&(e=(t=b().props.easing)!==null&&t!==void 0?t:!1),as(s,e)};function Ut(s,e=0,t=1){let i=Math.min(e,t),r=Math.max(e,t);return s>=i&&s<=r}function L(s,e,t){let i=t-e;return((s-e)%i+i)%i+e}function ls(s,e){let r=Object.keys(e).filter(n=>e[n]!==void 0).reduce((n,o)=>(n[o]=e[o],n),{});return Object.assign(Object.assign({},s),r)}var Yt=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},x=class{_getStatic(){return{__staticProp:null}}_getMutable(){return{__mutableProp:null}}get props(){return this._props}get prefix(){return b().prefix}get name(){return this.constructor.name}get isDestroyed(){return this._isDestroyed}get callbacks(){return this._callbacks}constructor(e,t){this._isDestroyed=!1,this._destroyable=[],this._callbacks=new z({ctx:this}),this._props=ls(Object.assign(Object.assign({},this._getStatic()),this._getMutable()),Object.assign({},e)),t&&Object.keys(t).filter(r=>r.startsWith("on")).forEach(r=>{let n=r.slice(2);n=n.charAt(0).toLowerCase()+n.slice(1),this._callbacks.on(n,t[r])})}_handleProps(){this.callbacks.emit("props",void 0)}updateProps(e){this._props=Object.assign(Object.assign({},this._props),e),this._handleProps()}onDestroy(e){if(this.isDestroyed){e();return}this._destroyable.push(e)}on(e,t,i={}){return this.callbacks.on(e,t,i)}_cn(...e){return e.map(t=>`${this.prefix}${t}`).join(" ")}_addTempClassName(e,t){Q(e,t)||(S(e,t),this.onDestroy(()=>F(e,t)))}destroy(){this._destroy()}_destroy(){this._callbacks.emit("destroy",void 0),this._callbacks.destroy(),this._destroyable.forEach(e=>e()),this._isDestroyed=!0}};Yt([_],x.prototype,"updateProps",null);Yt([_],x.prototype,"on",null);Yt([_],x.prototype,"destroy",null);var Xr=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},$e=class{get props(){return this._props}constructor(e,t,i){this._source=e,this._rules=t,this._onChange=i,this._isDestroyed=!1,this._destructors=[],this._prevBreakpoints="[]";let r=e,n=b(),o=r instanceof x?r.name:"Object";if(this._fetchInitProps(),this._props=Object.assign({},this._initProps),r instanceof x){r.on("destroy",()=>this.destroy(),{name:this.constructor.name,protected:!0});let a=r.updateProps.bind(r);r.updateProps=l=>{a(l),this._initProps=Object.assign(Object.assign({},this._initProps),l)},Object.defineProperty(r,"_$_responseProps",{value:l=>{a(l)}})}this._handleUpdate(),this._destructors.push(n.onResize("any",()=>this._handleUpdate(),{name:`${this.constructor.name} / ${o}`}))}_fetchInitProps(){let e=this._source;if(e instanceof x){this._initProps={},Object.keys(e._getMutable()).forEach(i=>{this._initProps[i]=e.props[i]});return}this._initProps=this._source}_getActiveRules(){let e=b();return this._rules.filter(({at:i})=>i==="tablet "&&e.tablet||i==="phone"&&e.phone||i==="mobile"&&e.mobile||i==="non_mobile"&&!e.mobile||i==="portrait"&&e.portrait||i==="landscape"&&e.landscape?!0:i.startsWith("@media")?window.matchMedia(i.replace("@media","")).matches:!1)}_getResponsiveProps(){let e=this._getActiveRules(),t={};return e.forEach(({props:i})=>{t=Object.assign(Object.assign({},t),i)}),t}_handleUpdate(){var e;let i=this._getActiveRules().map(({at:n})=>n),r=JSON.stringify(i);this._prevBreakpoints!==r&&(this._prevBreakpoints=r,this._props=Object.assign(Object.assign({},this._initProps),this._getResponsiveProps()),this._source instanceof x&&this._source._$_responseProps(this._props),(e=this._onChange)===null||e===void 0||e.call(this,this.props))}destroy(){this._isDestroyed=!0,this._destructors.forEach(e=>e())}};Xr([_],$e.prototype,"destroy",null);var cs=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},G=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{container:null,append:!0,resizeOnInit:!0,resizeOnRuntime:!1,viewportTarget:"any",resizeDebounce:0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{width:"auto",height:"auto",dpr:"auto"})}get canvas(){return this._canvas}get ctx(){return this._ctx}get width(){return this._width}get offsetWidth(){return this.width/this.dpr}get height(){return this._height}get offsetHeight(){return this.height/this.dpr}get dpr(){return this._dpr}get canRender(){return this.width>0&&this.height>0}constructor(e,t){super(e,t);let{append:i,container:r,resizeOnInit:n,resizeOnRuntime:o,viewportTarget:a,resizeDebounce:l}=this.props;this._width=0,this._height=0,this._dpr=1,this._canvas=v.createElement("canvas");let{style:c}=this._canvas;if(c.position="absolute",c.top="0",c.left="0",c.width="100%",c.height="100%",i&&r instanceof HTMLElement&&(r.append(this._canvas),this.onDestroy(()=>this.canvas.remove())),this._ctx=this._canvas.getContext("2d"),n&&this.resize(),o){let h=W({callback:()=>this.resize(),element:this.props.container,viewportTarget:a,resizeDebounce:l,name:this.name});this.onDestroy(()=>h.remove())}}_handleProps(){super._handleProps(),this.resize()}resize(){let e=b(),{props:t,canvas:i}=this,{container:r}=this.props;this._dpr=A(t.dpr)?t.dpr:e.dpr;let n=0,o=0;t.width==="auto"?n=(r==null?void 0:r.offsetWidth)||e.width:n=t.width,t.height==="auto"?o=(r==null?void 0:r.offsetHeight)||e.height:o=t.height,n*=this._dpr,o*=this._dpr,this._width=n,this._height=o,i.width=n,i.height=o,this.callbacks.emit("resize",void 0)}render(e){this.canRender&&e({ctx:this.ctx,width:this.width,height:this.height,dpr:this.dpr,offsetWidth:this.offsetWidth,offsetHeight:this.offsetHeight,canvas:this.canvas})}};cs([_],G.prototype,"resize",null);cs([_],G.prototype,"render",null);function Be(s){let e=Yr(s),t=Ur(s),i;return s.rule==="cover"?i=qr(s,e,t):s.rule==="contain"?i=Qr(s,e,t):s.rule==="top-left"?i=Kr(s,t):s.rule==="top-right"?i=Gr(s,e,t):s.rule==="bottom-left"?i=Jr(s,e,t):s.rule==="bottom-right"?i=Zr(s,e,t):s.rule==="center"&&(i=en(s,e,t)),Object.assign(i,{sourceWidth:t.width,sourceHeight:t.height})}function R(s){return typeof s.scale!="undefined"?s.scale:1}function Ur(s){let{source:e}=s;return s.sourceWidth&&s.sourceHeight?{width:s.sourceWidth,height:s.sourceHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:{width:e.width,height:e.height}}function Yr(s){return"container"in s?{width:s.container.clientWidth,height:s.container.clientHeight}:{width:s.width,height:s.height}}function qr(s,e,t){let i=e.width*R(s),r=t.height*i/t.width;r/R(s)<e.height&&(r=e.height*R(s),i=t.width*r/t.height);let n=(e.width-i)/2,o=(e.height-r)/2;return{width:i,height:r,x:n,y:o}}function Qr(s,e,t){let i=0,r=0,n=t.width/t.height;e.width>e.height?(r=e.height,i=r*n,i>e.width&&(i=e.width,r=i/n)):e.height>=e.width&&(i=e.width,r=i/n,r>e.height&&(r=e.height,i=r*n)),i*=R(s),r*=R(s);let o=(e.width-i)/2,a=(e.height-r)/2;return{width:i,height:r,x:o,y:a}}function Kr(s,e){let t=e.width*R(s),i=e.height*R(s);return{width:t,height:i,x:0,y:0}}function Gr(s,e,t){let i=t.width*R(s),r=t.height*R(s),n=e.width-t.width;return{width:i,height:r,x:n,y:0}}function Jr(s,e,t){let i=t.width*R(s),r=t.height*R(s),n=e.height-t.height;return{width:i,height:r,x:0,y:n}}function Zr(s,e,t){let i=t.width*R(s),r=t.height*R(s),n=e.width-t.width,o=e.height-t.height;return{width:i,height:r,x:n,y:o}}function en(s,e,t){let i=t.width*R(s),r=t.height*R(s),n=(e.width-t.width)/2,o=(e.height-t.height)/2;return{width:i,height:r,x:n,y:o}}var hs=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},ge=class extends G{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{autoRenderVideo:!0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{rule:"cover"})}constructor(e,t){super(e,t),this._setMediaEvents()}get hasRequestVideoFrameCallback(){return"requestVideoFrameCallback"in this.props.media}_setMediaEvents(){let{autoRenderVideo:e,media:t}=this.props;if(!e||!(t instanceof HTMLVideoElement))return;if(this.hasRequestVideoFrameCallback){this._requestVideoFrame();return}let i=y(t,"timeupdate",()=>{this.render()});this.onDestroy(()=>i())}resize(){super.resize(),this.render()}_requestVideoFrame(){if(this.isDestroyed)return;this.render();let{media:e}=this.props;e instanceof HTMLVideoElement&&e.requestVideoFrameCallback(()=>this._requestVideoFrame())}render(){super.render(e=>this._prerender(e))}_prerender({width:e,height:t,ctx:i}){let{media:r,rule:n}=this.props,o,a,l;r instanceof G?(o=r.canvas,a=r.width,l=r.height):o=r;let c=Be({source:o,sourceWidth:a,sourceHeight:l,rule:n,scale:1,width:e,height:t});i.clearRect(0,0,e,t),i.drawImage(o,c.x,c.y,c.width,c.height),this.callbacks.emit("render",void 0)}};hs([_],ge.prototype,"resize",null);hs([_],ge.prototype,"render",null);var ds=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},V=class extends x{_getStatic(){return Object.assign({},super._getStatic())}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{fps:"auto",enabled:!1,fpsRecalcFrames:10})}get isPlaying(){return this._isPlaying}get timestamp(){var e;return(e=this._timestamp)!==null&&e!==void 0?e:0}get index(){return this._index}get fps(){return this._fps}get duration(){return this._duration}get fpsFactor(){return 60/this.fps}constructor(e,t){super(e,t),this._isPlaying=!1,this._raf=null,this._lastTimestamp=null,this._timestamp=null,this._index=0,this._fps=60,this._duration=0,this._fps=this.props.fps==="auto"?this._fps:this.props.fps,this.props.enabled&&this._play()}_handleProps(){super._handleProps(),this._lastTimestamp=null,this.props.enabled?this._play():this._pause()}play(){this.props.enabled||this.updateProps({enabled:!0})}_play(){this.isPlaying||(this._isPlaying=!0,this.callbacks.emit("play",void 0),this.callbacks.emit("toggle",void 0),this._raf=window.requestAnimationFrame(this._animate.bind(this)))}pause(){this.props.enabled&&this.updateProps({enabled:!1})}_pause(){this.isPlaying&&(this._raf&&(window.cancelAnimationFrame(this._raf),this._raf=null),this._isPlaying=!1,this.callbacks.emit("pause",void 0),this.callbacks.emit("toggle",void 0))}_animate(){var e,t;if(!this._isPlaying)return;this._raf=window.requestAnimationFrame(this._animate.bind(this));let i=this.props.fps==="auto"?1:1e3/this.props.fps;this._timestamp=performance.now(),(e=this._lastTimestamp)!==null&&e!==void 0||(this._lastTimestamp=this._timestamp);let r=this._timestamp-((t=this._lastTimestamp)!==null&&t!==void 0?t:this._timestamp);r<i||(this._duration=r,this._lastTimestamp=this._timestamp,this._index+=1,this._computeFPS(),this.callbacks.emit("frame",{fps:this.fps,fpsFactor:this.fpsFactor,duration:this.duration,lerpFactor:this.lerpFactor.bind(this)}))}lerpFactor(e){return 1-Math.exp(-e*60*(this.duration/1e3))}_computeFPS(){let{duration:e,index:t,props:i}=this;if(t>10&&t%i.fpsRecalcFrames!==0||e<=0||e>250)return;let o=1e3/60/e;this._fps=Math.round(60*o)||1}_destroy(){this.pause(),super._destroy()}};ds([_],V.prototype,"play",null);ds([_],V.prototype,"pause",null);function We(s){var e;let t=document.querySelector('link[rel="stylesheet"], style');t?(e=t.parentNode)===null||e===void 0||e.insertBefore(s,t):document.head.appendChild(s)}var ae=null;function ps(s){return ae||(ae=v.createElement("style"),We(ae),ae.innerHTML=`
|
|
37
|
+
.${s}-container.${s}-hide-default,
|
|
38
|
+
.${s}-container.${s}-hide-default * {
|
|
39
39
|
cursor: none;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.${
|
|
42
|
+
.${s} {
|
|
43
43
|
position: absolute;
|
|
44
44
|
top: 0;
|
|
45
45
|
left: 0;
|
|
@@ -55,19 +55,19 @@ presetVevetCss();`;function y(i,e=0,t=1){let s=Math.min(e,t),r=Math.max(e,t);ret
|
|
|
55
55
|
--cursor-h: 50px;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.${
|
|
58
|
+
.${s}-in-window {
|
|
59
59
|
position: fixed;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.${
|
|
62
|
+
.${s}-visible {
|
|
63
63
|
opacity: 1;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.${
|
|
66
|
+
.${s}-disabled {
|
|
67
67
|
opacity: 0;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
.${
|
|
70
|
+
.${s}__inner {
|
|
71
71
|
position: relative;
|
|
72
72
|
width: var(--cursor-w);
|
|
73
73
|
height: var(--cursor-h);
|
|
@@ -75,41 +75,38 @@ presetVevetCss();`;function y(i,e=0,t=1){let s=Math.min(e,t),r=Math.max(e,t);ret
|
|
|
75
75
|
margin-top: calc(var(--cursor-h) / -2);
|
|
76
76
|
|
|
77
77
|
background-color: rgba(0, 0, 0, 0.25);
|
|
78
|
-
|
|
79
|
-
transition: transform 0.25s;
|
|
80
78
|
}
|
|
81
79
|
|
|
82
|
-
.${
|
|
80
|
+
.${s}_rtl .${s}__inner {
|
|
83
81
|
margin-right: calc(var(--cursor-w) / -2);
|
|
84
82
|
}
|
|
85
83
|
|
|
86
|
-
.${
|
|
84
|
+
.${s}__inner > * {
|
|
87
85
|
position: absolute;
|
|
88
86
|
top: 50%;
|
|
89
87
|
left: 50%;
|
|
90
|
-
transform:
|
|
88
|
+
transform: translate(-50%, -50%);
|
|
91
89
|
opacity: 0;
|
|
92
|
-
transition: opacity 0.25s linear
|
|
90
|
+
transition: opacity 0.25s linear;
|
|
93
91
|
}
|
|
94
92
|
|
|
95
|
-
.${
|
|
93
|
+
.${s}__inner > *.active {
|
|
96
94
|
opacity: 1;
|
|
97
|
-
transform: scale(1) translate(-50%, -50%);
|
|
98
95
|
}
|
|
99
|
-
`,ae)}function J(i){return window.getComputedStyle(i).direction}var Ut=i=>{let e=`M${i[0].x},${i[0].y}`;for(let t=0;t<i.length-1;t+=1){let s=(i[t].x+i[t+1].x)/2,r=(i[t].y+i[t+1].y)/2;e+=`Q ${i[t].x}, ${i[t].y}, ${s}, ${r}`}return e+=`L ${i[i.length-1].x}, ${i[i.length-1].y}`,e};var Xt=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},le=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{container:window,hideNative:!1,behavior:"default"})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0,width:50,height:50,lerp:.2,autoStop:!0})}get prefix(){return`${v().prefix}cursor`}get container(){return this.props.container}get domContainer(){return this.container instanceof Window?M:this.container}get outer(){return this._outer}get inner(){return this._inner}get hoveredElement(){return this._hoveredElement}set hoveredElement(e){this._hoveredElement=e}get coords(){return this._coords}get targetCoords(){var e;let{hoveredElement:t,props:s}=this,{x:r,y:n}=this._targetCoords,{width:o,height:a}=s,l=0;if(t){let c=t.element.getBoundingClientRect();t.snap&&(r=c.left+c.width/2,n=c.top+c.height/2),t.width==="auto"?o=c.width:k(t.width)&&(o=t.width),t.height==="auto"?a=c.height:k(t.height)&&(a=t.height),l=(e=t.padding)!==null&&e!==void 0?e:0}return o+=l*2,a+=l*2,{x:r,y:n,width:o,height:a}}get path(){return this._path}constructor(e,t){super(e,t),this._pathPoints=[],this._pathLine={current:0,target:0},this._isFirstMove=!0;let{width:s,height:r,enabled:n}=this.props;this._coords={x:0,y:0,width:s,height:r},this._targetCoords={x:0,y:0,width:s,height:r},this._types=[],this._activeTypes=[],this._path=document.createElementNS("http://www.w3.org/2000/svg","path"),ls(this.prefix),this._createElements(),this._setEvents(),this._toggle(n)}get hasPath(){return this.props.behavior==="path"}_createElements(){let{container:e,domContainer:t}=this,s=this._cn.bind(this),{style:r}=t;this.props.hideNative&&(r.cursor="none",this._addTempClassName(t,s("-hide-default"))),this._addTempClassName(t,s("-container")),t!==M&&(r.position="relative");let n=_.createElement("div");t.append(n),S(n,s("")),S(n,s(e instanceof Window?"-in-window":"-in-element")),S(n,s("-disabled"));let o=J(n);S(n,s(`_${o}`));let a=_.createElement("div");n.append(a),S(a,s("__inner")),S(a,s("-disabled")),n.append(a),this._outer=n,this._inner=a,this.onDestroy(()=>{r.cursor="",a.remove(),n.remove()})}_setEvents(){let{domContainer:e}=this;this._raf=new L({enabled:!1}),this._raf.on("frame",()=>this.render());let t=w(e,"mouseenter",this._handleMouseEnter.bind(this)),s=w(e,"mouseleave",this._handleMouseLeave.bind(this)),r=w(e,"mousemove",this._handleMouseMove.bind(this)),n=w(e,"mousedown",this._handleMouseDown.bind(this)),o=w(e,"mouseup",this._handleMouseUp.bind(this)),a=w(window,"blur",this._handleWindowBlur.bind(this));this.onDestroy(()=>{this._raf.destroy(),t(),s(),r(),n(),o(),a()})}_handleProps(){super._handleProps(),this._toggle(this.props.enabled)}_toggle(e){let t=this._cn("-disabled");T(this.outer,t,!e),T(this.inner,t,!e),this._raf.updateProps({enabled:e})}_handleMouseEnter(e){if(!this.props.enabled)return;let{clientX:t,clientY:s}=e;this._coords.x=t,this._coords.y=s,this._targetCoords.x=t,this._targetCoords.y=s,this._addPathPoint(!0),S(this.outer,this._cn("-visible"))}_handleMouseLeave(){V(this.outer,this._cn("-visible"))}_handleMouseMove(e){if(!this.props.enabled)return;let{clientX:t,clientY:s}=e;this._targetCoords.x=t,this._targetCoords.y=s,this._isFirstMove&&(this._coords.x=t,this._coords.y=s,this._isFirstMove=!1),this._addPathPoint(),S(this.outer,this._cn("-visible")),this.props.enabled&&this._raf.play()}_addPathPoint(e=!1){if(!this.hasPath)return;let t=this._targetCoords,s=this._pathPoints,r=this._path,n=this._pathLine,o={x:t.x,y:t.y,length:0};s.push(o),r.setAttribute("d",Ut(s));let a=r.getTotalLength();o.length=a,n.target=a,e&&(n.current=n.target)}_minimizePath(){if(!this.hasPath)return;let e=this._pathPoints,t=this._pathLine;if(e.length<3)return;let s=0,r=0;for(let n=1;n<e.length;n+=1){let o=e[n].x-e[n-1].x,a=e[n].y-e[n-1].y,l=Math.hypot(o,a);if(s+l<t.current)s+=l,r+=1;else break}if(r>0){let n=0;for(let o=1;o<=r;o+=1){let a=e[o].x-e[o-1].x,l=e[o].y-e[o-1].y;n+=Math.hypot(a,l)}e.splice(0,r),t.current=Math.max(0,t.current-n),t.target=Math.max(0,t.target-n),this._path.setAttribute("d",Ut(e))}}_handleMouseDown(e){let t=this._cn("-click");e.which===1&&(S(this.outer,t),S(this.inner,t))}_handleMouseUp(){let e=this._cn("-click");V(this.outer,e),V(this.inner,e)}_handleWindowBlur(){this._handleMouseUp()}attachElement(e,t=100){let s=Object.assign({width:null,height:null},e),{element:r}=s,n;r.matches(":hover")&&this._handleElementEnter(s);let o=w(r,"mouseenter",()=>{n=setTimeout(()=>this._handleElementEnter(s),t)}),a=w(r,"mouseleave",()=>{n&&clearTimeout(n),this._handleElementLeave(s)}),l=()=>{var c;((c=this.hoveredElement)===null||c===void 0?void 0:c.element)===r&&(this.hoveredElement=void 0),o(),a(),n&&clearTimeout(n)};return this.onDestroy(()=>l()),()=>l()}_handleElementEnter(e){this.hoveredElement=Object.assign({},e),e.type&&this._toggleType(e.type,!0),this.props.enabled&&this._raf.play()}_handleElementLeave(e){this.hoveredElement=void 0,e.type&&this._toggleType(e.type,!1),this.props.enabled&&this._raf.play()}attachCursor({element:e,type:t}){this._types.push({element:e,type:t}),this._inner.append(e)}_toggleType(e,t){t?this._activeTypes.push(e):this._activeTypes=this._activeTypes.filter(r=>e!==r);let s=this._activeTypes.length>0?this._activeTypes[this._activeTypes.length-1]:null;this._types.forEach(r=>{T(r.element,"active",r.type===s)})}get isInterpolated(){let{coords:e,targetCoords:t,_pathLine:s,props:r}=this,n=s.current===s.target,o=e.x===t.x&&e.y===t.y,a=e.width===t.width,l=e.height===t.height;return a&&l&&(r.behavior==="path"?n:o)}render(){this._calculate(),this._renderElements(),this.props.autoStop&&this.isInterpolated&&this._raf.pause(),this.callbacks.emit("render",void 0)}_calculate(){this._minimizePath();let{targetCoords:e,_coords:t,_pathLine:s}=this;s.current=this._lerp(s.current,s.target);try{let r=this._path.getPointAtLength(s.current);t.x=r.x,t.y=r.y}catch(r){t.x=this._lerp(t.x,e.x),t.y=this._lerp(t.y,e.y)}t.width=this._lerp(t.width,e.width),t.height=this._lerp(t.height,e.height)}_lerp(e,t){let s=y(this.props.lerp,0,1);return B(e,t,this._raf.lerpFactor(s),1e-4)}_renderElements(){let{container:e,domContainer:t,outer:s}=this,{x:r,y:n}=this.coords,{width:o,height:a}=this.coords;if(!(e instanceof Window)){let c=t.getBoundingClientRect();r-=c.left,n-=c.top}let{style:l}=s;l.transform=`translate(${r}px, ${n}px)`,l.setProperty("--cursor-w",`${o}px`),l.setProperty("--cursor-h",`${a}px`)}};Xt([g],le.prototype,"attachElement",null);Xt([g],le.prototype,"attachCursor",null);Xt([g],le.prototype,"render",null);var cs=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},ge=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{hasOut:!0,maxInitialDelay:1e3,scrollDirection:"vertical"})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0,rootMargin:"0% 0% -5% 0%"})}get isInitialStart(){return this._isInitialStart}get elements(){return this._elements}constructor(e,t){super(e,t),this._isInitialStart=!0,this._elements=[],this._isRtl=!1,this._isRtl=J(M)==="rtl",this._setup()}_handleProps(){super._handleProps(),this._setup()}_setup(){this._removeViewEvents(),this.props.enabled&&this._setViewEvents()}_removeViewEvents(){var e,t;(e=this._observerIn)===null||e===void 0||e.disconnect(),this._observerIn=void 0,(t=this._observerOut)===null||t===void 0||t.disconnect(),this._observerOut=void 0}_setViewEvents(){let{isInitialStart:e,props:t}=this,s=e?"0% 0% 0% 0%":t.rootMargin;this._observerIn=new IntersectionObserver(r=>this._handleIn(r),{root:null,threshold:0,rootMargin:s}),this.elements.forEach(r=>{var n;return(n=this._observerIn)===null||n===void 0?void 0:n.observe(r)}),t.hasOut&&(this._observerOut=new IntersectionObserver(r=>this._handleOut(r),{root:null,threshold:0,rootMargin:"0px 0px 0px 0px"}),this.elements.forEach(r=>{var n;return(n=this._observerOut)===null||n===void 0?void 0:n.observe(r)}))}_handleIn(e){e.forEach(t=>{let s=t.target;!t.isIntersecting||s.$vevetInViewBool||(s.$vevetInViewBool=!0,s.$vevetInViewTimeout&&clearTimeout(s.$vevetInViewTimeout),s.$vevetInViewTimeout=setTimeout(()=>this._handleInOut(s,!0),this._getElementDelay(s)),this.props.hasOut||this.removeElement(s))}),this._isInitialStart&&(this._isInitialStart=!1,this._setup())}_handleOut(e){e.forEach(t=>{let s=t.target;t.isIntersecting||!s.$vevetInViewBool||(s.$vevetInViewBool=!1,s.$vevetInViewTimeout&&clearTimeout(s.$vevetInViewTimeout),s.$vevetInViewTimeout=setTimeout(()=>{this._handleInOut(s,!1)},0))})}_handleInOut(e,t){let s=e.getAttribute("data-in-view-class");s&&T(e,s,t),this.callbacks.emit(t?"in":"out",{element:e})}_getElementDelay(e){let{scrollDirection:t,maxInitialDelay:s}=this.props,r=v();if(!this.isInitialStart||s<=0)return 0;let n=e.getBoundingClientRect(),o={top:0,left:0,width:r.width,height:r.height},a=y(t==="horizontal"?(n.left-o.left)/o.width:(n.top-o.top)/o.height);return this._isRtl&&t==="horizontal"&&(a=1-a),a*s}addElement(e){var t,s;let r=e;return r.$vevetInViewBool=void 0,this._elements.push(r),(t=this._observerIn)===null||t===void 0||t.observe(r),(s=this._observerOut)===null||s===void 0||s.observe(r),()=>this.removeElement(r)}removeElement(e){var t,s;let r=e;(t=this._observerIn)===null||t===void 0||t.unobserve(r),(s=this._observerOut)===null||s===void 0||s.unobserve(r),this._elements=this._elements.filter(n=>n!==e),r.$vevetInViewBool=void 0}_destroy(){super._destroy(),this._removeViewEvents()}};cs([g],ge.prototype,"addElement",null);cs([g],ge.prototype,"removeElement",null);var hs=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},ve=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{resizeDebounce:0,hasWillChange:!0,cloneNodes:!0,direction:"horizontal"})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{speed:1,gap:0,enabled:!0,pauseOnHover:!1,centered:!1,adjustSpeed:!0,pauseOnOut:!0})}get totalSize(){return this._totalSize}get totalWidth(){return this.totalSize}get coord(){return this._coord}set coord(e){this._coord=e,this.render(0)}get x(){return this.coord}set x(e){this.coord=e}get isVertical(){return this.props.direction==="vertical"}constructor(e,t){super(e,t),this._size=0,this._initialNodes=[],this._elements=[],this._sizes=[],this._totalSize=0,this._coord=0,this._isRtl=!1;let{container:s,direction:r}=this.props,{isVertical:n}=this;if(!s)throw new Error("Marquee container is not defined");this._isRtl=J(s)==="rtl"&&r==="horizontal";let{style:o}=s;o.position="relative",o.display="flex",o.flexDirection=n?"column":"row",o.alignItems="center",o.justifyContent=this._isRtl?"flex-end":"flex-start",o.overflow="hidden",n?o.height="100%":o.width="100%",this._setup(),this._raf=new L({enabled:this.props.enabled,fpsRecalcFrames:1}),this._raf.on("frame",()=>{let c=this.props.adjustSpeed?this._raf.fpsFactor:1,h=N(this.props.speed);this._render(h*c)});let a=w(s,"mouseenter",()=>{this.props.pauseOnHover&&this._raf.pause()});this.onDestroy(()=>a());let l=w(s,"mouseleave",()=>{this.props.enabled&&this._raf.play()});this.onDestroy(()=>l()),this._intersection=new IntersectionObserver(this._handleIntersection.bind(this),{root:null}),this._intersection.observe(s)}_handleProps(){super._handleProps(),this.props.enabled?this._raf.play():this._raf.pause(),this.resize(),this.render(0)}_setup(){var e;if((e=this._lastSetup)===null||e===void 0||e.call(this),this.isDestroyed)return;let{container:t,resizeDebounce:s}=this.props;this._initialNodes=[...Array.from(t.childNodes)],this._wrapTextNode(),this._elements=Array.from(t.children),this._elements.forEach((o,a)=>this._applyNodeStyles(o,a!==0)),this.resize();let r=v().onLoad(()=>this.resize()),n=$({callback:()=>this.resize(),element:[t,...this._elements],viewportTarget:"width",resizeDebounce:s,name:this.name});this._lastSetup=()=>{r(),n.remove()}}_wrapTextNode(){let{container:e}=this.props,t=e.childNodes.length===1,s=e.childNodes[0];if(!s||s.nodeType!==3||!t)return;let r=_.createElement("span"),{style:n}=r;n.position="relative",n.display="block",n.width="max-content",n.whiteSpace="nowrap",r.appendChild(s),e.appendChild(r)}_applyNodeStyles(e,t){let s=e,{style:r}=s;r.position=t?"absolute":"relative",r.top=t&&!this.isVertical?"50%":"0",r.left=t&&this.isVertical?"50%":"0",r.willChange=this.props.hasWillChange?"transform":"",r.flexShrink="0",this.isVertical?r.height=r.height||"max-content":r.width=r.width||"max-content"}get gap(){return Math.max(N(this.props.gap),0)}resize(){let{props:e,isVertical:t,gap:s}=this,{container:r}=e;this._size=t?r.offsetHeight:r.offsetWidth,this._sizes=this._elements.map(a=>(t?a.offsetHeight:a.offsetWidth)+s),this._totalSize=this._sizes.reduce((a,l)=>a+l,0);let n=Math.max(...this._sizes),o=Math.ceil((this._size+n)/this._totalSize);if(this._totalSize=Math.max(this._totalSize,this._size+n),e.cloneNodes&&o>1){for(let a=1;a<o;a+=1)this._elements.forEach(l=>{let c=l.cloneNode(!0);this._applyNodeStyles(c,!0),r.appendChild(c)});this._elements=Array.from(r.children),this.resize()}this.callbacks.emit("resize",void 0),setTimeout(()=>this.render(0),0)}render(e){this._render(e)}_render(e=this.props.speed){if(this.isDestroyed)return;let{isVertical:t,props:s,gap:r}=this,n=this._isRtl?-e:e;this._coord-=N(n);let o=this._size*.5+this._sizes[0]/2-r,a=this._coord+(s.centered?o:0),l=0;for(let c=0;c<this._elements.length;c+=1){let h=this._elements[c],u=this._sizes[c],{style:d}=h,b=W(a+l,-u,this._totalSize-u);if(t){let f=d.position==="relative"?"0":"-50%";d.transform=`translate(${f}, ${b}px)`}else{let f=d.position==="relative"?"0":"-50%";d.transform=`translate(${b}px, ${f})`}l+=u}this.callbacks.emit("render",void 0)}_handleIntersection(e){this.props.pauseOnOut&&e.forEach(t=>{t.isIntersecting&&this.props.enabled?this._raf.play():this._raf.pause()})}_destroy(){var e,t;let{container:s}=this.props;for(super._destroy(),this._raf.destroy(),(e=this._intersection)===null||e===void 0||e.disconnect(),(t=this._lastSetup)===null||t===void 0||t.call(this);s.firstChild;)s.removeChild(s.firstChild);this._initialNodes.forEach(r=>s.appendChild(r))}};hs([g],ve.prototype,"resize",null);hs([g],ve.prototype,"render",null);var te=j?_.createElement("style"):null;te&&(te.innerHTML="* { user-select: none !important; }");var be=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{buttons:[0],relative:!1,minPointers:1,maxPointers:5,disableUserSelect:!0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0})}get isStarted(){return this._isStarted}get pointersMap(){return this._pointersMap}get container(){return this.props.container}get minPointers(){return y(this.props.minPointers,1,1/0)}get maxPointers(){return y(this.props.maxPointers,this.props.minPointers,1/0)}constructor(e,t){super(e,t),this._listeners=[],this._isStarted=!1,this._pointersMap=new Map,this._setBaseEvents()}_setBaseEvents(){let{container:e}=this,t=w(e,"pointerdown",o=>this._handlePointerDown(o)),s=w(e,"dragstart",o=>o.preventDefault(),{passive:!1}),r=w(e,"mousedown",o=>{this.props.buttons.includes(1)&&o.preventDefault()},{passive:!1}),n=w(e,"contextmenu",o=>{this.props.buttons.includes(2)&&o.preventDefault()},{passive:!1});this.onDestroy(()=>{t(),s(),r(),n()})}_setRuntimeEvents(){if(this._listeners.length>0)return;let t=w(window,"pointermove",o=>this._handlePointerMove(o),{passive:!1}),s=w(window,"pointerup",o=>this._handlePointerUp(o),{passive:!1}),r=w(window,"pointercancel",()=>this._handleCancel(),{passive:!1}),n=w(window,"blur",()=>this._handleCancel());this._listeners=[t,s,r,n]}_handlePointerDown(e){let{props:t}=this,{x:s,y:r}=this._decodeCoords(e);if(!t.enabled||!t.buttons.includes(e.button)||this.pointersMap.get(e.pointerId)||this.pointersMap.size>=this.maxPointers)return;let o={id:e.pointerId,index:this.pointersMap.size,start:{x:s,y:r},prev:{x:s,y:r},current:{x:s,y:r},diff:{x:0,y:0},step:{x:0,y:0},accum:{x:0,y:0}};this.pointersMap.set(e.pointerId,o);let a=0;this.pointersMap.forEach(l=>{l.index=a,a+=1}),this.pointersMap.size===this.minPointers&&(this._isStarted=!0,this.callbacks.emit("start",void 0)),this._setRuntimeEvents(),t.disableUserSelect&&M.append(te),this.callbacks.emit("pointerdown",{event:e,pointer:o})}_handlePointerMove(e){let t=this.pointersMap.get(e.pointerId);if(!t)return;let{x:s,y:r}=this._decodeCoords(e);t.prev=Object.assign({},t.current),t.current={x:s,y:r},t.diff.x=t.current.x-t.start.x,t.diff.y=t.current.y-t.start.y,t.step.x=t.current.x-t.prev.x,t.step.y=t.current.y-t.prev.y,t.accum.x+=Math.abs(t.step.x),t.accum.y+=Math.abs(t.step.y),this.callbacks.emit("pointermove",{event:e,pointer:t})}_handlePointerUp(e){let t=this.pointersMap.get(e.pointerId);t&&(this.callbacks.emit("pointerup",{pointer:t}),this.pointersMap.delete(e.pointerId),this.pointersMap.size<this.minPointers&&this._isStarted&&(this._isStarted=!1,this.callbacks.emit("end",void 0)),this.pointersMap.size===0&&this._cleanup())}_handleCancel(){this.callbacks.emit("end",void 0),this.pointersMap.forEach(e=>{this.callbacks.emit("pointerup",{pointer:e})}),this._cleanup()}_resetSelection(){var e,t;(e=window.getSelection())===null||e===void 0||e.empty(),(t=window.getSelection())===null||t===void 0||t.removeAllRanges()}_decodeCoords(e){let{container:t,props:s}=this;if(!s.relative)return{x:e.clientX,y:e.clientY};let r=t.getBoundingClientRect(),n=e.clientX-r.left,o=e.clientY-r.top;return{x:n,y:o}}_cleanup(){this._listeners.forEach(e=>e()),this._listeners=[],this._isStarted=!1,this.pointersMap.clear(),this.props.disableUserSelect&&(this._resetSelection(),te===null||te===void 0||te.remove())}_destroy(){this._cleanup(),super._destroy()}};function Be(i){return typeof i=="undefined"}var We=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},A=class extends x{_getStatic(){return Object.assign({},super._getStatic())}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{easing:v().props.easing,duration:1e3})}get progress(){return this._progress}set progress(e){this._progress=y(e),this._onUpdate()}get eased(){return this._eased}get isPlaying(){return!Be(this._raf)}get isReversed(){return this._isReversed}get isPaused(){return this._isPaused}get duration(){let e=this.props.duration;return Number.isNaN(e)||!Number.isFinite(e)||e<0?0:this.props.duration}constructor(e,t){super(e,t),this._progress=0,this._eased=0,this._raf=void 0,this._time=0,this._isReversed=!1,this._isPaused=!1}play(){this.progress!==1&&(this._isReversed=!1,this._isPaused=!1,this.isPlaying||(this._time=Date.now(),this._animate()))}reverse(){this.progress!==0&&(this._isReversed=!0,this._isPaused=!1,this.isPlaying||(this._time=Date.now(),this._animate()))}pause(){this._isPaused=!0,this._raf&&window.cancelAnimationFrame(this._raf),this._raf=void 0}reset(){this.pause(),this.progress=0}_animate(){if(this.isPaused)return;let{isReversed:e,duration:t}=this;if(t<=0){this.progress=e?1:0,this.progress=e?0:1;return}let s=Date.now(),r=Math.abs(this._time-s);this._time=s;let n=r/t/(e?-1:1),o=this.progress+n;if(this.progress=o,this.progress===1&&!e||this.progress===0&&e){this._isReversed=!1,this._isPaused=!1,this._raf=void 0;return}this._raf=window.requestAnimationFrame(()=>this._animate())}_onUpdate(){if(this._eased=Vt(this._progress,this.props.easing),this.callbacks.emit("update",{progress:this._progress,eased:this._eased}),this.progress===0){this.callbacks.emit("start",void 0);return}this.progress===1&&this.callbacks.emit("end",void 0)}_destroy(){this.pause(),super._destroy()}};We([g],A.prototype,"play",null);We([g],A.prototype,"reverse",null);We([g],A.prototype,"pause",null);We([g],A.prototype,"reset",null);var we=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{hide:250})}_getMutable(){return Object.assign({},super._getMutable())}get isHidden(){return this._isHidden}constructor(e,t){super(e,t),this._shouldHide=!1,this._isHidden=!1,this._isLoaded=!1;let s=setTimeout(()=>{this._onLoaded(()=>this._handleLoaded())},0);this.onDestroy(()=>clearTimeout(s))}_onLoaded(e){v().onLoad(e)}_handleLoaded(){this.isDestroyed||(this._isLoaded=!0,this.callbacks.emit("loaded",void 0),k(this.props.hide)&&this.hide(this.props.hide))}hide(e,t){if(this.isDestroyed||!this._isLoaded||this._shouldHide)return;let s=!1;return this._shouldHide=!0,this.callbacks.emit("hide",void 0),this._hideContainer(()=>{this._onHidden(),s||t==null||t()},e),()=>{s=!0}}_hideContainer(e,t){let{container:s}=this.props;if(!s){e();return}let r=new A({duration:t});this.onDestroy(()=>r.destroy()),r.on("update",({progress:n})=>{let{style:o}=s;o.opacity=String(1-n),o.display=n===1?"none":"flex"}),r.on("end",()=>e()),r.play()}_onHidden(){this._isHidden=!0,this.callbacks.emit("hidden",void 0)}onHide(e){return this.isDestroyed?()=>{}:this._shouldHide?(e(),()=>{}):this.on("hide",()=>e())}onHidden(e){return this.isDestroyed?()=>{}:this._isHidden?(e(),()=>{}):this.on("hidden",()=>e())}};function ds(i,e){if(i.complete){e();return}let t=new Image;t.addEventListener("load",()=>e()),t.addEventListener("error",()=>e()),t.crossOrigin="anonymous",t.src=i.currentSrc||i.src}function ps(i,e){if(i.readyState>0){e();return}if(i.preload==="none"){e();return}i.addEventListener("error",()=>e()),i.addEventListener("loadedmetadata",()=>e())}function us(i){let e=parseFloat(i.getAttribute("data-loaded")||"0");return e=Number.isNaN(e)?0:y(e,0,1/0),e}function fs({id:i,weight:e},t){if(!(i instanceof Element))return;if(us(i)>=e){t(e);return}let s=new MutationObserver(()=>{let r=us(i);t(r),r>=e&&s.disconnect()});s.observe(i,{attributes:!0,attributeFilter:["data-loaded"]})}var _s=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},ms=`vevet-page-${Math.random()}`,ye=class extends we{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{preloadImages:!0,preloadVideos:!1,customSelector:".js-preload",ignoreClassName:"js-preload-ignore",lerp:.1,endDuration:500})}_getMutable(){return Object.assign({},super._getMutable())}get resources(){return this._resources}get totalWeight(){return this.resources.reduce((e,{weight:t})=>e+t,0)}get loadedWeight(){return this.resources.reduce((e,{loaded:t})=>e+t,0)}get loadProgress(){return this.loadedWeight/this.totalWeight}get progress(){return this._progress}get lerpEase(){return y(Math.abs(this.props.lerp))}constructor(e,t){super(e,t),this._resources=[{id:ms,weight:1,loaded:0}],this._progress=0,this._raf=new L({enabled:!0}),this._raf.on("frame",({lerpFactor:s})=>{let r=B(this._progress,this.loadProgress,s(this.lerpEase));this._handleUpdate(r)}),this._fetchImages(),this._fetchVideos(),this._fetchResources(),v().onLoad(()=>this.resolveResource(ms))}_fetchImages(){if(!this.props.preloadImages)return;let e=Array.from(_.querySelectorAll("img"));e=e.filter(t=>!K(t,this.props.ignoreClassName)&&t.loading!=="lazy"),this._resources.push(...e.map(t=>({id:t,weight:1,loaded:0}))),e.forEach(t=>{ds(t,()=>this.resolveResource(t))})}_fetchVideos(){if(!this.props.preloadVideos)return;let e=Array.from(_.querySelectorAll("video"));e=e.filter(t=>!K(t,this.props.ignoreClassName)),this._resources.push(...e.map(t=>({id:t,weight:1,loaded:0}))),e.forEach(t=>{ps(t,()=>this.resolveResource(t))})}_fetchResources(){let e=Array.from(_.querySelectorAll(this.props.customSelector));e=e.filter(t=>!K(t,this.props.ignoreClassName)),e.forEach(t=>{let s=parseInt(t.getAttribute("data-weight")||"1",10);s=Number.isNaN(s)?1:y(s,1,1/0);let r={id:t,weight:s,loaded:0};this._resources.push(r),fs(r,n=>this.resolveResource(t,n))})}addResource(e,t=1){if(this.resources.some(r=>r.id===e))throw new Error("Resource already exists");this._resources.push({id:e,weight:t,loaded:0})}resolveResource(e,t){let s=this.resources.find(n=>n.id===e);if(!s)return;let r=t!=null?t:s.weight;s.loaded=y(r,0,s.weight),this.callbacks.emit("resource",s)}_handleUpdate(e){var t;if(this._progress=e,this.callbacks.emit("progress",void 0),this.loadProgress<1)return;(t=this._raf)===null||t===void 0||t.destroy();let s=this.progress;if(s>=1)return;let r=new A({duration:this.props.endDuration});this.onDestroy(()=>r.destroy()),r.on("update",({progress:n})=>{let o=1-s;this._progress=s+o*n,this.callbacks.emit("progress",void 0)}),r.play()}_onLoaded(e){let t=!1;this.callbacks.on("progress",()=>{this.progress>=1&&!t&&(t=!0,e())},{protected:!0,name:this.name})}_destroy(){super._destroy(),this._raf.destroy()}};_s([g],ye.prototype,"addResource",null);_s([g],ye.prototype,"resolveResource",null);var ce=null;function gs(i){return ce||(ce=_.createElement("style"),M.appendChild(ce),ce.innerHTML=`
|
|
100
|
-
.${
|
|
96
|
+
`,ae)}function J(s){return window.getComputedStyle(s).direction}var qt=s=>{let e=`M${s[0].x},${s[0].y}`;for(let t=0;t<s.length-1;t+=1){let i=(s[t].x+s[t+1].x)/2,r=(s[t].y+s[t+1].y)/2;e+=`Q ${s[t].x}, ${s[t].y}, ${i}, ${r}`}return e+=`L ${s[s.length-1].x}, ${s[s.length-1].y}`,e};var Le=class{get path(){return this._path}constructor(e){this._isEnabled=e,this._points=[],this._line={current:0,target:0},this._path=document.createElementNS("http://www.w3.org/2000/svg","path")}addPoint(e,t=!1){if(!this._isEnabled)return;let i=this._points,r=this._path,n=this._line,o={x:e.x,y:e.y,length:0};i.push(o),r.setAttribute("d",qt(i));let a=r.getTotalLength();o.length=a,n.target=a,t&&(n.current=n.target)}minimize(){if(!this._isEnabled)return;let e=this._points,t=this._line;if(e.length<3)return;let i=0,r=0;for(let n=1;n<e.length;n+=1){let o=e[n].x-e[n-1].x,a=e[n].y-e[n-1].y,l=Math.hypot(o,a);if(i+l<t.current)i+=l,r+=1;else break}if(r>0){let n=0;for(let o=1;o<=r;o+=1){let a=e[o].x-e[o-1].x,l=e[o].y-e[o-1].y;n+=Math.hypot(a,l)}e.splice(0,r),t.current=Math.max(0,t.current-n),t.target=Math.max(0,t.target-n),this._path.setAttribute("d",qt(e))}}get isInterpolated(){return this._line.current===this._line.target}lerp(e){let t=this._line;t.current=C(t.current,t.target,e,1e-4)}get coord(){return this._path.getPointAtLength(this._line.current)}};function le(s){return typeof s=="string"}var Ve=class{constructor(e,t,i){this._data=e,this._onEnter=t,this._onLeave=i,this._debounce=null,this._isHovered=!1,this._parallaxX={current:0,target:0},this._parallaxY={current:0,target:0};let{element:r}=this;r.matches(":hover")&&this._handleElementEnter(),this._mouseEnter=y(r,"mouseenter",()=>{var n;this._debounce=setTimeout(()=>this._handleElementEnter(),(n=e.hoverDebounce)!==null&&n!==void 0?n:16)}),this._mouseLeave=y(r,"mouseleave",()=>{this._debounce&&clearTimeout(this._debounce),this._handleElementLeave()}),this._mouseMove=y(r,"mousemove",n=>{this._handleElementMove(n)})}get element(){return this._data.element}get type(){return this._data.type}get snap(){var e;return(e=this._data.snap)!==null&&e!==void 0?e:!1}get width(){return this._data.width==="auto"?"auto":this._data.width?P(this._data.width):null}get height(){return this._data.height==="auto"?"auto":this._data.height?P(this._data.height):null}get padding(){return this._data.padding?P(this._data.padding):0}get sticky(){var e;return(e=this._data.sticky)!==null&&e!==void 0?e:!1}get stickyLerp(){var e;return(e=this._data.stickyLerp)!==null&&e!==void 0?e:void 0}get stickyX(){return this._parallaxX.current}get stickyY(){return this._parallaxY.current}getDimensions(){let e,t,i,r,n=0,o=this.element.getBoundingClientRect();return this.snap&&(e=o.left+o.width/2,t=o.top+o.height/2),this.width==="auto"?i=o.width:A(this.width)&&(i=this.width),this.height==="auto"?r=o.height:A(this.height)&&(r=this.height),n=this.padding,{x:e,y:t,width:i,height:r,padding:n}}destroy(){this._mouseEnter(),this._mouseLeave(),this._debounce&&clearTimeout(this._debounce)}_handleElementEnter(){this._isHovered=!0,this._onEnter(this)}_handleElementLeave(){this._isHovered=!1,this._parallaxX.target=0,this._parallaxY.target=0,this._onLeave(this)}_handleElementMove(e){if(!this.sticky||!this._isHovered)return;let{element:t}=this,{clientX:i,clientY:r}=e,n=t.getBoundingClientRect(),o=getComputedStyle(t).transform,a=o==="none"?new DOMMatrix:new DOMMatrix(o),{width:l,height:c}=n,h=a.e,p=a.f,d=n.left-h,g=n.top-p,f=d+l/2,u=g+c/2,m=i-f,O=r-u,E=this._getStickyAmplitude(),M=E.x==="auto"?l:Math.abs(E.x),$=E.y==="auto"?c:Math.abs(E.y);this._parallaxX.target=w(m,-M,M),this._parallaxY.target=w(O,-$,$)}_getStickyAmplitude(){let{stickyAmplitude:e}=this._data,t="auto",i="auto";return e?(A(e)||le(e)?(t=this._getStickyAmplitudeAxis(e),i=this._getStickyAmplitudeAxis(e)):("x"in e&&(t=this._getStickyAmplitudeAxis(e.x)),"y"in e&&(i=this._getStickyAmplitudeAxis(e.y))),{x:t,y:i}):{x:t,y:i}}_getStickyAmplitudeAxis(e){return A(e)?e:!e||e==="auto"?"auto":P(e)}get isInterpolated(){return this._parallaxX.current===this._parallaxX.target&&this._parallaxY.current===this._parallaxY.target}render(e){let{_parallaxX:t,_parallaxY:i}=this,r=this.element;!this.sticky||this.isInterpolated||(t.current=C(t.current,t.target,e,1e-4),i.current=C(i.current,i.target,e,1e-4),r.style.transform=`translate3d(${t.current}px, ${i.current}px, 0)`)}};var Kt=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},ce=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{container:window,hideNative:!1,behavior:"default",transformModifier:({x:e,y:t})=>`translate(${e}px, ${t}px)`})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0,width:50,height:50,lerp:.2,autoStop:!0})}constructor(e,t){super(e,t),this._hoverElements=[],this._activeHoverElements=[],this._isFirstMove=!0;let{enabled:i}=this.props,{initialWidth:r,initialHeight:n}=this;this._coords={x:0,y:0,width:r,height:n,angle:0,velocity:0},this._rawTarget=Object.assign({},this._coords),this._types=[],this._activeTypes=[],this._path=new Le(this.hasPath),ps(this.prefix),this._createElements(),this._setEvents(),this._toggle(i)}get initialWidth(){return P(this.props.width)}get initialHeight(){return P(this.props.height)}get coords(){return this._coords}get prefix(){return`${b().prefix}cursor`}get container(){return this.props.container}get domContainer(){return this.container instanceof Window?T:this.container}get outer(){return this._outer}get inner(){return this._inner}get hoveredElement(){let e=this._activeHoverElements;return e[e.length-1]}get targetCoords(){var e,t,i,r;let{hoveredElement:n,initialWidth:o,initialHeight:a}=this,{x:l,y:c}=this._rawTarget,{angle:h,velocity:p}=this._rawTarget,d=o,g=a,f=0;if(n){let u=n.getDimensions();d=(e=u.width)!==null&&e!==void 0?e:o,g=(t=u.height)!==null&&t!==void 0?t:a,l=(i=u.x)!==null&&i!==void 0?i:l,c=(r=u.y)!==null&&r!==void 0?r:c,f=u.padding}return d+=f*2,g+=f*2,{x:l,y:c,width:d,height:g,angle:h,velocity:p}}get path(){return this._path.path}get hasPath(){return this.props.behavior==="path"}_createElements(){let{container:e,domContainer:t}=this,i=this._cn.bind(this),{style:r}=t;this.props.hideNative&&(r.cursor="none",this._addTempClassName(t,i("-hide-default"))),this._addTempClassName(t,i("-container")),t!==T&&(r.position="relative");let n=v.createElement("div");t.append(n),S(n,i("")),S(n,i(e instanceof Window?"-in-window":"-in-element")),S(n,i("-disabled"));let o=J(n);S(n,i(`_${o}`));let a=v.createElement("div");n.append(a),S(a,i("__inner")),S(a,i("-disabled")),n.append(a),this._outer=n,this._inner=a,this.onDestroy(()=>{r.cursor="",a.remove(),n.remove()})}_setEvents(){let{domContainer:e}=this;this._raf=new V({enabled:!1}),this._raf.on("frame",()=>this.render());let t=y(e,"mouseenter",this._handleMouseEnter.bind(this)),i=y(e,"mouseleave",this._handleMouseLeave.bind(this)),r=y(e,"mousemove",this._handleMouseMove.bind(this)),n=y(e,"mousedown",this._handleMouseDown.bind(this)),o=y(e,"mouseup",this._handleMouseUp.bind(this)),a=y(window,"blur",this._handleWindowBlur.bind(this));this.onDestroy(()=>{this._raf.destroy(),t(),i(),r(),n(),o(),a()})}_handleProps(){super._handleProps(),this._toggle(this.props.enabled)}_toggle(e){let t=this._cn("-disabled");D(this.outer,t,!e),D(this.inner,t,!e),this._raf.updateProps({enabled:e})}_handleMouseEnter(e){if(!this.props.enabled)return;let{clientX:t,clientY:i}=e,r=this._rawTarget;this._coords.x=t,this._coords.y=i,r.x=t,r.y=i,this._path.addPoint(r,!0),S(this.outer,this._cn("-visible"))}_handleMouseLeave(){F(this.outer,this._cn("-visible"))}_handleMouseMove(e){if(!this.props.enabled)return;let{clientX:t,clientY:i}=e,r=this._rawTarget,{x:n,y:o}=r,a=n-this._coords.x,l=o-this._coords.y,c=r.angle,h=Math.atan2(l,a)*180/Math.PI,p=c+((h-c)%360+540)%360-180,d=Math.min(Math.sqrt(Math.pow(a,2)+Math.pow(l,2))*2,150)/150;r.x=t,r.y=i,r.angle=p,r.velocity=d,this._isFirstMove&&(this._coords.x=r.x,this._coords.y=r.y,this._coords.angle=r.angle,this._coords.velocity=r.velocity,this._isFirstMove=!1),this._path.addPoint(r),S(this.outer,this._cn("-visible")),this.props.enabled&&this._raf.play()}_handleMouseDown(e){let t=this._cn("-click");e.which===1&&(S(this.outer,t),S(this.inner,t))}_handleMouseUp(){let e=this._cn("-click");F(this.outer,e),F(this.inner,e)}_handleWindowBlur(){this._handleMouseUp()}attachHover(e){let t=new Ve(e,r=>this._handleElementEnter(r),r=>this._handleElementLeave(r));this._hoverElements.push(t);let i=()=>{this._hoverElements=this._hoverElements.filter(r=>r!==t),t.destroy()};return this.onDestroy(()=>i()),()=>i()}_handleElementEnter(e){this._activeHoverElements.push(e),e.type&&this._toggleType(e.type,!0),this.callbacks.emit("hoverEnter",e),this.props.enabled&&this._raf.play()}_handleElementLeave(e){this._activeHoverElements=this._activeHoverElements.filter(t=>t!==e),e.type&&this._toggleType(e.type,!1),this.callbacks.emit("hoverLeave",e),this.props.enabled&&this._raf.play()}attachCursor({element:e,type:t}){this._types.push({element:e,type:t}),this._inner.append(e)}_toggleType(e,t){let i=this._types.find(o=>o.type===e);t?this._activeTypes.push(e):this._activeTypes=this._activeTypes.filter(o=>e!==o);let r=this._activeTypes,n=r.length>0?r[r.length-1]:null;this._types.forEach(o=>{D(o.element,"active",o.type===n)}),i&&this.callbacks.emit(t?"typeShow":"typeHide",i),n||this.callbacks.emit("noType",void 0)}get isInterpolated(){let{coords:e,targetCoords:t,props:i}=this,r=e.width===t.width,n=e.height===t.height,o=e.angle===t.angle,a=e.velocity===t.velocity,l=!this._hoverElements.find(p=>!p.isInterpolated),c=this._path.isInterpolated,h=e.x===t.x&&e.y===t.y;return r&&n&&o&&a&&l&&(i.behavior==="path"?c:h)}render(){this._calculate(),this._renderElements(),this.props.autoStop&&this.isInterpolated&&this._raf.pause(),this.callbacks.emit("render",void 0)}_calculate(){let{targetCoords:e,_coords:t}=this,i=this._getLerpFactor();this._path.lerp(i),this._path.minimize();try{if(this.hasPath){let r=this._path.coord;t.x=r.x,t.y=r.y}else throw new Error("No path")}catch(r){t.x=this._lerp(t.x,e.x),t.y=this._lerp(t.y,e.y)}t.width=this._lerp(t.width,e.width),t.height=this._lerp(t.height,e.height),t.angle=this._lerp(t.angle,e.angle),this._rawTarget.velocity=this._lerp(this._rawTarget.velocity,0),t.velocity=this._lerp(t.velocity,this._rawTarget.velocity)}_getLerpFactor(e=this.props.lerp){if(!A(e))return 1;let t=w(e,0,1);return this._raf.lerpFactor(t)}_lerp(e,t){let i=this._getLerpFactor();return C(e,t,i,1e-4)}_renderElements(){let{container:e,domContainer:t,outer:i,props:r,coords:n}=this,{width:o,height:a}=n,{x:l,y:c}=n;if(!(e instanceof Window)){let p=t.getBoundingClientRect();l-=p.left,c-=p.top}let{style:h}=i;h.setProperty("--cursor-w",`${o}px`),h.setProperty("--cursor-h",`${a}px`),h.transform=r.transformModifier(Object.assign(Object.assign({},n),{x:l,y:c})),this._hoverElements.forEach(p=>p.render(this._getLerpFactor(p.stickyLerp)))}};Kt([_],ce.prototype,"attachHover",null);Kt([_],ce.prototype,"attachCursor",null);Kt([_],ce.prototype,"render",null);var us=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},ve=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{hasOut:!0,maxInitialDelay:1e3,scrollDirection:"vertical"})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0,rootMargin:"0% 0% -5% 0%"})}get isInitialStart(){return this._isInitialStart}get elements(){return this._elements}constructor(e,t){super(e,t),this._isInitialStart=!0,this._elements=[],this._isRtl=!1,this._isRtl=J(T)==="rtl",this._setup()}_handleProps(){super._handleProps(),this._setup()}_setup(){this._removeViewEvents(),this.props.enabled&&this._setViewEvents()}_removeViewEvents(){var e,t;(e=this._observerIn)===null||e===void 0||e.disconnect(),this._observerIn=void 0,(t=this._observerOut)===null||t===void 0||t.disconnect(),this._observerOut=void 0}_setViewEvents(){let{isInitialStart:e,props:t}=this,i=e?"0% 0% 0% 0%":t.rootMargin;this._observerIn=new IntersectionObserver(r=>this._handleIn(r),{root:null,threshold:0,rootMargin:i}),this.elements.forEach(r=>{var n;return(n=this._observerIn)===null||n===void 0?void 0:n.observe(r)}),t.hasOut&&(this._observerOut=new IntersectionObserver(r=>this._handleOut(r),{root:null,threshold:0,rootMargin:"0px 0px 0px 0px"}),this.elements.forEach(r=>{var n;return(n=this._observerOut)===null||n===void 0?void 0:n.observe(r)}))}_handleIn(e){e.forEach(t=>{let i=t.target;!t.isIntersecting||i.$vevetInViewBool||(i.$vevetInViewBool=!0,i.$vevetInViewTimeout&&clearTimeout(i.$vevetInViewTimeout),i.$vevetInViewTimeout=setTimeout(()=>this._handleInOut(i,!0),this._getElementDelay(i)),this.props.hasOut||this.removeElement(i))}),this._isInitialStart&&(this._isInitialStart=!1,this._setup())}_handleOut(e){e.forEach(t=>{let i=t.target;t.isIntersecting||!i.$vevetInViewBool||(i.$vevetInViewBool=!1,i.$vevetInViewTimeout&&clearTimeout(i.$vevetInViewTimeout),i.$vevetInViewTimeout=setTimeout(()=>{this._handleInOut(i,!1)},0))})}_handleInOut(e,t){let i=e.getAttribute("data-in-view-class");i&&D(e,i,t),this.callbacks.emit(t?"in":"out",{element:e})}_getElementDelay(e){let{scrollDirection:t,maxInitialDelay:i}=this.props,r=b();if(!this.isInitialStart||i<=0)return 0;let n=e.getBoundingClientRect(),o={top:0,left:0,width:r.width,height:r.height},a=w(t==="horizontal"?(n.left-o.left)/o.width:(n.top-o.top)/o.height);return this._isRtl&&t==="horizontal"&&(a=1-a),a*i}addElement(e){var t,i;let r=e;return r.$vevetInViewBool=void 0,this._elements.push(r),(t=this._observerIn)===null||t===void 0||t.observe(r),(i=this._observerOut)===null||i===void 0||i.observe(r),()=>this.removeElement(r)}removeElement(e){var t,i;let r=e;(t=this._observerIn)===null||t===void 0||t.unobserve(r),(i=this._observerOut)===null||i===void 0||i.unobserve(r),this._elements=this._elements.filter(n=>n!==e),r.$vevetInViewBool=void 0}_destroy(){super._destroy(),this._removeViewEvents()}};us([_],ve.prototype,"addElement",null);us([_],ve.prototype,"removeElement",null);var fs=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},be=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{resizeDebounce:0,hasWillChange:!0,cloneNodes:!0,direction:"horizontal"})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{speed:1,gap:0,enabled:!0,pauseOnHover:!1,centered:!1,adjustSpeed:!0,pauseOnOut:!0})}get totalSize(){return this._totalSize}get totalWidth(){return this.totalSize}get coord(){return this._coord}set coord(e){this._coord=e,this.render(0)}get x(){return this.coord}set x(e){this.coord=e}get isVertical(){return this.props.direction==="vertical"}constructor(e,t){super(e,t),this._size=0,this._initialNodes=[],this._elements=[],this._sizes=[],this._totalSize=0,this._coord=0,this._isRtl=!1;let{container:i,direction:r}=this.props,{isVertical:n}=this;if(!i)throw new Error("Marquee container is not defined");this._isRtl=J(i)==="rtl"&&r==="horizontal";let{style:o}=i;o.position="relative",o.display="flex",o.flexDirection=n?"column":"row",o.alignItems="center",o.justifyContent=this._isRtl?"flex-end":"flex-start",o.overflow="hidden",n?o.height="100%":o.width="100%",this._setup(),this._raf=new V({enabled:this.props.enabled,fpsRecalcFrames:1}),this._raf.on("frame",()=>{let c=this.props.adjustSpeed?this._raf.fpsFactor:1,h=P(this.props.speed);this._render(h*c)});let a=y(i,"mouseenter",()=>{this.props.pauseOnHover&&this._raf.pause()});this.onDestroy(()=>a());let l=y(i,"mouseleave",()=>{this.props.enabled&&this._raf.play()});this.onDestroy(()=>l()),this._intersection=new IntersectionObserver(this._handleIntersection.bind(this),{root:null}),this._intersection.observe(i)}_handleProps(){super._handleProps(),this.props.enabled?this._raf.play():this._raf.pause(),this.resize(),this.render(0)}_setup(){var e;if((e=this._lastSetup)===null||e===void 0||e.call(this),this.isDestroyed)return;let{container:t,resizeDebounce:i}=this.props;this._initialNodes=[...Array.from(t.childNodes)],this._wrapTextNode(),this._elements=Array.from(t.children),this._elements.forEach((o,a)=>this._applyNodeStyles(o,a!==0)),this.resize();let r=b().onLoad(()=>this.resize()),n=W({callback:()=>this.resize(),element:[t,...this._elements],viewportTarget:"width",resizeDebounce:i,name:this.name});this._lastSetup=()=>{r(),n.remove()}}_wrapTextNode(){let{container:e}=this.props,t=e.childNodes.length===1,i=e.childNodes[0];if(!i||i.nodeType!==3||!t)return;let r=v.createElement("span"),{style:n}=r;n.position="relative",n.display="block",n.width="max-content",n.whiteSpace="nowrap",r.appendChild(i),e.appendChild(r)}_applyNodeStyles(e,t){let i=e,{style:r}=i;r.position=t?"absolute":"relative",r.top=t&&!this.isVertical?"50%":"0",r.left=t&&this.isVertical?"50%":"0",r.willChange=this.props.hasWillChange?"transform":"",r.flexShrink="0",this.isVertical?r.height=r.height||"max-content":r.width=r.width||"max-content"}get gap(){return Math.max(P(this.props.gap),0)}resize(){let{props:e,isVertical:t,gap:i}=this,{container:r}=e;this._size=t?r.offsetHeight:r.offsetWidth,this._sizes=this._elements.map(a=>(t?a.offsetHeight:a.offsetWidth)+i),this._totalSize=this._sizes.reduce((a,l)=>a+l,0);let n=Math.max(...this._sizes),o=Math.ceil((this._size+n)/this._totalSize);if(this._totalSize=Math.max(this._totalSize,this._size+n),e.cloneNodes&&o>1){for(let a=1;a<o;a+=1)this._elements.forEach(l=>{let c=l.cloneNode(!0);this._applyNodeStyles(c,!0),r.appendChild(c)});this._elements=Array.from(r.children),this.resize()}this.callbacks.emit("resize",void 0),setTimeout(()=>this.render(0),0)}render(e){this._render(e)}_render(e=this.props.speed){if(this.isDestroyed)return;let{isVertical:t,props:i,gap:r}=this,n=this._isRtl?-e:e;this._coord-=P(n);let o=this._size*.5+this._sizes[0]/2-r,a=this._coord+(i.centered?o:0),l=0;for(let c=0;c<this._elements.length;c+=1){let h=this._elements[c],p=this._sizes[c],{style:d}=h,g=L(a+l,-p,this._totalSize-p);if(t){let f=d.position==="relative"?"0":"-50%";d.transform=`translate(${f}, ${g}px)`}else{let f=d.position==="relative"?"0":"-50%";d.transform=`translate(${g}px, ${f})`}l+=p}this.callbacks.emit("render",void 0)}_handleIntersection(e){this.props.pauseOnOut&&e.forEach(t=>{t.isIntersecting&&this.props.enabled?this._raf.play():this._raf.pause()})}_destroy(){var e,t;let{container:i}=this.props;for(super._destroy(),this._raf.destroy(),(e=this._intersection)===null||e===void 0||e.disconnect(),(t=this._lastSetup)===null||t===void 0||t.call(this);i.firstChild;)i.removeChild(i.firstChild);this._initialNodes.forEach(r=>i.appendChild(r))}};fs([_],be.prototype,"resize",null);fs([_],be.prototype,"render",null);var te=B?v.createElement("style"):null;te&&(te.innerHTML="* { user-select: none !important; }");var we=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{buttons:[0],relative:!1,minPointers:1,maxPointers:5,disableUserSelect:!0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0})}get isStarted(){return this._isStarted}get pointersMap(){return this._pointersMap}get container(){return this.props.container}get minPointers(){return w(this.props.minPointers,1,1/0)}get maxPointers(){return w(this.props.maxPointers,this.props.minPointers,1/0)}constructor(e,t){super(e,t),this._listeners=[],this._isStarted=!1,this._pointersMap=new Map,this._setBaseEvents()}_setBaseEvents(){let{container:e}=this,t=y(e,"pointerdown",o=>this._handlePointerDown(o)),i=y(e,"dragstart",o=>o.preventDefault(),{passive:!1}),r=y(e,"mousedown",o=>{this.props.buttons.includes(1)&&o.preventDefault()},{passive:!1}),n=y(e,"contextmenu",o=>{this.props.buttons.includes(2)&&o.preventDefault()},{passive:!1});this.onDestroy(()=>{t(),i(),r(),n()})}_setRuntimeEvents(){if(this._listeners.length>0)return;let t=y(window,"pointermove",o=>this._handlePointerMove(o),{passive:!1}),i=y(window,"pointerup",o=>this._handlePointerUp(o),{passive:!1}),r=y(window,"pointercancel",()=>this._handleCancel(),{passive:!1}),n=y(window,"blur",()=>this._handleCancel());this._listeners=[t,i,r,n]}_handlePointerDown(e){let{props:t}=this,{x:i,y:r}=this._decodeCoords(e);if(!t.enabled||!t.buttons.includes(e.button)||this.pointersMap.get(e.pointerId)||this.pointersMap.size>=this.maxPointers)return;let o={id:e.pointerId,index:this.pointersMap.size,start:{x:i,y:r},prev:{x:i,y:r},current:{x:i,y:r},diff:{x:0,y:0},step:{x:0,y:0},accum:{x:0,y:0}};this.pointersMap.set(e.pointerId,o);let a=0;this.pointersMap.forEach(l=>{l.index=a,a+=1}),this.pointersMap.size===this.minPointers&&(this._isStarted=!0,this.callbacks.emit("start",void 0)),this._setRuntimeEvents(),t.disableUserSelect&&T.append(te),this.callbacks.emit("pointerdown",{event:e,pointer:o})}_handlePointerMove(e){let t=this.pointersMap.get(e.pointerId);if(!t)return;let{x:i,y:r}=this._decodeCoords(e);t.prev=Object.assign({},t.current),t.current={x:i,y:r},t.diff.x=t.current.x-t.start.x,t.diff.y=t.current.y-t.start.y,t.step.x=t.current.x-t.prev.x,t.step.y=t.current.y-t.prev.y,t.accum.x+=Math.abs(t.step.x),t.accum.y+=Math.abs(t.step.y),this.callbacks.emit("pointermove",{event:e,pointer:t})}_handlePointerUp(e){let t=this.pointersMap.get(e.pointerId);t&&(this.callbacks.emit("pointerup",{pointer:t}),this.pointersMap.delete(e.pointerId),this.pointersMap.size<this.minPointers&&this._isStarted&&(this._isStarted=!1,this.callbacks.emit("end",void 0)),this.pointersMap.size===0&&this._cleanup())}_handleCancel(){this.callbacks.emit("end",void 0),this.pointersMap.forEach(e=>{this.callbacks.emit("pointerup",{pointer:e})}),this._cleanup()}_resetSelection(){var e,t;(e=window.getSelection())===null||e===void 0||e.empty(),(t=window.getSelection())===null||t===void 0||t.removeAllRanges()}_decodeCoords(e){let{container:t,props:i}=this;if(!i.relative)return{x:e.clientX,y:e.clientY};let r=t.getBoundingClientRect(),n=e.clientX-r.left,o=e.clientY-r.top;return{x:n,y:o}}_cleanup(){this._listeners.forEach(e=>e()),this._listeners=[],this._isStarted=!1,this.pointersMap.clear(),this.props.disableUserSelect&&(this._resetSelection(),te===null||te===void 0||te.remove())}_destroy(){this._cleanup(),super._destroy()}};function Fe(s){return typeof s=="undefined"}var He=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},k=class extends x{_getStatic(){return Object.assign({},super._getStatic())}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{easing:b().props.easing,duration:1e3})}get progress(){return this._progress}set progress(e){this._progress=w(e),this._onUpdate()}get eased(){return this._eased}get isPlaying(){return!Fe(this._raf)}get isReversed(){return this._isReversed}get isPaused(){return this._isPaused}get duration(){let e=this.props.duration;return Number.isNaN(e)||!Number.isFinite(e)||e<0?0:this.props.duration}constructor(e,t){super(e,t),this._progress=0,this._eased=0,this._raf=void 0,this._time=0,this._isReversed=!1,this._isPaused=!1}play(){this.progress!==1&&(this._isReversed=!1,this._isPaused=!1,this.isPlaying||(this._time=Date.now(),this._animate()))}reverse(){this.progress!==0&&(this._isReversed=!0,this._isPaused=!1,this.isPlaying||(this._time=Date.now(),this._animate()))}pause(){this._isPaused=!0,this._raf&&window.cancelAnimationFrame(this._raf),this._raf=void 0}reset(){this.pause(),this.progress=0}_animate(){if(this.isPaused)return;let{isReversed:e,duration:t}=this;if(t<=0){this.progress=e?1:0,this.progress=e?0:1;return}let i=Date.now(),r=Math.abs(this._time-i);this._time=i;let n=r/t/(e?-1:1),o=this.progress+n;if(this.progress=o,this.progress===1&&!e||this.progress===0&&e){this._isReversed=!1,this._isPaused=!1,this._raf=void 0;return}this._raf=window.requestAnimationFrame(()=>this._animate())}_onUpdate(){if(this._eased=Xt(this._progress,this.props.easing),this.callbacks.emit("update",{progress:this._progress,eased:this._eased}),this.progress===0){this.callbacks.emit("start",void 0);return}this.progress===1&&this.callbacks.emit("end",void 0)}_destroy(){this.pause(),super._destroy()}};He([_],k.prototype,"play",null);He([_],k.prototype,"reverse",null);He([_],k.prototype,"pause",null);He([_],k.prototype,"reset",null);var ye=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{hide:250})}_getMutable(){return Object.assign({},super._getMutable())}get isHidden(){return this._isHidden}constructor(e,t){super(e,t),this._shouldHide=!1,this._isHidden=!1,this._isLoaded=!1;let i=setTimeout(()=>{this._onLoaded(()=>this._handleLoaded())},0);this.onDestroy(()=>clearTimeout(i))}_onLoaded(e){b().onLoad(e)}_handleLoaded(){this.isDestroyed||(this._isLoaded=!0,this.callbacks.emit("loaded",void 0),A(this.props.hide)&&this.hide(this.props.hide))}hide(e,t){if(this.isDestroyed||!this._isLoaded||this._shouldHide)return;let i=!1;return this._shouldHide=!0,this.callbacks.emit("hide",void 0),this._hideContainer(()=>{this._onHidden(),i||t==null||t()},e),()=>{i=!0}}_hideContainer(e,t){let{container:i}=this.props;if(!i){e();return}let r=new k({duration:t});this.onDestroy(()=>r.destroy()),r.on("update",({progress:n})=>{let{style:o}=i;o.opacity=String(1-n),o.display=n===1?"none":"flex"}),r.on("end",()=>e()),r.play()}_onHidden(){this._isHidden=!0,this.callbacks.emit("hidden",void 0)}onHide(e){return this.isDestroyed?()=>{}:this._shouldHide?(e(),()=>{}):this.on("hide",()=>e())}onHidden(e){return this.isDestroyed?()=>{}:this._isHidden?(e(),()=>{}):this.on("hidden",()=>e())}};function ms(s,e){if(s.complete){e();return}let t=new Image;t.addEventListener("load",()=>e()),t.addEventListener("error",()=>e()),t.crossOrigin="anonymous",t.src=s.currentSrc||s.src}function _s(s,e){if(s.readyState>0){e();return}if(s.preload==="none"){e();return}s.addEventListener("error",()=>e()),s.addEventListener("loadedmetadata",()=>e())}function gs(s){let e=parseFloat(s.getAttribute("data-loaded")||"0");return e=Number.isNaN(e)?0:w(e,0,1/0),e}function vs({id:s,weight:e},t){if(!(s instanceof Element))return;if(gs(s)>=e){t(e);return}let i=new MutationObserver(()=>{let r=gs(s);t(r),r>=e&&i.disconnect()});i.observe(s,{attributes:!0,attributeFilter:["data-loaded"]})}var ws=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},bs=`vevet-page-${Math.random()}`,xe=class extends ye{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{resourceContainer:null,preloadImages:!0,preloadVideos:!1,customSelector:".js-preload",ignoreClassName:"js-preload-ignore",lerp:.1,endDuration:500})}_getMutable(){return Object.assign({},super._getMutable())}get resources(){return this._resources}get totalWeight(){return this.resources.reduce((e,{weight:t})=>e+t,0)}get loadedWeight(){return this.resources.reduce((e,{loaded:t})=>e+t,0)}get loadProgress(){return this.loadedWeight/this.totalWeight}get progress(){return this._progress}get lerpEase(){return w(Math.abs(this.props.lerp))}constructor(e,t){super(e,t),this._resources=[{id:bs,weight:1,loaded:0}],this._progress=0,this._raf=new V({enabled:!0}),this._raf.on("frame",({lerpFactor:i})=>{let r=C(this._progress,this.loadProgress,i(this.lerpEase));this._handleUpdate(r)}),this._fetchImages(),this._fetchVideos(),this._fetchResources(),b().onLoad(()=>this.resolveResource(bs))}get resourceContainer(){var e;return(e=this.props.resourceContainer)!==null&&e!==void 0?e:v}_fetchImages(){if(!this.props.preloadImages)return;let e=Array.from(this.resourceContainer.querySelectorAll("img"));e=e.filter(t=>!Q(t,this.props.ignoreClassName)&&t.loading!=="lazy"),this._resources.push(...e.map(t=>({id:t,weight:1,loaded:0}))),e.forEach(t=>{ms(t,()=>this.resolveResource(t))})}_fetchVideos(){if(!this.props.preloadVideos)return;let e=Array.from(this.resourceContainer.querySelectorAll("video"));e=e.filter(t=>!Q(t,this.props.ignoreClassName)),this._resources.push(...e.map(t=>({id:t,weight:1,loaded:0}))),e.forEach(t=>{_s(t,()=>this.resolveResource(t))})}_fetchResources(){let e=Array.from(this.resourceContainer.querySelectorAll(this.props.customSelector));e=e.filter(t=>!Q(t,this.props.ignoreClassName)),e.forEach(t=>{let i=parseInt(t.getAttribute("data-weight")||"1",10);i=Number.isNaN(i)?1:w(i,1,1/0);let r={id:t,weight:i,loaded:0};this._resources.push(r),vs(r,n=>this.resolveResource(t,n))})}addResource(e,t=1){if(this.resources.some(r=>r.id===e))throw new Error("Resource already exists");this._resources.push({id:e,weight:t,loaded:0})}resolveResource(e,t){let i=this.resources.find(n=>n.id===e);if(!i)return;let r=t!=null?t:i.weight;i.loaded=w(r,0,i.weight),this.callbacks.emit("resource",i)}_handleUpdate(e){var t;if(this._progress=e,this.callbacks.emit("progress",void 0),this.loadProgress<1)return;(t=this._raf)===null||t===void 0||t.destroy();let i=this.progress;if(i>=1)return;let r=new k({duration:this.props.endDuration});this.onDestroy(()=>r.destroy()),r.on("update",({progress:n})=>{let o=1-i;this._progress=i+o*n,this.callbacks.emit("progress",void 0)}),r.play()}_onLoaded(e){let t=!1;this.callbacks.on("progress",()=>{this.progress>=1&&!t&&(t=!0,e())},{protected:!0,name:this.name})}_destroy(){super._destroy(),this._raf.destroy()}};ws([_],xe.prototype,"addResource",null);ws([_],xe.prototype,"resolveResource",null);var he=null;function ys(s){return he||(he=v.createElement("style"),We(he),he.innerHTML=`
|
|
97
|
+
.${s}-scrollable {
|
|
101
98
|
-ms-overflow-style: none;
|
|
102
99
|
scrollbar-width: none;
|
|
103
100
|
}
|
|
104
101
|
|
|
105
|
-
.${
|
|
102
|
+
.${s}-scrollable::-webkit-scrollbar {
|
|
106
103
|
display: none;
|
|
107
104
|
appearance: none;
|
|
108
105
|
width: 0;
|
|
109
106
|
height: 0;
|
|
110
107
|
}
|
|
111
108
|
|
|
112
|
-
.${
|
|
109
|
+
.${s} {
|
|
113
110
|
position: absolute;
|
|
114
111
|
z-index: 1;
|
|
115
112
|
display: flex;
|
|
@@ -123,53 +120,53 @@ presetVevetCss();`;function y(i,e=0,t=1){let s=Math.min(e,t),r=Math.max(e,t);ret
|
|
|
123
120
|
transition: opacity 0.25s linear, visibility 0.25s linear;
|
|
124
121
|
}
|
|
125
122
|
|
|
126
|
-
.${
|
|
123
|
+
.${s}.${s}_in-window {
|
|
127
124
|
position: fixed;
|
|
128
125
|
z-index: 9;
|
|
129
126
|
}
|
|
130
127
|
|
|
131
|
-
.${
|
|
128
|
+
.${s}.${s}_inited {
|
|
132
129
|
opacity: 1;
|
|
133
130
|
visibility: visible;
|
|
134
131
|
}
|
|
135
132
|
|
|
136
|
-
.${
|
|
133
|
+
.${s}.${s}_empty {
|
|
137
134
|
opacity: 0;
|
|
138
135
|
visibility: hidden;
|
|
139
136
|
}
|
|
140
137
|
|
|
141
|
-
.${
|
|
138
|
+
.${s}.${s}_auto-hide {
|
|
142
139
|
opacity: 0;
|
|
143
140
|
}
|
|
144
141
|
|
|
145
|
-
.${
|
|
146
|
-
.${
|
|
147
|
-
.${
|
|
142
|
+
.${s}.${s}_auto-hide:hover,
|
|
143
|
+
.${s}.${s}_auto-hide:active,
|
|
144
|
+
.${s}.${s}_in-action {
|
|
148
145
|
opacity: 1;
|
|
149
146
|
}
|
|
150
147
|
|
|
151
|
-
.${
|
|
148
|
+
.${s}_y {
|
|
152
149
|
top: 0;
|
|
153
150
|
right: 0;
|
|
154
151
|
width: 10px;
|
|
155
152
|
height: 100%;
|
|
156
153
|
}
|
|
157
154
|
|
|
158
|
-
.${
|
|
155
|
+
.${s}_x {
|
|
159
156
|
bottom: 0;
|
|
160
157
|
left: 0;
|
|
161
158
|
width: 100%;
|
|
162
159
|
height: 10px;
|
|
163
160
|
}
|
|
164
161
|
|
|
165
|
-
.${
|
|
162
|
+
.${s}__track {
|
|
166
163
|
position: relative;
|
|
167
164
|
width: 100%;
|
|
168
165
|
height: 100%;
|
|
169
166
|
background: #ccc;
|
|
170
167
|
}
|
|
171
168
|
|
|
172
|
-
.${
|
|
169
|
+
.${s}__thumb {
|
|
173
170
|
position: absolute;
|
|
174
171
|
top: 0;
|
|
175
172
|
left: 0;
|
|
@@ -177,7 +174,7 @@ presetVevetCss();`;function y(i,e=0,t=1){let s=Math.min(e,t),r=Math.max(e,t);ret
|
|
|
177
174
|
height: 100%;
|
|
178
175
|
background: #333;
|
|
179
176
|
}
|
|
180
|
-
`,ce)}var he=j?_.createElement("style"):null;he&&(he.innerHTML="* { cursor: grabbing !important; }");var Gr=4,ie=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{thumb:null,buttons:[0],pointers:1,disableUserSelect:!0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0,relative:!1,axis:null,ratio:1,grabCursor:!1,willAbort:()=>!1,threshold:5,minTime:0,directionThreshold:50,preventEdgeSwipe:!0,edgeSwipeThreshold:20,preventTouchMove:!0,requireCtrlKey:!1,inertia:!1,inertiaDuration:e=>y(e,500,2e3),inertiaEasing:ee,velocityModifier:!1,distanceModifier:!1,inertiaRatio:1,inertiaDistanceThreshold:50})}get isSwiping(){return this._isSwiping}get coords(){return this._coords}get container(){return this.props.container}get hasInertia(){return!!this._inertia}constructor(e,t){super(e,t),this._isSwiping=!1,this._isAborted=!1;let{container:s,thumb:r,buttons:n,pointers:o}=this.props,{callbacks:a}=this;this._coords={timestamp:0,start:{x:0,y:0,angle:0},prev:{x:0,y:0,angle:0},current:{x:0,y:0,angle:0},diff:{x:0,y:0,angle:0},step:{x:0,y:0,angle:0},accum:{x:0,y:0}},this._velocities=[],this._cursorStyles=he===null||he===void 0?void 0:he.cloneNode(!0),this._pointers=new be({container:r||s,buttons:n,minPointers:o,maxPointers:o,enabled:this.props.enabled,disableUserSelect:this.props.disableUserSelect}),this._pointers.on("start",()=>this._handlePointersStart()),this._pointers.on("pointerdown",c=>a.emit("pointerdown",c)),this._pointers.on("pointermove",c=>a.emit("pointermove",c)),this._pointers.on("pointerup",c=>a.emit("pointerup",c));let l=w(s,"touchstart",c=>this._handleTouchStart(c),{passive:!1});this.onDestroy(()=>l()),this._setInlineStyles()}_handleProps(){super._handleProps(),this._pointers.updateProps({enabled:this.props.enabled}),this._setInlineStyles()}_setInlineStyles(){let{container:e,axis:t}=this.props,{style:s}=e,r=this.props.grabCursor?"grab":"",n="none";t==="x"?n="pan-y":t==="y"&&(n="pan-x"),s.cursor=r,s.touchAction=n}_handleTouchStart(e){this.props.enabled&&(this.callbacks.emit("touchstart",e),this._preventEdgeSwipe(e))}_preventEdgeSwipe(e){if(!this.props.preventEdgeSwipe)return;let t=this.props.edgeSwipeThreshold,s=e.targetTouches[0].pageX;e.cancelable&&(s<=t||s>=v().width-t)&&(e.preventDefault(),this.callbacks.emit("preventEdgeSwipe",void 0))}_handlePointersStart(){let e=w(window,"touchmove",this._handleTouchMove.bind(this),{passive:!1}),t=w(window,"mousemove",this._handleMouseMove.bind(this)),s=this._pointers.on("end",()=>{this._handleEnd(),s(),e(),t()});this.onDestroy(()=>{s(),e(),t()})}_handleTouchMove(e){this.callbacks.emit("touchmove",e),this._isSwiping&&this.props.preventTouchMove&&e.cancelable&&e.preventDefault(),this._handleMove(this._decodeCoords(e),"touch")}_handleMouseMove(e){this.props.requireCtrlKey&&!e.ctrlKey||(this.callbacks.emit("mousemove",e),this._handleMove(this._decodeCoords(e),"mouse"))}_decodeCoords(e){let{props:t}=this,{container:s,ratio:r}=t,n="touches"in e?e.touches[0].clientX:e.clientX,o="touches"in e?e.touches[0].clientY:e.clientY,a=n,l=o,c=v().width/2,h=v().height/2;if(t.relative){let b=s.getBoundingClientRect();a=n-b.left,l=o-b.top,c=b.left+b.width/2,h=b.top+b.height/2}let d=Math.atan2(o-h,n-c)*180/Math.PI;return{x:a*r,y:l*r,angle:d}}_handleMove(e,t){let s=this._coords;if(!this._isAborted){if(this._startCoord||(this._startCoord=Object.assign({},e)),this._startTime||(this._startTime=+Date.now()),!this._isSwiping){let{threshold:r,ratio:n,minTime:o,axis:a,willAbort:l}=this.props,c=Math.abs(n),h={x:e.x-this._startCoord.x,y:e.y-this._startCoord.y};if(Math.sqrt(Math.pow(h.x/c,2)+Math.pow(h.y/c,2))<r||+new Date-this._startTime<o)return;if(a){let d=Math.atan2(Math.abs(h.y),Math.abs(h.x))*180/Math.PI;if((a==="x"?d:90-d)>45){this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0);return}}if(l({type:t,matrix:e,start:this._startCoord,diff:h})){this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0);return}}this._isSwiping||(this.cancelInertia(),this._isSwiping=!0,this._startCoord=Object.assign({},e),s.timestamp=performance.now(),s.start=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),s.prev=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),s.current=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),s.diff={x:0,y:0,angle:0},s.step={x:0,y:0,angle:0},s.accum={x:0,y:0},this.callbacks.emit("start",this._coords),this.props.grabCursor&&this._cursorStyles&&M.append(this._cursorStyles)),this._move(e)}}_move({x:e,y:t,angle:s}){let r=this._coords,n=Object.assign({},r.start),o=Object.assign({},r.current),a={x:e,y:t,angle:s};r.timestamp=performance.now(),r.prev=o,r.current=a;let l=r.current.angle-r.prev.angle;l>180?l-=360:l<-180&&(l+=360),r.step={x:a.x-o.x,y:a.y-o.y,angle:l},r.diff={x:a.x-n.x,y:a.y-n.y,angle:r.diff.angle+r.step.angle},r.accum={x:r.accum.x+Math.abs(r.step.x),y:r.accum.y+Math.abs(r.step.y)},this.hasInertia||(this._velocities.push(Object.assign(Object.assign({},r.current),{timestamp:r.timestamp})),this._velocities.length>Gr&&this._velocities.shift()),this.callbacks.emit("move",this._coords)}_handleEnd(){if(this._startTime=void 0,this._isAborted=!1,!this.isSwiping)return;this._reset(),this._cursorStyles.remove();let{x:e,y:t}=this._coords.diff,s=Math.abs(e),r=Math.abs(t),{directionThreshold:n}=this.props,o=s>r?"x":"y";o==="x"&&s>n&&(e>0?this.callbacks.emit("toRight",void 0):e<0&&this.callbacks.emit("toLeft",void 0)),o==="y"&&r>n&&(t>0?this.callbacks.emit("toBottom",void 0):t<0&&this.callbacks.emit("toTop",void 0)),this.callbacks.emit("end",this._coords),this._velocities.length>0&&(this._velocities[this._velocities.length-1].timestamp=performance.now()),this.props.inertia&&this._endWithInertia()}_reset(){this._startCoord=void 0,this._isSwiping=!1}get velocity(){let e=this._velocities;if(e.length<2)return{x:0,y:0,angle:0};let t=0,s=0,r=0,n=0;for(let o=1;o<e.length;o+=1){let a=e[o],l=e[o-1],c=a.x-l.x,h=a.y-l.y,u=a.angle-l.angle;u>180&&(u-=360),u<-180&&(u+=360);let d=Math.max(a.timestamp-l.timestamp,1),b=c/d*1e3,f=h/d*1e3,p=u/d*1e3,m=1/Math.exp(-d*.1);s+=b*m,r+=f*m,n+=p*m,t+=m}return t>0?{x:s/t,y:r/t,angle:n/t}:{x:0,y:0,angle:0}}_endWithInertia(){let{inertiaDuration:e,inertiaEasing:t,velocityModifier:s,inertiaRatio:r,inertiaDistanceThreshold:n}=this.props,o={x:this.velocity.x*r,y:this.velocity.y*r,angle:this.velocity.angle*r},a=s?s(o):o,{x:l,y:c,angle:h}=a,u=Math.sqrt(Math.pow(l,2)+Math.pow(c,2));if(u<n){this.callbacks.emit("inertiaFail",void 0);return}let d=e(u);if(Number.isNaN(d)||!Number.isFinite(d)||d<=0){this.callbacks.emit("inertiaFail",void 0);return}let b=Object.assign({},this.coords.current),f={x:0,y:0,angle:0};this._inertia=new A({duration:d,easing:t}),this._inertia.on("start",()=>{this.callbacks.emit("inertiaStart",void 0)}),this._inertia.on("update",({eased:p})=>{f.x=l*p,f.y=c*p,f.angle=h*p,this._move({x:b.x+f.x,y:b.y+f.y,angle:b.angle+f.angle}),this.callbacks.emit("inertia",void 0)}),this._inertia.on("end",()=>{this.cancelInertia(),this.callbacks.emit("inertiaEnd",void 0)}),setTimeout(()=>{var p;(p=this._inertia)===null||p===void 0||p.play()},0)}cancelInertia(){var e;this._inertia&&(this._inertia.progress<1&&this.callbacks.emit("inertiaCancel",void 0),(e=this._inertia)===null||e===void 0||e.destroy(),this._inertia=void 0)}get start(){return this._coords.start}get prev(){return this._coords.prev}get current(){return this._coords.current}get diff(){return this._coords.diff}get step(){return this._coords.step}get accum(){return this._coords.accum}_destroy(){var e;super._destroy(),this._pointers.destroy(),(e=this._inertia)===null||e===void 0||e.destroy(),this._cursorStyles.remove()}};var Jr=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},Le=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{container:window,parent:!1,class:!1,axis:"y",draggable:!0,autoHide:!0,resizeDebounce:10})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{minSize:50,autoSize:!0})}get prefix(){return`${v().prefix}scrollbar`}get container(){return this._props.container}get outer(){return this._outer}get track(){return this._track}get thumb(){return this._thumb}constructor(e,t){super(e,t),this._valueOnSwipeStart=0,this._prevScrollValue=0,this._isRtl=!1,this._isRtl=J(this.parent)==="rtl",gs(this.prefix),this._create(),this._setResize(),this._setOnscroll(),this._setSwipe(),S(this.outer,this._cn("_inited"))}_handleProps(){super._handleProps(),this.resize()}get axis(){return this.props.axis}get parent(){let{parent:e,container:t}=this.props;return e||(t instanceof Window?M:t)}get scrollElement(){return this.container instanceof Window?I:this.container}get scrollSize(){let{scrollElement:e}=this;return this.axis==="x"?e.scrollWidth:e.scrollHeight}get scrollableSize(){let{scrollElement:e}=this;return this.axis==="x"?this.scrollSize-e.clientWidth:this.scrollSize-e.clientHeight}get scrollValue(){let{axis:e}=this;return this.container instanceof Window?e==="x"?window.scrollX:window.scrollY:e==="x"?this.container.scrollLeft:this.container.scrollTop}get trackSize(){return this.axis==="x"?this._track.offsetWidth:this._track.offsetHeight}get thumbSize(){return this.axis==="x"?this._thumb.offsetWidth:this._thumb.offsetHeight}_create(){let{parent:e,scrollElement:t}=this,s=this.container instanceof Window;this._outer=this._createOuter(),e.appendChild(this._outer),this._track=this._createTrack(),this._outer.appendChild(this._track),this._thumb=this._createThumb(),this._track.appendChild(this._thumb),s?(this._addTempClassName(I,this._cn("-scrollable")),this._addTempClassName(M,this._cn("-scrollable"))):this._addTempClassName(t,this._cn("-scrollable")),this.onDestroy(()=>this._outer.remove())}_createOuter(){let e=this._cn.bind(this),{props:t,axis:s}=this,r=_.createElement("div");return S(r,e("")),S(r,e(`_${s}`)),t.class&&S(r,t.class),this.container instanceof Window&&this._addTempClassName(r,this._cn("_in-window")),t.autoHide&&this._addTempClassName(r,this._cn("_auto-hide")),r}_createTrack(){let e=this._cn.bind(this),{axis:t}=this,s=_.createElement("div");return S(s,e("__track")),S(s,e(`__track_${t}`)),s}_createThumb(){let e=this._cn.bind(this),t=_.createElement("div");return S(t,e("__thumb")),S(t,e(`__thumb_${this.axis}`)),t}_setResize(){let e=()=>{let r=Array.from(this.scrollElement.children);return $({element:[this.track,this.parent,this.scrollElement,...r],viewportTarget:"width",resizeDebounce:this.props.resizeDebounce,callback:()=>this.resize()})},t=e();t.resize();let s=new MutationObserver(()=>{t.remove(),t=e(),t.debounceResize()});s.observe(this.scrollElement,{childList:!0}),this.onDestroy(()=>{t.remove(),s.disconnect()})}_setOnscroll(){let e=w(this.container,"scroll",()=>this._onScroll(),{passive:!0});this.onDestroy(()=>e())}_setSwipe(){if(!this.props.draggable)return;let e=new ie({container:this.thumb,grabCursor:!0});e.on("start",t=>{this._valueOnSwipeStart=this.scrollValue,this.callbacks.emit("swipeStart",t)}),e.on("move",t=>{this._onSwipeMove(t),this.callbacks.emit("swipe",t)}),e.on("end",t=>{this.callbacks.emit("swipeEnd",t)}),e.on("touchmove",t=>{t.stopPropagation(),t.stopImmediatePropagation()}),e.on("mousemove",t=>{t.stopPropagation(),t.stopImmediatePropagation()}),this.onDestroy(()=>e.destroy())}resize(){let{scrollableSize:e,scrollSize:t,outer:s,track:r,thumb:n,props:o,axis:a}=this,{autoSize:l}=o,c=a==="x";T(s,this._cn("_empty"),e===0);let h=c?r.offsetWidth:r.offsetHeight,u=N(o.minSize),d=u;l&&(d=y(h/(t/h),u,1/0));let{style:b}=n;c?b.width=`${d}px`:b.height=`${d}px`,this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._render(),this.callbacks.emit("resize",void 0)}_render(){let{scrollValue:e,scrollableSize:t,axis:s,thumbSize:r,trackSize:n}=this,o=y(Math.abs(e)/t);this._isRtl&&s==="x"&&(o=1-o);let a=(n-r)*o,l=s==="x"?a:0,c=s==="y"?a:0;this._thumb.style.transform=`translate(${l}px, ${c}px)`,this.callbacks.emit("update",void 0)}_onScroll(){let{scrollValue:e,outer:t}=this,s=this._cn("_in-action");e!==this._prevScrollValue?this._addInActionTimeout=setTimeout(()=>{K(t,s)||(S(t,s),this.callbacks.emit("show",void 0))},50):this._prevScrollValue=e,this._render(),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout),this._removeInActionTimeout=setTimeout(()=>{V(t,s),this.callbacks.emit("hide",void 0)},500)}_onSwipeMove({diff:e}){let{scrollElement:t,axis:s,trackSize:r,thumbSize:n,scrollableSize:o}=this,l=(s==="x"?e.x:e.y)/(r-n)*o,c=this._valueOnSwipeStart+l;t.scrollTo({top:s==="y"?c:void 0,left:s==="x"?c:void 0,behavior:"instant"})}_destroy(){super._destroy(),this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout)}};Jr([g],Le.prototype,"resize",null);var Zr=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},Ve=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{root:null,optimized:!0,useSvh:!1})}_getMutable(){return Object.assign({},super._getMutable())}get section(){return this.props.section}get isVisible(){return this._isVisible}get rootBounds(){return this._rootBounds}get sectionBounds(){return this._sectionBounds}constructor(e,t){super(e,t),this._isVisible=!1,this._rootBounds={top:0,left:0,width:1,height:1},this._sectionBounds={top:0,left:0,width:1,height:1},this._isVisible=!this.props.optimized,this._setup()}_setup(){this._setupObserver(),this._setupScroll()}_setupObserver(){if(!this.props.optimized)return;let{section:e}=this.props,t=new IntersectionObserver(s=>{s.forEach(r=>{r.target===e&&(this._isVisible=r.isIntersecting,this.update())})});t.observe(e),this.onDestroy(()=>t.disconnect())}_setupScroll(){let e=this.props.root||window,t=w(e,"scroll",()=>{this._isVisible&&this.update()},{passive:!1});this.onDestroy(t)}update(){let{section:e,props:t}=this,s=t.root,r=v(),n=e.getBoundingClientRect(),o={top:0,left:0,width:r.width,height:t.useSvh?r.sHeight:r.height};this._rootBounds=s?s.getBoundingClientRect():o,this._sectionBounds={top:n.top-this._rootBounds.top,left:n.left-this._rootBounds.left,width:n.width,height:n.height},this.callbacks.emit("update",void 0)}getProgress(e,t,s,r){let n=je(this._sectionBounds.top,[e,s]),o=je(this._sectionBounds.left,[r,t]);return{x:Number.isNaN(o)?0:o,y:Number.isNaN(n)?0:n}}get inProgress(){let{rootBounds:e,sectionBounds:t}=this,s=this.rootBounds.height,r=t.width>e.width?0:e.width-t.width,n=t.height>e.height?0:e.height-t.height,o=this.rootBounds.width;return this.getProgress(s,r,n,o)}get outProgress(){let{rootBounds:e,sectionBounds:t}=this,s=Math.min(e.height-t.height,0),r=-t.width,n=-t.height,o=Math.min(e.width-t.width,0);return this.getProgress(s,r,n,o)}get moveProgress(){let{rootBounds:e,sectionBounds:t}=this,s=t.height>e.height?0:e.height-t.height,r=t.width>e.width?-(t.width-e.width):0,n=t.height>e.height?-(t.height-e.height):0,o=t.width>e.width?0:e.width-t.width;return this.getProgress(s,r,n,o)}get progress(){let{sectionBounds:e,rootBounds:t}=this,s=t.height,r=-e.width,n=-e.height,o=t.width;return this.getProgress(s,r,n,o)}};Zr([g],Ve.prototype,"update",null);var Fe="data-snap-parallax-";function z(i){return`${Fe}${i}`}var He=[{name:"transform",types:[{n:z("x"),p:"translateX",u:"px"},{n:z("y"),p:"translateY",u:"px"},{n:z("z"),p:"translateZ",u:"px"},{n:z("scale"),p:"scale",u:"",modifier:i=>i+1},{n:z("scale-x"),p:"scaleX",u:"",modifier:i=>i+1},{n:z("scale-y"),p:"scaleY",u:"",modifier:i=>i+1},{n:z("skew"),p:"skew",u:"deg"},{n:z("skew-x"),p:"skewX",u:"deg"},{n:z("skew-y"),p:"skewY",u:"deg"},{n:z("rotate"),p:"rotate",u:"deg"},{n:z("rotate-x"),p:"rotateX",u:"deg"},{n:z("rotate-y"),p:"rotateY",u:"deg"},{n:z("rotate-z"),p:"rotateZ",u:"deg"}]},{name:"opacity",types:[{n:z("opacity"),p:"opacity",u:"",isAbs:!0,modifier:i=>y(i+1,0,1)}]}],Qt=Object.values(He).map(({types:i})=>i).flat(),Ue=Qt.map(({n:i})=>i);var Xe=class{constructor(e,t,s){this._snap=e,this._slide=t,this._element=s,this._types=[],this._items=[],this._debounceInit=null,this._initDebounce(),this._observer=new MutationObserver(r=>{r.forEach(({attributeName:n})=>{n&&Ue.includes(n)&&this._initDebounce()})}),this._observer.observe(this._element,{attributes:!0})}_initDebounce(){this._debounceInit&&clearTimeout(this._debounceInit),this._debounceInit=setTimeout(()=>this._init(),16)}_init(){this._updateItems(),this.render()}_updateItems(){let e=this._element,t=this._getScope(this._element,`${Fe}scope`,[-1,1]);this._types=Qt.filter(({n:s})=>e.hasAttribute(s)),this._items=this._types.map(({n:s,p:r,u:n,isAbs:o,modifier:a})=>{var l,c;let h=He.find(({types:q})=>q.find(H=>H.n===s)),u=`${s}-scope`,d=e.hasAttribute(u)?this._getScope(e,u,[-1,1]):t,b=(l=e.getAttribute(s))!==null&&l!==void 0?l:"",f=parseFloat(b)||0,p=b.replace(/[-\d.]+/g,"")||n,m=`${s}-offset`,E=parseFloat((c=e.getAttribute(m))!==null&&c!==void 0?c:"")||0,O=`${s}-influence`,P=e.hasAttribute(O),F=`${s}-directional`,se=e.hasAttribute(F),re=`${s}-abs`,Se=o||e.hasAttribute(re);return{n:s,p:r,u:p,group:h==null?void 0:h.name,modifier:a,scope:d,progress:0,target:f,value:0,offset:E,isInfluence:P,isDirectional:se,isAbs:Se}})}_getScope(e,t,s){var r;let n=(r=e.getAttribute(t))!==null&&r!==void 0?r:"";if(n.trim().toLowerCase()==="none")return[-1/0,1/0];let a=n.replace(/[\s\\[\]]+/g,"").split(","),l=parseFloat(a[0]),c=parseFloat(a[1]),h=Number.isNaN(l)?s[0]:l,u=Number.isNaN(c)?s[1]:c;return[h,u]}render(){let{_snap:e,_element:t,_items:s,_slide:r}=this,n=r.progress;s.forEach(o=>{let a=y(n,...o.scope);o.isInfluence&&(a*=Math.abs(e.track.influence)),o.isDirectional&&(a=Math.abs(a)*Math.sign(e.track.influence)),o.isAbs&&(a=Math.abs(a)),o.progress=a,o.value=o.offset+a*o.target,o.modifier&&(o.value=o.modifier(o.value))}),He.forEach(({name:o})=>{let c=s.filter(h=>h.group===o).map(({value:h,p:u,u:d})=>o==="opacity"?`${h}`:`${u}(${h}${d})`).join(" ");t.style[o]=c})}destroy(){this._observer.disconnect(),this._debounceInit&&clearTimeout(this._debounceInit)}};var de=class{constructor(e,t={}){this._element=e,this._coord=0,this._isAppended=!1,this._isVisible=!1,this._staticCoord=0,this._progress=0,this._id=fe("snap-slide"),this._index=0,this._parallax=[];let s={virtual:!1};if(this._props=Object.assign(Object.assign({},s),t),this.props.virtual&&(!t.size||t.size==="auto"))throw new Error("Virtual slide must have a size")}get element(){return this._element}get props(){return this._props}get id(){return this._id}get index(){return this._index}get snap(){return this._snap}get coord(){return this._coord}$_setCoord(e){var t,s;this._coord=e,this._isVisible=this.size>0&&this.coord>-this.size&&this.coord<((s=(t=this.snap)===null||t===void 0?void 0:t.domSize)!==null&&s!==void 0?s:0)}get staticCoord(){return this._staticCoord}$_setStaticCoord(e){this._staticCoord=e}get progress(){return this._progress}$_setProgress(e){this._progress=e}get sizeProp(){var e,t,s;return(s=(e=this.props.size)!==null&&e!==void 0?e:(t=this.snap)===null||t===void 0?void 0:t.props.slideSize)!==null&&s!==void 0?s:"auto"}get size(){var e;let{snap:t,sizeProp:s}=this;return t?s==="stretch"?t.domSize:s==="auto"?(e=this._domSize)!==null&&e!==void 0?e:t.domSize:N(s):0}get isVisible(){return this._isVisible}resize(e=!0){let{element:t,snap:s}=this;if(s){if(t){let{direction:r}=s.props;this._domSize=r==="horizontal"?t.offsetWidth:t.offsetHeight}s.resize(e)}}attach(e,t){this.detach(),this._snap=e,this._index=t,this._parallax=this._getParallaxNodes().map(s=>new Xe(e,this,s)),this.element&&this.sizeProp==="auto"&&(this._onResize=$({element:this.element,viewportTarget:"width",callback:()=>this.resize(!1),name:"Snap Slide"})),this.resize(!1)}detach(){var e,t;this._snap=void 0,(e=this._onResize)===null||e===void 0||e.remove(),(t=this._parallax)===null||t===void 0||t.forEach(s=>s.destroy())}$_render(){var e;this._toggleAppend(),(e=this._parallax)===null||e===void 0||e.forEach(t=>t.render())}_getParallaxNodes(){let{element:e}=this;if(!e)return[];let t=Ue.map(r=>`[${r}]`).join(","),s=e.querySelectorAll(t);return Array.from(s)}_toggleAppend(){if(!this.props.virtual||!this.element||!this.snap)return;let{element:e}=this,{container:t}=this.snap;this.isVisible&&!this._isAppended?(this._isAppended=!0,t.appendChild(e)):!this.isVisible&&this._isAppended&&(this._isAppended=!1,t.removeChild(e))}get magnets(){if(!this.snap)return[];let{snap:e,staticCoord:t,size:s,index:r}=this,{domSize:n,track:o,firstSlideSize:a}=e,l=[];if(r===0&&e.props.loop&&l.push(o.max),e.props.centered){let c=t+s/2-a/2;s>n?(l.push(c),l.push(c+(n-s)/2),l.push(c-(n-s)/2)):l.push(c)}else l.push(t),s>n&&l.push(t+(s-n));return!o.canLoop&&!e.props.centered&&(l=l.map(c=>y(c,0,o.max))),l}};var U=class{constructor(e){this._snap=e,this._destructors=[],e.on("destroy",()=>this._destroy(),{protected:!0})}get snap(){return this._snap}addDestructor(e){this._destructors.push(e)}_destroy(){this._destructors.forEach(e=>e())}};var qt=6,Qe=class extends U{constructor(e){super(e),this._hasStarted=!1,this._deltas=[],this._lastWheelTime=0;let t=w(e.eventsEmitter,"wheel",s=>this._handleWheel(s));this.addDestructor(()=>{t(),this._debounceEnd&&clearTimeout(this._debounceEnd)})}get absDeltas(){return this._deltas.map(e=>Math.abs(e))}get lastWheelTime(){return this._lastWheelTime}_handleWheel(e){let{props:t,axis:s}=this.snap;if(!t.wheel)return;e.preventDefault();let r=pt(e),o=(t.wheelAxis==="auto"?s:t.wheelAxis)==="x"?r.pixelX:r.pixelY;this._handleStart(o),this._handleMove(o,e),this._debounceEnd&&clearTimeout(this._debounceEnd),this._debounceEnd=setTimeout(()=>this._handleEnd(),200)}_handleStart(e){this._hasStarted||Math.abs(e)<2||(this._hasStarted=!0,this.snap.callbacks.emit("wheelStart",void 0))}_handleMove(e,t){if(!this._hasStarted)return;let{props:s,callbacks:r}=this.snap;this._addDelta(e),r.emit("wheel",t),s.followWheel?this._handleFollow(e):this._handleNoFollow(e)}_handleFollow(e){let{snap:t}=this;t.cancelTransition(),t.track.$_iterateTarget(e*t.props.wheelSpeed),t.track.clampTarget()}_handleNoFollow(e){let{snap:t,isTouchPad:s,isGainingDelta:r}=this,{track:n,activeSlide:o,domSize:a}=t;if(this._detectNoFollowThrottle())return;let l=!1,c=!0;if(l||n.isSlideScrolling&&(o.coord===0?e>0&&(l=!0):o.coord===a-o.size?e<0&&(l=!0):(l=!0,c=!1)),c){if(!s||s&&(r||this.absDeltas.length===1)){let h=Math.sign(e);if(l)t.cancelTransition(),n.$_iterateTarget(h),n.clampTarget(),s||(n.$_current=n.target);else if(h===1){if(!t.props.loop&&t.activeIndex===t.slides.length-1&&!t.props.rewind)return;this._lastWheelTime=+new Date,t.next()}else{if(!t.props.loop&&t.activeIndex===0&&!t.props.rewind)return;this._lastWheelTime=+new Date,t.prev()}}return}if(l){t.cancelTransition();let h=e*t.props.wheelSpeed,u=Math.min(...o.magnets),d=Math.max(...o.magnets),b=n.loopCoord(n.target),f=y(b+h,u,d);n.$_target=n.target+f-b,n.clampTarget()}}_detectNoFollowThrottle(){let{isTouchPad:e,snap:t}=this,{wheelThrottle:s}=t.props,r=+new Date-this._lastWheelTime;return k(s)?r<s:e?this.snap.isTransitioning:!!(t.scrollableSlides.filter(o=>o.isVisible).length&&t.isTransitioning||r<500)}_handleEnd(){if(!this._hasStarted)return;let{snap:e}=this,{props:t,activeSlide:s,track:r}=e,n=this._deltas.slice(-3).reduce((o,a)=>o+a,0);if(this._deltas=[],this._hasStarted=!1,!t.freemode||t.freemode==="sticky")if(t.followWheel&&t.stickOnWheelEnd){let o=Math.abs(t.stickOnWheelEndThreshold)/s.size;s.progress>o&&!r.isSlideScrolling&&n>0?e.next():s.progress<-o&&!r.isSlideScrolling&&n<0?e.prev():e.stick()}else!t.followWheel&&!e.isTransitioning&&e.stick();e.callbacks.emit("wheelEnd",void 0)}_addDelta(e){this._deltas.length>=qt&&this._deltas.shift(),this._deltas.push(e)}get isTouchPad(){return!this.isStableDelta||this.isSmallDelta}get isStableDelta(){let e=this.absDeltas,t=.8,s=e.map((n,o)=>{let a=e[o-1];return e[o-1]?n-a:0});return s.filter(n=>n===0).length>s.length*t}get isSmallDelta(){let e=this.absDeltas;return e.length===0?!0:e[e.length-1]<50}get isGainingDelta(){let e=v(),t=this.absDeltas,s=e.osName.includes("window")?1.5:1.2;if(t.length<qt)return!1;let r=t.slice(-qt),n=r.slice(0,Math.floor(r.length/2)),o=r.slice(Math.floor(r.length/2)),a=this._getAverage(n);return this._getAverage(o)>a*s}_getAverage(e){return e.length?e.reduce((t,s)=>t+s,0)/e.length:0}};var qe=class extends U{constructor(e){super(e);let{props:t,activeIndex:s}=e;this._startIndex=s,this._startTime=0;let r=new ie({container:e.eventsEmitter,enabled:t.swipe,grabCursor:t.grabCursor,minTime:t.swipeMinTime,threshold:t.swipeThreshold,axis:this.axis,ratio:t.swipeSpeed,inertia:!1,inertiaDuration:t.swipeInertiaDuration,inertiaRatio:t.swipeInertiaRatio,velocityModifier:this._handleVelocityModifier.bind(this),inertiaDistanceThreshold:5});this.swipe=r,this.addDestructor(()=>r.destroy()),r.on("start",n=>this._handleSwipeStart(n)),r.on("move",n=>this._handleSwipeMove(n)),r.on("end",n=>this._handleSwipeEnd(n)),r.on("inertiaStart",()=>this._handleSwipeInertiaStart()),r.on("inertiaEnd",()=>this._handleSwipeInertiaEnd()),r.on("inertiaFail",()=>this._handleSwipeInertiaFail()),r.on("inertiaCancel",()=>this._handleSwipeInertiaCancel()),e.on("props",()=>{r.updateProps({enabled:e.props.swipe,grabCursor:e.props.grabCursor,minTime:e.props.swipeMinTime,threshold:e.props.swipeThreshold,axis:this.axis,ratio:t.swipeSpeed,inertiaDuration:e.props.swipeInertiaDuration,inertiaRatio:e.props.swipeInertiaRatio})},{protected:!0})}get axis(){let{props:e,axis:t}=this.snap;return e.swipeAxis==="auto"?t:e.swipeAxis}get isSwiping(){return this.swipe.isSwiping}get hasInertia(){return this.swipe.hasInertia}get isShort(){let{props:e}=this.snap;return e.shortSwipes?+new Date-this._startTime<=e.shortSwipesDuration:!1}get allowFriction(){return!this.isShort&&this.snap.props.swipeFriction}get diff(){let{diff:e}=this.swipe;return(this.axis==="x"?e.x:e.y)/Math.abs(this.snap.props.swipeSpeed)}_handleVelocityModifier(e){let{props:t,track:s,activeSlide:r,domSize:n}=this.snap,{coord:o,size:a}=r;if(t.freemode===!0)return e;if(s.$_target=s.current,t.freemode==="sticky"&&!s.isSlideScrolling){let h=s.loopedCurrent-e[this.axis],u=this.snap.getNearestMagnet(h);if(!u)return e;let d=s.loopedCurrent-h-u.diff;return Object.assign(Object.assign({},e),{[this.axis]:d})}let l=y(e[this.axis],-o,n-a-o);return Object.assign(Object.assign({},e),{[this.axis]:l})}_handleSwipeStart(e){let{snap:t}=this;this._startIndex=t.activeIndex,this._startTime=+new Date,t.eventsEmitter.style.pointerEvents="none",t.props.followSwipe&&t.cancelTransition(),t.callbacks.emit("swipeStart",e)}_handleSwipeMove(e){let{snap:t,swipe:s}=this,{props:r,track:n,callbacks:o}=t,{followSwipe:a}=r;if(!a&&!n.isSlideScrolling)return;let c=(this.axis==="x"?e.step.x:e.step.y)*-1;n.$_iterateTarget(c),s.hasInertia&&n.clampTarget(),o.emit("swipe",e)}_handleSwipeEnd(e){this._end(),this.snap.eventsEmitter.style.pointerEvents="",this.snap.callbacks.emit("swipeEnd",e)}_handleSwipeInertiaStart(){this.snap.callbacks.emit("swipeInertiaStart",void 0)}_handleSwipeInertiaEnd(){this.snap.callbacks.emit("swipeInertiaEnd",void 0)}_handleSwipeInertiaFail(){let{snap:e}=this;e.props.freemode==="sticky"&&!e.track.isSlideScrolling&&(this.isShort?this._endShort():e.stick()),this.snap.callbacks.emit("swipeInertiaFail",void 0)}_handleSwipeInertiaCancel(){this.snap.callbacks.emit("swipeInertiaCancel",void 0)}_end(){let{snap:e,swipe:t}=this,{props:s,track:r}=e;if(s.freemode){t.updateProps({inertia:!0}),!r.canLoop&&(r.target<r.min||r.target>r.max)&&(t.cancelInertia(),e.stick()),this.isShort&&s.freemode==="sticky"&&(t.updateProps({inertia:!1}),t.cancelInertia(),this._endShort());return}if(r.isSlideScrolling){t.updateProps({inertia:!0});return}if(t.updateProps({inertia:!1}),!s.followSwipe){this._endNoFollow();return}if(this.isShort){this._endShort();return}e.stick()}_endShort(){let{diff:e,snap:t}=this,{props:s,activeSlide:r}=t;if(Math.abs(e)<s.shortSwipesThreshold){t.stick();return}let n=Math.sign(e);if(this._startIndex!==t.activeIndex){n<0&&r.progress>0?t.next():n>0&&r.progress<0?t.prev():t.stick();return}n<0?t.next():t.prev()}_endNoFollow(){let{diff:e,snap:t}=this;if(Math.abs(e)<20){t.stick();return}e<0?t.next():t.prev()}};var Ke=class extends U{constructor(e){super(e),this._influence={current:0,target:0},this._current=0,this._target=0,this._raf=new L,this._raf.on("frame",()=>this._handleRaf()),this._raf.on("play",()=>e.callbacks.emit("rafPlay",void 0)),this._raf.on("pause",()=>e.callbacks.emit("rafPause",void 0)),this.addDestructor(()=>this._raf.destroy())}get influence(){return this._influence.current}set $_influence(e){this._influence.current=e,this._influence.target=e}get current(){return this._current}set $_current(e){this._current=e}get target(){return this._target}set $_target(e){let{domSize:t}=this.snap,s=e-this._target;this._target=e,this._influence.target+=t?s/t:0,this._influence.target=y(this._influence.target,-.2,.2)}set(e){this.$_current=e,this.$_target=e,this._influence.current=0,this._influence.target=0}get canLoop(){let{snap:e}=this;return e.props.loop&&e.slides.length>1}get loopedCurrent(){return this.loopCoord(this.current)}get offset(){let{snap:e}=this;return e.props.centered?e.domSize/2-e.firstSlideSize/2:0}get loopCount(){return Math.floor(this.current/this.max)}_handleRaf(){let{snap:e}=this;e.isTransitioning||(this.$_lerp(this._raf.lerpFactor(e.props.lerp)),this.isInterpolated&&this._raf.pause(),e.render(this._raf.duration))}loopCoord(e){return this.canLoop?W(e,this.min,this.max):e}$_lerp(e){let{snap:t,min:s,max:r}=this,{target:n}=this,o=e,a=this._influence;if(!t.props.loop){let{domSize:h}=t,u=(1-t.props.edgeFriction)*h;if(n<s){let d=1-Q(n,-h,s);n=s-d*u}else if(n>r){let d=Q(n,r,r+h);n=r+d*u}n=y(n,s-u,r+u)}let l=Math.abs(this.current-n),c=3;if(l<c){let h=1-l/c,u=(1-o)/15;o+=u*h}this.$_current=B(this.current,n,o,1e-6),a.target=B(a.target,0,e,1e-6),a.current=B(a.current,a.target,o,1e-6)}get isInterpolated(){return this.current===this.target&&this._influence.current===0}get min(){let{snap:e}=this;if(this.canLoop||e.isEmpty)return 0;if(e.props.centered){let t=e.slides[0];if(t.size>e.domSize)return e.domSize/2-t.size/2}return 0}get max(){let{domSize:e,slides:t,isEmpty:s,props:r}=this.snap,{canLoop:n}=this;if(s)return 0;let o=t[0],a=t[t.length-1],l=a.staticCoord+a.size,c=n?l+N(r.gap):l-e;return n||(r.centered&&(c+=e/2-o.size/2,a.size<e&&(c+=e/2-a.size/2)),r.centered||(c=Math.max(c,0))),c}get progress(){return this.current/this.max}$_iterateTarget(e){this.$_target=this.target+e,this._raf.play()}clampTarget(){this.canLoop||(this.$_target=y(this.target,this.min,this.max)),this._raf.play()}get isStart(){return this.snap.props.loop?!1:Math.floor(this.target)<=Math.floor(this.min)}get isEnd(){return this.snap.props.loop?!1:Math.floor(this.target)>=Math.floor(this.max)}get isSlideScrolling(){let{snap:e}=this,{domSize:t}=e;return e.scrollableSlides.some(({size:s,coord:r})=>Ft(r,t-s,0))}};var Ye=class extends U{constructor(e){super(e),this.addDestructor(w(e.container,"scroll",()=>this._handleScroll()))}_handleScroll(){this.snap.container.scrollTo({top:0,left:0,behavior:"instant"})}};function Ge(i){return typeof i=="string"}var Yt=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},Kt=function(i,e){var t={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&e.indexOf(s)<0&&(t[s]=i[s]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(i);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(i,s[r])&&(t[s[r]]=i[s[r]]);return t},pe=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{eventsEmitter:null,activeIndex:0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{slides:!1,slidesToScroll:1,direction:"horizontal",centered:!1,loop:!1,gap:0,lerp:v().mobile?1:.2,freemode:!1,rewind:!1,stickOnResize:!0,friction:0,edgeFriction:.85,duration:500,easing:ee,swipe:!0,grabCursor:!1,swipeSpeed:1,swipeAxis:"auto",followSwipe:!0,shortSwipes:!0,shortSwipesDuration:300,shortSwipesThreshold:30,swipeFriction:!1,swipeThreshold:5,swipeMinTime:0,swipeInertiaDuration:e=>y(e,500,2e3),swipeInertiaRatio:.5,wheel:!1,wheelSpeed:1,wheelAxis:"auto",followWheel:!0,wheelThrottle:"auto",stickOnWheelEnd:!0,stickOnWheelEndThreshold:30,slideSize:"auto"})}constructor(e,t){super(e,t),this._domSize=0,this._slides=[],this._scrollableSlides=[];let{container:s,activeIndex:r}=this.props;this._activeIndex=r,this._resizeHandler=$({element:s,viewportTarget:"width",callback:()=>this._handleResize(),name:this.name}),this._resizeHandler.debounceResize(),this._fetchSlides(),this._wheel=new Qe(this),this._swipe=new qe(this),this._track=new Ke(this),this._keyboard=new Ye(this)}_handleProps(){this._fetchSlides(),this._resizeHandler.resize(),super._handleProps()}_fetchSlides(){this._slides.forEach(t=>t.detach());let e=this.props.slides?this.props.slides:Array.from(this.props.container.children);this._slides=e.map(t=>t instanceof de?t:new de(t)),this._slides.forEach((t,s)=>t.attach(this,s))}resize(e=!0){e?this._resizeHandler.resize():this._resizeHandler.debounceResize()}_handleResize(){let{direction:e,container:t}=this.props;this.cancelTransition(),this._domSize=e==="horizontal"?t.offsetWidth:t.offsetHeight,this._reflow(),this.callbacks.emit("resize",void 0)}get container(){return this.props.container}get eventsEmitter(){var e;return(e=this.props.eventsEmitter)!==null&&e!==void 0?e:this.container}get domSize(){return this._domSize}get slides(){return this._slides}get scrollableSlides(){return this._scrollableSlides}get activeIndex(){return this._activeIndex}get activeSlide(){return this.slides[this._activeIndex]}get isEmpty(){return this.slides.length===0}get axis(){return this.props.direction==="horizontal"?"x":"y"}get track(){return this._track}get isTransitioning(){return!!this._timeline}get isSwiping(){return!!this._swipe.isSwiping}_reflow(){let{slides:e,props:t}=this;if(e.length===0)return;this._scrollableSlides=[],e.reduce((r,n)=>(n.$_setStaticCoord(r),n.size>this.domSize&&this._scrollableSlides.push(n),r+n.size+N(t.gap)),0);let s=e.find(({index:r})=>r===this.activeIndex);t.stickOnResize&&s&&(this.track.clampTarget(),this.track.set(s.magnets[0])),this.callbacks.emit("reflow",void 0),this.render()}render(e=0){if(this.isEmpty)return;let{_swipe:t,track:s,props:r}=this;this._updateSlidesCoords(),this._updateSlidesProgress();let{magnet:n}=this;n&&n.slide.index!==this._activeIndex&&(Be(this._targetIndex)||n.slide.index===this._targetIndex)&&(this._activeIndex=n.slide.index,this._targetIndex=void 0,this.callbacks.emit("activeSlide",this.activeSlide));let o=t.isSwiping&&t.allowFriction||!t.isSwiping;n&&o&&e>0&&r.friction>=0&&!s.isSlideScrolling&&!r.freemode&&(s.$_target=ut(s.target,s.current+n.diff,r.friction*r.lerp,e,1e-6)),this.slides.forEach(a=>a.$_render()),this.callbacks.emit("update",void 0)}_updateSlidesCoords(){let{slides:e,track:t}=this,{centered:s}=this.props,r=s?this._domSize/2-this.firstSlideSize/2:0;e.forEach(n=>{let{staticCoord:o,size:a}=n;if(!t.canLoop){n.$_setCoord(o+r-t.current);return}if(s){n.$_setCoord(W(o+r-t.current,-t.max/2+r,t.max/2+r));return}n.$_setCoord(W(o-t.current,-a,t.max-a))})}get firstSlideSize(){return this.slides[0].size}_updateSlidesProgress(){let{slides:e,domSize:t}=this;e.forEach(s=>{let{coord:r,size:n}=s;if(this.props.centered){let o=t/2-n/2;s.$_setProgress(Q(r,o,o-n));return}s.$_setProgress(Q(r,0,-n))})}get magnet(){let e=this.track.loopedCurrent;return this.getNearestMagnet(e)}getNearestMagnet(e){let t=this.slides.flatMap(r=>r.magnets.map(n=>({slide:r,magnet:n,index:r.index})));if(t.length===0)return;let s=t.reduce((r,n)=>Math.abs(n.magnet-e)<Math.abs(r.magnet-e)?n:r);return Object.assign(Object.assign({},s),{diff:s.magnet-e})}cancelTransition(){var e;(e=this._timeline)===null||e===void 0||e.destroy(),this._timeline=void 0}stick(){let{magnet:e}=this;this.track.isSlideScrolling||!e||this.toCoord(this.track.current+e.diff)}toCoord(e,t){var s,r;if(this.isEmpty||this.isDestroyed)return!1;this.cancelTransition();let{track:n,props:o,callbacks:a}=this,l=n.current,c=e,h=Math.abs(c-l),u=(s=t==null?void 0:t.duration)!==null&&s!==void 0?s:o.duration,d=k(u)?u:u(h);h===0&&(d=0);let b=(r=t==null?void 0:t.easing)!==null&&r!==void 0?r:o.easing,f=new A({duration:d,easing:b});return this._timeline=f,f.on("start",()=>{var p;a.emit("timelineStart",void 0),(p=t==null?void 0:t.onStart)===null||p===void 0||p.call(t)}),f.on("update",p=>{var m;n.$_current=B(l,c,p.eased),n.$_target=n.current,n.$_influence=n.influence*(1-p.progress),p.progress===1&&(this._targetIndex=void 0),this.render(),a.emit("timelineUpdate",p),(m=t==null?void 0:t.onUpdate)===null||m===void 0||m.call(t,p)}),f.on("end",()=>{var p;f.destroy(),a.emit("timelineEnd",void 0),(p=t==null?void 0:t.onEnd)===null||p===void 0||p.call(t),this._timeline=void 0}),f.on("destroy",()=>{this._targetIndex=void 0}),f.play(),!0}toSlide(e,t={}){var s,r,{direction:n=null}=t,o=Kt(t,["direction"]);let{isEmpty:a,activeIndex:l,slides:c,track:h,props:u}=this,{current:d,max:b,loopCount:f}=h;if(a||this.isDestroyed)return!1;let p=W(e,0,this.slides.length);if(p===l)return this.stick(),!1;this._targetIndex=p;let m=c[p].magnets,E=m[0];if(u.centered?n==="prev"?E=(s=m[2])!==null&&s!==void 0?s:m[0]:n==="next"&&(E=(r=m[1])!==null&&r!==void 0?r:m[0]):E=n==="prev"?m[m.length-1]:E,!u.loop)return this.toCoord(E,o);let O=E+f*b,P=O-b,F=O+b,se=[P,O,F];if(Ge(n)){let Se=se.filter(H=>n==="next"?H>=d:H<=d),q=Ce(d,Se);return this.toCoord(q,o)}let re=Ce(d,se);return this.toCoord(re,o)}next(e={}){var{skip:t=this.props.slidesToScroll}=e,s=Kt(e,["skip"]);let{props:r,slides:n,activeIndex:o}=this,a=W(o+t,0,n.length);return r.loop||(a=r.rewind?W(o+t,0,n.length):Math.min(o+t,n.length-1)),this.toSlide(a,Object.assign(Object.assign({},s),{direction:"next"}))}prev(e={}){var{skip:t=this.props.slidesToScroll}=e,s=Kt(e,["skip"]);let{props:r,slides:n,activeIndex:o}=this,a=W(o-t,0,n.length);return r.loop||(a=r.rewind?W(o-t,0,n.length):Math.max(o-t,0)),this.toSlide(a,Object.assign(Object.assign({},s),{direction:"prev"}))}_destroy(){super._destroy(),this._resizeHandler.remove(),this.cancelTransition(),this._slides.forEach(e=>e.detach())}};Yt([g],pe.prototype,"resize",null);Yt([g],pe.prototype,"render",null);Yt([g],pe.prototype,"stick",null);var Ws=si(Bs());function Je(i,e){return e?Ge(e)?i.matches(e):typeof e=="function"?e(i):e.includes(i):!1}function Ls({wordsMeta:i,classname:e,tagName:t,ignore:s}){let r=[],n=_.createElement(t);return n.style.display="inline-block",S(n,e),i.forEach(o=>{if(Je(o.element,s))return;let a=o.element.childNodes[0];if(!a)return;let l=a.textContent;if(!l)return;(0,Ws.default)(l,"").forEach(h=>{let u=n.cloneNode(!1);u.appendChild(_.createTextNode(h)),o.element.insertBefore(u,a);let d={element:u};o.letters.push(d),r.push(d)}),a.remove()}),{lettersMeta:r}}function Vs({container:i,classname:e,tagName:t,ignore:s,prepareText:r,wordDelimiter:n=" ",wordDelimiterOutput:o}){let a=o||n,l=_.createElement(t);l.style.display="inline-block",l.setAttribute("aria-hidden","true"),S(l,e);let c=[],h=null;function u(d){var b,f;if(d instanceof HTMLElement||d instanceof DocumentFragment){if("tagName"in d&&d.tagName!=="BR"){if(Je(d,s)){h?h.append(d):c.push({element:d,letters:[]});return}d.style.display="inline-block"}h=null,[...Array.from(d.childNodes)].forEach(m=>u(m));return}if(d.nodeType===3){let p=(b=d.parentElement)!==null&&b!==void 0?b:i,m=(f=d.nodeValue)!==null&&f!==void 0?f:"";if(m===n){h=null,p==null||p.insertBefore(_.createTextNode(a),d),d.remove();return}m=r?r(m):m;let E=m.split(n);E.forEach((O,P)=>{if(O){let F=l.cloneNode(!1);F.appendChild(_.createTextNode(O)),h=F,c.push({element:F,letters:[]}),p==null||p.insertBefore(F,d)}P<E.length-1&&(p==null||p.insertBefore(_.createTextNode(a),d))}),d.remove()}}return u(i),c}var Nn=function(i,e){var t={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&e.indexOf(s)<0&&(t[s]=i[s]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(i);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(i,s[r])&&(t[s[r]]=i[s[r]]);return t};function Fs(i){var{container:e,letterClassName:t,wordClassName:s,hasLetters:r,letterTag:n,wordTag:o,ignore:a}=i,l=Nn(i,["container","letterClassName","wordClassName","hasLetters","letterTag","wordTag","ignore"]);let c=_.createDocumentFragment();for(;e.childNodes[0];)c.appendChild(e.childNodes[0]);let h=Vs(Object.assign(Object.assign({},l),{container:c,classname:s,tagName:o,ignore:a})),u=[];if(r){let d=Ls({wordsMeta:h,classname:t,tagName:n,ignore:a});u.push(...d.lettersMeta)}return e.appendChild(c),{wordsMeta:h,lettersMeta:u}}function Hs(i){let{direction:e,textAlign:t}=getComputedStyle(i);return t==="center"?t:t==="justify"?e==="rtl"?"right":"left":t==="left"||t==="right"?t:t==="start"?e==="rtl"?"right":"left":t==="end"?e==="rtl"?"left":"right":e==="rtl"?"right":"left"}function Us(i,e){var t;return i!=null&&i.parentElement?i.parentElement===e?i:Us((t=i==null?void 0:i.parentElement)!==null&&t!==void 0?t:null,e):null}function Xs(i,e){return i===e?!0:i!==null?Xs(i.parentNode,e):!1}function Qs({container:i,hasLinesWrapper:e,wordsMeta:t,lineClassName:s,lineWrapperClassName:r,tagName:n}){let o=Hs(i),a=[],l=-1,c=null,h=_.createElement(n);h.style.display="block",h.setAttribute("aria-hidden","true"),S(h,s);let u=t.map(f=>f.element.getBoundingClientRect());t.forEach((f,p)=>{var m;let E=u[p],O=Us(f.element,i);if(!O)return;let P=c&&E.top>c.top,F=c&&E.left>=c.left,se=c&&E.left<=c.left;if(!c||P&&se&&o==="left"||P&&F&&o==="right"||P&&o==="center"){l+=1;let q=h.cloneNode(!1),H;e&&(H=_.createElement(n),H.style.display="block",S(H,r),H.appendChild(q)),a[l]={element:q,wrapper:H,nodes:[],words:[]}}c=E;let re=a[l];!!a.find(({nodes:q})=>q.includes(O))||(re.nodes.push(O),((m=O.nextSibling)===null||m===void 0?void 0:m.nodeType)===3&&re.nodes.push(O.nextSibling))}),a.forEach(f=>{var p;i.insertBefore((p=f.wrapper)!==null&&p!==void 0?p:f.element,f.nodes[0]);let m=_.createDocumentFragment();m.append(...f.nodes),f.element.append(m)});let d=[];return a.forEach(f=>{var p;let m=((p=f.wrapper)!==null&&p!==void 0?p:f.element).nextElementSibling;m instanceof HTMLBRElement&&(m.style.display="none",d.push(m))}),a.forEach(f=>{f.words.push(...t.filter(p=>Xs(p.element,f.element)))}),{linesMeta:a,destroy:()=>{let f=!0;return d.forEach(p=>{p.style.display=""}),a.forEach(p=>{var m;p.nodes.forEach(E=>{var O;let P=(O=p.wrapper)!==null&&O!==void 0?O:p.element;P.parentElement?i.insertBefore(E,P):f=!1}),p.element.remove(),(m=p.wrapper)===null||m===void 0||m.remove()}),f}}}function qs(i){let e=[];function t(s){e.push({node:s,cssText:s instanceof HTMLElement?s.style.cssText:null,parent:s.parentNode}),s.childNodes.forEach(r=>t(r))}return i.childNodes.forEach(s=>t(s)),{restore:()=>{let s=_.createDocumentFragment();for(e.forEach(r=>{let{node:n,cssText:o}=r;for(n instanceof HTMLElement&&o&&(n.style.cssText=o);n.childNodes[0];)n.childNodes[0].remove();r.parent&&(r.parent===i?s:r.parent).appendChild(r.node)});i.childNodes[0];)i.childNodes[0].remove();i.appendChild(s)}}}var $n=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},Ze=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{letters:!1,lines:!1,linesWrapper:!1,letterTag:"span",wordTag:"span",lineTag:"span",letterClass:this._cn("__letter"),wordClass:this._cn("__word"),lineClass:this._cn("__line"),lineWrapperClass:this._cn("__line-wrapper"),resizeDebounce:0,ignore:null,prepareText:e=>e,wordDelimiter:" ",wordDelimiterOutput:null})}_getMutable(){return Object.assign({},super._getMutable())}get prefix(){return`${v().prefix}split-text`}get lettersMeta(){return this._lettersMeta}get letters(){return this._lettersMeta.map(e=>e.element)}get wordsMeta(){return this._wordsMeta}get words(){return this._wordsMeta.map(e=>e.element)}get linesMeta(){return this._linesMeta}get lines(){return this._linesMeta.map(e=>e.element)}constructor(e,t){super(e,t),this._isBaseSplit=!1,this._lettersMeta=[],this._wordsMeta=[],this._linesMeta=[];let{container:s}=this.props,{style:r}=s;r.fontKerning="none",r.display="block",s.setAttribute("aria-label",s.textContent||""),this._addTempClassName(s,this._cn("")),s.translate=!1,this._savedNodes=qs(s),this._setup()}_setup(){let{container:e,resizeDebounce:t}=this.props;if(!this.props.lines){this.split();return}let s=$({callback:()=>this.split(),element:e,viewportTarget:"width",resizeDebounce:t,name:this.name});s.resize(),this.onDestroy(()=>s.remove())}split(){this.callbacks.emit("beforeSplit",void 0),this._splitBase(),this.props.lines&&this._splitLines(),this.callbacks.emit("split",void 0)}_splitBase(){if(this._isBaseSplit)return;let{container:e,letterTag:t,wordTag:s,wordClass:r,letterClass:n,ignore:o,prepareText:a,wordDelimiter:l,wordDelimiterOutput:c}=this.props;this._isBaseSplit=!0;let{wordsMeta:h,lettersMeta:u}=Fs({container:e,letterClassName:n,wordClassName:r,hasLetters:this.props.letters,letterTag:t,wordTag:s,ignore:o,prepareText:a,wordDelimiter:l,wordDelimiterOutput:c});this._wordsMeta=h,this._lettersMeta=u}_splitLines(){var e;let{wordsMeta:t}=this,{container:s,lineTag:r,lineClass:n,lineWrapperClass:o}=this.props;s.offsetParent!==null&&((e=this._lineSplitWrapper)===null||e===void 0||e.destroy(),this._lineSplitWrapper=Qs({container:s,hasLinesWrapper:this.props.linesWrapper,wordsMeta:t,lineClassName:n,lineWrapperClassName:o,tagName:r}),this._linesMeta=this._lineSplitWrapper.linesMeta)}_destroy(){if(super._destroy(),!this._lineSplitWrapper)this._savedNodes.restore();else{let e=this._lineSplitWrapper.destroy();this._lineSplitWrapper=void 0,e&&this._savedNodes.restore()}}};$n([g],Ze.prototype,"split",null);var Ks=j?v():void 0,Bn=Ks;return ir(Wn);})();
|
|
177
|
+
`,he)}var de=B?v.createElement("style"):null;de&&(de.innerHTML="* { cursor: grabbing !important; }");var tn=4,ie=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{thumb:null,buttons:[0],pointers:1,disableUserSelect:!0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0,relative:!1,axis:null,ratio:1,grabCursor:!1,willAbort:()=>!1,threshold:5,minTime:0,directionThreshold:50,preventEdgeSwipe:!0,edgeSwipeThreshold:20,preventTouchMove:!0,requireCtrlKey:!1,inertia:!1,inertiaDuration:e=>w(e,500,2e3),inertiaEasing:ee,velocityModifier:!1,distanceModifier:!1,inertiaRatio:1,inertiaDistanceThreshold:50})}get isSwiping(){return this._isSwiping}get coords(){return this._coords}get container(){return this.props.container}get hasInertia(){return!!this._inertia}constructor(e,t){super(e,t),this._isSwiping=!1,this._isAborted=!1;let{container:i,thumb:r,buttons:n,pointers:o}=this.props,{callbacks:a}=this;this._coords={timestamp:0,start:{x:0,y:0,angle:0},prev:{x:0,y:0,angle:0},current:{x:0,y:0,angle:0},diff:{x:0,y:0,angle:0},step:{x:0,y:0,angle:0},accum:{x:0,y:0}},this._velocities=[],this._cursorStyles=de===null||de===void 0?void 0:de.cloneNode(!0),this._pointers=new we({container:r||i,buttons:n,minPointers:o,maxPointers:o,enabled:this.props.enabled,disableUserSelect:this.props.disableUserSelect}),this._pointers.on("start",()=>this._handlePointersStart()),this._pointers.on("pointerdown",c=>a.emit("pointerdown",c)),this._pointers.on("pointermove",c=>a.emit("pointermove",c)),this._pointers.on("pointerup",c=>a.emit("pointerup",c));let l=y(i,"touchstart",c=>this._handleTouchStart(c),{passive:!1});this.onDestroy(()=>l()),this._setInlineStyles()}_handleProps(){super._handleProps(),this._pointers.updateProps({enabled:this.props.enabled}),this._setInlineStyles()}_setInlineStyles(){let{container:e,axis:t}=this.props,{style:i}=e,r=this.props.grabCursor?"grab":"",n="none";t==="x"?n="pan-y":t==="y"&&(n="pan-x"),i.cursor=r,i.touchAction=n}_handleTouchStart(e){this.props.enabled&&(this.callbacks.emit("touchstart",e),this._preventEdgeSwipe(e))}_preventEdgeSwipe(e){if(!this.props.preventEdgeSwipe)return;let t=this.props.edgeSwipeThreshold,i=e.targetTouches[0].pageX;e.cancelable&&(i<=t||i>=b().width-t)&&(e.preventDefault(),this.callbacks.emit("preventEdgeSwipe",void 0))}_handlePointersStart(){let e=y(window,"touchmove",this._handleTouchMove.bind(this),{passive:!1}),t=y(window,"mousemove",this._handleMouseMove.bind(this)),i=this._pointers.on("end",()=>{this._handleEnd(),i(),e(),t()});this.onDestroy(()=>{i(),e(),t()})}_handleTouchMove(e){this.callbacks.emit("touchmove",e),this._isSwiping&&this.props.preventTouchMove&&e.cancelable&&e.preventDefault(),this._handleMove(this._decodeCoords(e),"touch")}_handleMouseMove(e){this.props.requireCtrlKey&&!e.ctrlKey||(this.callbacks.emit("mousemove",e),this._handleMove(this._decodeCoords(e),"mouse"))}_decodeCoords(e){let{props:t}=this,{container:i,ratio:r}=t,n="touches"in e?e.touches[0].clientX:e.clientX,o="touches"in e?e.touches[0].clientY:e.clientY,a=n,l=o,c=b().width/2,h=b().height/2;if(t.relative){let g=i.getBoundingClientRect();a=n-g.left,l=o-g.top,c=g.left+g.width/2,h=g.top+g.height/2}let d=Math.atan2(o-h,n-c)*180/Math.PI;return{x:a*r,y:l*r,angle:d}}_handleMove(e,t){let i=this._coords;if(!this._isAborted){if(this._startCoord||(this._startCoord=Object.assign({},e)),this._startTime||(this._startTime=+Date.now()),!this._isSwiping){let{threshold:r,ratio:n,minTime:o,axis:a,willAbort:l}=this.props,c=Math.abs(n),h={x:e.x-this._startCoord.x,y:e.y-this._startCoord.y};if(Math.sqrt(Math.pow(h.x/c,2)+Math.pow(h.y/c,2))<r||+new Date-this._startTime<o)return;if(a){let d=Math.atan2(Math.abs(h.y),Math.abs(h.x))*180/Math.PI;if((a==="x"?d:90-d)>45){this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0);return}}if(l({type:t,matrix:e,start:this._startCoord,diff:h})){this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0);return}}this._isSwiping||(this.cancelInertia(),this._isSwiping=!0,this._startCoord=Object.assign({},e),i.timestamp=performance.now(),i.start=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),i.prev=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),i.current=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),i.diff={x:0,y:0,angle:0},i.step={x:0,y:0,angle:0},i.accum={x:0,y:0},this.callbacks.emit("start",this._coords),this.props.grabCursor&&this._cursorStyles&&T.append(this._cursorStyles)),this._move(e)}}_move({x:e,y:t,angle:i}){let r=this._coords,n=Object.assign({},r.start),o=Object.assign({},r.current),a={x:e,y:t,angle:i};r.timestamp=performance.now(),r.prev=o,r.current=a;let l=r.current.angle-r.prev.angle;l>180?l-=360:l<-180&&(l+=360),r.step={x:a.x-o.x,y:a.y-o.y,angle:l},r.diff={x:a.x-n.x,y:a.y-n.y,angle:r.diff.angle+r.step.angle},r.accum={x:r.accum.x+Math.abs(r.step.x),y:r.accum.y+Math.abs(r.step.y)},this.hasInertia||(this._velocities.push(Object.assign(Object.assign({},r.current),{timestamp:r.timestamp})),this._velocities.length>tn&&this._velocities.shift()),this.callbacks.emit("move",this._coords)}_handleEnd(){if(this._startTime=void 0,this._isAborted=!1,!this.isSwiping)return;this._reset(),this._cursorStyles.remove();let{x:e,y:t}=this._coords.diff,i=Math.abs(e),r=Math.abs(t),{directionThreshold:n}=this.props,o=i>r?"x":"y";o==="x"&&i>n&&(e>0?this.callbacks.emit("toRight",void 0):e<0&&this.callbacks.emit("toLeft",void 0)),o==="y"&&r>n&&(t>0?this.callbacks.emit("toBottom",void 0):t<0&&this.callbacks.emit("toTop",void 0)),this.callbacks.emit("end",this._coords),this._velocities.length>0&&(this._velocities[this._velocities.length-1].timestamp=performance.now()),this.props.inertia&&this._endWithInertia()}_reset(){this._startCoord=void 0,this._isSwiping=!1}get velocity(){let e=this._velocities;if(e.length<2)return{x:0,y:0,angle:0};let t=0,i=0,r=0,n=0;for(let o=1;o<e.length;o+=1){let a=e[o],l=e[o-1],c=a.x-l.x,h=a.y-l.y,p=a.angle-l.angle;p>180&&(p-=360),p<-180&&(p+=360);let d=Math.max(a.timestamp-l.timestamp,1),g=c/d*1e3,f=h/d*1e3,u=p/d*1e3,m=1/Math.exp(-d*.1);i+=g*m,r+=f*m,n+=u*m,t+=m}return t>0?{x:i/t,y:r/t,angle:n/t}:{x:0,y:0,angle:0}}_endWithInertia(){let{inertiaDuration:e,inertiaEasing:t,velocityModifier:i,inertiaRatio:r,inertiaDistanceThreshold:n}=this.props,o={x:this.velocity.x*r,y:this.velocity.y*r,angle:this.velocity.angle*r},a=i?i(o):o,{x:l,y:c,angle:h}=a,p=Math.sqrt(Math.pow(l,2)+Math.pow(c,2));if(p<n){this.callbacks.emit("inertiaFail",void 0);return}let d=e(p);if(Number.isNaN(d)||!Number.isFinite(d)||d<=0){this.callbacks.emit("inertiaFail",void 0);return}let g=Object.assign({},this.coords.current),f={x:0,y:0,angle:0};this._inertia=new k({duration:d,easing:t}),this._inertia.on("start",()=>{this.callbacks.emit("inertiaStart",void 0)}),this._inertia.on("update",({eased:u})=>{f.x=l*u,f.y=c*u,f.angle=h*u,this._move({x:g.x+f.x,y:g.y+f.y,angle:g.angle+f.angle}),this.callbacks.emit("inertia",void 0)}),this._inertia.on("end",()=>{this.cancelInertia(),this.callbacks.emit("inertiaEnd",void 0)}),setTimeout(()=>{var u;(u=this._inertia)===null||u===void 0||u.play()},0)}cancelInertia(){var e;this._inertia&&(this._inertia.progress<1&&this.callbacks.emit("inertiaCancel",void 0),(e=this._inertia)===null||e===void 0||e.destroy(),this._inertia=void 0)}get start(){return this._coords.start}get prev(){return this._coords.prev}get current(){return this._coords.current}get diff(){return this._coords.diff}get step(){return this._coords.step}get accum(){return this._coords.accum}_destroy(){var e;super._destroy(),this._pointers.destroy(),(e=this._inertia)===null||e===void 0||e.destroy(),this._cursorStyles.remove()}};var sn=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},Xe=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{container:window,parent:!1,class:!1,axis:"y",draggable:!0,autoHide:!0,resizeDebounce:10})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{minSize:50,autoSize:!0})}get prefix(){return`${b().prefix}scrollbar`}get container(){return this._props.container}get outer(){return this._outer}get track(){return this._track}get thumb(){return this._thumb}constructor(e,t){super(e,t),this._valueOnSwipeStart=0,this._prevScrollValue=0,this._isRtl=!1,this._isRtl=J(this.parent)==="rtl",ys(this.prefix),this._create(),this._setResize(),this._setOnscroll(),this._setSwipe(),S(this.outer,this._cn("_inited"))}_handleProps(){super._handleProps(),this.resize()}get axis(){return this.props.axis}get parent(){let{parent:e,container:t}=this.props;return e||(t instanceof Window?T:t)}get scrollElement(){return this.container instanceof Window?I:this.container}get scrollSize(){let{scrollElement:e}=this;return this.axis==="x"?e.scrollWidth:e.scrollHeight}get scrollableSize(){let{scrollElement:e}=this;return this.axis==="x"?this.scrollSize-e.clientWidth:this.scrollSize-e.clientHeight}get scrollValue(){let{axis:e}=this;return this.container instanceof Window?e==="x"?window.scrollX:window.scrollY:e==="x"?this.container.scrollLeft:this.container.scrollTop}get trackSize(){return this.axis==="x"?this._track.offsetWidth:this._track.offsetHeight}get thumbSize(){return this.axis==="x"?this._thumb.offsetWidth:this._thumb.offsetHeight}_create(){let{parent:e,scrollElement:t}=this,i=this.container instanceof Window;this._outer=this._createOuter(),e.appendChild(this._outer),this._track=this._createTrack(),this._outer.appendChild(this._track),this._thumb=this._createThumb(),this._track.appendChild(this._thumb),i?(this._addTempClassName(I,this._cn("-scrollable")),this._addTempClassName(T,this._cn("-scrollable"))):this._addTempClassName(t,this._cn("-scrollable")),this.onDestroy(()=>this._outer.remove())}_createOuter(){let e=this._cn.bind(this),{props:t,axis:i}=this,r=v.createElement("div");return S(r,e("")),S(r,e(`_${i}`)),t.class&&S(r,t.class),this.container instanceof Window&&this._addTempClassName(r,this._cn("_in-window")),t.autoHide&&this._addTempClassName(r,this._cn("_auto-hide")),r}_createTrack(){let e=this._cn.bind(this),{axis:t}=this,i=v.createElement("div");return S(i,e("__track")),S(i,e(`__track_${t}`)),i}_createThumb(){let e=this._cn.bind(this),t=v.createElement("div");return S(t,e("__thumb")),S(t,e(`__thumb_${this.axis}`)),t}_setResize(){let e=()=>{let r=Array.from(this.scrollElement.children);return W({element:[this.track,this.parent,this.scrollElement,...r],viewportTarget:"width",resizeDebounce:this.props.resizeDebounce,callback:()=>this.resize()})},t=e();t.resize();let i=new MutationObserver(()=>{t.remove(),t=e(),t.debounceResize()});i.observe(this.scrollElement,{childList:!0}),this.onDestroy(()=>{t.remove(),i.disconnect()})}_setOnscroll(){let e=y(this.container,"scroll",()=>this._onScroll(),{passive:!0});this.onDestroy(()=>e())}_setSwipe(){if(!this.props.draggable)return;let e=new ie({container:this.thumb,grabCursor:!0});e.on("start",t=>{this._valueOnSwipeStart=this.scrollValue,this.callbacks.emit("swipeStart",t)}),e.on("move",t=>{this._onSwipeMove(t),this.callbacks.emit("swipe",t)}),e.on("end",t=>{this.callbacks.emit("swipeEnd",t)}),e.on("touchmove",t=>{t.stopPropagation(),t.stopImmediatePropagation()}),e.on("mousemove",t=>{t.stopPropagation(),t.stopImmediatePropagation()}),this.onDestroy(()=>e.destroy())}resize(){let{scrollableSize:e,scrollSize:t,outer:i,track:r,thumb:n,props:o,axis:a}=this,{autoSize:l}=o,c=a==="x";D(i,this._cn("_empty"),e===0);let h=c?r.offsetWidth:r.offsetHeight,p=P(o.minSize),d=p;l&&(d=w(h/(t/h),p,1/0));let{style:g}=n;c?g.width=`${d}px`:g.height=`${d}px`,this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._render(),this.callbacks.emit("resize",void 0)}_render(){let{scrollValue:e,scrollableSize:t,axis:i,thumbSize:r,trackSize:n}=this,o=w(Math.abs(e)/t);this._isRtl&&i==="x"&&(o=1-o);let a=(n-r)*o,l=i==="x"?a:0,c=i==="y"?a:0;this._thumb.style.transform=`translate(${l}px, ${c}px)`,this.callbacks.emit("update",void 0)}_onScroll(){let{scrollValue:e,outer:t}=this,i=this._cn("_in-action");e!==this._prevScrollValue?this._addInActionTimeout=setTimeout(()=>{Q(t,i)||(S(t,i),this.callbacks.emit("show",void 0))},50):this._prevScrollValue=e,this._render(),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout),this._removeInActionTimeout=setTimeout(()=>{F(t,i),this.callbacks.emit("hide",void 0)},500)}_onSwipeMove({diff:e}){let{scrollElement:t,axis:i,trackSize:r,thumbSize:n,scrollableSize:o}=this,l=(i==="x"?e.x:e.y)/(r-n)*o,c=this._valueOnSwipeStart+l;t.scrollTo({top:i==="y"?c:void 0,left:i==="x"?c:void 0,behavior:"instant"})}_destroy(){super._destroy(),this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout)}};sn([_],Xe.prototype,"resize",null);var rn=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},Ue=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{root:null,optimized:!0,useSvh:!1})}_getMutable(){return Object.assign({},super._getMutable())}get section(){return this.props.section}get isVisible(){return this._isVisible}get rootBounds(){return this._rootBounds}get sectionBounds(){return this._sectionBounds}constructor(e,t){super(e,t),this._isVisible=!1,this._rootBounds={top:0,left:0,width:1,height:1},this._sectionBounds={top:0,left:0,width:1,height:1},this._isVisible=!this.props.optimized,this._setup()}_setup(){this._setupObserver(),this._setupScroll()}_setupObserver(){if(!this.props.optimized)return;let{section:e}=this.props,t=new IntersectionObserver(i=>{i.forEach(r=>{r.target===e&&(this._isVisible=r.isIntersecting,this.update())})});t.observe(e),this.onDestroy(()=>t.disconnect())}_setupScroll(){let e=this.props.root||window,t=y(e,"scroll",()=>{this._isVisible&&this.update()},{passive:!1});this.onDestroy(t)}update(){let{section:e,props:t}=this,i=t.root,r=b(),n=e.getBoundingClientRect(),o={top:0,left:0,width:r.width,height:t.useSvh?r.sHeight:r.height};this._rootBounds=i?i.getBoundingClientRect():o,this._sectionBounds={top:n.top-this._rootBounds.top,left:n.left-this._rootBounds.left,width:n.width,height:n.height},this.callbacks.emit("update",void 0)}getProgress(e,t,i,r){let n=je(this._sectionBounds.top,[e,i]),o=je(this._sectionBounds.left,[r,t]);return{x:Number.isNaN(o)?0:o,y:Number.isNaN(n)?0:n}}get inProgress(){let{rootBounds:e,sectionBounds:t}=this,i=this.rootBounds.height,r=t.width>e.width?0:e.width-t.width,n=t.height>e.height?0:e.height-t.height,o=this.rootBounds.width;return this.getProgress(i,r,n,o)}get outProgress(){let{rootBounds:e,sectionBounds:t}=this,i=Math.min(e.height-t.height,0),r=-t.width,n=-t.height,o=Math.min(e.width-t.width,0);return this.getProgress(i,r,n,o)}get moveProgress(){let{rootBounds:e,sectionBounds:t}=this,i=t.height>e.height?0:e.height-t.height,r=t.width>e.width?-(t.width-e.width):0,n=t.height>e.height?-(t.height-e.height):0,o=t.width>e.width?0:e.width-t.width;return this.getProgress(i,r,n,o)}get progress(){let{sectionBounds:e,rootBounds:t}=this,i=t.height,r=-e.width,n=-e.height,o=t.width;return this.getProgress(i,r,n,o)}};rn([_],Ue.prototype,"update",null);var Ye="data-snap-parallax-";function N(s){return`${Ye}${s}`}var qe=[{name:"transform",types:[{n:N("x"),p:"translateX",u:"px"},{n:N("y"),p:"translateY",u:"px"},{n:N("z"),p:"translateZ",u:"px"},{n:N("scale"),p:"scale",u:"",modifier:s=>s+1},{n:N("scale-x"),p:"scaleX",u:"",modifier:s=>s+1},{n:N("scale-y"),p:"scaleY",u:"",modifier:s=>s+1},{n:N("skew"),p:"skew",u:"deg"},{n:N("skew-x"),p:"skewX",u:"deg"},{n:N("skew-y"),p:"skewY",u:"deg"},{n:N("rotate"),p:"rotate",u:"deg"},{n:N("rotate-x"),p:"rotateX",u:"deg"},{n:N("rotate-y"),p:"rotateY",u:"deg"},{n:N("rotate-z"),p:"rotateZ",u:"deg"}]},{name:"opacity",types:[{n:N("opacity"),p:"opacity",u:"",isAbs:!0,modifier:s=>w(s+1,0,1)}]}],Gt=Object.values(qe).map(({types:s})=>s).flat(),Qe=Gt.map(({n:s})=>s);var Ke=class{constructor(e,t,i){this._snap=e,this._slide=t,this._element=i,this._types=[],this._items=[],this._debounceInit=null,this._initDebounce(),this._observer=new MutationObserver(r=>{r.forEach(({attributeName:n})=>{n&&Qe.includes(n)&&this._initDebounce()})}),this._observer.observe(this._element,{attributes:!0})}_initDebounce(){this._debounceInit&&clearTimeout(this._debounceInit),this._debounceInit=setTimeout(()=>this._init(),16)}_init(){this._updateItems(),this.render()}_updateItems(){let e=this._element,t=this._getScope(this._element,`${Ye}scope`,[-1,1]);this._types=Gt.filter(({n:i})=>e.hasAttribute(i)),this._items=this._types.map(({n:i,p:r,u:n,isAbs:o,modifier:a})=>{let l=qe.find(({types:Ee})=>Ee.find(Y=>Y.n===i)),c=`${i}-scope`,h=e.hasAttribute(c)?this._getScope(e,c,[-1,1]):t,d=this._getAttr(e,i).replace(/[-\d.]+/g,"")||n,g=this._getFloatAttr(e,i,0),f=this._getFloatAttr(e,`${i}-offset`,0),u=this._getFloatAttr(e,`${i}-min`,-1/0),m=this._getFloatAttr(e,`${i}-max`,1/0),O=`${i}-influence`,E=e.hasAttribute(O)?this._getFloatAttr(e,`${i}-influence`,1):0,M=`${i}-directional`,$=e.hasAttribute(M),se=`${i}-abs`,re=o||e.hasAttribute(se);return{n:i,p:r,u:d,group:l==null?void 0:l.name,modifier:a,scope:h,progress:0,target:g,value:0,offset:f,min:u,max:m,influence:E,isDirectional:$,isAbs:re}})}_getAttr(e,t){var i;return(i=e.getAttribute(t))!==null&&i!==void 0?i:""}_getFloatAttr(e,t,i){let r=parseFloat(this._getAttr(e,t));return Number.isNaN(r)?i:r}_getScope(e,t,i){let r=this._getAttr(e,t),n=r.trim().toLowerCase();if(n==="none")return[-1/0,1/0];if(n==="const")return[1,1];let a=r.replace(/[\s\\[\]]+/g,"").split(","),l=parseFloat(a[0]),c=parseFloat(a[1]),h=Number.isNaN(l)?i[0]:l,p=Number.isNaN(c)?i[1]:c;return[h,p]}render(){let{_snap:e,_element:t,_items:i,_slide:r}=this,n=r.progress;i.forEach(o=>{let a=w(n,...o.scope);Math.abs(o.influence)>0&&(a*=Math.abs(e.track.influence)*o.influence),o.isDirectional&&(a=Math.abs(a)*Math.sign(e.track.influence)),o.isAbs&&(a=Math.abs(a)),o.progress=a,o.value=o.offset+a*o.target,o.modifier&&(o.value=o.modifier(o.value)),o.value=w(o.value,o.min,o.max)}),qe.forEach(({name:o})=>{let c=i.filter(h=>h.group===o).map(({value:h,p,u:d})=>o==="opacity"?`${h}`:`${p}(${h}${d})`).join(" ");t.style[o]=c})}destroy(){this._observer.disconnect(),this._debounceInit&&clearTimeout(this._debounceInit)}};var pe=class{constructor(e,t={}){this._element=e,this._coord=0,this._isAppended=!1,this._isVisible=!1,this._staticCoord=0,this._progress=0,this._id=me("snap-slide"),this._index=0,this._parallax=[];let i={virtual:!1};if(this._props=Object.assign(Object.assign({},i),t),this.props.virtual&&(!t.size||t.size==="auto"))throw new Error("Virtual slide must have a size")}get element(){return this._element}get props(){return this._props}get id(){return this._id}get index(){return this._index}get snap(){return this._snap}get coord(){return this._coord}$_setCoord(e){var t,i;this._coord=e,this._isVisible=this.size>0&&this.coord>-this.size&&this.coord<((i=(t=this.snap)===null||t===void 0?void 0:t.domSize)!==null&&i!==void 0?i:0)}get staticCoord(){return this._staticCoord}$_setStaticCoord(e){this._staticCoord=e}get progress(){return this._progress}$_setProgress(e){this._progress=e}get sizeProp(){var e,t,i;return(i=(e=this.props.size)!==null&&e!==void 0?e:(t=this.snap)===null||t===void 0?void 0:t.props.slideSize)!==null&&i!==void 0?i:"auto"}get size(){var e;let{snap:t,sizeProp:i}=this;return t?i==="stretch"?t.domSize:i==="auto"?(e=this._domSize)!==null&&e!==void 0?e:t.domSize:P(i):0}get isVisible(){return this._isVisible}resize(e=!0){let{element:t,snap:i}=this;if(i){if(t){let{direction:r}=i.props;this._domSize=r==="horizontal"?t.offsetWidth:t.offsetHeight}i.resize(e)}}attach(e,t){this.detach(),this._snap=e,this._index=t,this._parallax=this._getParallaxNodes().map(i=>new Ke(e,this,i)),this.element&&this.sizeProp==="auto"&&(this._onResize=W({element:this.element,viewportTarget:"width",callback:()=>this.resize(!1),name:"Snap Slide"})),this.resize(!1)}detach(){var e,t;this._snap=void 0,(e=this._onResize)===null||e===void 0||e.remove(),(t=this._parallax)===null||t===void 0||t.forEach(i=>i.destroy())}$_render(){var e;this._toggleAppend(),(e=this._parallax)===null||e===void 0||e.forEach(t=>t.render())}_getParallaxNodes(){let{element:e}=this;if(!e)return[];let t=Qe.map(r=>`[${r}]`).join(","),i=e.querySelectorAll(t);return Array.from(i)}_toggleAppend(){if(!this.props.virtual||!this.element||!this.snap)return;let{element:e}=this,{container:t}=this.snap;this.isVisible&&!this._isAppended?(this._isAppended=!0,t.appendChild(e)):!this.isVisible&&this._isAppended&&(this._isAppended=!1,t.removeChild(e))}get magnets(){if(!this.snap)return[];let{snap:e,staticCoord:t,size:i,index:r}=this,{domSize:n,track:o,firstSlideSize:a}=e,l=[];if(r===0&&e.props.loop&&l.push(o.max),e.props.centered){let c=t+i/2-a/2;i>n?(l.push(c),l.push(c+(n-i)/2),l.push(c-(n-i)/2)):l.push(c)}else l.push(t),i>n&&l.push(t+(i-n));return!o.canLoop&&!e.props.centered&&(l=l.map(c=>w(c,0,o.max))),l}};var H=class{constructor(e){this._snap=e,this._destructors=[],e.on("destroy",()=>this._destroy(),{protected:!0})}get snap(){return this._snap}addDestructor(e){this._destructors.push(e)}_destroy(){this._destructors.forEach(e=>e())}};var Jt=6,Ge=class extends H{constructor(e){super(e),this._hasStarted=!1,this._deltas=[],this._lastWheelTime=0;let t=y(e.eventsEmitter,"wheel",i=>this._handleWheel(i));this.addDestructor(()=>{t(),this._debounceEnd&&clearTimeout(this._debounceEnd)})}get absDeltas(){return this._deltas.map(e=>Math.abs(e))}get lastWheelTime(){return this._lastWheelTime}_handleWheel(e){let{props:t,axis:i}=this.snap;if(!t.wheel)return;e.preventDefault();let r=mt(e),o=(t.wheelAxis==="auto"?i:t.wheelAxis)==="x"?r.pixelX:r.pixelY;this._handleStart(o),this._handleMove(o,e),this._debounceEnd&&clearTimeout(this._debounceEnd),this._debounceEnd=setTimeout(()=>this._handleEnd(),200)}_handleStart(e){this._hasStarted||Math.abs(e)<2||(this._hasStarted=!0,this.snap.callbacks.emit("wheelStart",void 0))}_handleMove(e,t){if(!this._hasStarted)return;let{props:i,callbacks:r}=this.snap;this._addDelta(e),r.emit("wheel",t),i.followWheel?this._handleFollow(e):this._handleNoFollow(e)}_handleFollow(e){let{snap:t}=this;t.cancelTransition(),t.track.$_iterateTarget(e*t.props.wheelSpeed),t.track.clampTarget()}_handleNoFollow(e){let{snap:t,isTouchPad:i,isGainingDelta:r}=this,{track:n,activeSlide:o,domSize:a}=t;if(this._detectNoFollowThrottle())return;let l=!1,c=!0;if(l||n.isSlideScrolling&&(o.coord===0?e>0&&(l=!0):o.coord===a-o.size?e<0&&(l=!0):(l=!0,c=!1)),c){if(!i||i&&(r||this.absDeltas.length===1)){let h=Math.sign(e);if(l)t.cancelTransition(),n.$_iterateTarget(h),n.clampTarget(),i||(n.$_current=n.target);else if(h===1){if(!t.props.loop&&t.activeIndex===t.slides.length-1&&!t.props.rewind)return;this._lastWheelTime=+new Date,t.next()}else{if(!t.props.loop&&t.activeIndex===0&&!t.props.rewind)return;this._lastWheelTime=+new Date,t.prev()}}return}if(l){t.cancelTransition();let h=e*t.props.wheelSpeed,p=Math.min(...o.magnets),d=Math.max(...o.magnets),g=n.loopCoord(n.target),f=w(g+h,p,d);n.$_target=n.target+f-g,n.clampTarget()}}_detectNoFollowThrottle(){let{isTouchPad:e,snap:t}=this,{wheelThrottle:i}=t.props,r=+new Date-this._lastWheelTime;return A(i)?r<i:e?this.snap.isTransitioning:!!(t.scrollableSlides.filter(o=>o.isVisible).length&&t.isTransitioning||r<500)}_handleEnd(){if(!this._hasStarted)return;let{snap:e}=this,{props:t,activeSlide:i,track:r}=e,n=this._deltas.slice(-3).reduce((o,a)=>o+a,0);if(this._deltas=[],this._hasStarted=!1,!t.freemode||t.freemode==="sticky")if(t.followWheel&&t.stickOnWheelEnd){let o=Math.abs(t.stickOnWheelEndThreshold)/i.size;i.progress>o&&!r.isSlideScrolling&&n>0?e.next():i.progress<-o&&!r.isSlideScrolling&&n<0?e.prev():e.stick()}else!t.followWheel&&!e.isTransitioning&&e.stick();e.callbacks.emit("wheelEnd",void 0)}_addDelta(e){this._deltas.length>=Jt&&this._deltas.shift(),this._deltas.push(e)}get isTouchPad(){return!this.isStableDelta||this.isSmallDelta}get isStableDelta(){let e=this.absDeltas,t=.8,i=e.map((n,o)=>{let a=e[o-1];return e[o-1]?n-a:0});return i.filter(n=>n===0).length>i.length*t}get isSmallDelta(){let e=this.absDeltas;return e.length===0?!0:e[e.length-1]<50}get isGainingDelta(){let e=b(),t=this.absDeltas,i=e.osName.includes("window")?1.5:1.2;if(t.length<Jt)return!1;let r=t.slice(-Jt),n=r.slice(0,Math.floor(r.length/2)),o=r.slice(Math.floor(r.length/2)),a=this._getAverage(n);return this._getAverage(o)>a*i}_getAverage(e){return e.length?e.reduce((t,i)=>t+i,0)/e.length:0}};var Je=class extends H{constructor(e){super(e);let{props:t,activeIndex:i}=e;this._startIndex=i,this._startTime=0;let r=new ie({container:e.eventsEmitter,enabled:t.swipe,grabCursor:t.grabCursor,minTime:t.swipeMinTime,threshold:t.swipeThreshold,axis:this.axis,ratio:t.swipeSpeed,inertia:!1,inertiaDuration:t.swipeInertiaDuration,inertiaRatio:t.swipeInertiaRatio,velocityModifier:this._handleVelocityModifier.bind(this),inertiaDistanceThreshold:5});this.swipe=r,this.addDestructor(()=>r.destroy()),r.on("start",n=>this._handleSwipeStart(n)),r.on("move",n=>this._handleSwipeMove(n)),r.on("end",n=>this._handleSwipeEnd(n)),r.on("inertiaStart",()=>this._handleSwipeInertiaStart()),r.on("inertiaEnd",()=>this._handleSwipeInertiaEnd()),r.on("inertiaFail",()=>this._handleSwipeInertiaFail()),r.on("inertiaCancel",()=>this._handleSwipeInertiaCancel()),e.on("props",()=>{r.updateProps({enabled:e.props.swipe,grabCursor:e.props.grabCursor,minTime:e.props.swipeMinTime,threshold:e.props.swipeThreshold,axis:this.axis,ratio:t.swipeSpeed,inertiaDuration:e.props.swipeInertiaDuration,inertiaRatio:e.props.swipeInertiaRatio})},{protected:!0})}get axis(){let{props:e,axis:t}=this.snap;return e.swipeAxis==="auto"?t:e.swipeAxis}get isSwiping(){return this.swipe.isSwiping}get hasInertia(){return this.swipe.hasInertia}get isShort(){let{props:e}=this.snap;return e.shortSwipes?+new Date-this._startTime<=e.shortSwipesDuration:!1}get allowFriction(){return!this.isShort&&this.snap.props.swipeFriction}get diff(){let{diff:e}=this.swipe;return(this.axis==="x"?e.x:e.y)/Math.abs(this.snap.props.swipeSpeed)}_handleVelocityModifier(e){let{props:t,track:i,activeSlide:r,domSize:n}=this.snap,{coord:o,size:a}=r;if(t.freemode===!0)return e;if(i.$_target=i.current,t.freemode==="sticky"&&!i.isSlideScrolling){let h=i.loopedCurrent-e[this.axis],p=this.snap.getNearestMagnet(h);if(!p)return e;let d=i.loopedCurrent-h-p.diff;return Object.assign(Object.assign({},e),{[this.axis]:d})}let l=w(e[this.axis],-o,n-a-o);return Object.assign(Object.assign({},e),{[this.axis]:l})}_handleSwipeStart(e){let{snap:t}=this;this._startIndex=t.activeIndex,this._startTime=+new Date,t.eventsEmitter.style.pointerEvents="none",t.props.followSwipe&&t.cancelTransition(),t.callbacks.emit("swipeStart",e)}_handleSwipeMove(e){let{snap:t,swipe:i}=this,{props:r,track:n,callbacks:o}=t,{followSwipe:a}=r;if(!a&&!n.isSlideScrolling)return;let c=(this.axis==="x"?e.step.x:e.step.y)*-1;n.$_iterateTarget(c),i.hasInertia&&n.clampTarget(),o.emit("swipe",e)}_handleSwipeEnd(e){this._end(),this.snap.eventsEmitter.style.pointerEvents="",this.snap.callbacks.emit("swipeEnd",e)}_handleSwipeInertiaStart(){this.snap.callbacks.emit("swipeInertiaStart",void 0)}_handleSwipeInertiaEnd(){this.snap.callbacks.emit("swipeInertiaEnd",void 0)}_handleSwipeInertiaFail(){let{snap:e}=this;e.props.freemode==="sticky"&&!e.track.isSlideScrolling&&(this.isShort?this._endShort():e.stick()),this.snap.callbacks.emit("swipeInertiaFail",void 0)}_handleSwipeInertiaCancel(){this.snap.callbacks.emit("swipeInertiaCancel",void 0)}_end(){let{snap:e,swipe:t}=this,{props:i,track:r}=e;if(i.freemode){t.updateProps({inertia:!0}),!r.canLoop&&(r.target<r.min||r.target>r.max)&&(t.cancelInertia(),e.stick()),this.isShort&&i.freemode==="sticky"&&(t.updateProps({inertia:!1}),t.cancelInertia(),this._endShort());return}if(r.isSlideScrolling){t.updateProps({inertia:!0});return}if(t.updateProps({inertia:!1}),!i.followSwipe){this._endNoFollow();return}if(this.isShort){this._endShort();return}e.stick()}_endShort(){let{diff:e,snap:t}=this,{props:i,activeSlide:r}=t;if(Math.abs(e)<i.shortSwipesThreshold){t.stick();return}let n=Math.sign(e);if(this._startIndex!==t.activeIndex){n<0&&r.progress>0?t.next():n>0&&r.progress<0?t.prev():t.stick();return}n<0?t.next():t.prev()}_endNoFollow(){let{diff:e,snap:t}=this;if(Math.abs(e)<20){t.stick();return}e<0?t.next():t.prev()}};var Ze=class extends H{constructor(e){super(e),this._influence={current:0,target:0},this._current=0,this._target=0,this._raf=new V,this._raf.on("frame",()=>this._handleRaf()),this._raf.on("play",()=>e.callbacks.emit("rafPlay",void 0)),this._raf.on("pause",()=>e.callbacks.emit("rafPause",void 0)),this.addDestructor(()=>this._raf.destroy())}get influence(){return this._influence.current}set $_influence(e){this._influence.current=e,this._influence.target=e}get current(){return this._current}set $_current(e){this._current=e}get target(){return this._target}set $_target(e){let{domSize:t}=this.snap,i=e-this._target;this._target=e,this._influence.target+=t?i/t:0,this._influence.target=w(this._influence.target,-1,1)}set(e){this.$_current=e,this.$_target=e,this._influence.current=0,this._influence.target=0}get canLoop(){let{snap:e}=this;return e.props.loop&&e.slides.length>1}get loopedCurrent(){return this.loopCoord(this.current)}get offset(){let{snap:e}=this;return e.props.centered?e.domSize/2-e.firstSlideSize/2:0}get loopCount(){return Math.floor(this.current/this.max)}_handleRaf(){let{snap:e}=this;e.isTransitioning||(this.$_lerp(this._raf.lerpFactor(e.props.lerp)),this.isInterpolated&&this._raf.pause(),e.render(this._raf.duration))}loopCoord(e){return this.canLoop?L(e,this.min,this.max):e}$_lerp(e){let{snap:t,min:i,max:r}=this,{target:n}=this,o=e,a=this._influence;if(!t.props.loop){let{domSize:h}=t,p=(1-t.props.edgeFriction)*h;if(n<i){let d=1-U(n,-h,i);n=i-d*p}else if(n>r){let d=U(n,r,r+h);n=r+d*p}n=w(n,i-p,r+p)}let l=Math.abs(this.current-n),c=3;if(l<c){let h=1-l/c,p=(1-o)/15;o+=p*h}this.$_current=C(this.current,n,o,1e-6),a.target=C(a.target,0,o,1e-6),a.current=C(a.current,a.target,o,1e-6)}get isInterpolated(){return this.current===this.target&&this._influence.current===0}get min(){let{snap:e}=this;if(this.canLoop||e.isEmpty)return 0;if(e.props.centered){let t=e.slides[0];if(t.size>e.domSize)return e.domSize/2-t.size/2}return 0}get max(){let{domSize:e,slides:t,isEmpty:i,props:r}=this.snap,{canLoop:n}=this;if(i)return 0;let o=t[0],a=t[t.length-1],l=a.staticCoord+a.size,c=n?l+P(r.gap):l-e;return n||(r.centered&&(c+=e/2-o.size/2,a.size<e&&(c+=e/2-a.size/2)),r.centered||(c=Math.max(c,0))),c}get progress(){return this.current/this.max}$_iterateTarget(e){this.$_target=this.target+e,this._raf.play()}clampTarget(){this.canLoop||(this.$_target=w(this.target,this.min,this.max)),this._raf.play()}get isStart(){return this.snap.props.loop?!1:Math.floor(this.target)<=Math.floor(this.min)}get isEnd(){return this.snap.props.loop?!1:Math.floor(this.target)>=Math.floor(this.max)}get isSlideScrolling(){let{snap:e}=this,{domSize:t}=e;return e.scrollableSlides.some(({size:i,coord:r})=>Ut(r,t-i,0))}};var et=class extends H{constructor(e){super(e),this.addDestructor(y(e.container,"scroll",()=>this._handleScroll()))}_handleScroll(){this.snap.container.scrollTo({top:0,left:0,behavior:"instant"})}};var ei=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},Zt=function(s,e){var t={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&e.indexOf(i)<0&&(t[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(s);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(s,i[r])&&(t[i[r]]=s[i[r]]);return t},ue=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{eventsEmitter:null,activeIndex:0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{slides:!1,slidesToScroll:1,direction:"horizontal",centered:!1,loop:!1,gap:0,lerp:b().mobile?1:.2,freemode:!1,rewind:!1,stickOnResize:!0,friction:0,edgeFriction:.85,duration:500,easing:ee,swipe:!0,grabCursor:!1,swipeSpeed:1,swipeAxis:"auto",followSwipe:!0,shortSwipes:!0,shortSwipesDuration:300,shortSwipesThreshold:30,swipeFriction:!1,swipeThreshold:5,swipeMinTime:0,swipeInertiaDuration:e=>w(e,500,2e3),swipeInertiaRatio:.5,wheel:!1,wheelSpeed:1,wheelAxis:"auto",followWheel:!0,wheelThrottle:"auto",stickOnWheelEnd:!0,stickOnWheelEndThreshold:30,slideSize:"auto"})}constructor(e,t){super(e,t),this._domSize=0,this._slides=[],this._scrollableSlides=[];let{container:i,activeIndex:r}=this.props;this._activeIndex=r,this._resizeHandler=W({element:i,viewportTarget:"width",callback:()=>this._handleResize(),name:this.name}),this._resizeHandler.debounceResize(),this._fetchSlides(),this._wheel=new Ge(this),this._swipe=new Je(this),this._track=new Ze(this),this._keyboard=new et(this)}_handleProps(){this._fetchSlides(),this._resizeHandler.resize(),super._handleProps()}_fetchSlides(){this._slides.forEach(t=>t.detach());let e=this.props.slides?this.props.slides:Array.from(this.props.container.children);this._slides=e.map(t=>t instanceof pe?t:new pe(t)),this._slides.forEach((t,i)=>t.attach(this,i))}resize(e=!0){e?this._resizeHandler.resize():this._resizeHandler.debounceResize()}_handleResize(){let{direction:e,container:t}=this.props;this.cancelTransition(),this._domSize=e==="horizontal"?t.offsetWidth:t.offsetHeight,this._reflow(),this.callbacks.emit("resize",void 0)}get container(){return this.props.container}get eventsEmitter(){var e;return(e=this.props.eventsEmitter)!==null&&e!==void 0?e:this.container}get domSize(){return this._domSize}get slides(){return this._slides}get scrollableSlides(){return this._scrollableSlides}get activeIndex(){return this._activeIndex}get activeSlide(){return this.slides[this._activeIndex]}get isEmpty(){return this.slides.length===0}get axis(){return this.props.direction==="horizontal"?"x":"y"}get track(){return this._track}get isTransitioning(){return!!this._timeline}get isSwiping(){return!!this._swipe.isSwiping}_reflow(){let{slides:e,props:t}=this;if(e.length===0)return;this._scrollableSlides=[],e.reduce((r,n)=>(n.$_setStaticCoord(r),n.size>this.domSize&&this._scrollableSlides.push(n),r+n.size+P(t.gap)),0);let i=e.find(({index:r})=>r===this.activeIndex);t.stickOnResize&&i&&(this.track.clampTarget(),this.track.set(i.magnets[0])),this.callbacks.emit("reflow",void 0),this.render()}render(e=0){if(this.isEmpty)return;let{_swipe:t,track:i,props:r}=this;this._updateSlidesCoords(),this._updateSlidesProgress();let{magnet:n}=this;n&&n.slide.index!==this._activeIndex&&(Fe(this._targetIndex)||n.slide.index===this._targetIndex)&&(this._activeIndex=n.slide.index,this._targetIndex=void 0,this.callbacks.emit("activeSlide",this.activeSlide));let o=t.isSwiping&&t.allowFriction||!t.isSwiping;n&&o&&e>0&&r.friction>=0&&!i.isSlideScrolling&&!r.freemode&&(i.$_target=_t(i.target,i.current+n.diff,r.friction*r.lerp,e,1e-6)),this.slides.forEach(a=>a.$_render()),this.callbacks.emit("update",void 0)}_updateSlidesCoords(){let{slides:e,track:t}=this,{centered:i}=this.props,r=i?this._domSize/2-this.firstSlideSize/2:0;e.forEach(n=>{let{staticCoord:o,size:a}=n;if(!t.canLoop){n.$_setCoord(o+r-t.current);return}if(i){n.$_setCoord(L(o+r-t.current,-t.max/2+r,t.max/2+r));return}n.$_setCoord(L(o-t.current,-a,t.max-a))})}get firstSlideSize(){return this.slides[0].size}_updateSlidesProgress(){let{slides:e,domSize:t}=this;e.forEach(i=>{let{coord:r,size:n}=i;if(this.props.centered){let o=t/2-n/2;i.$_setProgress(U(r,o,o-n));return}i.$_setProgress(U(r,0,-n))})}get magnet(){let e=this.track.loopedCurrent;return this.getNearestMagnet(e)}getNearestMagnet(e){let t=this.slides.flatMap(r=>r.magnets.map(n=>({slide:r,magnet:n,index:r.index})));if(t.length===0)return;let i=t.reduce((r,n)=>Math.abs(n.magnet-e)<Math.abs(r.magnet-e)?n:r);return Object.assign(Object.assign({},i),{diff:i.magnet-e})}cancelTransition(){var e;(e=this._timeline)===null||e===void 0||e.destroy(),this._timeline=void 0}stick(){let{magnet:e}=this;this.track.isSlideScrolling||!e||this.toCoord(this.track.current+e.diff)}toCoord(e,t){var i,r;if(this.isEmpty||this.isDestroyed)return!1;this.cancelTransition();let{track:n,props:o,callbacks:a}=this,l=n.current,c=e,h=Math.abs(c-l),p=(i=t==null?void 0:t.duration)!==null&&i!==void 0?i:o.duration,d=A(p)?p:p(h);h===0&&(d=0);let g=(r=t==null?void 0:t.easing)!==null&&r!==void 0?r:o.easing,f=new k({duration:d,easing:g});return this._timeline=f,f.on("start",()=>{var u;a.emit("timelineStart",void 0),(u=t==null?void 0:t.onStart)===null||u===void 0||u.call(t)}),f.on("update",u=>{var m;n.$_current=C(l,c,u.eased),n.$_target=n.current,n.$_influence=n.influence*(1-u.progress),u.progress===1&&(this._targetIndex=void 0),this.render(),a.emit("timelineUpdate",u),(m=t==null?void 0:t.onUpdate)===null||m===void 0||m.call(t,u)}),f.on("end",()=>{var u;f.destroy(),a.emit("timelineEnd",void 0),(u=t==null?void 0:t.onEnd)===null||u===void 0||u.call(t),this._timeline=void 0}),f.on("destroy",()=>{this._targetIndex=void 0}),f.play(),!0}toSlide(e,t={}){var i,r,{direction:n=null}=t,o=Zt(t,["direction"]);let{isEmpty:a,activeIndex:l,slides:c,track:h,props:p}=this,{current:d,max:g,loopCount:f}=h;if(a||this.isDestroyed)return!1;let u=L(e,0,this.slides.length);if(u===l)return this.stick(),!1;this._targetIndex=u;let m=c[u].magnets,O=m[0];if(p.centered?n==="prev"?O=(i=m[2])!==null&&i!==void 0?i:m[0]:n==="next"&&(O=(r=m[1])!==null&&r!==void 0?r:m[0]):O=n==="prev"?m[m.length-1]:O,!p.loop)return this.toCoord(O,o);let E=O+f*g,M=E-g,$=E+g,se=[M,E,$];if(le(n)){let Ee=se.filter(q=>n==="next"?q>=d:q<=d),Y=Ae(d,Ee);return this.toCoord(Y,o)}let re=Ae(d,se);return this.toCoord(re,o)}next(e={}){var{skip:t=this.props.slidesToScroll}=e,i=Zt(e,["skip"]);let{props:r,slides:n,activeIndex:o}=this,a=L(o+t,0,n.length);return r.loop||(a=r.rewind?L(o+t,0,n.length):Math.min(o+t,n.length-1)),this.toSlide(a,Object.assign(Object.assign({},i),{direction:"next"}))}prev(e={}){var{skip:t=this.props.slidesToScroll}=e,i=Zt(e,["skip"]);let{props:r,slides:n,activeIndex:o}=this,a=L(o-t,0,n.length);return r.loop||(a=r.rewind?L(o-t,0,n.length):Math.max(o-t,0)),this.toSlide(a,Object.assign(Object.assign({},i),{direction:"prev"}))}_destroy(){super._destroy(),this._resizeHandler.remove(),this.cancelTransition(),this._slides.forEach(e=>e.detach())}};ei([_],ue.prototype,"resize",null);ei([_],ue.prototype,"render",null);ei([_],ue.prototype,"stick",null);var Hs=ai(Fs());function tt(s,e){return e?le(e)?s.matches(e):typeof e=="function"?e(s):e.includes(s):!1}function Xs({wordsMeta:s,classname:e,tagName:t,ignore:i}){let r=[],n=v.createElement(t);return n.style.display="inline-block",S(n,e),s.forEach(o=>{if(tt(o.element,i))return;let a=o.element.childNodes[0];if(!a)return;let l=a.textContent;if(!l)return;(0,Hs.default)(l,"").forEach(h=>{let p=n.cloneNode(!1);p.appendChild(v.createTextNode(h)),o.element.insertBefore(p,a);let d={element:p};o.letters.push(d),r.push(d)}),a.remove()}),{lettersMeta:r}}function Us({container:s,classname:e,tagName:t,ignore:i,prepareText:r,wordDelimiter:n=" ",wordDelimiterOutput:o}){let a=o||n,l=v.createElement(t);l.style.display="inline-block",l.setAttribute("aria-hidden","true"),S(l,e);let c=[],h=null;function p(d){var g,f;if(d instanceof HTMLElement||d instanceof DocumentFragment){if("tagName"in d&&d.tagName!=="BR"){if(tt(d,i)){h?h.append(d):c.push({element:d,letters:[]});return}d.style.display="inline-block"}h=null,[...Array.from(d.childNodes)].forEach(m=>p(m));return}if(d.nodeType===3){let u=(g=d.parentElement)!==null&&g!==void 0?g:s,m=(f=d.nodeValue)!==null&&f!==void 0?f:"";if(m===n){h=null,u==null||u.insertBefore(v.createTextNode(a),d),d.remove();return}m=r?r(m):m;let O=m.split(n);O.forEach((E,M)=>{if(E){let $=l.cloneNode(!1);$.appendChild(v.createTextNode(E)),h=$,c.push({element:$,letters:[]}),u==null||u.insertBefore($,d)}M<O.length-1&&(u==null||u.insertBefore(v.createTextNode(a),d))}),d.remove()}}return p(s),c}var Ln=function(s,e){var t={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&e.indexOf(i)<0&&(t[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(s);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(s,i[r])&&(t[i[r]]=s[i[r]]);return t};function Ys(s){var{container:e,letterClassName:t,wordClassName:i,hasLetters:r,letterTag:n,wordTag:o,ignore:a}=s,l=Ln(s,["container","letterClassName","wordClassName","hasLetters","letterTag","wordTag","ignore"]);let c=v.createDocumentFragment();for(;e.childNodes[0];)c.appendChild(e.childNodes[0]);let h=Us(Object.assign(Object.assign({},l),{container:c,classname:i,tagName:o,ignore:a})),p=[];if(r){let d=Xs({wordsMeta:h,classname:t,tagName:n,ignore:a});p.push(...d.lettersMeta)}return e.appendChild(c),{wordsMeta:h,lettersMeta:p}}function qs(s){let{direction:e,textAlign:t}=getComputedStyle(s);return t==="center"?t:t==="justify"?e==="rtl"?"right":"left":t==="left"||t==="right"?t:t==="start"?e==="rtl"?"right":"left":t==="end"?e==="rtl"?"left":"right":e==="rtl"?"right":"left"}function Qs(s,e){var t;return s!=null&&s.parentElement?s.parentElement===e?s:Qs((t=s==null?void 0:s.parentElement)!==null&&t!==void 0?t:null,e):null}function Ks(s,e){return s===e?!0:s!==null?Ks(s.parentNode,e):!1}function Gs({container:s,hasLinesWrapper:e,wordsMeta:t,lineClassName:i,lineWrapperClassName:r,tagName:n}){let o=qs(s),a=[],l=-1,c=null,h=v.createElement(n);h.style.display="block",h.setAttribute("aria-hidden","true"),S(h,i);let p=t.map(f=>f.element.getBoundingClientRect());t.forEach((f,u)=>{var m;let O=p[u],E=Qs(f.element,s);if(!E)return;let M=c&&O.top>c.top,$=c&&O.left>=c.left,se=c&&O.left<=c.left;if(!c||M&&se&&o==="left"||M&&$&&o==="right"||M&&o==="center"){l+=1;let Y=h.cloneNode(!1),q;e&&(q=v.createElement(n),q.style.display="block",S(q,r),q.appendChild(Y)),a[l]={element:Y,wrapper:q,nodes:[],words:[]}}c=O;let re=a[l];!!a.find(({nodes:Y})=>Y.includes(E))||(re.nodes.push(E),((m=E.nextSibling)===null||m===void 0?void 0:m.nodeType)===3&&re.nodes.push(E.nextSibling))}),a.forEach(f=>{var u;s.insertBefore((u=f.wrapper)!==null&&u!==void 0?u:f.element,f.nodes[0]);let m=v.createDocumentFragment();m.append(...f.nodes),f.element.append(m)});let d=[];return a.forEach(f=>{var u;let m=((u=f.wrapper)!==null&&u!==void 0?u:f.element).nextElementSibling;m instanceof HTMLBRElement&&(m.style.display="none",d.push(m))}),a.forEach(f=>{f.words.push(...t.filter(u=>Ks(u.element,f.element)))}),{linesMeta:a,destroy:()=>{let f=!0;return d.forEach(u=>{u.style.display=""}),a.forEach(u=>{var m;u.nodes.forEach(O=>{var E;let M=(E=u.wrapper)!==null&&E!==void 0?E:u.element;M.parentElement?s.insertBefore(O,M):f=!1}),u.element.remove(),(m=u.wrapper)===null||m===void 0||m.remove()}),f}}}function Js(s){let e=[];function t(i){e.push({node:i,cssText:i instanceof HTMLElement?i.style.cssText:null,parent:i.parentNode}),i.childNodes.forEach(r=>t(r))}return s.childNodes.forEach(i=>t(i)),{restore:()=>{let i=v.createDocumentFragment();for(e.forEach(r=>{let{node:n,cssText:o}=r;for(n instanceof HTMLElement&&o&&(n.style.cssText=o);n.childNodes[0];)n.childNodes[0].remove();r.parent&&(r.parent===s?i:r.parent).appendChild(r.node)});s.childNodes[0];)s.childNodes[0].remove();s.appendChild(i)}}}var Vn=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},it=class extends x{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{letters:!1,lines:!1,linesWrapper:!1,letterTag:"span",wordTag:"span",lineTag:"span",letterClass:this._cn("__letter"),wordClass:this._cn("__word"),lineClass:this._cn("__line"),lineWrapperClass:this._cn("__line-wrapper"),resizeDebounce:0,ignore:null,prepareText:e=>e,wordDelimiter:" ",wordDelimiterOutput:null})}_getMutable(){return Object.assign({},super._getMutable())}get prefix(){return`${b().prefix}split-text`}get lettersMeta(){return this._lettersMeta}get letters(){return this._lettersMeta.map(e=>e.element)}get wordsMeta(){return this._wordsMeta}get words(){return this._wordsMeta.map(e=>e.element)}get linesMeta(){return this._linesMeta}get lines(){return this._linesMeta.map(e=>e.element)}constructor(e,t){super(e,t),this._isBaseSplit=!1,this._lettersMeta=[],this._wordsMeta=[],this._linesMeta=[];let{container:i}=this.props,{style:r}=i;r.fontKerning="none",r.display="block",i.setAttribute("aria-label",i.textContent||""),this._addTempClassName(i,this._cn("")),i.translate=!1,this._savedNodes=Js(i),this._setup()}_setup(){let{container:e,resizeDebounce:t}=this.props;if(!this.props.lines){this.split();return}let i=W({callback:()=>this.split(),element:e,viewportTarget:"width",resizeDebounce:t,name:this.name});i.resize(),this.onDestroy(()=>i.remove())}split(){this.callbacks.emit("beforeSplit",void 0),this._splitBase(),this.props.lines&&this._splitLines(),this.callbacks.emit("split",void 0)}_splitBase(){if(this._isBaseSplit)return;let{container:e,letterTag:t,wordTag:i,wordClass:r,letterClass:n,ignore:o,prepareText:a,wordDelimiter:l,wordDelimiterOutput:c}=this.props;this._isBaseSplit=!0;let{wordsMeta:h,lettersMeta:p}=Ys({container:e,letterClassName:n,wordClassName:r,hasLetters:this.props.letters,letterTag:t,wordTag:i,ignore:o,prepareText:a,wordDelimiter:l,wordDelimiterOutput:c});this._wordsMeta=h,this._lettersMeta=p}_splitLines(){var e;let{wordsMeta:t}=this,{container:i,lineTag:r,lineClass:n,lineWrapperClass:o}=this.props;i.offsetParent!==null&&((e=this._lineSplitWrapper)===null||e===void 0||e.destroy(),this._lineSplitWrapper=Gs({container:i,hasLinesWrapper:this.props.linesWrapper,wordsMeta:t,lineClassName:n,lineWrapperClassName:o,tagName:r}),this._linesMeta=this._lineSplitWrapper.linesMeta)}_destroy(){if(super._destroy(),!this._lineSplitWrapper)this._savedNodes.restore();else{let e=this._lineSplitWrapper.destroy();this._lineSplitWrapper=void 0,e&&this._savedNodes.restore()}}};Vn([_],it.prototype,"split",null);var Zs=B?b():void 0,Fn=Zs;return or(Hn);})();
|
|
181
178
|
/*! Bundled license information:
|
|
182
179
|
|
|
183
180
|
normalize-wheel/src/isEventSupported.js:
|