@ukpc-lib/react 0.1.19 → 0.1.21

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.
@@ -3,7 +3,7 @@
3
3
  `;function bo({children:e,styles:t=[],...n}){return y.jsxs(C.C.div,{...n,children:[[Nl,...t].map((r,i)=>y.jsx("style",{type:"text/css",children:r},i)),e]})}const Vl=`.avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar{position:fixed;display:flex;z-index:30;background:black;top:0;width:100%;padding-left:2.5rem;height:64px}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}.logo-container{padding:16px 0;height:100%}.navbar-container img{height:100%}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem}.userAvatar{width:2.5rem;height:2.5rem;cursor:pointer;-o-object-fit:cover;object-fit:cover;border-radius:9999px}.relative{position:relative}.cursor-pointer{cursor:pointer}
4
4
  `;function Il({logo:e,user:t,baseUrl:n,style:r,classNames:i="",customColors:o}){const s=e||"/public/assets/icons/logo-header.png",a={...r,color:(o==null?void 0:o.color)||"black",backgroundColor:(o==null?void 0:o.bgColor)||"black"},[l,c]=P.useState(!1),d=()=>{window.location.href=`${n}/authentication/logout?callbackUrl=${window.location.href}`};return y.jsxs(bo,{styles:[Vl],style:{zIndex:1202},children:[y.jsx("nav",{className:`navbar ${i}`,style:o?a:r,children:y.jsxs("div",{className:"navbar-container",children:[y.jsx("div",{className:"logo-container",children:y.jsx("img",{src:s,alt:"logo-header"})}),y.jsxs("div",{className:"right-side-container",children:[y.jsxs("div",{className:"userContainer",children:[y.jsx("p",{className:"userFullName",children:`${t==null?void 0:t.firstName} ${t==null?void 0:t.lastName}`}),y.jsx(Ll,{primaryColor:o==null?void 0:o.primaryColor,avatarUrl:t==null?void 0:t.avatarUrl,setShowConfirmModal:c})]}),y.jsx("span",{className:"cursor-pointer",children:y.jsx(jl,{primaryColor:o==null?void 0:o.primaryColor})}),y.jsx("span",{className:"cursor-pointer",children:y.jsx(Dl,{primaryColor:o==null?void 0:o.primaryColor})})]})]})}),y.jsx(vo,{isOpen:l,onClose:()=>c(!1),onConfirm:d})]})}function Ll({avatarUrl:e,setShowConfirmModal:t,primaryColor:n="#009d4f"}){const[r,i]=P.useState(!1),o=P.useRef(null),s=P.useRef(null),[a,l]=P.useState(!1),[c,d]=P.useState(!1),u={backgroundColor:a?n:"transparent"},h={backgroundColor:c?n:"transparent"};return P.useEffect(()=>{const p=g=>{o.current&&!o.current.contains(g.target)&&i(!1),s.current&&!s.current.contains(g.target)&&i(!1)};return document.addEventListener("click",p,!0),()=>{document.removeEventListener("click",p,!0)}},[o]),y.jsx(y.Fragment,{children:y.jsxs("div",{style:{position:"relative"},children:[y.jsx("img",{onClick:()=>i(!r),ref:o,alt:"user avatar",className:"userAvatar",src:e||Rl}),y.jsx("div",{style:{display:r?"block":"none"},className:"avartarDropdownMenu",ref:s,children:y.jsxs("ul",{children:[y.jsx("li",{onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),style:h,className:"avatar-dropdown-item",children:"Profile"}),y.jsx("li",{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:u,onClick:()=>t(!0),className:"avatar-dropdown-item",children:"Logout"})]})})]})})}var zl=typeof global=="object"&&global&&global.Object===Object&&global;const Fl=zl;var Bl=typeof self=="object"&&self&&self.Object===Object&&self,$l=Fl||Bl||Function("return this")();const xo=$l;var Wl=xo.Symbol;const vn=Wl;var wo=Object.prototype,Ul=wo.hasOwnProperty,Hl=wo.toString,Ct=vn?vn.toStringTag:void 0;function Gl(e){var t=Ul.call(e,Ct),n=e[Ct];try{e[Ct]=void 0;var r=!0}catch{}var i=Hl.call(e);return r&&(t?e[Ct]=n:delete e[Ct]),i}var Yl=Object.prototype,ql=Yl.toString;function Kl(e){return ql.call(e)}var Xl="[object Null]",Zl="[object Undefined]",Ti=vn?vn.toStringTag:void 0;function Ql(e){return e==null?e===void 0?Zl:Xl:Ti&&Ti in Object(e)?Gl(e):Kl(e)}function Jl(e){return e!=null&&typeof e=="object"}var ec="[object Symbol]";function tc(e){return typeof e=="symbol"||Jl(e)&&Ql(e)==ec}var nc=/\s/;function rc(e){for(var t=e.length;t--&&nc.test(e.charAt(t)););return t}var ic=/^\s+/;function sc(e){return e&&e.slice(0,rc(e)+1).replace(ic,"")}function bn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ei=0/0,oc=/^[-+]0x[0-9a-f]+$/i,ac=/^0b[01]+$/i,lc=/^0o[0-7]+$/i,cc=parseInt;function Ci(e){if(typeof e=="number")return e;if(tc(e))return Ei;if(bn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=bn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=sc(e);var n=ac.test(e);return n||lc.test(e)?cc(e.slice(2),n?2:8):oc.test(e)?Ei:+e}var uc=function(){return xo.Date.now()};const tr=uc;var dc="Expected a function",fc=Math.max,hc=Math.min;function an(e,t,n){var r,i,o,s,a,l,c=0,d=!1,u=!1,h=!0;if(typeof e!="function")throw new TypeError(dc);t=Ci(t)||0,bn(n)&&(d=!!n.leading,u="maxWait"in n,o=u?fc(Ci(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function p(T){var E=r,A=i;return r=i=void 0,c=T,s=e.apply(A,E),s}function g(T){return c=T,a=setTimeout(v,t),d?p(T):s}function f(T){var E=T-l,A=T-c,O=t-E;return u?hc(O,o-A):O}function m(T){var E=T-l,A=T-c;return l===void 0||E>=t||E<0||u&&A>=o}function v(){var T=tr();if(m(T))return x(T);a=setTimeout(v,f(T))}function x(T){return a=void 0,h&&r?p(T):(r=i=void 0,s)}function b(){a!==void 0&&clearTimeout(a),c=0,r=l=i=a=void 0}function w(){return a===void 0?s:x(tr())}function S(){var T=tr(),E=m(T);if(r=arguments,i=this,l=T,E){if(a===void 0)return g(l);if(u)return clearTimeout(a),a=setTimeout(v,t),p(l)}return a===void 0&&(a=setTimeout(v,t)),s}return S.cancel=b,S.flush=w,S}var pc="Expected a function";function mc(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(pc);return bn(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),an(e,t,{leading:r,maxWait:t,trailing:i})}var gc=!!(typeof window<"u"&&window.document&&window.document.createElement),yc=gc;const So=C.getDefaultExportFromCjs(yc);var ut=function(){return ut=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ut.apply(this,arguments)},ct=null,Pi=null;So&&window.addEventListener("resize",function(){Pi!==window.devicePixelRatio&&(Pi=window.devicePixelRatio,ct=null)});function Ai(){if(ct===null){if(typeof document>"u")return ct=0,ct;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),ct=n}return ct}function To(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Eo(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Co=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},t);return n};function Po(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function Ao(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function ko(e){return".".concat(e.split(" ").join("."))}var vc=Object.freeze({__proto__:null,getElementWindow:To,getElementDocument:Eo,getOptions:Co,addClasses:Po,removeClasses:Ao,classNamesToQuery:ko}),Re=To,nr=Eo,bc=Co,Ne=Po,Ve=Ao,se=ko,Jt=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!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 i=Re(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Ne(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Ve(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Ne(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Ve(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,s;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),s&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,s,a,l,c,d,u,h,p,g,f;if(!(!r.draggedAxis||!r.contentWrapperEl)){var m,v=r.axis[r.draggedAxis].track,x=(s=(o=v.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,b=r.axis[r.draggedAxis].scrollbar,w=(l=(a=r.contentWrapperEl)===null||a===void 0?void 0:a[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,S=parseInt((d=(c=r.elStyles)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].sizeAttr])!==null&&d!==void 0?d:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?m=i.pageY:m=i.pageX;var T=m-((h=(u=v.rect)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-r.axis[r.draggedAxis].dragOffset;T=r.draggedAxis==="x"&&r.isRtl?((g=(p=v.rect)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].sizeAttr])!==null&&g!==void 0?g:0)-b.size-T:T;var E=T/(x-b.size),A=E*(w-S);r.draggedAxis==="x"&&r.isRtl&&(A=!((f=e.getRtlHelpers())===null||f===void 0)&&f.isScrollingToNegative?-A:A),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=A}},this.onEndDrag=function(i){var o=nr(r.el),s=Re(r.el);i.preventDefault(),i.stopPropagation(),Ve(r.el,r.classNames.dragging),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=ut(ut({},e.defaultOptions),n),this.classNames=ut(ut({},e.defaultOptions.classNames),n.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}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=mc(this._onMouseMove,64),this.onWindowResize=an(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=an(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=an(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 n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ai()}catch{return Ai()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=nr(t),i=Re(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){So&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(se(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(se(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(se(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(se(this.classNames.offset)),this.maskEl=this.el.querySelector(se(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,se(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(se(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(se(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(se(this.classNames.track)).concat(se(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(se(this.classNames.track)).concat(se(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(se(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(se(this.classNames.scrollbar)))||null,this.options.autoHide||(Ne(this.axis.x.scrollbar.el,this.classNames.visible),Ne(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=Re(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),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.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 t=Re(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,a=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,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||c,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var d=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&c>n,this.axis.y.isOverflowing=l>d,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>o-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>d-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(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,s=o/i,a;return a=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],a=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[t].sizeAttr],10),c=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];c=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-c:c,t==="x"&&this.isRtl&&(c=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?c:-c);var d=c/(s-l),u=~~((a-o.size)*d);u=t==="x"&&this.isRtl?-u+(a-o.size):u,o.el.style.transform=t==="x"?"translate3d(".concat(u,"px, 0, 0)"):"translate3d(0, ".concat(u,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Ne(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Ve(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].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(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Ne(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Ne(n.scrollbar.el,this.classNames.hover):Ve(n.scrollbar.el,this.classNames.hover)):(Ve(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Ve(this.axis[t].track.el,this.classNames.hover),Ve(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y");var i=nr(this.el),o=Re(this.el),s=this.axis[n].scrollbar,a=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=a-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Ne(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,i,o,s,a;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var c=Re(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var d=this.axis[n].scrollbar,u=(o=(i=d.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,h=parseInt((a=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&a!==void 0?a:"0px",10),p=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],g=n==="y"?this.mouseY-u:this.mouseX-u,f=g<0?-1:1,m=f===-1?p-h:p+h,v=40,x=function(){r.contentWrapperEl&&(f===-1?p>m&&(p-=v,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=p,c.requestAnimationFrame(x)):p<m&&(p+=v,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=p,c.requestAnimationFrame(x)))};x()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Re(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),t.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(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",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=bc,e.helpers=vc,e}(),ce=function(){return ce=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ce.apply(this,arguments)};function xc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Oo=D.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=xc(e,["children","scrollableNodeProps"]),s=D.useRef(),a=D.useRef(),l=D.useRef(),c={},d={};Object.keys(o).forEach(function(p){Object.prototype.hasOwnProperty.call(Jt.defaultOptions,p)?c[p]=o[p]:d[p]=o[p]});var u=ce(ce({},Jt.defaultOptions.classNames),c.classNames),h=ce(ce({},i),{className:"".concat(u.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":c.ariaLabel||Jt.defaultOptions.ariaLabel});return D.useEffect(function(){var p;return a.current=h.ref?h.ref.current:a.current,s.current&&(p=new Jt(s.current,ce(ce(ce({},c),a.current&&{scrollableNode:a.current}),l.current&&{contentNode:l.current})),typeof t=="function"?t(p):t&&(t.current=p)),function(){p==null||p.unMount(),p=null,typeof t=="function"&&t(null)}},[]),D.createElement("div",ce({"data-simplebar":"init",ref:s},d),D.createElement("div",{className:u.wrapper},D.createElement("div",{className:u.heightAutoObserverWrapperEl},D.createElement("div",{className:u.heightAutoObserverEl})),D.createElement("div",{className:u.mask},D.createElement("div",{className:u.offset},typeof n=="function"?n({scrollableNodeRef:a,scrollableNodeProps:ce(ce({},h),{ref:a}),contentNodeRef:l,contentNodeProps:{className:u.contentEl,ref:l}}):D.createElement("div",ce({},h),D.createElement("div",{className:u.contentEl},n)))),D.createElement("div",{className:u.placeholder})),D.createElement("div",{className:"".concat(u.track," simplebar-horizontal")},D.createElement("div",{className:u.scrollbar})),D.createElement("div",{className:"".concat(u.track," simplebar-vertical")},D.createElement("div",{className:u.scrollbar})))});Oo.displayName="SimpleBar";const wc=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
5
5
  `,Sc=e=>y.jsx(C.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit"},...e}),Mo=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Rn=P.createContext({}),zr=P.createContext(null),Nn=typeof document<"u",Tc=Nn?P.useLayoutEffect:P.useEffect,_o=P.createContext({strict:!1}),Fr=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Ec="framerAppearId",Do="data-"+Fr(Ec);function Cc(e,t,n,r){const{visualElement:i}=P.useContext(Rn),o=P.useContext(_o),s=P.useContext(zr),a=P.useContext(Mo).reducedMotion,l=P.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;P.useInsertionEffect(()=>{c&&c.update(n,s)});const d=P.useRef(!!(n[Do]&&!window.HandoffComplete));return Tc(()=>{c&&(c.render(),d.current&&c.animationState&&c.animationState.animateChanges())}),P.useEffect(()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),c}function dt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Pc(e,t,n){return P.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):dt(n)&&(n.current=r))},[t])}function Vt(e){return typeof e=="string"||Array.isArray(e)}function Vn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Br=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$r=["initial",...Br];function In(e){return Vn(e.animate)||$r.some(t=>Vt(e[t]))}function jo(e){return!!(In(e)||e.variants)}function Ac(e,t){if(In(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Vt(n)?n:void 0,animate:Vt(r)?r:void 0}}return e.inherit!==!1?t:{}}function kc(e){const{initial:t,animate:n}=Ac(e,P.useContext(Rn));return P.useMemo(()=>({initial:t,animate:n}),[ki(t),ki(n)])}function ki(e){return Array.isArray(e)?e.join(" "):e}const Oi={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},It={};for(const e in Oi)It[e]={isEnabled:t=>Oi[e].some(n=>!!t[n])};function Oc(e){for(const t in e)It[t]={...It[t],...e[t]}}const Ro=P.createContext({}),No=P.createContext({}),Mc=Symbol.for("motionComponentSymbol");function _c({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Oc(e);function o(a,l){let c;const d={...P.useContext(Mo),...a,layoutId:Dc(a)},{isStatic:u}=d,h=kc(a),p=r(a,u);if(!u&&Nn){h.visualElement=Cc(i,p,d,t);const g=P.useContext(No),f=P.useContext(_o).strict;h.visualElement&&(c=h.visualElement.loadFeatures(d,f,e,g))}return D.createElement(Rn.Provider,{value:h},c&&h.visualElement?D.createElement(c,{visualElement:h.visualElement,...d}):null,n(i,a,Pc(p,h.visualElement,l),p,u,h.visualElement))}const s=P.forwardRef(o);return s[Mc]=i,s}function Dc({layoutId:e}){const t=P.useContext(Ro).id;return t&&e!==void 0?t+"-"+e:e}function jc(e){function t(r,i={}){return _c(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Rc=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Wr(e){return typeof e!="string"||e.includes("-")?!1:!!(Rc.indexOf(e)>-1||/[A-Z]/.test(e))}const xn={};function Nc(e){Object.assign(xn,e)}const Wt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],et=new Set(Wt);function Vo(e,{layout:t,layoutId:n}){return et.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!xn[e]||e==="opacity")}const oe=e=>!!(e&&e.getVelocity),Vc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ic=Wt.length;function Lc(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<Ic;s++){const a=Wt[s];if(e[a]!==void 0){const l=Vc[a]||a;o+=`${l}(${e[a]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const Io=e=>t=>typeof t=="string"&&t.startsWith(e),Lo=Io("--"),br=Io("var(--"),zc=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Fc=(e,t)=>t&&typeof e=="number"?t.transform(e):e,$e=(e,t,n)=>Math.min(Math.max(n,e),t),tt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},_t={...tt,transform:e=>$e(0,1,e)},en={...tt,default:1},Dt=e=>Math.round(e*1e5)/1e5,Ln=/(-)?([\d]*\.?[\d])+/g,zo=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Bc=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ut(e){return typeof e=="string"}const Ht=e=>({test:t=>Ut(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ie=Ht("deg"),Ee=Ht("%"),_=Ht("px"),$c=Ht("vh"),Wc=Ht("vw"),Mi={...Ee,parse:e=>Ee.parse(e)/100,transform:e=>Ee.transform(e*100)},_i={...tt,transform:Math.round},Fo={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,radius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,size:_,top:_,right:_,bottom:_,left:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,rotate:Ie,rotateX:Ie,rotateY:Ie,rotateZ:Ie,scale:en,scaleX:en,scaleY:en,scaleZ:en,skew:Ie,skewX:Ie,skewY:Ie,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:_t,originX:Mi,originY:Mi,originZ:_,zIndex:_i,fillOpacity:_t,strokeOpacity:_t,numOctaves:_i};function Ur(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,c=!1,d=!0;for(const u in t){const h=t[u];if(Lo(u)){o[u]=h;continue}const p=Fo[u],g=Fc(h,p);if(et.has(u)){if(l=!0,s[u]=g,!d)continue;h!==(p.default||0)&&(d=!1)}else u.startsWith("origin")?(c=!0,a[u]=g):i[u]=g}if(t.transform||(l||r?i.transform=Lc(e.transform,n,d,r):i.transform&&(i.transform="none")),c){const{originX:u="50%",originY:h="50%",originZ:p=0}=a;i.transformOrigin=`${u} ${h} ${p}`}}const Hr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Bo(e,t,n){for(const r in t)!oe(t[r])&&!Vo(r,n)&&(e[r]=t[r])}function Uc({transformTemplate:e},t,n){return P.useMemo(()=>{const r=Hr();return Ur(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Hc(e,t,n){const r=e.style||{},i={};return Bo(i,r,e),Object.assign(i,Uc(e,t,n)),e.transformValues?e.transformValues(i):i}function Gc(e,t,n){const r={},i=Hc(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Yc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function wn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Yc.has(e)}let $o=e=>!wn(e);function qc(e){e&&($o=t=>t.startsWith("on")?!wn(t):e(t))}try{qc(require("@emotion/is-prop-valid").default)}catch{}function Kc(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||($o(i)||n===!0&&wn(i)||!t&&!wn(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Di(e,t,n){return typeof e=="string"?e:_.transform(t+n*e)}function Xc(e,t,n){const r=Di(t,e.x,e.width),i=Di(n,e.y,e.height);return`${r} ${i}`}const Zc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qc={offset:"strokeDashoffset",array:"strokeDasharray"};function Jc(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Zc:Qc;e[o.offset]=_.transform(-r);const s=_.transform(t),a=_.transform(n);e[o.array]=`${s} ${a}`}function Gr(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},d,u,h){if(Ur(e,c,d,h),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:f}=e;p.transform&&(f&&(g.transform=p.transform),delete p.transform),f&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=Xc(f,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&Jc(p,s,a,l,!1)}const Wo=()=>({...Hr(),attrs:{}}),Yr=e=>typeof e=="string"&&e.toLowerCase()==="svg";function eu(e,t,n,r){const i=P.useMemo(()=>{const o=Wo();return Gr(o,t,{enableHardwareAcceleration:!1},Yr(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Bo(o,e.style,e),i.style={...o,...i.style}}return i}function tu(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(Wr(n)?eu:Gc)(r,o,s,n),d={...Kc(r,typeof n=="string",e),...l,ref:i},{children:u}=r,h=P.useMemo(()=>oe(u)?u.get():u,[u]);return P.createElement(n,{...d,children:h})}}function Uo(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Ho=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Go(e,t,n,r){Uo(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Ho.has(i)?i:Fr(i),t.attrs[i])}function qr(e,t){const{style:n}=e,r={};for(const i in n)(oe(n[i])||t.style&&oe(t.style[i])||Vo(i,e))&&(r[i]=n[i]);return r}function Yo(e,t){const n=qr(e,t);for(const r in e)if(oe(e[r])||oe(t[r])){const i=Wt.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Kr(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function nu(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const Sn=e=>Array.isArray(e),ru=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),iu=e=>Sn(e)?e[e.length-1]||0:e;function ln(e){const t=oe(e)?e.get():e;return ru(t)?t.toValue():t}function su({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:ou(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const qo=e=>(t,n)=>{const r=P.useContext(Rn),i=P.useContext(zr),o=()=>su(e,t,r,i);return n?o():nu(o)};function ou(e,t,n,r){const i={},o=r(e,{});for(const h in o)i[h]=ln(o[h]);let{initial:s,animate:a}=e;const l=In(e),c=jo(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const u=d?a:s;return u&&typeof u!="boolean"&&!Vn(u)&&(Array.isArray(u)?u:[u]).forEach(p=>{const g=Kr(e,p);if(!g)return;const{transitionEnd:f,transition:m,...v}=g;for(const x in v){let b=v[x];if(Array.isArray(b)){const w=d?b.length-1:0;b=b[w]}b!==null&&(i[x]=b)}for(const x in f)i[x]=f[x]}),i}const K=e=>e;class ji{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function au(e){let t=new ji,n=new ji,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,c=!1,d=!1)=>{const u=d&&i,h=u?t:n;return c&&s.add(l),h.add(l)&&u&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let c=0;c<r;c++){const d=t.order[c];d(l),s.has(d)&&(a.schedule(d),e())}i=!1,o&&(o=!1,a.process(l))}};return a}const tn=["prepare","read","update","preRender","render","postRender"],lu=40;function cu(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=tn.reduce((u,h)=>(u[h]=au(()=>n=!0),u),{}),s=u=>o[u].process(i),a=()=>{const u=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(u-i.timestamp,lu),1),i.timestamp=u,i.isProcessing=!0,tn.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:tn.reduce((u,h)=>{const p=o[h];return u[h]=(g,f=!1,m=!1)=>(n||l(),p.schedule(g,f,m)),u},{}),cancel:u=>tn.forEach(h=>o[h].cancel(u)),state:i,steps:o}}const{schedule:$,cancel:De,state:te,steps:rr}=cu(typeof requestAnimationFrame<"u"?requestAnimationFrame:K,!0),uu={useVisualState:qo({scrapeMotionValuesFromProps:Yo,createRenderState:Wo,onMount:(e,t,{renderState:n,latestValues:r})=>{$.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),$.render(()=>{Gr(n,r,{enableHardwareAcceleration:!1},Yr(t.tagName),e.transformTemplate),Go(t,n)})}})},du={useVisualState:qo({scrapeMotionValuesFromProps:qr,createRenderState:Hr})};function fu(e,{forwardMotionProps:t=!1},n,r){return{...Wr(e)?uu:du,preloadedFeatures:n,useRender:tu(t),createVisualElement:r,Component:e}}function Oe(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Ko=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function zn(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const hu=e=>t=>Ko(t)&&e(t,zn(t));function Me(e,t,n,r){return Oe(e,t,hu(n),r)}const pu=(e,t)=>n=>t(e(n)),Fe=(...e)=>e.reduce(pu);function Xo(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Ri=Xo("dragHorizontal"),Ni=Xo("dragVertical");function Zo(e){let t=!1;if(e==="y")t=Ni();else if(e==="x")t=Ri();else{const n=Ri(),r=Ni();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Qo(){const e=Zo(!0);return e?(e(),!1):!0}class Ue{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Vi(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||Qo())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&$.update(()=>a[r](o,s))};return Me(e.current,n,i,{passive:!e.getProps()[r]})}class mu extends Ue{mount(){this.unmount=Fe(Vi(this.node,!0),Vi(this.node,!1))}unmount(){}}class gu extends Ue{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Fe(Oe(this.node.current,"focus",()=>this.onFocus()),Oe(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Jo=(e,t)=>t?e===t?!0:Jo(e,t.parentElement):!1;function ir(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,zn(n))}class yu extends Ue{constructor(){super(...arguments),this.removeStartListeners=K,this.removeEndListeners=K,this.removeAccessibleListeners=K,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Me(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:d,globalTapTarget:u}=this.node.getProps();$.update(()=>{!u&&!Jo(this.node.current,a.target)?d&&d(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Me(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Fe(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||ir("up",(l,c)=>{const{onTap:d}=this.node.getProps();d&&$.update(()=>d(l,c))})};this.removeEndListeners(),this.removeEndListeners=Oe(this.node.current,"keyup",s),ir("down",(a,l)=>{this.startPress(a,l)})},n=Oe(this.node.current,"keydown",t),r=()=>{this.isPressing&&ir("cancel",(o,s)=>this.cancelPress(o,s))},i=Oe(this.node.current,"blur",r);this.removeAccessibleListeners=Fe(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&$.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Qo()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&$.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Me(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Oe(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Fe(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const xr=new WeakMap,sr=new WeakMap,vu=e=>{const t=xr.get(e.target);t&&t(e)},bu=e=>{e.forEach(vu)};function xu({root:e,...t}){const n=e||document;sr.has(n)||sr.set(n,{});const r=sr.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(bu,{root:e,...t})),r[i]}function wu(e,t,n){const r=xu(t);return xr.set(e,n),r.observe(e),()=>{xr.delete(e),r.unobserve(e)}}const Su={some:0,all:1};class Tu extends Ue{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Su[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:u}=this.node.getProps(),h=c?d:u;h&&h(l)};return wu(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Eu(t,n))&&this.startObserver()}unmount(){}}function Eu({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Cu={inView:{Feature:Tu},tap:{Feature:yu},focus:{Feature:gu},hover:{Feature:mu}};function ea(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Pu(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function Au(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Fn(e,t,n){const r=e.getProps();return Kr(r,t,n!==void 0?n:r.custom,Pu(e),Au(e))}let Gt=K,we=K;process.env.NODE_ENV!=="production"&&(Gt=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},we=(e,t)=>{if(!e)throw new Error(t)});const Be=e=>e*1e3,_e=e=>e/1e3,ku={current:!1},ta=e=>Array.isArray(e)&&typeof e[0]=="number";function na(e){return!!(!e||typeof e=="string"&&ra[e]||ta(e)||Array.isArray(e)&&e.every(na))}const Mt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ra={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mt([0,.65,.55,1]),circOut:Mt([.55,0,1,.45]),backIn:Mt([.31,.01,.66,-.59]),backOut:Mt([.33,1.53,.69,.99])};function ia(e){if(e)return ta(e)?Mt(e):Array.isArray(e)?e.map(ia):ra[e]}function Ou(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=ia(a);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Mu(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const sa=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_u=1e-7,Du=12;function ju(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=sa(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>_u&&++a<Du);return s}function Yt(e,t,n,r){if(e===t&&n===r)return K;const i=o=>ju(o,0,1,e,n);return o=>o===0||o===1?o:sa(i(o),t,r)}const Ru=Yt(.42,0,1,1),Nu=Yt(0,0,.58,1),oa=Yt(.42,0,.58,1),Vu=e=>Array.isArray(e)&&typeof e[0]!="number",aa=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,la=e=>t=>1-e(1-t),Xr=e=>1-Math.sin(Math.acos(e)),ca=la(Xr),Iu=aa(Xr),ua=Yt(.33,1.53,.69,.99),Zr=la(ua),Lu=aa(Zr),zu=e=>(e*=2)<1?.5*Zr(e):.5*(2-Math.pow(2,-10*(e-1))),Ii={linear:K,easeIn:Ru,easeInOut:oa,easeOut:Nu,circIn:Xr,circInOut:Iu,circOut:ca,backIn:Zr,backInOut:Lu,backOut:ua,anticipate:zu},Li=e=>{if(Array.isArray(e)){we(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Yt(t,n,r,i)}else if(typeof e=="string")return we(Ii[e]!==void 0,`Invalid easing type '${e}'`),Ii[e];return e},Qr=(e,t)=>n=>!!(Ut(n)&&Bc.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),da=(e,t,n)=>r=>{if(!Ut(r))return r;const[i,o,s,a]=r.match(Ln);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Fu=e=>$e(0,255,e),or={...tt,transform:e=>Math.round(Fu(e))},Je={test:Qr("rgb","red"),parse:da("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+or.transform(e)+", "+or.transform(t)+", "+or.transform(n)+", "+Dt(_t.transform(r))+")"};function Bu(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const wr={test:Qr("#"),parse:Bu,transform:Je.transform},ft={test:Qr("hsl","hue"),parse:da("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ee.transform(Dt(t))+", "+Ee.transform(Dt(n))+", "+Dt(_t.transform(r))+")"},re={test:e=>Je.test(e)||wr.test(e)||ft.test(e),parse:e=>Je.test(e)?Je.parse(e):ft.test(e)?ft.parse(e):wr.parse(e),transform:e=>Ut(e)?e:e.hasOwnProperty("red")?Je.transform(e):ft.transform(e)},H=(e,t,n)=>-n*e+n*t+e;function ar(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $u({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=ar(l,a,e+1/3),o=ar(l,a,e),s=ar(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const lr=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Wu=[wr,Je,ft],Uu=e=>Wu.find(t=>t.test(e));function zi(e){const t=Uu(e);we(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===ft&&(n=$u(n)),n}const fa=(e,t)=>{const n=zi(e),r=zi(t),i={...n};return o=>(i.red=lr(n.red,r.red,o),i.green=lr(n.green,r.green,o),i.blue=lr(n.blue,r.blue,o),i.alpha=H(n.alpha,r.alpha,o),Je.transform(i))};function Hu(e){var t,n;return isNaN(e)&&Ut(e)&&(((t=e.match(Ln))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(zo))===null||n===void 0?void 0:n.length)||0)>0}const ha={regex:zc,countKey:"Vars",token:"${v}",parse:K},pa={regex:zo,countKey:"Colors",token:"${c}",parse:re.parse},ma={regex:Ln,countKey:"Numbers",token:"${n}",parse:tt.parse};function cr(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function Tn(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&cr(n,ha),cr(n,pa),cr(n,ma),n}function ga(e){return Tn(e).values}function ya(e){const{values:t,numColors:n,numVars:r,tokenised:i}=Tn(e),o=t.length;return s=>{let a=i;for(let l=0;l<o;l++)l<r?a=a.replace(ha.token,s[l]):l<r+n?a=a.replace(pa.token,re.transform(s[l])):a=a.replace(ma.token,Dt(s[l]));return a}}const Gu=e=>typeof e=="number"?0:e;function Yu(e){const t=ga(e);return ya(e)(t.map(Gu))}const We={test:Hu,parse:ga,createTransformer:ya,getAnimatableNone:Yu},va=(e,t)=>n=>`${n>0?t:e}`;function ba(e,t){return typeof e=="number"?n=>H(e,t,n):re.test(e)?fa(e,t):e.startsWith("var(")?va(e,t):wa(e,t)}const xa=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>ba(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},qu=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ba(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},wa=(e,t)=>{const n=We.createTransformer(t),r=Tn(e),i=Tn(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Fe(xa(r.values,i.values),n):(Gt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),va(e,t))},Lt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Fi=(e,t)=>n=>H(e,t,n);function Ku(e){return typeof e=="number"?Fi:typeof e=="string"?re.test(e)?fa:wa:Array.isArray(e)?xa:typeof e=="object"?qu:Fi}function Xu(e,t,n){const r=[],i=n||Ku(e[0]),o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||K:t;a=Fe(l,a)}r.push(a)}return r}function Sa(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(we(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Xu(t,r,i),a=s.length,l=c=>{let d=0;if(a>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const u=Lt(e[d],e[d+1],c);return s[d](u)};return n?c=>l($e(e[0],e[o-1],c)):l}function Zu(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Lt(0,t,r);e.push(H(n,1,i))}}function Qu(e){const t=[0];return Zu(t,e.length-1),t}function Ju(e,t){return e.map(n=>n*t)}function e0(e,t){return e.map(()=>t||oa).splice(0,e.length-1)}function En({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Vu(r)?r.map(Li):Li(r),o={done:!1,value:t[0]},s=Ju(n&&n.length===t.length?n:Qu(t),e),a=Sa(s,t,{ease:Array.isArray(i)?i:e0(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function Ta(e,t){return t?e*(1e3/t):0}const t0=5;function Ea(e,t,n){const r=Math.max(t-t0,0);return Ta(n-e(r),t-r)}const ur=.001,n0=.01,Bi=10,r0=.05,i0=1;function s0({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Gt(e<=Be(Bi),"Spring duration must be 10 seconds or less");let s=1-t;s=$e(r0,i0,s),e=$e(n0,Bi,_e(e)),s<1?(i=c=>{const d=c*s,u=d*e,h=d-n,p=Sr(c,s),g=Math.exp(-u);return ur-h/p*g},o=c=>{const u=c*s*e,h=u*n+n,p=Math.pow(s,2)*Math.pow(c,2)*e,g=Math.exp(-u),f=Sr(Math.pow(c,2),s);return(-i(c)+ur>0?-1:1)*((h-p)*g)/f}):(i=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-ur+d*u},o=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const a=5/e,l=a0(i,o,a);if(e=Be(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const o0=12;function a0(e,t,n){let r=n;for(let i=1;i<o0;i++)r=r-e(r)/t(r);return r}function Sr(e,t){return e*Math.sqrt(1-t*t)}const l0=["duration","bounce"],c0=["stiffness","damping","mass"];function $i(e,t){return t.some(n=>e[n]!==void 0)}function u0(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!$i(e,c0)&&$i(e,l0)){const n=s0(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Ca({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:d,velocity:u,isResolvedFromDuration:h}=u0({...r,velocity:-_e(r.velocity||0)}),p=u||0,g=l/(2*Math.sqrt(a*c)),f=o-i,m=_e(Math.sqrt(a/c)),v=Math.abs(f)<5;n||(n=v?.01:2),t||(t=v?.005:.5);let x;if(g<1){const b=Sr(m,g);x=w=>{const S=Math.exp(-g*m*w);return o-S*((p+g*m*f)/b*Math.sin(b*w)+f*Math.cos(b*w))}}else if(g===1)x=b=>o-Math.exp(-m*b)*(f+(p+m*f)*b);else{const b=m*Math.sqrt(g*g-1);x=w=>{const S=Math.exp(-g*m*w),T=Math.min(b*w,300);return o-S*((p+g*m*f)*Math.sinh(T)+b*f*Math.cosh(T))/b}}return{calculatedDuration:h&&d||null,next:b=>{const w=x(b);if(h)s.done=b>=d;else{let S=p;b!==0&&(g<1?S=Ea(x,b,w):S=0);const T=Math.abs(S)<=n,E=Math.abs(o-w)<=t;s.done=T&&E}return s.value=s.done?o:w,s}}}function Wi({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},p=A=>a!==void 0&&A<a||l!==void 0&&A>l,g=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let f=n*t;const m=u+f,v=s===void 0?m:s(m);v!==m&&(f=v-u);const x=A=>-f*Math.exp(-A/r),b=A=>v+x(A),w=A=>{const O=x(A),k=b(A);h.done=Math.abs(O)<=c,h.value=h.done?v:k};let S,T;const E=A=>{p(h.value)&&(S=A,T=Ca({keyframes:[h.value,g(h.value)],velocity:Ea(b,A,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:d}))};return E(0),{calculatedDuration:null,next:A=>{let O=!1;return!T&&S===void 0&&(O=!0,w(A),E(A)),S!==void 0&&A>S?T.next(A-S):(!O&&w(A),h)}}}const d0=e=>{const t=({timestamp:n})=>e(n);return{start:()=>$.update(t,!0),stop:()=>De(t),now:()=>te.isProcessing?te.timestamp:performance.now()}},Ui=2e4;function Hi(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ui;)t+=n,r=e.next(t);return t>=Ui?1/0:t}const f0={decay:Wi,inertia:Wi,tween:En,keyframes:En,spring:Ca};function Cn({autoplay:e=!0,delay:t=0,driver:n=d0,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:d,onUpdate:u,...h}){let p=1,g=!1,f,m;const v=()=>{m=new Promise(B=>{f=B})};v();let x;const b=f0[i]||En;let w;b!==En&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&we(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),w=Sa([0,100],r,{clamp:!1}),r=[0,100]);const S=b({...h,keyframes:r});let T;a==="mirror"&&(T=b({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let E="idle",A=null,O=null,k=null;S.calculatedDuration===null&&o&&(S.calculatedDuration=Hi(S));const{calculatedDuration:j}=S;let z=1/0,G=1/0;j!==null&&(z=j+s,G=z*(o+1)-s);let F=0;const ne=B=>{if(O===null)return;p>0&&(O=Math.min(O,B)),p<0&&(O=Math.min(B-G/p,O)),A!==null?F=A:F=Math.round(B-O)*p;const Ae=F-t*(p>=0?1:-1),Ye=p>=0?Ae<0:Ae>G;F=Math.max(Ae,0),E==="finished"&&A===null&&(F=G);let Se=F,qe=S;if(o){const Et=Math.min(F,G)/z;let nt=Math.floor(Et),ke=Et%1;!ke&&Et>=1&&(ke=1),ke===1&&nt--,nt=Math.min(nt,o+1),!!(nt%2)&&(a==="reverse"?(ke=1-ke,s&&(ke-=s/z)):a==="mirror"&&(qe=T)),Se=$e(0,1,ke)*z}const Ke=Ye?{done:!1,value:r[0]}:qe.next(Se);w&&(Ke.value=w(Ke.value));let{done:Zt}=Ke;!Ye&&j!==null&&(Zt=p>=0?F>=G:F<=0);const Jn=A===null&&(E==="finished"||E==="running"&&Zt);return u&&u(Ke.value),Jn&&he(),Ke},U=()=>{x&&x.stop(),x=void 0},le=()=>{E="idle",U(),f(),v(),O=k=null},he=()=>{E="finished",d&&d(),U(),f()},ve=()=>{if(g)return;x||(x=n(ne));const B=x.now();l&&l(),A!==null?O=B-A:(!O||E==="finished")&&(O=B),E==="finished"&&v(),k=O,A=null,E="running",x.start()};e&&ve();const Ge={then(B,Ae){return m.then(B,Ae)},get time(){return _e(F)},set time(B){B=Be(B),F=B,A!==null||!x||p===0?A=B:O=x.now()-B/p},get duration(){const B=S.calculatedDuration===null?Hi(S):S.calculatedDuration;return _e(B)},get speed(){return p},set speed(B){B===p||!x||(p=B,Ge.time=_e(F))},get state(){return E},play:ve,pause:()=>{E="paused",A=F},stop:()=>{g=!0,E!=="idle"&&(E="idle",c&&c(),le())},cancel:()=>{k!==null&&ne(k),le()},complete:()=>{E="finished"},sample:B=>(O=0,ne(B))};return Ge}function h0(e){let t;return()=>(t===void 0&&(t=e()),t)}const p0=h0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),m0=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),nn=10,g0=2e4,y0=(e,t)=>t.type==="spring"||e==="backgroundColor"||!na(t.ease);function v0(e,t,{onUpdate:n,onComplete:r,...i}){if(!(p0()&&m0.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,c=!1;const d=()=>{l=new Promise(b=>{a=b})};d();let{keyframes:u,duration:h=300,ease:p,times:g}=i;if(y0(t,i)){const b=Cn({...i,repeat:0,delay:0});let w={done:!1,value:u[0]};const S=[];let T=0;for(;!w.done&&T<g0;)w=b.sample(T),S.push(w.value),T+=nn;g=void 0,u=S,h=T-nn,p="linear"}const f=Ou(e.owner.current,t,u,{...i,duration:h,ease:p,times:g}),m=()=>{c=!1,f.cancel()},v=()=>{c=!0,$.update(m),a(),d()};return f.onfinish=()=>{c||(e.set(Mu(u,i)),r&&r(),v())},{then(b,w){return l.then(b,w)},attachTimeline(b){return f.timeline=b,f.onfinish=null,K},get time(){return _e(f.currentTime||0)},set time(b){f.currentTime=Be(b)},get speed(){return f.playbackRate},set speed(b){f.playbackRate=b},get duration(){return _e(h)},play:()=>{s||(f.play(),De(m))},pause:()=>f.pause(),stop:()=>{if(s=!0,f.playState==="idle")return;const{currentTime:b}=f;if(b){const w=Cn({...i,autoplay:!1});e.setWithVelocity(w.sample(b-nn).value,w.sample(b).value,nn)}v()},complete:()=>{c||f.finish()},cancel:v}}function b0({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:K,pause:K,stop:K,then:o=>(o(),Promise.resolve()),cancel:K,complete:K});return t?Cn({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const x0={type:"spring",stiffness:500,damping:25,restSpeed:10},w0=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),S0={type:"keyframes",duration:.8},T0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},E0=(e,{keyframes:t})=>t.length>2?S0:et.has(e)?e.startsWith("scale")?w0(t[1]):x0:T0,Tr=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(We.test(t)||t==="0")&&!t.startsWith("url(")),C0=new Set(["brightness","contrast","saturate","opacity"]);function P0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ln)||[];if(!r)return e;const i=n.replace(r,"");let o=C0.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const A0=/([a-z-]*)\(.*?\)/g,Er={...We,getAnimatableNone:e=>{const t=e.match(A0);return t?t.map(P0).join(" "):e}},k0={...Fo,color:re,backgroundColor:re,outlineColor:re,fill:re,stroke:re,borderColor:re,borderTopColor:re,borderRightColor:re,borderBottomColor:re,borderLeftColor:re,filter:Er,WebkitFilter:Er},Jr=e=>k0[e];function Pa(e,t){let n=Jr(e);return n!==Er&&(n=We),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Aa=e=>/^0[^.\s]+$/.test(e);function O0(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Aa(e)}function M0(e,t,n,r){const i=Tr(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let c=0;c<o.length;c++)o[c]===null&&(o[c]=c===0?s:o[c-1]),O0(o[c])&&l.push(c),typeof o[c]=="string"&&o[c]!=="none"&&o[c]!=="0"&&(a=o[c]);if(i&&l.length&&a)for(let c=0;c<l.length;c++){const d=l[c];o[d]=Pa(t,a)}return o}function _0({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}function ei(e,t){return e[t]||e.default||e}const D0={skipAnimations:!1},ti=(e,t,n,r={})=>i=>{const o=ei(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Be(s);const l=M0(t,e,n,o),c=l[0],d=l[l.length-1],u=Tr(e,c),h=Tr(e,d);Gt(u===h,`You are trying to animate ${e} from "${c}" to "${d}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${d} via the \`style\` property.`);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(_0(o)||(p={...p,...E0(e,p)}),p.duration&&(p.duration=Be(p.duration)),p.repeatDelay&&(p.repeatDelay=Be(p.repeatDelay)),!u||!h||ku.current||o.type===!1||D0.skipAnimations)return b0(p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=v0(t,e,p);if(g)return g}return Cn(p)};function Pn(e){return!!(oe(e)&&e.add)}const ka=e=>/^\-?\d*\.?\d+$/.test(e);function ni(e,t){e.indexOf(t)===-1&&e.push(t)}function ri(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ii{constructor(){this.subscriptions=[]}add(t){return ni(this.subscriptions,t),()=>ri(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Gi=new Set;function si(e,t,n){e||Gi.has(t)||(console.warn(t),n&&console.warn(n),Gi.add(t))}const j0=e=>!isNaN(parseFloat(e));class R0{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=te;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,$.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>$.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=j0(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&si(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ii);const r=this.events[t].add(n);return t==="change"?()=>{r(),$.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Ta(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vt(e,t){return new R0(e,t)}const Oa=e=>t=>t.test(e),N0={test:e=>e==="auto",parse:e=>e},Ma=[tt,_,Ee,Ie,Wc,$c,N0],Pt=e=>Ma.find(Oa(e)),V0=[...Ma,re,We],I0=e=>V0.find(Oa(e));function L0(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vt(n))}function z0(e,t){const n=Fn(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=iu(o[s]);L0(e,s,a)}}function F0(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],c=t[l];let d=null;Array.isArray(c)&&(d=c[0]),d===null&&(d=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),d!=null&&(typeof d=="string"&&(ka(d)||Aa(d))?d=parseFloat(d):!I0(d)&&We.test(c)&&(d=Pa(l,c)),e.addValue(l,vt(d,{owner:e})),n[l]===void 0&&(n[l]=d),d!==null&&e.setBaseTarget(l,d))}}function B0(e,t){return t?(t[e]||t.default||t).from:void 0}function $0(e,t,n){const r={};for(const i in e){const o=B0(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function W0({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function U0(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function _a(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const u in a){const h=e.getValue(u),p=a[u];if(!h||p===void 0||d&&W0(d,u))continue;const g={delay:n,elapsed:0,...ei(o||{},u)};if(window.HandoffAppearAnimations){const v=e.getProps()[Do];if(v){const x=window.HandoffAppearAnimations(v,u,h,$);x!==null&&(g.elapsed=x,g.isHandoff=!0)}}let f=!g.isHandoff&&!U0(h,p);if(g.type==="spring"&&(h.getVelocity()||g.velocity)&&(f=!1),h.animation&&(f=!1),f)continue;h.start(ti(u,h,p,e.shouldReduceMotion&&et.has(u)?{type:!1}:g));const m=h.animation;Pn(l)&&(l.add(u),m.then(()=>l.remove(u))),c.push(m)}return s&&Promise.all(c).then(()=>{s&&z0(e,s)}),c}function Cr(e,t,n={}){const r=Fn(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(_a(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:u}=i;return H0(e,t,c+l,d,u,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function H0(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(G0).forEach((c,d)=>{c.notify("AnimationStart",t),s.push(Cr(c,t,{...o,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function G0(e,t){return e.sortNodePosition(t)}function Y0(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Cr(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Cr(e,t,n);else{const i=typeof t=="function"?Fn(e,t,n.custom):t;r=Promise.all(_a(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const q0=[...Br].reverse(),K0=Br.length;function X0(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Y0(e,n,r)))}function Z0(e){let t=X0(e);const n=J0();let r=!0;const i=(l,c)=>{const d=Fn(e,c);if(d){const{transition:u,transitionEnd:h,...p}=d;l={...l,...p,...h}}return l};function o(l){t=l(e)}function s(l,c){const d=e.getProps(),u=e.getVariantContext(!0)||{},h=[],p=new Set;let g={},f=1/0;for(let v=0;v<K0;v++){const x=q0[v],b=n[x],w=d[x]!==void 0?d[x]:u[x],S=Vt(w),T=x===c?b.isActive:null;T===!1&&(f=v);let E=w===u[x]&&w!==d[x]&&S;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),b.protectedKeys={...g},!b.isActive&&T===null||!w&&!b.prevProp||Vn(w)||typeof w=="boolean")continue;let O=Q0(b.prevProp,w)||x===c&&b.isActive&&!E&&S||v>f&&S,k=!1;const j=Array.isArray(w)?w:[w];let z=j.reduce(i,{});T===!1&&(z={});const{prevResolvedValues:G={}}=b,F={...G,...z},ne=U=>{O=!0,p.has(U)&&(k=!0,p.delete(U)),b.needsAnimating[U]=!0};for(const U in F){const le=z[U],he=G[U];if(g.hasOwnProperty(U))continue;let ve=!1;Sn(le)&&Sn(he)?ve=!ea(le,he):ve=le!==he,ve?le!==void 0?ne(U):p.add(U):le!==void 0&&p.has(U)?ne(U):b.protectedKeys[U]=!0}b.prevProp=w,b.prevResolvedValues=z,b.isActive&&(g={...g,...z}),r&&e.blockInitialAnimation&&(O=!1),O&&(!E||k)&&h.push(...j.map(U=>({animation:U,options:{type:x,...l}})))}if(p.size){const v={};p.forEach(x=>{const b=e.getBaseTarget(x);b!==void 0&&(v[x]=b)}),h.push({animation:v})}let m=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(h):Promise.resolve()}function a(l,c,d){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),n[l].isActive=c;const h=s(d,l);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function Q0(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ea(t,e):!1}function Xe(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function J0(){return{animate:Xe(!0),whileInView:Xe(),whileHover:Xe(),whileTap:Xe(),whileDrag:Xe(),whileFocus:Xe(),exit:Xe()}}class ed extends Ue{constructor(t){super(t),t.animationState||(t.animationState=Z0(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Vn(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let td=0;class nd extends Ue{constructor(){super(...arguments),this.id=td++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const rd={animation:{Feature:ed},exit:{Feature:nd}},Yi=(e,t)=>Math.abs(e-t);function id(e,t){const n=Yi(e.x,t.x),r=Yi(e.y,t.y);return Math.sqrt(n**2+r**2)}class Da{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=fr(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=id(u.offset,{x:0,y:0})>=3;if(!h&&!p)return;const{point:g}=u,{timestamp:f}=te;this.history.push({...g,timestamp:f});const{onStart:m,onMove:v}=this.handlers;h||(m&&m(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,u)},this.handlePointerMove=(u,h)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=dr(h,this.transformPagePoint),$.update(this.updatePoint,!0)},this.handlePointerUp=(u,h)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:f}=this.handlers;if(this.dragSnapToOrigin&&f&&f(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=fr(u.type==="pointercancel"?this.lastMoveEventInfo:dr(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(u,m),g&&g(u,m)},!Ko(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=zn(t),a=dr(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=te;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,fr(a,this.history)),this.removeListeners=Fe(Me(this.contextWindow,"pointermove",this.handlePointerMove),Me(this.contextWindow,"pointerup",this.handlePointerUp),Me(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),De(this.updatePoint)}}function dr(e,t){return t?{point:t(e.point)}:e}function qi(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fr({point:e},t){return{point:e,delta:qi(e,ja(t)),offset:qi(e,sd(t)),velocity:od(t,.1)}}function sd(e){return e[0]}function ja(e){return e[e.length-1]}function od(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ja(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Be(t)));)n--;if(!r)return{x:0,y:0};const o=_e(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function fe(e){return e.max-e.min}function Pr(e,t=0,n=.01){return Math.abs(e-t)<=n}function Ki(e,t,n,r=.5){e.origin=r,e.originPoint=H(t.min,t.max,e.origin),e.scale=fe(n)/fe(t),(Pr(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=H(n.min,n.max,e.origin)-e.originPoint,(Pr(e.translate)||isNaN(e.translate))&&(e.translate=0)}function jt(e,t,n,r){Ki(e.x,t.x,n.x,r?r.originX:void 0),Ki(e.y,t.y,n.y,r?r.originY:void 0)}function Xi(e,t,n){e.min=n.min+t.min,e.max=e.min+fe(t)}function ad(e,t,n){Xi(e.x,t.x,n.x),Xi(e.y,t.y,n.y)}function Zi(e,t,n){e.min=t.min-n.min,e.max=e.min+fe(t)}function Rt(e,t,n){Zi(e.x,t.x,n.x),Zi(e.y,t.y,n.y)}function ld(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?H(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?H(n,e,r.max):Math.min(e,n)),e}function Qi(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function cd(e,{top:t,left:n,bottom:r,right:i}){return{x:Qi(e.x,n,i),y:Qi(e.y,t,r)}}function Ji(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ud(e,t){return{x:Ji(e.x,t.x),y:Ji(e.y,t.y)}}function dd(e,t){let n=.5;const r=fe(e),i=fe(t);return i>r?n=Lt(t.min,t.max-r,e.min):r>i&&(n=Lt(e.min,e.max-i,t.min)),$e(0,1,n)}function fd(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ar=.35;function hd(e=Ar){return e===!1?e=0:e===!0&&(e=Ar),{x:es(e,"left","right"),y:es(e,"top","bottom")}}function es(e,t,n){return{min:ts(e,t),max:ts(e,n)}}function ts(e,t){return typeof e=="number"?e:e[t]||0}const ns=()=>({translate:0,scale:1,origin:0,originPoint:0}),ht=()=>({x:ns(),y:ns()}),rs=()=>({min:0,max:0}),Z=()=>({x:rs(),y:rs()});function me(e){return[e("x"),e("y")]}function Ra({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function pd({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function md(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function hr(e){return e===void 0||e===1}function kr({scale:e,scaleX:t,scaleY:n}){return!hr(e)||!hr(t)||!hr(n)}function Ze(e){return kr(e)||Na(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Na(e){return is(e.x)||is(e.y)}function is(e){return e&&e!=="0%"}function An(e,t,n){const r=e-n,i=t*r;return n+i}function ss(e,t,n,r,i){return i!==void 0&&(e=An(e,i,r)),An(e,n,r)+t}function Or(e,t=0,n=1,r,i){e.min=ss(e.min,t,n,r,i),e.max=ss(e.max,t,n,r,i)}function Va(e,{x:t,y:n}){Or(e.x,t.translate,t.scale,t.originPoint),Or(e.y,n.translate,n.scale,n.originPoint)}function gd(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&pt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Va(e,s)),r&&Ze(o.latestValues)&&pt(e,o.latestValues))}t.x=os(t.x),t.y=os(t.y)}function os(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Le(e,t){e.min=e.min+t,e.max=e.max+t}function as(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=H(e.min,e.max,o);Or(e,t[n],t[r],s,t.scale)}const yd=["x","scaleX","originX"],vd=["y","scaleY","originY"];function pt(e,t){as(e.x,t,yd),as(e.y,t,vd)}function Ia(e,t){return Ra(md(e.getBoundingClientRect(),t))}function bd(e,t,n){const r=Ia(e,n),{scroll:i}=t;return i&&(Le(r.x,i.offset.x),Le(r.y,i.offset.y)),r}const La=({current:e})=>e?e.ownerDocument.defaultView:null,xd=new WeakMap;class wd{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Z(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(zn(d,"page").point)},o=(d,u)=>{const{drag:h,dragPropagation:p,onDragStart:g}=this.getProps();if(h&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Zo(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),me(m=>{let v=this.getAxisMotionValue(m).get()||0;if(Ee.test(v)){const{projection:x}=this.visualElement;if(x&&x.layout){const b=x.layout.layoutBox[m];b&&(v=fe(b)*(parseFloat(v)/100))}}this.originPoint[m]=v}),g&&$.update(()=>g(d,u),!1,!0);const{animationState:f}=this.visualElement;f&&f.setActive("whileDrag",!0)},s=(d,u)=>{const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:g,onDrag:f}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:m}=u;if(p&&this.currentDirection===null){this.currentDirection=Sd(m),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",u.point,m),this.updateAxis("y",u.point,m),this.visualElement.render(),f&&f(d,u)},a=(d,u)=>this.stop(d,u),l=()=>me(d=>{var u;return this.getAnimationState(d)==="paused"&&((u=this.getAxisMotionValue(d).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Da(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:La(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&$.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!rn(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=ld(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&dt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=cd(i.layoutBox,n):this.constraints=!1,this.elastic=hd(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&me(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=fd(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!dt(t))return!1;const r=t.current;we(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=bd(r,i.root,this.visualElement.getTransformPagePoint());let s=ud(i.layout.layoutBox,o);if(n){const a=n(pd(s));this.hasMutatedConstraints=!!a,a&&(s=Ra(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=me(d=>{if(!rn(d,n,this.currentDirection))return;let u=l&&l[d]||{};s&&(u={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(d,g)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(ti(t,r,0,n))}stopAnimation(){me(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){me(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){me(n=>{const{drag:r}=this.getProps();if(!rn(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-H(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!dt(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};me(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=dd({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),me(s=>{if(!rn(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(H(l,c,i[s]))})}addListeners(){if(!this.visualElement.current)return;xd.set(this.visualElement,this);const t=this.visualElement.current,n=Me(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();dt(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Oe(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(me(d=>{const u=this.getAxisMotionValue(d);u&&(this.originPoint[d]+=l[d].translate,u.set(u.get()+l[d].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Ar,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function rn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Sd(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Td extends Ue{constructor(t){super(t),this.removeGroupControls=K,this.removeListeners=K,this.controls=new wd(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||K}unmount(){this.removeGroupControls(),this.removeListeners()}}const ls=e=>(t,n)=>{e&&$.update(()=>e(t,n))};class Ed extends Ue{constructor(){super(...arguments),this.removePointerDownListener=K}onPointerDown(t){this.session=new Da(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:La(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:ls(t),onStart:ls(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&$.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Me(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Cd(){const e=P.useContext(zr);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=P.useId();return P.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const cn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const At={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(_.test(e))e=parseFloat(e);else return e;const n=cs(e,t.target.x),r=cs(e,t.target.y);return`${n}% ${r}%`}},Pd={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=We.parse(e);if(i.length>5)return r;const o=We.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const c=H(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),o(i)}};class Ad extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Nc(kd),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),cn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||$.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function za(e){const[t,n]=Cd(),r=P.useContext(Ro);return P.createElement(Ad,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(No),isPresent:t,safeToRemove:n})}const kd={borderRadius:{...At,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:At,borderTopRightRadius:At,borderBottomLeftRadius:At,borderBottomRightRadius:At,boxShadow:Pd},Fa=["TopLeft","TopRight","BottomLeft","BottomRight"],Od=Fa.length,us=e=>typeof e=="string"?parseFloat(e):e,ds=e=>typeof e=="number"||_.test(e);function Md(e,t,n,r,i,o){i?(e.opacity=H(0,n.opacity!==void 0?n.opacity:1,_d(r)),e.opacityExit=H(t.opacity!==void 0?t.opacity:1,0,Dd(r))):o&&(e.opacity=H(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Od;s++){const a=`border${Fa[s]}Radius`;let l=fs(t,a),c=fs(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||ds(l)===ds(c)?(e[a]=Math.max(H(us(l),us(c),r),0),(Ee.test(c)||Ee.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=H(t.rotate||0,n.rotate||0,r))}function fs(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const _d=Ba(0,.5,ca),Dd=Ba(.5,.95,K);function Ba(e,t,n){return r=>r<e?0:r>t?1:n(Lt(e,t,r))}function hs(e,t){e.min=t.min,e.max=t.max}function pe(e,t){hs(e.x,t.x),hs(e.y,t.y)}function ps(e,t,n,r,i){return e-=t,e=An(e,1/n,r),i!==void 0&&(e=An(e,1/i,r)),e}function jd(e,t=0,n=1,r=.5,i,o=e,s=e){if(Ee.test(t)&&(t=parseFloat(t),t=H(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=H(o.min,o.max,r);e===o&&(a-=t),e.min=ps(e.min,t,n,a,i),e.max=ps(e.max,t,n,a,i)}function ms(e,t,[n,r,i],o,s){jd(e,t[n],t[r],t[i],t.scale,o,s)}const Rd=["x","scaleX","originX"],Nd=["y","scaleY","originY"];function gs(e,t,n,r){ms(e.x,t,Rd,n?n.x:void 0,r?r.x:void 0),ms(e.y,t,Nd,n?n.y:void 0,r?r.y:void 0)}function ys(e){return e.translate===0&&e.scale===1}function $a(e){return ys(e.x)&&ys(e.y)}function Vd(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Wa(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function vs(e){return fe(e.x)/fe(e.y)}class Id{constructor(){this.members=[]}add(t){ni(this.members,t),t.scheduleRender()}remove(t){if(ri(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function bs(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:c,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),d&&(r+=`rotateY(${d}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const Ld=(e,t)=>e.depth-t.depth;class zd{constructor(){this.children=[],this.isDirty=!1}add(t){ni(this.children,t),this.isDirty=!0}remove(t){ri(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ld),this.isDirty=!1,this.children.forEach(t)}}function Fd(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(De(r),e(o-t))};return $.read(r,!0),()=>De(r)}function Bd(e){window.MotionDebug&&window.MotionDebug.record(e)}function $d(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Wd(e,t,n){const r=oe(e)?e:vt(e);return r.start(ti("",r,t,n)),r.animation}const xs=["","X","Y","Z"],Ud={visibility:"hidden"},ws=1e3;let Hd=0;const Qe={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Ua({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Hd++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Qe.totalNodes=Qe.resolvedTargetDeltas=Qe.recalculatedProjection=0,this.nodes.forEach(qd),this.nodes.forEach(Jd),this.nodes.forEach(ef),this.nodes.forEach(Kd),Bd(Qe)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new zd)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new ii),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=$d(s),this.instance=s;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),e){let u;const h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=Fd(h,250),cn.hasAnimatedSinceResize&&(cn.hasAnimatedSinceResize=!1,this.nodes.forEach(Ts))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const f=this.options.transition||d.getDefaultTransition()||of,{onLayoutAnimationStart:m,onLayoutAnimationComplete:v}=d.getProps(),x=!this.targetLayout||!Wa(this.targetLayout,g)||p,b=!h&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,b);const w={...ei(f,"layout"),onPlay:m,onComplete:v};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else h||Ts(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,De(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tf),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const u=this.path[d];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ss);return}this.isUpdating||this.nodes.forEach(Zd),this.isUpdating=!1,this.nodes.forEach(Qd),this.nodes.forEach(Gd),this.nodes.forEach(Yd),this.clearAllSnapshots();const a=performance.now();te.delta=$e(0,1e3/60,a-te.timestamp),te.timestamp=a,te.isProcessing=!0,rr.update.process(te),rr.preRender.process(te),rr.render.process(te),te.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Xd),this.sharedNodes.forEach(nf)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Z(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!$a(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;s&&(a||Ze(this.latestValues)||d)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),af(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Z();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Le(a.x,l.offset.x),Le(a.y,l.offset.y)),a}removeElementScroll(s){const a=Z();pe(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:u}=c;if(c!==this.root&&d&&u.layoutScroll){if(d.isRoot){pe(a,s);const{scroll:h}=this.root;h&&(Le(a.x,-h.offset.x),Le(a.y,-h.offset.y))}Le(a.x,d.offset.x),Le(a.y,d.offset.y)}}return a}applyTransform(s,a=!1){const l=Z();pe(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&pt(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Ze(d.latestValues)&&pt(l,d.latestValues)}return Ze(this.latestValues)&&pt(l,this.latestValues),l}removeTransform(s){const a=Z();pe(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Ze(c.latestValues))continue;kr(c.latestValues)&&c.updateSnapshot();const d=Z(),u=c.measurePageBox();pe(d,u),gs(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return Ze(this.latestValues)&&gs(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==te.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:u,layoutId:h}=this.options;if(!(!this.layout||!(u||h))){if(this.resolvedRelativeTargetAt=te.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),Rt(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),pe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Z(),this.targetWithTransforms=Z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ad(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):pe(this.target,this.layout.layoutBox),Va(this.target,this.targetDelta)):pe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),Rt(this.relativeTargetOrigin,this.target,p.target),pe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Qe.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||kr(this.parent.latestValues)||Na(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===te.timestamp&&(c=!1),c)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;pe(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;gd(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:g}=a;if(!g){this.projectionTransform&&(this.projectionDelta=ht(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=ht(),this.projectionDeltaWithTransform=ht());const f=this.projectionTransform;jt(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=bs(this.projectionDelta,this.treeScale),(this.projectionTransform!==f||this.treeScale.x!==h||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Qe.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},u=ht();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Z(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,f=p!==g,m=this.getStack(),v=!m||m.members.length<=1,x=!!(f&&!v&&this.options.crossfade===!0&&!this.path.some(sf));this.animationProgress=0;let b;this.mixTargetDelta=w=>{const S=w/1e3;Es(u.x,s.x,S),Es(u.y,s.y,S),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rt(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rf(this.relativeTarget,this.relativeTargetOrigin,h,S),b&&Vd(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Z()),pe(b,this.relativeTarget)),f&&(this.animationValues=d,Md(d,c,this.latestValues,S,x,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(De(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$.update(()=>{cn.hasAnimatedSinceResize=!0,this.currentAnimation=Wd(0,ws,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ws),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:d}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&Ha(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Z();const u=fe(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+u;const h=fe(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}pe(a,l),pt(a,d),jt(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Id),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let d=0;d<xs.length;d++){const u="rotate"+xs[d];l[u]&&(c[u]=l[u],s.setStaticValue(u,0))}s.render();for(const d in c)s.setStaticValue(d,c[d]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ud;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=ln(s==null?void 0:s.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const f={};return this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=ln(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Ze(this.latestValues)&&(f.transform=d?d({},""):"none",this.hasProjected=!1),f}const h=u.animationValues||u.latestValues;this.applyTransformsToTarget(),c.transform=bs(this.projectionDeltaWithTransform,this.treeScale,h),d&&(c.transform=d(h,c.transform));const{x:p,y:g}=this.projectionDelta;c.transformOrigin=`${p.origin*100}% ${g.origin*100}% 0`,u.animationValues?c.opacity=u===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=u===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const f in xn){if(h[f]===void 0)continue;const{correct:m,applyTo:v}=xn[f],x=c.transform==="none"?h[f]:m(h[f],u);if(v){const b=v.length;for(let w=0;w<b;w++)c[v[w]]=x}else c[f]=x}return this.options.layoutId&&(c.pointerEvents=u===this?ln(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Ss),this.root.sharedNodes.clear()}}}function Gd(e){e.updateLayout()}function Yd(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?me(u=>{const h=s?n.measuredBox[u]:n.layoutBox[u],p=fe(h);h.min=r[u].min,h.max=h.min+p}):Ha(o,n.layoutBox,r)&&me(u=>{const h=s?n.measuredBox[u]:n.layoutBox[u],p=fe(r[u]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+p)});const a=ht();jt(a,r,n.layoutBox);const l=ht();s?jt(l,e.applyTransform(i,!0),n.measuredBox):jt(l,r,n.layoutBox);const c=!$a(a);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:p}=u;if(h&&p){const g=Z();Rt(g,n.layoutBox,h.layoutBox);const f=Z();Rt(f,r,p.layoutBox),Wa(g,f)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=f,e.relativeTargetOrigin=g,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function qd(e){Qe.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Kd(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Xd(e){e.clearSnapshot()}function Ss(e){e.clearMeasurements()}function Zd(e){e.isLayoutDirty=!1}function Qd(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ts(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Jd(e){e.resolveTargetDelta()}function ef(e){e.calcProjection()}function tf(e){e.resetRotation()}function nf(e){e.removeLeadSnapshot()}function Es(e,t,n){e.translate=H(t.translate,0,n),e.scale=H(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Cs(e,t,n,r){e.min=H(t.min,n.min,r),e.max=H(t.max,n.max,r)}function rf(e,t,n,r){Cs(e.x,t.x,n.x,r),Cs(e.y,t.y,n.y,r)}function sf(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const of={duration:.45,ease:[.4,0,.1,1]},Ps=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),As=Ps("applewebkit/")&&!Ps("chrome/")?Math.round:K;function ks(e){e.min=As(e.min),e.max=As(e.max)}function af(e){ks(e.x),ks(e.y)}function Ha(e,t,n){return e==="position"||e==="preserve-aspect"&&!Pr(vs(t),vs(n),.2)}const lf=Ua({attachResizeListener:(e,t)=>Oe(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),pr={current:void 0},Ga=Ua({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!pr.current){const e=new lf({});e.mount(window),e.setOptions({layoutScroll:!0}),pr.current=e}return pr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),cf={pan:{Feature:Ed},drag:{Feature:Td,ProjectionNode:Ga,MeasureLayout:za}},uf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function df(e){const t=uf.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const ff=4;function Mr(e,t,n=1){we(n<=ff,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=df(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return ka(s)?parseFloat(s):s}else return br(i)?Mr(i,t,n+1):i}function hf(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!br(o))return;const s=Mr(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!br(o))continue;const s=Mr(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const pf=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ya=e=>pf.has(e),mf=e=>Object.keys(e).some(Ya),sn=e=>e===tt||e===_,Os=(e,t)=>parseFloat(e.split(", ")[t]),Ms=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Os(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?Os(o[1],e):0}},gf=new Set(["x","y","z"]),yf=Wt.filter(e=>!gf.has(e));function vf(e){const t=[];return yf.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const bt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ms(4,13),y:Ms(5,14)};bt.translateX=bt.x;bt.translateY=bt.y;const bf=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{a[c]=bt[c](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const d=t.getValue(c);d&&d.jump(a[c]),e[c]=bt[c](l,o)}),e},xf=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Ya);let o=[],s=!1;const a=[];if(i.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],u=Pt(d);const h=t[l];let p;if(Sn(h)){const g=h.length,f=h[0]===null?1:0;d=h[f],u=Pt(d);for(let m=f;m<g&&h[m]!==null;m++)p?we(Pt(h[m])===p,"All keyframes must be of the same type"):(p=Pt(h[m]),we(p===u||sn(u)&&sn(p),"Keyframes must be of the same dimension as the current value"))}else p=Pt(h);if(u!==p)if(sn(u)&&sn(p)){const g=c.get();typeof g=="string"&&c.set(parseFloat(g)),typeof h=="string"?t[l]=parseFloat(h):Array.isArray(h)&&p===_&&(t[l]=h.map(parseFloat))}else u!=null&&u.transform&&(p!=null&&p.transform)&&(d===0||h===0)?d===0?c.set(p.transform(d)):t[l]=u.transform(h):(s||(o=vf(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],c.jump(h))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,c=bf(t,e,a);return o.length&&o.forEach(([d,u])=>{e.getValue(d).set(u)}),e.render(),Nn&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function wf(e,t,n,r){return mf(t)?xf(e,t,n,r):{target:t,transitionEnd:r}}const Sf=(e,t,n,r)=>{const i=hf(e,t,r);return t=i.target,r=i.transitionEnd,wf(e,t,n,r)},_r={current:null},qa={current:!1};function Tf(){if(qa.current=!0,!!Nn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_r.current=e.matches;e.addListener(t),t()}else _r.current=!1}function Ef(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(oe(o))e.addValue(i,o),Pn(r)&&r.add(i),process.env.NODE_ENV==="development"&&si(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(oe(s))e.addValue(i,vt(o,{owner:e})),Pn(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,vt(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const _s=new WeakMap,Ka=Object.keys(It),Cf=Ka.length,Ds=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Pf=$r.length;class Af{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>$.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=In(n),this.isVariantNode=jo(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{});for(const u in d){const h=d[u];a[u]!==void 0&&oe(h)&&(h.set(a[u],!1),Pn(c)&&c.add(u))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,_s.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),qa.current||Tf(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_r.current,process.env.NODE_ENV!=="production"&&si(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){_s.delete(this.current),this.projection&&this.projection.unmount(),De(this.notifyUpdate),De(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=et.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&$.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;if(process.env.NODE_ENV!=="production"&&i&&r){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Gt(!1,l):we(!1,l)}for(let l=0;l<Cf;l++){const c=Ka[l],{isEnabled:d,Feature:u,ProjectionNode:h,MeasureLayout:p}=It[c];h&&(s=h),d(n)&&(!this.features[c]&&u&&(this.features[c]=new u(this)),p&&(a=p))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:d,dragConstraints:u,layoutScroll:h,layoutRoot:p}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!d||u&&dt(u),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:h,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Z()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ds.length;r++){const i=Ds[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Ef(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<Pf;r++){const i=$r[r],o=this.props[i];(Vt(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=vt(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Kr(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!oe(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ii),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Xa extends Af{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=$0(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){F0(this,r,s);const a=Sf(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function kf(e){return window.getComputedStyle(e)}class Of extends Xa{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(et.has(n)){const r=Jr(n);return r&&r.default||0}else{const r=kf(t),i=(Lo(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ia(t,n)}build(t,n,r,i){Ur(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return qr(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;oe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Uo(t,n,r,i)}}class Mf extends Xa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(et.has(n)){const r=Jr(n);return r&&r.default||0}return n=Ho.has(n)?n:Fr(n),t.getAttribute(n)}measureInstanceViewportBox(){return Z()}scrapeMotionValuesFromProps(t,n){return Yo(t,n)}build(t,n,r,i){Gr(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Go(t,n,r,i)}mount(t){this.isSVGTag=Yr(t.tagName),super.mount(t)}}const _f=(e,t)=>Wr(e)?new Mf(t,{enableHardwareAcceleration:!1}):new Of(t,{enableHardwareAcceleration:!0}),Df={layout:{ProjectionNode:Ga,MeasureLayout:za}},jf={...rd,...Cu,...cf,...Df},Za=jc((e,t)=>fu(e,t,jf,_f));function Rf(e){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:y.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function Nf(e){const{children:t,parentRef:n,onlyChild:r}=e,[i,o]=P.useState({top:0,left:0});return P.useLayoutEffect(()=>{if(n.current){const s=n.current.getBoundingClientRect();o({top:s.top,left:s.left+s.width})}},[n]),r?t:Ol.createPortal(y.jsx(Za.div,{style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},children:t}),n.current)}function Qa({item:e,level:t=0,...n}){var E;const{isActive:r,isCollapsed:i,expanded:o,toggleExpand:s}=n,a=`level-${t}`,l=i?"collapsed":"expanded",c=r(e.id)?"active":"",d=(A,O=a)=>`${A} ${O} ${l} ${c}`,u=!!((E=e.children)!=null&&E.length),[h,p]=P.useState(!1),g=P.useRef();function f(A){var z;const{level:O,hovered:k,parentRef:j}=A;return!u||i&&O>=2&&!k?null:y.jsx(Nf,{parentRef:j,onlyChild:!i||i&&O<2,children:y.jsx(Za.div,{className:d("menu-item__dropdown",`level-${O}`),initial:{height:i?"auto":0},animate:{height:i||o(e.id)?"auto":0},transition:{duration:.2},children:(z=e.children)==null?void 0:z.map(G=>P.createElement(Qa,{...n,key:G.id,item:G,level:O}))},+i)})}const m=window.location.origin,v=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},x=window.location.pathname.split("/")[1],b=v.pathname.split("/")[1],w=n.ssr||!m.includes("local")&&m!==v.origin||b!==x,S=u?"div":w?"a":Lr.Link,T=e.path||"#";return y.jsxs("div",{ref:g,className:d("menu-item__wrapper"),onMouseEnter:()=>i&&p(!0),onMouseLeave:()=>i&&p(!1),children:[y.jsxs(S,{to:T,href:T,style:{paddingLeft:`${i?"0.5rem":`${t*1}rem`}`},className:d("menu-item__link"),onClick:A=>{u&&(A.preventDefault(),i||s(e.id))},children:[t!==0&&y.jsx(Vf,{cls:d,item:e}),y.jsx("span",{className:d("menu-item__label"),children:e.name}),u&&y.jsx("div",{className:d("menu-item__icon-arrow__wrapper"),children:y.jsx(Rf,{className:d(`menu-item__icon-arrow__icon ${o(e.id)?"open":"close"}`)})})]}),f({level:t+1,hovered:h,parentRef:g})]},e.id)}function Vf({item:e,cls:t}){var s,a;const[n,r]=P.useState(!1),i=()=>{r(!0)},o=(s=e.icon)==null?void 0:s.endsWith(".svg");return y.jsx("div",{className:t("menu-item__icon"),children:n?y.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(a=e.name.trim().at(0))==null?void 0:a.toUpperCase()}):o?y.jsx(C.ReactSVG,{src:e.icon,beforeInjection:l=>{l.setAttribute("style","margin: 0 auto;"),l.querySelectorAll("path").forEach(d=>{d.setAttribute("stroke","currentColor")})}}):y.jsx("img",{src:e.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:i})})}function If(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:y.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function Lf(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:y.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function zf(e){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,children:y.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const Ff=`.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;padding:0 8px}.side-bar.expanded{width:18rem}.side-bar.collapsed{width:64px;padding-left:4px;padding-right:4px}.side-bar__menu{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.side-bar__menu.collapsed{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px}.side-bar__logout-btn__text.collapsed{display:none}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:0 16px;min-height:48px;border-radius:.375rem}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__logout-btn.collapsed{justify-content:center}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;margin-top:4px}.menu-item__wrapper:first-child,.menu-item__wrapper.collapsed{margin-top:0}.menu-item__wrapper.collapsed.level-1{margin-top:4px}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:auto}.menu-item__link.menu-item__link.collapsed.level-0{display:none}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.menu-item__icon.collapsed.level-1{width:100%}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-1{text-align:center;margin-left:0;display:none}.menu-item__label.level-0{color:#85858a}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:-3px}.menu-item__icon-arrow__wrapper.expanded{right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{margin-top:4px;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}
6
- `;function Bf(e){return y.jsx(bo,{styles:[wc,Ff],style:{zIndex:1200},children:y.jsx($f,{...e})})}function $f(e){const{baseUrl:t,menuPath:n}=e,r=Lr.useLocation(),[i,o]=P.useState([]),[s,a]=P.useState(!1),[l,c]=P.useState({}),d=Ja(i),u=window.location.origin+r.pathname,h=Wf(d,u).filter(b=>b.parentKey!==0);console.log("matchPaths:",h);const p=b=>{c({...l,[b]:!l[b]})},g=()=>{a(!s)};P.useEffect(()=>{(async()=>{const w=t+(n||"/global-menu-config/api/v1/menu-items/user"),S=await kl.get(w,{withCredentials:!0}).then(A=>A.data).catch(A=>{var O,k;C.pushError(((k=(O=A.response)==null?void 0:O.data)==null?void 0:k.errorMessage)||"Have error when get menu items")}),T={};S.forEach(A=>{A.children&&(T[A.id]=!0)}),c(T);let E=S.map(A=>({...A,parentKey:0}));e.replacePath&&(E=el(E,e.replacePath)),o(E)})()},[t,n,e.replacePath]);const[f,m]=P.useState(!1),v=s?"collapsed":"expanded",x=b=>`${b} ${v}`;return y.jsxs("div",{className:x("side-bar"),children:[y.jsx("div",{className:x("side-bar__wrapper-toggle-btn"),children:y.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:g,children:s?y.jsx(Lf,{}):y.jsx(If,{})})}),y.jsx(Oo,{className:x("side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:i.map(b=>{const w=S=>h.some(T=>T.id===S);return y.jsx(Qa,{item:b,isActive:w,isCollapsed:s,expanded:S=>l[S],toggleExpand:p,replacePath:e.replacePath,ssr:e.ssr},b.id)})}),y.jsxs("div",{className:x("side-bar__wrap-btn-logout"),children:[y.jsxs("button",{className:x("side-bar__logout-btn"),onClick:()=>m(!0),children:[y.jsx(zf,{}),y.jsx("span",{className:x("side-bar__logout-btn__text"),children:"Logout"})]}),y.jsx(vo,{isOpen:f,onClose:()=>m(!1),onConfirm:()=>e.logout?e.logout():C.logout(e.baseUrl)})]})]})}function Ja(e){let t=[];for(const n of e)t.push(n),n.children&&(t=t.concat(Ja(n.children)));return t}function Wf(e,t){let n=e.find(i=>i.path&&t.includes(i.path)),r=[];for(;n;)r=[n,...r],n=e.find(i=>i.id===n.parentKey);return r}function el(e,t){return e.map(n=>(n.path&&(n.path=t(n.path)),n.children&&n.children.length>0&&(n.children=el(n.children,t)),n))}const Uf=({children:e})=>y.jsxs(R.Stack,{justifyContent:"center",alignItems:"center",sx:{backgroundColor:"#FAFAFA",minHeight:"450px"},children:[y.jsx(Hf,{}),e]});function Hf(){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"150",height:"150",fill:"none",viewBox:"0 0 150 150",children:[y.jsx("path",{fill:"#F9FAFB",d:"M120.843 66.48a2.885 2.885 0 100-5.77 2.885 2.885 0 000 5.77zM75 127.04c28.319 0 51.276-9.006 51.276-20.115 0-11.11-22.957-20.115-51.276-20.115-28.32 0-51.276 9.006-51.276 20.115 0 11.109 22.957 20.115 51.276 20.115z"}),y.jsx("path",{fill:"#DDD",d:"M73.354 34.489l-2.13 13.355H57.378L73.354 34.49z"}),y.jsx("path",{fill:"#F9FAFB",d:"M71.223 48.157H57.38a.313.313 0 01-.295-.206.313.313 0 01.093-.346L73.154 34.25a.313.313 0 01.508.288l-2.13 13.357a.308.308 0 01-.308.263zm-12.983-.625h12.717l1.957-12.268L58.24 47.532zM74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),y.jsx("path",{fill:"#000",d:"M74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),y.jsx("path",{fill:"#85858A",d:"M74.454 58.965l3.503 4.775c-.209-.284-.431-.56-.667-.83-2.59-2.952-6.367-4.428-10.378-4.428-1.74 0-3.524.278-5.275.833l-3.503-4.775a17.477 17.477 0 015.275-.833c4.011 0 7.788 1.476 10.378 4.428.236.27.458.546.667.83z"}),y.jsx("path",{fill:"#F9FAFB",d:"M77.957 64.053a.314.314 0 01-.253-.128c-.203-.278-.422-.55-.65-.81-2.446-2.786-6.047-4.32-10.143-4.32-1.727 0-3.468.274-5.18.818a.316.316 0 01-.348-.113l-3.503-4.775a.312.312 0 01.158-.483 17.748 17.748 0 015.37-.847c4.278 0 8.047 1.61 10.612 4.533.24.274.47.561.685.853l3.5 4.772.003.003a.311.311 0 01-.251.497zM66.912 58.17c3.207 0 6.128.905 8.471 2.59l-1.18-1.61c-.203-.278-.423-.55-.65-.81-2.446-2.786-6.048-4.32-10.144-4.32-1.586 0-3.186.231-4.762.691l3.11 4.24a17.67 17.67 0 015.155-.782zM56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),y.jsx("path",{fill:"#000",d:"M56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),y.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),y.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),y.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),y.jsx("path",{fill:"#000",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),y.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),y.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),y.jsx("path",{fill:"#EEE",d:"M71.03 70.342a11.476 11.476 0 01-1.11 2.438 12.543 12.543 0 01-2.703 3.136c-2.342 1.96-5.159 2.937-7.82 2.937-2.66 0-5.164-.98-6.88-2.938C49.078 72 50.09 65.651 54.775 61.738c2.343-1.96 5.16-2.938 7.82-2.938s5.165.98 6.881 2.938a8.329 8.329 0 01.754 1.008 8.034 8.034 0 011.056 2.539c.376 1.62.28 3.364-.257 5.057z"}),y.jsx("path",{fill:"#98A2B3",d:"M71.289 65.285h-9.161c-.967 0-1.632-.754-1.482-1.688.148-.933 1.052-1.687 2.02-1.687h6.956a8.024 8.024 0 011.667 3.375zM71.03 70.342a11.476 11.476 0 01-1.11 2.438c-.155.256-.32.51-.5.76h-8.705c-.918 0-1.543-.716-1.403-1.6.142-.883.997-1.6 1.913-1.6h9.805v.002z"}),y.jsx("path",{fill:"#F7F9FC",d:"M73.632 34.257h38.646l-.591 3.703-10.155 63.675H48.801l3.071-19.259c2.022 1.048 4.33 1.571 6.72 1.571 3.213 0 6.576-.946 9.602-2.839h27.097c.471 0 .909-.366.983-.82.072-.452-.25-.819-.72-.819H70.44c2.295-1.933 3.996-4.255 5.068-6.708h21.116c.47 0 .908-.367.98-.818.072-.453-.25-.82-.72-.82H76.129c.712-2.236.91-4.531.57-6.71h21.256c.47 0 .908-.366.98-.817.073-.453-.25-.821-.719-.821H76.333a12.247 12.247 0 00-2.544-4.642c-2.59-2.951-6.367-4.427-10.378-4.427-2.389 0-4.86.523-7.215 1.569l1.184-7.432h13.845l2.13-13.354.277-.232zM93.96 89.454c.47 0 .908-.366.982-.82.072-.452-.25-.819-.72-.819H61.258c-.468 0-.907.367-.979.818-.072.453.25.821.718.821h32.964zm5.325-33.386c.47 0 .908-.367.981-.818.072-.453-.25-.82-.72-.82H77.201c-.47 0-.907.366-.979.82-.072.451.247.818.718.818h22.346z"}),y.jsx("path",{fill:"#F9FAFB",d:"M101.532 101.946h-52.73a.311.311 0 01-.309-.361l3.072-19.259a.312.312 0 01.453-.228c1.942 1.006 4.215 1.537 6.576 1.537 3.255 0 6.517-.966 9.435-2.792a.317.317 0 01.165-.047h27.098c.316 0 .625-.256.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H70.44a.313.313 0 01-.201-.551c2.175-1.834 3.898-4.114 4.983-6.595a.313.313 0 01.286-.187h21.116c.316 0 .625-.254.672-.556a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H76.128a.314.314 0 01-.299-.407c.696-2.182.889-4.453.56-6.566a.31.31 0 01.308-.361h21.256c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.321.423.423 0 00-.331-.138h-21.88a.312.312 0 01-.3-.225 11.883 11.883 0 00-2.481-4.523c-2.446-2.786-6.047-4.32-10.143-4.32-2.367 0-4.818.532-7.09 1.542a.316.316 0 01-.317-.037.31.31 0 01-.118-.298l1.184-7.431a.313.313 0 01.309-.264h13.578l2.087-13.092a.314.314 0 01.107-.19l.278-.235a.316.316 0 01.201-.074h38.649a.312.312 0 01.308.361L101.84 101.68a.31.31 0 01-.308.267zm-52.365-.625h52.098l10.646-66.753H73.746l-.102.086-2.11 13.24a.313.313 0 01-.309.264H57.647l-1.054 6.61c2.201-.9 4.546-1.373 6.818-1.373 4.278 0 8.047 1.61 10.613 4.533a12.512 12.512 0 012.541 4.535h21.652c.32 0 .614.13.807.356.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082H77.058c.253 1.971.078 4.059-.51 6.084h20.337c.32 0 .614.13.807.357.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082h-20.91c-1.019 2.252-2.544 4.337-4.444 6.083h24.285c.32 0 .614.13.807.357.191.225.27.517.22.824-.097.607-.663 1.083-1.29 1.083H68.283c-2.998 1.858-6.347 2.839-9.69 2.839-2.307 0-4.536-.488-6.48-1.416l-2.946 18.477zM93.96 89.767H60.997c-.318 0-.612-.13-.805-.357a1.004 1.004 0 01-.221-.827c.097-.607.662-1.082 1.287-1.082h32.964c.32 0 .614.131.807.357.192.225.27.517.22.824-.095.608-.661 1.085-1.288 1.085zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.42.42 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001zm38.028-31.746H76.94c-.32 0-.612-.13-.805-.356a1.004 1.004 0 01-.221-.824c.097-.608.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.663 1.08-1.289 1.08zm-22.085-1.64c-.315 0-.622.256-.67.558a.387.387 0 00.079.32.423.423 0 00.33.135h22.346c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H77.201v.002z"}),y.jsx("path",{fill:"#DDD",d:"M55.21 61.447l-.332 2.085c-.052.039-.103.078-.153.12-1.13.942-1.372 2.473-.544 3.416.036.042.075.082.115.12l-1.44 9.019a8.348 8.348 0 01-.3-.325c-1.709-1.949-2.312-4.503-1.903-7.056.407-2.554 1.823-5.106 4.154-7.054.13-.11.267-.22.403-.325zM96.884 71.122c.471 0 .792.367.72.821-.073.451-.511.818-.98.818H75.507c.237-.54.444-1.087.618-1.639h20.758z"}),y.jsx("path",{fill:"#DDD",d:"M96.623 73.074H75.508a.31.31 0 01-.261-.142.316.316 0 01-.025-.296c.235-.536.439-1.076.607-1.607a.31.31 0 01.299-.218h20.756c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.662 1.08-1.289 1.08zm-20.643-.625h20.643c.317 0 .625-.254.672-.556a.392.392 0 00-.079-.32.423.423 0 00-.332-.138h-20.53a16.42 16.42 0 01-.374 1.014zM95.555 79.468c.47 0 .791.367.719.818-.072.453-.511.821-.982.821H68.193a19.625 19.625 0 002.248-1.638h25.114z"}),y.jsx("path",{fill:"#DDD",d:"M95.292 81.42H68.193a.313.313 0 01-.165-.578 19.558 19.558 0 002.148-1.56l.059-.049a.33.33 0 01.205-.076h25.114c.32 0 .614.13.807.357.192.225.27.517.221.824-.097.605-.662 1.082-1.29 1.082zm-26.063-.626h26.063c.316 0 .625-.255.672-.556a.39.39 0 00-.08-.32.423.423 0 00-.331-.137h-25c-.425.355-.868.694-1.324 1.013z"}),y.jsx("path",{fill:"#EEE",d:"M115.432 38.557l-.495 3.106-.095.598-10.06 63.074H51.517l-2.716-3.702h52.731l10.155-63.672.592-3.704 3.153 4.3z"}),y.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.31.31 0 01-.252-.127l-2.716-3.702a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.464l10.113-63.41.592-3.704a.311.311 0 01.56-.135l3.153 4.3c.05.067.069.152.057.234l-.591 3.704-10.061 63.075a.312.312 0 01-.308.262zm-53.107-.625h52.839l10.019-62.81.57-3.576-2.634-3.592-.473 2.966-10.156 63.672a.313.313 0 01-.308.264H49.418l2.257 3.076z"}),y.jsx("path",{fill:"#DDD",d:"M108.03 109.039l3.503 4.775H58.8l-3.503-4.775h52.733z"}),y.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126H58.8a.31.31 0 01-.252-.127l-3.503-4.775a.312.312 0 01.253-.498h52.734c.1 0 .193.048.251.128l3.503 4.775a.314.314 0 01-.253.497zm-52.575-.625h51.958l-3.044-4.15H55.913l3.045 4.15z"}),y.jsx("path",{fill:"#F7F9FC",d:"M118.776 41.663l-10.746 67.376H55.297l.59-3.704h48.895l10.154-63.672h3.84z"}),y.jsx("path",{fill:"#F9FAFB",d:"M108.03 109.351H55.297a.313.313 0 01-.308-.361l.59-3.703a.313.313 0 01.308-.263h48.628l10.112-63.41a.314.314 0 01.309-.264h3.84a.313.313 0 01.308.361l-10.745 67.376a.313.313 0 01-.309.264zm-52.366-.625h52.1l10.645-66.751h-3.207l-10.112 63.41a.314.314 0 01-.308.264H56.154l-.49 3.077z"}),y.jsx("path",{fill:"#EEE",d:"M118.776 41.663l3.503 4.775-10.746 67.376-3.503-4.775 10.746-67.376z"}),y.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126a.306.306 0 01-.251-.127l-3.503-4.775a.312.312 0 01-.057-.235l10.746-67.377a.309.309 0 01.234-.254.309.309 0 01.325.12l3.503 4.775a.31.31 0 01.057.234l-10.746 67.377a.309.309 0 01-.308.262zm-3.174-5.168l2.982 4.067 10.607-66.508-2.982-4.067-10.607 66.508z"}),y.jsx("path",{fill:"#85858A",d:"M49.987 81.18L31.79 96.393c-.043.036-.088.068-.132.101l-.061.046c-.036.025-.074.047-.11.071-.026.017-.053.035-.079.05-.02.011-.04.02-.06.032a2.11 2.11 0 01-.148.075l-.055.022a2.406 2.406 0 01-.294.107l-.076.021c-.04.01-.08.02-.121.028l-.074.014a4.26 4.26 0 01-.132.018l-.062.007c-.064.005-.13.008-.193.008-.545 0-1.056-.2-1.407-.6l-.649-.739a1.784 1.784 0 01-.09-.112l3.503 4.775c.027.039.058.076.09.112l.648.739c.352.4.863.6 1.408.6.063 0 .127-.003.193-.008.02-.002.041-.006.062-.007l.132-.018.074-.014c.04-.009.08-.017.12-.028l.077-.021.055-.015.04-.015c.067-.023.134-.049.2-.077l.04-.015c.005-.003.01-.006.015-.007.05-.024.098-.049.148-.075.019-.01.037-.017.055-.028l.005-.004c.026-.015.053-.033.08-.05.033-.021.067-.04.1-.064a.025.025 0 00.009-.007l.061-.046c.034-.025.068-.048.1-.075a.364.364 0 00.032-.026l18.197-15.213-3.504-4.775z"}),y.jsx("path",{fill:"#F9FAFB",d:"M33.694 102.081c-.658 0-1.241-.252-1.641-.707l-.65-.739a1.901 1.901 0 01-.106-.134l-3.501-4.772c0-.001-.002-.001-.002-.003a.312.312 0 01.503-.369l.001.003c.023.03.046.06.071.089l.649.739c.279.318.696.493 1.172.493.056 0 .11-.003.165-.009l.056-.007c.037-.004.075-.008.114-.015l.047-.01.018-.004.106-.023.068-.019a2.276 2.276 0 00.257-.093l.047-.019c.044-.02.087-.043.13-.067l.053-.028c.011-.006.024-.013.035-.022l.058-.037a2.329 2.329 0 00.099-.067l.04-.03c.035-.027.07-.052.104-.081l18.198-15.213a.314.314 0 01.45.055l3.504 4.775a.313.313 0 01-.052.425l-18.23 15.246c-.03.023-.059.045-.09.066l-.04.029-.05.038a1.955 1.955 0 01-.095.062l-.052.032a.92.92 0 01-.058.036c-.006.005-.011.007-.017.01a.658.658 0 01-.044.022l-.013.006c-.055.029-.11.058-.166.085l-.017.008-.044.018c-.075.032-.15.061-.225.086-.013.006-.03.011-.045.017l-.046.012-.015.004-.087.024c-.046.011-.09.022-.137.031l-.015.002-.07.014c-.05.009-.1.016-.148.021l-.018.003a1.864 1.864 0 01-.27.017zm-4.003-4.825l2.112 2.877c.022.031.047.061.072.091l.648.739c.311.355.8.531 1.338.486l.054-.007a1.482 1.482 0 00.161-.025l.017-.003a1.73 1.73 0 00.105-.024c.023-.005.045-.012.068-.018l.048-.012a.295.295 0 01.034-.014c.059-.02.118-.042.177-.068.01-.006.023-.01.036-.014l.01-.004c.045-.021.089-.045.133-.068a.296.296 0 01.035-.018l.01-.006c.002-.003.006-.004.01-.005l.034-.021.065-.041a.622.622 0 00.057-.036l.033-.025.053-.04.063-.047.027-.022 17.974-15.025-3.132-4.271L31.99 96.633c-.044.037-.089.071-.135.105l-.03.023c-.017.013-.032.025-.049.036-.033.023-.067.043-.1.064l-.048.03c-.021.015-.042.027-.063.04-.017.01-.033.018-.05.026l-.018.01c-.054.029-.11.058-.165.084-.016.007-.03.014-.047.02l-.016.007a2.6 2.6 0 01-.554.173l-.015.003c-.022.004-.046.01-.068.013-.05.008-.099.015-.149.02l-.02.003a2.429 2.429 0 01-.772-.035z"}),y.jsx("path",{fill:"#98A2B3",d:"M76.699 64.414a12.649 12.649 0 00-.367-1.639 12.218 12.218 0 00-2.544-4.642c-2.59-2.951-6.367-4.426-10.378-4.426-2.39 0-4.861.522-7.216 1.57a19.487 19.487 0 00-4.58 2.862c-6.318 5.28-8.203 13.503-4.815 19.405l-18.2 15.216c-.956.797-1.162 2.093-.462 2.894l.65.74c.35.4.863.6 1.405.6a2.51 2.51 0 001.597-.6l18.198-15.212a13.02 13.02 0 001.885 1.193c2.022 1.046 4.33 1.57 6.721 1.57 3.214 0 6.576-.944 9.6-2.838.753-.47 1.482-.999 2.249-1.639 2.293-1.935 3.996-4.255 5.068-6.71.234-.537.443-1.087.616-1.638.713-2.231.911-4.53.573-6.706zm-9.481 11.503c-2.343 1.96-5.16 2.937-7.82 2.937s-5.165-.979-6.881-2.937c-3.438-3.917-2.425-10.264 2.26-14.178 2.342-1.96 5.16-2.938 7.82-2.938s5.164.98 6.88 2.938a8.34 8.34 0 01.754 1.008 8.029 8.029 0 011.056 2.54c.375 1.62.281 3.364-.258 5.056a11.476 11.476 0 01-1.11 2.438 12.45 12.45 0 01-2.701 3.136z"}),y.jsx("path",{fill:"#F9FAFB",d:"M30.192 97.307c-.659 0-1.242-.251-1.64-.708l-.65-.74a2.048 2.048 0 01-.486-1.52c.055-.68.412-1.344.982-1.82L46.4 77.471c-1.585-2.903-1.989-6.42-1.136-9.936.882-3.635 3.066-7.057 6.151-9.636a19.8 19.8 0 014.654-2.907c2.347-1.045 4.886-1.597 7.343-1.597 4.278 0 8.048 1.61 10.613 4.533a12.492 12.492 0 012.61 4.76c.16.543.286 1.106.375 1.677.344 2.207.141 4.577-.584 6.85a16.681 16.681 0 01-.627 1.668c-1.123 2.569-2.906 4.927-5.155 6.824a20.11 20.11 0 01-2.284 1.664c-3.014 1.887-6.39 2.886-9.766 2.886-2.46 0-4.833-.556-6.864-1.606A13.36 13.36 0 0150 81.58L31.989 96.633a2.817 2.817 0 01-1.797.674zM63.41 54.019c-2.37 0-4.82.534-7.089 1.544a19.182 19.182 0 00-4.507 2.815c-6.13 5.123-8.126 13.12-4.744 19.01a.313.313 0 01-.071.395L28.799 93c-.442.37-.72.875-.76 1.389-.032.401.086.777.333 1.06l.649.738c.279.32.694.495 1.17.495.495 0 .992-.188 1.398-.528l18.198-15.211a.313.313 0 01.39-.009c.583.443 1.2.835 1.84 1.164 1.941 1.005 4.216 1.536 6.577 1.536 3.257 0 6.52-.965 9.434-2.79.751-.47 1.476-.997 2.213-1.614 2.175-1.833 3.898-4.114 4.983-6.594.234-.536.437-1.077.605-1.607.696-2.184.89-4.453.561-6.565a12.39 12.39 0 00-.357-1.598 11.865 11.865 0 00-2.48-4.525c-2.445-2.786-6.048-4.32-10.142-4.32zm-4.014 25.148c-2.868 0-5.396-1.08-7.117-3.045-1.536-1.75-2.276-4.066-2.086-6.525.234-3.015 1.83-5.968 4.38-8.098 2.323-1.942 5.172-3.011 8.023-3.011 2.868 0 5.396 1.08 7.117 3.044a8.743 8.743 0 01.783 1.046 8.385 8.385 0 011.097 2.637c.385 1.66.293 3.466-.265 5.221a11.584 11.584 0 01-1.14 2.506 12.926 12.926 0 01-2.77 3.215c-2.322 1.94-5.17 3.01-8.022 3.01zm3.2-20.054c-2.704 0-5.411 1.018-7.62 2.865-2.423 2.023-3.94 4.82-4.16 7.668-.177 2.289.51 4.442 1.934 6.064 1.6 1.826 3.961 2.832 6.646 2.832 2.704 0 5.411-1.018 7.62-2.865a12.3 12.3 0 002.637-3.059c.313-.518.582-1.057.803-1.603.101-.25.194-.508.276-.768.524-1.648.611-3.34.252-4.893a7.792 7.792 0 00-1.739-3.41c-1.603-1.826-3.964-2.831-6.649-2.831z"}),y.jsx("path",{fill:"#F7F9FC",d:"M59.778 66.756a.997.997 0 00-.11-.225.974.974 0 00-.103-.14 1.233 1.233 0 00-.94-.4 1.694 1.694 0 00-1.07.401c-.372.31-.575.734-.586 1.14-.008.292.082.574.278.797.235.267.576.402.94.402s.749-.134 1.068-.402c.152-.127.277-.272.371-.429.045-.072.08-.147.113-.225.125-.305.14-.632.039-.92z"}),y.jsx("path",{fill:"#F7F9FC",d:"M58.64 64.293a1.938 1.938 0 00-.373-.639c-.414-.472-1.018-.708-1.659-.708a2.941 2.941 0 00-1.883.707c-1.13.941-1.372 2.472-.544 3.415.037.042.075.082.115.12.405.391.958.586 1.543.586.375 0 .764-.08 1.135-.242.262-.114.515-.27.75-.464.266-.225.486-.48.651-.755.063-.105.118-.212.164-.32l.032-.078c.22-.54.246-1.115.07-1.622z"}),y.jsx("path",{fill:"#DDD",d:"M104.782 105.335H51.517l-2.716-3.702h52.731l3.25 3.702z"}),y.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.308.308 0 01-.252-.128l-2.716-3.701a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.73c.09 0 .175.039.235.107l3.25 3.701c.08.092.1.224.05.335a.317.317 0 01-.286.183zm-53.107-.625h52.415l-2.701-3.076H49.417l2.258 3.076z"}),y.jsx("path",{fill:"#DDD",d:"M98.215 62.775c.47 0 .792.367.72.82-.073.452-.512.819-.981.819H76.698a12.81 12.81 0 00-.365-1.639h21.882z"}),y.jsx("path",{fill:"#DDD",d:"M97.954 64.726H76.7a.312.312 0 01-.309-.265 12.214 12.214 0 00-.357-1.599.309.309 0 01.05-.275.31.31 0 01.25-.125h21.884c.319 0 .614.131.806.357.192.225.271.518.221.825-.097.607-.663 1.082-1.29 1.082zm-20.99-.625h20.99c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H76.743c.088.335.161.674.22 1.014zM99.547 54.43c.471 0 .792.366.72.82-.073.451-.512.818-.981.818H76.94c-.47 0-.79-.367-.718-.818.072-.453.51-.82.98-.82h22.345z"}),y.jsx("path",{fill:"#DDD",d:"M99.286 56.38H76.94c-.32 0-.613-.129-.806-.355a1.004 1.004 0 01-.22-.824c.097-.607.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.191.225.271.518.221.825-.096.606-.663 1.08-1.29 1.08zM77.2 54.742c-.315 0-.622.255-.67.557a.391.391 0 00.078.32.423.423 0 00.33.136h22.347c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H77.2zM94.222 87.815c.471 0 .792.367.72.818-.073.453-.511.821-.982.821H60.997c-.468 0-.79-.366-.718-.82.072-.452.511-.819.98-.819h32.963z"}),y.jsx("path",{fill:"#DDD",d:"M93.961 89.767H60.997c-.318 0-.61-.13-.804-.356a1.004 1.004 0 01-.22-.826c.096-.607.662-1.082 1.287-1.082h32.962c.32 0 .614.13.807.357.192.225.27.516.22.823-.095.607-.662 1.084-1.288 1.084zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.419.419 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001z"}),y.jsx("path",{fill:"#DDD",d:"M80.201 69.189c-.025-.16-.053-.32-.083-.478l-.008-.046-.02-.089c-.026-.129-.056-.258-.086-.386-.011-.047-.022-.096-.035-.143a14.558 14.558 0 00-.133-.496c-.065-.223-.14-.444-.218-.663-.01-.028-.017-.056-.028-.084-.01-.029-.023-.057-.033-.085a11.396 11.396 0 00-.553-1.268c-.013-.023-.022-.047-.033-.07-.017-.034-.038-.067-.055-.1a16.26 16.26 0 00-.219-.4c-.032-.055-.061-.11-.094-.164a11.61 11.61 0 00-.337-.536v-.003c-.1-.147-.2-.293-.306-.438l-3.503-4.775a12.034 12.034 0 01.644.977l.095.164a16.362 16.362 0 01.308.57c.104.205.203.412.294.621l.021.053a11.536 11.536 0 01.297.761 12.302 12.302 0 01.47 1.69 11.138 11.138 0 01.111.614c.339 2.175.14 4.473-.57 6.707a16.401 16.401 0 01-.619 1.64c-.048.11-.1.22-.15.33-.04.086-.08.172-.122.258l-.104.214c-.043.086-.088.17-.132.257a11.944 11.944 0 01-.253.467l-.117.206-.151.256-.112.186c-.134.215-.271.43-.414.64l-.087.127a17.85 17.85 0 01-.902 1.204l-.11.135c-.15.18-.304.36-.463.537l-.075.082a18.882 18.882 0 01-1.029 1.053l-.27.249c-.048.044-.096.09-.146.134-.142.127-.285.25-.43.374a20.29 20.29 0 01-1.082.844l-.084.063a21.276 21.276 0 01-1.082.73c-.209.13-.418.256-.63.377-.056.032-.112.06-.167.093-.186.104-.373.205-.56.303l-.213.11a18.01 18.01 0 01-.62.298c-.038.017-.074.035-.112.051-.048.023-.098.043-.147.064-.136.06-.272.12-.41.175l-.204.082c-.12.047-.24.095-.36.14-.072.028-.145.055-.217.081-.118.043-.236.083-.355.124a9.937 9.937 0 01-.218.072c-.097.032-.195.06-.293.091a16.404 16.404 0 01-.997.275 16.845 16.845 0 01-1.56.308c-.123.019-.247.036-.37.052l-.267.035c-.13.015-.257.026-.385.037-.083.007-.168.017-.251.023-.142.01-.282.018-.422.025-.071.004-.14.008-.212.01-.21.01-.42.013-.63.013-2.39 0-4.697-.523-6.721-1.57a12.644 12.644 0 01-1.885-1.195l3.503 4.775c.593.454 1.224.851 1.885 1.194 2.022 1.048 4.33 1.571 6.72 1.571.209 0 .419-.004.63-.012.07-.003.14-.009.21-.011.141-.007.283-.014.423-.025l.25-.023c.13-.01.257-.023.386-.037.09-.01.178-.022.267-.033.124-.017.247-.032.37-.052l.277-.044.363-.064c.093-.018.187-.036.28-.056.12-.025.24-.05.358-.077a16.81 16.81 0 00.918-.235l.362-.107.18-.053.113-.037.218-.073c.118-.04.236-.08.354-.123l.218-.08c.12-.045.24-.092.36-.141l.204-.082c.137-.057.273-.115.41-.175.048-.022.098-.042.147-.064a.206.206 0 01.026-.011c.028-.013.056-.028.084-.04a18.01 18.01 0 001.393-.711c.04-.023.08-.042.12-.066.014-.008.031-.02.046-.027.211-.121.422-.246.63-.377.213-.133.423-.272.633-.415l.057-.038c.13-.09.262-.183.393-.277l.084-.063c.167-.122.334-.247.5-.378l.038-.029c.089-.07.18-.14.268-.214a19.263 19.263 0 00.703-.598l.146-.134c.09-.083.182-.165.27-.25l.014-.012c.017-.015.032-.032.048-.047.148-.142.293-.287.436-.43l.135-.14c.134-.14.266-.28.395-.423l.059-.063.015-.018c.158-.178.312-.357.462-.537l.11-.134c.132-.162.263-.326.388-.492.013-.019.03-.037.044-.056l.013-.017c.158-.211.31-.424.458-.639l.086-.125c.143-.213.282-.426.415-.642l.027-.04.086-.146c.051-.084.101-.17.151-.255l.117-.207.14-.256.111-.21a8.98 8.98 0 00.13-.258c.037-.07.072-.142.106-.214l.123-.258c.016-.038.036-.074.052-.111l.098-.22c.237-.54.444-1.087.618-1.639.72-2.237.92-4.534.58-6.712z"}),y.jsx("path",{fill:"#F9FAFB",d:"M62.094 89.035c-2.46 0-4.833-.556-6.864-1.607a13.081 13.081 0 01-1.931-1.224.303.303 0 01-.063-.064l-3.503-4.775a.313.313 0 01.442-.433c.57.438 1.189.83 1.839 1.165 1.941 1.006 4.215 1.536 6.576 1.536.196 0 .404-.004.618-.012.04-.001.08-.004.12-.007l.087-.006c.14-.007.277-.014.416-.025.054-.004.108-.01.16-.013l.085-.009c.13-.01.255-.023.378-.037.065-.007.13-.017.196-.025l.068-.009a16.852 16.852 0 00.607-.09l.028-.004c.118-.02.237-.04.355-.063l.277-.055c.116-.024.234-.05.351-.077.093-.02.185-.043.278-.065.117-.029.235-.058.351-.09l.275-.075c.118-.033.236-.07.354-.106l.04-.012c.083-.025.166-.052.248-.078l.214-.07c.116-.04.232-.08.348-.123.071-.026.143-.051.214-.08.118-.044.236-.09.354-.137l.055-.02.147-.059c.135-.055.268-.114.403-.172l.063-.028c.027-.01.055-.023.081-.035l.108-.05a18.639 18.639 0 001.371-.698l.068-.038.096-.052a16.582 16.582 0 001.242-.78c.147-.101.296-.204.443-.31l.083-.062c.18-.132.342-.254.493-.372l.038-.03c.187-.148.362-.29.532-.431.143-.121.283-.243.422-.367l.086-.079.094-.086c.077-.07.155-.14.23-.211l.062-.06c.14-.135.28-.272.43-.424l.133-.137c.132-.138.262-.276.389-.417l.073-.079c.147-.164.296-.337.456-.53l.108-.131c.138-.168.263-.326.38-.483l.058-.073c.144-.191.291-.397.45-.627l.084-.124c.145-.212.28-.425.407-.63l.096-.157.014-.024.149-.251c.034-.06.068-.12.1-.18l.015-.025.139-.251.11-.207c.042-.083.085-.168.129-.251l.102-.21.12-.253.012-.029c.046-.099.092-.197.135-.296.235-.536.44-1.076.607-1.608.696-2.184.889-4.453.56-6.565a11.271 11.271 0 00-.082-.467l-.028-.133a11.506 11.506 0 00-.083-.377l-.035-.142a12.175 12.175 0 00-.343-1.13l-.06-.164c-.08-.212-.154-.401-.23-.578l-.021-.051a11.148 11.148 0 00-.374-.772c-.07-.13-.14-.26-.214-.39l-.029-.05-.064-.109a11.675 11.675 0 00-.628-.951.312.312 0 01.503-.37l.001.002 3.502 4.773a12.91 12.91 0 01.661 1.002c.024.038.044.077.067.115l.029.051c.078.136.153.273.225.41l.02.036.035.067c.009.015.016.032.023.047l.01.025c.119.233.217.442.303.639l.023.053c.082.191.16.39.243.61l.01.029c.01.019.018.038.025.06.007.017.012.037.018.056l.01.03a11.728 11.728 0 01.359 1.185l.028.114.008.034c.032.132.061.264.088.396l.008.034.013.056.008.048c.034.181.062.34.086.49.343 2.21.143 4.577-.582 6.85a16.635 16.635 0 01-.73 1.892l-.031.068-.022.046a14.23 14.23 0 01-.23.48 11.92 11.92 0 01-.248.476l-.143.26-.021.037a9.74 9.74 0 01-.253.433l-.036.06c-.017.03-.035.058-.051.088l-.02.03c-.139.224-.28.443-.429.663l-.087.126c-.166.24-.319.453-.467.65l-.058.076c-.123.16-.255.33-.395.5l-.014.018-.097.119c-.165.198-.318.377-.47.547l-.017.02a.915.915 0 01-.037.038l-.023.025c-.132.145-.266.288-.402.43l-.137.14c-.154.158-.3.3-.443.438l-.017.017a9.64 9.64 0 00-.032.032l-.012.011c-.078.074-.157.146-.236.218l-.096.09-.093.084a19.541 19.541 0 01-.986.823l-.038.031c-.158.124-.325.25-.508.383l-.086.064a23.375 23.375 0 01-.438.309l-.02.013a18.483 18.483 0 01-1.283.806l-.05.03-.072.038a19.12 19.12 0 01-1.465.747l-.032.016c-.018.008-.036.018-.054.025l-.02.008-.098.043-.059.025c-.138.061-.277.12-.416.178l-.149.06-.058.023c-.122.049-.245.096-.367.142l-.22.082-.36.126-.221.074-.047.015-.069.022c-.036.011-.072.022-.11.032l-.073.022a18.815 18.815 0 01-.65.186c-.122.032-.243.064-.365.093-.095.024-.19.046-.286.069a17.79 17.79 0 01-.365.079 15.73 15.73 0 01-.656.122l-.032.005c-.083.014-.165.028-.249.04-.126.02-.251.037-.377.052l-.069.008c-.067.009-.136.018-.202.025-.13.016-.261.027-.392.04l-.083.008-.174.015c-.144.011-.287.018-.43.025l-.081.004a10.9 10.9 0 01-.767.024zm-8.379-3.3a12.43 12.43 0 001.804 1.137c1.942 1.006 4.216 1.536 6.577 1.536a16.05 16.05 0 00.739-.02l.086-.005c.139-.007.276-.013.415-.025l.163-.014.084-.008c.128-.01.253-.023.38-.037l.193-.024.069-.01c.12-.015.243-.032.364-.05.079-.012.16-.025.239-.039l.032-.005c.12-.02.237-.04.355-.063l.277-.055a20.067 20.067 0 00.63-.142l.352-.09c.091-.025.183-.049.273-.075.118-.033.236-.07.354-.106l.084-.025.093-.027.11-.038a17.076 17.076 0 00.561-.192c.072-.026.144-.051.215-.079.118-.044.236-.09.354-.137l.06-.024.14-.055c.135-.056.27-.114.403-.173l.064-.027.08-.035.061-.028.049-.024c.198-.091.404-.19.611-.293a21.557 21.557 0 00.761-.404l.063-.033.054-.03.046-.027a18.234 18.234 0 001.243-.78l.055-.035c.13-.09.259-.18.388-.274l.084-.062c.178-.131.34-.252.492-.373l.038-.03.264-.21a19.304 19.304 0 00.69-.587c.029-.025.057-.052.083-.077l.1-.092c.075-.069.152-.137.225-.208a.08.08 0 01.011-.01l.052-.05a17.113 17.113 0 00.562-.56c.132-.138.263-.277.389-.417l.074-.08a18.896 18.896 0 00.548-.644l.016-.018c.134-.165.263-.33.382-.483l.056-.074c.143-.189.29-.394.45-.626l.084-.123c.144-.212.28-.425.408-.63l.025-.039.046-.078.039-.065.148-.25c.032-.056.064-.111.095-.168l.02-.038c.046-.083.094-.166.138-.25a14.79 14.79 0 00.238-.458l.104-.211.12-.253.052-.11.096-.213c.236-.538.44-1.078.607-1.609.696-2.183.889-4.453.56-6.565a12.975 12.975 0 00-.082-.465l-.027-.132a16.316 16.316 0 00-.083-.377l-.008-.034-.025-.106a11.436 11.436 0 00-.343-1.13l-.017-.05-.01-.031-.012-.03-.021-.052a12.056 12.056 0 00-.23-.578l-.022-.051c-.08-.186-.175-.385-.287-.607l-.022-.046-.011-.025a13.258 13.258 0 00-.267-.486l-.03-.054a11.045 11.045 0 00-.389-.628c-.002-.001-.003-.004-.005-.007a13.32 13.32 0 00-.296-.422l-1.195-1.63a12.852 12.852 0 01.261.9l.036.146c.03.132.06.263.087.395l.03.139c.034.178.062.337.086.49.343 2.208.141 4.577-.582 6.85a16.382 16.382 0 01-.63 1.67c-.045.102-.094.205-.141.308l-.013.028-.123.262-.107.218-.133.261-.113.214c-.047.088-.096.174-.145.261l-.013.025a12.525 12.525 0 01-.26.446l-.014.024-.1.165c-.13.213-.272.432-.422.653l-.088.128c-.164.239-.316.451-.466.65l-.059.075c-.123.162-.252.326-.394.5l-.113.136c-.163.198-.318.376-.47.546l-.077.082a23.629 23.629 0 01-.54.572 18.55 18.55 0 01-.443.437l-.064.063-.238.22-.09.082c-.032.03-.062.059-.094.087a19.541 19.541 0 01-.988.823l-.037.03c-.157.123-.324.25-.509.384l-.086.064a21.1 21.1 0 01-1.1.743c-.197.124-.407.249-.64.383l-.106.059-.063.036a18.867 18.867 0 01-1.417.72l-.049.023-.064.03-.091.04-.06.026c-.139.06-.278.12-.417.178l-.155.062-.053.02c-.122.05-.243.097-.367.142l-.222.082a17.86 17.86 0 01-.58.2l-.26.08-.04.01a18.815 18.815 0 01-1.666.427 17.24 17.24 0 01-.655.122l-.028.004-.254.042c-.127.02-.252.036-.377.052l-.066.008c-.07.01-.138.018-.206.026-.129.016-.258.027-.387.04l-.087.008a7.906 7.906 0 01-.173.015c-.143.01-.286.018-.43.025l-.081.004a17.27 17.27 0 01-.775.02c-2.461 0-4.834-.556-6.864-1.608-.154-.079-.306-.162-.456-.247l2.446 3.33zM120.843 90.037a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.134zM33.935 82.412a2.067 2.067 0 100-4.133 2.067 2.067 0 000 4.133zM34.97 84.083a.728.728 0 100-1.455.728.728 0 000 1.455zM45.217 56.42a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.133zM47.632 53.008a.728.728 0 100-1.455.728.728 0 000 1.455z"}),y.jsx("path",{fill:"#EEE",d:"M126.15 45.536a3.556 3.556 0 10-.001-7.11 3.556 3.556 0 00.001 7.11z"}),y.jsx("path",{fill:"#F9FAFB",d:"M122.594 40.225a1.693 1.693 0 100-3.386 1.693 1.693 0 000 3.386z"})]})}var Gf=typeof C.commonjsGlobal=="object"&&C.commonjsGlobal&&C.commonjsGlobal.Object===Object&&C.commonjsGlobal,Yf=typeof self=="object"&&self&&self.Object===Object&&self;Gf||Yf||Function("return this")();function qf(e){const[t,n]=P.useState(!!e),r=P.useCallback(()=>{n(!0)},[]),i=P.useCallback(()=>{n(!1)},[]),o=P.useCallback(()=>{n(s=>!s)},[]);return{value:t,setValue:n,setTrue:r,setFalse:i,toggle:o}}function Kf(e){var t;return y.jsxs(R.Dialog,{...e.dialogProps,open:e.open,children:[!e.hideTitle&&y.jsxs(R.DialogTitle,{component:R.Stack,sx:{...e.titleProps,textAlign:"center"},children:[typeof e.title=="string"?y.jsx(R.Typography,{variant:"h4",children:e.title}):e.title,typeof e.subTitle=="string"?y.jsx(R.Typography,{color:"success.main",variant:"body1",...e.subTitleProps,children:e.subTitle}):e.subTitle]}),y.jsx(R.DialogContent,{sx:{...e.contentProps,overflowY:e.fixOverflow?"unset":void 0},children:e.desc}),!(e.hideClose&&e.hideConfirm)&&y.jsx(R.DialogActions,{...e.dialogActionsProps,sx:{display:"flex",justifyContent:"space-between","& button":{minWidth:e.minWidthButton||200},px:3,pb:3,...(t=e.dialogActionsProps)==null?void 0:t.sx},children:e.customActions?e.customActions:y.jsxs(y.Fragment,{children:[!e.hideClose&&y.jsx(R.Button,{color:"error",onClick:e.onClose,children:"Close"}),!e.hideConfirm&&y.jsx(R.Button,{color:"primary",onClick:e.onConfirm,children:"Submit"})]})})]})}function Xf(e){const t=qf(typeof e=="boolean"?e:void 0);return{setTrue:t.setTrue,open:t.value,onClose:t.setFalse,onConfirm:typeof e!="boolean"?e==null?void 0:e.onConfirm:void 0}}const Zf=()=>{const e=Lr.useNavigate();return y.jsx("div",{className:"mt-5 bg-[#FAFAFA] w-full h-[800px]",children:y.jsxs("div",{className:"flex flex-col justify-center items-center gap-[23px] mx-auto pt-5",children:[y.jsx(Qf,{}),y.jsx("br",{}),y.jsx("h2",{className:"font-medium text-xl",children:"Access Denied: No Access Permission"}),y.jsxs("p",{className:"text-base",children:["We regret to inform you that you do not have the necessary permissions to access ",y.jsx("br",{})," this page. Please contact our administrator for assistance. Thank you for your understanding."]}),y.jsx(R.Button,{variant:"primary",className:"mt-4",onClick:()=>{e(-1)},children:"Go back"})]})})},Qf=()=>y.jsxs("svg",{width:"61",height:"60",viewBox:"0 0 61 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsxs("g",{filter:"url(#filter0_d_10800_50471)",children:[y.jsx("rect",{x:"2.5",y:"1",width:"56",height:"56",rx:"28",fill:"white"}),y.jsx("path",{d:"M24.6667 27.833V23.1663C24.6667 21.6192 25.2812 20.1355 26.3752 19.0416C27.4692 17.9476 28.9529 17.333 30.5 17.333C32.0471 17.333 33.5308 17.9476 34.6248 19.0416C35.7188 20.1355 36.3333 21.6192 36.3333 23.1663V27.833M22.3333 27.833H38.6667C39.9553 27.833 41 28.8777 41 30.1663V38.333C41 39.6217 39.9553 40.6663 38.6667 40.6663H22.3333C21.0447 40.6663 20 39.6217 20 38.333V30.1663C20 28.8777 21.0447 27.833 22.3333 27.833Z",stroke:"#292929","stroke-width":"2.33333","stroke-linecap":"round","stroke-linejoin":"round"})]}),y.jsx("defs",{children:y.jsxs("filter",{id:"filter0_d_10800_50471",x:"0.5",y:"0",width:"60",height:"60",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[y.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),y.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),y.jsx("feOffset",{dy:"1"}),y.jsx("feGaussianBlur",{stdDeviation:"1"}),y.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0"}),y.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_10800_50471"}),y.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_10800_50471",result:"shape"})]})})]});function ze(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function tl(e){if(!ze(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=tl(e[n])}),t}function xe(e,t,n={clone:!0}){const r=n.clone?C._extends({},e):e;return ze(e)&&ze(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(ze(t[i])&&i in e&&ze(e[i])?r[i]=xe(e[i],t[i],n):n.clone?r[i]=ze(t[i])?tl(t[i]):t[i]:r[i]=t[i])}),r}function xt(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Dr={exports:{}},I={};/**
6
+ `;function Bf(e){return y.jsx(bo,{styles:[wc,Ff],style:{zIndex:1200},children:y.jsx($f,{...e})})}function $f(e){const{baseUrl:t,menuPath:n}=e,r=Lr.useLocation(),[i,o]=P.useState([]),[s,a]=P.useState(!1),[l,c]=P.useState({}),d=Ja(i),u=window.location.origin+r.pathname;console.log("href: ",u);const h=Wf(d,u).filter(b=>b.parentKey!==0);console.log("matchPaths:",h);const p=b=>{c({...l,[b]:!l[b]})},g=()=>{a(!s)};P.useEffect(()=>{(async()=>{const w=t+(n||"/global-menu-config/api/v1/menu-items/user"),S=await kl.get(w,{withCredentials:!0}).then(A=>A.data).catch(A=>{var O,k;C.pushError(((k=(O=A.response)==null?void 0:O.data)==null?void 0:k.errorMessage)||"Have error when get menu items")}),T={};S.forEach(A=>{A.children&&(T[A.id]=!0)}),c(T);let E=S.map(A=>({...A,parentKey:0}));e.replacePath&&(E=el(E,e.replacePath)),o(E)})()},[t,n,e.replacePath]);const[f,m]=P.useState(!1),v=s?"collapsed":"expanded",x=b=>`${b} ${v}`;return y.jsxs("div",{className:x("side-bar"),children:[y.jsx("div",{className:x("side-bar__wrapper-toggle-btn"),children:y.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:g,children:s?y.jsx(Lf,{}):y.jsx(If,{})})}),y.jsx(Oo,{className:x("side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:i.map(b=>{const w=S=>h.some(T=>T.id===S);return y.jsx(Qa,{item:b,isActive:w,isCollapsed:s,expanded:S=>l[S],toggleExpand:p,replacePath:e.replacePath,ssr:e.ssr},b.id)})}),y.jsxs("div",{className:x("side-bar__wrap-btn-logout"),children:[y.jsxs("button",{className:x("side-bar__logout-btn"),onClick:()=>m(!0),children:[y.jsx(zf,{}),y.jsx("span",{className:x("side-bar__logout-btn__text"),children:"Logout"})]}),y.jsx(vo,{isOpen:f,onClose:()=>m(!1),onConfirm:()=>e.logout?e.logout():C.logout(e.baseUrl)})]})]})}function Ja(e){let t=[];for(const n of e)t.push(n),n.children&&(t=t.concat(Ja(n.children)));return t}function Wf(e,t){let n=e.find(i=>i.path&&t.includes(i.path.split("?")[0])),r=[];for(;n;)r=[n,...r],n=e.find(i=>i.id===n.parentKey);return r}function el(e,t){return e.map(n=>(n.path&&(n.path=t(n.path)),n.children&&n.children.length>0&&(n.children=el(n.children,t)),n))}const Uf=({children:e})=>y.jsxs(R.Stack,{justifyContent:"center",alignItems:"center",sx:{backgroundColor:"#FAFAFA",minHeight:"450px"},children:[y.jsx(Hf,{}),e]});function Hf(){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"150",height:"150",fill:"none",viewBox:"0 0 150 150",children:[y.jsx("path",{fill:"#F9FAFB",d:"M120.843 66.48a2.885 2.885 0 100-5.77 2.885 2.885 0 000 5.77zM75 127.04c28.319 0 51.276-9.006 51.276-20.115 0-11.11-22.957-20.115-51.276-20.115-28.32 0-51.276 9.006-51.276 20.115 0 11.109 22.957 20.115 51.276 20.115z"}),y.jsx("path",{fill:"#DDD",d:"M73.354 34.489l-2.13 13.355H57.378L73.354 34.49z"}),y.jsx("path",{fill:"#F9FAFB",d:"M71.223 48.157H57.38a.313.313 0 01-.295-.206.313.313 0 01.093-.346L73.154 34.25a.313.313 0 01.508.288l-2.13 13.357a.308.308 0 01-.308.263zm-12.983-.625h12.717l1.957-12.268L58.24 47.532zM74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),y.jsx("path",{fill:"#000",d:"M74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),y.jsx("path",{fill:"#85858A",d:"M74.454 58.965l3.503 4.775c-.209-.284-.431-.56-.667-.83-2.59-2.952-6.367-4.428-10.378-4.428-1.74 0-3.524.278-5.275.833l-3.503-4.775a17.477 17.477 0 015.275-.833c4.011 0 7.788 1.476 10.378 4.428.236.27.458.546.667.83z"}),y.jsx("path",{fill:"#F9FAFB",d:"M77.957 64.053a.314.314 0 01-.253-.128c-.203-.278-.422-.55-.65-.81-2.446-2.786-6.047-4.32-10.143-4.32-1.727 0-3.468.274-5.18.818a.316.316 0 01-.348-.113l-3.503-4.775a.312.312 0 01.158-.483 17.748 17.748 0 015.37-.847c4.278 0 8.047 1.61 10.612 4.533.24.274.47.561.685.853l3.5 4.772.003.003a.311.311 0 01-.251.497zM66.912 58.17c3.207 0 6.128.905 8.471 2.59l-1.18-1.61c-.203-.278-.423-.55-.65-.81-2.446-2.786-6.048-4.32-10.144-4.32-1.586 0-3.186.231-4.762.691l3.11 4.24a17.67 17.67 0 015.155-.782zM56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),y.jsx("path",{fill:"#000",d:"M56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),y.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),y.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),y.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),y.jsx("path",{fill:"#000",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),y.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),y.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),y.jsx("path",{fill:"#EEE",d:"M71.03 70.342a11.476 11.476 0 01-1.11 2.438 12.543 12.543 0 01-2.703 3.136c-2.342 1.96-5.159 2.937-7.82 2.937-2.66 0-5.164-.98-6.88-2.938C49.078 72 50.09 65.651 54.775 61.738c2.343-1.96 5.16-2.938 7.82-2.938s5.165.98 6.881 2.938a8.329 8.329 0 01.754 1.008 8.034 8.034 0 011.056 2.539c.376 1.62.28 3.364-.257 5.057z"}),y.jsx("path",{fill:"#98A2B3",d:"M71.289 65.285h-9.161c-.967 0-1.632-.754-1.482-1.688.148-.933 1.052-1.687 2.02-1.687h6.956a8.024 8.024 0 011.667 3.375zM71.03 70.342a11.476 11.476 0 01-1.11 2.438c-.155.256-.32.51-.5.76h-8.705c-.918 0-1.543-.716-1.403-1.6.142-.883.997-1.6 1.913-1.6h9.805v.002z"}),y.jsx("path",{fill:"#F7F9FC",d:"M73.632 34.257h38.646l-.591 3.703-10.155 63.675H48.801l3.071-19.259c2.022 1.048 4.33 1.571 6.72 1.571 3.213 0 6.576-.946 9.602-2.839h27.097c.471 0 .909-.366.983-.82.072-.452-.25-.819-.72-.819H70.44c2.295-1.933 3.996-4.255 5.068-6.708h21.116c.47 0 .908-.367.98-.818.072-.453-.25-.82-.72-.82H76.129c.712-2.236.91-4.531.57-6.71h21.256c.47 0 .908-.366.98-.817.073-.453-.25-.821-.719-.821H76.333a12.247 12.247 0 00-2.544-4.642c-2.59-2.951-6.367-4.427-10.378-4.427-2.389 0-4.86.523-7.215 1.569l1.184-7.432h13.845l2.13-13.354.277-.232zM93.96 89.454c.47 0 .908-.366.982-.82.072-.452-.25-.819-.72-.819H61.258c-.468 0-.907.367-.979.818-.072.453.25.821.718.821h32.964zm5.325-33.386c.47 0 .908-.367.981-.818.072-.453-.25-.82-.72-.82H77.201c-.47 0-.907.366-.979.82-.072.451.247.818.718.818h22.346z"}),y.jsx("path",{fill:"#F9FAFB",d:"M101.532 101.946h-52.73a.311.311 0 01-.309-.361l3.072-19.259a.312.312 0 01.453-.228c1.942 1.006 4.215 1.537 6.576 1.537 3.255 0 6.517-.966 9.435-2.792a.317.317 0 01.165-.047h27.098c.316 0 .625-.256.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H70.44a.313.313 0 01-.201-.551c2.175-1.834 3.898-4.114 4.983-6.595a.313.313 0 01.286-.187h21.116c.316 0 .625-.254.672-.556a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H76.128a.314.314 0 01-.299-.407c.696-2.182.889-4.453.56-6.566a.31.31 0 01.308-.361h21.256c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.321.423.423 0 00-.331-.138h-21.88a.312.312 0 01-.3-.225 11.883 11.883 0 00-2.481-4.523c-2.446-2.786-6.047-4.32-10.143-4.32-2.367 0-4.818.532-7.09 1.542a.316.316 0 01-.317-.037.31.31 0 01-.118-.298l1.184-7.431a.313.313 0 01.309-.264h13.578l2.087-13.092a.314.314 0 01.107-.19l.278-.235a.316.316 0 01.201-.074h38.649a.312.312 0 01.308.361L101.84 101.68a.31.31 0 01-.308.267zm-52.365-.625h52.098l10.646-66.753H73.746l-.102.086-2.11 13.24a.313.313 0 01-.309.264H57.647l-1.054 6.61c2.201-.9 4.546-1.373 6.818-1.373 4.278 0 8.047 1.61 10.613 4.533a12.512 12.512 0 012.541 4.535h21.652c.32 0 .614.13.807.356.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082H77.058c.253 1.971.078 4.059-.51 6.084h20.337c.32 0 .614.13.807.357.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082h-20.91c-1.019 2.252-2.544 4.337-4.444 6.083h24.285c.32 0 .614.13.807.357.191.225.27.517.22.824-.097.607-.663 1.083-1.29 1.083H68.283c-2.998 1.858-6.347 2.839-9.69 2.839-2.307 0-4.536-.488-6.48-1.416l-2.946 18.477zM93.96 89.767H60.997c-.318 0-.612-.13-.805-.357a1.004 1.004 0 01-.221-.827c.097-.607.662-1.082 1.287-1.082h32.964c.32 0 .614.131.807.357.192.225.27.517.22.824-.095.608-.661 1.085-1.288 1.085zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.42.42 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001zm38.028-31.746H76.94c-.32 0-.612-.13-.805-.356a1.004 1.004 0 01-.221-.824c.097-.608.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.663 1.08-1.289 1.08zm-22.085-1.64c-.315 0-.622.256-.67.558a.387.387 0 00.079.32.423.423 0 00.33.135h22.346c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H77.201v.002z"}),y.jsx("path",{fill:"#DDD",d:"M55.21 61.447l-.332 2.085c-.052.039-.103.078-.153.12-1.13.942-1.372 2.473-.544 3.416.036.042.075.082.115.12l-1.44 9.019a8.348 8.348 0 01-.3-.325c-1.709-1.949-2.312-4.503-1.903-7.056.407-2.554 1.823-5.106 4.154-7.054.13-.11.267-.22.403-.325zM96.884 71.122c.471 0 .792.367.72.821-.073.451-.511.818-.98.818H75.507c.237-.54.444-1.087.618-1.639h20.758z"}),y.jsx("path",{fill:"#DDD",d:"M96.623 73.074H75.508a.31.31 0 01-.261-.142.316.316 0 01-.025-.296c.235-.536.439-1.076.607-1.607a.31.31 0 01.299-.218h20.756c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.662 1.08-1.289 1.08zm-20.643-.625h20.643c.317 0 .625-.254.672-.556a.392.392 0 00-.079-.32.423.423 0 00-.332-.138h-20.53a16.42 16.42 0 01-.374 1.014zM95.555 79.468c.47 0 .791.367.719.818-.072.453-.511.821-.982.821H68.193a19.625 19.625 0 002.248-1.638h25.114z"}),y.jsx("path",{fill:"#DDD",d:"M95.292 81.42H68.193a.313.313 0 01-.165-.578 19.558 19.558 0 002.148-1.56l.059-.049a.33.33 0 01.205-.076h25.114c.32 0 .614.13.807.357.192.225.27.517.221.824-.097.605-.662 1.082-1.29 1.082zm-26.063-.626h26.063c.316 0 .625-.255.672-.556a.39.39 0 00-.08-.32.423.423 0 00-.331-.137h-25c-.425.355-.868.694-1.324 1.013z"}),y.jsx("path",{fill:"#EEE",d:"M115.432 38.557l-.495 3.106-.095.598-10.06 63.074H51.517l-2.716-3.702h52.731l10.155-63.672.592-3.704 3.153 4.3z"}),y.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.31.31 0 01-.252-.127l-2.716-3.702a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.464l10.113-63.41.592-3.704a.311.311 0 01.56-.135l3.153 4.3c.05.067.069.152.057.234l-.591 3.704-10.061 63.075a.312.312 0 01-.308.262zm-53.107-.625h52.839l10.019-62.81.57-3.576-2.634-3.592-.473 2.966-10.156 63.672a.313.313 0 01-.308.264H49.418l2.257 3.076z"}),y.jsx("path",{fill:"#DDD",d:"M108.03 109.039l3.503 4.775H58.8l-3.503-4.775h52.733z"}),y.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126H58.8a.31.31 0 01-.252-.127l-3.503-4.775a.312.312 0 01.253-.498h52.734c.1 0 .193.048.251.128l3.503 4.775a.314.314 0 01-.253.497zm-52.575-.625h51.958l-3.044-4.15H55.913l3.045 4.15z"}),y.jsx("path",{fill:"#F7F9FC",d:"M118.776 41.663l-10.746 67.376H55.297l.59-3.704h48.895l10.154-63.672h3.84z"}),y.jsx("path",{fill:"#F9FAFB",d:"M108.03 109.351H55.297a.313.313 0 01-.308-.361l.59-3.703a.313.313 0 01.308-.263h48.628l10.112-63.41a.314.314 0 01.309-.264h3.84a.313.313 0 01.308.361l-10.745 67.376a.313.313 0 01-.309.264zm-52.366-.625h52.1l10.645-66.751h-3.207l-10.112 63.41a.314.314 0 01-.308.264H56.154l-.49 3.077z"}),y.jsx("path",{fill:"#EEE",d:"M118.776 41.663l3.503 4.775-10.746 67.376-3.503-4.775 10.746-67.376z"}),y.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126a.306.306 0 01-.251-.127l-3.503-4.775a.312.312 0 01-.057-.235l10.746-67.377a.309.309 0 01.234-.254.309.309 0 01.325.12l3.503 4.775a.31.31 0 01.057.234l-10.746 67.377a.309.309 0 01-.308.262zm-3.174-5.168l2.982 4.067 10.607-66.508-2.982-4.067-10.607 66.508z"}),y.jsx("path",{fill:"#85858A",d:"M49.987 81.18L31.79 96.393c-.043.036-.088.068-.132.101l-.061.046c-.036.025-.074.047-.11.071-.026.017-.053.035-.079.05-.02.011-.04.02-.06.032a2.11 2.11 0 01-.148.075l-.055.022a2.406 2.406 0 01-.294.107l-.076.021c-.04.01-.08.02-.121.028l-.074.014a4.26 4.26 0 01-.132.018l-.062.007c-.064.005-.13.008-.193.008-.545 0-1.056-.2-1.407-.6l-.649-.739a1.784 1.784 0 01-.09-.112l3.503 4.775c.027.039.058.076.09.112l.648.739c.352.4.863.6 1.408.6.063 0 .127-.003.193-.008.02-.002.041-.006.062-.007l.132-.018.074-.014c.04-.009.08-.017.12-.028l.077-.021.055-.015.04-.015c.067-.023.134-.049.2-.077l.04-.015c.005-.003.01-.006.015-.007.05-.024.098-.049.148-.075.019-.01.037-.017.055-.028l.005-.004c.026-.015.053-.033.08-.05.033-.021.067-.04.1-.064a.025.025 0 00.009-.007l.061-.046c.034-.025.068-.048.1-.075a.364.364 0 00.032-.026l18.197-15.213-3.504-4.775z"}),y.jsx("path",{fill:"#F9FAFB",d:"M33.694 102.081c-.658 0-1.241-.252-1.641-.707l-.65-.739a1.901 1.901 0 01-.106-.134l-3.501-4.772c0-.001-.002-.001-.002-.003a.312.312 0 01.503-.369l.001.003c.023.03.046.06.071.089l.649.739c.279.318.696.493 1.172.493.056 0 .11-.003.165-.009l.056-.007c.037-.004.075-.008.114-.015l.047-.01.018-.004.106-.023.068-.019a2.276 2.276 0 00.257-.093l.047-.019c.044-.02.087-.043.13-.067l.053-.028c.011-.006.024-.013.035-.022l.058-.037a2.329 2.329 0 00.099-.067l.04-.03c.035-.027.07-.052.104-.081l18.198-15.213a.314.314 0 01.45.055l3.504 4.775a.313.313 0 01-.052.425l-18.23 15.246c-.03.023-.059.045-.09.066l-.04.029-.05.038a1.955 1.955 0 01-.095.062l-.052.032a.92.92 0 01-.058.036c-.006.005-.011.007-.017.01a.658.658 0 01-.044.022l-.013.006c-.055.029-.11.058-.166.085l-.017.008-.044.018c-.075.032-.15.061-.225.086-.013.006-.03.011-.045.017l-.046.012-.015.004-.087.024c-.046.011-.09.022-.137.031l-.015.002-.07.014c-.05.009-.1.016-.148.021l-.018.003a1.864 1.864 0 01-.27.017zm-4.003-4.825l2.112 2.877c.022.031.047.061.072.091l.648.739c.311.355.8.531 1.338.486l.054-.007a1.482 1.482 0 00.161-.025l.017-.003a1.73 1.73 0 00.105-.024c.023-.005.045-.012.068-.018l.048-.012a.295.295 0 01.034-.014c.059-.02.118-.042.177-.068.01-.006.023-.01.036-.014l.01-.004c.045-.021.089-.045.133-.068a.296.296 0 01.035-.018l.01-.006c.002-.003.006-.004.01-.005l.034-.021.065-.041a.622.622 0 00.057-.036l.033-.025.053-.04.063-.047.027-.022 17.974-15.025-3.132-4.271L31.99 96.633c-.044.037-.089.071-.135.105l-.03.023c-.017.013-.032.025-.049.036-.033.023-.067.043-.1.064l-.048.03c-.021.015-.042.027-.063.04-.017.01-.033.018-.05.026l-.018.01c-.054.029-.11.058-.165.084-.016.007-.03.014-.047.02l-.016.007a2.6 2.6 0 01-.554.173l-.015.003c-.022.004-.046.01-.068.013-.05.008-.099.015-.149.02l-.02.003a2.429 2.429 0 01-.772-.035z"}),y.jsx("path",{fill:"#98A2B3",d:"M76.699 64.414a12.649 12.649 0 00-.367-1.639 12.218 12.218 0 00-2.544-4.642c-2.59-2.951-6.367-4.426-10.378-4.426-2.39 0-4.861.522-7.216 1.57a19.487 19.487 0 00-4.58 2.862c-6.318 5.28-8.203 13.503-4.815 19.405l-18.2 15.216c-.956.797-1.162 2.093-.462 2.894l.65.74c.35.4.863.6 1.405.6a2.51 2.51 0 001.597-.6l18.198-15.212a13.02 13.02 0 001.885 1.193c2.022 1.046 4.33 1.57 6.721 1.57 3.214 0 6.576-.944 9.6-2.838.753-.47 1.482-.999 2.249-1.639 2.293-1.935 3.996-4.255 5.068-6.71.234-.537.443-1.087.616-1.638.713-2.231.911-4.53.573-6.706zm-9.481 11.503c-2.343 1.96-5.16 2.937-7.82 2.937s-5.165-.979-6.881-2.937c-3.438-3.917-2.425-10.264 2.26-14.178 2.342-1.96 5.16-2.938 7.82-2.938s5.164.98 6.88 2.938a8.34 8.34 0 01.754 1.008 8.029 8.029 0 011.056 2.54c.375 1.62.281 3.364-.258 5.056a11.476 11.476 0 01-1.11 2.438 12.45 12.45 0 01-2.701 3.136z"}),y.jsx("path",{fill:"#F9FAFB",d:"M30.192 97.307c-.659 0-1.242-.251-1.64-.708l-.65-.74a2.048 2.048 0 01-.486-1.52c.055-.68.412-1.344.982-1.82L46.4 77.471c-1.585-2.903-1.989-6.42-1.136-9.936.882-3.635 3.066-7.057 6.151-9.636a19.8 19.8 0 014.654-2.907c2.347-1.045 4.886-1.597 7.343-1.597 4.278 0 8.048 1.61 10.613 4.533a12.492 12.492 0 012.61 4.76c.16.543.286 1.106.375 1.677.344 2.207.141 4.577-.584 6.85a16.681 16.681 0 01-.627 1.668c-1.123 2.569-2.906 4.927-5.155 6.824a20.11 20.11 0 01-2.284 1.664c-3.014 1.887-6.39 2.886-9.766 2.886-2.46 0-4.833-.556-6.864-1.606A13.36 13.36 0 0150 81.58L31.989 96.633a2.817 2.817 0 01-1.797.674zM63.41 54.019c-2.37 0-4.82.534-7.089 1.544a19.182 19.182 0 00-4.507 2.815c-6.13 5.123-8.126 13.12-4.744 19.01a.313.313 0 01-.071.395L28.799 93c-.442.37-.72.875-.76 1.389-.032.401.086.777.333 1.06l.649.738c.279.32.694.495 1.17.495.495 0 .992-.188 1.398-.528l18.198-15.211a.313.313 0 01.39-.009c.583.443 1.2.835 1.84 1.164 1.941 1.005 4.216 1.536 6.577 1.536 3.257 0 6.52-.965 9.434-2.79.751-.47 1.476-.997 2.213-1.614 2.175-1.833 3.898-4.114 4.983-6.594.234-.536.437-1.077.605-1.607.696-2.184.89-4.453.561-6.565a12.39 12.39 0 00-.357-1.598 11.865 11.865 0 00-2.48-4.525c-2.445-2.786-6.048-4.32-10.142-4.32zm-4.014 25.148c-2.868 0-5.396-1.08-7.117-3.045-1.536-1.75-2.276-4.066-2.086-6.525.234-3.015 1.83-5.968 4.38-8.098 2.323-1.942 5.172-3.011 8.023-3.011 2.868 0 5.396 1.08 7.117 3.044a8.743 8.743 0 01.783 1.046 8.385 8.385 0 011.097 2.637c.385 1.66.293 3.466-.265 5.221a11.584 11.584 0 01-1.14 2.506 12.926 12.926 0 01-2.77 3.215c-2.322 1.94-5.17 3.01-8.022 3.01zm3.2-20.054c-2.704 0-5.411 1.018-7.62 2.865-2.423 2.023-3.94 4.82-4.16 7.668-.177 2.289.51 4.442 1.934 6.064 1.6 1.826 3.961 2.832 6.646 2.832 2.704 0 5.411-1.018 7.62-2.865a12.3 12.3 0 002.637-3.059c.313-.518.582-1.057.803-1.603.101-.25.194-.508.276-.768.524-1.648.611-3.34.252-4.893a7.792 7.792 0 00-1.739-3.41c-1.603-1.826-3.964-2.831-6.649-2.831z"}),y.jsx("path",{fill:"#F7F9FC",d:"M59.778 66.756a.997.997 0 00-.11-.225.974.974 0 00-.103-.14 1.233 1.233 0 00-.94-.4 1.694 1.694 0 00-1.07.401c-.372.31-.575.734-.586 1.14-.008.292.082.574.278.797.235.267.576.402.94.402s.749-.134 1.068-.402c.152-.127.277-.272.371-.429.045-.072.08-.147.113-.225.125-.305.14-.632.039-.92z"}),y.jsx("path",{fill:"#F7F9FC",d:"M58.64 64.293a1.938 1.938 0 00-.373-.639c-.414-.472-1.018-.708-1.659-.708a2.941 2.941 0 00-1.883.707c-1.13.941-1.372 2.472-.544 3.415.037.042.075.082.115.12.405.391.958.586 1.543.586.375 0 .764-.08 1.135-.242.262-.114.515-.27.75-.464.266-.225.486-.48.651-.755.063-.105.118-.212.164-.32l.032-.078c.22-.54.246-1.115.07-1.622z"}),y.jsx("path",{fill:"#DDD",d:"M104.782 105.335H51.517l-2.716-3.702h52.731l3.25 3.702z"}),y.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.308.308 0 01-.252-.128l-2.716-3.701a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.73c.09 0 .175.039.235.107l3.25 3.701c.08.092.1.224.05.335a.317.317 0 01-.286.183zm-53.107-.625h52.415l-2.701-3.076H49.417l2.258 3.076z"}),y.jsx("path",{fill:"#DDD",d:"M98.215 62.775c.47 0 .792.367.72.82-.073.452-.512.819-.981.819H76.698a12.81 12.81 0 00-.365-1.639h21.882z"}),y.jsx("path",{fill:"#DDD",d:"M97.954 64.726H76.7a.312.312 0 01-.309-.265 12.214 12.214 0 00-.357-1.599.309.309 0 01.05-.275.31.31 0 01.25-.125h21.884c.319 0 .614.131.806.357.192.225.271.518.221.825-.097.607-.663 1.082-1.29 1.082zm-20.99-.625h20.99c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H76.743c.088.335.161.674.22 1.014zM99.547 54.43c.471 0 .792.366.72.82-.073.451-.512.818-.981.818H76.94c-.47 0-.79-.367-.718-.818.072-.453.51-.82.98-.82h22.345z"}),y.jsx("path",{fill:"#DDD",d:"M99.286 56.38H76.94c-.32 0-.613-.129-.806-.355a1.004 1.004 0 01-.22-.824c.097-.607.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.191.225.271.518.221.825-.096.606-.663 1.08-1.29 1.08zM77.2 54.742c-.315 0-.622.255-.67.557a.391.391 0 00.078.32.423.423 0 00.33.136h22.347c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H77.2zM94.222 87.815c.471 0 .792.367.72.818-.073.453-.511.821-.982.821H60.997c-.468 0-.79-.366-.718-.82.072-.452.511-.819.98-.819h32.963z"}),y.jsx("path",{fill:"#DDD",d:"M93.961 89.767H60.997c-.318 0-.61-.13-.804-.356a1.004 1.004 0 01-.22-.826c.096-.607.662-1.082 1.287-1.082h32.962c.32 0 .614.13.807.357.192.225.27.516.22.823-.095.607-.662 1.084-1.288 1.084zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.419.419 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001z"}),y.jsx("path",{fill:"#DDD",d:"M80.201 69.189c-.025-.16-.053-.32-.083-.478l-.008-.046-.02-.089c-.026-.129-.056-.258-.086-.386-.011-.047-.022-.096-.035-.143a14.558 14.558 0 00-.133-.496c-.065-.223-.14-.444-.218-.663-.01-.028-.017-.056-.028-.084-.01-.029-.023-.057-.033-.085a11.396 11.396 0 00-.553-1.268c-.013-.023-.022-.047-.033-.07-.017-.034-.038-.067-.055-.1a16.26 16.26 0 00-.219-.4c-.032-.055-.061-.11-.094-.164a11.61 11.61 0 00-.337-.536v-.003c-.1-.147-.2-.293-.306-.438l-3.503-4.775a12.034 12.034 0 01.644.977l.095.164a16.362 16.362 0 01.308.57c.104.205.203.412.294.621l.021.053a11.536 11.536 0 01.297.761 12.302 12.302 0 01.47 1.69 11.138 11.138 0 01.111.614c.339 2.175.14 4.473-.57 6.707a16.401 16.401 0 01-.619 1.64c-.048.11-.1.22-.15.33-.04.086-.08.172-.122.258l-.104.214c-.043.086-.088.17-.132.257a11.944 11.944 0 01-.253.467l-.117.206-.151.256-.112.186c-.134.215-.271.43-.414.64l-.087.127a17.85 17.85 0 01-.902 1.204l-.11.135c-.15.18-.304.36-.463.537l-.075.082a18.882 18.882 0 01-1.029 1.053l-.27.249c-.048.044-.096.09-.146.134-.142.127-.285.25-.43.374a20.29 20.29 0 01-1.082.844l-.084.063a21.276 21.276 0 01-1.082.73c-.209.13-.418.256-.63.377-.056.032-.112.06-.167.093-.186.104-.373.205-.56.303l-.213.11a18.01 18.01 0 01-.62.298c-.038.017-.074.035-.112.051-.048.023-.098.043-.147.064-.136.06-.272.12-.41.175l-.204.082c-.12.047-.24.095-.36.14-.072.028-.145.055-.217.081-.118.043-.236.083-.355.124a9.937 9.937 0 01-.218.072c-.097.032-.195.06-.293.091a16.404 16.404 0 01-.997.275 16.845 16.845 0 01-1.56.308c-.123.019-.247.036-.37.052l-.267.035c-.13.015-.257.026-.385.037-.083.007-.168.017-.251.023-.142.01-.282.018-.422.025-.071.004-.14.008-.212.01-.21.01-.42.013-.63.013-2.39 0-4.697-.523-6.721-1.57a12.644 12.644 0 01-1.885-1.195l3.503 4.775c.593.454 1.224.851 1.885 1.194 2.022 1.048 4.33 1.571 6.72 1.571.209 0 .419-.004.63-.012.07-.003.14-.009.21-.011.141-.007.283-.014.423-.025l.25-.023c.13-.01.257-.023.386-.037.09-.01.178-.022.267-.033.124-.017.247-.032.37-.052l.277-.044.363-.064c.093-.018.187-.036.28-.056.12-.025.24-.05.358-.077a16.81 16.81 0 00.918-.235l.362-.107.18-.053.113-.037.218-.073c.118-.04.236-.08.354-.123l.218-.08c.12-.045.24-.092.36-.141l.204-.082c.137-.057.273-.115.41-.175.048-.022.098-.042.147-.064a.206.206 0 01.026-.011c.028-.013.056-.028.084-.04a18.01 18.01 0 001.393-.711c.04-.023.08-.042.12-.066.014-.008.031-.02.046-.027.211-.121.422-.246.63-.377.213-.133.423-.272.633-.415l.057-.038c.13-.09.262-.183.393-.277l.084-.063c.167-.122.334-.247.5-.378l.038-.029c.089-.07.18-.14.268-.214a19.263 19.263 0 00.703-.598l.146-.134c.09-.083.182-.165.27-.25l.014-.012c.017-.015.032-.032.048-.047.148-.142.293-.287.436-.43l.135-.14c.134-.14.266-.28.395-.423l.059-.063.015-.018c.158-.178.312-.357.462-.537l.11-.134c.132-.162.263-.326.388-.492.013-.019.03-.037.044-.056l.013-.017c.158-.211.31-.424.458-.639l.086-.125c.143-.213.282-.426.415-.642l.027-.04.086-.146c.051-.084.101-.17.151-.255l.117-.207.14-.256.111-.21a8.98 8.98 0 00.13-.258c.037-.07.072-.142.106-.214l.123-.258c.016-.038.036-.074.052-.111l.098-.22c.237-.54.444-1.087.618-1.639.72-2.237.92-4.534.58-6.712z"}),y.jsx("path",{fill:"#F9FAFB",d:"M62.094 89.035c-2.46 0-4.833-.556-6.864-1.607a13.081 13.081 0 01-1.931-1.224.303.303 0 01-.063-.064l-3.503-4.775a.313.313 0 01.442-.433c.57.438 1.189.83 1.839 1.165 1.941 1.006 4.215 1.536 6.576 1.536.196 0 .404-.004.618-.012.04-.001.08-.004.12-.007l.087-.006c.14-.007.277-.014.416-.025.054-.004.108-.01.16-.013l.085-.009c.13-.01.255-.023.378-.037.065-.007.13-.017.196-.025l.068-.009a16.852 16.852 0 00.607-.09l.028-.004c.118-.02.237-.04.355-.063l.277-.055c.116-.024.234-.05.351-.077.093-.02.185-.043.278-.065.117-.029.235-.058.351-.09l.275-.075c.118-.033.236-.07.354-.106l.04-.012c.083-.025.166-.052.248-.078l.214-.07c.116-.04.232-.08.348-.123.071-.026.143-.051.214-.08.118-.044.236-.09.354-.137l.055-.02.147-.059c.135-.055.268-.114.403-.172l.063-.028c.027-.01.055-.023.081-.035l.108-.05a18.639 18.639 0 001.371-.698l.068-.038.096-.052a16.582 16.582 0 001.242-.78c.147-.101.296-.204.443-.31l.083-.062c.18-.132.342-.254.493-.372l.038-.03c.187-.148.362-.29.532-.431.143-.121.283-.243.422-.367l.086-.079.094-.086c.077-.07.155-.14.23-.211l.062-.06c.14-.135.28-.272.43-.424l.133-.137c.132-.138.262-.276.389-.417l.073-.079c.147-.164.296-.337.456-.53l.108-.131c.138-.168.263-.326.38-.483l.058-.073c.144-.191.291-.397.45-.627l.084-.124c.145-.212.28-.425.407-.63l.096-.157.014-.024.149-.251c.034-.06.068-.12.1-.18l.015-.025.139-.251.11-.207c.042-.083.085-.168.129-.251l.102-.21.12-.253.012-.029c.046-.099.092-.197.135-.296.235-.536.44-1.076.607-1.608.696-2.184.889-4.453.56-6.565a11.271 11.271 0 00-.082-.467l-.028-.133a11.506 11.506 0 00-.083-.377l-.035-.142a12.175 12.175 0 00-.343-1.13l-.06-.164c-.08-.212-.154-.401-.23-.578l-.021-.051a11.148 11.148 0 00-.374-.772c-.07-.13-.14-.26-.214-.39l-.029-.05-.064-.109a11.675 11.675 0 00-.628-.951.312.312 0 01.503-.37l.001.002 3.502 4.773a12.91 12.91 0 01.661 1.002c.024.038.044.077.067.115l.029.051c.078.136.153.273.225.41l.02.036.035.067c.009.015.016.032.023.047l.01.025c.119.233.217.442.303.639l.023.053c.082.191.16.39.243.61l.01.029c.01.019.018.038.025.06.007.017.012.037.018.056l.01.03a11.728 11.728 0 01.359 1.185l.028.114.008.034c.032.132.061.264.088.396l.008.034.013.056.008.048c.034.181.062.34.086.49.343 2.21.143 4.577-.582 6.85a16.635 16.635 0 01-.73 1.892l-.031.068-.022.046a14.23 14.23 0 01-.23.48 11.92 11.92 0 01-.248.476l-.143.26-.021.037a9.74 9.74 0 01-.253.433l-.036.06c-.017.03-.035.058-.051.088l-.02.03c-.139.224-.28.443-.429.663l-.087.126c-.166.24-.319.453-.467.65l-.058.076c-.123.16-.255.33-.395.5l-.014.018-.097.119c-.165.198-.318.377-.47.547l-.017.02a.915.915 0 01-.037.038l-.023.025c-.132.145-.266.288-.402.43l-.137.14c-.154.158-.3.3-.443.438l-.017.017a9.64 9.64 0 00-.032.032l-.012.011c-.078.074-.157.146-.236.218l-.096.09-.093.084a19.541 19.541 0 01-.986.823l-.038.031c-.158.124-.325.25-.508.383l-.086.064a23.375 23.375 0 01-.438.309l-.02.013a18.483 18.483 0 01-1.283.806l-.05.03-.072.038a19.12 19.12 0 01-1.465.747l-.032.016c-.018.008-.036.018-.054.025l-.02.008-.098.043-.059.025c-.138.061-.277.12-.416.178l-.149.06-.058.023c-.122.049-.245.096-.367.142l-.22.082-.36.126-.221.074-.047.015-.069.022c-.036.011-.072.022-.11.032l-.073.022a18.815 18.815 0 01-.65.186c-.122.032-.243.064-.365.093-.095.024-.19.046-.286.069a17.79 17.79 0 01-.365.079 15.73 15.73 0 01-.656.122l-.032.005c-.083.014-.165.028-.249.04-.126.02-.251.037-.377.052l-.069.008c-.067.009-.136.018-.202.025-.13.016-.261.027-.392.04l-.083.008-.174.015c-.144.011-.287.018-.43.025l-.081.004a10.9 10.9 0 01-.767.024zm-8.379-3.3a12.43 12.43 0 001.804 1.137c1.942 1.006 4.216 1.536 6.577 1.536a16.05 16.05 0 00.739-.02l.086-.005c.139-.007.276-.013.415-.025l.163-.014.084-.008c.128-.01.253-.023.38-.037l.193-.024.069-.01c.12-.015.243-.032.364-.05.079-.012.16-.025.239-.039l.032-.005c.12-.02.237-.04.355-.063l.277-.055a20.067 20.067 0 00.63-.142l.352-.09c.091-.025.183-.049.273-.075.118-.033.236-.07.354-.106l.084-.025.093-.027.11-.038a17.076 17.076 0 00.561-.192c.072-.026.144-.051.215-.079.118-.044.236-.09.354-.137l.06-.024.14-.055c.135-.056.27-.114.403-.173l.064-.027.08-.035.061-.028.049-.024c.198-.091.404-.19.611-.293a21.557 21.557 0 00.761-.404l.063-.033.054-.03.046-.027a18.234 18.234 0 001.243-.78l.055-.035c.13-.09.259-.18.388-.274l.084-.062c.178-.131.34-.252.492-.373l.038-.03.264-.21a19.304 19.304 0 00.69-.587c.029-.025.057-.052.083-.077l.1-.092c.075-.069.152-.137.225-.208a.08.08 0 01.011-.01l.052-.05a17.113 17.113 0 00.562-.56c.132-.138.263-.277.389-.417l.074-.08a18.896 18.896 0 00.548-.644l.016-.018c.134-.165.263-.33.382-.483l.056-.074c.143-.189.29-.394.45-.626l.084-.123c.144-.212.28-.425.408-.63l.025-.039.046-.078.039-.065.148-.25c.032-.056.064-.111.095-.168l.02-.038c.046-.083.094-.166.138-.25a14.79 14.79 0 00.238-.458l.104-.211.12-.253.052-.11.096-.213c.236-.538.44-1.078.607-1.609.696-2.183.889-4.453.56-6.565a12.975 12.975 0 00-.082-.465l-.027-.132a16.316 16.316 0 00-.083-.377l-.008-.034-.025-.106a11.436 11.436 0 00-.343-1.13l-.017-.05-.01-.031-.012-.03-.021-.052a12.056 12.056 0 00-.23-.578l-.022-.051c-.08-.186-.175-.385-.287-.607l-.022-.046-.011-.025a13.258 13.258 0 00-.267-.486l-.03-.054a11.045 11.045 0 00-.389-.628c-.002-.001-.003-.004-.005-.007a13.32 13.32 0 00-.296-.422l-1.195-1.63a12.852 12.852 0 01.261.9l.036.146c.03.132.06.263.087.395l.03.139c.034.178.062.337.086.49.343 2.208.141 4.577-.582 6.85a16.382 16.382 0 01-.63 1.67c-.045.102-.094.205-.141.308l-.013.028-.123.262-.107.218-.133.261-.113.214c-.047.088-.096.174-.145.261l-.013.025a12.525 12.525 0 01-.26.446l-.014.024-.1.165c-.13.213-.272.432-.422.653l-.088.128c-.164.239-.316.451-.466.65l-.059.075c-.123.162-.252.326-.394.5l-.113.136c-.163.198-.318.376-.47.546l-.077.082a23.629 23.629 0 01-.54.572 18.55 18.55 0 01-.443.437l-.064.063-.238.22-.09.082c-.032.03-.062.059-.094.087a19.541 19.541 0 01-.988.823l-.037.03c-.157.123-.324.25-.509.384l-.086.064a21.1 21.1 0 01-1.1.743c-.197.124-.407.249-.64.383l-.106.059-.063.036a18.867 18.867 0 01-1.417.72l-.049.023-.064.03-.091.04-.06.026c-.139.06-.278.12-.417.178l-.155.062-.053.02c-.122.05-.243.097-.367.142l-.222.082a17.86 17.86 0 01-.58.2l-.26.08-.04.01a18.815 18.815 0 01-1.666.427 17.24 17.24 0 01-.655.122l-.028.004-.254.042c-.127.02-.252.036-.377.052l-.066.008c-.07.01-.138.018-.206.026-.129.016-.258.027-.387.04l-.087.008a7.906 7.906 0 01-.173.015c-.143.01-.286.018-.43.025l-.081.004a17.27 17.27 0 01-.775.02c-2.461 0-4.834-.556-6.864-1.608-.154-.079-.306-.162-.456-.247l2.446 3.33zM120.843 90.037a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.134zM33.935 82.412a2.067 2.067 0 100-4.133 2.067 2.067 0 000 4.133zM34.97 84.083a.728.728 0 100-1.455.728.728 0 000 1.455zM45.217 56.42a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.133zM47.632 53.008a.728.728 0 100-1.455.728.728 0 000 1.455z"}),y.jsx("path",{fill:"#EEE",d:"M126.15 45.536a3.556 3.556 0 10-.001-7.11 3.556 3.556 0 00.001 7.11z"}),y.jsx("path",{fill:"#F9FAFB",d:"M122.594 40.225a1.693 1.693 0 100-3.386 1.693 1.693 0 000 3.386z"})]})}var Gf=typeof C.commonjsGlobal=="object"&&C.commonjsGlobal&&C.commonjsGlobal.Object===Object&&C.commonjsGlobal,Yf=typeof self=="object"&&self&&self.Object===Object&&self;Gf||Yf||Function("return this")();function qf(e){const[t,n]=P.useState(!!e),r=P.useCallback(()=>{n(!0)},[]),i=P.useCallback(()=>{n(!1)},[]),o=P.useCallback(()=>{n(s=>!s)},[]);return{value:t,setValue:n,setTrue:r,setFalse:i,toggle:o}}function Kf(e){var t;return y.jsxs(R.Dialog,{...e.dialogProps,open:e.open,children:[!e.hideTitle&&y.jsxs(R.DialogTitle,{component:R.Stack,sx:{...e.titleProps,textAlign:"center"},children:[typeof e.title=="string"?y.jsx(R.Typography,{variant:"h4",children:e.title}):e.title,typeof e.subTitle=="string"?y.jsx(R.Typography,{color:"success.main",variant:"body1",...e.subTitleProps,children:e.subTitle}):e.subTitle]}),y.jsx(R.DialogContent,{sx:{...e.contentProps,overflowY:e.fixOverflow?"unset":void 0},children:e.desc}),!(e.hideClose&&e.hideConfirm)&&y.jsx(R.DialogActions,{...e.dialogActionsProps,sx:{display:"flex",justifyContent:"space-between","& button":{minWidth:e.minWidthButton||200},px:3,pb:3,...(t=e.dialogActionsProps)==null?void 0:t.sx},children:e.customActions?e.customActions:y.jsxs(y.Fragment,{children:[!e.hideClose&&y.jsx(R.Button,{color:"error",onClick:e.onClose,children:"Close"}),!e.hideConfirm&&y.jsx(R.Button,{color:"primary",onClick:e.onConfirm,children:"Submit"})]})})]})}function Xf(e){const t=qf(typeof e=="boolean"?e:void 0);return{setTrue:t.setTrue,open:t.value,onClose:t.setFalse,onConfirm:typeof e!="boolean"?e==null?void 0:e.onConfirm:void 0}}const Zf=()=>{const e=Lr.useNavigate();return y.jsx("div",{className:"mt-5 bg-[#FAFAFA] w-full h-[800px]",children:y.jsxs("div",{className:"flex flex-col justify-center items-center gap-[23px] mx-auto pt-5",children:[y.jsx(Qf,{}),y.jsx("br",{}),y.jsx("h2",{className:"font-medium text-xl",children:"Access Denied: No Access Permission"}),y.jsxs("p",{className:"text-base",children:["We regret to inform you that you do not have the necessary permissions to access ",y.jsx("br",{})," this page. Please contact our administrator for assistance. Thank you for your understanding."]}),y.jsx(R.Button,{variant:"primary",className:"mt-4",onClick:()=>{e(-1)},children:"Go back"})]})})},Qf=()=>y.jsxs("svg",{width:"61",height:"60",viewBox:"0 0 61 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsxs("g",{filter:"url(#filter0_d_10800_50471)",children:[y.jsx("rect",{x:"2.5",y:"1",width:"56",height:"56",rx:"28",fill:"white"}),y.jsx("path",{d:"M24.6667 27.833V23.1663C24.6667 21.6192 25.2812 20.1355 26.3752 19.0416C27.4692 17.9476 28.9529 17.333 30.5 17.333C32.0471 17.333 33.5308 17.9476 34.6248 19.0416C35.7188 20.1355 36.3333 21.6192 36.3333 23.1663V27.833M22.3333 27.833H38.6667C39.9553 27.833 41 28.8777 41 30.1663V38.333C41 39.6217 39.9553 40.6663 38.6667 40.6663H22.3333C21.0447 40.6663 20 39.6217 20 38.333V30.1663C20 28.8777 21.0447 27.833 22.3333 27.833Z",stroke:"#292929","stroke-width":"2.33333","stroke-linecap":"round","stroke-linejoin":"round"})]}),y.jsx("defs",{children:y.jsxs("filter",{id:"filter0_d_10800_50471",x:"0.5",y:"0",width:"60",height:"60",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[y.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),y.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),y.jsx("feOffset",{dy:"1"}),y.jsx("feGaussianBlur",{stdDeviation:"1"}),y.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0"}),y.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_10800_50471"}),y.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_10800_50471",result:"shape"})]})})]});function ze(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function tl(e){if(!ze(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=tl(e[n])}),t}function xe(e,t,n={clone:!0}){const r=n.clone?C._extends({},e):e;return ze(e)&&ze(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(ze(t[i])&&i in e&&ze(e[i])?r[i]=xe(e[i],t[i],n):n.clone?r[i]=ze(t[i])?tl(t[i]):t[i]:r[i]=t[i])}),r}function xt(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Dr={exports:{}},I={};/**
7
7
  * @license React
8
8
  * react-is.production.min.js
9
9
  *
@@ -5212,7 +5212,9 @@ function V2(e) {
5212
5212
  return /* @__PURE__ */ y(zs, { styles: [uu, kh], style: { zIndex: 1200 }, children: /* @__PURE__ */ y(Oh, { ...e }) });
5213
5213
  }
5214
5214
  function Oh(e) {
5215
- const { baseUrl: t, menuPath: n } = e, r = cc(), [i, s] = J([]), [o, a] = J(!1), [l, c] = J({}), d = vl(i), u = window.location.origin + r.pathname, h = Mh(d, u).filter(
5215
+ const { baseUrl: t, menuPath: n } = e, r = cc(), [i, s] = J([]), [o, a] = J(!1), [l, c] = J({}), d = vl(i), u = window.location.origin + r.pathname;
5216
+ console.log("href: ", u);
5217
+ const h = Mh(d, u).filter(
5216
5218
  (b) => b.parentKey !== 0
5217
5219
  );
5218
5220
  console.log("matchPaths:", h);
@@ -5310,7 +5312,7 @@ function vl(e) {
5310
5312
  return t;
5311
5313
  }
5312
5314
  function Mh(e, t) {
5313
- let n = e.find((i) => i.path && t.includes(i.path)), r = [];
5315
+ let n = e.find((i) => i.path && t.includes(i.path.split("?")[0])), r = [];
5314
5316
  for (; n; )
5315
5317
  r = [n, ...r], n = e.find((i) => i.id === n.parentKey);
5316
5318
  return r;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index.es-52d1ebeb.cjs"),R=require("axios"),i=require("react/jsx-runtime"),d=require("react"),f=require("react-router-dom");require("react-dom");require("@mui/material");require("moment");function j({config:n,pushError:r=o.pushError}){const t=R.create(n);t.interceptors.request.use(async e=>(e.headers={Accept:"application/json","Content-Type":"application/json"},e),e=>Promise.reject(e)),t.interceptors.response.use(e=>e,async e=>s(e));function s(e){var c,p,m,h,P,g;console.error("Error 🚨:",e);const a=e==null?void 0:e.config;if(((c=e.response)==null?void 0:c.status)===401&&e.response.data.errorMessage===o.ERROR_MESSAGE.TOKEN_EXPIRED&&!a._retry)return a._retry=!0,t.post("/authentication/api/v1/auth/refresh-token").then(()=>t(a)).catch(()=>o.login(n.baseURL));if(((p=e.response)==null?void 0:p.status)===401&&(((m=e.response)==null?void 0:m.data.errorMessage)!==o.ERROR_MESSAGE.TOKEN_EXPIRED||!((h=e.response)!=null&&h.data.errorMessage)))return o.login(n.baseURL);if(e.response.status!==401){const l=((P=e.response)==null?void 0:P.data)&&((g=e.response.data)==null?void 0:g.errorMessage)||"Something went wrong!";return r(l),Promise.reject(e.response.data)}return Promise.reject(e)}return t}const E=n=>{const[r,t]=d.useState([]);return d.useEffect(()=>{R.get(`${n}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(s=>t(s.data)).catch(s=>{console.error("Getting user permission error:",s)})},[n]),r},u=n=>(r,t)=>{const s=E(n);return t?r.every(e=>s==null?void 0:s.includes(e)):r.some(e=>s==null?void 0:s.includes(e))},q=({baseUrl:n,accessWith:r,requireAll:t,children:s})=>u(n)(r,t)?i.jsx(i.Fragment,{children:s}):null,A=({accessWith:n,requireAll:r,baseUrl:t,unAuthorizedPath:s,children:e})=>u(t)(n,r)?i.jsx(i.Fragment,{children:e}):i.jsx(f.Navigate,{to:s,replace:!0});exports.AuthProvider=o.AuthProvider;exports.search=o.search;exports.useAuth=o.useAuth;exports.HasPermission=q;exports.PermissionRoute=A;exports.getAxiosInstance=j;exports.getUseHasPermission=u;exports.useGetPermission=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index.es-52d1ebeb.cjs"),l=require("axios"),i=require("react/jsx-runtime"),g=require("react"),R=require("react-router-dom");require("react-dom");require("@mui/material");require("moment");function E({config:t,pushError:n=o.pushError}){const r=l.create(t);r.interceptors.request.use(async e=>(e.headers={Accept:"application/json","Content-Type":"application/json"},e),e=>Promise.reject(e)),r.interceptors.response.use(e=>e,async e=>s(e));async function s(e){var h,p,P;console.error("Error 🚨:",e);const a=e.config,u=(p=(h=e.response)==null?void 0:h.data)==null?void 0:p.errorMessage,m=u===o.ERROR_MESSAGE.TOKEN_EXPIRED;return((P=e.response)==null?void 0:P.status)===401?m&&!a._retry?(a._retry=!0,r.post("/authentication/api/v1/auth/refresh-token").then(()=>r(a)).catch(()=>o.login(t.baseURL))):((!u||!m)&&o.login(t.baseURL),Promise.reject("Unauthorized! Please login again.")):(n(u||"Something went wrong!"),Promise.reject(e.response.data))}return r}const d=t=>{const[n,r]=g.useState([]);return g.useEffect(()=>{l.get(`${t}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(s=>r(s.data)).catch(s=>{console.error("Getting user permission error:",s)})},[t]),n},c=t=>(n,r)=>{const s=d(t);return r?n.every(e=>s==null?void 0:s.includes(e)):n.some(e=>s==null?void 0:s.includes(e))},f=({baseUrl:t,accessWith:n,requireAll:r,children:s})=>c(t)(n,r)?i.jsx(i.Fragment,{children:s}):null,j=({accessWith:t,requireAll:n,baseUrl:r,unAuthorizedPath:s,children:e})=>c(r)(t,n)?i.jsx(i.Fragment,{children:e}):i.jsx(R.Navigate,{to:s,replace:!0});exports.AuthProvider=o.AuthProvider;exports.search=o.search;exports.useAuth=o.useAuth;exports.HasPermission=f;exports.PermissionRoute=j;exports.getAxiosInstance=E;exports.getUseHasPermission=c;exports.useGetPermission=d;
@@ -1,78 +1,70 @@
1
- import { E as f, j as E, p as R } from "../index.es-da1b88a3.js";
2
- import { A as H, s as K, u as L } from "../index.es-da1b88a3.js";
3
- import P from "axios";
4
- import { jsx as a, Fragment as d } from "react/jsx-runtime";
5
- import { useState as j, useEffect as y } from "react";
6
- import { Navigate as A } from "react-router-dom";
1
+ import { j as h, p as E, E as g } from "../index.es-da1b88a3.js";
2
+ import { A as C, s as H, u as L } from "../index.es-da1b88a3.js";
3
+ import f from "axios";
4
+ import { jsx as a, Fragment as P } from "react/jsx-runtime";
5
+ import { useState as d, useEffect as R } from "react";
6
+ import { Navigate as y } from "react-router-dom";
7
7
  import "react-dom";
8
8
  import "@mui/material";
9
9
  import "moment";
10
- function O({
11
- config: r,
12
- pushError: n = R
10
+ function M({
11
+ config: t,
12
+ pushError: n = E
13
13
  }) {
14
- const t = P.create(r);
15
- t.interceptors.request.use(
14
+ const s = f.create(t);
15
+ s.interceptors.request.use(
16
16
  async (e) => (e.headers = {
17
17
  Accept: "application/json",
18
18
  "Content-Type": "application/json"
19
19
  }, e),
20
20
  (e) => Promise.reject(e)
21
- ), t.interceptors.response.use(
21
+ ), s.interceptors.response.use(
22
22
  (e) => e,
23
- async (e) => s(e)
23
+ async (e) => r(e)
24
24
  );
25
- function s(e) {
26
- var i, u, p, c, m, h;
25
+ async function r(e) {
26
+ var c, p, m;
27
27
  console.error("Error 🚨:", e);
28
- const o = e == null ? void 0 : e.config;
29
- if (((i = e.response) == null ? void 0 : i.status) === 401 && e.response.data.errorMessage === f.TOKEN_EXPIRED && !o._retry)
30
- return o._retry = !0, t.post("/authentication/api/v1/auth/refresh-token").then(() => t(o)).catch(() => E(r.baseURL));
31
- if (((u = e.response) == null ? void 0 : u.status) === 401 && (((p = e.response) == null ? void 0 : p.data.errorMessage) !== f.TOKEN_EXPIRED || !((c = e.response) != null && c.data.errorMessage)))
32
- return E(r.baseURL);
33
- if (e.response.status !== 401) {
34
- const l = ((m = e.response) == null ? void 0 : m.data) && ((h = e.response.data) == null ? void 0 : h.errorMessage) || "Something went wrong!";
35
- return n(l), Promise.reject(e.response.data);
36
- }
37
- return Promise.reject(e);
28
+ const o = e.config, i = (p = (c = e.response) == null ? void 0 : c.data) == null ? void 0 : p.errorMessage, u = i === g.TOKEN_EXPIRED;
29
+ return ((m = e.response) == null ? void 0 : m.status) === 401 ? u && !o._retry ? (o._retry = !0, s.post("/authentication/api/v1/auth/refresh-token").then(() => s(o)).catch(() => h(t.baseURL))) : ((!i || !u) && h(t.baseURL), Promise.reject("Unauthorized! Please login again.")) : (n(i || "Something went wrong!"), Promise.reject(e.response.data));
38
30
  }
39
- return t;
31
+ return s;
40
32
  }
41
- const v = (r) => {
42
- const [n, t] = j([]);
43
- return y(() => {
44
- P.get(`${r}/user-management/api/v1/users/my-account/permissions`, {
33
+ const j = (t) => {
34
+ const [n, s] = d([]);
35
+ return R(() => {
36
+ f.get(`${t}/user-management/api/v1/users/my-account/permissions`, {
45
37
  withCredentials: !0
46
- }).then((s) => t(s.data)).catch((s) => {
47
- console.error("Getting user permission error:", s);
38
+ }).then((r) => s(r.data)).catch((r) => {
39
+ console.error("Getting user permission error:", r);
48
40
  });
49
- }, [r]), n;
50
- }, g = (r) => (n, t) => {
51
- const s = v(r);
52
- return t ? n.every(
53
- (e) => s == null ? void 0 : s.includes(e)
41
+ }, [t]), n;
42
+ }, l = (t) => (n, s) => {
43
+ const r = j(t);
44
+ return s ? n.every(
45
+ (e) => r == null ? void 0 : r.includes(e)
54
46
  ) : n.some(
55
- (e) => s == null ? void 0 : s.includes(e)
47
+ (e) => r == null ? void 0 : r.includes(e)
56
48
  );
57
49
  }, T = ({
58
- baseUrl: r,
50
+ baseUrl: t,
59
51
  accessWith: n,
60
- requireAll: t,
61
- children: s
62
- }) => g(r)(n, t) ? /* @__PURE__ */ a(d, { children: s }) : null, q = ({
63
- accessWith: r,
52
+ requireAll: s,
53
+ children: r
54
+ }) => l(t)(n, s) ? /* @__PURE__ */ a(P, { children: r }) : null, U = ({
55
+ accessWith: t,
64
56
  requireAll: n,
65
- baseUrl: t,
66
- unAuthorizedPath: s,
57
+ baseUrl: s,
58
+ unAuthorizedPath: r,
67
59
  children: e
68
- }) => g(t)(r, n) ? /* @__PURE__ */ a(d, { children: e }) : /* @__PURE__ */ a(A, { to: s, replace: !0 });
60
+ }) => l(s)(t, n) ? /* @__PURE__ */ a(P, { children: e }) : /* @__PURE__ */ a(y, { to: r, replace: !0 });
69
61
  export {
70
- H as AuthProvider,
62
+ C as AuthProvider,
71
63
  T as HasPermission,
72
- q as PermissionRoute,
73
- O as getAxiosInstance,
74
- g as getUseHasPermission,
75
- K as search,
64
+ U as PermissionRoute,
65
+ M as getAxiosInstance,
66
+ l as getUseHasPermission,
67
+ H as search,
76
68
  L as useAuth,
77
- v as useGetPermission
69
+ j as useGetPermission
78
70
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ukpc-lib/react",
3
3
  "private": false,
4
- "version": "0.1.19",
4
+ "version": "0.1.21",
5
5
  "type": "module",
6
6
  "main": "./dist/",
7
7
  "module": "./dist/",
@@ -35,7 +35,7 @@
35
35
  * Copyright(c) 2015 Douglas Christopher Wilson
36
36
  * MIT Licensed
37
37
  */var _g=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,qP=/\\([\u000b\u0020-\u00ff])/g,GP=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,$P=XP;function XP(e){if(!e)throw new TypeError("argument string is required");var t=typeof e=="object"?KP(e):e;if(typeof t!="string")throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),i=n!==-1?t.slice(0,n).trim():t.trim();if(!GP.test(i))throw new TypeError("invalid media type");var a=new ZP(i.toLowerCase());if(n!==-1){var l,f,d;for(_g.lastIndex=n;f=_g.exec(t);){if(f.index!==n)throw new TypeError("invalid parameter format");n+=f[0].length,l=f[1].toLowerCase(),d=f[2],d.charCodeAt(0)===34&&(d=d.slice(1,-1),d.indexOf("\\")!==-1&&(d=d.replace(qP,"$1"))),a.parameters[l]=d}if(n!==t.length)throw new TypeError("invalid parameter format")}return a}function KP(e){var t;if(typeof e.getHeader=="function"?t=e.getHeader("content-type"):typeof e.headers=="object"&&(t=e.headers&&e.headers["content-type"]),typeof t!="string")throw new TypeError("content-type header is missing from object");return t}function ZP(e){this.parameters=Object.create(null),this.type=e}var Fs=new Map,Gv=function(t){return t.cloneNode(!0)},Sg=function(){return window.location.protocol==="file:"},$v=function(t,n,i){var a=new XMLHttpRequest;a.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&a.readyState===2){var l=a.getResponseHeader("Content-Type");if(!l)throw new Error("Content type not found");var f=$P(l).type;if(!(f==="image/svg+xml"||f==="text/plain"))throw new Error("Invalid content type: ".concat(f))}if(a.readyState===4){if(a.status===404||a.responseXML===null)throw new Error(Sg()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+t);if(a.status===200||Sg()&&a.status===0)i(null,a);else throw new Error("There was a problem injecting the SVG: "+a.status+" "+a.statusText)}}catch(d){if(a.abort(),d instanceof Error)i(d,a);else throw d}},a.open("GET",t),a.withCredentials=n,a.overrideMimeType&&a.overrideMimeType("text/xml"),a.send()},Pi={},Eg=function(t,n){Pi[t]=Pi[t]||[],Pi[t].push(n)},JP=function(t){for(var n=function(f,d){setTimeout(function(){if(Array.isArray(Pi[t])){var y=Fs.get(t),v=Pi[t][f];y instanceof SVGSVGElement&&v(null,Gv(y)),y instanceof Error&&v(y),f===Pi[t].length-1&&delete Pi[t]}},0)},i=0,a=Pi[t].length;i<a;i++)n(i)},QP=function(t,n,i){if(Fs.has(t)){var a=Fs.get(t);if(a===void 0){Eg(t,i);return}if(a instanceof SVGSVGElement){i(null,Gv(a));return}}Fs.set(t,void 0),Eg(t,i),$v(t,n,function(l,f){var d;l?Fs.set(t,l):((d=f.responseXML)===null||d===void 0?void 0:d.documentElement)instanceof SVGSVGElement&&Fs.set(t,f.responseXML.documentElement),JP(t)})},eO=function(t,n,i){$v(t,n,function(a,l){var f;a?i(a):((f=l.responseXML)===null||f===void 0?void 0:f.documentElement)instanceof SVGSVGElement&&i(null,l.responseXML.documentElement)})},tO=0,nO=function(){return++tO},wr=[],Dg={},rO="http://www.w3.org/2000/svg",Df="http://www.w3.org/1999/xlink",Tg=function(t,n,i,a,l,f,d){var y=t.getAttribute("data-src")||t.getAttribute("src");if(!y){d(new Error("Invalid data-src or src attribute"));return}if(wr.indexOf(t)!==-1){wr.splice(wr.indexOf(t),1),t=null;return}wr.push(t),t.setAttribute("src","");var v=a?QP:eO;v(y,l,function(_,x){if(!x){wr.splice(wr.indexOf(t),1),t=null,d(_);return}var A=t.getAttribute("id");A&&x.setAttribute("id",A);var P=t.getAttribute("title");P&&x.setAttribute("title",P);var M=t.getAttribute("width");M&&x.setAttribute("width",M);var R=t.getAttribute("height");R&&x.setAttribute("height",R);var H=Array.from(new Set(Ef(Ef(Ef([],(x.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();x.setAttribute("class",H);var F=t.getAttribute("style");F&&x.setAttribute("style",F),x.setAttribute("data-src",y);var Z=[].filter.call(t.attributes,function(Me){return/^data-\w[\w-]*$/.test(Me.name)});if(Array.prototype.forEach.call(Z,function(Me){Me.name&&Me.value&&x.setAttribute(Me.name,Me.value)}),i){var G={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},oe,re,se,p,ce;Object.keys(G).forEach(function(Me){oe=Me,se=G[Me],re=x.querySelectorAll(oe+"[id]");for(var xt=function(Ft,Mn){p=re[Ft].id,ce=p+"-"+nO();var Ct;Array.prototype.forEach.call(se,function(Xn){Ct=x.querySelectorAll("["+Xn+'*="'+p+'"]');for(var At=0,Pr=Ct.length;At<Pr;At++){var ai=Ct[At].getAttribute(Xn);ai&&!ai.match(new RegExp('url\\("?#'+p+'"?\\)'))||Ct[At].setAttribute(Xn,"url(#"+ce+")")}});for(var Wt=x.querySelectorAll("[*|href]"),Rn=[],rn=0,sn=Wt.length;rn<sn;rn++){var Et=Wt[rn].getAttributeNS(Df,"href");Et&&Et.toString()==="#"+re[Ft].id&&Rn.push(Wt[rn])}for(var Lt=0,an=Rn.length;Lt<an;Lt++)Rn[Lt].setAttributeNS(Df,"href","#"+ce);re[Ft].id=ce},St=0,Oe=re.length;St<Oe;St++)xt(St)})}x.removeAttribute("xmlns:a");for(var ae=x.querySelectorAll("script"),et=[],gt,Ze,_e=0,tt=ae.length;_e<tt;_e++)Ze=ae[_e].getAttribute("type"),(!Ze||Ze==="application/ecmascript"||Ze==="application/javascript"||Ze==="text/javascript")&&(gt=ae[_e].innerText||ae[_e].textContent,gt&&et.push(gt),x.removeChild(ae[_e]));if(et.length>0&&(n==="always"||n==="once"&&!Dg[y])){for(var Vt=0,at=et.length;Vt<at;Vt++)new Function(et[Vt])(window);Dg[y]=!0}var Ge=x.querySelectorAll("style");if(Array.prototype.forEach.call(Ge,function(Me){Me.textContent+=""}),x.setAttribute("xmlns",rO),x.setAttribute("xmlns:xlink",Df),f(x),!t.parentNode){wr.splice(wr.indexOf(t),1),t=null,d(new Error("Parent node is null"));return}t.parentNode.replaceChild(x,t),wr.splice(wr.indexOf(t),1),t=null,d(null,x)})},iO=function(t,n){var i=n===void 0?{}:n,a=i.afterAll,l=a===void 0?function(){}:a,f=i.afterEach,d=f===void 0?function(){}:f,y=i.beforeEach,v=y===void 0?function(){}:y,_=i.cacheRequests,x=_===void 0?!0:_,A=i.evalScripts,P=A===void 0?"never":A,M=i.httpRequestWithCredentials,R=M===void 0?!1:M,H=i.renumerateIRIElements,F=H===void 0?!0:H;if(t&&"length"in t)for(var Z=0,G=0,oe=t.length;G<oe;G++)Tg(t[G],P,F,x,R,v,function(re,se){d(re,se),t&&"length"in t&&t.length===++Z&&l(Z)});else t?Tg(t,P,F,x,R,v,function(re,se){d(re,se),l(1),t=null}):l(0)},sO=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},aO=function(t,n){for(var i in t)if(!(i in n))return!0;for(var a in n)if(t[a]!==n[a])return!0;return!1},oO=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Il="http://www.w3.org/2000/svg",Cg="http://www.w3.org/1999/xlink",Ih=function(e){zP(t,e);function t(){for(var i,a=arguments.length,l=new Array(a),f=0;f<a;f++)l[f]=arguments[f];return i=e.call.apply(e,[this].concat(l))||this,i.initialState={hasError:!1,isLoading:!0},i.state=i.initialState,i._isMounted=!1,i.reactWrapper=void 0,i.nonReactWrapper=void 0,i.refCallback=function(d){i.reactWrapper=d},i}var n=t.prototype;return n.renderSVG=function(){var a=this;if(this.reactWrapper instanceof sO(this.reactWrapper).Node){var l=this.props,f=l.desc,d=l.evalScripts,y=l.httpRequestWithCredentials,v=l.renumerateIRIElements,_=l.src,x=l.title,A=l.useRequestCache,P=this.props.onError,M=this.props.beforeInjection,R=this.props.afterInjection,H=this.props.wrapper,F,Z;H==="svg"?(F=document.createElementNS(Il,H),F.setAttribute("xmlns",Il),F.setAttribute("xmlns:xlink",Cg),Z=document.createElementNS(Il,H)):(F=document.createElement(H),Z=document.createElement(H)),F.appendChild(Z),Z.dataset.src=_,this.nonReactWrapper=this.reactWrapper.appendChild(F);var G=function(p){if(a.removeSVG(),!a._isMounted){P(p);return}a.setState(function(){return{hasError:!0,isLoading:!1}},function(){P(p)})},oe=function(p,ce){if(p){G(p);return}a._isMounted&&a.setState(function(){return{isLoading:!1}},function(){try{R(ce)}catch(ae){G(ae)}})},re=function(p){if(p.setAttribute("role","img"),f){var ce=p.querySelector(":scope > desc");ce&&p.removeChild(ce);var ae=document.createElement("desc");ae.innerHTML=f,p.prepend(ae)}if(x){var et=p.querySelector(":scope > title");et&&p.removeChild(et);var gt=document.createElement("title");gt.innerHTML=x,p.prepend(gt)}try{M(p)}catch(Ze){G(Ze)}};iO(Z,{afterEach:oe,beforeEach:re,cacheRequests:A,evalScripts:d,httpRequestWithCredentials:y,renumerateIRIElements:v})}},n.removeSVG=function(){var a;(a=this.nonReactWrapper)!=null&&a.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(a){var l=this;aO(ou({},a),this.props)&&this.setState(function(){return l.initialState},function(){l.removeSVG(),l.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var a=this.props;a.afterInjection,a.beforeInjection,a.desc,a.evalScripts;var l=a.fallback;a.httpRequestWithCredentials;var f=a.loading;a.renumerateIRIElements,a.src,a.title,a.useRequestCache;var d=a.wrapper,y=HP(a,oO),v=d;return V.reactExports.createElement(v,ou({},y,{ref:this.refCallback},d==="svg"?{xmlns:Il,xmlnsXlink:Cg}:{}),this.state.isLoading&&f&&V.reactExports.createElement(f,null),this.state.hasError&&l&&V.reactExports.createElement(l,null))},t}(V.reactExports.Component);Ih.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Ih.propTypes={afterInjection:V.propTypesExports.func,beforeInjection:V.propTypesExports.func,desc:V.propTypesExports.string,evalScripts:V.propTypesExports.oneOf(["always","once","never"]),fallback:V.propTypesExports.oneOfType([V.propTypesExports.func,V.propTypesExports.object,V.propTypesExports.string]),httpRequestWithCredentials:V.propTypesExports.bool,loading:V.propTypesExports.oneOfType([V.propTypesExports.func,V.propTypesExports.object,V.propTypesExports.string]),onError:V.propTypesExports.func,renumerateIRIElements:V.propTypesExports.bool,src:V.propTypesExports.string.isRequired,title:V.propTypesExports.string,useRequestCache:V.propTypesExports.bool,wrapper:V.propTypesExports.oneOf(["div","span","svg"])};function lO(e){return V.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:V.jsxRuntimeExports.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function uO(e){const{children:t,parentRef:n,onlyChild:i}=e,[a,l]=V.reactExports.useState({top:0,left:0});return V.reactExports.useLayoutEffect(()=>{if(n.current){const f=n.current.getBoundingClientRect();l({top:f.top,left:f.left+f.width})}},[n]),i?t:V.reactDomExports.createPortal(V.jsxRuntimeExports.jsx(Nv.div,{style:{position:"fixed",top:a.top,left:a.left,zIndex:1200},children:t}),n.current)}function Xv({item:e,level:t=0,...n}){var p;const{isActive:i,isCollapsed:a,expanded:l,toggleExpand:f}=n,d=`level-${t}`,y=a?"collapsed":"expanded",v=i(e.id)?"active":"",_=(ce,ae=d)=>`${ce} ${ae} ${y} ${v}`,x=!!((p=e.children)!=null&&p.length),[A,P]=V.reactExports.useState(!1),M=V.reactExports.useRef();function R(ce){var Ze;const{level:ae,hovered:et,parentRef:gt}=ce;return!x||a&&ae>=2&&!et?null:V.jsxRuntimeExports.jsx(uO,{parentRef:gt,onlyChild:!a||a&&ae<2,children:V.jsxRuntimeExports.jsx(Nv.div,{className:_("menu-item__dropdown",`level-${ae}`),initial:{height:a?"auto":0},animate:{height:a||l(e.id)?"auto":0},transition:{duration:.2},children:(Ze=e.children)==null?void 0:Ze.map(_e=>V.reactExports.createElement(Xv,{...n,key:_e.id,item:_e,level:ae}))},+a)})}const H=window.location.origin,F=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},Z=window.location.pathname.split("/")[1],G=F.pathname.split("/")[1],oe=n.ssr||!H.includes("local")&&H!==F.origin||G!==Z,re=x?"div":oe?"a":YP,se=e.path||"#";return V.jsxRuntimeExports.jsxs("div",{ref:M,className:_("menu-item__wrapper"),onMouseEnter:()=>a&&P(!0),onMouseLeave:()=>a&&P(!1),children:[V.jsxRuntimeExports.jsxs(re,{to:se,href:se,style:{paddingLeft:`${a?"0.5rem":`${t*1}rem`}`},className:_("menu-item__link"),onClick:ce=>{x&&(ce.preventDefault(),a||f(e.id))},children:[t!==0&&V.jsxRuntimeExports.jsx(cO,{cls:_,item:e}),V.jsxRuntimeExports.jsx("span",{className:_("menu-item__label"),children:e.name}),x&&V.jsxRuntimeExports.jsx("div",{className:_("menu-item__icon-arrow__wrapper"),children:V.jsxRuntimeExports.jsx(lO,{className:_(`menu-item__icon-arrow__icon ${l(e.id)?"open":"close"}`)})})]}),R({level:t+1,hovered:A,parentRef:M})]},e.id)}function cO({item:e,cls:t}){var f,d;const[n,i]=V.reactExports.useState(!1),a=()=>{i(!0)},l=(f=e.icon)==null?void 0:f.endsWith(".svg");return V.jsxRuntimeExports.jsx("div",{className:t("menu-item__icon"),children:n?V.jsxRuntimeExports.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(d=e.name.trim().at(0))==null?void 0:d.toUpperCase()}):l?V.jsxRuntimeExports.jsx(Ih,{src:e.icon,beforeInjection:y=>{y.setAttribute("style","margin: 0 auto;"),y.querySelectorAll("path").forEach(_=>{_.setAttribute("stroke","currentColor")})}}):V.jsxRuntimeExports.jsx("img",{src:e.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:a})})}function fO(){return V.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:V.jsxRuntimeExports.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function hO(){return V.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:V.jsxRuntimeExports.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function dO(e){return V.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,children:V.jsxRuntimeExports.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const pO=`.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;padding:0 8px}.side-bar.expanded{width:18rem}.side-bar.collapsed{width:64px;padding-left:4px;padding-right:4px}.side-bar__menu{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.side-bar__menu.collapsed{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px}.side-bar__logout-btn__text.collapsed{display:none}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:0 16px;min-height:48px;border-radius:.375rem}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__logout-btn.collapsed{justify-content:center}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;margin-top:4px}.menu-item__wrapper:first-child,.menu-item__wrapper.collapsed{margin-top:0}.menu-item__wrapper.collapsed.level-1{margin-top:4px}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:auto}.menu-item__link.menu-item__link.collapsed.level-0{display:none}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.menu-item__icon.collapsed.level-1{width:100%}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-1{text-align:center;margin-left:0;display:none}.menu-item__label.level-0{color:#85858a}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:-3px}.menu-item__icon-arrow__wrapper.expanded{right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{margin-top:4px;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}
38
- `;function mO(e){return V.jsxRuntimeExports.jsx(V.ShadowDomWrapper,{styles:[KD,pO],style:{zIndex:1200},children:V.jsxRuntimeExports.jsx(gO,{...e})})}function gO(e){const{baseUrl:t,menuPath:n}=e,i=ku(),[a,l]=V.reactExports.useState([]),[f,d]=V.reactExports.useState(!1),[y,v]=V.reactExports.useState({}),_=Kv(a),x=window.location.origin+i.pathname,A=yO(_,x).filter(G=>G.parentKey!==0);console.log("matchPaths:",A);const P=G=>{v({...y,[G]:!y[G]})},M=()=>{d(!f)};V.reactExports.useEffect(()=>{(async()=>{const oe=t+(n||"/global-menu-config/api/v1/menu-items/user"),re=await dD.get(oe,{withCredentials:!0}).then(ce=>ce.data).catch(ce=>{var ae,et;sT(((et=(ae=ce.response)==null?void 0:ae.data)==null?void 0:et.errorMessage)||"Have error when get menu items")}),se={};re.forEach(ce=>{ce.children&&(se[ce.id]=!0)}),v(se);let p=re.map(ce=>({...ce,parentKey:0}));e.replacePath&&(p=Zv(p,e.replacePath)),l(p)})()},[t,n,e.replacePath]);const[R,H]=V.reactExports.useState(!1),F=f?"collapsed":"expanded",Z=G=>`${G} ${F}`;return V.jsxRuntimeExports.jsxs("div",{className:Z("side-bar"),children:[V.jsxRuntimeExports.jsx("div",{className:Z("side-bar__wrapper-toggle-btn"),children:V.jsxRuntimeExports.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:M,children:f?V.jsxRuntimeExports.jsx(hO,{}):V.jsxRuntimeExports.jsx(fO,{})})}),V.jsxRuntimeExports.jsx(fy,{className:Z("side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:a.map(G=>{const oe=re=>A.some(se=>se.id===re);return V.jsxRuntimeExports.jsx(Xv,{item:G,isActive:oe,isCollapsed:f,expanded:re=>y[re],toggleExpand:P,replacePath:e.replacePath,ssr:e.ssr},G.id)})}),V.jsxRuntimeExports.jsxs("div",{className:Z("side-bar__wrap-btn-logout"),children:[V.jsxRuntimeExports.jsxs("button",{className:Z("side-bar__logout-btn"),onClick:()=>H(!0),children:[V.jsxRuntimeExports.jsx(dO,{}),V.jsxRuntimeExports.jsx("span",{className:Z("side-bar__logout-btn__text"),children:"Logout"})]}),V.jsxRuntimeExports.jsx(V.LogoutConfirmModal,{isOpen:R,onClose:()=>H(!1),onConfirm:()=>e.logout?e.logout():ZD(e.baseUrl)})]})]})}function Kv(e){let t=[];for(const n of e)t.push(n),n.children&&(t=t.concat(Kv(n.children)));return t}function yO(e,t){let n=e.find(a=>a.path&&t.includes(a.path)),i=[];for(;n;)i=[n,...i],n=e.find(a=>a.id===n.parentKey);return i}function Zv(e,t){return e.map(n=>(n.path&&(n.path=t(n.path)),n.children&&n.children.length>0&&(n.children=Zv(n.children,t)),n))}var lu={exports:{}};/**
38
+ `;function mO(e){return V.jsxRuntimeExports.jsx(V.ShadowDomWrapper,{styles:[KD,pO],style:{zIndex:1200},children:V.jsxRuntimeExports.jsx(gO,{...e})})}function gO(e){const{baseUrl:t,menuPath:n}=e,i=ku(),[a,l]=V.reactExports.useState([]),[f,d]=V.reactExports.useState(!1),[y,v]=V.reactExports.useState({}),_=Kv(a),x=window.location.origin+i.pathname;console.log("href: ",x);const A=yO(_,x).filter(G=>G.parentKey!==0);console.log("matchPaths:",A);const P=G=>{v({...y,[G]:!y[G]})},M=()=>{d(!f)};V.reactExports.useEffect(()=>{(async()=>{const oe=t+(n||"/global-menu-config/api/v1/menu-items/user"),re=await dD.get(oe,{withCredentials:!0}).then(ce=>ce.data).catch(ce=>{var ae,et;sT(((et=(ae=ce.response)==null?void 0:ae.data)==null?void 0:et.errorMessage)||"Have error when get menu items")}),se={};re.forEach(ce=>{ce.children&&(se[ce.id]=!0)}),v(se);let p=re.map(ce=>({...ce,parentKey:0}));e.replacePath&&(p=Zv(p,e.replacePath)),l(p)})()},[t,n,e.replacePath]);const[R,H]=V.reactExports.useState(!1),F=f?"collapsed":"expanded",Z=G=>`${G} ${F}`;return V.jsxRuntimeExports.jsxs("div",{className:Z("side-bar"),children:[V.jsxRuntimeExports.jsx("div",{className:Z("side-bar__wrapper-toggle-btn"),children:V.jsxRuntimeExports.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:M,children:f?V.jsxRuntimeExports.jsx(hO,{}):V.jsxRuntimeExports.jsx(fO,{})})}),V.jsxRuntimeExports.jsx(fy,{className:Z("side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:a.map(G=>{const oe=re=>A.some(se=>se.id===re);return V.jsxRuntimeExports.jsx(Xv,{item:G,isActive:oe,isCollapsed:f,expanded:re=>y[re],toggleExpand:P,replacePath:e.replacePath,ssr:e.ssr},G.id)})}),V.jsxRuntimeExports.jsxs("div",{className:Z("side-bar__wrap-btn-logout"),children:[V.jsxRuntimeExports.jsxs("button",{className:Z("side-bar__logout-btn"),onClick:()=>H(!0),children:[V.jsxRuntimeExports.jsx(dO,{}),V.jsxRuntimeExports.jsx("span",{className:Z("side-bar__logout-btn__text"),children:"Logout"})]}),V.jsxRuntimeExports.jsx(V.LogoutConfirmModal,{isOpen:R,onClose:()=>H(!1),onConfirm:()=>e.logout?e.logout():ZD(e.baseUrl)})]})]})}function Kv(e){let t=[];for(const n of e)t.push(n),n.children&&(t=t.concat(Kv(n.children)));return t}function yO(e,t){let n=e.find(a=>a.path&&t.includes(a.path.split("?")[0])),i=[];for(;n;)i=[n,...i],n=e.find(a=>a.id===n.parentKey);return i}function Zv(e,t){return e.map(n=>(n.path&&(n.path=t(n.path)),n.children&&n.children.length>0&&(n.children=Zv(n.children,t)),n))}var lu={exports:{}};/**
39
39
  * @license
40
40
  * Lodash <https://lodash.com/>
41
41
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -7493,7 +7493,9 @@ var UI = nD((GI, Kl) => {
7493
7493
  return /* @__PURE__ */ Me.jsx(sD, { styles: [uT, EO], style: { zIndex: 1200 }, children: /* @__PURE__ */ Me.jsx(kO, { ...e }) });
7494
7494
  }
7495
7495
  function kO(e) {
7496
- const { baseUrl: t, menuPath: n } = e, i = Ru(), [a, l] = ne.useState([]), [f, d] = ne.useState(!1), [y, v] = ne.useState({}), _ = n0(a), b = window.location.origin + i.pathname, A = PO(_, b).filter(
7496
+ const { baseUrl: t, menuPath: n } = e, i = Ru(), [a, l] = ne.useState([]), [f, d] = ne.useState(!1), [y, v] = ne.useState({}), _ = n0(a), b = window.location.origin + i.pathname;
7497
+ console.log("href: ", b);
7498
+ const A = PO(_, b).filter(
7497
7499
  (q) => q.parentKey !== 0
7498
7500
  );
7499
7501
  console.log("matchPaths:", A);
@@ -7594,7 +7596,7 @@ var UI = nD((GI, Kl) => {
7594
7596
  return t;
7595
7597
  }
7596
7598
  function PO(e, t) {
7597
- let n = e.find((a) => a.path && t.includes(a.path)), i = [];
7599
+ let n = e.find((a) => a.path && t.includes(a.path.split("?")[0])), i = [];
7598
7600
  for (; n; )
7599
7601
  i = [n, ...i], n = e.find((a) => a.id === n.parentKey);
7600
7602
  return i;