1import{D as e,N as t,b as n}from"./Ssl5WjxV.js";import{i as r}from"./C4CXnTcG.js";import{v as i}from"./DaNbzTdM.js";import{D as a,F as o,O as s,d as c,f as l,g as u,h as d,k as f,l as p,m,u as h,y as g}from"./CJcG5UPG.js";import{a as _,t as v}from"./B02_dSN3.js";import{n as y,r as b,t as x}from"./B_n2FPdC.js";import{i as S,l as C,o as w,r as T,u as E}from"./Bq_TObDB.js";import{t as D}from"./DQud5Z5r.js";import{t as O}from"./BMWb70HJ.js";import{t as k}from"./Dd18eh0-.js";var A=t(e()),j=t(n());function M(e,t,n){let r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=x(t),o;if(t.fakeTransform)o=t.fakeTransform;else{let e=a.getComputedStyle(t);o=e.getPropertyValue(`-webkit-transform`)||e.getPropertyValue(`transform`)}let s=0,c=0;if(o&&o!==`none`&&typeof o==`string`){let e=o.split(`(`)[1].split(`)`)[0].split(`,`);s=parseInt(e[4],10),c=parseInt(e[5],10)}return e===`left`?i?`translateX(${i.right+s-r.left}px)`:`translateX(${a.innerWidth+s-r.left}px)`:e===`right`?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e===`up`?i?`translateY(${i.bottom+c-r.top}px)`:`translateY(${a.innerHeight+c-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function N(e){return typeof e==`function`?e():e}function P(e,t,n){let r=M(e,t,N(n));r&&(t.style.webkitTransform=r,t.style.transform=r)}var F=A.forwardRef(function(e,t){let n=r(),i={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:c,container:l,direction:u=`down`,easing:d=i,in:f,onEnter:m,onEntered:h,onEntering:g,onExit:_,onExited:v,onExiting:y,style:C,timeout:D=a,TransitionComponent:O=w,...k}=e,M=A.useRef(null),N=p(E(c),M,t),F=e=>t=>{e&&(t===void 0?e(M.current):e(M.current,t))},I=F((e,t)=>{P(u,e,l),S(e),m&&m(e,t)}),L=F((e,t)=>{let r=T({timeout:D,style:C,easing:d},{mode:`enter`});e.style.webkitTransition=n.transitions.create(`-webkit-transform`,{...r}),e.style.transition=n.transitions.create(`transform`,{...r}),e.style.webkitTransform=`none`,e.style.transform=`none`,g&&g(e,t)}),R=F(h),z=F(y),B=F(e=>{let t=T({timeout:D,style:C,easing:d},{mode:`exit`});e.style.webkitTransition=n.transitions.create(`-webkit-transform`,t),e.style.transition=n.transitions.create(`transform`,t),P(u,e,l),_&&_(e)}),V=F(e=>{e.style.webkitTransition=``,e.style.transition=``,v&&v(e)}
1),H=e=>{o&&o(M.current,e)},U=A.useCallback(()=>{M.current&&P(u,M.current,l)},[u,l]);return A.useEffect(()=>{if(f||u===`down`||u===`right`)return;let e=b(()=>{M.current&&P(u,M.current,l)}),t=x(M.current);return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[u,f,l]),A.useEffect(()=>{f||U()},[f,U]),(0,j.jsx)(O,{nodeRef:M,onEnter:I,onEntered:R,onEntering:L,onExit:B,onExited:V,onExiting:z,addEndListener:H,appear:s,in:f,timeout:D,...k,children:(e,{ownerState:t,...n})=>A.cloneElement(c,{ref:N,style:{visibility:e===`exited`&&!f?`hidden`:void 0,...C,...c.props.style},...n})})}),I=t(i());function L(e){return s(`MuiDrawer`,e)}a(`MuiDrawer`,[`root`,`docked`,`paper`,`anchorLeft`,`anchorRight`,`anchorTop`,`anchorBottom`,`paperAnchorLeft`,`paperAnchorRight`,`paperAnchorTop`,`paperAnchorBottom`,`paperAnchorDockedLeft`,`paperAnchorDockedRight`,`paperAnchorDockedTop`,`paperAnchorDockedBottom`,`modal`]);var R=(e,t)=>{let{ownerState:n}=e;return[t.root,(n.variant===`permanent`||n.variant===`persistent`)&&t.docked,t.modal]},z=e=>{let{classes:t,anchor:n,variant:r}=e;return g({root:[`root`,`anchor${m(n)}`],docked:[(r===`permanent`||r===`persistent`)&&`docked`],modal:[`modal`],paper:[`paper`,`paperAnchor${m(n)}`,r!==`temporary`&&`paperAnchorDocked${m(n)}`]},L,t)},B=d(v,{name:`MuiDrawer`,slot:`Root`,overridesResolver:R})(l(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),V=d(`div`,{shouldForwardProp:u,name:`MuiDrawer`,slot:`Docked`,skipVariantsResolver:!1,overridesResolver:R})({flex:`0 0 auto`}),H=d(_,{name:`MuiDrawer`,slot:`Paper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`paperAnchor${m(n.anchor)}`],n.variant!==`temporary`&&t[`paperAnchorDocked${m(n.anchor)}`]]}})(l(({theme:e})=>({overflowY:`auto`,display:`flex`,flexDirection:`column`,height:`100%`,flex:`1 0 auto`,zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:`touch`,position:`fixed`,top:0,outline:0,variants:[{props:{anchor:`left`},style:{left:0}},{props:{anchor:`top`},style:{top:0,left:0,right:0,height:`auto`,maxHeight:`100%`}},{props:{anchor:`right`},style:{right:0}},{props:{anchor:`bottom`},style:{top:`auto`,left:0,bottom:0,right:0,height:`auto`,maxHeight:`100%`}},{props:({ownerState:e})=>e.anchor===`left`&&e.variant!==`temporary`,style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`top`&&e.variant!==`temporary`,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`right`&&e.variant!==`temporary`,style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`bottom`&&e.variant!==`temporary`,style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),U={left:`right`,right:`left`,top:`down`,bottom:`up`};function W(e){return[`left`,`right`].includes(e)}function G({direction:e},t){return e===`rtl`&&W(t)?U[t]:t}var ee=A.forwardRef(function(e,t){let n=c({props:e,name:`MuiDrawer`}),i=r(),a=C(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s=`left`,BackdropProps:l,children:u,className:d,elevation:p=16,hideBackdrop:m=!1,ModalProps:{BackdropProps:h,...g}={},onClose:_,open:v=!1,PaperProps:y={},SlideProps:b,TransitionComponent:x,transitionDuration:S=o,variant:w=`temporary`,slots:T={},slotProps:E={},...O}=n,M=A.useRef(!1);A.useEffect(()=>{M.current=!0},[]);let N=G({direction:a?`rtl`:`ltr`},s),P=s,I={...n,anchor:P,elevation:p,open:v,variant:w,...O},L=z(I),R={slots:{transition:x,...T},slotProps:{paper:y,transition:b,...E,backdrop:k(E.backdrop||{...l,...h},{transitionDuration:S})}},[W,ee]=D(`root`,{ref:t,elementType:B,className:f(L.root,L.modal,d),shouldForwardComponentProp:!0,ownerState:I,externalForwardedProps:{...R,...O,...g},additionalProps:{open:v,onClose:_,hideBackdrop:m,slots:{backdrop:R.slots.backdrop},slotProps:{backdrop:R.slotProps.backdrop}}}),[te,K]=D(`paper`,{elementType:H,shouldForwardComponentProp:!0,className:f(L.paper,y.className),ownerState:I,externalForwardedProps:R,additionalProps:{elevation:w===`temporary`?p:0,square:!0}}),[ne,q]=D(`docked`,{elementType:V,ref:t,className:f(L.root,L.docked,d),ownerState:I,externalForwardedProps:R,additionalProps:O}),[re,J]=D(`transition`,{elementType:F,ownerState:I,externalForwardedProps:R,additionalProps:{in:v,direction:U[N],timeout:S,appear:M.current}}),Y=(0,j.jsx)(te,{...K,children:u});if(w===`permanent`)return(0,j.jsx)(ne,{...q,children:Y});let X=(0,j.jsx)(re,{...J,children:Y});return w===`persistent`?(0,j.jsx)(ne,{...q,children:X}):(0,j.jsx)(W,{...ee,children:X})});function te(e){let{children:t,defer:n=!1,fallback:r=null}=e,[i,a]=A.useState(!1);return o(()=>{n||a(!0)},[n]),A.useEffect(()=>{n&&a(!0)},[n]),i?t:r}var K=d(`div`,{shouldForwardProp:u})(l(({theme:e})=>({position:`fixed`,top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1,variants:[{props:{anchor:`left`},style:{right:`auto`}},{props:{anchor:`right`},style:{left:`auto`,right:0}},{props:{anchor:`top`},style:{bottom:`auto`,right:0}},{props:{anchor:`bottom`}
vendor: 4,536 bytes, line 1
1,style:{top:`auto`,bottom:0,right:0}}]}))),ne=A.forwardRef(function(e,t){let{anchor:n,classes:r={},className:i,width:a,style:o,...s}=e,c=e;return(0,j.jsx)(K,{className:f(`PrivateSwipeArea-root`,r.root,r[`anchor${m(n)}`],i),ref:t,style:{[W(n)?`width`:`height`]:a,...o},ownerState:c,...s})}),q=3,re=20,J=null;function Y(e,t,n){return e===`right`?n.body.offsetWidth-t[0].pageX:t[0].pageX}function X(e,t,n){return e===`bottom`?n.innerHeight-t[0].clientY:t[0].clientY}function Z(e,t){return e?t.clientWidth:t.clientHeight}function ie(e,t,n,r){return Math.min(Math.max(n?t-e:r+t-e,0),r)}function ae(e,t){let n=[];for(;e&&e!==t.parentElement;){let r=x(t).getComputedStyle(e);r.getPropertyValue(`position`)===`absolute`||r.getPropertyValue(`overflow-x`)===`hidden`||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}function oe({domTreeShapes:e,start:t,current:n,anchor:r}){let i={scrollPosition:{x:`scrollLeft`,y:`scrollTop`},scrollLength:{x:`scrollWidth`,y:`scrollHeight`},clientLength:{x:`clientWidth`,y:`clientHeight`}};return e.some(e=>{let a=n>=t;(r===`top`||r===`left`)&&(a=!a);let o=r===`left`||r===`right`?`x`:`y`,s=Math.round(e[i.scrollPosition[o]]),c=s>0,l=s+e[i.clientLength[o]]<e[i.scrollLength[o]];return!!(a&&l||!a&&c)})}var se=typeof navigator<`u`&&/iPad|iPhone|iPod/.test(navigator.userAgent),ce=A.forwardRef(function(e,t){let n=c({name:`MuiSwipeableDrawer`,props:e}),i=r(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:o=`left`,disableBackdropTransition:s=!1,disableDiscovery:l=!1,disableSwipeToOpen:u=se,hideBackdrop:d,hysteresis:f=.52,allowSwipeInChildren:m=!1,minFlingVelocity:g=450,ModalProps:{BackdropProps:_,...v}={},onClose:b,onOpen:S,open:C=!1,PaperProps:w={},SwipeAreaProps:E,swipeAreaWidth:M=20,transitionDuration:N=a,variant:P=`temporary`,slots:F={},slotProps:L={},...R}=n,[z,B]=A.useState(!1),V=A.useRef({isSwiping:null}),H=A.useRef(),U=A.useRef(),K=A.useRef(),ce=p(w.ref,K),Q=A.useRef(!1),le=A.useRef();O(()=>{le.current=null},[C]);let $=A.useCallback((e,t={})=>{let{mode:n=null,changeTransition:r=!0}=t,a=G(i,o),c=[`right`,`bottom`].includes(a)?1:-1,l=W(o),u=l?`translate(${c*e}px, 0)`:`translate(0, ${c*e}px)`,f=K.current.style;f.webkitTransform=u,f.transform=u;let p=``;if(n&&(p=i.transitions.create(`all`,T({easing:void 0,style:void 0,timeout:N},{mode:n}))),r&&(f.webkitTransition=p,f.transition=p),!s&&!d){let t=U.current.style;t.opacity=1-e/Z(l,K.current),r&&(t.webkitTransition=p,t.transition=p)}},[o,s,d,i,N]),ue=h(e=>{if(!Q.current)return;if(J=null,Q.current=!1,I.flushSync(()=>{B(!1)}),!V.current.isSwiping){V.current.isSwiping=null;return}V.current.isSwiping=null;let t=G(i,o),n=W(o),r;r=n?Y(t,e.changedTouches,y(e.currentTarget)):X(t,e.changedTouches,x(e.currentTarget));let a=n?V.current.startX:V.current.startY,s=Z(n,K.current),c=ie(r,a,C,s),l=c/s;if(Math.abs(V.current.velocity)>g&&(le.current=Math.abs((s-c)/V.current.velocity)*1e3),C){V.current.velocity>g||l>f?b():$(0,{mode:`exit`});return}V.current.velocity<-g||1-l>f?S():$(Z(n,K.current),{mode:`enter`})}),de=(e=!1)=>{if(!z){(e||!(l&&m))&&I.flushSync(()=>{B(!0)});let t=W(o);!C&&K.current&&$(Z(t,K.current)+(l?15:-20),{changeTransition:!1}),V.current.velocity=0,V.current.lastTime=null,V.current.lastTranslate=null,V.current.paperHit=!1,Q.current=!0}},fe=h(e=>{if(!K.current||!Q.current||J!==null&&J!==V.current)return;de(!0);let t=G(i,o),n=W(o),r=Y(t,e.touches,y(e.currentTarget)),a=X(t,e.touches,x(e.currentTarget));if(C&&K.current.contains(e.target)&&J===null){if(oe({domTreeShapes:ae(e.target,K.current),start:n?V.current.startX:V.current.startY,current:n?r:a,anchor:o})){J=!0;return}J=V.current}if(V.current.isSwiping==null){let t=Math.abs(r-V.current.startX),i=Math.abs(a-V.current.startY),o=n?t>i&&t>q:i>t&&i>q;if(o&&e.cancelable&&e.preventDefault(),o===!0||(n?i>q:t>q)){if(V.current.isSwiping=o,!o){ue(e);return}V.current.startX=r,V.current.startY=a,!l&&!C&&(n?V.current.startX-=re:V.current.startY-=re)}}if(!V.current.isSwiping)return;let s=Z(n,K.current),c=n?V.current.startX:V.current.startY;C&&!V.current.paperHit&&(c=Math.min(c,s));let u=ie(n?r:a,c,C,s);if(C)if(V.current.paperHit)u===0&&(V.current.startX=r,V.current.startY=a);else if(n?r<s:a<s)V.current.paperHit=!0,V.current.startX=r,V.current.startY=a;else return;V.current.lastTranslate===null&&(V.current.lastTranslate=u,V.current.lastTime=performance.now()+1);let d=(u-V.current.lastTranslate)/(performance.now()-V.current.lastTime)*1e3;
1V.current.velocity=V.current.velocity*.4+d*.6,V.current.lastTranslate=u,V.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),$(u)}),pe=h(e=>{if(e.defaultPrevented||e.defaultMuiPrevented||C&&(d||!U.current.contains(e.target))&&!K.current.contains(e.target))return;let t=G(i,o),n=W(o),r=Y(t,e.touches,y(e.currentTarget)),a=X(t,e.touches,x(e.currentTarget));if(!C){if(u||!(e.target===H.current||K.current?.contains(e.target)&&(typeof m==`function`?m(e,H.current,K.current):m)))return;if(n){if(r>M)return}else if(a>M)return}e.defaultMuiPrevented=!0,J=null,V.current.startX=r,V.current.startY=a,de()});A.useEffect(()=>{if(P===`temporary`){let e=y(K.current);return e.addEventListener(`touchstart`,pe),e.addEventListener(`touchmove`,fe,{passive:!C}),e.addEventListener(`touchend`,ue),()=>{e.removeEventListener(`touchstart`,pe),e.removeEventListener(`touchmove`,fe,{passive:!C}),e.removeEventListener(`touchend`,ue)}}},[P,C,pe,fe,ue]),A.useEffect(()=>()=>{J===V.current&&(J=null)},[]),A.useEffect(()=>{C||B(!1)},[C]);let[me,he]=D(`swipeArea`,{ref:H,elementType:ne,ownerState:n,externalForwardedProps:{slots:F,slotProps:{swipeArea:E,...L}},additionalProps:{width:M,anchor:o}});return(0,j.jsxs)(A.Fragment,{children:[(0,j.jsx)(ee,{open:P===`temporary`&&z?!0:C,variant:P,ModalProps:{BackdropProps:{..._,ref:U},...P===`temporary`&&{keepMounted:!0},...v},hideBackdrop:d,anchor:o,transitionDuration:le.current||N,onClose:b,ref:t,slots:F,slotProps:{...L,backdrop:k(L.backdrop??_,{ref:U}),paper:k(L.paper??w,{style:{pointerEvents:P===`temporary`&&!C&&!m?`none`:``},ref:ce})},...R}),!u&&P===`temporary`&&(0,j.jsx)(te,{children:(0,j.jsx)(me,{...he})})]})});export{ee as n,F as r,ce as t};
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.