-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdbbdfb320c5007a40fa91453221d77dae72f3b83-0576a350ae2ad1b49cac.js
More file actions
2 lines (2 loc) · 18.5 KB
/
dbbdfb320c5007a40fa91453221d77dae72f3b83-0576a350ae2ad1b49cac.js
File metadata and controls
2 lines (2 loc) · 18.5 KB
1
2
"use strict";(self.webpackChunkcode_cave=self.webpackChunkcode_cave||[]).push([[971],{6674:function(n,t,e){e.d(t,{A:function(){return q}});var r=e(6540);function o(n){return function(n){return"[object Object]"===Object.prototype.toString.call(n)}(n)||Array.isArray(n)}function i(n,t){const e=Object.keys(n),r=Object.keys(t);if(e.length!==r.length)return!1;return JSON.stringify(Object.keys(n.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&e.every(e=>{const r=n[e],c=t[e];return"function"==typeof r?`${r}`==`${c}`:o(r)&&o(c)?i(r,c):r===c})}function c(n){return n.concat().sort((n,t)=>n.name>t.name?1:-1).map(n=>n.options)}function u(n){return"number"==typeof n}function s(n){return"string"==typeof n}function a(n){return"boolean"==typeof n}function d(n){return"[object Object]"===Object.prototype.toString.call(n)}function l(n){return Math.abs(n)}function f(n){return Math.sign(n)}function p(n,t){return l(n-t)}function g(n){return v(n).map(Number)}function m(n){return n[h(n)]}function h(n){return Math.max(0,n.length-1)}function y(n,t){return t===h(n)}function x(n,t=0){return Array.from(Array(n),(n,e)=>t+e)}function v(n){return Object.keys(n)}function b(n,t){return[n,t].reduce((n,t)=>(v(t).forEach(e=>{const r=n[e],o=t[e],i=d(r)&&d(o);n[e]=i?b(r,o):o}),n),{})}function w(n,t){return void 0!==t.MouseEvent&&n instanceof t.MouseEvent}function S(){let n=[];const t={add:function(e,r,o,i={passive:!0}){let c;if("addEventListener"in e)e.addEventListener(r,o,i),c=()=>e.removeEventListener(r,o,i);else{const n=e;n.addListener(o),c=()=>n.removeListener(o)}return n.push(c),t},clear:function(){n=n.filter(n=>n())}};return t}function E(n,t,e,r){const o=S(),i=1e3/60;let c=null,u=0,s=0;function a(n){if(!s)return;c||(c=n,e(),e());const o=n-c;for(c=n,u+=o;u>=i;)e(),u-=i;r(u/i),s&&(s=t.requestAnimationFrame(a))}function d(){t.cancelAnimationFrame(s),c=null,u=0,s=0}return{init:function(){o.add(n,"visibilitychange",()=>{n.hidden&&(c=null,u=0)})},destroy:function(){d(),o.clear()},start:function(){s||(s=t.requestAnimationFrame(a))},stop:d,update:e,render:r}}function L(n=0,t=0){const e=l(n-t);function r(t){return t<n}function o(n){return n>t}function i(n){return r(n)||o(n)}return{length:e,max:t,min:n,constrain:function(e){return i(e)?r(e)?n:t:e},reachedAny:i,reachedMax:o,reachedMin:r,removeOffset:function(n){return e?n-e*Math.ceil((n-t)/e):n}}}function O(n,t,e){const{constrain:r}=L(0,n),o=n+1;let i=c(t);function c(n){return e?l((o+n)%o):r(n)}function u(){return i}function s(){return O(n,u(),e)}const a={get:u,set:function(n){return i=c(n),a},add:function(n){return s().set(u()+n)},clone:s};return a}function D(n,t,e,r,o,i,c,u,s,d,g,m,h,y,x,v,b,E,O){const{cross:D,direction:I}=n,k=["INPUT","SELECT","TEXTAREA"],A={passive:!1},M=S(),F=S(),T=L(50,225).constrain(y.measure(20)),P={mouse:300,touch:400},z={mouse:500,touch:600},H=x?43:25;let j=!1,V=0,C=0,B=!1,N=!1,R=!1,G=!1;function q(n){if(!w(n,r)&&n.touches.length>=2)return $(n);const t=i.readPoint(n),e=i.readPoint(n,D),c=p(t,V),s=p(e,C);if(!N&&!G){if(!n.cancelable)return $(n);if(N=c>s,!N)return $(n)}const a=i.pointerMove(n);c>v&&(R=!0),d.useFriction(.3).useDuration(.75),u.start(),o.add(I(a)),n.preventDefault()}function $(n){const t=g.byDistance(0,!1).index!==m.get(),e=i.pointerUp(n)*(x?z:P)[G?"mouse":"touch"],r=function(n,t){const e=m.add(-1*f(n)),r=g.byDistance(n,!x).distance;return x||l(n)<T?r:b&&t?.5*r:g.byIndex(e.get(),0).distance}(I(e),t),o=function(n,t){if(0===n||0===t)return 0;if(l(n)<=l(t))return 0;const e=p(l(n),l(t));return l(e/n)}(e,r),c=H-10*o,u=E+o/50;N=!1,B=!1,F.clear(),d.useDuration(c).useFriction(u),s.distance(r,!x),G=!1,h.emit("pointerUp")}function U(n){R&&(n.stopPropagation(),n.preventDefault(),R=!1)}return{init:function(n){if(!O)return;function u(u){(a(O)||O(n,u))&&function(n){const u=w(n,r);if(G=u,R=x&&u&&!n.buttons&&j,j=p(o.get(),c.get())>=2,u&&0!==n.button)return;if(function(n){const t=n.nodeName||"";return k.includes(t)}(n.target))return;B=!0,i.pointerDown(n),d.useFriction(0).useDuration(0),o.set(c),function(){const n=G?e:t;F.add(n,"touchmove",q,A).add(n,"touchend",$).add(n,"mousemove",q,A).add(n,"mouseup",$)}(),V=i.readPoint(n),C=i.readPoint(n,D),h.emit("pointerDown")}(u)}const s=t;M.add(s,"dragstart",n=>n.preventDefault(),A).add(s,"touchmove",()=>{},A).add(s,"touchend",()=>{}).add(s,"touchstart",u).add(s,"mousedown",u).add(s,"touchcancel",$).add(s,"contextmenu",$).add(s,"click",U,!0)},destroy:function(){M.clear(),F.clear()},pointerDown:function(){return B}}}function I(n,t){let e,r;function o(n){return n.timeStamp}function i(e,r){const o="client"+("x"===(r||n.scroll)?"X":"Y");return(w(e,t)?e:e.touches[0])[o]}return{pointerDown:function(n){return e=n,r=n,i(n)},pointerMove:function(n){const t=i(n)-i(r),c=o(n)-o(e)>170;return r=n,c&&(e=n),t},pointerUp:function(n){if(!e||!r)return 0;const t=i(r)-i(e),c=o(n)-o(e),u=o(n)-o(r)>170,s=t/c;return c&&!u&&l(s)>.1?s:0},readPoint:i}}function k(n,t,e,r,o,i,c){const u=[n].concat(r);let s,d,f=[],p=!1;function g(n){return o.measureSize(c.measure(n))}return{init:function(o){i&&(d=g(n),f=r.map(g),s=new ResizeObserver(e=>{(a(i)||i(o,e))&&function(e){for(const i of e){if(p)return;const e=i.target===n,c=r.indexOf(i.target),u=e?d:f[c];if(l(g(e?n:r[c])-u)>=.5){o.reInit(),t.emit("resize");break}}}(e)}),e.requestAnimationFrame(()=>{u.forEach(n=>s.observe(n))}))},destroy:function(){p=!0,s&&s.disconnect()}}}function A(n,t,e,r,o){const i=o.measure(10),c=o.measure(50),u=L(.1,.99);let s=!1;function a(){return!s&&(!!n.reachedAny(e.get())&&!!n.reachedAny(t.get()))}return{shouldConstrain:a,constrain:function(o){if(!a())return;const s=n.reachedMin(t.get())?"min":"max",d=l(n[s]-t.get()),f=e.get()-t.get(),p=u.constrain(d/c);e.subtract(f*p),!o&&l(f)<i&&(e.set(n.constrain(e.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(n){s=!n}}}function M(n,t,e,r){const o=t.min+.1,i=t.max+.1,{reachedMin:c,reachedMax:u}=L(o,i);return{loop:function(t){if(!function(n){return 1===n?u(e.get()):-1===n&&c(e.get())}(t))return;const o=n*(-1*t);r.forEach(n=>n.add(o))}}}function F(n,t,e,r,o){const{reachedAny:i,removeOffset:c,constrain:u}=r;function s(n){return n.concat().sort((n,t)=>l(n)-l(t))[0]}function a(t,r){const o=[t,t+e,t-e];if(!n)return t;if(!r)return s(o);const i=o.filter(n=>f(n)===r);return i.length?s(i):m(o)-e}return{byDistance:function(e,r){const s=o.get()+e,{index:d,distance:f}=function(e){const r=n?c(e):u(e),o=t.map((n,t)=>({diff:a(n-r,0),index:t})).sort((n,t)=>l(n.diff)-l(t.diff)),{index:i}=o[0];return{index:i,distance:r}}(s),p=!n&&i(s);return!r||p?{index:d,distance:e}:{index:d,distance:e+a(t[d]-f,0)}},byIndex:function(n,e){return{index:n,distance:a(t[n]-o.get(),e)}},shortcut:a}}function T(n,t,e,r,o,i,c,s){const d={passive:!0,capture:!0};let l=0;function f(n){"Tab"===n.code&&(l=(new Date).getTime())}return{init:function(p){s&&(i.add(document,"keydown",f,!1),t.forEach((t,f)=>{i.add(t,"focus",t=>{(a(s)||s(p,t))&&function(t){if((new Date).getTime()-l>10)return;c.emit("slideFocusStart"),n.scrollLeft=0;const i=e.findIndex(n=>n.includes(t));u(i)&&(o.useDuration(0),r.index(i,0),c.emit("slideFocus"))}(f)},d)}))}}}function P(n){let t=n;function e(n){return u(n)?n:n.get()}return{get:function(){return t},set:function(n){t=e(n)},add:function(n){t+=e(n)},subtract:function(n){t-=e(n)}}}function z(n,t){const e="x"===n.scroll?function(n){return`translate3d(${n}px,0px,0px)`}:function(n){return`translate3d(0px,${n}px,0px)`},r=t.style;let o=null,i=!1;return{clear:function(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(i)return;const c=(u=n.direction(t),Math.round(100*u)/100);var u;c!==o&&(r.transform=e(c),o=c)},toggleActive:function(n){i=!n}}}function H(n,t,e,r,o,i,c,u,s){const a=g(o),d=g(o).reverse(),l=function(){const n=c[0];return m(p(d,n),e,!1)}().concat(function(){const n=t-c[0]-1;return m(p(a,n),-e,!0)}());function f(n,t){return n.reduce((n,t)=>n-o[t],t)}function p(n,t){return n.reduce((n,e)=>f(n,t)>0?n.concat([e]):n,[])}function m(o,c,a){const d=function(n){return i.map((e,o)=>({start:e-r[o]+.5+n,end:e+t-.5+n}))}(c);return o.map(t=>{const r=a?0:-e,o=a?e:0,i=a?"end":"start",c=d[t][i];return{index:t,loopPoint:c,slideLocation:P(-1),translate:z(n,s[t]),target:()=>u.get()>c?r:o}})}return{canLoop:function(){return l.every(({index:n})=>f(a.filter(t=>t!==n),t)<=.1)},clear:function(){l.forEach(n=>n.translate.clear())},loop:function(){l.forEach(n=>{const{target:t,translate:e,slideLocation:r}=n,o=t();o!==r.get()&&(e.to(o),r.set(o))})},loopPoints:l}}function j(n,t,e){let r,o=!1;return{init:function(i){e&&(r=new MutationObserver(n=>{o||(a(e)||e(i,n))&&function(n){for(const e of n)if("childList"===e.type){i.reInit(),t.emit("slidesChanged");break}}(n)}),r.observe(n,{childList:!0}))},destroy:function(){r&&r.disconnect(),o=!0}}}function V(n,t,e,r){const o={};let i,c=null,u=null,s=!1;return{init:function(){i=new IntersectionObserver(n=>{s||(n.forEach(n=>{const e=t.indexOf(n.target);o[e]=n}),c=null,u=null,e.emit("slidesInView"))},{root:n.parentElement,threshold:r}),t.forEach(n=>i.observe(n))},destroy:function(){i&&i.disconnect(),s=!0},get:function(n=!0){if(n&&c)return c;if(!n&&u)return u;const t=function(n){return v(o).reduce((t,e)=>{const r=parseInt(e),{isIntersecting:i}=o[r];return(n&&i||!n&&!i)&&t.push(r),t},[])}(n);return n&&(c=t),n||(u=t),t}}}function C(n,t,e,r,o,i,c,s,a){const{startEdge:d,endEdge:f,direction:p}=n,y=u(e);return{groupSlides:function(n){return y?function(n,t){return g(n).filter(n=>n%t===0).map(e=>n.slice(e,e+t))}(n,e):function(n){return n.length?g(n).reduce((e,u,g)=>{const y=m(e)||0,x=0===y,v=u===h(n),b=o[d]-i[y][d],w=o[d]-i[u][f],S=!r&&x?p(c):0,E=l(w-(!r&&v?p(s):0)-(b+S));return g&&E>t+a&&e.push(u),v&&e.push(n.length),e},[]).map((t,e,r)=>{const o=Math.max(r[e-1]||0);return n.slice(o,t)}):[]}(n)}}}function B(n,t,e,r,o,i,c){const{align:u,axis:a,direction:d,startIndex:v,loop:b,duration:w,dragFree:B,dragThreshold:N,inViewThreshold:R,slidesToScroll:G,skipSnaps:q,containScroll:$,watchResize:U,watchSlides:W,watchDrag:J,watchFocus:Q}=i,X={measure:function(n){const{offsetTop:t,offsetLeft:e,offsetWidth:r,offsetHeight:o}=n;return{top:t,right:e+r,bottom:t+o,left:e,width:r,height:o}}},_=X.measure(t),Y=e.map(X.measure),K=function(n,t){const e="rtl"===t,r="y"===n,o=!r&&e?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":e?"right":"left",endEdge:r?"bottom":e?"left":"right",measureSize:function(n){const{height:t,width:e}=n;return r?t:e},direction:function(n){return n*o}}}(a,d),Z=K.measureSize(_),nn=function(n){return{measure:function(t){return n*(t/100)}}}(Z),tn=function(n,t){const e={start:function(){return 0},center:function(n){return r(n)/2},end:r};function r(n){return t-n}return{measure:function(r,o){return s(n)?e[n](r):n(t,r,o)}}}(u,Z),en=!b&&!!$,rn=b||!!$,{slideSizes:on,slideSizesWithGaps:cn,startGap:un,endGap:sn}=function(n,t,e,r,o,i){const{measureSize:c,startEdge:u,endEdge:s}=n,a=e[0]&&o,d=function(){if(!a)return 0;const n=e[0];return l(t[u]-n[u])}(),f=function(){if(!a)return 0;const n=i.getComputedStyle(m(r));return parseFloat(n.getPropertyValue(`margin-${s}`))}(),p=e.map(c),g=e.map((n,t,e)=>{const r=!t,o=y(e,t);return r?p[t]+d:o?p[t]+f:e[t+1][u]-n[u]}).map(l);return{slideSizes:p,slideSizesWithGaps:g,startGap:d,endGap:f}}(K,_,Y,e,rn,o),an=C(K,Z,G,b,_,Y,un,sn,2),{snaps:dn,snapsAligned:ln}=function(n,t,e,r,o){const{startEdge:i,endEdge:c}=n,{groupSlides:u}=o,s=u(r).map(n=>m(n)[c]-n[0][i]).map(l).map(t.measure),a=r.map(n=>e[i]-n[i]).map(n=>-l(n)),d=u(a).map(n=>n[0]).map((n,t)=>n+s[t]);return{snaps:a,snapsAligned:d}}(K,tn,_,Y,an),fn=-m(dn)+m(cn),{snapsContained:pn,scrollContainLimit:gn}=function(n,t,e,r,o){const i=L(-t+n,0),c=e.map((n,t)=>{const{min:r,max:o}=i,c=i.constrain(n),u=!t,a=y(e,t);return u?o:a||s(r,c)?r:s(o,c)?o:c}).map(n=>parseFloat(n.toFixed(3))),u=function(){const n=c[0],t=m(c);return L(c.lastIndexOf(n),c.indexOf(t)+1)}();function s(n,t){return p(n,t)<=1}return{snapsContained:function(){if(t<=n+o)return[i.max];if("keepSnaps"===r)return c;const{min:e,max:s}=u;return c.slice(e,s)}(),scrollContainLimit:u}}(Z,fn,ln,$,2),mn=en?pn:ln,{limit:hn}=function(n,t,e){const r=t[0];return{limit:L(e?r-n:m(t),r)}}(fn,mn,b),yn=O(h(mn),v,b),xn=yn.clone(),vn=g(e),bn=E(r,o,()=>(({dragHandler:n,scrollBody:t,scrollBounds:e,options:{loop:r}})=>{r||e.constrain(n.pointerDown()),t.seek()})(zn),n=>(({scrollBody:n,translate:t,location:e,offsetLocation:r,previousLocation:o,scrollLooper:i,slideLooper:c,dragHandler:u,animation:s,eventHandler:a,scrollBounds:d,options:{loop:l}},f)=>{const p=n.settled(),g=!d.shouldConstrain(),m=l?p:p&&g,h=m&&!u.pointerDown();h&&s.stop();const y=e.get()*f+o.get()*(1-f);r.set(y),l&&(i.loop(n.direction()),c.loop()),t.to(r.get()),h&&a.emit("settle"),m||a.emit("scroll")})(zn,n)),wn=mn[yn.get()],Sn=P(wn),En=P(wn),Ln=P(wn),On=P(wn),Dn=function(n,t,e,r,o,i){let c=0,u=0,s=o,a=i,d=n.get(),p=0;function g(n){return s=n,h}function m(n){return a=n,h}const h={direction:function(){return u},duration:function(){return s},velocity:function(){return c},seek:function(){const t=r.get()-n.get();let o=0;return s?(e.set(n),c+=t/s,c*=a,d+=c,n.add(c),o=d-p):(c=0,e.set(r),n.set(r),o=t),u=f(o),p=d,h},settled:function(){return l(r.get()-t.get())<.001},useBaseFriction:function(){return m(i)},useBaseDuration:function(){return g(o)},useFriction:m,useDuration:g};return h}(Sn,Ln,En,On,w,.68),In=F(b,mn,fn,hn,On),kn=function(n,t,e,r,o,i,c){function u(o){const u=o.distance,s=o.index!==t.get();i.add(u),u&&(r.duration()?n.start():(n.update(),n.render(1),n.update())),s&&(e.set(t.get()),t.set(o.index),c.emit("select"))}return{distance:function(n,t){u(o.byDistance(n,t))},index:function(n,e){const r=t.clone().set(n);u(o.byIndex(r.get(),e))}}}(bn,yn,xn,Dn,In,On,c),An=function(n){const{max:t,length:e}=n;return{get:function(n){return e?(n-t)/-e:0}}}(hn),Mn=S(),Fn=V(t,e,c,R),{slideRegistry:Tn}=function(n,t,e,r,o,i){const{groupSlides:c}=o,{min:u,max:s}=r;return{slideRegistry:function(){const r=c(i),o=!n||"keepSnaps"===t;return 1===e.length?[i]:o?r:r.slice(u,s).map((n,t,e)=>{const r=!t,o=y(e,t);return r?x(m(e[0])+1):o?x(h(i)-m(e)[0]+1,m(e)[0]):n})}()}}(en,$,mn,gn,an,vn),Pn=T(n,e,Tn,kn,Dn,Mn,c,Q),zn={ownerDocument:r,ownerWindow:o,eventHandler:c,containerRect:_,slideRects:Y,animation:bn,axis:K,dragHandler:D(K,n,r,o,On,I(K,o),Sn,bn,kn,Dn,In,yn,c,nn,B,N,q,.68,J),eventStore:Mn,percentOfView:nn,index:yn,indexPrevious:xn,limit:hn,location:Sn,offsetLocation:Ln,previousLocation:En,options:i,resizeHandler:k(t,c,o,e,K,U,X),scrollBody:Dn,scrollBounds:A(hn,Ln,On,Dn,nn),scrollLooper:M(fn,hn,Ln,[Sn,Ln,En,On]),scrollProgress:An,scrollSnapList:mn.map(An.get),scrollSnaps:mn,scrollTarget:In,scrollTo:kn,slideLooper:H(K,Z,fn,on,cn,dn,mn,Ln,e),slideFocus:Pn,slidesHandler:j(t,c,W),slidesInView:Fn,slideIndexes:vn,slideRegistry:Tn,slidesToScroll:an,target:On,translate:z(K,t)};return zn}const N={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function R(n){function t(n,t){return b(n,t||{})}const e={mergeOptions:t,optionsAtMedia:function(e){const r=e.breakpoints||{},o=v(r).filter(t=>n.matchMedia(t).matches).map(n=>r[n]).reduce((n,e)=>t(n,e),{});return t(e,o)},optionsMediaQueries:function(t){return t.map(n=>v(n.breakpoints||{})).reduce((n,t)=>n.concat(t),[]).map(n.matchMedia)}};return e}function G(n,t,e){const r=n.ownerDocument,o=r.defaultView,i=R(o),c=function(n){let t=[];return{init:function(e,r){return t=r.filter(({options:t})=>!1!==n.optionsAtMedia(t).active),t.forEach(t=>t.init(e,n)),r.reduce((n,t)=>Object.assign(n,{[t.name]:t}),{})},destroy:function(){t=t.filter(n=>n.destroy())}}}(i),u=S(),a=function(){let n,t={};function e(n){return t[n]||[]}const r={init:function(t){n=t},emit:function(t){return e(t).forEach(e=>e(n,t)),r},off:function(n,o){return t[n]=e(n).filter(n=>n!==o),r},on:function(n,o){return t[n]=e(n).concat([o]),r},clear:function(){t={}}};return r}(),{mergeOptions:d,optionsAtMedia:l,optionsMediaQueries:f}=i,{on:p,off:g,emit:m}=a,h=k;let y,x,v,b,w=!1,E=d(N,G.globalOptions),L=d(E),O=[];function D(t){const e=B(n,v,b,r,o,t,a);if(t.loop&&!e.slideLooper.canLoop()){return D(Object.assign({},t,{loop:!1}))}return e}function I(t,e){w||(E=d(E,t),L=l(E),O=e||O,function(){const{container:t,slides:e}=L,r=s(t)?n.querySelector(t):t;v=r||n.children[0];const o=s(e)?v.querySelectorAll(e):e;b=[].slice.call(o||v.children)}(),y=D(L),f([E,...O.map(({options:n})=>n)]).forEach(n=>u.add(n,"change",k)),L.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(T),y.eventHandler.init(T),y.resizeHandler.init(T),y.slidesHandler.init(T),y.options.loop&&y.slideLooper.loop(),v.offsetParent&&b.length&&y.dragHandler.init(T),x=c.init(T,O)))}function k(n,t){const e=F();A(),I(d({startIndex:e},n),t),a.emit("reInit")}function A(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),c.destroy(),u.clear()}function M(n,t,e){L.active&&!w&&(y.scrollBody.useBaseFriction().useDuration(!0===t?0:L.duration),y.scrollTo.index(n,e||0))}function F(){return y.index.get()}const T={canScrollNext:function(){return y.index.add(1).get()!==F()},canScrollPrev:function(){return y.index.add(-1).get()!==F()},containerNode:function(){return v},internalEngine:function(){return y},destroy:function(){w||(w=!0,u.clear(),A(),a.emit("destroy"),a.clear())},off:g,on:p,emit:m,plugins:function(){return x},previousScrollSnap:function(){return y.indexPrevious.get()},reInit:h,rootNode:function(){return n},scrollNext:function(n){M(y.index.add(1).get(),n,-1)},scrollPrev:function(n){M(y.index.add(-1).get(),n,1)},scrollProgress:function(){return y.scrollProgress.get(y.offsetLocation.get())},scrollSnapList:function(){return y.scrollSnapList},scrollTo:M,selectedScrollSnap:F,slideNodes:function(){return b},slidesInView:function(){return y.slidesInView.get()},slidesNotInView:function(){return y.slidesInView.get(!1)}};return I(t,e),setTimeout(()=>a.emit("init"),0),T}function q(n={},t=[]){const e=(0,r.useRef)(n),o=(0,r.useRef)(t),[u,s]=(0,r.useState)(),[a,d]=(0,r.useState)(),l=(0,r.useCallback)(()=>{u&&u.reInit(e.current,o.current)},[u]);return(0,r.useEffect)(()=>{i(e.current,n)||(e.current=n,l())},[n,l]),(0,r.useEffect)(()=>{(function(n,t){if(n.length!==t.length)return!1;const e=c(n),r=c(t);return e.every((n,t)=>i(n,r[t]))})(o.current,t)||(o.current=t,l())},[t,l]),(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&a){G.globalOptions=q.globalOptions;const n=G(a,e.current,o.current);return s(n),()=>n.destroy()}s(void 0)},[a,s]),[d,u]}G.globalOptions=void 0,q.globalOptions=void 0}}]);
//# sourceMappingURL=dbbdfb320c5007a40fa91453221d77dae72f3b83-0576a350ae2ad1b49cac.js.map