PageSourceSearch

https://newradio.ru/_next/static/chunks/559-859251842b0f614a.js

js newradio.ru collected 2026-10-02 07:46:32 UTC 44,795 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[559],{368:(e,t,i)=>{i.d(t,{A:()=>n});let n=(0,i(1847).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},2467:(e,t,i)=>{i.d(t,{DX:()=>u});var n,r=i(2115),o=i(4446),s=i(5155),l=Symbol.for("react.lazy"),a=(n||(n=i.t(r,2)))[" use ".trim().toString()];function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===l&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var u=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:i,...n}=e;if(c(i)&&"function"==typeof a&&(i=a(i._payload)),r.isValidElement(i)){var s;let e,l,a=(s=i,(l=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(l=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),c=function(e,t){let i={...t};for(let n in t){let r=e[n],o=t[n];/^on[A-Z]/.test(n)?r&&o?i[n]=(...e)=>{let t=o(...e);return r(...e),t}:r&&(i[n]=r):"style"===n?i[n]={...r,...o}:"className"===n&&(i[n]=[r,o].filter(Boolean).join(" "))}return{...e,...i}}(n,i.props);return i.type!==r.Fragment&&(c.ref=t?(0,o.t)(t,a):a),r.cloneElement(i,c)}return r.Children.count(i)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),i=r.forwardRef((e,i)=>{let{children:n,...o}=e;c(n)&&"function"==typeof a&&(n=a(n._payload));let l=r.Children.toArray(n),u=l.find(d);if(u){let e=u.props.children,n=l.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...o,ref:i,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,s.jsx)(t,{...o,ref:i,children:n})});return i.displayName=`${e}.Slot`,i}("Slot"),f=Symbol("radix.slottable");function d(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===f}},3101:(e,t,i)=>{i.d(t,{F:()=>s});var n=i(2821);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=n.$,s=(e,t)=>i=>{var n;if((null==t?void 0:t.variants)==null)return o(e,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:s,defaultVariants:l}=t,a=Object.keys(s).map(e=>{let t=null==i?void 0:i[e],n=null==l?void 0:l[e];if(null===t)return null;let o=r(t)||r(n);return s[e][o]}),c=i&&Object.entries(i).reduce((e,t)=>{let[i,n]=t;return void 0===n||(e[i]=n),e},{});return o(e,a,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:i,className:n,...r}=t;return Object.entries(r).every(e=>{let[t,i]=e;return Array.isArray(i)?i.includes({...l,...c}[t]):({...l,...c})[t]===i})?[...e,i,n]:e},[]),null==i?void 0:i.class,null==i?void 0:i.className)}},7937:(e,t,i)=>{i.d(t,{A:()=>n});let n=(0,i(1847).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},8072:(e,t,i)=>{i.d(t,{A:()=>A});var n=i(2115);function r(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let i=Object.keys(e),n=Object.keys(t);return i.length===n.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&i.every(i=>{let n=e[i],s=t[i];return"function"==typeof n?`${n}`==`${s}`:r(n)&&r(s)?o(n,s):n===s})}function s(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function l(e){return"number"==typeof e}function a(e){return"string"==typeof e}function c(e){return"boolean"==typeof e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function f(e){return Math.abs(e)}function d(e){return Math.sign(e)}function h(e){return g(e).map(Number)}function p(e){return e[v(e)]}function v(e){return Math.max(0,e.length-1)}function m(e,t=0){return Array.from(Array(e),(e,i)=>t+i)}function g(e){return Object.keys(e)}function b(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function y(){let e=[],t={add:function(i,n,r,o={passive:!0}){let s;return"addEventListener"in i?(i.addEventListener(n,r,o),s=()=>i.removeEventListener(n,r,o)):(i.addListener(r),s=()=>i.removeListener(r)),e.push(s),t},clear:function(){e=e.filter(e=>e())}};return t}function x(e=0,t=0){let i=f(e-t);function n(i){return i<e||i>t}return{length:i,max:t,min:e,constrain:function(i){return n(i)?i<e?e:t:i},reachedAny:n,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return i?e-i*Math.ceil((e-t)/i):e}}}function E(e){let t=e;function i(e){return l(e)?e:e.get()}return{get:function(){return t},set:function(e){t=i(e)},add:function(e){t+=i(e)},subtract:function(e){t-=i(e)}}}function S(e,t){let i="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},n=t.style,r=null,o=!1;return{clear:function(){!o&&(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(o)return;let s=Math.round(100*e.direction(t))/100;s!==r&&(n.transform=i(s),r=s)},toggleActive:function(e){o=!e}}}let w={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 O(e,t,i){let n,r,o,s,A,k=e.ownerDocument,N=k.defaultView,M=function(e){function t(e,t){return function e(t,i){return[t,i].reduce((t,i)=>
1(g(i).forEach(n=>{let r=t[n],o=i[n],s=u(r)&&u(o);t[n]=s?e(r,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(i){let n=i.breakpoints||{},r=g(n).filter(t=>e.matchMedia(t).matches).map(e=>n[e]).reduce((e,i)=>t(e,i),{});return t(i,r)},optionsMediaQueries:function(t){return t.map(e=>g(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(N),W=(A=[],{init:function(e,t){return(A=t.filter(({options:e})=>!1!==M.optionsAtMedia(e).active)).forEach(t=>t.init(e,M)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){A=A.filter(e=>e.destroy())}}),z=y(),L=function(){let e,t={},i={init:function(t){e=t},emit:function(n){return(t[n]||[]).forEach(t=>t(e,n)),i},off:function(e,n){return t[e]=(t[e]||[]).filter(e=>e!==n),i},on:function(e,n){return t[e]=(t[e]||[]).concat([n]),i},clear:function(){t={}}};return i}(),{mergeOptions:D,optionsAtMedia:R,optionsMediaQueries:C}=M,{on:T,off:j,emit:V}=L,P=!1,I=D(w,O.globalOptions),H=D(I),F=[];function B(t,i){if(P)return;H=R(I=D(I,t)),F=i||F;let{container:u,slides:w}=H;o=(a(u)?e.querySelector(u):u)||e.children[0];let O=a(w)?o.querySelectorAll(w):w;s=[].slice.call(O||o.children),n=function t(i){let n=function(e,t,i,n,r,o,s){let u,w,{align:O,axis:A,direction:k,startIndex:N,loop:M,duration:W,dragFree:z,dragThreshold:L,inViewThreshold:D,slidesToScroll:R,skipSnaps:C,containScroll:T,watchResize:j,watchSlides:V,watchDrag:P,watchFocus:I}=o,H={measure:function(e){let{offsetTop:t,offsetLeft:i,offsetWidth:n,offsetHeight:r}=e;return{top:t,right:i+n,bottom:t+r,left:i,width:n,height:r}}},F=H.measure(t),B=i.map(H.measure),_=function(e,t){let i="rtl"===t,n="y"===e,r=!n&&i?-1:1;return{scroll:n?"y":"x",cross:n?"x":"y",startEdge:n?"top":i?"right":"left",endEdge:n?"bottom":i?"left":"right",measureSize:function(e){let{height:t,width:i}=e;return n?t:i},direction:function(e){return e*r}}}(A,k),q=_.measureSize(F),X={measure:function(e){return e/100*q}},Y=function(e,t){let i={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(n,r){return a(e)?i[e](n):e(t,n,r)}}}(O,q),$=!M&&!!T,{slideSizes:U,slideSizesWithGaps:Z,startGap:J,endGap:Q}=function(e,t,i,n,r,o){let{measureSize:s,startEdge:l,endEdge:a}=e,c=i[0]&&r,u=function(){if(!c)return 0;let e=i[0];return f(t[l]-e[l])}(),d=c?parseFloat(o.getComputedStyle(p(n)).getPropertyValue(`margin-${a}`)):0,h=i.map(s),m=i.map((e,t,i)=>{let n=t===v(i);return t?n?h[t]+d:i[t+1][l]-e[l]:h[t]+u}).map(f);return{slideSizes:h,slideSizesWithGaps:m,startGap:u,endGap:d}}(_,F,B,i,M||!!T,r),G=function(e,t,i,n,r,o,s,a,c){let{startEdge:u,endEdge:d,direction:m}=e,g=l(i);return{groupSlides:function(e){return g?h(e).filter(e=>e%i==0).map(t=>e.slice(t,t+i)):e.length?h(e).reduce((i,l,c)=>{let h=p(i)||0,g=l===v(e),b=r[u]-o[h][u],y=r[u]-o[l][d],x=n||0!==h?0:m(s),E=f(y-(!n&&g?m(a):0)-(b+x));return c&&E>t+2&&i.push(l),g&&i.push(e.length),i},[]).map((t,i,n)=>{let r=Math.max(n[i-1]||0);return e.slice(r,t)}):[]}}}(_,q,R,M,F,B,J,Q,0),{snaps:K,snapsAligned:ee}=function(e,t,i,n,r){let{startEdge:o,endEdge:s}=e,{groupSlides:l}=r,a=l(n).map(e=>p(e)[s]-e[0][o]).map(f).map(t.measure),c=n.map(e=>i[o]-e[o]).map(e=>-f(e)),u=l(c).map(e=>e[0]).map((e,t)=>e+a[t]);return{snaps:c,snapsAligned:u}}(_,Y,F,B,G),et=-p(K)+p(Z),{snapsContained:ei,scrollContainLimit:en}=function(e,t,i,n,r){let o=x(-t+e,0),s=i.map((e,t)=>{let{min:n,max:r}=o,s=o.constrain(e),l=t===v(i);return t?l||function(e,t){return 1>=f(e-t)}(n,s)?n:function(e,t){return 1>=f(e-t)}(r,s)?r:s:r}).map(e=>parseFloat(e.toFixed(3))),l=function(){let e=s[0],t=p(s);return x(s.lastIndexOf(e),s.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===n)return s;let{min:i,max:r}=l;return s.slice(i,r)}(),scrollContainLimit:l}}(q,et,ee,T,0),er=$?ei:ee,{limit:eo}=function(e,t,i){let n=t[0];return{limit:x(i?n-e:p(t),n)}}(et,er,M),es=function e(t,i,n){let{constrain:r}=x(0,t),o=t+1,s=l(i);function l(e){return n?f((o+e)%o):r(e)}function a(){return e(t,s,n)}let c={get:function(){return s},set:function(e){return s=l(e),c},add:function(e){return a().set(s+e)},clone:a};return c}(v(er),N,M),el=es.clone(),ea=h(i),ec=function(e,t,i,n){let r=y(),o=1e3/60,s=null,l=0,a=0;function c(e){if(!a)return;s||(s=e,i(),i());let r=e-s;for(s=e,l+=r;l>=o;)i(),l-=o;n(l/o),a&&(a=t.requestAnimationFrame(c))}function u(){t.cancelAnimationFrame(a),s=null,l=0,a=0}return{init:function(){r.add(e,"visibilitychange",()=>{e.hidden&&(s=null,l=0)})},destroy:function(){u(),r.clear()},start:function(){a||(a=t.requestAnimationFrame(c))},stop:u,update:i,render:n}}(n,r,()=>(({dragHandler:e,scrollBody:t,scrollBounds:i,options:{loop:n}})=>
1{n||i.constrain(e.pointerDown()),t.seek()})(ew),e=>(({scrollBody:e,translate:t,location:i,offsetLocation:n,previousLocation:r,scrollLooper:o,slideLooper:s,dragHandler:l,animation:a,eventHandler:c,scrollBounds:u,options:{loop:f}},d)=>{let h=e.settled(),p=!u.shouldConstrain(),v=f?h:h&&p,m=v&&!l.pointerDown();m&&a.stop();let g=i.get()*d+r.get()*(1-d);n.set(g),f&&(o.loop(e.direction()),s.loop()),t.to(n.get()),m&&c.emit("settle"),v||c.emit("scroll")})(ew,e)),eu=er[es.get()],ef=E(eu),ed=E(eu),eh=E(eu),ep=E(eu),ev=function(e,t,i,n,r,o){let s=0,l=0,a=r,c=.68,u=e.get(),h=0;function p(e){return a=e,m}function v(e){return c=e,m}let m={direction:function(){return l},duration:function(){return a},velocity:function(){return s},seek:function(){let t=n.get()-e.get(),r=0;return a?(i.set(e),s+=t/a,s*=c,u+=s,e.add(s),r=u-h):(s=0,i.set(n),e.set(n),r=t),l=d(r),h=u,m},settled:function(){return .001>f(n.get()-t.get())},useBaseFriction:function(){return v(.68)},useBaseDuration:function(){return p(r)},useFriction:v,useDuration:p};return m}(ef,eh,ed,ep,W,.68),em=function(e,t,i,n,r){let{reachedAny:o,removeOffset:s,constrain:l}=n;function a(e){return e.concat().sort((e,t)=>f(e)-f(t))[0]}function c(t,n){let r=[t,t+i,t-i];if(!e)return t;if(!n)return a(r);let o=r.filter(e=>d(e)===n);return o.length?a(o):p(r)-i}return{byDistance:function(i,n){let a=r.get()+i,{index:u,distance:d}=function(i){let n=e?s(i):l(i),{index:r}=t.map((e,t)=>({diff:c(e-n,0),index:t})).sort((e,t)=>f(e.diff)-f(t.diff))[0];return{index:r,distance:n}}(a),h=!e&&o(a);if(!n||h)return{index:u,distance:i};let p=i+c(t[u]-d,0);return{index:u,distance:p}},byIndex:function(e,i){let n=c(t[e]-r.get(),i);return{index:e,distance:n}},shortcut:c}}(M,er,et,eo,ep),eg=function(e,t,i,n,r,o,s){function l(r){let l=r.distance,a=r.index!==t.get();
1o.add(l),l&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),a&&(i.set(t.get()),t.set(r.index),s.emit("select"))}return{distance:function(e,t){l(r.byDistance(e,t))},index:function(e,i){let n=t.clone().set(e);l(r.byIndex(n.get(),i))}}}(ec,es,el,ev,em,ep,s),eb=function(e){let{max:t,length:i}=e;return{get:function(e){return i?-((e-t)/i):0}}}(eo),ey=y(),ex=function(e,t,i,n){let r,o={},s=null,l=null,a=!1;return{init:function(){r=new IntersectionObserver(e=>{a||(e.forEach(e=>{o[t.indexOf(e.target)]=e}),s=null,l=null,i.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(e=>r.observe(e))},destroy:function(){r&&r.disconnect(),a=!0},get:function(e=!0){if(e&&s)return s;if(!e&&l)return l;let t=g(o).reduce((t,i)=>{let n=parseInt(i),{isIntersecting:r}=o[n];return(e&&r||!e&&!r)&&t.push(n),t},[]);return e&&(s=t),e||(l=t),t}}}(t,i,s,D),{slideRegistry:eE}=function(e,t,i,n,r,o){let{groupSlides:s}=r,{min:l,max:a}=n;return{slideRegistry:function(){let n=s(o);return 1===i.length?[o]:e&&"keepSnaps"!==t?n.slice(l,a).map((e,t,i)=>{let n=t===v(i);return t?n?m(v(o)-p(i)[0]+1,p(i)[0]):e:m(p(i[0])+1)}):n}()}}($,T,er,en,G,ea),eS=function(e,t,i,n,r,o,s,a){let u={passive:!0,capture:!0},f=0;function d(e){"Tab"===e.code&&(f=new Date().getTime())}return{init:function(h){a&&(o.add(document,"keydown",d,!1),t.forEach((t,d)=>{o.add(t,"focus",t=>{(c(a)||a(h,t))&&function(t){if(new Date().getTime()-f>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;let o=i.findIndex(e=>e.includes(t));l(o)&&(r.useDuration(0),n.index(o,0),s.emit("slideFocus"))}(d)},u)}))}}}(e,i,eE,eg,ev,ey,s,I),ew={ownerDocument:n,ownerWindow:r,eventHandler:s,containerRect:F,slideRects:B,animation:ec,axis:_,dragHandler:function(e,t,i,n,r,o,s,l,a,u,h,p,v,m,g,E,S,w,O){let{cross:A,direction:k}=e,N=["INPUT","SELECT","TEXTAREA"],M={passive:!1},W=y(),z=y(),L=x(50,225).constrain(m.measure(20)),D={mouse:300,touch:400},R={mouse:500,touch:600},C=g?43:25,T=!1,j=0,V=0,P=!1,I=!1,H=!1,F=!1;function B(e){if(!b(e,n)&&e.touches.length>=2)return _(e);
1let t=o.readPoint(e),i=o.readPoint(e,A),s=f(t-j),a=f(i-V);if(!I&&!F&&(!e.cancelable||!(I=s>a)))return _(e);let c=o.pointerMove(e);s>E&&(H=!0),u.useFriction(.3).useDuration(.75),l.start(),r.add(k(c)),e.preventDefault()}function _(e){let t=h.byDistance(0,!1).index!==p.get(),i=o.pointerUp(e)*(g?R:D)[F?"mouse":"touch"],n=function(e,t){let i=p.add(-1*d(e)),n=h.byDistance(e,!g).distance;return g||f(e)<L?n:S&&t?.5*n:h.byIndex(i.get(),0).distance}(k(i),t),r=function(e,t){var i,n;if(0===e||0===t||f(e)<=f(t))return 0;let r=(i=f(e),n=f(t),f(i-n));return f(r/e)}(i,n);I=!1,P=!1,z.clear(),u.useDuration(C-10*r).useFriction(.68+r/50),a.distance(n,!g),F=!1,v.emit("pointerUp")}function q(e){H&&(e.stopPropagation(),e.preventDefault(),H=!1)}return{init:function(e){O&&W.add(t,"dragstart",e=>e.preventDefault(),M).add(t,"touchmove",()=>void 0,M).add(t,"touchend",()=>void 0).add(t,"touchstart",l).add(t,"mousedown",l).add(t,"touchcancel",_).add(t,"contextmenu",_).add(t,"click",q,!0);function l(l){(c(O)||O(e,l))&&function(e){let l=b(e,n);if((F=l,H=g&&l&&!e.buttons&&T,T=f(r.get()-s.get())>=2,!l||0===e.button)&&!function(e){let t=e.nodeName||"";return N.includes(t)}(e.target)){P=!0,o.pointerDown(e),u.useFriction(0).useDuration(0),r.set(s);let n=F?i:t;z.add(n,"touchmove",B,M).add(n,"touchend",_).add(n,"mousemove",B,M).add(n,"mouseup",_),j=o.readPoint(e),V=o.readPoint(e,A),v.emit("pointerDown")}}(l)}},destroy:function(){W.clear(),z.clear()},pointerDown:function(){return P}}}(_,e,n,r,ep,function(e,t){let i,n;function r(e){return e.timeStamp}function o(i,n){let r=n||e.scroll,o=`client${"x"===r?"X":"Y"}`;return(b(i,t)?i:i.touches[0])[o]}return{pointerDown:function(e){return i=e,n=e,o(e)},pointerMove:function(e){let t=o(e)-o(n),s=r(e)-r(i)>170;return n=e,s&&(i=e),t},pointerUp:function(e){if(!i||!n)return 0;let t=o(n)-o(i),s=r(e)-r(i),l=r(e)-r(n)>170,a=t/s;return s&&!l&&f(a)>.1?a:0},readPoint:o}}(_,r),ef,ec,eg,ev,em,es,s,X,z,L,C,0,P),eventStore:ey,percentOfView:X,index:es,indexPrevious:el,limit:eo,location:ef,offsetLocation:eh,previousLocation:ed,options:o,resizeHandler:function(e,t,i,n,r,o,s){let l,a,u=[e].concat(n),d=[],h=!1;function p(e){return r.measureSize(s.measure(e))}return{init:function(r){o&&(a=p(e),d=n.map(p),l=new ResizeObserver(i=>{(c(o)||o(r,i))&&function(i){for(let o of i){if(h)return;let i=o.target===e,s=n.indexOf(o.target),l=i?a:d[s];if(f(p(i?e:n[s])-l)>=.5){r.reInit(),t.emit("resize");break}}}(i)}),i.requestAnimationFrame(()=>{u.forEach(e=>l.observe(e))}))},destroy:function(){h=!0,l&&l.disconnect()}}}(t,s,r,i,_,j,H),scrollBody:ev,scrollBounds:function(e,t,i,n,r){let o=r.measure(10),s=r.measure(50),l=x(.1,.99),a=!1;function c(){return!a&&!!e.reachedAny(i.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:c,constrain:function(r){if(!c())return;let a=e.reachedMin(t.get())?"min":"max",u=f(e[a]-t.get()),d=i.get()-t.get(),h=l.constrain(u/s);i.subtract(d*h),!r&&f(d)<o&&(i.set(e.constrain(i.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(e){a=!e}}}(eo,eh,ep,ev,X),scrollLooper:function(e,t,i,n){let{reachedMin:r,reachedMax:o}=x(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?o(i.get()):-1===t&&r(i.get())))return;let s=-1*t*e;n.forEach(e=>e.add(s))}}}(et,eo,eh,[ef,eh,ed,ep]),scrollProgress:eb,scrollSnapList:er.map(eb.get),scrollSnaps:er,scrollTarget:em,scrollTo:eg,slideLooper:function(e,t,i,n,r,o,s,l,a){let c=h(r),u=h(r).reverse(),f=v(p(u,s[0]),i,!1).concat(v(p(c,t-s[0]-1),-i,!0));function d(e,t){return e.reduce((e,t)=>e-r[t],t)}function p(e,t){return e.reduce((e,i)=>d(e,t)>0?e.concat([i]):e,[])}function v(r,s,c){let u=o.map((e,i)=>({start:e-n[i]+.5+s,end:e+t-.5+s}));return r.map(t=>{let n=c?0:-i,r=c?i:0,o=u[t][c?"end":"start"];return{index:t,loopPoint:o,slideLocation:E(-1),translate:S(e,a[t]),target:()=>l.get()>o?n:r}})}return{canLoop:function(){return f.every(({index:e})=>.1>=d(c.filter(t=>t!==e),t))},clear:function(){f.forEach(e=>e.translate.clear())},loop:function(){f.forEach(e=>{let{target:t,translate:i,slideLocation:n}=e,r=t();r!==n.get()&&(i.to(r),n.set(r))})},loopPoints:f}}(_,q,et,U,Z,K,er,eh,i),slideFocus:eS,slidesHandler:(w=!1,{init:function(e){V&&(u=new MutationObserver(t=>{!w&&(c(V)||V(e,t))&&function(t){for(let i of t)if("childList"===i.type){e.reInit(),s.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){u&&u.disconnect(),w=!0}}),slidesInView:ex,slideIndexes:ea,slideRegistry:eE,slidesToScroll:G,target:ep,translate:S(_,t)};return ew}(e,o,s,k,N,i,L);return i.loop&&!n.slideLooper.canLoop()?t(Object.assign({},i,{loop:!1})):n}(H),C([I,...F.map(({options:e})=>
1e)]).forEach(e=>z.add(e,"change",_)),H.active&&(n.translate.to(n.location.get()),n.animation.init(),n.slidesInView.init(),n.slideFocus.init($),n.eventHandler.init($),n.resizeHandler.init($),n.slidesHandler.init($),n.options.loop&&n.slideLooper.loop(),o.offsetParent&&s.length&&n.dragHandler.init($),r=W.init($,F))}function _(e,t){let i=Y();q(),B(D({startIndex:i},e),t),L.emit("reInit")}function q(){n.dragHandler.destroy(),n.eventStore.clear(),n.translate.clear(),n.slideLooper.clear(),n.resizeHandler.destroy(),n.slidesHandler.destroy(),n.slidesInView.destroy(),n.animation.destroy(),W.destroy(),z.clear()}function X(e,t,i){H.active&&!P&&(n.scrollBody.useBaseFriction().useDuration(!0===t?0:H.duration),n.scrollTo.index(e,i||0))}function Y(){return n.index.get()}let $={canScrollNext:function(){return n.index.add(1).get()!==Y()},canScrollPrev:function(){return n.index.add(-1).get()!==Y()},containerNode:function(){return o},internalEngine:function(){return n},destroy:function(){P||(P=!0,z.clear(),q(),L.emit("destroy"),L.clear())},off:j,on:T,emit:V,plugins:function(){return r},previousScrollSnap:function(){return n.indexPrevious.get()},reInit:_,rootNode:function(){return e},scrollNext:function(e){X(n.index.add(1).get(),e,-1)},scrollPrev:function(e){X(n.index.add(-1).get(),e,1)},scrollProgress:function(){return n.scrollProgress.get(n.offsetLocation.get())},scrollSnapList:function(){return n.scrollSnapList},scrollTo:X,selectedScrollSnap:Y,slideNodes:function(){return s},slidesInView:function(){return n.slidesInView.get()},slidesNotInView:function(){return n.slidesInView.get(!1)}};return B(t,i),setTimeout(()=>L.emit("init"),0),$}function A(e={},t=[]){let i=(0,n.useRef)(e),r=(0,n.useRef)(t),[l,a]=(0,n.useState)(),[c,u]=(0,n.use
1State)(),f=(0,n.useCallback)(()=>{l&&l.reInit(i.current,r.current)},[l]);return(0,n.useEffect)(()=>{o(i.current,e)||(i.current=e,f())},[e,f]),(0,n.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let i=s(e),n=s(t);return i.every((e,t)=>o(e,n[t]))}(r.current,t)&&(r.current=t,f())},[t,f]),(0,n.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&c){O.globalOptions=A.globalOptions;let e=O(c,i.current,r.current);return a(e),()=>e.destroy()}a(void 0)},[c,a]),[u,l]}O.globalOptions=void 0,A.globalOptions=void 0},9265:(e,t,i)=>{i.d(t,{A:()=>Y});var n=i(2115);let r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var o="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,l=o||s||Function("return this")();let a=function(){return l.Date.now()};var c=/\s/;let u=function(e){for(var t=e.length;t--&&c.test(e.charAt(t)););return t};var f=/^\s+/,d=l.Symbol,h=Object.prototype,p=h.hasOwnProperty,v=h.toString,m=d?d.toStringTag:void 0;let g=function(e){var t=p.call(e,m),i=e[m];try{e[m]=void 0;var n=!0}catch(e){}var r=v.call(e);return n&&(t?e[m]=i:delete e[m]),r};var b=Object.prototype.toString,y=d?d.toStringTag:void 0;let x=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":y&&y in Object(e)?g(e):b.call(e)},E=function(e){return"symbol"==typeof e||null!=e&&"object"==typeof e&&"[object Symbol]"==x(e)};var S=0/0,w=/^[-+]0x[0-9a-f]+$/i,O=/^0b[01]+$/i,A=/^0o[0-7]+$/i,k=parseInt;let N=function(e){if("number"==typeof e)return e;if(E(e))return S;if(r(e)){var t,i="function"==typeof e.valueOf?e.valueOf():e;e=r(i)?i+"":i}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,u(t)+1).replace(f,""):t;var n=O.test(e);return n||A.test(e)?k(e.slice(2),n?2:8):w.test(e)?S:+e};var M=Math.max,W=Math.min;let z=function(e,t,i){var n,o,s,l,c,u,f=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var i=n,r=o;return n=o=void 0,f=t,l=e.apply(r,i)}function m(e){var i=e-u,n=e-f;return void 0===u||i>=t||i<0||h&&n>=s}function g(){var e,i,n,r=a();if(m(r))return b(r);c=setTimeout(g,(e=r-u,i=r-f,n=t-e,h?W(n,s-i):n))}function b(e){return(c=void 0,p&&n)?v(e):(n=o=void 0,l)}function y(){var e,i=a(),r=m(i);if(n=arguments,o=this,u=i,r){if(void 0===c)return f=e=u,c=setTimeout(g,t),d?v(e):l;if(h)return clearTimeout(c),c=setTimeout(g,t),v(u)}return void 0===c&&(c=setTimeout(g,t)),l}return t=N(t)||0,r(i)&&(d=!!i.leading,s=(h="maxWait"in i)?M(N(i.maxWait)||0,t):s,p="trailing"in i?!!i.trailing:p),y.cancel=function(){void 0!==c&&clearTimeout(c),f=0,n=u=o=c=void 0},y.flush=function(){return void 0===c?l:b(a())},y},L=function(e,t,i){var n=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return r(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),z(e,t,{leading:n,maxWait:t,trailing:o})};var D=function(){return(D=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function R(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function C(e){return e&&e.ownerDocument?e.ownerDocument:document}var T=function(e){return Array.prototype.reduce.call(e,function(e,t){var i=t.name.match(/data-simplebar-(.+)/);if(i){var n=i[1].replace(/\W+(.)/g,function(e,t){return t.toUpperCase()});switch(t.value){case"true":case void 0:e[n]=!0;break;case"false":e[n]=!1;break;default:e[n]=t.value}}return e},{})};function j(e,t){var i;e&&(i=e.classList).add.apply(i,t.split(" "))}function V(e,t){e&&t.split(" ").forEach(function(t){e.classList.remove(t)})}function P(e){return".".concat(e.split(" ").join("."))}var I=!!("undefined"!=typeof window&&window.document&&window.document.createElement),H=Object.freeze({__proto__:null,addClasses:j,canUseDOM:I,classNamesToQuery:P,getElementDocument:C,getElementWindow:R,getOptions:T,removeClasses:V}),F=null,B=null;function _(){if(null===F){if("undefined"==typeof document)return F=0;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var i=t.getBoundingClientRect().right;e.removeChild(t),F=i}return F}I&&window.addEventListener("resize",function(){B!==window.devicePixelRatio&&(B=window.devicePixelRatio,F=null)});var q=function(){function e(t,i){void 0===i&&(i={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var e=R(n.el);n.scrollXTicking||(e.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(e.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,j(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){V(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(j(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){V(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(e){n.mouseX=e.clientX,n.mouseY=e.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(e){var t,i;n.axis.x.track.el&&n.axis.y.track.el&&n.axis.x.scrollbar.el&&n.axis.y.scrollbar.el&&(n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(t=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(i=n.isWithinBounds(n.axis.y.track.rect)),(t||i)&&(e.stopPropagation(),"pointerdown"===e.type&&"touch"!==e.pointerType&&(t&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(e,"x"):n.onTrackClick(e,"x")),i&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(e,"y"):n.onTrackClick(e,"y")))))},this.drag=function(t){if(n.draggedAxis&&n.contentWrapperEl){var i,r,o,s,l,a,c,u,f,d,h,p=n.axis[n.draggedAxis].track,v=null!=(r=null==(i=p.rect)?void 0:i[n.axis[n.draggedAxis].sizeAttr])?r:0,m=n.axis[n.draggedAxis].scrollbar,g=null!=(s=null==(o=n.contentWrapperEl)?void 0:o[n.axis[n.draggedAxis].scrollSizeAttr])?s:0,b=parseInt(null!=(a=null==(l=n.elStyles)?void 0:l[n.axis[n.draggedAxis].sizeAttr])?a:"0px",10);t.preventDefault(),t.stopPropagation();var y=("y"===n.draggedAxis?t.pageY:t.pageX)-(null!=(u=null==(c=p.rect)?void 0:c[n.axis[n.draggedAxis].offsetAttr])?u:0)-n.axis[n.draggedAxis].dragOffset,x=(y="x"===n.draggedAxis&&n.isRtl?(null!=(d=null==(f=p.rect)?void 0:f[n.axis[n.draggedAxis].sizeAttr])?d:0)-m.size-y:y)/(v-m.size)*(g-b);"x"===n.draggedAxis&&n.isRtl&&(x=(null==(h=e.getRtlHelpers())?void 0:h.isScrollingToNegative)?-x:x),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=x}},this.onEndDrag=function(e){n.isDragging=!1;var t=C(n.el),i=R(n.el);e.preventDefault(),e.stopPropagation(),V(n.el,n.classNames.dragging),n.onStopScrolling(),t.removeEventListener("mousemove",n.drag,!0),t.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=i.setTimeout(function(){t.removeEventListener("click",n.preventClick,!0),t.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=t,this.options=D(D({},e.defaultOptions),i),this.classNames=D(D({},e.defaultOptions.classNames),i.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},"object"!=typeof this.el||!this.el.nodeName)throw Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=L(this._onMouseMove,64),this.onWindowResize=z(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=z(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=z(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var i=t.firstElementChild,n=null==i?void 0:i.firstElementChild;if(!n)return null;document.body.appendChild(i),i.scrollLeft=0;var r=e.getOffset(i),o=e.getOffset(n);i.scrollLeft=-999;var s=e.getOffset(n);return document.body.removeChild(i),e.rtlHelpers={isScrollOriginAtZero:r.left!==o.left,isScrollingToNegative:o.left!==s.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{if(this.contentWrapperEl&&"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style)return 0;return _()}catch(e){return _()}},e.getOffset=function(e){var t=e.getBoundingClientRect(),i=C(e),n=R(e);return{top:t.top+(n.pageYOffset||i.documentElement.scrollTop),left
1:t.left+(n.pageXOffset||i.documentElement.scrollLeft)}},e.prototype.init=function(){I&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var e,t;this.wrapperEl=this.el.querySelector(P(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(P(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(P(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(P(this.classNames.offset)),this.maskEl=this.el.querySelector(P(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,P(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(P(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(P(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(P(this.classNames.track)).concat(P(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(P(this.classNames.track)).concat(P(this.classNames.vertical))),this.axis.x.scrollbar.el=(null==(e=this.axis.x.track.el)?void 0:e.querySelector(P(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=(null==(t=this.axis.y.track.el)?void 0:t.querySelector(P(this.classNames.scrollbar)))||null,this.options.autoHide||(j(this.axis.x.scrollbar.el,this.classNames.visible),j(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var e,t=this,i=R(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),null==(e=this.contentWrapperEl)||e.addEventListener("scroll",this.onScroll),i.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var n=!1,r=i.ResizeObserver||ResizeObserver;this.resizeObserver=new r(function(){n&&i.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),i.requestAnimationFrame(function(){n=!0})}this.mutationObserver=new i.MutationObserver(function(){i.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var e=R(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.contentEl.offsetWidth,i=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1||t>0,r=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,a=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=i?"auto":"100%",this.placeholderEl.style.width=n?"".concat(t||a,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=0!==t&&a>t,this.axis.y.isOverflowing=l>c,this.axis.x.isOverflowing="hidden"!==o&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==s&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&a>r-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>c-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(e){if(void 0===e&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var t,i,n,r=this.contentEl[this.axis[e].scrollSizeAttr],o=null!=(i=null==(t=this.axis[e].track.el)?void 0:t[this.axis[e].offsetSizeAttr])?i:0;return n=Math.max(~~(o/r*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(n=Math.min(n,this.options.scrollbarMaxSize)),n},e.prototype.positionScrollbar=function(t){void 0===t&&(t="y");var i,n,r,o=this.axis[t].scrollbar;if(this.axis[t].isOverflowing&&this.contentWrapperEl&&o.el&&this.elStyles){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],l=(null==(i=this.axis[t].track.el)?void 0:i[this.axis[t].offsetSizeAttr])||0,a=parseInt(this.elStyles[this.axis[t].sizeAttr],10),c=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];c="x"===t&&this.isRtl&&(null==(n=e.getRtlHelpers())?void 0:n.isScrollOriginAtZero)?-c:c,"x"===t&&this.isRtl&&(c=(null==(r=e.getRtlHelpers())?void 0:r.isScrollingToNegative)?c:-c);var u=c/(s-a),f=~~((l-o.size)*u);
1f="x"===t&&this.isRtl?-f+(l-o.size):f,o.el.style.transform="x"===t?"translate3d(".concat(f,"px, 0, 0)"):"translate3d(0, ".concat(f,"px, 0)")}},e.prototype.toggleTrackVisibility=function(e){void 0===e&&(e="y");var t=this.axis[e].track.el,i=this.axis[e].scrollbar.el;t&&i&&this.contentWrapperEl&&(this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?i.style.display="block":i.style.display="none")},e.prototype.showScrollbar=function(e){void 0===e&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(j(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(e){void 0===e&&(e="y"),!this.isDragging&&this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(V(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(e){void 0===e&&(e="y");var t=this.axis[e];t.track.el&&t.scrollbar.el&&(t.track.rect=t.track.el.getBoundingClientRect(),t.scrollbar.rect=t.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(t.track.rect)?(this.showScrollbar(e),j(t.track.el,this.classNames.hover),this.isWithinBounds(t.scrollbar.rect)?j(t.scrollbar.el,this.classNames.hover):V(t.scrollbar.el,this.classNames.hover)):(V(t.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},e.prototype.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),V(this.axis[e].track.el,this.classNames.hover),V(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},e.prototype.onDragStart=function(e,t){void 0===t&&(t="y"),this.isDragging=!0;var i,n=C(this.el),r=R(this.el),o=this.axis[t].scrollbar,s="y"===t?e.pageY:e.pageX;this.axis[t].dragOffset=s-((null==(i=o.rect)?void 0:i[this.axis[t].offsetAttr])||0),this.draggedAxis=t,j(this.el,this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(e,t){var i,n,r,o,s=this;void 0===t&&(t="y");var l=this.axis[t];if(this.options.clickOnTrack&&l.scrollbar.el&&this.contentWrapperEl){e.preventDefault();var a=R(this.el);this.axis[t].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var c=null!=(n=null==(i=this.axis[t].scrollbar.rect)?void 0:i[this.axis[t].offsetAttr])?n:0,u=parseInt(null!=(o=null==(r=this.elStyles)?void 0:r[this.axis[t].sizeAttr])?o:"0px",10),f=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],d=("y"===t?this.mouseY-c:this.mouseX-c)<0?-1:1,h=-1===d?f-u:f+u,p=function(){s.contentWrapperEl&&(-1===d?f>h&&(f-=40,s.contentWrapperEl[s.axis[t].scrollOffsetAttr]=f,a.requestAnimationFrame(p)):f<h&&(f+=40,s.contentWrapperEl[s.axis[t].scrollOffsetAttr]=f,a.requestAnimationFrame(p)))};p()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var e=R(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},e.prototype.findChild=function(e,t){var i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(e){return i.call(e,t)})[0]}
1,e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=T,e.helpers=H,e}(),X=function(){return(X=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Y=n.forwardRef(function(e,t){var i=e.children,r=e.scrollableNodeProps,o=void 0===r?{}:r,s=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i}(e,["children","scrollableNodeProps"]),l=n.useRef(),a=n.useRef(),c=n.useRef(),u={},f={};Object.keys(s).forEach(function(e){Object.prototype.hasOwnProperty.call(q.defaultOptions,e)?u[e]=s[e]:f[e]=s[e]});var d=X(X({},q.defaultOptions.classNames),u.classNames),h=X(X({},o),{className:"".concat(d.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:u.tabIndex||q.defaultOptions.tabIndex,role:"region","aria-label":u.ariaLabel||q.defaultOptions.ariaLabel});return n.useEffect(function(){var e;return a.current=h.ref?h.ref.current:a.current,l.current&&(e=new q(l.current,X(X(X({},u),a.current&&{scrollableNode:a.current}),c.current&&{contentNode:c.current})),"function"==typeof t?t(e):t&&(t.current=e)),function(){null==e||e.unMount(),e=null,"function"==typeof t&&t(null)}},[]),n.createElement("div",X({"data-simplebar":"init",ref:l},f),n.createElement("div",{className:d.wrapper},n.createElement("div",{className:d.heightAutoObserverWrapperEl},n.createElement("div",{className:d.heightAutoObserverEl})),n.createElement("div",{className:d.mask},n.createElement("div",{className:d.offset},"function"==typeof i?i({scrollableNodeRef:a,scrollableNodeProps:X(X({},h),{ref:a}),contentNodeRef:c,contentNodeProps:{className:d.contentEl,ref:c}}):n.createElement("div",X({},h),n.createElement("div",{className:d.contentEl},i)))),n.createElement("div",{className:d.placeholder})),n.createElement("div",{className:"".concat(d.track," ").concat(d.horizontal)},n.createElement("div",{className:d.scrollbar})),n.createElement("div",{className:"".concat(d.track," ").concat(d.vertical)},n.createElement("div",{className:d.scrollbar})))});Y.displayName="SimpleBar"}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.