@3sc/common-component 0.0.130 → 0.0.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +13 -17
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -245,7 +245,7 @@ const theme2 = createTheme({ palette: {
|
|
|
245
245
|
${f}px !important;
|
|
246
246
|
top: ${u}px !important;
|
|
247
247
|
}
|
|
248
|
-
`),()=>{document.head.removeChild(g)}},[t]),v.jsx(zA,{isPresent:t,childRef:r,sizeRef:s,children:S.cloneElement(e,{ref:r})})}const XA=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:s,mode:a,anchorX:c})=>{const l=zc(UA),u=P.useId(),d=P.useCallback(f=>{l.set(f,!0);for(const g of l.values())if(!g)return;o&&o()},[l,o]),p=P.useMemo(()=>({id:u,initial:t,isPresent:n,custom:r,onExitComplete:d,register:f=>(l.set(f,!1),()=>l.delete(f))}),s?[Math.random(),d]:[n,d]);return P.useMemo(()=>{l.forEach((f,g)=>l.set(g,!1))},[n]),S.useEffect(()=>{!n&&!l.size&&o&&o()},[n]),a==="popLayout"&&(e=v.jsx(HA,{isPresent:n,anchorX:c,children:e})),v.jsx(aa.Provider,{value:p,children:e})};function UA(){return new Map}function Ym(e=!0){const t=P.useContext(aa);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,s=P.useId();P.useEffect(()=>{if(e)return r(s)},[e]);const a=P.useCallback(()=>e&&o&&o(s),[s,o,e]);return!n&&o?[!1,a]:[!0]}const la=e=>e.key||"";function Zm(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const Xc=typeof window<"u",Jm=Xc?P.useLayoutEffect:P.useEffect,Uc=({children:e,custom:t,initial:n=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:s="sync",propagate:a=!1,anchorX:c="left"})=>{const[l,u]=Ym(a),d=P.useMemo(()=>Zm(e),[e]),p=a&&!l?[]:d.map(la),f=P.useRef(!0),g=P.useRef(d),m=zc(()=>new Map),[h,b]=P.useState(d),[y,T]=P.useState(d);Jm(()=>{f.current=!1,g.current=d;for(let x=0;x<y.length;x++){const R=la(y[x]);p.includes(R)?m.delete(R):m.get(R)!==!0&&m.set(R,!1)}},[y,p.length,p.join("-")]);const C=[];if(d!==h){let x=[...d];for(let R=0;R<y.length;R++){const w=y[R],O=la(w);p.includes(O)||(x.splice(R,0,w),C.push(w))}return s==="wait"&&C.length&&(x=C),T(Zm(x)),b(d),null}process.env.NODE_ENV!=="production"&&s==="wait"&&y.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=P.useContext(Wc);return v.jsx(v.Fragment,{children:y.map(x=>{const R=la(x),w=a&&!l?!1:d===y||p.includes(R),O=()=>{if(m.has(R))m.set(R,!0);else return;let M=!0;m.forEach(N=>{N||(M=!1)}),M&&(I==null||I(),T(g.current),a&&(u==null||u()),o&&o())};return v.jsx(XA,{isPresent:w,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:s,onExitComplete:w?void 0:O,anchorX:c,children:x},R)})})},Wt=e=>e;let dr=Wt,to=Wt;process.env.NODE_ENV!=="production"&&(dr=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},to=(e,t)=>{if(!e)throw new Error(t)});function Yc(e){let t;return()=>(t===void 0&&(t=e()),t)}const pr=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o},Mn=e=>e*1e3,_n=e=>e/1e3,YA={useManualTiming:!1},ca=["read","resolveKeyframes","update","preRender","render","postRender"],qm={value:null};function ZA(e,t){let n=new Set,o=new Set,r=!1,s=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},l=0;function u(p){a.has(p)&&(d.schedule(p),e()),l++,p(c)}const d={schedule:(p,f=!1,g=!1)=>{const h=g&&r?n:o;return f&&a.add(p),h.has(p)||h.add(p),p},cancel:p=>{o.delete(p),a.delete(p)},process:p=>{if(c=p,r){s=!0;return}r=!0,[n,o]=[o,n],n.forEach(u),t&&qm.value&&qm.value.frameloop[t].push(l),l=0,n.clear(),r=!1,s&&(s=!1,d.process(p))}};return d}const JA=40;function Km(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=ca.reduce((y,T)=>(y[T]=ZA(s,t?T:void 0),y),{}),{read:c,resolveKeyframes:l,update:u,preRender:d,render:p,postRender:f}=a,g=()=>{const y=performance.now();n=!1,r.delta=o?1e3/60:Math.max(Math.min(y-r.timestamp,JA),1),r.timestamp=y,r.isProcessing=!0,c.process(r),l.process(r),u.process(r),d.process(r),p.process(r),f.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(g))},m=()=>{n=!0,o=!0,r.isProcessing||e(g)};return{schedule:ca.reduce((y,T)=>{const C=a[T];return y[T]=(I,x=!1,R=!1)=>(n||m(),C.schedule(I,x,R)),y},{}),cancel:y=>{for(let T=0;T<ca.length;T++)a[ca[T]].cancel(y)},state:r,steps:a}}const{schedule:Ke,cancel:no,state:Et,steps:Zc}=Km(typeof requestAnimationFrame<"u"?requestAnimationFrame:Wt,!0),Qm=P.createContext({strict:!1}),eg={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"]},fr={};for(const e in eg)fr[e]={isEnabled:t=>eg[e].some(n=>!!t[n])};function qA(e){for(const t in e)fr[t]={...fr[t],...e[t]}}const KA=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ua(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||KA.has(e)}let tg=e=>!ua(e);function QA(e){e&&(tg=t=>t.startsWith("on")?!ua(t):e(t))}try{QA(require("@emotion/is-prop-valid").default)}catch{}function eP(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(tg(r)||n===!0&&ua(r)||!t&&!ua(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const ng=new Set;function da(e,t,n){e||ng.has(t)||(console.warn(t),ng.add(t))}function tP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...o)=>(process.env.NODE_ENV!=="production"&&da(!1,"motion() is deprecated. Use motion.create() instead."),e(...o));return new Proxy(n,{get:(o,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const pa=P.createContext({});function fa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function bi(e){return typeof e=="string"||Array.isArray(e)}const Jc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qc=["initial",...Jc];function ha(e){return fa(e.animate)||qc.some(t=>bi(e[t]))}function og(e){return!!(ha(e)||e.variants)}function nP(e,t){if(ha(e)){const{initial:n,animate:o}=e;return{initial:n===!1||bi(n)?n:void 0,animate:bi(o)?o:void 0}}return e.inherit!==!1?t:{}}function oP(e){const{initial:t,animate:n}=nP(e,P.useContext(pa));return P.useMemo(()=>({initial:t,animate:n}),[rg(t),rg(n)])}function rg(e){return Array.isArray(e)?e.join(" "):e}const rP=Symbol.for("motionComponentSymbol");function hr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function iP(e,t,n){return P.useCallback(o=>{o&&e.onMount&&e.onMount(o),t&&(o?t.mount(o):t.unmount()),n&&(typeof n=="function"?n(o):hr(n)&&(n.current=o))},[t])}const Kc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ig="data-"+Kc("framerAppearId"),{schedule:Qc}=Km(queueMicrotask,!1),sg=P.createContext({});function sP(e,t,n,o,r){var s,a;const{visualElement:c}=P.useContext(pa),l=P.useContext(Qm),u=P.useContext(aa),d=P.useContext(Hc).reducedMotion,p=P.useRef(null);o=o||l.renderer,!p.current&&o&&(p.current=o(e,{visualState:t,parent:c,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const f=p.current,g=P.useContext(sg);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&aP(p.current,n,r,g);const m=P.useRef(!1);P.useInsertionEffect(()=>{f&&m.current&&f.update(n,u)});const h=n[ig],b=P.useRef(!!h&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,h))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,h)));return Jm(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Qc.render(f.render),b.current&&f.animationState&&f.animationState.animateChanges())}),P.useEffect(()=>{f&&(!b.current&&f.animationState&&f.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,h)}),b.current=!1))}),f}function aP(e,t,n,o){const{layoutId:r,layout:s,drag:a,dragConstraints:c,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ag(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||c&&hr(c),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:u})}function ag(e){if(e)return e.options.allowProjection!==!1?e.projection:ag(e.parent)}function lP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:r}){var s,a;e&&qA(e);function c(u,d){let p;const f={...P.useContext(Hc),...u,layoutId:cP(u)},{isStatic:g}=f,m=oP(u),h=o(u,g);if(!g&&Xc){uP(f,e);const b=dP(f);p=b.MeasureLayout,m.visualElement=sP(r,h,f,t,b.ProjectionNode)}return v.jsxs(pa.Provider,{value:m,children:[p&&m.visualElement?v.jsx(p,{visualElement:m.visualElement,...f}):null,n(r,u,iP(h,m.visualElement,d),h,g,m.visualElement)]})}c.displayName=`motion.${typeof r=="string"?r:`create(${(a=(s=r.displayName)!==null&&s!==void 0?s:r.name)!==null&&a!==void 0?a:""})`}`;const l=P.forwardRef(c);return l[rP]=r,l}function cP({layoutId:e}){const t=P.useContext(Wc).id;return t&&e!==void 0?t+"-"+e:e}function uP(e,t){const n=P.useContext(Qm).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?dr(!1,o):to(!1,o)}}function dP(e){const{drag:t,layout:n}=fr;if(!t&&!n)return{};const o={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}const lg=e=>t=>typeof t=="string"&&t.startsWith(e),eu=lg("--"),pP=lg("var(--"),tu=e=>pP(e)?fP.test(e.split("/*")[0].trim()):!1,fP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,vi={};function hP(e){for(const t in e)vi[t]=e[t],eu(t)&&(vi[t].isCSSVariable=!0)}const mr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],To=new Set(mr);function cg(e,{layout:t,layoutId:n}){return To.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vi[e]||e==="opacity")}const Rt=e=>!!(e&&e.getVelocity),ug=(e,t)=>t&&typeof e=="number"?t.transform(e):e,$n=(e,t,n)=>n>t?t:n<e?e:n,gr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},yi={...gr,transform:e=>$n(0,1,e)},ma={...gr,default:1},xi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),oo=xi("deg"),Nn=xi("%"),Ce=xi("px"),mP=xi("vh"),gP=xi("vw"),dg={...Nn,parse:e=>Nn.parse(e)/100,transform:e=>Nn.transform(e*100)},bP={borderWidth:Ce,borderTopWidth:Ce,borderRightWidth:Ce,borderBottomWidth:Ce,borderLeftWidth:Ce,borderRadius:Ce,radius:Ce,borderTopLeftRadius:Ce,borderTopRightRadius:Ce,borderBottomRightRadius:Ce,borderBottomLeftRadius:Ce,width:Ce,maxWidth:Ce,height:Ce,maxHeight:Ce,top:Ce,right:Ce,bottom:Ce,left:Ce,padding:Ce,paddingTop:Ce,paddingRight:Ce,paddingBottom:Ce,paddingLeft:Ce,margin:Ce,marginTop:Ce,marginRight:Ce,marginBottom:Ce,marginLeft:Ce,backgroundPositionX:Ce,backgroundPositionY:Ce},vP={rotate:oo,rotateX:oo,rotateY:oo,rotateZ:oo,scale:ma,scaleX:ma,scaleY:ma,scaleZ:ma,skew:oo,skewX:oo,skewY:oo,distance:Ce,translateX:Ce,translateY:Ce,translateZ:Ce,x:Ce,y:Ce,z:Ce,perspective:Ce,transformPerspective:Ce,opacity:yi,originX:dg,originY:dg,originZ:Ce},pg={...gr,transform:Math.round},nu={...bP,...vP,zIndex:pg,size:Ce,fillOpacity:yi,strokeOpacity:yi,numOctaves:pg},yP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xP=mr.length;function CP(e,t,n){let o="",r=!0;for(let s=0;s<xP;s++){const a=mr[s],c=e[a];if(c===void 0)continue;let l=!0;if(typeof c=="number"?l=c===(a.startsWith("scale")?1:0):l=parseFloat(c)===0,!l||n){const u=ug(c,nu[a]);if(!l){r=!1;const d=yP[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function ou(e,t,n){const{style:o,vars:r,transformOrigin:s}=e;let a=!1,c=!1;for(const l in t){const u=t[l];if(To.has(l)){a=!0;continue}else if(eu(l)){r[l]=u;continue}else{const d=ug(u,nu[l]);l.startsWith("origin")?(c=!0,s[l]=d):o[l]=d}}if(t.transform||(a||n?o.transform=CP(t,e.transform,n):o.transform&&(o.transform="none")),c){const{originX:l="50%",originY:u="50%",originZ:d=0}=s;o.transformOrigin=`${l} ${u} ${d}`}}const ru=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fg(e,t,n){for(const o in t)!Rt(t[o])&&!cg(o,n)&&(e[o]=t[o])}function EP({transformTemplate:e},t){return P.useMemo(()=>{const n=ru();return ou(n,t,e),Object.assign({},n.vars,n.style)},[t])}function IP(e,t){const n=e.style||{},o={};return fg(o,n,e),Object.assign(o,EP(e,t)),o}function TP(e,t){const n={},o=IP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const SP=["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 iu(e){return typeof e!="string"||e.includes("-")?!1:!!(SP.indexOf(e)>-1||/[A-Z]/u.test(e))}const wP={offset:"stroke-dashoffset",array:"stroke-dasharray"},RP={offset:"strokeDashoffset",array:"strokeDasharray"};function OP(e,t,n=1,o=0,r=!0){e.pathLength=1;const s=r?wP:RP;e[s.offset]=Ce.transform(-o);const a=Ce.transform(t),c=Ce.transform(n);e[s.array]=`${a} ${c}`}function hg(e,t,n){return typeof e=="string"?e:Ce.transform(t+n*e)}function AP(e,t,n){const o=hg(t,e.x,e.width),r=hg(n,e.y,e.height);return`${o} ${r}`}function su(e,{attrX:t,attrY:n,attrScale:o,originX:r,originY:s,pathLength:a,pathSpacing:c=1,pathOffset:l=0,...u},d,p){if(ou(e,u,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:g,dimensions:m}=e;f.transform&&(m&&(g.transform=f.transform),delete f.transform),m&&(r!==void 0||s!==void 0||g.transform)&&(g.transformOrigin=AP(m,r!==void 0?r:.5,s!==void 0?s:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),o!==void 0&&(f.scale=o),a!==void 0&&OP(f,a,c,l,!1)}const mg=()=>({...ru(),attrs:{}}),au=e=>typeof e=="string"&&e.toLowerCase()==="svg";function PP(e,t,n,o){const r=P.useMemo(()=>{const s=mg();return su(s,t,au(o),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};fg(s,e.style,e),r.style={...s,...r.style}}return r}function MP(e=!1){return(n,o,r,{latestValues:s},a)=>{const l=(iu(n)?PP:TP)(o,s,a,n),u=eP(o,typeof n=="string",e),d=n!==P.Fragment?{...u,...l,ref:r}:{},{children:p}=o,f=P.useMemo(()=>Rt(p)?p.get():p,[p]);return P.createElement(n,{...d,children:f})}}function gg(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function lu(e,t,n,o){if(typeof t=="function"){const[r,s]=gg(o);t=t(n!==void 0?n:e.custom,r,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,s]=gg(o);t=t(n!==void 0?n:e.custom,r,s)}return t}const cu=e=>Array.isArray(e),NP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),kP=e=>cu(e)?e[e.length-1]||0:e;function ga(e){const t=Rt(e)?e.get():e;return NP(t)?t.toValue():t}function BP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},o,r,s){const a={latestValues:DP(o,r,s,e),renderState:t()};return n&&(a.onMount=c=>n({props:o,current:c,...a}),a.onUpdate=c=>n(c)),a}const bg=e=>(t,n)=>{const o=P.useContext(pa),r=P.useContext(aa),s=()=>BP(e,t,o,r);return n?s():zc(s)};function DP(e,t,n,o){const r={},s=o(e,{});for(const f in s)r[f]=ga(s[f]);let{initial:a,animate:c}=e;const l=ha(e),u=og(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const p=d?c:a;if(p&&typeof p!="boolean"&&!fa(p)){const f=Array.isArray(p)?p:[p];for(let g=0;g<f.length;g++){const m=lu(e,f[g]);if(m){const{transitionEnd:h,transition:b,...y}=m;for(const T in y){let C=y[T];if(Array.isArray(C)){const I=d?C.length-1:0;C=C[I]}C!==null&&(r[T]=C)}for(const T in h)r[T]=h[T]}}}return r}function uu(e,t,n){var o;const{style:r}=e,s={};for(const a in r)(Rt(r[a])||t.style&&Rt(t.style[a])||cg(a,e)||((o=n==null?void 0:n.getValue(a))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(s[a]=r[a]);return s}const jP={useVisualState:bg({scrapeMotionValuesFromProps:uu,createRenderState:ru})};function vg(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function yg(e,{style:t,vars:n},o,r){Object.assign(e.style,t,r&&r.getProjectionStyles(o));for(const s in n)e.style.setProperty(s,n[s])}const xg=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 Cg(e,t,n,o){yg(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(xg.has(r)?r:Kc(r),t.attrs[r])}function Eg(e,t,n){const o=uu(e,t,n);for(const r in e)if(Rt(e[r])||Rt(t[r])){const s=mr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[s]=e[r]}return o}const Ig=["x","y","width","height","cx","cy","r"],FP={useVisualState:bg({scrapeMotionValuesFromProps:Eg,createRenderState:mg,onUpdate:({props:e,prevProps:t,current:n,renderState:o,latestValues:r})=>{if(!n)return;let s=!!e.drag;if(!s){for(const c in r)if(To.has(c)){s=!0;break}}if(!s)return;let a=!t;if(t)for(let c=0;c<Ig.length;c++){const l=Ig[c];e[l]!==t[l]&&(a=!0)}a&&Ke.read(()=>{vg(n,o),Ke.render(()=>{su(o,r,au(n.tagName),e.transformTemplate),Cg(n,o)})})}})};function VP(e,t){return function(o,{forwardMotionProps:r}={forwardMotionProps:!1}){const a={...iu(o)?FP:jP,preloadedFeatures:e,useRender:MP(r),createVisualElement:t,Component:o};return lP(a)}}function Ci(e,t,n){const o=e.getProps();return lu(o,t,n!==void 0?n:o.custom,e)}const LP=Yc(()=>window.ScrollTimeline!==void 0);class _P{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let o=0;o<this.animations.length;o++)this.animations[o][t]=n}attachTimeline(t,n){const o=this.animations.map(r=>{if(LP()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{o.forEach((r,s)=>{r&&r(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class $P extends _P{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function du(e,t){return e?e[t]||e.default||e:void 0}const pu=2e4;function Tg(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<pu;)t+=n,o=e.next(t);return t>=pu?1/0:t}function fu(e){return typeof e=="function"}function Sg(e,t){e.timeline=t,e.onfinish=null}const hu=e=>Array.isArray(e)&&typeof e[0]=="number",GP={linearEasing:void 0};function WP(e,t){const n=Yc(e);return()=>{var o;return(o=GP[t])!==null&&o!==void 0?o:n()}}const ba=WP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),wg=(e,t,n=10)=>{let o="";const r=Math.max(Math.round(t/n),2);for(let s=0;s<r;s++)o+=e(pr(0,r-1,s))+", ";return`linear(${o.substring(0,o.length-2)})`};function Rg(e){return!!(typeof e=="function"&&ba()||!e||typeof e=="string"&&(e in mu||ba())||hu(e)||Array.isArray(e)&&e.every(Rg))}const Ei=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,mu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ei([0,.65,.55,1]),circOut:Ei([.55,0,1,.45]),backIn:Ei([.31,.01,.66,-.59]),backOut:Ei([.33,1.53,.69,.99])};function Og(e,t){if(e)return typeof e=="function"&&ba()?wg(e,t):hu(e)?Ei(e):Array.isArray(e)?e.map(n=>Og(n,t)||mu.easeOut):mu[e]}const vn={x:!1,y:!1};function Ag(){return vn.x||vn.y}function zP(e,t,n){var o;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const s=(o=void 0)!==null&&o!==void 0?o:r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function Pg(e,t){const n=zP(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function Mg(e){return!(e.pointerType==="touch"||Ag())}function HP(e,t,n={}){const[o,r,s]=Pg(e,n),a=c=>{if(!Mg(c))return;const{target:l}=c,u=t(l,c);if(typeof u!="function"||!l)return;const d=p=>{Mg(p)&&(u(p),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,r)};return o.forEach(c=>{c.addEventListener("pointerenter",a,r)}),s}function Ii(e,t){const n=`${t}PointerCapture`;if(e.target instanceof Element&&n in e.target&&e.pointerId!==void 0)try{e.target[n](e.pointerId)}catch{}}const Ng=(e,t)=>t?e===t?!0:Ng(e,t.parentElement):!1,gu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,XP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function UP(e){return XP.has(e.tagName)||e.tabIndex!==-1}const Ti=new WeakSet;function kg(e){return t=>{t.key==="Enter"&&e(t)}}function bu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const YP=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=kg(()=>{if(Ti.has(n))return;bu(n,"down");const r=kg(()=>{bu(n,"up")}),s=()=>bu(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function Bg(e){return gu(e)&&!Ag()}function ZP(e,t,n={}){const[o,r,s]=Pg(e,n),a=c=>{const l=c.currentTarget;if(!l||!Bg(c)||Ti.has(l))return;Ti.add(l),Ii(c,"set");const u=t(l,c),d=(g,m)=>{l.removeEventListener("pointerup",p),l.removeEventListener("pointercancel",f),Ii(g,"release"),!(!Bg(g)||!Ti.has(l))&&(Ti.delete(l),typeof u=="function"&&u(g,{success:m}))},p=g=>{(g.isTrusted?JP(g,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?d(g,!1):d(g,!(l instanceof Element)||Ng(l,g.target))},f=g=>{d(g,!1)};l.addEventListener("pointerup",p,r),l.addEventListener("pointercancel",f,r),l.addEventListener("lostpointercapture",f,r)};return o.forEach(c=>{c=n.useGlobalTarget?window:c;let l=!1;c instanceof HTMLElement&&(l=!0,!UP(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0)),c.addEventListener("pointerdown",a,r),l&&c.addEventListener("focus",u=>YP(u,r),r)}),s}function JP(e,t){return e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom}function qP(e){return e==="x"||e==="y"?vn[e]?null:(vn[e]=!0,()=>{vn[e]=!1}):vn.x||vn.y?null:(vn.x=vn.y=!0,()=>{vn.x=vn.y=!1})}const Dg=new Set(["width","height","top","left","right","bottom",...mr]);let va;function KP(){va=void 0}const kn={now:()=>(va===void 0&&kn.set(Et.isProcessing||YA.useManualTiming?Et.timestamp:performance.now()),va),set:e=>{va=e,queueMicrotask(KP)}};function vu(e,t){e.indexOf(t)===-1&&e.push(t)}function yu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class xu{constructor(){this.subscriptions=[]}add(t){return vu(this.subscriptions,t),()=>yu(this.subscriptions,t)}notify(t,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,o);else for(let s=0;s<r;s++){const a=this.subscriptions[s];a&&a(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function jg(e,t){return t?e*(1e3/t):0}const Fg=30,QP=e=>!isNaN(parseFloat(e));class e5{constructor(t,n={}){this.version="12.4.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,r=!0)=>{const s=kn.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=kn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=QP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&da(!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 xu);const o=this.events[t].add(n);return t==="change"?()=>{o(),Ke.read(()=>{this.events.change.getSize()||this.stop()})}:o}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,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=kn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Fg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Fg);return jg(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}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 Si(e,t){return new e5(e,t)}function t5(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Si(n))}function n5(e,t){const n=Ci(e,t);let{transitionEnd:o={},transition:r={},...s}=n||{};s={...s,...o};for(const a in s){const c=kP(s[a]);t5(e,a,c)}}function o5(e){return!!(Rt(e)&&e.add)}function Cu(e,t){const n=e.getValue("willChange");if(o5(n))return n.add(t)}function Vg(e){return e.props[ig]}const Lg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,r5=1e-7,i5=12;function s5(e,t,n,o,r){let s,a,c=0;do a=t+(n-t)/2,s=Lg(a,o,r)-e,s>0?n=a:t=a;while(Math.abs(s)>r5&&++c<i5);return a}function wi(e,t,n,o){if(e===t&&n===o)return Wt;const r=s=>s5(s,0,1,e,n);return s=>s===0||s===1?s:Lg(r(s),t,o)}const _g=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$g=e=>t=>1-e(1-t),Gg=wi(.33,1.53,.69,.99),Eu=$g(Gg),Wg=_g(Eu),zg=e=>(e*=2)<1?.5*Eu(e):.5*(2-Math.pow(2,-10*(e-1))),Iu=e=>1-Math.sin(Math.acos(e)),Hg=$g(Iu),Xg=_g(Iu),Ug=e=>/^0[^.\s]+$/u.test(e);function a5(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ug(e):!0}const Ri=e=>Math.round(e*1e5)/1e5,Tu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function l5(e){return e==null}const c5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Su=(e,t)=>n=>!!(typeof n=="string"&&c5.test(n)&&n.startsWith(e)||t&&!l5(n)&&Object.prototype.hasOwnProperty.call(n,t)),Yg=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,s,a,c]=o.match(Tu);return{[e]:parseFloat(r),[t]:parseFloat(s),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},u5=e=>$n(0,255,e),wu={...gr,transform:e=>Math.round(u5(e))},So={test:Su("rgb","red"),parse:Yg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+wu.transform(e)+", "+wu.transform(t)+", "+wu.transform(n)+", "+Ri(yi.transform(o))+")"};function d5(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const Ru={test:Su("#"),parse:d5,transform:So.transform},br={test:Su("hsl","hue"),parse:Yg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Nn.transform(Ri(t))+", "+Nn.transform(Ri(n))+", "+Ri(yi.transform(o))+")"},Ot={test:e=>So.test(e)||Ru.test(e)||br.test(e),parse:e=>So.test(e)?So.parse(e):br.test(e)?br.parse(e):Ru.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?So.transform(e):br.transform(e)},p5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function f5(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Tu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(p5))===null||n===void 0?void 0:n.length)||0)>0}const Zg="number",Jg="color",h5="var",m5="var(",qg="${}",g5=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Oi(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let s=0;const c=t.replace(g5,l=>(Ot.test(l)?(o.color.push(s),r.push(Jg),n.push(Ot.parse(l))):l.startsWith(m5)?(o.var.push(s),r.push(h5),n.push(l)):(o.number.push(s),r.push(Zg),n.push(parseFloat(l))),++s,qg)).split(qg);return{values:n,split:c,indexes:o,types:r}}function Kg(e){return Oi(e).values}function Qg(e){const{split:t,types:n}=Oi(e),o=t.length;return r=>{let s="";for(let a=0;a<o;a++)if(s+=t[a],r[a]!==void 0){const c=n[a];c===Zg?s+=Ri(r[a]):c===Jg?s+=Ot.transform(r[a]):s+=r[a]}return s}}const b5=e=>typeof e=="number"?0:e;function v5(e){const t=Kg(e);return Qg(e)(t.map(b5))}const ro={test:f5,parse:Kg,createTransformer:Qg,getAnimatableNone:v5},y5=new Set(["brightness","contrast","saturate","opacity"]);function x5(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(Tu)||[];if(!o)return e;const r=n.replace(o,"");let s=y5.has(t)?1:0;return o!==n&&(s*=100),t+"("+s+r+")"}const C5=/\b([a-z-]*)\(.*?\)/gu,Ou={...ro,getAnimatableNone:e=>{const t=e.match(C5);return t?t.map(x5).join(" "):e}},E5={...nu,color:Ot,backgroundColor:Ot,outlineColor:Ot,fill:Ot,stroke:Ot,borderColor:Ot,borderTopColor:Ot,borderRightColor:Ot,borderBottomColor:Ot,borderLeftColor:Ot,filter:Ou,WebkitFilter:Ou},Au=e=>E5[e];function eb(e,t){let n=Au(e);return n!==Ou&&(n=ro),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const I5=new Set(["auto","none","0"]);function T5(e,t,n){let o=0,r;for(;o<e.length&&!r;){const s=e[o];typeof s=="string"&&!I5.has(s)&&Oi(s).values.length&&(r=e[o]),o++}if(r&&n)for(const s of t)e[s]=eb(n,r)}const tb=e=>e===gr||e===Ce,nb=(e,t)=>parseFloat(e.split(", ")[t]),ob=(e,t)=>(n,{transform:o})=>{if(o==="none"||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/u);if(r)return nb(r[1],t);{const s=o.match(/^matrix\((.+)\)$/u);return s?nb(s[1],e):0}},S5=new Set(["x","y","z"]),w5=mr.filter(e=>!S5.has(e));function R5(e){const t=[];return w5.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const vr={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:ob(4,13),y:ob(5,14)};vr.translateX=vr.x,vr.translateY=vr.y;const wo=new Set;let Pu=!1,Mu=!1;function rb(){if(Mu){const e=Array.from(wo).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=R5(o);r.length&&(n.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([s,a])=>{var c;(c=o.getValue(s))===null||c===void 0||c.set(a)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Mu=!1,Pu=!1,wo.forEach(e=>e.complete()),wo.clear()}function ib(){wo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Mu=!0)})}function O5(){ib(),rb()}class Nu{constructor(t,n,o,r,s,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=r,this.element=s,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(wo.add(this),Pu||(Pu=!0,Ke.read(ib),Ke.resolveKeyframes(rb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:r}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const a=r==null?void 0:r.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(o&&n){const l=o.readValue(n,c);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=c),r&&a===void 0&&r.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),wo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,wo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const sb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),A5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function P5(e){const t=A5.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const M5=4;function ab(e,t,n=1){to(n<=M5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[o,r]=P5(e);if(!o)return;const s=window.getComputedStyle(t).getPropertyValue(o);if(s){const a=s.trim();return sb(a)?parseFloat(a):a}return tu(r)?ab(r,t,n+1):r}const lb=e=>t=>t.test(e),cb=[gr,Ce,Nn,oo,gP,mP,{test:e=>e==="auto",parse:e=>e}],ub=e=>cb.find(lb(e));class db extends Nu{constructor(t,n,o,r,s){super(t,n,o,r,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),tu(u))){const d=ab(u,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Dg.has(o)||t.length!==2)return;const[r,s]=t,a=ub(r),c=ub(s);if(a!==c)if(tb(a)&&tb(c))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)a5(t[r])&&o.push(r);o.length&&T5(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=vr[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){var t;const{element:n,name:o,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const s=n.getValue(o);s&&s.jump(this.measuredOrigin,!1);const a=r.length-1,c=r[a];r[a]=vr[o](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const pb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ro.test(e)||e==="0")&&!e.startsWith("url("));function N5(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function k5(e,t,n,o){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=pb(r,t),c=pb(s,t);return dr(a===c,`You are trying to animate ${t} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!a||!c?!1:N5(e)||(n==="spring"||fu(n))&&o}const B5=e=>e!==null;function ya(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(B5),s=t&&n!=="loop"&&t%2===1?0:r.length-1;return!s||o===void 0?r[s]:o}const D5=40;class fb{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=kn.now(),this.options={autoplay:t,delay:n,type:o,repeat:r,repeatDelay:s,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>D5?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&O5(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=kn.now(),this.hasAttemptedResolve=!0;const{name:o,type:r,velocity:s,delay:a,onComplete:c,onUpdate:l,isGenerator:u}=this.options;if(!u&&!k5(t,o,r,s))if(a)this.options.duration=0;else{l&&l(ya(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const lt=(e,t,n)=>e+(t-e)*n;function ku(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 j5({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let r=0,s=0,a=0;if(!t)r=s=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;r=ku(l,c,e+1/3),s=ku(l,c,e),a=ku(l,c,e-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:o}}function xa(e,t){return n=>n>0?t:e}const Bu=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},F5=[Ru,So,br],V5=e=>F5.find(t=>t.test(e));function hb(e){const t=V5(e);if(dr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===br&&(n=j5(n)),n}const mb=(e,t)=>{const n=hb(e),o=hb(t);if(!n||!o)return xa(e,t);const r={...n};return s=>(r.red=Bu(n.red,o.red,s),r.green=Bu(n.green,o.green,s),r.blue=Bu(n.blue,o.blue,s),r.alpha=lt(n.alpha,o.alpha,s),So.transform(r))},L5=(e,t)=>n=>t(e(n)),Ai=(...e)=>e.reduce(L5),Du=new Set(["none","hidden"]);function _5(e,t){return Du.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $5(e,t){return n=>lt(e,t,n)}function ju(e){return typeof e=="number"?$5:typeof e=="string"?tu(e)?xa:Ot.test(e)?mb:z5:Array.isArray(e)?gb:typeof e=="object"?Ot.test(e)?mb:G5:xa}function gb(e,t){const n=[...e],o=n.length,r=e.map((s,a)=>ju(s)(s,t[a]));return s=>{for(let a=0;a<o;a++)n[a]=r[a](s);return n}}function G5(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=ju(e[r])(e[r],t[r]));return r=>{for(const s in o)n[s]=o[s](r);return n}}function W5(e,t){var n;const o=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const a=t.types[s],c=e.indexes[a][r[a]],l=(n=e.values[c])!==null&&n!==void 0?n:0;o[s]=l,r[a]++}return o}const z5=(e,t)=>{const n=ro.createTransformer(t),o=Oi(e),r=Oi(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Du.has(e)&&!r.values.length||Du.has(t)&&!o.values.length?_5(e,t):Ai(gb(W5(o,r),r.values),n):(dr(!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.`),xa(e,t))};function bb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?lt(e,t,n):ju(e)(e,t)}const H5=5;function vb(e,t,n){const o=Math.max(t-H5,0);return jg(n-e(o),t-o)}const ct={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},yb=.001;function X5({duration:e=ct.duration,bounce:t=ct.bounce,velocity:n=ct.velocity,mass:o=ct.mass}){let r,s;dr(e<=Mn(ct.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=$n(ct.minDamping,ct.maxDamping,a),e=$n(ct.minDuration,ct.maxDuration,_n(e)),a<1?(r=u=>{const d=u*a,p=d*e,f=d-n,g=Fu(u,a),m=Math.exp(-p);return yb-f/g*m},s=u=>{const p=u*a*e,f=p*n+n,g=Math.pow(a,2)*Math.pow(u,2)*e,m=Math.exp(-p),h=Fu(Math.pow(u,2),a);return(-r(u)+yb>0?-1:1)*((f-g)*m)/h}):(r=u=>{const d=Math.exp(-u*e),p=(u-n)*e+1;return-.001+d*p},s=u=>{const d=Math.exp(-u*e),p=(n-u)*(e*e);return d*p});const c=5/e,l=Y5(r,s,c);if(e=Mn(e),isNaN(l))return{stiffness:ct.stiffness,damping:ct.damping,duration:e};{const u=Math.pow(l,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const U5=12;function Y5(e,t,n){let o=n;for(let r=1;r<U5;r++)o=o-e(o)/t(o);return o}function Fu(e,t){return e*Math.sqrt(1-t*t)}const Z5=["duration","bounce"],J5=["stiffness","damping","mass"];function xb(e,t){return t.some(n=>e[n]!==void 0)}function q5(e){let t={velocity:ct.velocity,stiffness:ct.stiffness,damping:ct.damping,mass:ct.mass,isResolvedFromDuration:!1,...e};if(!xb(e,J5)&&xb(e,Z5))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,s=2*$n(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:ct.mass,stiffness:r,damping:s}}else{const n=X5(e);t={...t,...n,mass:ct.mass},t.isResolvedFromDuration=!0}return t}function Cb(e=ct.visualDuration,t=ct.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:s},{stiffness:l,damping:u,mass:d,duration:p,velocity:f,isResolvedFromDuration:g}=q5({...n,velocity:-_n(n.velocity||0)}),m=f||0,h=u/(2*Math.sqrt(l*d)),b=a-s,y=_n(Math.sqrt(l/d)),T=Math.abs(b)<5;o||(o=T?ct.restSpeed.granular:ct.restSpeed.default),r||(r=T?ct.restDelta.granular:ct.restDelta.default);let C;if(h<1){const x=Fu(y,h);C=R=>{const w=Math.exp(-h*y*R);return a-w*((m+h*y*b)/x*Math.sin(x*R)+b*Math.cos(x*R))}}else if(h===1)C=x=>a-Math.exp(-y*x)*(b+(m+y*b)*x);else{const x=y*Math.sqrt(h*h-1);C=R=>{const w=Math.exp(-h*y*R),O=Math.min(x*R,300);return a-w*((m+h*y*b)*Math.sinh(O)+x*b*Math.cosh(O))/x}}const I={calculatedDuration:g&&p||null,next:x=>{const R=C(x);if(g)c.done=x>=p;else{let w=0;h<1&&(w=x===0?Mn(m):vb(C,x,R));const O=Math.abs(w)<=o,M=Math.abs(a-R)<=r;c.done=O&&M}return c.value=c.done?a:R,c},toString:()=>{const x=Math.min(Tg(I),pu),R=wg(w=>I.next(x*w).value,x,30);return x+"ms "+R}};return I}function Eb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:c,max:l,restDelta:u=.5,restSpeed:d}){const p=e[0],f={done:!1,value:p},g=O=>c!==void 0&&O<c||l!==void 0&&O>l,m=O=>c===void 0?l:l===void 0||Math.abs(c-O)<Math.abs(l-O)?c:l;let h=n*t;const b=p+h,y=a===void 0?b:a(b);y!==b&&(h=y-p);const T=O=>-h*Math.exp(-O/o),C=O=>y+T(O),I=O=>{const M=T(O),N=C(O);f.done=Math.abs(M)<=u,f.value=f.done?y:N};let x,R;const w=O=>{g(f.value)&&(x=O,R=Cb({keyframes:[f.value,m(f.value)],velocity:vb(C,O,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:d}))};return w(0),{calculatedDuration:null,next:O=>{let M=!1;return!R&&x===void 0&&(M=!0,I(O),w(O)),x!==void 0&&O>=x?R.next(O-x):(!M&&I(O),f)}}}const K5=wi(.42,0,1,1),Q5=wi(0,0,.58,1),Ib=wi(.42,0,.58,1),eM=e=>Array.isArray(e)&&typeof e[0]!="number",Tb={linear:Wt,easeIn:K5,easeInOut:Ib,easeOut:Q5,circIn:Iu,circInOut:Xg,circOut:Hg,backIn:Eu,backInOut:Wg,backOut:Gg,anticipate:zg},Sb=e=>{if(hu(e)){to(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,o,r]=e;return wi(t,n,o,r)}else if(typeof e=="string")return to(Tb[e]!==void 0,`Invalid easing type '${e}'`),Tb[e];return e};function tM(e,t,n){const o=[],r=n||bb,s=e.length-1;for(let a=0;a<s;a++){let c=r(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||Wt:t;c=Ai(l,c)}o.push(c)}return o}function nM(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const s=e.length;if(to(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=tM(t,o,r),l=c.length,u=d=>{if(a&&d<e[0])return t[0];let p=0;if(l>1)for(;p<e.length-2&&!(d<e[p+1]);p++);const f=pr(e[p],e[p+1],d);return c[p](f)};return n?d=>u($n(e[0],e[s-1],d)):u}function oM(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=pr(0,t,o);e.push(lt(n,1,r))}}function rM(e){const t=[0];return oM(t,e.length-1),t}function iM(e,t){return e.map(n=>n*t)}function sM(e,t){return e.map(()=>t||Ib).splice(0,e.length-1)}function Pi({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=eM(o)?o.map(Sb):Sb(o),s={done:!1,value:t[0]},a=iM(n&&n.length===t.length?n:rM(t),e),c=nM(a,t,{ease:Array.isArray(r)?r:sM(t,r)});return{calculatedDuration:e,next:l=>(s.value=c(l),s.done=l>=e,s)}}const aM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ke.update(t,!0),stop:()=>no(t),now:()=>Et.isProcessing?Et.timestamp:kn.now()}},lM={decay:Eb,inertia:Eb,tween:Pi,keyframes:Pi,spring:Cb},cM=e=>e/100;class Vu extends fb{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:o,element:r,keyframes:s}=this.options,a=(r==null?void 0:r.KeyframeResolver)||Nu,c=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new a(s,c,n,o,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:s,velocity:a=0}=this.options,c=fu(n)?n:lM[n]||Pi;let l,u;process.env.NODE_ENV!=="production"&&c!==Pi&&to(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Pi&&typeof t[0]!="number"&&(l=Ai(cM,bb(t[0],t[1])),t=[0,100]);const d=c({...this.options,keyframes:t});s==="mirror"&&(u=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=Tg(d));const{calculatedDuration:p}=d,f=p+r,g=f*(o+1)-r;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:p,resolvedDuration:f,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:o}=this;if(!o){const{keyframes:O}=this.options;return{done:!0,value:O[O.length-1]}}const{finalKeyframe:r,generator:s,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:p}=o;if(this.startTime===null)return s.next(0);const{delay:f,repeat:g,repeatType:m,repeatDelay:h,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-f*(this.speed>=0?1:-1),T=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let C=this.currentTime,I=s;if(g){const O=Math.min(this.currentTime,d)/p;let M=Math.floor(O),N=O%1;!N&&O>=1&&(N=1),N===1&&M--,M=Math.min(M,g+1),!!(M%2)&&(m==="reverse"?(N=1-N,h&&(N-=h/p)):m==="mirror"&&(I=a)),C=$n(0,1,N)*p}const x=T?{done:!1,value:l[0]}:I.next(C);c&&(x.value=c(x.value));let{done:R}=x;!T&&u!==null&&(R=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const w=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return w&&r!==void 0&&(x.value=ya(l,this.options,r)),b&&b(x.value),w&&this.finish(),x}get duration(){const{resolved:t}=this;return t?_n(t.calculatedDuration):0}get time(){return _n(this.currentTime)}set time(t){t=Mn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=_n(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=aM,onPlay:n,startTime:o}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=o??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const uM=new Set(["opacity","clipPath","filter","transform"]);function dM(e,t,n,{delay:o=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:c="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=Og(c,r);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:o,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"})}const pM=Yc(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ca=10,fM=2e4;function hM(e){return fu(e.type)||e.type==="spring"||!Rg(e.ease)}function mM(e,t){const n=new Vu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:e[0]};const r=[];let s=0;for(;!o.done&&s<fM;)o=n.sample(s),r.push(o.value),s+=Ca;return{times:void 0,keyframes:r,duration:s-Ca,ease:"linear"}}const wb={anticipate:zg,backInOut:Wg,circInOut:Xg};function gM(e){return e in wb}class Rb extends fb{constructor(t){super(t);const{name:n,motionValue:o,element:r,keyframes:s}=this.options;this.resolver=new db(s,(a,c)=>this.onKeyframesResolved(a,c),n,o,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:o=300,times:r,ease:s,type:a,motionValue:c,name:l,startTime:u}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof s=="string"&&ba()&&gM(s)&&(s=wb[s]),hM(this.options)){const{onComplete:p,onUpdate:f,motionValue:g,element:m,...h}=this.options,b=mM(t,h);t=b.keyframes,t.length===1&&(t[1]=t[0]),o=b.duration,r=b.times,s=b.ease,a="keyframes"}const d=dM(c.owner.current,l,t,{...this.options,duration:o,times:r,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Sg(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:p}=this.options;c.set(ya(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:r,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return _n(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return _n(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.currentTime=Mn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Wt;const{animation:o}=n;Sg(o,t)}return Wt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:o,duration:r,type:s,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:p,element:f,...g}=this.options,m=new Vu({...g,keyframes:o,duration:r,type:s,ease:a,times:c,isGenerator:!0}),h=Mn(this.time);u.setWithVelocity(m.sample(h-Ca).value,m.sample(h).value,Ca)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:o,repeatDelay:r,repeatType:s,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return pM()&&o&&uM.has(o)&&!l&&!u&&!r&&s!=="mirror"&&a!==0&&c!=="inertia"}}const bM={type:"spring",stiffness:500,damping:25,restSpeed:10},vM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yM={type:"keyframes",duration:.8},xM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},CM=(e,{keyframes:t})=>t.length>2?yM:To.has(e)?e.startsWith("scale")?vM(t[1]):bM:xM;function EM({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:c,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const Lu=(e,t,n,o={},r,s)=>a=>{const c=du(o,e)||{},l=c.delay||o.delay||0;let{elapsed:u=0}=o;u=u-Mn(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-u,onUpdate:f=>{t.set(f),c.onUpdate&&c.onUpdate(f)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:s?void 0:r};EM(c)||(d={...d,...CM(e,d)}),d.duration&&(d.duration=Mn(d.duration)),d.repeatDelay&&(d.repeatDelay=Mn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(p=!0)),p&&!s&&t.get()!==void 0){const f=ya(d.keyframes,c);if(f!==void 0)return Ke.update(()=>{d.onUpdate(f),d.onComplete()}),new $P([])}return!s&&Rb.supports(d)?new Rb(d):new Vu(d)};function IM({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function Ob(e,t,{delay:n=0,transitionOverride:o,type:r}={}){var s;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...l}=t;o&&(a=o);const u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const p in l){const f=e.getValue(p,(s=e.latestValues[p])!==null&&s!==void 0?s:null),g=l[p];if(g===void 0||d&&IM(d,p))continue;const m={delay:n,...du(a||{},p)};let h=!1;if(window.MotionHandoffAnimation){const y=Vg(e);if(y){const T=window.MotionHandoffAnimation(y,p,Ke);T!==null&&(m.startTime=T,h=!0)}}Cu(e,p),f.start(Lu(p,f,g,e.shouldReduceMotion&&Dg.has(p)?{type:!1}:m,e,h));const b=f.animation;b&&u.push(b)}return c&&Promise.all(u).then(()=>{Ke.update(()=>{c&&n5(e,c)})}),u}function _u(e,t,n={}){var o;const r=Ci(e,t,n.type==="exit"?(o=e.presenceContext)===null||o===void 0?void 0:o.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const a=r?()=>Promise.all(Ob(e,r,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:f}=s;return TM(e,t,d+u,p,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,d]=l==="beforeChildren"?[a,c]:[c,a];return u().then(()=>d())}else return Promise.all([a(),c(n.delay)])}function TM(e,t,n=0,o=0,r=1,s){const a=[],c=(e.variantChildren.size-1)*o,l=r===1?(u=0)=>u*o:(u=0)=>c-u*o;return Array.from(e.variantChildren).sort(SM).forEach((u,d)=>{u.notify("AnimationStart",t),a.push(_u(u,t,{...s,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function SM(e,t){return e.sortNodePosition(t)}function wM(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(s=>_u(e,s,n));o=Promise.all(r)}else if(typeof t=="string")o=_u(e,t,n);else{const r=typeof t=="function"?Ci(e,t,n.custom):t;o=Promise.all(Ob(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}function Ab(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const RM=qc.length;function Pb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Pb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<RM;n++){const o=qc[n],r=e.props[o];(bi(r)||r===!1)&&(t[o]=r)}return t}const OM=[...Jc].reverse(),AM=Jc.length;function PM(e){return t=>Promise.all(t.map(({animation:n,options:o})=>wM(e,n,o)))}function MM(e){let t=PM(e),n=Mb(),o=!0;const r=l=>(u,d)=>{var p;const f=Ci(e,d,l==="exit"?(p=e.presenceContext)===null||p===void 0?void 0:p.custom:void 0);if(f){const{transition:g,transitionEnd:m,...h}=f;u={...u,...h,...m}}return u};function s(l){t=l(e)}function a(l){const{props:u}=e,d=Pb(e.parent)||{},p=[],f=new Set;let g={},m=1/0;for(let b=0;b<AM;b++){const y=OM[b],T=n[y],C=u[y]!==void 0?u[y]:d[y],I=bi(C),x=y===l?T.isActive:null;x===!1&&(m=b);let R=C===d[y]&&C!==u[y]&&I;if(R&&o&&e.manuallyAnimateOnMount&&(R=!1),T.protectedKeys={...g},!T.isActive&&x===null||!C&&!T.prevProp||fa(C)||typeof C=="boolean")continue;const w=NM(T.prevProp,C);let O=w||y===l&&T.isActive&&!R&&I||b>m&&I,M=!1;const N=Array.isArray(C)?C:[C];let j=N.reduce(r(y),{});x===!1&&(j={});const{prevResolvedValues:W={}}=T,D={...W,...j},L=$=>{O=!0,f.has($)&&(M=!0,f.delete($)),T.needsAnimating[$]=!0;const k=e.getValue($);k&&(k.liveStyle=!1)};for(const $ in D){const k=j[$],H=W[$];if(g.hasOwnProperty($))continue;let B=!1;cu(k)&&cu(H)?B=!Ab(k,H):B=k!==H,B?k!=null?L($):f.add($):k!==void 0&&f.has($)?L($):T.protectedKeys[$]=!0}T.prevProp=C,T.prevResolvedValues=j,T.isActive&&(g={...g,...j}),o&&e.blockInitialAnimation&&(O=!1),O&&(!(R&&w)||M)&&p.push(...N.map($=>({animation:$,options:{type:y}})))}if(f.size){const b={};if(typeof u.initial!="boolean"){const y=Ci(e,Array.isArray(u.initial)?u.initial[0]:u.initial);y&&y.transition&&(b.transition=y.transition)}f.forEach(y=>{const T=e.getBaseTarget(y),C=e.getValue(y);C&&(C.liveStyle=!0),b[y]=T??null}),p.push({animation:b})}let h=!!p.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(h=!1),o=!1,h?t(p):Promise.resolve()}function c(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var g;return(g=f.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const p=a(l);for(const f in n)n[f].protectedKeys={};return p}return{animateChanges:a,setActive:c,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Mb(),o=!0}}}function NM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ab(t,e):!1}function Ro(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Mb(){return{animate:Ro(!0),whileInView:Ro(),whileHover:Ro(),whileTap:Ro(),whileDrag:Ro(),whileFocus:Ro(),exit:Ro()}}class io{constructor(t){this.isMounted=!1,this.node=t}update(){}}class kM extends io{constructor(t){super(t),t.animationState||(t.animationState=MM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();fa(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let BM=0;class DM extends io{constructor(){super(...arguments),this.id=BM++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const jM={animation:{Feature:kM},exit:{Feature:DM}};function Mi(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}function Ni(e){return{point:{x:e.pageX,y:e.pageY}}}const FM=e=>t=>gu(t)&&e(t,Ni(t));function yr(e,t,n,o){return Mi(e,t,FM(n),o)}function Nb({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function VM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function LM(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}const kb=1e-4,_M=1-kb,$M=1+kb,Bb=.01,GM=0-Bb,WM=0+Bb;function Ft(e){return e.max-e.min}function zM(e,t,n){return Math.abs(e-t)<=n}function Db(e,t,n,o=.5){e.origin=o,e.originPoint=lt(t.min,t.max,e.origin),e.scale=Ft(n)/Ft(t),e.translate=lt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=_M&&e.scale<=$M||isNaN(e.scale))&&(e.scale=1),(e.translate>=GM&&e.translate<=WM||isNaN(e.translate))&&(e.translate=0)}function ki(e,t,n,o){Db(e.x,t.x,n.x,o?o.originX:void 0),Db(e.y,t.y,n.y,o?o.originY:void 0)}function jb(e,t,n){e.min=n.min+t.min,e.max=e.min+Ft(t)}function HM(e,t,n){jb(e.x,t.x,n.x),jb(e.y,t.y,n.y)}function Fb(e,t,n){e.min=t.min-n.min,e.max=e.min+Ft(t)}function Bi(e,t,n){Fb(e.x,t.x,n.x),Fb(e.y,t.y,n.y)}const Vb=()=>({translate:0,scale:1,origin:0,originPoint:0}),xr=()=>({x:Vb(),y:Vb()}),Lb=()=>({min:0,max:0}),gt=()=>({x:Lb(),y:Lb()});function dn(e){return[e("x"),e("y")]}function $u(e){return e===void 0||e===1}function Gu({scale:e,scaleX:t,scaleY:n}){return!$u(e)||!$u(t)||!$u(n)}function Oo(e){return Gu(e)||_b(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function _b(e){return $b(e.x)||$b(e.y)}function $b(e){return e&&e!=="0%"}function Ea(e,t,n){const o=e-n,r=t*o;return n+r}function Gb(e,t,n,o,r){return r!==void 0&&(e=Ea(e,r,o)),Ea(e,n,o)+t}function Wu(e,t=0,n=1,o,r){e.min=Gb(e.min,t,n,o,r),e.max=Gb(e.max,t,n,o,r)}function Wb(e,{x:t,y:n}){Wu(e.x,t.translate,t.scale,t.originPoint),Wu(e.y,n.translate,n.scale,n.originPoint)}const zb=.999999999999,Hb=1.0000000000001;function XM(e,t,n,o=!1){const r=n.length;if(!r)return;t.x=t.y=1;let s,a;for(let c=0;c<r;c++){s=n[c],a=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(o&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Er(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Wb(e,a)),o&&Oo(s.latestValues)&&Er(e,s.latestValues))}t.x<Hb&&t.x>zb&&(t.x=1),t.y<Hb&&t.y>zb&&(t.y=1)}function Cr(e,t){e.min=e.min+t,e.max=e.max+t}function Xb(e,t,n,o,r=.5){const s=lt(e.min,e.max,r);Wu(e,t,n,s,o)}function Er(e,t){Xb(e.x,t.x,t.scaleX,t.scale,t.originX),Xb(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ub(e,t){return Nb(LM(e.getBoundingClientRect(),t))}function UM(e,t,n){const o=Ub(e,n),{scroll:r}=t;return r&&(Cr(o.x,r.offset.x),Cr(o.y,r.offset.y)),o}const Yb=(e,t)=>Math.abs(e-t);function YM(e,t){const n=Yb(e.x,t.x),o=Yb(e.y,t.y);return Math.sqrt(n**2+o**2)}class Zb{constructor(t,n,{transformPagePoint:o,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Hu(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,f=YM(d.offset,{x:0,y:0})>=3;if(!p&&!f)return;const{point:g}=d,{timestamp:m}=Et;this.history.push({...g,timestamp:m});const{onStart:h,onMove:b}=this.handlers;p||(h&&h(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{if(this.index=Kb(d.currentTarget),d.target instanceof Element&&d.target.hasPointerCapture&&d.pointerId!==void 0)try{if(!d.target.hasPointerCapture(d.pointerId))return}catch{}this.lastMoveEvent=d,this.lastMoveEventInfo=zu(p,this.transformPagePoint),Ke.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{Ii(d,"release"),this.end();const{onEnd:f,onSessionEnd:g,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Hu(d.type==="pointercancel"||d.type==="lostpointercapture"?this.lastMoveEventInfo:zu(p,this.transformPagePoint),this.history);this.startEvent&&f&&f(d,h),g&&g(d,h)},!gu(t))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=o;const s=Ni(t),a=zu(s,this.transformPagePoint),{point:c}=a,{timestamp:l}=Et;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=n;u&&u(t,Hu(a,this.history)),Ii(t,"set"),this.removeListeners=Ai(yr(t.currentTarget,"pointermove",this.handlePointerMove),yr(t.currentTarget,"pointerup",this.handlePointerUp),yr(t.currentTarget,"pointercancel",this.handlePointerUp),yr(t.currentTarget,"lostpointercapture",(d,p)=>{Kb(d.currentTarget)!==this.index?Ii(d,"set"):this.handlePointerUp(d,p)}))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),no(this.updatePoint)}}function zu(e,t){return t?{point:t(e.point)}:e}function Jb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Hu({point:e},t){return{point:e,delta:Jb(e,qb(t)),offset:Jb(e,ZM(t)),velocity:JM(t,.1)}}function ZM(e){return e[0]}function qb(e){return e[e.length-1]}function JM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=qb(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>Mn(t)));)n--;if(!o)return{x:0,y:0};const s=_n(r.timestamp-o.timestamp);if(s===0)return{x:0,y:0};const a={x:(r.x-o.x)/s,y:(r.y-o.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Kb(e){return e.parentNode?Array.from(e.parentNode.children).indexOf(e):-1}function qM(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?lt(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?lt(n,e,o.max):Math.min(e,n)),e}function Qb(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 KM(e,{top:t,left:n,bottom:o,right:r}){return{x:Qb(e.x,n,r),y:Qb(e.y,t,o)}}function e0(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function QM(e,t){return{x:e0(e.x,t.x),y:e0(e.y,t.y)}}function eN(e,t){let n=.5;const o=Ft(e),r=Ft(t);return r>o?n=pr(t.min,t.max-o,e.min):o>r&&(n=pr(e.min,e.max-r,t.min)),$n(0,1,n)}function tN(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 Xu=.35;function nN(e=Xu){return e===!1?e=0:e===!0&&(e=Xu),{x:t0(e,"left","right"),y:t0(e,"top","bottom")}}function t0(e,t,n){return{min:n0(e,t),max:n0(e,n)}}function n0(e,t){return typeof e=="number"?e:e[t]||0}const oN=new WeakMap;class rN{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const r=d=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ni(d).point)},s=(d,p)=>{const{drag:f,dragPropagation:g,onDragStart:m}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qP(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dn(b=>{let y=this.getAxisMotionValue(b).get()||0;if(Nn.test(y)){const{projection:T}=this.visualElement;if(T&&T.layout){const C=T.layout.layoutBox[b];C&&(y=Ft(C)*(parseFloat(y)/100))}}this.originPoint[b]=y}),m&&Ke.postRender(()=>m(d,p)),Cu(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},a=(d,p)=>{const{dragPropagation:f,dragDirectionLock:g,onDirectionLock:m,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:b}=p;if(g&&this.currentDirection===null){this.currentDirection=iN(b),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",p.point,b),this.updateAxis("y",p.point,b),this.visualElement.render(),h&&h(d,p)},c=(d,p)=>this.stop(d,p),l=()=>dn(d=>{var p;return this.getAnimationState(d)==="paused"&&((p=this.getAxisMotionValue(d).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Zb(t,{onSessionStart:r,onStart:s,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u})}stop(t,n){const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:s}=this.getProps();s&&Ke.postRender(()=>s(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:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,o){const{drag:r}=this.getProps();if(!o||!Ia(t,r,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=qM(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&hr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=KM(r.layoutBox,n):this.constraints=!1,this.elastic=nN(o),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&dn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=tN(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!hr(t))return!1;const o=t.current;to(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const s=UM(o,r.root,this.visualElement.getTransformPagePoint());let a=QM(r.layout.layoutBox,s);if(n){const c=n(VM(a));this.hasMutatedConstraints=!!c,c&&(a=Nb(c))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),l=this.constraints||{},u=dn(d=>{if(!Ia(d,n,this.currentDirection))return;let p=l&&l[d]||{};a&&(p={min:0,max:0});const f=r?200:1e6,g=r?40:1e7,m={type:"inertia",velocity:o?t[d]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(d,m)});return Promise.all(u).then(c)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return Cu(this.visualElement,t),o.start(Lu(t,o,0,n,this.visualElement,!1))}stopAnimation(){dn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){dn(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()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){dn(n=>{const{drag:o}=this.getProps();if(!Ia(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(n);if(r&&r.layout){const{min:a,max:c}=r.layout.layoutBox[n];s.set(t[n]-lt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!hr(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};dn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const l=c.get();r[a]=eN({min:l,max:l},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),dn(a=>{if(!Ia(a,t,null))return;const c=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];c.set(lt(l,u,r[a]))})}addListeners(){if(!this.visualElement.current)return;oN.set(this.visualElement,this);const t=this.visualElement.current,n=yr(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),o=()=>{const{dragConstraints:l}=this.getProps();hr(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,s=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Ke.read(o);const a=Mi(window,"resize",()=>this.scalePositionWithinConstraints()),c=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(dn(d=>{const p=this.getAxisMotionValue(d);p&&(this.originPoint[d]+=l[d].translate,p.set(p.get()+l[d].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:a=Xu,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:s,dragElastic:a,dragMomentum:c}}}function Ia(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function iN(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class sN extends io{constructor(t){super(t),this.removeGroupControls=Wt,this.removeListeners=Wt,this.controls=new rN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wt}unmount(){this.removeGroupControls(),this.removeListeners()}}const o0=e=>(t,n)=>{e&&Ke.postRender(()=>e(t,n))};class aN extends io{constructor(){super(...arguments),this.removePointerDownListener=Wt}onPointerDown(t){this.session=new Zb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:o0(t),onStart:o0(n),onMove:o,onEnd:(s,a)=>{delete this.session,r&&Ke.postRender(()=>r(s,a))}}}mount(){this.removePointerDownListener=yr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ta={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function r0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Di={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ce.test(e))e=parseFloat(e);else return e;const n=r0(e,t.target.x),o=r0(e,t.target.y);return`${n}% ${o}%`}},lN={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=ro.parse(e);if(r.length>5)return o;const s=ro.createTransformer(e),a=typeof r[0]!="number"?1:0,c=n.x.scale*t.x,l=n.y.scale*t.y;r[0+a]/=c,r[1+a]/=l;const u=lt(c,l,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),s(r)}};class cN extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:s}=t;hP(uN),s&&(n.group&&n.group.add(s),o&&o.register&&r&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Ta.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:r,isPresent:s}=this.props,a=o.projection;return a&&(a.isPresent=s,r||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||Ke.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Qc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function i0(e){const[t,n]=Ym(),o=P.useContext(Wc);return v.jsx(cN,{...e,layoutGroup:o,switchLayoutGroup:P.useContext(sg),isPresent:t,safeToRemove:n})}const uN={borderRadius:{...Di,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Di,borderTopRightRadius:Di,borderBottomLeftRadius:Di,borderBottomRightRadius:Di,boxShadow:lN};function dN(e,t,n){const o=Rt(e)?e:Si(e);return o.start(Lu("",o,t,n)),o.animation}function pN(e){return e instanceof SVGElement&&e.tagName!=="svg"}const fN=(e,t)=>e.depth-t.depth;class hN{constructor(){this.children=[],this.isDirty=!1}add(t){vu(this.children,t),this.isDirty=!0}remove(t){yu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(fN),this.isDirty=!1,this.children.forEach(t)}}function mN(e,t){const n=kn.now(),o=({timestamp:r})=>{const s=r-n;s>=t&&(no(o),e(s-t))};return Ke.read(o,!0),()=>no(o)}const s0=["TopLeft","TopRight","BottomLeft","BottomRight"],gN=s0.length,a0=e=>typeof e=="string"?parseFloat(e):e,l0=e=>typeof e=="number"||Ce.test(e);function bN(e,t,n,o,r,s){r?(e.opacity=lt(0,n.opacity!==void 0?n.opacity:1,vN(o)),e.opacityExit=lt(t.opacity!==void 0?t.opacity:1,0,yN(o))):s&&(e.opacity=lt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,o));for(let a=0;a<gN;a++){const c=`border${s0[a]}Radius`;let l=c0(t,c),u=c0(n,c);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||l0(l)===l0(u)?(e[c]=Math.max(lt(a0(l),a0(u),o),0),(Nn.test(u)||Nn.test(l))&&(e[c]+="%")):e[c]=u}(t.rotate||n.rotate)&&(e.rotate=lt(t.rotate||0,n.rotate||0,o))}function c0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const vN=u0(0,.5,Hg),yN=u0(.5,.95,Wt);function u0(e,t,n){return o=>o<e?0:o>t?1:n(pr(e,t,o))}function d0(e,t){e.min=t.min,e.max=t.max}function pn(e,t){d0(e.x,t.x),d0(e.y,t.y)}function p0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function f0(e,t,n,o,r){return e-=t,e=Ea(e,1/n,o),r!==void 0&&(e=Ea(e,1/r,o)),e}function xN(e,t=0,n=1,o=.5,r,s=e,a=e){if(Nn.test(t)&&(t=parseFloat(t),t=lt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=lt(s.min,s.max,o);e===s&&(c-=t),e.min=f0(e.min,t,n,c,r),e.max=f0(e.max,t,n,c,r)}function h0(e,t,[n,o,r],s,a){xN(e,t[n],t[o],t[r],t.scale,s,a)}const CN=["x","scaleX","originX"],EN=["y","scaleY","originY"];function m0(e,t,n,o){h0(e.x,t,CN,n?n.x:void 0,o?o.x:void 0),h0(e.y,t,EN,n?n.y:void 0,o?o.y:void 0)}function g0(e){return e.translate===0&&e.scale===1}function b0(e){return g0(e.x)&&g0(e.y)}function v0(e,t){return e.min===t.min&&e.max===t.max}function IN(e,t){return v0(e.x,t.x)&&v0(e.y,t.y)}function y0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function x0(e,t){return y0(e.x,t.x)&&y0(e.y,t.y)}function C0(e){return Ft(e.x)/Ft(e.y)}function E0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class TN{constructor(){this.members=[]}add(t){vu(this.members,t),t.scheduleRender()}remove(t){if(yu(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(r=>t===r);if(n===0)return!1;let o;for(let r=n;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1){o=s;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function SN(e,t,n){let o="";const r=e.x.translate/t.x,s=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((r||s||a)&&(o=`translate3d(${r}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:p,rotateY:f,skewX:g,skewY:m}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),p&&(o+=`rotateX(${p}deg) `),f&&(o+=`rotateY(${f}deg) `),g&&(o+=`skewX(${g}deg) `),m&&(o+=`skewY(${m}deg) `)}const c=e.x.scale*t.x,l=e.y.scale*t.y;return(c!==1||l!==1)&&(o+=`scale(${c}, ${l})`),o||"none"}const Uu=["","X","Y","Z"],wN={visibility:"hidden"},I0=1e3;let RN=0;function Yu(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function T0(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Vg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ke,!(r||s))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&T0(o)}function S0({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},c=t==null?void 0:t()){this.id=RN++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(PN),this.nodes.forEach(DN),this.nodes.forEach(jN),this.nodes.forEach(MN)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new hN)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new xu),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const l=this.eventHandlers.get(a);l&&l.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=pN(a),this.instance=a;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(u||l)&&(this.isLayoutDirty=!0),e){let p;const f=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=mN(f,250),Ta.hasAnimatedSinceResize&&(Ta.hasAnimatedSinceResize=!1,this.nodes.forEach(R0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:f,hasRelativeLayoutChanged:g,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||d.getDefaultTransition()||$N,{onLayoutAnimationStart:b,onLayoutAnimationComplete:y}=d.getProps(),T=!this.targetLayout||!x0(this.targetLayout,m),C=!f&&g;if(this.options.layoutRoot||this.resumeFrom||C||f&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,C);const I={...du(h,"layout"),onPlay:b,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else f||R0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,no(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(FN),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&T0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const p=this.path[d];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:c,layout:l}=this.options;if(c===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(w0);return}this.isUpdating||this.nodes.forEach(kN),this.isUpdating=!1,this.nodes.forEach(BN),this.nodes.forEach(ON),this.nodes.forEach(AN),this.clearAllSnapshots();const c=kn.now();Et.delta=$n(0,1e3/60,c-Et.timestamp),Et.timestamp=c,Et.isProcessing=!0,Zc.update.process(Et),Zc.preRender.process(Et),Zc.render.process(Et),Et.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(NN),this.sharedNodes.forEach(VN)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ft(this.snapshot.measuredBox.x)&&!Ft(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}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 a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const l=o(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!b0(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&(c||Oo(this.latestValues)||d)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let l=this.removeElementScroll(c);return a&&(l=this.removeTransform(l)),GN(l),{animationId:this.root.animationId,measuredBox:c,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return gt();const l=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(WN))){const{scroll:d}=this.root;d&&(Cr(l.x,d.offset.x),Cr(l.y,d.offset.y))}return l}removeElementScroll(a){var c;const l=gt();if(pn(l,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:p,options:f}=d;d!==this.root&&p&&f.layoutScroll&&(p.wasRoot&&pn(l,a),Cr(l.x,p.offset.x),Cr(l.y,p.offset.y))}return l}applyTransform(a,c=!1){const l=gt();pn(l,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!c&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Er(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Oo(d.latestValues)&&Er(l,d.latestValues)}return Oo(this.latestValues)&&Er(l,this.latestValues),l}removeTransform(a){const c=gt();pn(c,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Oo(u.latestValues))continue;Gu(u.latestValues)&&u.updateSnapshot();const d=gt(),p=u.measurePageBox();pn(d,p),m0(c,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Oo(this.latestValues)&&m0(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==Et.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:f}=this.options;if(!(!this.layout||!(p||f))){if(this.resolvedRelativeTargetAt=Et.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gt(),this.relativeTargetOrigin=gt(),Bi(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),pn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=gt(),this.targetWithTransforms=gt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),HM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):pn(this.target,this.layout.layoutBox),Wb(this.target,this.targetDelta)):pn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gt(),this.relativeTargetOrigin=gt(),Bi(this.relativeTargetOrigin,this.target,g.target),pn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Gu(this.parent.latestValues)||_b(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 a;const c=this.getLead(),l=!!this.resumingFrom||this!==c;let u=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Et.timestamp&&(u=!1),u)return;const{layout:d,layoutId:p}=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||p))return;pn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,g=this.treeScale.y;XM(this.layoutCorrected,this.treeScale,this.path,l),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=gt());const{target:m}=c;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(p0(this.prevProjectionDelta.x,this.projectionDelta.x),p0(this.prevProjectionDelta.y,this.projectionDelta.y)),ki(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==g||!E0(this.projectionDelta.x,this.prevProjectionDelta.x)||!E0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=xr(),this.projectionDelta=xr(),this.projectionDeltaWithTransform=xr()}setAnimationOrigin(a,c=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},p=xr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const f=gt(),g=l?l.source:void 0,m=this.layout?this.layout.source:void 0,h=g!==m,b=this.getStack(),y=!b||b.members.length<=1,T=!!(h&&!y&&this.options.crossfade===!0&&!this.path.some(_N));this.animationProgress=0;let C;this.mixTargetDelta=I=>{const x=I/1e3;O0(p.x,a.x,x),O0(p.y,a.y,x),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bi(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),LN(this.relativeTarget,this.relativeTargetOrigin,f,x),C&&IN(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=gt()),pn(C,this.relativeTarget)),h&&(this.animationValues=d,bN(d,u,this.latestValues,x,T,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(no(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ke.update(()=>{Ta.hasAnimatedSinceResize=!0,this.currentAnimation=dN(0,I0,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(I0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:l,layout:u,latestValues:d}=a;if(!(!c||!l||!u)){if(this!==a&&this.layout&&u&&k0(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||gt();const p=Ft(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+p;const f=Ft(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}pn(c,l),Er(c,d),ki(this.projectionDeltaWithTransform,this.layoutCorrected,c,d)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new TN),this.sharedNodes.get(a).add(c);const u=c.options.initialPromotionConfig;c.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(c=!0),!c)return;const u={};l.z&&Yu("z",a,u,this.animationValues);for(let d=0;d<Uu.length;d++)Yu(`rotate${Uu[d]}`,a,u,this.animationValues),Yu(`skew${Uu[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}getProjectionStyles(a){var c,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return wN;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ga(a==null?void 0:a.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const h={};return this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=ga(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Oo(this.latestValues)&&(h.transform=d?d({},""):"none",this.hasProjected=!1),h}const f=p.animationValues||p.latestValues;this.applyTransformsToTarget(),u.transform=SN(this.projectionDeltaWithTransform,this.treeScale,f),d&&(u.transform=d(f,u.transform));const{x:g,y:m}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${m.origin*100}% 0`,p.animationValues?u.opacity=p===this?(l=(c=f.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=p===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const h in vi){if(f[h]===void 0)continue;const{correct:b,applyTo:y,isCSSVariable:T}=vi[h],C=u.transform==="none"?f[h]:b(f[h],p);if(y){const I=y.length;for(let x=0;x<I;x++)u[y[x]]=C}else T?this.options.visualElement.renderState.vars[h]=C:u[h]=C}return this.options.layoutId&&(u.pointerEvents=p===this?ga(a==null?void 0:a.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(w0),this.root.sharedNodes.clear()}}}function ON(e){e.updateLayout()}function AN(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:o,measuredBox:r}=e.layout,{animationType:s}=e.options,a=n.source!==e.layout.source;s==="size"?dn(p=>{const f=a?n.measuredBox[p]:n.layoutBox[p],g=Ft(f);f.min=o[p].min,f.max=f.min+g}):k0(s,n.layoutBox,o)&&dn(p=>{const f=a?n.measuredBox[p]:n.layoutBox[p],g=Ft(o[p]);f.max=f.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+g)});const c=xr();ki(c,o,n.layoutBox);const l=xr();a?ki(l,e.applyTransform(r,!0),n.measuredBox):ki(l,o,n.layoutBox);const u=!b0(c);let d=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:f,layout:g}=p;if(f&&g){const m=gt();Bi(m,n.layoutBox,f.layoutBox);const h=gt();Bi(h,o,g.layoutBox),x0(m,h)||(d=!0),p.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=m,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:n,delta:l,layoutDelta:c,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function PN(e){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 MN(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function NN(e){e.clearSnapshot()}function w0(e){e.clearMeasurements()}function kN(e){e.isLayoutDirty=!1}function BN(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function R0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function DN(e){e.resolveTargetDelta()}function jN(e){e.calcProjection()}function FN(e){e.resetSkewAndRotation()}function VN(e){e.removeLeadSnapshot()}function O0(e,t,n){e.translate=lt(t.translate,0,n),e.scale=lt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function A0(e,t,n,o){e.min=lt(t.min,n.min,o),e.max=lt(t.max,n.max,o)}function LN(e,t,n,o){A0(e.x,t.x,n.x,o),A0(e.y,t.y,n.y,o)}function _N(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const $N={duration:.45,ease:[.4,0,.1,1]},P0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),M0=P0("applewebkit/")&&!P0("chrome/")?Math.round:Wt;function N0(e){e.min=M0(e.min),e.max=M0(e.max)}function GN(e){N0(e.x),N0(e.y)}function k0(e,t,n){return e==="position"||e==="preserve-aspect"&&!zM(C0(t),C0(n),.2)}function WN(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const zN=S0({attachResizeListener:(e,t)=>Mi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Zu={current:void 0},B0=S0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Zu.current){const e=new zN({});e.mount(window),e.setOptions({layoutScroll:!0}),Zu.current=e}return Zu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),HN={pan:{Feature:aN},drag:{Feature:sN,ProjectionNode:B0,MeasureLayout:i0}};function D0(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,s=o[r];s&&Ke.postRender(()=>s(t,Ni(t)))}class XN extends io{mount(){const{current:t}=this.node;t&&(this.unmount=HP(t,(n,o)=>(D0(this.node,o,"Start"),r=>D0(this.node,r,"End"))))}unmount(){}}class UN extends io{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=Ai(Mi(this.node.current,"focus",()=>this.onFocus()),Mi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function j0(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),s=o[r];s&&Ke.postRender(()=>s(t,Ni(t)))}class YN extends io{mount(){const{current:t}=this.node;t&&(this.unmount=ZP(t,(n,o)=>(j0(this.node,o,"Start"),(r,{success:s})=>j0(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ju=new WeakMap,qu=new WeakMap,ZN=e=>{const t=Ju.get(e.target);t&&t(e)},JN=e=>{e.forEach(ZN)};function qN({root:e,...t}){const n=e||document;qu.has(n)||qu.set(n,{});const o=qu.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(JN,{root:e,...t})),o[r]}function KN(e,t,n){const o=qN(t);return Ju.set(e,n),o.observe(e),()=>{Ju.delete(e),o.unobserve(e)}}const QN={some:0,all:1};class ek extends io{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:QN[r]},c=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:p}=this.node.getProps(),f=u?d:p;f&&f(l)};return KN(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(tk(t,n))&&this.startObserver()}unmount(){}}function tk({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const nk={inView:{Feature:ek},tap:{Feature:YN},focus:{Feature:UN},hover:{Feature:XN}},ok={layout:{ProjectionNode:B0,MeasureLayout:i0}},Ku={current:null},F0={current:!1};function rk(){if(F0.current=!0,!!Xc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ku.current=e.matches;e.addListener(t),t()}else Ku.current=!1}const ik=[...cb,Ot,ro],sk=e=>ik.find(lb(e)),ak=new WeakMap;function lk(e,t,n){for(const o in t){const r=t[o],s=n[o];if(Rt(r))e.addValue(o,r),process.env.NODE_ENV==="development"&&da(r.version==="12.4.10",`Attempting to mix Motion versions ${r.version} with 12.4.10 may not work as expected.`);else if(Rt(s))e.addValue(o,Si(r,{owner:e}));else if(s!==r)if(e.hasValue(o)){const a=e.getValue(o);a.liveStyle===!0?a.jump(r):a.hasAnimated||a.set(r)}else{const a=e.getStaticValue(o);e.addValue(o,Si(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const V0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ck{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:r,blockInitialAnimation:s,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Nu,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.renderScheduledAt=0,this.scheduleRender=()=>{const g=kn.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Ke.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:d}=a;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=c,this.blockInitialAnimation=!!s,this.isControllingVariants=ha(n),this.isVariantNode=og(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in f){const m=f[g];l[g]!==void 0&&Rt(m)&&m.set(l[g],!1)}}mount(t){this.current=t,ak.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,o)=>this.bindToMotionValue(o,n)),F0.current||rk(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ku.current,process.env.NODE_ENV!=="production"&&da(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(){this.projection&&this.projection.unmount(),no(this.notifyUpdate),no(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),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){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=To.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ke.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),s(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in fr){const n=fr[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=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 o=0;o<V0.length;o++){const r=V0[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const s="on"+r,a=t[s];a&&(this.propEventSubscriptions[r]=this.on(r,a))}this.prevMotionValues=lk(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const o=this.values.get(t);n!==o&&(o&&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 o=this.values.get(t);return o===void 0&&n!==void 0&&(o=Si(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){var o;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(o=this.getBaseTargetFromProps(this.props,t))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(sb(r)||Ug(r))?r=parseFloat(r):!sk(r)&&ro.test(n)&&(r=eb(t,n)),this.setBaseTarget(t,Rt(r)?r.get():r)),Rt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:o}=this.props;let r;if(typeof o=="string"||typeof o=="object"){const a=lu(this.props,o,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(r=a[t])}if(o&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Rt(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new xu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class L0 extends ck{constructor(){super(...arguments),this.KeyframeResolver=db}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:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Rt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function uk(e){return window.getComputedStyle(e)}class dk extends L0{constructor(){super(...arguments),this.type="html",this.renderInstance=yg}readValueFromInstance(t,n){if(To.has(n)){const o=Au(n);return o&&o.default||0}else{const o=uk(t),r=(eu(n)?o.getPropertyValue(n):o[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ub(t,n)}build(t,n,o){ou(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return uu(t,n,o)}}class pk extends L0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&vg(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(To.has(n)){const o=Au(n);return o&&o.default||0}return n=xg.has(n)?n:Kc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return Eg(t,n,o)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ke.postRender(this.updateDimensions)}build(t,n,o){su(t,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,o,r){Cg(t,n,o,r)}mount(t){this.isSVGTag=au(t.tagName),super.mount(t)}}const fk=(e,t)=>iu(e)?new pk(t):new dk(t,{allowProjection:e!==P.Fragment}),hk=VP({...jM,...nk,...HN,...ok},fk),yn=tP(hk),_0=({styles:e,label:t,disabled:n,...o})=>{const r=nt(),s=(t==null?void 0:t.length)*((t==null?void 0:t.length)>=10?6.5:7.5)+38||0,[a,c]=P.useState(!1);return v.jsxs(yn.button,{onMouseEnter:()=>(e==null?void 0:e.isAnimate)&&c(!0),onMouseLeave:()=>(e==null?void 0:e.isAnimate)&&c(!1),initial:{width:e!=null&&e.isAnimate||!t?"3rem":`${s/10}rem`,borderRadius:"0.7rem"},animate:{width:e!=null&&e.isAnimate?`${a?s/10:3}rem`:`${t?s/10:3}rem`},transition:{duration:.2,ease:"easeInOut"},style:{height:"3rem",outline:"none",overflow:"hidden",backgroundColor:(e==null?void 0:e.variant)!=="outlined"?(e==null?void 0:e.color)==="secondary"?r.palette.brandColor.blue:r.palette.brandColor.orange:r.palette.primary.notifyBackground,border:(e==null?void 0:e.variant)==="outlined"?`0.1rem solid ${r.palette.primary.notifyBorderColor}`:"none",display:"flex",cursor:"pointer",alignItems:"center",gap:a||!(e!=null&&e.isAnimate)?"0.5rem":0,color:(e==null?void 0:e.variant)==="outlined"?r.palette.primary.notifyActiveText:"white",justifyContent:a?"flex-start":"center",padding:a||!(e!=null&&e.isAnimate)?"1.2rem":"0.8rem",whiteSpace:"nowrap",opacity:n?.6:1,cursor:n?"auto":"pointer"},layout:!0,...o,children:[(e==null?void 0:e.icon)&&(!(e!=null&&e.iconPosition)||(e==null?void 0:e.iconPosition)==="start")&&v.jsx(ue,{component:"img",src:e==null?void 0:e.icon}),t&&v.jsx(yn.div,{layout:!0,initial:{opacity:0,width:0},animate:{opacity:a||!(e!=null&&e.isAnimate)?1:0,width:a||!(e!=null&&e.isAnimate)?"auto":0},transition:{duration:.2,ease:"easeInOut",delay:a?.1:0},style:{overflow:"hidden",whiteSpace:"nowrap"},children:v.jsx(wt,{sx:{fontSize:"1.1rem"},children:t})}),(e==null?void 0:e.iconPosition)==="end"&&v.jsx(ue,{component:"img",src:e==null?void 0:e.icon})]})};_0.propTypes={styles:i.object.isRequired,label:i.string};function Ir({...e}){return v.jsx(eo,{children:v.jsx(_0,{...e})})}const mk=({...e})=>{const[t,n]=P.useState(!1),o=nt();return v.jsx(yn.input,{type:"text",onFocus:()=>n(!0),onBlur:()=>n(!1),initial:{width:"10rem",borderRadius:"0.7rem"},animate:{width:t?"13rem":"10rem"},transition:{duration:.3,ease:"easeInOut"},style:{height:"3rem",outline:"none",boxShadow:"none",fontSize:"1.1rem",border:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,backgroundColor:o.palette.primary.notifyBackground,padding:"0rem 1rem",color:o.palette.primary.notifyTextColor,transition:"height 0.1s ease"},...e})};function $0({...e}){return v.jsx(eo,{children:v.jsx(mk,{...e})})}const ke={LOADING:"LOADING",SUCCESS:"SUCCESS",ERROR:"ERROR",MARK_ALL_AS_READ:"MARK_ALL_AS_READ",SET_GRID_DATA:"SET_GRID_DATA",HAS_SETTING_CHANGE:"HAS_SETTING_CHANGE",TRIGGER_API:"TRIGGER_API"},fn={SWR:"Something went wrong!",UNHANDLED:"Unhandled action type: ",INVALID:"Invalid action type: ",INVALID_ACTION:"Invalid action type: ",NRF:"No Records found"},Sa=P.createContext(null),ji=P.createContext(null);function G0({children:e}){const[t,n]=P.useReducer(gk,bk);return v.jsx(Sa.Provider,{value:t,children:v.jsx(ji.Provider,{value:n,children:v.jsx(eo,{children:e})})})}function gk(e,t){switch(t.type){case ke.SET_GRID_DATA:return{...e,...t.payload};case ke.HAS_SETTING_CHANGE:return{...e,...t.payload};case ke.TRIGGER_API:return{...e,...t.payload};default:throw new Error(`${fn.UNHANDLED}: ${t}`)}}const bk={visibleGridColumns:[],hasChange:!1,triggerApi:!1};G0.propTypes={children:i.node.isRequired};const vk=({options:e})=>{const t=P.useRef(null),[n,o]=P.useState(!1),[r,s]=P.useState(null),[a,c]=P.useState(e),[l,u]=P.useState(!1),d=P.useContext(ji),{hasChange:p}=P.useContext(Sa);P.useEffect(()=>{c(e)},[e]);const f=b=>{s(b)},g=b=>{b.preventDefault()},m=b=>{if(r===null)return;const y=[...a],[T]=y.splice(r,1);y.splice(b,0,T),c(y),d({type:ke.SET_GRID_DATA,payload:{visibleGridColumns:y}}),d({type:ke.HAS_SETTING_CHANGE,payload:{hasChange:!0}}),s(null)},h=()=>{p&&d({type:ke.TRIGGER_API,payload:{triggerApi:!0}}),o(!1)};return P.useEffect(()=>{if(!n)return;const b=y=>{t.current&&!t.current.contains(y.target)&&h()};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[n,p,a]),P.useEffect(()=>{if(t.current){const b=t.current.getBoundingClientRect(),y=window.innerHeight-b.bottom;u(y<200)}},[n]),{dropdownRef:t,isOpen:n,items:a,expandUp:l,setIsOpen:o,handleDragStart:f,handleDragOver:g,handleDrop:m}},yk=({isOpen:e,setIsOpen:t,placeholder:n,theme:o,selectedValue:r,styles:s,children:a,dropdownRef:c,expandUp:l})=>v.jsxs(ue,{sx:{position:"relative",width:"100%",flexShrink:0},ref:c,children:[v.jsx(ue,{sx:{cursor:"pointer",height:"3rem",width:"100%",position:"relative",zIndex:1},onClick:()=>t(!e)}),v.jsxs(yn.div,{style:{position:"absolute",left:0,width:"100%",zIndex:1e3,border:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,borderRadius:"0.7rem",color:o.palette.primary.notifyTextColor,backgroundColor:o.palette.primary.notifyBackground,overflow:"hidden",...l?{bottom:0}:{top:0}},animate:{maxHeight:e?"15rem":"3rem"},transition:{duration:.2,ease:"easeInOut"},children:[l&&v.jsxs(v.Fragment,{children:[v.jsx(Uc,{children:e&&a}),e&&v.jsx("hr",{style:{width:"100%",height:"0.1rem",backgroundColor:o.palette.primary.notifyBorderColor,border:"none",margin:"0rem"}})]}),v.jsxs(ue,{sx:{padding:"0.65rem",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",gap:"0.5rem"},onClick:()=>t(!e),children:[v.jsx(ue,{component:"img",className:"select-icon",src:s==null?void 0:s.icon}),v.jsx(wt,{sx:{color:o.palette.primary.notifyTextColor,flex:1,fontSize:"1.1rem",whiteSpace:"nowrap"},children:n||r}),v.jsx(ue,{component:"img",className:"child",src:e?mt.ArrowSelectDown:mt.ArrowSelectUp})]}),!l&&v.jsxs(v.Fragment,{children:[e&&v.jsx("hr",{style:{width:"100%",height:"0.1rem",backgroundColor:o.palette.primary.notifyBorderColor,border:"none",margin:"0rem"}}),v.jsx(Uc,{children:e&&a})]})]})]}),xk=({options:e,onChange:t,showCheckBox:n,placeholder:o,isDraggable:r,value:s,isMulti:a,handleCheck:c})=>{const l=nt(),{dropdownRef:u,isOpen:d,items:p,expandUp:f,setIsOpen:g,handleDragStart:m,handleDragOver:h,handleDrop:b}=vk({options:e});return v.jsx(yk,{isOpen:d,setIsOpen:g,placeholder:o,selectedValue:s,theme:l,dropdownRef:u,expandUp:f,children:v.jsx(yn.ul,{style:{listStyle:"none",padding:"0rem 1rem 0.8rem 1rem",margin:0,maxHeight:"10rem",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:`${l.palette.primary.notifyIconColor} transparent`},initial:{opacity:0},animate:{opacity:1},transition:{duration:.3,ease:"easeInOut"},children:p==null?void 0:p.map((y,T)=>{const C=y==null?void 0:y.isMandatory;return v.jsxs("li",{draggable:r&&!C,onDragStart:C?void 0:()=>m(T),onDragOver:C?void 0:h,onDrop:C?void 0:()=>b(T),style:{padding:n?"0.4rem 0":"0.2rem 0.4rem",cursor:C?"not-allowed":"pointer",display:"flex",alignItems:"center",color:C?l.palette.grey[500]:l.palette.primary.notifyTextColor,backgroundColor:l.palette.primary.notifyBackground,opacity:C?.5:1,whiteSpace:"nowrap",pointerEvents:C?"none":"auto"},onClick:()=>{C||(g(!!a),t(y))},children:[n&&v.jsx(Js,{size:"medium",sx:{color:l.palette.primary.notifyIconColor,"&.Mui-checked":{color:l.palette.brandColor.orange},p:"0.2rem 0.5rem"},checked:c(y),disabled:C}),v.jsx(wt,{sx:{fontSize:"1.1rem"},children:y.label})]},T)})})})};function Qu({...e}){return v.jsx(eo,{children:v.jsx(xk,{...e})})}const Ck=Y(ue)(({theme:e})=>({borderRadius:"0.4rem",position:"relative",background:e.palette.primary.notifyButtonBackground,display:"flex",height:"2.5rem"})),Ek=Y(ue)(({theme:e})=>({borderRadius:"0.4rem",position:"absolute",background:e.palette.primary.notifyBackground,border:`0.1rem solid ${e.palette.primary.notifyBorderColor}`,transition:"all 0.5s ease"})),W0=Y(Zs)(({theme:e})=>({borderRadius:"0.4rem",fontWeight:"400",transition:"all 0.2s 0.1s ease",padding:"0.4rem 0.8rem",fontSize:"1rem",textTransform:"none",zIndex:1,"&:hover":{background:"transparent",boxShadow:"none"}})),Ik=({isChartType:e,setIsChartType:t,leftSwitchText:n,rigthSwitchText:o})=>{const[r,s]=P.useState(0),[a,c]=P.useState(0),l=P.useRef(null),u=P.useRef(null);return P.useEffect(()=>{if(l.current&&u.current){const d=e?u.current:l.current;s(d.offsetWidth),c(d.offsetLeft)}},[e]),v.jsx(ue,{sx:{display:"flex"},children:v.jsxs(Ck,{children:[v.jsx(Ek,{sx:{width:r,transform:`translateX(${a}px)`,height:"2.3rem"}}),v.jsx(W0,{ref:l,disableRipple:!0,sx:d=>({color:e?d.palette.brandColor.grey1:d.palette.primary.notifyActiveText}),onClick:()=>t(!1),children:n}),v.jsx(W0,{ref:u,disableRipple:!0,sx:d=>({color:e?d.palette.primary.notifyActiveText:d.palette.brandColor.grey1}),onClick:()=>t(!0),children:o})]})})};function z0({...e}){return v.jsx(eo,{children:v.jsx(Ik,{...e})})}function H0(e,t){return function(){return e.apply(t,arguments)}}const{toString:Tk}=Object.prototype,{getPrototypeOf:ed}=Object,wa=(e=>t=>{const n=Tk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xn=e=>(e=e.toLowerCase(),t=>wa(t)===e),Ra=e=>t=>typeof t===e,{isArray:Tr}=Array,Fi=Ra("undefined");function Sk(e){return e!==null&&!Fi(e)&&e.constructor!==null&&!Fi(e.constructor)&&Kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const X0=xn("ArrayBuffer");function wk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&X0(e.buffer),t}const Rk=Ra("string"),Kt=Ra("function"),U0=Ra("number"),Oa=e=>e!==null&&typeof e=="object",Ok=e=>e===!0||e===!1,Aa=e=>{if(wa(e)!=="object")return!1;const t=ed(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ak=xn("Date"),Pk=xn("File"),Mk=xn("Blob"),Nk=xn("FileList"),kk=e=>Oa(e)&&Kt(e.pipe),Bk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Kt(e.append)&&((t=wa(e))==="formdata"||t==="object"&&Kt(e.toString)&&e.toString()==="[object FormData]"))},Dk=xn("URLSearchParams"),[jk,Fk,Vk,Lk]=["ReadableStream","Request","Response","Headers"].map(xn),_k=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),Tr(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let c;for(o=0;o<a;o++)c=s[o],t.call(null,e[c],c,e)}}function Y0(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,r;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ao=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Z0=e=>!Fi(e)&&e!==Ao;function td(){const{caseless:e}=Z0(this)&&this||{},t={},n=(o,r)=>{const s=e&&Y0(t,r)||r;Aa(t[s])&&Aa(o)?t[s]=td(t[s],o):Aa(o)?t[s]=td({},o):Tr(o)?t[s]=o.slice():t[s]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Vi(arguments[o],n);return t}const $k=(e,t,n,{allOwnKeys:o}={})=>(Vi(t,(r,s)=>{n&&Kt(r)?e[s]=H0(r,n):e[s]=r},{allOwnKeys:o}),e),Gk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Wk=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},zk=(e,t,n,o)=>{let r,s,a;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)a=r[s],(!o||o(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&ed(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Hk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},Xk=e=>{if(!e)return null;if(Tr(e))return e;let t=e.length;if(!U0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Uk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ed(Uint8Array)),Yk=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},Zk=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Jk=xn("HTMLFormElement"),qk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),J0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kk=xn("RegExp"),q0=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Vi(n,(r,s)=>{let a;(a=t(r,s,e))!==!1&&(o[s]=a||r)}),Object.defineProperties(e,o)},Qk=e=>{q0(e,(t,n)=>{if(Kt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(Kt(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},e4=(e,t)=>{const n={},o=r=>{r.forEach(s=>{n[s]=!0})};return Tr(e)?o(e):o(String(e).split(t)),n},t4=()=>{},n4=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function o4(e){return!!(e&&Kt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const r4=e=>{const t=new Array(10),n=(o,r)=>{if(Oa(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const s=Tr(o)?[]:{};return Vi(o,(a,c)=>{const l=n(a,r+1);!Fi(l)&&(s[c]=l)}),t[r]=void 0,s}}return o};return n(e,0)},i4=xn("AsyncFunction"),s4=e=>e&&(Oa(e)||Kt(e))&&Kt(e.then)&&Kt(e.catch),K0=((e,t)=>e?setImmediate:t?((n,o)=>(Ao.addEventListener("message",({source:r,data:s})=>{r===Ao&&s===n&&o.length&&o.shift()()},!1),r=>{o.push(r),Ao.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Kt(Ao.postMessage)),a4=typeof queueMicrotask<"u"?queueMicrotask.bind(Ao):typeof process<"u"&&process.nextTick||K0,G={isArray:Tr,isArrayBuffer:X0,isBuffer:Sk,isFormData:Bk,isArrayBufferView:wk,isString:Rk,isNumber:U0,isBoolean:Ok,isObject:Oa,isPlainObject:Aa,isReadableStream:jk,isRequest:Fk,isResponse:Vk,isHeaders:Lk,isUndefined:Fi,isDate:Ak,isFile:Pk,isBlob:Mk,isRegExp:Kk,isFunction:Kt,isStream:kk,isURLSearchParams:Dk,isTypedArray:Uk,isFileList:Nk,forEach:Vi,merge:td,extend:$k,trim:_k,stripBOM:Gk,inherits:Wk,toFlatObject:zk,kindOf:wa,kindOfTest:xn,endsWith:Hk,toArray:Xk,forEachEntry:Yk,matchAll:Zk,isHTMLForm:Jk,hasOwnProperty:J0,hasOwnProp:J0,reduceDescriptors:q0,freezeMethods:Qk,toObjectSet:e4,toCamelCase:qk,noop:t4,toFiniteNumber:n4,findKey:Y0,global:Ao,isContextDefined:Z0,isSpecCompliantForm:o4,toJSONObject:r4,isAsyncFn:i4,isThenable:s4,setImmediate:K0,asap:a4};function we(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}G.inherits(we,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});const Q0=we.prototype,ev={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ev[e]={value:e}}),Object.defineProperties(we,ev),Object.defineProperty(Q0,"isAxiosError",{value:!0}),we.from=(e,t,n,o,r,s)=>{const a=Object.create(Q0);return G.toFlatObject(e,a,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),we.call(a,e.message,t,n,o,r),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};const l4=null;function nd(e){return G.isPlainObject(e)||G.isArray(e)}function tv(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function nv(e,t,n){return e?e.concat(t).map(function(r,s){return r=tv(r),!n&&s?"["+r+"]":r}).join(n?".":""):t}function c4(e){return G.isArray(e)&&!e.some(nd)}const u4=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)});function Pa(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,b){return!G.isUndefined(b[h])});const o=n.metaTokens,r=n.visitor||d,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(r))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(G.isDate(m))return m.toISOString();if(!l&&G.isBlob(m))throw new we("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(m)||G.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,h,b){let y=m;if(m&&!b&&typeof m=="object"){if(G.endsWith(h,"{}"))h=o?h:h.slice(0,-2),m=JSON.stringify(m);else if(G.isArray(m)&&c4(m)||(G.isFileList(m)||G.endsWith(h,"[]"))&&(y=G.toArray(m)))return h=tv(h),y.forEach(function(C,I){!(G.isUndefined(C)||C===null)&&t.append(a===!0?nv([h],I,s):a===null?h:h+"[]",u(C))}),!1}return nd(m)?!0:(t.append(nv(b,h,s),u(m)),!1)}const p=[],f=Object.assign(u4,{defaultVisitor:d,convertValue:u,isVisitable:nd});function g(m,h){if(!G.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(m),G.forEach(m,function(y,T){(!(G.isUndefined(y)||y===null)&&r.call(t,y,G.isString(T)?T.trim():T,h,f))===!0&&g(y,h?h.concat(T):[T])}),p.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return g(e),t}function ov(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function od(e,t){this._pairs=[],e&&Pa(e,this,t)}const rv=od.prototype;rv.append=function(t,n){this._pairs.push([t,n])},rv.toString=function(t){const n=t?function(o){return t.call(this,o,ov)}:ov;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function d4(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function iv(e,t,n){if(!t)return e;const o=n&&n.encode||d4;G.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let s;if(r?s=r(t,n):s=G.isURLSearchParams(t)?t.toString():new od(t,n).toString(o),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class sv{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){G.forEach(this.handlers,function(o){o!==null&&t(o)})}}const av={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},p4={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:od,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},rd=typeof window<"u"&&typeof document<"u",id=typeof navigator=="object"&&navigator||void 0,f4=rd&&(!id||["ReactNative","NativeScript","NS"].indexOf(id.product)<0),h4=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",m4=rd&&window.location.href||"http://localhost",At={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rd,hasStandardBrowserEnv:f4,hasStandardBrowserWebWorkerEnv:h4,navigator:id,origin:m4},Symbol.toStringTag,{value:"Module"})),...p4};function g4(e,t){return Pa(e,new At.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,s){return At.isNode&&G.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function b4(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function v4(e){const t={},n=Object.keys(e);let o;const r=n.length;let s;for(o=0;o<r;o++)s=n[o],t[s]=e[s];return t}function lv(e){function t(n,o,r,s){let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=s>=n.length;return a=!a&&G.isArray(r)?r.length:a,l?(G.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!c):((!r[a]||!G.isObject(r[a]))&&(r[a]=[]),t(n,o,r[a],s)&&G.isArray(r[a])&&(r[a]=v4(r[a])),!c)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(o,r)=>{t(b4(o),r,n,0)}),n}return null}function y4(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Li={transitional:av,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,s=G.isObject(t);if(s&&G.isHTMLForm(t)&&(t=new FormData(t)),G.isFormData(t))return r?JSON.stringify(lv(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t)||G.isReadableStream(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return g4(t,this.formSerializer).toString();if((c=G.isFileList(t))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Pa(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),y4(t)):t}],transformResponse:[function(t){const n=this.transitional||Li.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(G.isResponse(t)||G.isReadableStream(t))return t;if(t&&G.isString(t)&&(o&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?we.from(c,we.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:At.classes.FormData,Blob:At.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{Li.headers[e]={}});const x4=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),C4=e=>{const t={};let n,o,r;return e&&e.split(`
|
|
248
|
+
`),()=>{document.head.removeChild(g)}},[t]),v.jsx(zA,{isPresent:t,childRef:r,sizeRef:s,children:S.cloneElement(e,{ref:r})})}const XA=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:s,mode:a,anchorX:c})=>{const l=zc(UA),u=P.useId(),d=P.useCallback(f=>{l.set(f,!0);for(const g of l.values())if(!g)return;o&&o()},[l,o]),p=P.useMemo(()=>({id:u,initial:t,isPresent:n,custom:r,onExitComplete:d,register:f=>(l.set(f,!1),()=>l.delete(f))}),s?[Math.random(),d]:[n,d]);return P.useMemo(()=>{l.forEach((f,g)=>l.set(g,!1))},[n]),S.useEffect(()=>{!n&&!l.size&&o&&o()},[n]),a==="popLayout"&&(e=v.jsx(HA,{isPresent:n,anchorX:c,children:e})),v.jsx(aa.Provider,{value:p,children:e})};function UA(){return new Map}function Ym(e=!0){const t=P.useContext(aa);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,s=P.useId();P.useEffect(()=>{if(e)return r(s)},[e]);const a=P.useCallback(()=>e&&o&&o(s),[s,o,e]);return!n&&o?[!1,a]:[!0]}const la=e=>e.key||"";function Zm(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const Xc=typeof window<"u",Jm=Xc?P.useLayoutEffect:P.useEffect,Uc=({children:e,custom:t,initial:n=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:s="sync",propagate:a=!1,anchorX:c="left"})=>{const[l,u]=Ym(a),d=P.useMemo(()=>Zm(e),[e]),p=a&&!l?[]:d.map(la),f=P.useRef(!0),g=P.useRef(d),m=zc(()=>new Map),[h,b]=P.useState(d),[y,T]=P.useState(d);Jm(()=>{f.current=!1,g.current=d;for(let x=0;x<y.length;x++){const R=la(y[x]);p.includes(R)?m.delete(R):m.get(R)!==!0&&m.set(R,!1)}},[y,p.length,p.join("-")]);const C=[];if(d!==h){let x=[...d];for(let R=0;R<y.length;R++){const w=y[R],O=la(w);p.includes(O)||(x.splice(R,0,w),C.push(w))}return s==="wait"&&C.length&&(x=C),T(Zm(x)),b(d),null}process.env.NODE_ENV!=="production"&&s==="wait"&&y.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=P.useContext(Wc);return v.jsx(v.Fragment,{children:y.map(x=>{const R=la(x),w=a&&!l?!1:d===y||p.includes(R),O=()=>{if(m.has(R))m.set(R,!0);else return;let M=!0;m.forEach(N=>{N||(M=!1)}),M&&(I==null||I(),T(g.current),a&&(u==null||u()),o&&o())};return v.jsx(XA,{isPresent:w,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:s,onExitComplete:w?void 0:O,anchorX:c,children:x},R)})})},Wt=e=>e;let dr=Wt,to=Wt;process.env.NODE_ENV!=="production"&&(dr=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},to=(e,t)=>{if(!e)throw new Error(t)});function Yc(e){let t;return()=>(t===void 0&&(t=e()),t)}const pr=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o},Mn=e=>e*1e3,_n=e=>e/1e3,YA={useManualTiming:!1},ca=["read","resolveKeyframes","update","preRender","render","postRender"],qm={value:null};function ZA(e,t){let n=new Set,o=new Set,r=!1,s=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},l=0;function u(p){a.has(p)&&(d.schedule(p),e()),l++,p(c)}const d={schedule:(p,f=!1,g=!1)=>{const h=g&&r?n:o;return f&&a.add(p),h.has(p)||h.add(p),p},cancel:p=>{o.delete(p),a.delete(p)},process:p=>{if(c=p,r){s=!0;return}r=!0,[n,o]=[o,n],n.forEach(u),t&&qm.value&&qm.value.frameloop[t].push(l),l=0,n.clear(),r=!1,s&&(s=!1,d.process(p))}};return d}const JA=40;function Km(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=ca.reduce((y,T)=>(y[T]=ZA(s,t?T:void 0),y),{}),{read:c,resolveKeyframes:l,update:u,preRender:d,render:p,postRender:f}=a,g=()=>{const y=performance.now();n=!1,r.delta=o?1e3/60:Math.max(Math.min(y-r.timestamp,JA),1),r.timestamp=y,r.isProcessing=!0,c.process(r),l.process(r),u.process(r),d.process(r),p.process(r),f.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(g))},m=()=>{n=!0,o=!0,r.isProcessing||e(g)};return{schedule:ca.reduce((y,T)=>{const C=a[T];return y[T]=(I,x=!1,R=!1)=>(n||m(),C.schedule(I,x,R)),y},{}),cancel:y=>{for(let T=0;T<ca.length;T++)a[ca[T]].cancel(y)},state:r,steps:a}}const{schedule:Ke,cancel:no,state:Et,steps:Zc}=Km(typeof requestAnimationFrame<"u"?requestAnimationFrame:Wt,!0),Qm=P.createContext({strict:!1}),eg={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"]},fr={};for(const e in eg)fr[e]={isEnabled:t=>eg[e].some(n=>!!t[n])};function qA(e){for(const t in e)fr[t]={...fr[t],...e[t]}}const KA=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ua(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||KA.has(e)}let tg=e=>!ua(e);function QA(e){e&&(tg=t=>t.startsWith("on")?!ua(t):e(t))}try{QA(require("@emotion/is-prop-valid").default)}catch{}function eP(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(tg(r)||n===!0&&ua(r)||!t&&!ua(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const ng=new Set;function da(e,t,n){e||ng.has(t)||(console.warn(t),ng.add(t))}function tP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...o)=>(process.env.NODE_ENV!=="production"&&da(!1,"motion() is deprecated. Use motion.create() instead."),e(...o));return new Proxy(n,{get:(o,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const pa=P.createContext({});function fa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function bi(e){return typeof e=="string"||Array.isArray(e)}const Jc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qc=["initial",...Jc];function ha(e){return fa(e.animate)||qc.some(t=>bi(e[t]))}function og(e){return!!(ha(e)||e.variants)}function nP(e,t){if(ha(e)){const{initial:n,animate:o}=e;return{initial:n===!1||bi(n)?n:void 0,animate:bi(o)?o:void 0}}return e.inherit!==!1?t:{}}function oP(e){const{initial:t,animate:n}=nP(e,P.useContext(pa));return P.useMemo(()=>({initial:t,animate:n}),[rg(t),rg(n)])}function rg(e){return Array.isArray(e)?e.join(" "):e}const rP=Symbol.for("motionComponentSymbol");function hr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function iP(e,t,n){return P.useCallback(o=>{o&&e.onMount&&e.onMount(o),t&&(o?t.mount(o):t.unmount()),n&&(typeof n=="function"?n(o):hr(n)&&(n.current=o))},[t])}const Kc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ig="data-"+Kc("framerAppearId"),{schedule:Qc}=Km(queueMicrotask,!1),sg=P.createContext({});function sP(e,t,n,o,r){var s,a;const{visualElement:c}=P.useContext(pa),l=P.useContext(Qm),u=P.useContext(aa),d=P.useContext(Hc).reducedMotion,p=P.useRef(null);o=o||l.renderer,!p.current&&o&&(p.current=o(e,{visualState:t,parent:c,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const f=p.current,g=P.useContext(sg);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&aP(p.current,n,r,g);const m=P.useRef(!1);P.useInsertionEffect(()=>{f&&m.current&&f.update(n,u)});const h=n[ig],b=P.useRef(!!h&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,h))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,h)));return Jm(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Qc.render(f.render),b.current&&f.animationState&&f.animationState.animateChanges())}),P.useEffect(()=>{f&&(!b.current&&f.animationState&&f.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,h)}),b.current=!1))}),f}function aP(e,t,n,o){const{layoutId:r,layout:s,drag:a,dragConstraints:c,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ag(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||c&&hr(c),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:u})}function ag(e){if(e)return e.options.allowProjection!==!1?e.projection:ag(e.parent)}function lP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:r}){var s,a;e&&qA(e);function c(u,d){let p;const f={...P.useContext(Hc),...u,layoutId:cP(u)},{isStatic:g}=f,m=oP(u),h=o(u,g);if(!g&&Xc){uP(f,e);const b=dP(f);p=b.MeasureLayout,m.visualElement=sP(r,h,f,t,b.ProjectionNode)}return v.jsxs(pa.Provider,{value:m,children:[p&&m.visualElement?v.jsx(p,{visualElement:m.visualElement,...f}):null,n(r,u,iP(h,m.visualElement,d),h,g,m.visualElement)]})}c.displayName=`motion.${typeof r=="string"?r:`create(${(a=(s=r.displayName)!==null&&s!==void 0?s:r.name)!==null&&a!==void 0?a:""})`}`;const l=P.forwardRef(c);return l[rP]=r,l}function cP({layoutId:e}){const t=P.useContext(Wc).id;return t&&e!==void 0?t+"-"+e:e}function uP(e,t){const n=P.useContext(Qm).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?dr(!1,o):to(!1,o)}}function dP(e){const{drag:t,layout:n}=fr;if(!t&&!n)return{};const o={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}const lg=e=>t=>typeof t=="string"&&t.startsWith(e),eu=lg("--"),pP=lg("var(--"),tu=e=>pP(e)?fP.test(e.split("/*")[0].trim()):!1,fP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,vi={};function hP(e){for(const t in e)vi[t]=e[t],eu(t)&&(vi[t].isCSSVariable=!0)}const mr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],To=new Set(mr);function cg(e,{layout:t,layoutId:n}){return To.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vi[e]||e==="opacity")}const Rt=e=>!!(e&&e.getVelocity),ug=(e,t)=>t&&typeof e=="number"?t.transform(e):e,$n=(e,t,n)=>n>t?t:n<e?e:n,gr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},yi={...gr,transform:e=>$n(0,1,e)},ma={...gr,default:1},xi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),oo=xi("deg"),Nn=xi("%"),Ce=xi("px"),mP=xi("vh"),gP=xi("vw"),dg={...Nn,parse:e=>Nn.parse(e)/100,transform:e=>Nn.transform(e*100)},bP={borderWidth:Ce,borderTopWidth:Ce,borderRightWidth:Ce,borderBottomWidth:Ce,borderLeftWidth:Ce,borderRadius:Ce,radius:Ce,borderTopLeftRadius:Ce,borderTopRightRadius:Ce,borderBottomRightRadius:Ce,borderBottomLeftRadius:Ce,width:Ce,maxWidth:Ce,height:Ce,maxHeight:Ce,top:Ce,right:Ce,bottom:Ce,left:Ce,padding:Ce,paddingTop:Ce,paddingRight:Ce,paddingBottom:Ce,paddingLeft:Ce,margin:Ce,marginTop:Ce,marginRight:Ce,marginBottom:Ce,marginLeft:Ce,backgroundPositionX:Ce,backgroundPositionY:Ce},vP={rotate:oo,rotateX:oo,rotateY:oo,rotateZ:oo,scale:ma,scaleX:ma,scaleY:ma,scaleZ:ma,skew:oo,skewX:oo,skewY:oo,distance:Ce,translateX:Ce,translateY:Ce,translateZ:Ce,x:Ce,y:Ce,z:Ce,perspective:Ce,transformPerspective:Ce,opacity:yi,originX:dg,originY:dg,originZ:Ce},pg={...gr,transform:Math.round},nu={...bP,...vP,zIndex:pg,size:Ce,fillOpacity:yi,strokeOpacity:yi,numOctaves:pg},yP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xP=mr.length;function CP(e,t,n){let o="",r=!0;for(let s=0;s<xP;s++){const a=mr[s],c=e[a];if(c===void 0)continue;let l=!0;if(typeof c=="number"?l=c===(a.startsWith("scale")?1:0):l=parseFloat(c)===0,!l||n){const u=ug(c,nu[a]);if(!l){r=!1;const d=yP[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function ou(e,t,n){const{style:o,vars:r,transformOrigin:s}=e;let a=!1,c=!1;for(const l in t){const u=t[l];if(To.has(l)){a=!0;continue}else if(eu(l)){r[l]=u;continue}else{const d=ug(u,nu[l]);l.startsWith("origin")?(c=!0,s[l]=d):o[l]=d}}if(t.transform||(a||n?o.transform=CP(t,e.transform,n):o.transform&&(o.transform="none")),c){const{originX:l="50%",originY:u="50%",originZ:d=0}=s;o.transformOrigin=`${l} ${u} ${d}`}}const ru=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fg(e,t,n){for(const o in t)!Rt(t[o])&&!cg(o,n)&&(e[o]=t[o])}function EP({transformTemplate:e},t){return P.useMemo(()=>{const n=ru();return ou(n,t,e),Object.assign({},n.vars,n.style)},[t])}function IP(e,t){const n=e.style||{},o={};return fg(o,n,e),Object.assign(o,EP(e,t)),o}function TP(e,t){const n={},o=IP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const SP=["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 iu(e){return typeof e!="string"||e.includes("-")?!1:!!(SP.indexOf(e)>-1||/[A-Z]/u.test(e))}const wP={offset:"stroke-dashoffset",array:"stroke-dasharray"},RP={offset:"strokeDashoffset",array:"strokeDasharray"};function OP(e,t,n=1,o=0,r=!0){e.pathLength=1;const s=r?wP:RP;e[s.offset]=Ce.transform(-o);const a=Ce.transform(t),c=Ce.transform(n);e[s.array]=`${a} ${c}`}function hg(e,t,n){return typeof e=="string"?e:Ce.transform(t+n*e)}function AP(e,t,n){const o=hg(t,e.x,e.width),r=hg(n,e.y,e.height);return`${o} ${r}`}function su(e,{attrX:t,attrY:n,attrScale:o,originX:r,originY:s,pathLength:a,pathSpacing:c=1,pathOffset:l=0,...u},d,p){if(ou(e,u,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:g,dimensions:m}=e;f.transform&&(m&&(g.transform=f.transform),delete f.transform),m&&(r!==void 0||s!==void 0||g.transform)&&(g.transformOrigin=AP(m,r!==void 0?r:.5,s!==void 0?s:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),o!==void 0&&(f.scale=o),a!==void 0&&OP(f,a,c,l,!1)}const mg=()=>({...ru(),attrs:{}}),au=e=>typeof e=="string"&&e.toLowerCase()==="svg";function PP(e,t,n,o){const r=P.useMemo(()=>{const s=mg();return su(s,t,au(o),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};fg(s,e.style,e),r.style={...s,...r.style}}return r}function MP(e=!1){return(n,o,r,{latestValues:s},a)=>{const l=(iu(n)?PP:TP)(o,s,a,n),u=eP(o,typeof n=="string",e),d=n!==P.Fragment?{...u,...l,ref:r}:{},{children:p}=o,f=P.useMemo(()=>Rt(p)?p.get():p,[p]);return P.createElement(n,{...d,children:f})}}function gg(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function lu(e,t,n,o){if(typeof t=="function"){const[r,s]=gg(o);t=t(n!==void 0?n:e.custom,r,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,s]=gg(o);t=t(n!==void 0?n:e.custom,r,s)}return t}const cu=e=>Array.isArray(e),NP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),kP=e=>cu(e)?e[e.length-1]||0:e;function ga(e){const t=Rt(e)?e.get():e;return NP(t)?t.toValue():t}function BP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},o,r,s){const a={latestValues:DP(o,r,s,e),renderState:t()};return n&&(a.onMount=c=>n({props:o,current:c,...a}),a.onUpdate=c=>n(c)),a}const bg=e=>(t,n)=>{const o=P.useContext(pa),r=P.useContext(aa),s=()=>BP(e,t,o,r);return n?s():zc(s)};function DP(e,t,n,o){const r={},s=o(e,{});for(const f in s)r[f]=ga(s[f]);let{initial:a,animate:c}=e;const l=ha(e),u=og(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const p=d?c:a;if(p&&typeof p!="boolean"&&!fa(p)){const f=Array.isArray(p)?p:[p];for(let g=0;g<f.length;g++){const m=lu(e,f[g]);if(m){const{transitionEnd:h,transition:b,...y}=m;for(const T in y){let C=y[T];if(Array.isArray(C)){const I=d?C.length-1:0;C=C[I]}C!==null&&(r[T]=C)}for(const T in h)r[T]=h[T]}}}return r}function uu(e,t,n){var o;const{style:r}=e,s={};for(const a in r)(Rt(r[a])||t.style&&Rt(t.style[a])||cg(a,e)||((o=n==null?void 0:n.getValue(a))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(s[a]=r[a]);return s}const jP={useVisualState:bg({scrapeMotionValuesFromProps:uu,createRenderState:ru})};function vg(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function yg(e,{style:t,vars:n},o,r){Object.assign(e.style,t,r&&r.getProjectionStyles(o));for(const s in n)e.style.setProperty(s,n[s])}const xg=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 Cg(e,t,n,o){yg(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(xg.has(r)?r:Kc(r),t.attrs[r])}function Eg(e,t,n){const o=uu(e,t,n);for(const r in e)if(Rt(e[r])||Rt(t[r])){const s=mr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[s]=e[r]}return o}const Ig=["x","y","width","height","cx","cy","r"],FP={useVisualState:bg({scrapeMotionValuesFromProps:Eg,createRenderState:mg,onUpdate:({props:e,prevProps:t,current:n,renderState:o,latestValues:r})=>{if(!n)return;let s=!!e.drag;if(!s){for(const c in r)if(To.has(c)){s=!0;break}}if(!s)return;let a=!t;if(t)for(let c=0;c<Ig.length;c++){const l=Ig[c];e[l]!==t[l]&&(a=!0)}a&&Ke.read(()=>{vg(n,o),Ke.render(()=>{su(o,r,au(n.tagName),e.transformTemplate),Cg(n,o)})})}})};function VP(e,t){return function(o,{forwardMotionProps:r}={forwardMotionProps:!1}){const a={...iu(o)?FP:jP,preloadedFeatures:e,useRender:MP(r),createVisualElement:t,Component:o};return lP(a)}}function Ci(e,t,n){const o=e.getProps();return lu(o,t,n!==void 0?n:o.custom,e)}const LP=Yc(()=>window.ScrollTimeline!==void 0);class _P{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let o=0;o<this.animations.length;o++)this.animations[o][t]=n}attachTimeline(t,n){const o=this.animations.map(r=>{if(LP()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{o.forEach((r,s)=>{r&&r(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class $P extends _P{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function du(e,t){return e?e[t]||e.default||e:void 0}const pu=2e4;function Tg(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<pu;)t+=n,o=e.next(t);return t>=pu?1/0:t}function fu(e){return typeof e=="function"}function Sg(e,t){e.timeline=t,e.onfinish=null}const hu=e=>Array.isArray(e)&&typeof e[0]=="number",GP={linearEasing:void 0};function WP(e,t){const n=Yc(e);return()=>{var o;return(o=GP[t])!==null&&o!==void 0?o:n()}}const ba=WP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),wg=(e,t,n=10)=>{let o="";const r=Math.max(Math.round(t/n),2);for(let s=0;s<r;s++)o+=e(pr(0,r-1,s))+", ";return`linear(${o.substring(0,o.length-2)})`};function Rg(e){return!!(typeof e=="function"&&ba()||!e||typeof e=="string"&&(e in mu||ba())||hu(e)||Array.isArray(e)&&e.every(Rg))}const Ei=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,mu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ei([0,.65,.55,1]),circOut:Ei([.55,0,1,.45]),backIn:Ei([.31,.01,.66,-.59]),backOut:Ei([.33,1.53,.69,.99])};function Og(e,t){if(e)return typeof e=="function"&&ba()?wg(e,t):hu(e)?Ei(e):Array.isArray(e)?e.map(n=>Og(n,t)||mu.easeOut):mu[e]}const vn={x:!1,y:!1};function Ag(){return vn.x||vn.y}function zP(e,t,n){var o;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const s=(o=void 0)!==null&&o!==void 0?o:r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function Pg(e,t){const n=zP(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function Mg(e){return!(e.pointerType==="touch"||Ag())}function HP(e,t,n={}){const[o,r,s]=Pg(e,n),a=c=>{if(!Mg(c))return;const{target:l}=c,u=t(l,c);if(typeof u!="function"||!l)return;const d=p=>{Mg(p)&&(u(p),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,r)};return o.forEach(c=>{c.addEventListener("pointerenter",a,r)}),s}function Ii(e,t){const n=`${t}PointerCapture`;if(e.target instanceof Element&&n in e.target&&e.pointerId!==void 0)try{e.target[n](e.pointerId)}catch{}}const Ng=(e,t)=>t?e===t?!0:Ng(e,t.parentElement):!1,gu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,XP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function UP(e){return XP.has(e.tagName)||e.tabIndex!==-1}const Ti=new WeakSet;function kg(e){return t=>{t.key==="Enter"&&e(t)}}function bu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const YP=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=kg(()=>{if(Ti.has(n))return;bu(n,"down");const r=kg(()=>{bu(n,"up")}),s=()=>bu(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function Bg(e){return gu(e)&&!Ag()}function ZP(e,t,n={}){const[o,r,s]=Pg(e,n),a=c=>{const l=c.currentTarget;if(!l||!Bg(c)||Ti.has(l))return;Ti.add(l),Ii(c,"set");const u=t(l,c),d=(g,m)=>{l.removeEventListener("pointerup",p),l.removeEventListener("pointercancel",f),Ii(g,"release"),!(!Bg(g)||!Ti.has(l))&&(Ti.delete(l),typeof u=="function"&&u(g,{success:m}))},p=g=>{(g.isTrusted?JP(g,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?d(g,!1):d(g,!(l instanceof Element)||Ng(l,g.target))},f=g=>{d(g,!1)};l.addEventListener("pointerup",p,r),l.addEventListener("pointercancel",f,r),l.addEventListener("lostpointercapture",f,r)};return o.forEach(c=>{c=n.useGlobalTarget?window:c;let l=!1;c instanceof HTMLElement&&(l=!0,!UP(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0)),c.addEventListener("pointerdown",a,r),l&&c.addEventListener("focus",u=>YP(u,r),r)}),s}function JP(e,t){return e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom}function qP(e){return e==="x"||e==="y"?vn[e]?null:(vn[e]=!0,()=>{vn[e]=!1}):vn.x||vn.y?null:(vn.x=vn.y=!0,()=>{vn.x=vn.y=!1})}const Dg=new Set(["width","height","top","left","right","bottom",...mr]);let va;function KP(){va=void 0}const kn={now:()=>(va===void 0&&kn.set(Et.isProcessing||YA.useManualTiming?Et.timestamp:performance.now()),va),set:e=>{va=e,queueMicrotask(KP)}};function vu(e,t){e.indexOf(t)===-1&&e.push(t)}function yu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class xu{constructor(){this.subscriptions=[]}add(t){return vu(this.subscriptions,t),()=>yu(this.subscriptions,t)}notify(t,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,o);else for(let s=0;s<r;s++){const a=this.subscriptions[s];a&&a(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function jg(e,t){return t?e*(1e3/t):0}const Fg=30,QP=e=>!isNaN(parseFloat(e));class e5{constructor(t,n={}){this.version="12.4.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,r=!0)=>{const s=kn.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=kn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=QP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&da(!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 xu);const o=this.events[t].add(n);return t==="change"?()=>{o(),Ke.read(()=>{this.events.change.getSize()||this.stop()})}:o}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,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=kn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Fg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Fg);return jg(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}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 Si(e,t){return new e5(e,t)}function t5(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Si(n))}function n5(e,t){const n=Ci(e,t);let{transitionEnd:o={},transition:r={},...s}=n||{};s={...s,...o};for(const a in s){const c=kP(s[a]);t5(e,a,c)}}function o5(e){return!!(Rt(e)&&e.add)}function Cu(e,t){const n=e.getValue("willChange");if(o5(n))return n.add(t)}function Vg(e){return e.props[ig]}const Lg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,r5=1e-7,i5=12;function s5(e,t,n,o,r){let s,a,c=0;do a=t+(n-t)/2,s=Lg(a,o,r)-e,s>0?n=a:t=a;while(Math.abs(s)>r5&&++c<i5);return a}function wi(e,t,n,o){if(e===t&&n===o)return Wt;const r=s=>s5(s,0,1,e,n);return s=>s===0||s===1?s:Lg(r(s),t,o)}const _g=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$g=e=>t=>1-e(1-t),Gg=wi(.33,1.53,.69,.99),Eu=$g(Gg),Wg=_g(Eu),zg=e=>(e*=2)<1?.5*Eu(e):.5*(2-Math.pow(2,-10*(e-1))),Iu=e=>1-Math.sin(Math.acos(e)),Hg=$g(Iu),Xg=_g(Iu),Ug=e=>/^0[^.\s]+$/u.test(e);function a5(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ug(e):!0}const Ri=e=>Math.round(e*1e5)/1e5,Tu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function l5(e){return e==null}const c5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Su=(e,t)=>n=>!!(typeof n=="string"&&c5.test(n)&&n.startsWith(e)||t&&!l5(n)&&Object.prototype.hasOwnProperty.call(n,t)),Yg=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,s,a,c]=o.match(Tu);return{[e]:parseFloat(r),[t]:parseFloat(s),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},u5=e=>$n(0,255,e),wu={...gr,transform:e=>Math.round(u5(e))},So={test:Su("rgb","red"),parse:Yg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+wu.transform(e)+", "+wu.transform(t)+", "+wu.transform(n)+", "+Ri(yi.transform(o))+")"};function d5(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const Ru={test:Su("#"),parse:d5,transform:So.transform},br={test:Su("hsl","hue"),parse:Yg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Nn.transform(Ri(t))+", "+Nn.transform(Ri(n))+", "+Ri(yi.transform(o))+")"},Ot={test:e=>So.test(e)||Ru.test(e)||br.test(e),parse:e=>So.test(e)?So.parse(e):br.test(e)?br.parse(e):Ru.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?So.transform(e):br.transform(e)},p5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function f5(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Tu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(p5))===null||n===void 0?void 0:n.length)||0)>0}const Zg="number",Jg="color",h5="var",m5="var(",qg="${}",g5=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Oi(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let s=0;const c=t.replace(g5,l=>(Ot.test(l)?(o.color.push(s),r.push(Jg),n.push(Ot.parse(l))):l.startsWith(m5)?(o.var.push(s),r.push(h5),n.push(l)):(o.number.push(s),r.push(Zg),n.push(parseFloat(l))),++s,qg)).split(qg);return{values:n,split:c,indexes:o,types:r}}function Kg(e){return Oi(e).values}function Qg(e){const{split:t,types:n}=Oi(e),o=t.length;return r=>{let s="";for(let a=0;a<o;a++)if(s+=t[a],r[a]!==void 0){const c=n[a];c===Zg?s+=Ri(r[a]):c===Jg?s+=Ot.transform(r[a]):s+=r[a]}return s}}const b5=e=>typeof e=="number"?0:e;function v5(e){const t=Kg(e);return Qg(e)(t.map(b5))}const ro={test:f5,parse:Kg,createTransformer:Qg,getAnimatableNone:v5},y5=new Set(["brightness","contrast","saturate","opacity"]);function x5(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(Tu)||[];if(!o)return e;const r=n.replace(o,"");let s=y5.has(t)?1:0;return o!==n&&(s*=100),t+"("+s+r+")"}const C5=/\b([a-z-]*)\(.*?\)/gu,Ou={...ro,getAnimatableNone:e=>{const t=e.match(C5);return t?t.map(x5).join(" "):e}},E5={...nu,color:Ot,backgroundColor:Ot,outlineColor:Ot,fill:Ot,stroke:Ot,borderColor:Ot,borderTopColor:Ot,borderRightColor:Ot,borderBottomColor:Ot,borderLeftColor:Ot,filter:Ou,WebkitFilter:Ou},Au=e=>E5[e];function eb(e,t){let n=Au(e);return n!==Ou&&(n=ro),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const I5=new Set(["auto","none","0"]);function T5(e,t,n){let o=0,r;for(;o<e.length&&!r;){const s=e[o];typeof s=="string"&&!I5.has(s)&&Oi(s).values.length&&(r=e[o]),o++}if(r&&n)for(const s of t)e[s]=eb(n,r)}const tb=e=>e===gr||e===Ce,nb=(e,t)=>parseFloat(e.split(", ")[t]),ob=(e,t)=>(n,{transform:o})=>{if(o==="none"||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/u);if(r)return nb(r[1],t);{const s=o.match(/^matrix\((.+)\)$/u);return s?nb(s[1],e):0}},S5=new Set(["x","y","z"]),w5=mr.filter(e=>!S5.has(e));function R5(e){const t=[];return w5.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const vr={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:ob(4,13),y:ob(5,14)};vr.translateX=vr.x,vr.translateY=vr.y;const wo=new Set;let Pu=!1,Mu=!1;function rb(){if(Mu){const e=Array.from(wo).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=R5(o);r.length&&(n.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([s,a])=>{var c;(c=o.getValue(s))===null||c===void 0||c.set(a)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Mu=!1,Pu=!1,wo.forEach(e=>e.complete()),wo.clear()}function ib(){wo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Mu=!0)})}function O5(){ib(),rb()}class Nu{constructor(t,n,o,r,s,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=r,this.element=s,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(wo.add(this),Pu||(Pu=!0,Ke.read(ib),Ke.resolveKeyframes(rb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:r}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const a=r==null?void 0:r.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(o&&n){const l=o.readValue(n,c);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=c),r&&a===void 0&&r.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),wo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,wo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const sb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),A5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function P5(e){const t=A5.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const M5=4;function ab(e,t,n=1){to(n<=M5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[o,r]=P5(e);if(!o)return;const s=window.getComputedStyle(t).getPropertyValue(o);if(s){const a=s.trim();return sb(a)?parseFloat(a):a}return tu(r)?ab(r,t,n+1):r}const lb=e=>t=>t.test(e),cb=[gr,Ce,Nn,oo,gP,mP,{test:e=>e==="auto",parse:e=>e}],ub=e=>cb.find(lb(e));class db extends Nu{constructor(t,n,o,r,s){super(t,n,o,r,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),tu(u))){const d=ab(u,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Dg.has(o)||t.length!==2)return;const[r,s]=t,a=ub(r),c=ub(s);if(a!==c)if(tb(a)&&tb(c))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)a5(t[r])&&o.push(r);o.length&&T5(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=vr[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){var t;const{element:n,name:o,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const s=n.getValue(o);s&&s.jump(this.measuredOrigin,!1);const a=r.length-1,c=r[a];r[a]=vr[o](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const pb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ro.test(e)||e==="0")&&!e.startsWith("url("));function N5(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function k5(e,t,n,o){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=pb(r,t),c=pb(s,t);return dr(a===c,`You are trying to animate ${t} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!a||!c?!1:N5(e)||(n==="spring"||fu(n))&&o}const B5=e=>e!==null;function ya(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(B5),s=t&&n!=="loop"&&t%2===1?0:r.length-1;return!s||o===void 0?r[s]:o}const D5=40;class fb{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=kn.now(),this.options={autoplay:t,delay:n,type:o,repeat:r,repeatDelay:s,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>D5?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&O5(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=kn.now(),this.hasAttemptedResolve=!0;const{name:o,type:r,velocity:s,delay:a,onComplete:c,onUpdate:l,isGenerator:u}=this.options;if(!u&&!k5(t,o,r,s))if(a)this.options.duration=0;else{l&&l(ya(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const lt=(e,t,n)=>e+(t-e)*n;function ku(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 j5({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let r=0,s=0,a=0;if(!t)r=s=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;r=ku(l,c,e+1/3),s=ku(l,c,e),a=ku(l,c,e-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:o}}function xa(e,t){return n=>n>0?t:e}const Bu=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},F5=[Ru,So,br],V5=e=>F5.find(t=>t.test(e));function hb(e){const t=V5(e);if(dr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===br&&(n=j5(n)),n}const mb=(e,t)=>{const n=hb(e),o=hb(t);if(!n||!o)return xa(e,t);const r={...n};return s=>(r.red=Bu(n.red,o.red,s),r.green=Bu(n.green,o.green,s),r.blue=Bu(n.blue,o.blue,s),r.alpha=lt(n.alpha,o.alpha,s),So.transform(r))},L5=(e,t)=>n=>t(e(n)),Ai=(...e)=>e.reduce(L5),Du=new Set(["none","hidden"]);function _5(e,t){return Du.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $5(e,t){return n=>lt(e,t,n)}function ju(e){return typeof e=="number"?$5:typeof e=="string"?tu(e)?xa:Ot.test(e)?mb:z5:Array.isArray(e)?gb:typeof e=="object"?Ot.test(e)?mb:G5:xa}function gb(e,t){const n=[...e],o=n.length,r=e.map((s,a)=>ju(s)(s,t[a]));return s=>{for(let a=0;a<o;a++)n[a]=r[a](s);return n}}function G5(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=ju(e[r])(e[r],t[r]));return r=>{for(const s in o)n[s]=o[s](r);return n}}function W5(e,t){var n;const o=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const a=t.types[s],c=e.indexes[a][r[a]],l=(n=e.values[c])!==null&&n!==void 0?n:0;o[s]=l,r[a]++}return o}const z5=(e,t)=>{const n=ro.createTransformer(t),o=Oi(e),r=Oi(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Du.has(e)&&!r.values.length||Du.has(t)&&!o.values.length?_5(e,t):Ai(gb(W5(o,r),r.values),n):(dr(!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.`),xa(e,t))};function bb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?lt(e,t,n):ju(e)(e,t)}const H5=5;function vb(e,t,n){const o=Math.max(t-H5,0);return jg(n-e(o),t-o)}const ct={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},yb=.001;function X5({duration:e=ct.duration,bounce:t=ct.bounce,velocity:n=ct.velocity,mass:o=ct.mass}){let r,s;dr(e<=Mn(ct.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=$n(ct.minDamping,ct.maxDamping,a),e=$n(ct.minDuration,ct.maxDuration,_n(e)),a<1?(r=u=>{const d=u*a,p=d*e,f=d-n,g=Fu(u,a),m=Math.exp(-p);return yb-f/g*m},s=u=>{const p=u*a*e,f=p*n+n,g=Math.pow(a,2)*Math.pow(u,2)*e,m=Math.exp(-p),h=Fu(Math.pow(u,2),a);return(-r(u)+yb>0?-1:1)*((f-g)*m)/h}):(r=u=>{const d=Math.exp(-u*e),p=(u-n)*e+1;return-.001+d*p},s=u=>{const d=Math.exp(-u*e),p=(n-u)*(e*e);return d*p});const c=5/e,l=Y5(r,s,c);if(e=Mn(e),isNaN(l))return{stiffness:ct.stiffness,damping:ct.damping,duration:e};{const u=Math.pow(l,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const U5=12;function Y5(e,t,n){let o=n;for(let r=1;r<U5;r++)o=o-e(o)/t(o);return o}function Fu(e,t){return e*Math.sqrt(1-t*t)}const Z5=["duration","bounce"],J5=["stiffness","damping","mass"];function xb(e,t){return t.some(n=>e[n]!==void 0)}function q5(e){let t={velocity:ct.velocity,stiffness:ct.stiffness,damping:ct.damping,mass:ct.mass,isResolvedFromDuration:!1,...e};if(!xb(e,J5)&&xb(e,Z5))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,s=2*$n(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:ct.mass,stiffness:r,damping:s}}else{const n=X5(e);t={...t,...n,mass:ct.mass},t.isResolvedFromDuration=!0}return t}function Cb(e=ct.visualDuration,t=ct.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:s},{stiffness:l,damping:u,mass:d,duration:p,velocity:f,isResolvedFromDuration:g}=q5({...n,velocity:-_n(n.velocity||0)}),m=f||0,h=u/(2*Math.sqrt(l*d)),b=a-s,y=_n(Math.sqrt(l/d)),T=Math.abs(b)<5;o||(o=T?ct.restSpeed.granular:ct.restSpeed.default),r||(r=T?ct.restDelta.granular:ct.restDelta.default);let C;if(h<1){const x=Fu(y,h);C=R=>{const w=Math.exp(-h*y*R);return a-w*((m+h*y*b)/x*Math.sin(x*R)+b*Math.cos(x*R))}}else if(h===1)C=x=>a-Math.exp(-y*x)*(b+(m+y*b)*x);else{const x=y*Math.sqrt(h*h-1);C=R=>{const w=Math.exp(-h*y*R),O=Math.min(x*R,300);return a-w*((m+h*y*b)*Math.sinh(O)+x*b*Math.cosh(O))/x}}const I={calculatedDuration:g&&p||null,next:x=>{const R=C(x);if(g)c.done=x>=p;else{let w=0;h<1&&(w=x===0?Mn(m):vb(C,x,R));const O=Math.abs(w)<=o,M=Math.abs(a-R)<=r;c.done=O&&M}return c.value=c.done?a:R,c},toString:()=>{const x=Math.min(Tg(I),pu),R=wg(w=>I.next(x*w).value,x,30);return x+"ms "+R}};return I}function Eb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:c,max:l,restDelta:u=.5,restSpeed:d}){const p=e[0],f={done:!1,value:p},g=O=>c!==void 0&&O<c||l!==void 0&&O>l,m=O=>c===void 0?l:l===void 0||Math.abs(c-O)<Math.abs(l-O)?c:l;let h=n*t;const b=p+h,y=a===void 0?b:a(b);y!==b&&(h=y-p);const T=O=>-h*Math.exp(-O/o),C=O=>y+T(O),I=O=>{const M=T(O),N=C(O);f.done=Math.abs(M)<=u,f.value=f.done?y:N};let x,R;const w=O=>{g(f.value)&&(x=O,R=Cb({keyframes:[f.value,m(f.value)],velocity:vb(C,O,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:d}))};return w(0),{calculatedDuration:null,next:O=>{let M=!1;return!R&&x===void 0&&(M=!0,I(O),w(O)),x!==void 0&&O>=x?R.next(O-x):(!M&&I(O),f)}}}const K5=wi(.42,0,1,1),Q5=wi(0,0,.58,1),Ib=wi(.42,0,.58,1),eM=e=>Array.isArray(e)&&typeof e[0]!="number",Tb={linear:Wt,easeIn:K5,easeInOut:Ib,easeOut:Q5,circIn:Iu,circInOut:Xg,circOut:Hg,backIn:Eu,backInOut:Wg,backOut:Gg,anticipate:zg},Sb=e=>{if(hu(e)){to(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,o,r]=e;return wi(t,n,o,r)}else if(typeof e=="string")return to(Tb[e]!==void 0,`Invalid easing type '${e}'`),Tb[e];return e};function tM(e,t,n){const o=[],r=n||bb,s=e.length-1;for(let a=0;a<s;a++){let c=r(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||Wt:t;c=Ai(l,c)}o.push(c)}return o}function nM(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const s=e.length;if(to(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=tM(t,o,r),l=c.length,u=d=>{if(a&&d<e[0])return t[0];let p=0;if(l>1)for(;p<e.length-2&&!(d<e[p+1]);p++);const f=pr(e[p],e[p+1],d);return c[p](f)};return n?d=>u($n(e[0],e[s-1],d)):u}function oM(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=pr(0,t,o);e.push(lt(n,1,r))}}function rM(e){const t=[0];return oM(t,e.length-1),t}function iM(e,t){return e.map(n=>n*t)}function sM(e,t){return e.map(()=>t||Ib).splice(0,e.length-1)}function Pi({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=eM(o)?o.map(Sb):Sb(o),s={done:!1,value:t[0]},a=iM(n&&n.length===t.length?n:rM(t),e),c=nM(a,t,{ease:Array.isArray(r)?r:sM(t,r)});return{calculatedDuration:e,next:l=>(s.value=c(l),s.done=l>=e,s)}}const aM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ke.update(t,!0),stop:()=>no(t),now:()=>Et.isProcessing?Et.timestamp:kn.now()}},lM={decay:Eb,inertia:Eb,tween:Pi,keyframes:Pi,spring:Cb},cM=e=>e/100;class Vu extends fb{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:o,element:r,keyframes:s}=this.options,a=(r==null?void 0:r.KeyframeResolver)||Nu,c=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new a(s,c,n,o,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:s,velocity:a=0}=this.options,c=fu(n)?n:lM[n]||Pi;let l,u;process.env.NODE_ENV!=="production"&&c!==Pi&&to(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Pi&&typeof t[0]!="number"&&(l=Ai(cM,bb(t[0],t[1])),t=[0,100]);const d=c({...this.options,keyframes:t});s==="mirror"&&(u=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=Tg(d));const{calculatedDuration:p}=d,f=p+r,g=f*(o+1)-r;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:p,resolvedDuration:f,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:o}=this;if(!o){const{keyframes:O}=this.options;return{done:!0,value:O[O.length-1]}}const{finalKeyframe:r,generator:s,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:p}=o;if(this.startTime===null)return s.next(0);const{delay:f,repeat:g,repeatType:m,repeatDelay:h,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-f*(this.speed>=0?1:-1),T=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let C=this.currentTime,I=s;if(g){const O=Math.min(this.currentTime,d)/p;let M=Math.floor(O),N=O%1;!N&&O>=1&&(N=1),N===1&&M--,M=Math.min(M,g+1),!!(M%2)&&(m==="reverse"?(N=1-N,h&&(N-=h/p)):m==="mirror"&&(I=a)),C=$n(0,1,N)*p}const x=T?{done:!1,value:l[0]}:I.next(C);c&&(x.value=c(x.value));let{done:R}=x;!T&&u!==null&&(R=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const w=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return w&&r!==void 0&&(x.value=ya(l,this.options,r)),b&&b(x.value),w&&this.finish(),x}get duration(){const{resolved:t}=this;return t?_n(t.calculatedDuration):0}get time(){return _n(this.currentTime)}set time(t){t=Mn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=_n(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=aM,onPlay:n,startTime:o}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=o??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const uM=new Set(["opacity","clipPath","filter","transform"]);function dM(e,t,n,{delay:o=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:c="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=Og(c,r);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:o,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"})}const pM=Yc(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ca=10,fM=2e4;function hM(e){return fu(e.type)||e.type==="spring"||!Rg(e.ease)}function mM(e,t){const n=new Vu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:e[0]};const r=[];let s=0;for(;!o.done&&s<fM;)o=n.sample(s),r.push(o.value),s+=Ca;return{times:void 0,keyframes:r,duration:s-Ca,ease:"linear"}}const wb={anticipate:zg,backInOut:Wg,circInOut:Xg};function gM(e){return e in wb}class Rb extends fb{constructor(t){super(t);const{name:n,motionValue:o,element:r,keyframes:s}=this.options;this.resolver=new db(s,(a,c)=>this.onKeyframesResolved(a,c),n,o,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:o=300,times:r,ease:s,type:a,motionValue:c,name:l,startTime:u}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof s=="string"&&ba()&&gM(s)&&(s=wb[s]),hM(this.options)){const{onComplete:p,onUpdate:f,motionValue:g,element:m,...h}=this.options,b=mM(t,h);t=b.keyframes,t.length===1&&(t[1]=t[0]),o=b.duration,r=b.times,s=b.ease,a="keyframes"}const d=dM(c.owner.current,l,t,{...this.options,duration:o,times:r,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Sg(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:p}=this.options;c.set(ya(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:r,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return _n(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return _n(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.currentTime=Mn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Wt;const{animation:o}=n;Sg(o,t)}return Wt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:o,duration:r,type:s,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:p,element:f,...g}=this.options,m=new Vu({...g,keyframes:o,duration:r,type:s,ease:a,times:c,isGenerator:!0}),h=Mn(this.time);u.setWithVelocity(m.sample(h-Ca).value,m.sample(h).value,Ca)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:o,repeatDelay:r,repeatType:s,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return pM()&&o&&uM.has(o)&&!l&&!u&&!r&&s!=="mirror"&&a!==0&&c!=="inertia"}}const bM={type:"spring",stiffness:500,damping:25,restSpeed:10},vM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yM={type:"keyframes",duration:.8},xM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},CM=(e,{keyframes:t})=>t.length>2?yM:To.has(e)?e.startsWith("scale")?vM(t[1]):bM:xM;function EM({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:c,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const Lu=(e,t,n,o={},r,s)=>a=>{const c=du(o,e)||{},l=c.delay||o.delay||0;let{elapsed:u=0}=o;u=u-Mn(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-u,onUpdate:f=>{t.set(f),c.onUpdate&&c.onUpdate(f)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:s?void 0:r};EM(c)||(d={...d,...CM(e,d)}),d.duration&&(d.duration=Mn(d.duration)),d.repeatDelay&&(d.repeatDelay=Mn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(p=!0)),p&&!s&&t.get()!==void 0){const f=ya(d.keyframes,c);if(f!==void 0)return Ke.update(()=>{d.onUpdate(f),d.onComplete()}),new $P([])}return!s&&Rb.supports(d)?new Rb(d):new Vu(d)};function IM({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function Ob(e,t,{delay:n=0,transitionOverride:o,type:r}={}){var s;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...l}=t;o&&(a=o);const u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const p in l){const f=e.getValue(p,(s=e.latestValues[p])!==null&&s!==void 0?s:null),g=l[p];if(g===void 0||d&&IM(d,p))continue;const m={delay:n,...du(a||{},p)};let h=!1;if(window.MotionHandoffAnimation){const y=Vg(e);if(y){const T=window.MotionHandoffAnimation(y,p,Ke);T!==null&&(m.startTime=T,h=!0)}}Cu(e,p),f.start(Lu(p,f,g,e.shouldReduceMotion&&Dg.has(p)?{type:!1}:m,e,h));const b=f.animation;b&&u.push(b)}return c&&Promise.all(u).then(()=>{Ke.update(()=>{c&&n5(e,c)})}),u}function _u(e,t,n={}){var o;const r=Ci(e,t,n.type==="exit"?(o=e.presenceContext)===null||o===void 0?void 0:o.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const a=r?()=>Promise.all(Ob(e,r,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:f}=s;return TM(e,t,d+u,p,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,d]=l==="beforeChildren"?[a,c]:[c,a];return u().then(()=>d())}else return Promise.all([a(),c(n.delay)])}function TM(e,t,n=0,o=0,r=1,s){const a=[],c=(e.variantChildren.size-1)*o,l=r===1?(u=0)=>u*o:(u=0)=>c-u*o;return Array.from(e.variantChildren).sort(SM).forEach((u,d)=>{u.notify("AnimationStart",t),a.push(_u(u,t,{...s,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function SM(e,t){return e.sortNodePosition(t)}function wM(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(s=>_u(e,s,n));o=Promise.all(r)}else if(typeof t=="string")o=_u(e,t,n);else{const r=typeof t=="function"?Ci(e,t,n.custom):t;o=Promise.all(Ob(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}function Ab(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const RM=qc.length;function Pb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Pb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<RM;n++){const o=qc[n],r=e.props[o];(bi(r)||r===!1)&&(t[o]=r)}return t}const OM=[...Jc].reverse(),AM=Jc.length;function PM(e){return t=>Promise.all(t.map(({animation:n,options:o})=>wM(e,n,o)))}function MM(e){let t=PM(e),n=Mb(),o=!0;const r=l=>(u,d)=>{var p;const f=Ci(e,d,l==="exit"?(p=e.presenceContext)===null||p===void 0?void 0:p.custom:void 0);if(f){const{transition:g,transitionEnd:m,...h}=f;u={...u,...h,...m}}return u};function s(l){t=l(e)}function a(l){const{props:u}=e,d=Pb(e.parent)||{},p=[],f=new Set;let g={},m=1/0;for(let b=0;b<AM;b++){const y=OM[b],T=n[y],C=u[y]!==void 0?u[y]:d[y],I=bi(C),x=y===l?T.isActive:null;x===!1&&(m=b);let R=C===d[y]&&C!==u[y]&&I;if(R&&o&&e.manuallyAnimateOnMount&&(R=!1),T.protectedKeys={...g},!T.isActive&&x===null||!C&&!T.prevProp||fa(C)||typeof C=="boolean")continue;const w=NM(T.prevProp,C);let O=w||y===l&&T.isActive&&!R&&I||b>m&&I,M=!1;const N=Array.isArray(C)?C:[C];let j=N.reduce(r(y),{});x===!1&&(j={});const{prevResolvedValues:W={}}=T,D={...W,...j},L=$=>{O=!0,f.has($)&&(M=!0,f.delete($)),T.needsAnimating[$]=!0;const k=e.getValue($);k&&(k.liveStyle=!1)};for(const $ in D){const k=j[$],H=W[$];if(g.hasOwnProperty($))continue;let B=!1;cu(k)&&cu(H)?B=!Ab(k,H):B=k!==H,B?k!=null?L($):f.add($):k!==void 0&&f.has($)?L($):T.protectedKeys[$]=!0}T.prevProp=C,T.prevResolvedValues=j,T.isActive&&(g={...g,...j}),o&&e.blockInitialAnimation&&(O=!1),O&&(!(R&&w)||M)&&p.push(...N.map($=>({animation:$,options:{type:y}})))}if(f.size){const b={};if(typeof u.initial!="boolean"){const y=Ci(e,Array.isArray(u.initial)?u.initial[0]:u.initial);y&&y.transition&&(b.transition=y.transition)}f.forEach(y=>{const T=e.getBaseTarget(y),C=e.getValue(y);C&&(C.liveStyle=!0),b[y]=T??null}),p.push({animation:b})}let h=!!p.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(h=!1),o=!1,h?t(p):Promise.resolve()}function c(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var g;return(g=f.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const p=a(l);for(const f in n)n[f].protectedKeys={};return p}return{animateChanges:a,setActive:c,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Mb(),o=!0}}}function NM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ab(t,e):!1}function Ro(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Mb(){return{animate:Ro(!0),whileInView:Ro(),whileHover:Ro(),whileTap:Ro(),whileDrag:Ro(),whileFocus:Ro(),exit:Ro()}}class io{constructor(t){this.isMounted=!1,this.node=t}update(){}}class kM extends io{constructor(t){super(t),t.animationState||(t.animationState=MM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();fa(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let BM=0;class DM extends io{constructor(){super(...arguments),this.id=BM++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const jM={animation:{Feature:kM},exit:{Feature:DM}};function Mi(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}function Ni(e){return{point:{x:e.pageX,y:e.pageY}}}const FM=e=>t=>gu(t)&&e(t,Ni(t));function yr(e,t,n,o){return Mi(e,t,FM(n),o)}function Nb({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function VM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function LM(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}const kb=1e-4,_M=1-kb,$M=1+kb,Bb=.01,GM=0-Bb,WM=0+Bb;function Ft(e){return e.max-e.min}function zM(e,t,n){return Math.abs(e-t)<=n}function Db(e,t,n,o=.5){e.origin=o,e.originPoint=lt(t.min,t.max,e.origin),e.scale=Ft(n)/Ft(t),e.translate=lt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=_M&&e.scale<=$M||isNaN(e.scale))&&(e.scale=1),(e.translate>=GM&&e.translate<=WM||isNaN(e.translate))&&(e.translate=0)}function ki(e,t,n,o){Db(e.x,t.x,n.x,o?o.originX:void 0),Db(e.y,t.y,n.y,o?o.originY:void 0)}function jb(e,t,n){e.min=n.min+t.min,e.max=e.min+Ft(t)}function HM(e,t,n){jb(e.x,t.x,n.x),jb(e.y,t.y,n.y)}function Fb(e,t,n){e.min=t.min-n.min,e.max=e.min+Ft(t)}function Bi(e,t,n){Fb(e.x,t.x,n.x),Fb(e.y,t.y,n.y)}const Vb=()=>({translate:0,scale:1,origin:0,originPoint:0}),xr=()=>({x:Vb(),y:Vb()}),Lb=()=>({min:0,max:0}),gt=()=>({x:Lb(),y:Lb()});function dn(e){return[e("x"),e("y")]}function $u(e){return e===void 0||e===1}function Gu({scale:e,scaleX:t,scaleY:n}){return!$u(e)||!$u(t)||!$u(n)}function Oo(e){return Gu(e)||_b(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function _b(e){return $b(e.x)||$b(e.y)}function $b(e){return e&&e!=="0%"}function Ea(e,t,n){const o=e-n,r=t*o;return n+r}function Gb(e,t,n,o,r){return r!==void 0&&(e=Ea(e,r,o)),Ea(e,n,o)+t}function Wu(e,t=0,n=1,o,r){e.min=Gb(e.min,t,n,o,r),e.max=Gb(e.max,t,n,o,r)}function Wb(e,{x:t,y:n}){Wu(e.x,t.translate,t.scale,t.originPoint),Wu(e.y,n.translate,n.scale,n.originPoint)}const zb=.999999999999,Hb=1.0000000000001;function XM(e,t,n,o=!1){const r=n.length;if(!r)return;t.x=t.y=1;let s,a;for(let c=0;c<r;c++){s=n[c],a=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(o&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Er(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Wb(e,a)),o&&Oo(s.latestValues)&&Er(e,s.latestValues))}t.x<Hb&&t.x>zb&&(t.x=1),t.y<Hb&&t.y>zb&&(t.y=1)}function Cr(e,t){e.min=e.min+t,e.max=e.max+t}function Xb(e,t,n,o,r=.5){const s=lt(e.min,e.max,r);Wu(e,t,n,s,o)}function Er(e,t){Xb(e.x,t.x,t.scaleX,t.scale,t.originX),Xb(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ub(e,t){return Nb(LM(e.getBoundingClientRect(),t))}function UM(e,t,n){const o=Ub(e,n),{scroll:r}=t;return r&&(Cr(o.x,r.offset.x),Cr(o.y,r.offset.y)),o}const Yb=(e,t)=>Math.abs(e-t);function YM(e,t){const n=Yb(e.x,t.x),o=Yb(e.y,t.y);return Math.sqrt(n**2+o**2)}class Zb{constructor(t,n,{transformPagePoint:o,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Hu(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,f=YM(d.offset,{x:0,y:0})>=3;if(!p&&!f)return;const{point:g}=d,{timestamp:m}=Et;this.history.push({...g,timestamp:m});const{onStart:h,onMove:b}=this.handlers;p||(h&&h(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{if(this.index=Kb(d.currentTarget),d.target instanceof Element&&d.target.hasPointerCapture&&d.pointerId!==void 0)try{if(!d.target.hasPointerCapture(d.pointerId))return}catch{}this.lastMoveEvent=d,this.lastMoveEventInfo=zu(p,this.transformPagePoint),Ke.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{Ii(d,"release"),this.end();const{onEnd:f,onSessionEnd:g,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Hu(d.type==="pointercancel"||d.type==="lostpointercapture"?this.lastMoveEventInfo:zu(p,this.transformPagePoint),this.history);this.startEvent&&f&&f(d,h),g&&g(d,h)},!gu(t))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=o;const s=Ni(t),a=zu(s,this.transformPagePoint),{point:c}=a,{timestamp:l}=Et;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=n;u&&u(t,Hu(a,this.history)),Ii(t,"set"),this.removeListeners=Ai(yr(t.currentTarget,"pointermove",this.handlePointerMove),yr(t.currentTarget,"pointerup",this.handlePointerUp),yr(t.currentTarget,"pointercancel",this.handlePointerUp),yr(t.currentTarget,"lostpointercapture",(d,p)=>{Kb(d.currentTarget)!==this.index?Ii(d,"set"):this.handlePointerUp(d,p)}))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),no(this.updatePoint)}}function zu(e,t){return t?{point:t(e.point)}:e}function Jb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Hu({point:e},t){return{point:e,delta:Jb(e,qb(t)),offset:Jb(e,ZM(t)),velocity:JM(t,.1)}}function ZM(e){return e[0]}function qb(e){return e[e.length-1]}function JM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=qb(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>Mn(t)));)n--;if(!o)return{x:0,y:0};const s=_n(r.timestamp-o.timestamp);if(s===0)return{x:0,y:0};const a={x:(r.x-o.x)/s,y:(r.y-o.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Kb(e){return e.parentNode?Array.from(e.parentNode.children).indexOf(e):-1}function qM(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?lt(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?lt(n,e,o.max):Math.min(e,n)),e}function Qb(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 KM(e,{top:t,left:n,bottom:o,right:r}){return{x:Qb(e.x,n,r),y:Qb(e.y,t,o)}}function e0(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function QM(e,t){return{x:e0(e.x,t.x),y:e0(e.y,t.y)}}function eN(e,t){let n=.5;const o=Ft(e),r=Ft(t);return r>o?n=pr(t.min,t.max-o,e.min):o>r&&(n=pr(e.min,e.max-r,t.min)),$n(0,1,n)}function tN(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 Xu=.35;function nN(e=Xu){return e===!1?e=0:e===!0&&(e=Xu),{x:t0(e,"left","right"),y:t0(e,"top","bottom")}}function t0(e,t,n){return{min:n0(e,t),max:n0(e,n)}}function n0(e,t){return typeof e=="number"?e:e[t]||0}const oN=new WeakMap;class rN{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const r=d=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ni(d).point)},s=(d,p)=>{const{drag:f,dragPropagation:g,onDragStart:m}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qP(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dn(b=>{let y=this.getAxisMotionValue(b).get()||0;if(Nn.test(y)){const{projection:T}=this.visualElement;if(T&&T.layout){const C=T.layout.layoutBox[b];C&&(y=Ft(C)*(parseFloat(y)/100))}}this.originPoint[b]=y}),m&&Ke.postRender(()=>m(d,p)),Cu(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},a=(d,p)=>{const{dragPropagation:f,dragDirectionLock:g,onDirectionLock:m,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:b}=p;if(g&&this.currentDirection===null){this.currentDirection=iN(b),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",p.point,b),this.updateAxis("y",p.point,b),this.visualElement.render(),h&&h(d,p)},c=(d,p)=>this.stop(d,p),l=()=>dn(d=>{var p;return this.getAnimationState(d)==="paused"&&((p=this.getAxisMotionValue(d).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Zb(t,{onSessionStart:r,onStart:s,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u})}stop(t,n){const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:s}=this.getProps();s&&Ke.postRender(()=>s(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:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,o){const{drag:r}=this.getProps();if(!o||!Ia(t,r,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=qM(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&hr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=KM(r.layoutBox,n):this.constraints=!1,this.elastic=nN(o),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&dn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=tN(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!hr(t))return!1;const o=t.current;to(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const s=UM(o,r.root,this.visualElement.getTransformPagePoint());let a=QM(r.layout.layoutBox,s);if(n){const c=n(VM(a));this.hasMutatedConstraints=!!c,c&&(a=Nb(c))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),l=this.constraints||{},u=dn(d=>{if(!Ia(d,n,this.currentDirection))return;let p=l&&l[d]||{};a&&(p={min:0,max:0});const f=r?200:1e6,g=r?40:1e7,m={type:"inertia",velocity:o?t[d]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(d,m)});return Promise.all(u).then(c)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return Cu(this.visualElement,t),o.start(Lu(t,o,0,n,this.visualElement,!1))}stopAnimation(){dn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){dn(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()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){dn(n=>{const{drag:o}=this.getProps();if(!Ia(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(n);if(r&&r.layout){const{min:a,max:c}=r.layout.layoutBox[n];s.set(t[n]-lt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!hr(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};dn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const l=c.get();r[a]=eN({min:l,max:l},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),dn(a=>{if(!Ia(a,t,null))return;const c=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];c.set(lt(l,u,r[a]))})}addListeners(){if(!this.visualElement.current)return;oN.set(this.visualElement,this);const t=this.visualElement.current,n=yr(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),o=()=>{const{dragConstraints:l}=this.getProps();hr(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,s=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Ke.read(o);const a=Mi(window,"resize",()=>this.scalePositionWithinConstraints()),c=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(dn(d=>{const p=this.getAxisMotionValue(d);p&&(this.originPoint[d]+=l[d].translate,p.set(p.get()+l[d].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:a=Xu,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:s,dragElastic:a,dragMomentum:c}}}function Ia(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function iN(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class sN extends io{constructor(t){super(t),this.removeGroupControls=Wt,this.removeListeners=Wt,this.controls=new rN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wt}unmount(){this.removeGroupControls(),this.removeListeners()}}const o0=e=>(t,n)=>{e&&Ke.postRender(()=>e(t,n))};class aN extends io{constructor(){super(...arguments),this.removePointerDownListener=Wt}onPointerDown(t){this.session=new Zb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:o0(t),onStart:o0(n),onMove:o,onEnd:(s,a)=>{delete this.session,r&&Ke.postRender(()=>r(s,a))}}}mount(){this.removePointerDownListener=yr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ta={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function r0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Di={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ce.test(e))e=parseFloat(e);else return e;const n=r0(e,t.target.x),o=r0(e,t.target.y);return`${n}% ${o}%`}},lN={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=ro.parse(e);if(r.length>5)return o;const s=ro.createTransformer(e),a=typeof r[0]!="number"?1:0,c=n.x.scale*t.x,l=n.y.scale*t.y;r[0+a]/=c,r[1+a]/=l;const u=lt(c,l,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),s(r)}};class cN extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:s}=t;hP(uN),s&&(n.group&&n.group.add(s),o&&o.register&&r&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Ta.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:r,isPresent:s}=this.props,a=o.projection;return a&&(a.isPresent=s,r||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||Ke.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Qc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function i0(e){const[t,n]=Ym(),o=P.useContext(Wc);return v.jsx(cN,{...e,layoutGroup:o,switchLayoutGroup:P.useContext(sg),isPresent:t,safeToRemove:n})}const uN={borderRadius:{...Di,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Di,borderTopRightRadius:Di,borderBottomLeftRadius:Di,borderBottomRightRadius:Di,boxShadow:lN};function dN(e,t,n){const o=Rt(e)?e:Si(e);return o.start(Lu("",o,t,n)),o.animation}function pN(e){return e instanceof SVGElement&&e.tagName!=="svg"}const fN=(e,t)=>e.depth-t.depth;class hN{constructor(){this.children=[],this.isDirty=!1}add(t){vu(this.children,t),this.isDirty=!0}remove(t){yu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(fN),this.isDirty=!1,this.children.forEach(t)}}function mN(e,t){const n=kn.now(),o=({timestamp:r})=>{const s=r-n;s>=t&&(no(o),e(s-t))};return Ke.read(o,!0),()=>no(o)}const s0=["TopLeft","TopRight","BottomLeft","BottomRight"],gN=s0.length,a0=e=>typeof e=="string"?parseFloat(e):e,l0=e=>typeof e=="number"||Ce.test(e);function bN(e,t,n,o,r,s){r?(e.opacity=lt(0,n.opacity!==void 0?n.opacity:1,vN(o)),e.opacityExit=lt(t.opacity!==void 0?t.opacity:1,0,yN(o))):s&&(e.opacity=lt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,o));for(let a=0;a<gN;a++){const c=`border${s0[a]}Radius`;let l=c0(t,c),u=c0(n,c);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||l0(l)===l0(u)?(e[c]=Math.max(lt(a0(l),a0(u),o),0),(Nn.test(u)||Nn.test(l))&&(e[c]+="%")):e[c]=u}(t.rotate||n.rotate)&&(e.rotate=lt(t.rotate||0,n.rotate||0,o))}function c0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const vN=u0(0,.5,Hg),yN=u0(.5,.95,Wt);function u0(e,t,n){return o=>o<e?0:o>t?1:n(pr(e,t,o))}function d0(e,t){e.min=t.min,e.max=t.max}function pn(e,t){d0(e.x,t.x),d0(e.y,t.y)}function p0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function f0(e,t,n,o,r){return e-=t,e=Ea(e,1/n,o),r!==void 0&&(e=Ea(e,1/r,o)),e}function xN(e,t=0,n=1,o=.5,r,s=e,a=e){if(Nn.test(t)&&(t=parseFloat(t),t=lt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=lt(s.min,s.max,o);e===s&&(c-=t),e.min=f0(e.min,t,n,c,r),e.max=f0(e.max,t,n,c,r)}function h0(e,t,[n,o,r],s,a){xN(e,t[n],t[o],t[r],t.scale,s,a)}const CN=["x","scaleX","originX"],EN=["y","scaleY","originY"];function m0(e,t,n,o){h0(e.x,t,CN,n?n.x:void 0,o?o.x:void 0),h0(e.y,t,EN,n?n.y:void 0,o?o.y:void 0)}function g0(e){return e.translate===0&&e.scale===1}function b0(e){return g0(e.x)&&g0(e.y)}function v0(e,t){return e.min===t.min&&e.max===t.max}function IN(e,t){return v0(e.x,t.x)&&v0(e.y,t.y)}function y0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function x0(e,t){return y0(e.x,t.x)&&y0(e.y,t.y)}function C0(e){return Ft(e.x)/Ft(e.y)}function E0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class TN{constructor(){this.members=[]}add(t){vu(this.members,t),t.scheduleRender()}remove(t){if(yu(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(r=>t===r);if(n===0)return!1;let o;for(let r=n;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1){o=s;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function SN(e,t,n){let o="";const r=e.x.translate/t.x,s=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((r||s||a)&&(o=`translate3d(${r}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:p,rotateY:f,skewX:g,skewY:m}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),p&&(o+=`rotateX(${p}deg) `),f&&(o+=`rotateY(${f}deg) `),g&&(o+=`skewX(${g}deg) `),m&&(o+=`skewY(${m}deg) `)}const c=e.x.scale*t.x,l=e.y.scale*t.y;return(c!==1||l!==1)&&(o+=`scale(${c}, ${l})`),o||"none"}const Uu=["","X","Y","Z"],wN={visibility:"hidden"},I0=1e3;let RN=0;function Yu(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function T0(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Vg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ke,!(r||s))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&T0(o)}function S0({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},c=t==null?void 0:t()){this.id=RN++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(PN),this.nodes.forEach(DN),this.nodes.forEach(jN),this.nodes.forEach(MN)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new hN)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new xu),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const l=this.eventHandlers.get(a);l&&l.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=pN(a),this.instance=a;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(u||l)&&(this.isLayoutDirty=!0),e){let p;const f=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=mN(f,250),Ta.hasAnimatedSinceResize&&(Ta.hasAnimatedSinceResize=!1,this.nodes.forEach(R0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:f,hasRelativeLayoutChanged:g,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||d.getDefaultTransition()||$N,{onLayoutAnimationStart:b,onLayoutAnimationComplete:y}=d.getProps(),T=!this.targetLayout||!x0(this.targetLayout,m),C=!f&&g;if(this.options.layoutRoot||this.resumeFrom||C||f&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,C);const I={...du(h,"layout"),onPlay:b,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else f||R0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,no(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(FN),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&T0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const p=this.path[d];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:c,layout:l}=this.options;if(c===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(w0);return}this.isUpdating||this.nodes.forEach(kN),this.isUpdating=!1,this.nodes.forEach(BN),this.nodes.forEach(ON),this.nodes.forEach(AN),this.clearAllSnapshots();const c=kn.now();Et.delta=$n(0,1e3/60,c-Et.timestamp),Et.timestamp=c,Et.isProcessing=!0,Zc.update.process(Et),Zc.preRender.process(Et),Zc.render.process(Et),Et.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(NN),this.sharedNodes.forEach(VN)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ft(this.snapshot.measuredBox.x)&&!Ft(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}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 a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const l=o(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!b0(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&(c||Oo(this.latestValues)||d)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let l=this.removeElementScroll(c);return a&&(l=this.removeTransform(l)),GN(l),{animationId:this.root.animationId,measuredBox:c,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return gt();const l=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(WN))){const{scroll:d}=this.root;d&&(Cr(l.x,d.offset.x),Cr(l.y,d.offset.y))}return l}removeElementScroll(a){var c;const l=gt();if(pn(l,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:p,options:f}=d;d!==this.root&&p&&f.layoutScroll&&(p.wasRoot&&pn(l,a),Cr(l.x,p.offset.x),Cr(l.y,p.offset.y))}return l}applyTransform(a,c=!1){const l=gt();pn(l,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!c&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Er(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Oo(d.latestValues)&&Er(l,d.latestValues)}return Oo(this.latestValues)&&Er(l,this.latestValues),l}removeTransform(a){const c=gt();pn(c,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Oo(u.latestValues))continue;Gu(u.latestValues)&&u.updateSnapshot();const d=gt(),p=u.measurePageBox();pn(d,p),m0(c,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Oo(this.latestValues)&&m0(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==Et.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:f}=this.options;if(!(!this.layout||!(p||f))){if(this.resolvedRelativeTargetAt=Et.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gt(),this.relativeTargetOrigin=gt(),Bi(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),pn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=gt(),this.targetWithTransforms=gt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),HM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):pn(this.target,this.layout.layoutBox),Wb(this.target,this.targetDelta)):pn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gt(),this.relativeTargetOrigin=gt(),Bi(this.relativeTargetOrigin,this.target,g.target),pn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Gu(this.parent.latestValues)||_b(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 a;const c=this.getLead(),l=!!this.resumingFrom||this!==c;let u=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Et.timestamp&&(u=!1),u)return;const{layout:d,layoutId:p}=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||p))return;pn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,g=this.treeScale.y;XM(this.layoutCorrected,this.treeScale,this.path,l),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=gt());const{target:m}=c;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(p0(this.prevProjectionDelta.x,this.projectionDelta.x),p0(this.prevProjectionDelta.y,this.projectionDelta.y)),ki(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==g||!E0(this.projectionDelta.x,this.prevProjectionDelta.x)||!E0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=xr(),this.projectionDelta=xr(),this.projectionDeltaWithTransform=xr()}setAnimationOrigin(a,c=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},p=xr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const f=gt(),g=l?l.source:void 0,m=this.layout?this.layout.source:void 0,h=g!==m,b=this.getStack(),y=!b||b.members.length<=1,T=!!(h&&!y&&this.options.crossfade===!0&&!this.path.some(_N));this.animationProgress=0;let C;this.mixTargetDelta=I=>{const x=I/1e3;O0(p.x,a.x,x),O0(p.y,a.y,x),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bi(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),LN(this.relativeTarget,this.relativeTargetOrigin,f,x),C&&IN(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=gt()),pn(C,this.relativeTarget)),h&&(this.animationValues=d,bN(d,u,this.latestValues,x,T,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(no(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ke.update(()=>{Ta.hasAnimatedSinceResize=!0,this.currentAnimation=dN(0,I0,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(I0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:l,layout:u,latestValues:d}=a;if(!(!c||!l||!u)){if(this!==a&&this.layout&&u&&k0(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||gt();const p=Ft(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+p;const f=Ft(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}pn(c,l),Er(c,d),ki(this.projectionDeltaWithTransform,this.layoutCorrected,c,d)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new TN),this.sharedNodes.get(a).add(c);const u=c.options.initialPromotionConfig;c.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(c=!0),!c)return;const u={};l.z&&Yu("z",a,u,this.animationValues);for(let d=0;d<Uu.length;d++)Yu(`rotate${Uu[d]}`,a,u,this.animationValues),Yu(`skew${Uu[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}getProjectionStyles(a){var c,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return wN;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ga(a==null?void 0:a.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const h={};return this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=ga(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Oo(this.latestValues)&&(h.transform=d?d({},""):"none",this.hasProjected=!1),h}const f=p.animationValues||p.latestValues;this.applyTransformsToTarget(),u.transform=SN(this.projectionDeltaWithTransform,this.treeScale,f),d&&(u.transform=d(f,u.transform));const{x:g,y:m}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${m.origin*100}% 0`,p.animationValues?u.opacity=p===this?(l=(c=f.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=p===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const h in vi){if(f[h]===void 0)continue;const{correct:b,applyTo:y,isCSSVariable:T}=vi[h],C=u.transform==="none"?f[h]:b(f[h],p);if(y){const I=y.length;for(let x=0;x<I;x++)u[y[x]]=C}else T?this.options.visualElement.renderState.vars[h]=C:u[h]=C}return this.options.layoutId&&(u.pointerEvents=p===this?ga(a==null?void 0:a.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(w0),this.root.sharedNodes.clear()}}}function ON(e){e.updateLayout()}function AN(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:o,measuredBox:r}=e.layout,{animationType:s}=e.options,a=n.source!==e.layout.source;s==="size"?dn(p=>{const f=a?n.measuredBox[p]:n.layoutBox[p],g=Ft(f);f.min=o[p].min,f.max=f.min+g}):k0(s,n.layoutBox,o)&&dn(p=>{const f=a?n.measuredBox[p]:n.layoutBox[p],g=Ft(o[p]);f.max=f.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+g)});const c=xr();ki(c,o,n.layoutBox);const l=xr();a?ki(l,e.applyTransform(r,!0),n.measuredBox):ki(l,o,n.layoutBox);const u=!b0(c);let d=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:f,layout:g}=p;if(f&&g){const m=gt();Bi(m,n.layoutBox,f.layoutBox);const h=gt();Bi(h,o,g.layoutBox),x0(m,h)||(d=!0),p.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=m,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:n,delta:l,layoutDelta:c,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function PN(e){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 MN(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function NN(e){e.clearSnapshot()}function w0(e){e.clearMeasurements()}function kN(e){e.isLayoutDirty=!1}function BN(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function R0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function DN(e){e.resolveTargetDelta()}function jN(e){e.calcProjection()}function FN(e){e.resetSkewAndRotation()}function VN(e){e.removeLeadSnapshot()}function O0(e,t,n){e.translate=lt(t.translate,0,n),e.scale=lt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function A0(e,t,n,o){e.min=lt(t.min,n.min,o),e.max=lt(t.max,n.max,o)}function LN(e,t,n,o){A0(e.x,t.x,n.x,o),A0(e.y,t.y,n.y,o)}function _N(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const $N={duration:.45,ease:[.4,0,.1,1]},P0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),M0=P0("applewebkit/")&&!P0("chrome/")?Math.round:Wt;function N0(e){e.min=M0(e.min),e.max=M0(e.max)}function GN(e){N0(e.x),N0(e.y)}function k0(e,t,n){return e==="position"||e==="preserve-aspect"&&!zM(C0(t),C0(n),.2)}function WN(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const zN=S0({attachResizeListener:(e,t)=>Mi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Zu={current:void 0},B0=S0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Zu.current){const e=new zN({});e.mount(window),e.setOptions({layoutScroll:!0}),Zu.current=e}return Zu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),HN={pan:{Feature:aN},drag:{Feature:sN,ProjectionNode:B0,MeasureLayout:i0}};function D0(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,s=o[r];s&&Ke.postRender(()=>s(t,Ni(t)))}class XN extends io{mount(){const{current:t}=this.node;t&&(this.unmount=HP(t,(n,o)=>(D0(this.node,o,"Start"),r=>D0(this.node,r,"End"))))}unmount(){}}class UN extends io{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=Ai(Mi(this.node.current,"focus",()=>this.onFocus()),Mi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function j0(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),s=o[r];s&&Ke.postRender(()=>s(t,Ni(t)))}class YN extends io{mount(){const{current:t}=this.node;t&&(this.unmount=ZP(t,(n,o)=>(j0(this.node,o,"Start"),(r,{success:s})=>j0(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ju=new WeakMap,qu=new WeakMap,ZN=e=>{const t=Ju.get(e.target);t&&t(e)},JN=e=>{e.forEach(ZN)};function qN({root:e,...t}){const n=e||document;qu.has(n)||qu.set(n,{});const o=qu.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(JN,{root:e,...t})),o[r]}function KN(e,t,n){const o=qN(t);return Ju.set(e,n),o.observe(e),()=>{Ju.delete(e),o.unobserve(e)}}const QN={some:0,all:1};class ek extends io{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:QN[r]},c=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:p}=this.node.getProps(),f=u?d:p;f&&f(l)};return KN(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(tk(t,n))&&this.startObserver()}unmount(){}}function tk({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const nk={inView:{Feature:ek},tap:{Feature:YN},focus:{Feature:UN},hover:{Feature:XN}},ok={layout:{ProjectionNode:B0,MeasureLayout:i0}},Ku={current:null},F0={current:!1};function rk(){if(F0.current=!0,!!Xc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ku.current=e.matches;e.addListener(t),t()}else Ku.current=!1}const ik=[...cb,Ot,ro],sk=e=>ik.find(lb(e)),ak=new WeakMap;function lk(e,t,n){for(const o in t){const r=t[o],s=n[o];if(Rt(r))e.addValue(o,r),process.env.NODE_ENV==="development"&&da(r.version==="12.4.10",`Attempting to mix Motion versions ${r.version} with 12.4.10 may not work as expected.`);else if(Rt(s))e.addValue(o,Si(r,{owner:e}));else if(s!==r)if(e.hasValue(o)){const a=e.getValue(o);a.liveStyle===!0?a.jump(r):a.hasAnimated||a.set(r)}else{const a=e.getStaticValue(o);e.addValue(o,Si(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const V0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ck{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:r,blockInitialAnimation:s,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Nu,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.renderScheduledAt=0,this.scheduleRender=()=>{const g=kn.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Ke.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:d}=a;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=c,this.blockInitialAnimation=!!s,this.isControllingVariants=ha(n),this.isVariantNode=og(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in f){const m=f[g];l[g]!==void 0&&Rt(m)&&m.set(l[g],!1)}}mount(t){this.current=t,ak.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,o)=>this.bindToMotionValue(o,n)),F0.current||rk(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ku.current,process.env.NODE_ENV!=="production"&&da(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(){this.projection&&this.projection.unmount(),no(this.notifyUpdate),no(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),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){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=To.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ke.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),s(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in fr){const n=fr[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=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 o=0;o<V0.length;o++){const r=V0[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const s="on"+r,a=t[s];a&&(this.propEventSubscriptions[r]=this.on(r,a))}this.prevMotionValues=lk(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const o=this.values.get(t);n!==o&&(o&&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 o=this.values.get(t);return o===void 0&&n!==void 0&&(o=Si(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){var o;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(o=this.getBaseTargetFromProps(this.props,t))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(sb(r)||Ug(r))?r=parseFloat(r):!sk(r)&&ro.test(n)&&(r=eb(t,n)),this.setBaseTarget(t,Rt(r)?r.get():r)),Rt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:o}=this.props;let r;if(typeof o=="string"||typeof o=="object"){const a=lu(this.props,o,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(r=a[t])}if(o&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Rt(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new xu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class L0 extends ck{constructor(){super(...arguments),this.KeyframeResolver=db}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:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Rt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function uk(e){return window.getComputedStyle(e)}class dk extends L0{constructor(){super(...arguments),this.type="html",this.renderInstance=yg}readValueFromInstance(t,n){if(To.has(n)){const o=Au(n);return o&&o.default||0}else{const o=uk(t),r=(eu(n)?o.getPropertyValue(n):o[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ub(t,n)}build(t,n,o){ou(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return uu(t,n,o)}}class pk extends L0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&vg(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(To.has(n)){const o=Au(n);return o&&o.default||0}return n=xg.has(n)?n:Kc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return Eg(t,n,o)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ke.postRender(this.updateDimensions)}build(t,n,o){su(t,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,o,r){Cg(t,n,o,r)}mount(t){this.isSVGTag=au(t.tagName),super.mount(t)}}const fk=(e,t)=>iu(e)?new pk(t):new dk(t,{allowProjection:e!==P.Fragment}),hk=VP({...jM,...nk,...HN,...ok},fk),yn=tP(hk),_0=({styles:e,label:t,disabled:n,...o})=>{const r=nt(),s=(t==null?void 0:t.length)*((t==null?void 0:t.length)>=10?6.5:7.5)+38||0,[a,c]=P.useState(!1);return v.jsxs(yn.button,{onMouseEnter:()=>(e==null?void 0:e.isAnimate)&&c(!0),onMouseLeave:()=>(e==null?void 0:e.isAnimate)&&c(!1),initial:{width:e!=null&&e.isAnimate||!t?"3rem":`${s/10}rem`,borderRadius:"0.7rem"},animate:{width:e!=null&&e.isAnimate?`${a?s/10:3}rem`:`${t?s/10:3}rem`},transition:{duration:.2,ease:"easeInOut"},style:{height:"3rem",outline:"none",overflow:"hidden",backgroundColor:(e==null?void 0:e.variant)!=="outlined"?(e==null?void 0:e.color)==="secondary"?r.palette.brandColor.blue:r.palette.brandColor.orange:r.palette.primary.notifyBackground,border:(e==null?void 0:e.variant)==="outlined"?`0.1rem solid ${r.palette.primary.notifyBorderColor}`:"none",display:"flex",cursor:"pointer",alignItems:"center",gap:a||!(e!=null&&e.isAnimate)?"0.5rem":0,color:(e==null?void 0:e.variant)==="outlined"?r.palette.primary.notifyActiveText:"white",justifyContent:a?"flex-start":"center",padding:a||!(e!=null&&e.isAnimate)?"1.2rem":"0.8rem",whiteSpace:"nowrap",opacity:n?.6:1,cursor:n?"auto":"pointer"},layout:!0,...o,children:[(e==null?void 0:e.icon)&&(!(e!=null&&e.iconPosition)||(e==null?void 0:e.iconPosition)==="start")&&v.jsx(ue,{component:"img",src:e==null?void 0:e.icon}),t&&v.jsx(yn.div,{layout:!0,initial:{opacity:0,width:0},animate:{opacity:a||!(e!=null&&e.isAnimate)?1:0,width:a||!(e!=null&&e.isAnimate)?"auto":0},transition:{duration:.2,ease:"easeInOut",delay:a?.1:0},style:{overflow:"hidden",whiteSpace:"nowrap"},children:v.jsx(wt,{sx:{fontSize:"1.1rem"},children:t})}),(e==null?void 0:e.iconPosition)==="end"&&v.jsx(ue,{component:"img",src:e==null?void 0:e.icon})]})};_0.propTypes={styles:i.object.isRequired,label:i.string};function Ir({...e}){return v.jsx(eo,{children:v.jsx(_0,{...e})})}const mk=({...e})=>{const[t,n]=P.useState(!1),o=nt();return v.jsx(yn.input,{type:"text",onFocus:()=>n(!0),onBlur:()=>n(!1),initial:{width:"10rem",borderRadius:"0.7rem"},animate:{width:t?"13rem":"10rem"},transition:{duration:.3,ease:"easeInOut"},style:{height:"3rem",outline:"none",boxShadow:"none",fontSize:"1.1rem",border:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,backgroundColor:o.palette.primary.notifyBackground,padding:"0rem 1rem",color:o.palette.primary.notifyTextColor,transition:"height 0.1s ease"},...e})};function $0({...e}){return v.jsx(eo,{children:v.jsx(mk,{...e})})}const ke={LOADING:"LOADING",SUCCESS:"SUCCESS",ERROR:"ERROR",MARK_ALL_AS_READ:"MARK_ALL_AS_READ",SET_GRID_DATA:"SET_GRID_DATA",HAS_SETTING_CHANGE:"HAS_SETTING_CHANGE",TRIGGER_API:"TRIGGER_API"},fn={SWR:"Something went wrong!",UNHANDLED:"Unhandled action type: ",INVALID:"Invalid action type: ",INVALID_ACTION:"Invalid action type: ",NRF:"No Records found"},Sa=P.createContext(null),ji=P.createContext(null);function G0({children:e}){const[t,n]=P.useReducer(gk,bk);return v.jsx(Sa.Provider,{value:t,children:v.jsx(ji.Provider,{value:n,children:v.jsx(eo,{children:e})})})}function gk(e,t){switch(t.type){case ke.SET_GRID_DATA:return{...e,...t.payload};case ke.HAS_SETTING_CHANGE:return{...e,...t.payload};case ke.TRIGGER_API:return{...e,...t.payload};default:throw new Error(`${fn.UNHANDLED}: ${t}`)}}const bk={visibleGridColumns:[],hasChange:!1,triggerApi:!1};G0.propTypes={children:i.node.isRequired};const vk=({options:e})=>{const t=P.useRef(null),[n,o]=P.useState(!1),[r,s]=P.useState(null),[a,c]=P.useState(e),[l,u]=P.useState(!1),d=P.useContext(ji),{hasChange:p}=P.useContext(Sa);P.useEffect(()=>{c(e)},[e]);const f=b=>{s(b)},g=b=>{b.preventDefault()},m=b=>{if(r===null)return;const y=[...a],[T]=y.splice(r,1);y.splice(b,0,T),c(y),d({type:ke.SET_GRID_DATA,payload:{visibleGridColumns:y}}),d({type:ke.HAS_SETTING_CHANGE,payload:{hasChange:!0}}),s(null)},h=()=>{p&&d({type:ke.TRIGGER_API,payload:{triggerApi:!0}}),o(!1)};return P.useEffect(()=>{if(!n)return;const b=y=>{t.current&&!t.current.contains(y.target)&&h()};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[n,p,a]),P.useEffect(()=>{if(t.current){const b=t.current.getBoundingClientRect(),y=window.innerHeight-b.bottom;u(y<200)}},[n]),{dropdownRef:t,isOpen:n,items:a,expandUp:l,setIsOpen:o,handleDragStart:f,handleDragOver:g,handleDrop:m}},yk=({isOpen:e,setIsOpen:t,placeholder:n,theme:o,selectedValue:r,styles:s,children:a,dropdownRef:c,expandUp:l})=>v.jsxs(ue,{sx:{position:"relative",width:"100%",flexShrink:0},ref:c,children:[v.jsx(ue,{sx:{cursor:"pointer",height:"3rem",width:"100%",position:"relative",zIndex:1},onClick:()=>t(!e)}),v.jsxs(yn.div,{style:{position:"absolute",left:0,width:"100%",zIndex:1e3,border:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,borderRadius:"0.7rem",color:o.palette.primary.notifyTextColor,backgroundColor:o.palette.primary.notifyBackground,overflow:"hidden",...l?{bottom:0}:{top:0}},animate:{maxHeight:e?"15rem":"3rem"},transition:{duration:.2,ease:"easeInOut"},children:[l&&v.jsxs(v.Fragment,{children:[v.jsx(Uc,{children:e&&a}),e&&v.jsx("hr",{style:{width:"100%",height:"0.1rem",backgroundColor:o.palette.primary.notifyBorderColor,border:"none",margin:"0rem"}})]}),v.jsxs(ue,{sx:{padding:"0.65rem",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",gap:"0.5rem"},onClick:()=>t(!e),children:[v.jsx(ue,{component:"img",className:"select-icon",src:s==null?void 0:s.icon}),v.jsx(wt,{sx:{color:o.palette.primary.notifyTextColor,flex:1,fontSize:"1.1rem",whiteSpace:"nowrap"},children:n||r}),v.jsx(ue,{component:"img",className:"child",src:e?mt.ArrowSelectDown:mt.ArrowSelectUp})]}),!l&&v.jsxs(v.Fragment,{children:[e&&v.jsx("hr",{style:{width:"100%",height:"0.1rem",backgroundColor:o.palette.primary.notifyBorderColor,border:"none",margin:"0rem"}}),v.jsx(Uc,{children:e&&a})]})]})]}),xk=({options:e,onChange:t,showCheckBox:n,placeholder:o,isDraggable:r,value:s,isMulti:a,handleCheck:c})=>{const l=nt(),{dropdownRef:u,isOpen:d,items:p,expandUp:f,setIsOpen:g,handleDragStart:m,handleDragOver:h,handleDrop:b}=vk({options:e});return v.jsx(yk,{isOpen:d,setIsOpen:g,placeholder:o,selectedValue:s,theme:l,dropdownRef:u,expandUp:f,children:v.jsx(yn.ul,{style:{listStyle:"none",padding:"0rem 1rem 0.8rem 1rem",margin:0,maxHeight:"10rem",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:`${l.palette.primary.notifyIconColor} transparent`},initial:{opacity:0},animate:{opacity:1},transition:{duration:.3,ease:"easeInOut"},children:p==null?void 0:p.map((y,T)=>{const C=y==null?void 0:y.isMandatory;return v.jsxs("li",{draggable:r&&!C,onDragStart:C?void 0:()=>m(T),onDragOver:C?void 0:h,onDrop:C?void 0:()=>b(T),style:{padding:n?"0.4rem 0":"0.2rem 0.4rem",cursor:C?"not-allowed":"pointer",display:"flex",alignItems:"center",color:C?l.palette.grey[500]:l.palette.primary.notifyTextColor,backgroundColor:l.palette.primary.notifyBackground,opacity:C?.5:1,whiteSpace:"nowrap",pointerEvents:C?"none":"auto"},onClick:()=>{C||(g(!!a),t(y))},children:[n&&v.jsx(Js,{size:"medium",sx:{color:l.palette.primary.notifyIconColor,"&.Mui-checked":{color:l.palette.brandColor.orange},p:"0.2rem 0.5rem"},checked:c(y),disabled:C}),v.jsx(wt,{sx:{fontSize:"1.1rem"},children:y.label})]},T)})})})};function Qu({...e}){return v.jsx(eo,{children:v.jsx(xk,{...e})})}const Ck=Y(ue)(({theme:e})=>({borderRadius:"0.4rem",position:"relative",background:e.palette.primary.notifyButtonBackground,display:"flex",height:"2.5rem"})),Ek=Y(ue)(({theme:e})=>({borderRadius:"0.4rem",position:"absolute",background:e.palette.primary.notifyBackground,border:`0.1rem solid ${e.palette.primary.notifyBorderColor}`,transition:"all 0.5s ease"})),W0=Y(Zs)(({theme:e})=>({borderRadius:"0.4rem",fontWeight:"400",transition:"all 0.2s 0.1s ease",padding:"0.4rem 0.8rem",fontSize:"1rem",textTransform:"none",zIndex:1,"&:hover":{background:"transparent",boxShadow:"none"}})),Ik=({isChartType:e,setIsChartType:t,leftSwitchText:n,rigthSwitchText:o})=>{const[r,s]=P.useState(0),[a,c]=P.useState(0),l=P.useRef(null),u=P.useRef(null);return P.useEffect(()=>{if(l.current&&u.current){const d=e?u.current:l.current;s(d.offsetWidth),c(d.offsetLeft)}},[e]),v.jsx(ue,{sx:{display:"flex"},children:v.jsxs(Ck,{children:[v.jsx(Ek,{sx:{width:r,transform:`translateX(${a}px)`,height:"2.5rem"}}),v.jsx(W0,{ref:l,disableRipple:!0,sx:d=>({color:e?d.palette.brandColor.grey1:d.palette.primary.notifyActiveText}),onClick:()=>t(!1),children:n}),v.jsx(W0,{ref:u,disableRipple:!0,sx:d=>({color:e?d.palette.primary.notifyActiveText:d.palette.brandColor.grey1}),onClick:()=>t(!0),children:o})]})})};function z0({...e}){return v.jsx(eo,{children:v.jsx(Ik,{...e})})}function H0(e,t){return function(){return e.apply(t,arguments)}}const{toString:Tk}=Object.prototype,{getPrototypeOf:ed}=Object,wa=(e=>t=>{const n=Tk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xn=e=>(e=e.toLowerCase(),t=>wa(t)===e),Ra=e=>t=>typeof t===e,{isArray:Tr}=Array,Fi=Ra("undefined");function Sk(e){return e!==null&&!Fi(e)&&e.constructor!==null&&!Fi(e.constructor)&&Kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const X0=xn("ArrayBuffer");function wk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&X0(e.buffer),t}const Rk=Ra("string"),Kt=Ra("function"),U0=Ra("number"),Oa=e=>e!==null&&typeof e=="object",Ok=e=>e===!0||e===!1,Aa=e=>{if(wa(e)!=="object")return!1;const t=ed(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ak=xn("Date"),Pk=xn("File"),Mk=xn("Blob"),Nk=xn("FileList"),kk=e=>Oa(e)&&Kt(e.pipe),Bk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Kt(e.append)&&((t=wa(e))==="formdata"||t==="object"&&Kt(e.toString)&&e.toString()==="[object FormData]"))},Dk=xn("URLSearchParams"),[jk,Fk,Vk,Lk]=["ReadableStream","Request","Response","Headers"].map(xn),_k=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),Tr(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let c;for(o=0;o<a;o++)c=s[o],t.call(null,e[c],c,e)}}function Y0(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,r;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ao=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Z0=e=>!Fi(e)&&e!==Ao;function td(){const{caseless:e}=Z0(this)&&this||{},t={},n=(o,r)=>{const s=e&&Y0(t,r)||r;Aa(t[s])&&Aa(o)?t[s]=td(t[s],o):Aa(o)?t[s]=td({},o):Tr(o)?t[s]=o.slice():t[s]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Vi(arguments[o],n);return t}const $k=(e,t,n,{allOwnKeys:o}={})=>(Vi(t,(r,s)=>{n&&Kt(r)?e[s]=H0(r,n):e[s]=r},{allOwnKeys:o}),e),Gk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Wk=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},zk=(e,t,n,o)=>{let r,s,a;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)a=r[s],(!o||o(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&ed(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Hk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},Xk=e=>{if(!e)return null;if(Tr(e))return e;let t=e.length;if(!U0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Uk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ed(Uint8Array)),Yk=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},Zk=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Jk=xn("HTMLFormElement"),qk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),J0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kk=xn("RegExp"),q0=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Vi(n,(r,s)=>{let a;(a=t(r,s,e))!==!1&&(o[s]=a||r)}),Object.defineProperties(e,o)},Qk=e=>{q0(e,(t,n)=>{if(Kt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(Kt(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},e4=(e,t)=>{const n={},o=r=>{r.forEach(s=>{n[s]=!0})};return Tr(e)?o(e):o(String(e).split(t)),n},t4=()=>{},n4=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function o4(e){return!!(e&&Kt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const r4=e=>{const t=new Array(10),n=(o,r)=>{if(Oa(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const s=Tr(o)?[]:{};return Vi(o,(a,c)=>{const l=n(a,r+1);!Fi(l)&&(s[c]=l)}),t[r]=void 0,s}}return o};return n(e,0)},i4=xn("AsyncFunction"),s4=e=>e&&(Oa(e)||Kt(e))&&Kt(e.then)&&Kt(e.catch),K0=((e,t)=>e?setImmediate:t?((n,o)=>(Ao.addEventListener("message",({source:r,data:s})=>{r===Ao&&s===n&&o.length&&o.shift()()},!1),r=>{o.push(r),Ao.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Kt(Ao.postMessage)),a4=typeof queueMicrotask<"u"?queueMicrotask.bind(Ao):typeof process<"u"&&process.nextTick||K0,G={isArray:Tr,isArrayBuffer:X0,isBuffer:Sk,isFormData:Bk,isArrayBufferView:wk,isString:Rk,isNumber:U0,isBoolean:Ok,isObject:Oa,isPlainObject:Aa,isReadableStream:jk,isRequest:Fk,isResponse:Vk,isHeaders:Lk,isUndefined:Fi,isDate:Ak,isFile:Pk,isBlob:Mk,isRegExp:Kk,isFunction:Kt,isStream:kk,isURLSearchParams:Dk,isTypedArray:Uk,isFileList:Nk,forEach:Vi,merge:td,extend:$k,trim:_k,stripBOM:Gk,inherits:Wk,toFlatObject:zk,kindOf:wa,kindOfTest:xn,endsWith:Hk,toArray:Xk,forEachEntry:Yk,matchAll:Zk,isHTMLForm:Jk,hasOwnProperty:J0,hasOwnProp:J0,reduceDescriptors:q0,freezeMethods:Qk,toObjectSet:e4,toCamelCase:qk,noop:t4,toFiniteNumber:n4,findKey:Y0,global:Ao,isContextDefined:Z0,isSpecCompliantForm:o4,toJSONObject:r4,isAsyncFn:i4,isThenable:s4,setImmediate:K0,asap:a4};function we(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}G.inherits(we,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});const Q0=we.prototype,ev={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ev[e]={value:e}}),Object.defineProperties(we,ev),Object.defineProperty(Q0,"isAxiosError",{value:!0}),we.from=(e,t,n,o,r,s)=>{const a=Object.create(Q0);return G.toFlatObject(e,a,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),we.call(a,e.message,t,n,o,r),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};const l4=null;function nd(e){return G.isPlainObject(e)||G.isArray(e)}function tv(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function nv(e,t,n){return e?e.concat(t).map(function(r,s){return r=tv(r),!n&&s?"["+r+"]":r}).join(n?".":""):t}function c4(e){return G.isArray(e)&&!e.some(nd)}const u4=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)});function Pa(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,b){return!G.isUndefined(b[h])});const o=n.metaTokens,r=n.visitor||d,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(r))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(G.isDate(m))return m.toISOString();if(!l&&G.isBlob(m))throw new we("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(m)||G.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,h,b){let y=m;if(m&&!b&&typeof m=="object"){if(G.endsWith(h,"{}"))h=o?h:h.slice(0,-2),m=JSON.stringify(m);else if(G.isArray(m)&&c4(m)||(G.isFileList(m)||G.endsWith(h,"[]"))&&(y=G.toArray(m)))return h=tv(h),y.forEach(function(C,I){!(G.isUndefined(C)||C===null)&&t.append(a===!0?nv([h],I,s):a===null?h:h+"[]",u(C))}),!1}return nd(m)?!0:(t.append(nv(b,h,s),u(m)),!1)}const p=[],f=Object.assign(u4,{defaultVisitor:d,convertValue:u,isVisitable:nd});function g(m,h){if(!G.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(m),G.forEach(m,function(y,T){(!(G.isUndefined(y)||y===null)&&r.call(t,y,G.isString(T)?T.trim():T,h,f))===!0&&g(y,h?h.concat(T):[T])}),p.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return g(e),t}function ov(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function od(e,t){this._pairs=[],e&&Pa(e,this,t)}const rv=od.prototype;rv.append=function(t,n){this._pairs.push([t,n])},rv.toString=function(t){const n=t?function(o){return t.call(this,o,ov)}:ov;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function d4(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function iv(e,t,n){if(!t)return e;const o=n&&n.encode||d4;G.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let s;if(r?s=r(t,n):s=G.isURLSearchParams(t)?t.toString():new od(t,n).toString(o),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class sv{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){G.forEach(this.handlers,function(o){o!==null&&t(o)})}}const av={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},p4={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:od,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},rd=typeof window<"u"&&typeof document<"u",id=typeof navigator=="object"&&navigator||void 0,f4=rd&&(!id||["ReactNative","NativeScript","NS"].indexOf(id.product)<0),h4=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",m4=rd&&window.location.href||"http://localhost",At={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rd,hasStandardBrowserEnv:f4,hasStandardBrowserWebWorkerEnv:h4,navigator:id,origin:m4},Symbol.toStringTag,{value:"Module"})),...p4};function g4(e,t){return Pa(e,new At.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,s){return At.isNode&&G.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function b4(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function v4(e){const t={},n=Object.keys(e);let o;const r=n.length;let s;for(o=0;o<r;o++)s=n[o],t[s]=e[s];return t}function lv(e){function t(n,o,r,s){let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=s>=n.length;return a=!a&&G.isArray(r)?r.length:a,l?(G.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!c):((!r[a]||!G.isObject(r[a]))&&(r[a]=[]),t(n,o,r[a],s)&&G.isArray(r[a])&&(r[a]=v4(r[a])),!c)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(o,r)=>{t(b4(o),r,n,0)}),n}return null}function y4(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Li={transitional:av,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,s=G.isObject(t);if(s&&G.isHTMLForm(t)&&(t=new FormData(t)),G.isFormData(t))return r?JSON.stringify(lv(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t)||G.isReadableStream(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return g4(t,this.formSerializer).toString();if((c=G.isFileList(t))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Pa(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),y4(t)):t}],transformResponse:[function(t){const n=this.transitional||Li.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(G.isResponse(t)||G.isReadableStream(t))return t;if(t&&G.isString(t)&&(o&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?we.from(c,we.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:At.classes.FormData,Blob:At.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{Li.headers[e]={}});const x4=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),C4=e=>{const t={};let n,o,r;return e&&e.split(`
|
|
249
249
|
`).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),o=a.substring(r+1).trim(),!(!n||t[n]&&x4[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},cv=Symbol("internals");function _i(e){return e&&String(e).trim().toLowerCase()}function Ma(e){return e===!1||e==null?e:G.isArray(e)?e.map(Ma):String(e)}function E4(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const I4=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function sd(e,t,n,o,r){if(G.isFunction(o))return o.call(this,t,n);if(r&&(t=n),!!G.isString(t)){if(G.isString(o))return t.indexOf(o)!==-1;if(G.isRegExp(o))return o.test(t)}}function T4(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function S4(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(r,s,a){return this[o].call(this,t,r,s,a)},configurable:!0})})}let zt=class{constructor(t){t&&this.set(t)}set(t,n,o){const r=this;function s(c,l,u){const d=_i(l);if(!d)throw new Error("header name must be a non-empty string");const p=G.findKey(r,d);(!p||r[p]===void 0||u===!0||u===void 0&&r[p]!==!1)&&(r[p||l]=Ma(c))}const a=(c,l)=>G.forEach(c,(u,d)=>s(u,d,l));if(G.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(G.isString(t)&&(t=t.trim())&&!I4(t))a(C4(t),n);else if(G.isHeaders(t))for(const[c,l]of t.entries())s(l,c,o);else t!=null&&s(n,t,o);return this}get(t,n){if(t=_i(t),t){const o=G.findKey(this,t);if(o){const r=this[o];if(!n)return r;if(n===!0)return E4(r);if(G.isFunction(n))return n.call(this,r,o);if(G.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=_i(t),t){const o=G.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||sd(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let r=!1;function s(a){if(a=_i(a),a){const c=G.findKey(o,a);c&&(!n||sd(o,o[c],c,n))&&(delete o[c],r=!0)}}return G.isArray(t)?t.forEach(s):s(t),r}clear(t){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const s=n[o];(!t||sd(this,this[s],s,t,!0))&&(delete this[s],r=!0)}return r}normalize(t){const n=this,o={};return G.forEach(this,(r,s)=>{const a=G.findKey(o,s);if(a){n[a]=Ma(r),delete n[s];return}const c=t?T4(s):String(s).trim();c!==s&&delete n[s],n[c]=Ma(r),o[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return G.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=t&&G.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
250
250
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[cv]=this[cv]={accessors:{}}).accessors,r=this.prototype;function s(a){const c=_i(a);o[c]||(S4(r,a),o[c]=!0)}return G.isArray(t)?t.forEach(s):s(t),this}};zt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(zt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}}),G.freezeMethods(zt);function ad(e,t){const n=this||Li,o=t||n,r=zt.from(o.headers);let s=o.data;return G.forEach(e,function(c){s=c.call(n,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function uv(e){return!!(e&&e.__CANCEL__)}function Sr(e,t,n){we.call(this,e??"canceled",we.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(Sr,we,{__CANCEL__:!0});function dv(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new we("Request failed with status code "+n.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function w4(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function R4(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,s=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=o[s];a||(a=u),n[r]=l,o[r]=u;let p=s,f=0;for(;p!==r;)f+=n[p++],p=p%e;if(r=(r+1)%e,r===s&&(s=(s+1)%e),u-a<t)return;const g=d&&u-d;return g?Math.round(f*1e3/g):void 0}}function O4(e,t){let n=0,o=1e3/t,r,s;const a=(u,d=Date.now())=>{n=d,r=null,s&&(clearTimeout(s),s=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),p=d-n;p>=o?a(u,d):(r=u,s||(s=setTimeout(()=>{s=null,a(r)},o-p)))},()=>r&&a(r)]}const Na=(e,t,n=3)=>{let o=0;const r=R4(50,250);return O4(s=>{const a=s.loaded,c=s.lengthComputable?s.total:void 0,l=a-o,u=r(l),d=a<=c;o=a;const p={loaded:a,total:c,progress:c?a/c:void 0,bytes:l,rate:u||void 0,estimated:u&&c&&d?(c-a)/u:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},pv=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},fv=e=>(...t)=>G.asap(()=>e(...t)),A4=At.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,At.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(At.origin),At.navigator&&/(msie|trident)/i.test(At.navigator.userAgent)):()=>!0,P4=At.hasStandardBrowserEnv?{write(e,t,n,o,r,s){const a=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),G.isString(o)&&a.push("path="+o),G.isString(r)&&a.push("domain="+r),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function M4(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function N4(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function hv(e,t,n){let o=!M4(t);return e&&o||n==!1?N4(e,t):t}const mv=e=>e instanceof zt?{...e}:e;function Po(e,t){t=t||{};const n={};function o(u,d,p,f){return G.isPlainObject(u)&&G.isPlainObject(d)?G.merge.call({caseless:f},u,d):G.isPlainObject(d)?G.merge({},d):G.isArray(d)?d.slice():d}function r(u,d,p,f){if(G.isUndefined(d)){if(!G.isUndefined(u))return o(void 0,u,p,f)}else return o(u,d,p,f)}function s(u,d){if(!G.isUndefined(d))return o(void 0,d)}function a(u,d){if(G.isUndefined(d)){if(!G.isUndefined(u))return o(void 0,u)}else return o(void 0,d)}function c(u,d,p){if(p in t)return o(u,d);if(p in e)return o(void 0,u)}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(u,d,p)=>r(mv(u),mv(d),p,!0)};return G.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=l[d]||r,f=p(e[d],t[d],d);G.isUndefined(f)&&p!==c||(n[d]=f)}),n}const gv=e=>{const t=Po({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:c}=t;t.headers=a=zt.from(a),t.url=iv(hv(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(G.isFormData(n)){if(At.hasStandardBrowserEnv||At.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...d]=l?l.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(At.hasStandardBrowserEnv&&(o&&G.isFunction(o)&&(o=o(t)),o||o!==!1&&A4(t.url))){const u=r&&s&&P4.read(s);u&&a.set(r,u)}return t},k4=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){const r=gv(e);let s=r.data;const a=zt.from(r.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:u}=r,d,p,f,g,m;function h(){g&&g(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout;function y(){if(!b)return;const C=zt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),x={data:!c||c==="text"||c==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:C,config:e,request:b};dv(function(w){n(w),h()},function(w){o(w),h()},x),b=null}"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(y)},b.onabort=function(){b&&(o(new we("Request aborted",we.ECONNABORTED,e,b)),b=null)},b.onerror=function(){o(new we("Network Error",we.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let I=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const x=r.transitional||av;r.timeoutErrorMessage&&(I=r.timeoutErrorMessage),o(new we(I,x.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,b)),b=null},s===void 0&&a.setContentType(null),"setRequestHeader"in b&&G.forEach(a.toJSON(),function(I,x){b.setRequestHeader(x,I)}),G.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),c&&c!=="json"&&(b.responseType=r.responseType),u&&([f,m]=Na(u,!0),b.addEventListener("progress",f)),l&&b.upload&&([p,g]=Na(l),b.upload.addEventListener("progress",p),b.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(d=C=>{b&&(o(!C||C.type?new Sr(null,e,b):C),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const T=w4(r.url);if(T&&At.protocols.indexOf(T)===-1){o(new we("Unsupported protocol "+T+":",we.ERR_BAD_REQUEST,e));return}b.send(s||null)})},B4=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let o=new AbortController,r;const s=function(u){if(!r){r=!0,c();const d=u instanceof Error?u:this.reason;o.abort(d instanceof we?d:new Sr(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,s(new we(`timeout ${t} of ms exceeded`,we.ETIMEDOUT))},t);const c=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:l}=o;return l.unsubscribe=()=>G.asap(c),l}},D4=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0,r;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},j4=async function*(e,t){for await(const n of F4(e))yield*D4(n,t)},F4=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:o}=await t.read();if(n)break;yield o}}finally{await t.cancel()}},bv=(e,t,n,o)=>{const r=j4(e,t);let s=0,a,c=l=>{a||(a=!0,o&&o(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await r.next();if(u){c(),l.close();return}let p=d.byteLength;if(n){let f=s+=p;n(f)}l.enqueue(new Uint8Array(d))}catch(u){throw c(u),u}},cancel(l){return c(l),r.return()}},{highWaterMark:2})},ka=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vv=ka&&typeof ReadableStream=="function",V4=ka&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),yv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},L4=vv&&yv(()=>{let e=!1;const t=new Request(At.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),xv=64*1024,ld=vv&&yv(()=>G.isReadableStream(new Response("").body)),Ba={stream:ld&&(e=>e.body)};ka&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ba[t]&&(Ba[t]=G.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new we(`Response type '${t}' is not supported`,we.ERR_NOT_SUPPORT,o)})})})(new Response);const _4=async e=>{if(e==null)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e))return(await new Request(At.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(G.isArrayBufferView(e)||G.isArrayBuffer(e))return e.byteLength;if(G.isURLSearchParams(e)&&(e=e+""),G.isString(e))return(await V4(e)).byteLength},$4=async(e,t)=>{const n=G.toFiniteNumber(e.getContentLength());return n??_4(t)},cd={http:l4,xhr:k4,fetch:ka&&(async e=>{let{url:t,method:n,data:o,signal:r,cancelToken:s,timeout:a,onDownloadProgress:c,onUploadProgress:l,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:f}=gv(e);u=u?(u+"").toLowerCase():"text";let g=B4([r,s&&s.toAbortSignal()],a),m;const h=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let b;try{if(l&&L4&&n!=="get"&&n!=="head"&&(b=await $4(d,o))!==0){let x=new Request(t,{method:"POST",body:o,duplex:"half"}),R;if(G.isFormData(o)&&(R=x.headers.get("content-type"))&&d.setContentType(R),x.body){const[w,O]=pv(b,Na(fv(l)));o=bv(x.body,xv,w,O)}}G.isString(p)||(p=p?"include":"omit");const y="credentials"in Request.prototype;m=new Request(t,{...f,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:o,duplex:"half",credentials:y?p:void 0});let T=await fetch(m);const C=ld&&(u==="stream"||u==="response");if(ld&&(c||C&&h)){const x={};["status","statusText","headers"].forEach(M=>{x[M]=T[M]});const R=G.toFiniteNumber(T.headers.get("content-length")),[w,O]=c&&pv(R,Na(fv(c),!0))||[];T=new Response(bv(T.body,xv,w,()=>{O&&O(),h&&h()}),x)}u=u||"text";let I=await Ba[G.findKey(Ba,u)||"text"](T,e);return!C&&h&&h(),await new Promise((x,R)=>{dv(x,R,{data:I,headers:zt.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:m})})}catch(y){throw h&&h(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,e,m),{cause:y.cause||y}):we.from(y,y&&y.code,e,m)}})};G.forEach(cd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Cv=e=>`- ${e}`,G4=e=>G.isFunction(e)||e===null||e===!1,Ev={getAdapter:e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let n,o;const r={};for(let s=0;s<t;s++){n=e[s];let a;if(o=n,!G4(n)&&(o=cd[(a=String(n)).toLowerCase()],o===void 0))throw new we(`Unknown adapter '${a}'`);if(o)break;r[a||"#"+s]=o}if(!o){const s=Object.entries(r).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?s.length>1?`since :
|
|
251
251
|
`+s.map(Cv).join(`
|
|
@@ -255,5 +255,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
255
255
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nd(e){return U3(e)||Y3(e)||oy(e)||Z3()}function J3(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const q3=Math.min,K3=Math.max,za=Math.round,Ha=Math.floor,Xa=e=>({x:e,y:e});function Q3(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Ua(){return typeof window<"u"}function sy(e){return ly(e)?(e.nodeName||"").toLowerCase():"#document"}function zn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ay(e){var t;return(t=(ly(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ly(e){return Ua()?e instanceof Node||e instanceof zn(e).Node:!1}function eB(e){return Ua()?e instanceof Element||e instanceof zn(e).Element:!1}function kd(e){return Ua()?e instanceof HTMLElement||e instanceof zn(e).HTMLElement:!1}function cy(e){return!Ua()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zn(e).ShadowRoot}function uy(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Bd(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function tB(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function nB(e){return["html","body","#document"].includes(sy(e))}function Bd(e){return zn(e).getComputedStyle(e)}function oB(e){if(sy(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cy(e)&&e.host||ay(e);return cy(t)?t.host:t}function dy(e){const t=oB(e);return nB(t)?e.ownerDocument?e.ownerDocument.body:e.body:kd(t)&&uy(t)?t:dy(t)}function Ya(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=dy(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),a=zn(r);if(s){const c=Dd(a);return t.concat(a,a.visualViewport||[],uy(r)?r:[],c&&n?Ya(c):[])}return t.concat(r,Ya(r,[],n))}function Dd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rB(e){const t=Bd(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=kd(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:o,c=za(n)!==s||za(o)!==a;return c&&(n=s,o=a),{width:n,height:o,$:c}}function jd(e){return eB(e)?e:e.contextElement}function py(e){const t=jd(e);if(!kd(t))return Xa(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=rB(t);let a=(s?za(n.width):n.width)/o,c=(s?za(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const iB=Xa(0);function sB(e){const t=zn(e);return!tB()||!t.visualViewport?iB:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function aB(e,t,n){return!1}function fy(e,t,n,o){t===void 0&&(t=!1);const r=e.getBoundingClientRect(),s=jd(e);let a=Xa(1);t&&(a=py(e));const c=aB()?sB(s):Xa(0);let l=(r.left+c.x)/a.x,u=(r.top+c.y)/a.y,d=r.width/a.x,p=r.height/a.y;if(s){const f=zn(s),g=o;let m=f,h=Dd(m);for(;h&&o&&g!==m;){const b=py(h),y=h.getBoundingClientRect(),T=Bd(h),C=y.left+(h.clientLeft+parseFloat(T.paddingLeft))*b.x,I=y.top+(h.clientTop+parseFloat(T.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,p*=b.y,l+=C,u+=I,m=zn(h),h=Dd(m)}}return Q3({width:d,height:p,x:l,y:u})}function hy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lB(e,t){let n=null,o;const r=ay(e);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function a(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:d,top:p,width:f,height:g}=u;if(c||t(),!f||!g)return;const m=Ha(p),h=Ha(r.clientWidth-(d+f)),b=Ha(r.clientHeight-(p+g)),y=Ha(d),C={rootMargin:-m+"px "+-h+"px "+-b+"px "+-y+"px",threshold:K3(0,q3(1,l))||1};let I=!0;function x(R){const w=R[0].intersectionRatio;if(w!==l){if(!I)return a();w?a(!1,w):o=setTimeout(()=>{a(!1,1e-7)},1e3)}w===1&&!hy(u,e.getBoundingClientRect())&&a(),I=!1}try{n=new IntersectionObserver(x,{...C,root:r.ownerDocument})}catch{n=new IntersectionObserver(x,C)}n.observe(e)}return a(!0),s}function cB(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=jd(e),d=r||s?[...u?Ya(u):[],...Ya(t)]:[];d.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const p=u&&c?lB(u,n):null;let f=-1,g=null;a&&(g=new ResizeObserver(y=>{let[T]=y;T&&T.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let m,h=l?fy(e):null;l&&b();function b(){const y=fy(e);h&&!hy(h,y)&&n(),h=y,m=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(T=>{r&&T.removeEventListener("scroll",n),s&&T.removeEventListener("resize",n)}),p==null||p(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(m)}}var Fd=P.useLayoutEffect,uB=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Za=function(){};function dB(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function pB(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var s=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&s.push("".concat(dB(e,a)));return s.filter(function(c){return c}).map(function(c){return String(c).trim()}).join(" ")}var my=function(t){return CB(t)?t.filter(Boolean):mo(t)==="object"&&t!==null?[t]:[]},gy=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Wn(t,uB);return ve({},n)},pt=function(t,n,o){var r=t.cx,s=t.getStyles,a=t.getClassNames,c=t.className;return{css:s(n,t),className:r(o??{},a(n,t),c)}};function Ja(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function fB(e){return Ja(e)?window.innerHeight:e.clientHeight}function by(e){return Ja(e)?window.pageYOffset:e.scrollTop}function qa(e,t){if(Ja(e)){window.scrollTo(0,t);return}e.scrollTop=t}function hB(e){var t=getComputedStyle(e),n=t.position==="absolute",o=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),!(n&&t.position==="static")&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}function mB(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}function Ka(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Za,r=by(e),s=t-r,a=10,c=0;function l(){c+=a;var u=mB(c,r,s,n);qa(e,u),c<n?window.requestAnimationFrame(l):o(e)}l()}function vy(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?qa(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&qa(e,Math.max(t.offsetTop-r,0))}function gB(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function yy(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function bB(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var xy=!1,vB={get passive(){return xy=!0}},Qa=typeof window<"u"?window:{};Qa.addEventListener&&Qa.removeEventListener&&(Qa.addEventListener("p",Za,vB),Qa.removeEventListener("p",Za,!1));var yB=xy;function xB(e){return e!=null}function CB(e){return Array.isArray(e)}function el(e,t,n){return e?t:n}function k9(e){return e}function B9(e){return e}var EB=function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];var s=Object.entries(t).filter(function(a){var c=Gn(a,1),l=c[0];return!o.includes(l)});return s.reduce(function(a,c){var l=Gn(c,2),u=l[0],d=l[1];return a[u]=d,a},{})},IB=["children","innerProps"],TB=["children","innerProps"];function SB(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,s=e.shouldScroll,a=e.isFixedPosition,c=e.controlHeight,l=hB(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var d=l.getBoundingClientRect(),p=d.height,f=n.getBoundingClientRect(),g=f.bottom,m=f.height,h=f.top,b=n.offsetParent.getBoundingClientRect(),y=b.top,T=a?window.innerHeight:fB(l),C=by(l),I=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),R=y-x,w=T-h,O=R+C,M=p-C-h,N=g-T+C+I,j=C+h-x,W=160;switch(r){case"auto":case"bottom":if(w>=m)return{placement:"bottom",maxHeight:t};if(M>=m&&!a)return s&&Ka(l,N,W),{placement:"bottom",maxHeight:t};if(!a&&M>=o||a&&w>=o){s&&Ka(l,N,W);var D=a?w-I:M-I;return{placement:"bottom",maxHeight:D}}if(r==="auto"||a){var L=t,_=a?R:O;return _>=o&&(L=Math.min(_-I-c,t)),{placement:"top",maxHeight:L}}if(r==="bottom")return s&&qa(l,N),{placement:"bottom",maxHeight:t};break;case"top":if(R>=m)return{placement:"top",maxHeight:t};if(O>=m&&!a)return s&&Ka(l,j,W),{placement:"top",maxHeight:t};if(!a&&O>=o||a&&R>=o){var V=t;return(!a&&O>=o||a&&R>=o)&&(V=a?R-x:O-x),s&&Ka(l,j,W),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return u}function wB(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Cy=function(t){return t==="auto"?"bottom":t},RB=function(t,n){var o,r=t.placement,s=t.theme,a=s.borderRadius,c=s.spacing,l=s.colors;return ve((o={label:"menu"},zi(o,wB(r),"100%"),zi(o,"position","absolute"),zi(o,"width","100%"),zi(o,"zIndex",1),o),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:c.menuGutter,marginTop:c.menuGutter})},Ey=P.createContext(null),OB=function(t){var n=t.children,o=t.minMenuHeight,r=t.maxMenuHeight,s=t.menuPlacement,a=t.menuPosition,c=t.menuShouldScrollIntoView,l=t.theme,u=P.useContext(Ey)||{},d=u.setPortalPlacement,p=P.useRef(null),f=P.useState(r),g=Gn(f,2),m=g[0],h=g[1],b=P.useState(null),y=Gn(b,2),T=y[0],C=y[1],I=l.spacing.controlHeight;return Fd(function(){var x=p.current;if(x){var R=a==="fixed",w=c&&!R,O=SB({maxHeight:r,menuEl:x,minHeight:o,placement:s,shouldScroll:w,isFixedPosition:R,controlHeight:I});h(O.maxHeight),C(O.placement),d==null||d(O.placement)}},[r,s,a,c,o,d,I]),n({ref:p,placerProps:ve(ve({},t),{},{placement:T||Cy(s),maxHeight:m})})},AB=function(t){var n=t.children,o=t.innerRef,r=t.innerProps;return ge("div",E({},pt(t,"menu",{menu:!0}),{ref:o},r),n)},PB=AB,MB=function(t,n){var o=t.maxHeight,r=t.theme.spacing.baseUnit;return ve({maxHeight:o,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},NB=function(t){var n=t.children,o=t.innerProps,r=t.innerRef,s=t.isMulti;return ge("div",E({},pt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:r},o),n)},Iy=function(t,n){var o=t.theme,r=o.spacing.baseUnit,s=o.colors;return ve({textAlign:"center"},n?{}:{color:s.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},kB=Iy,BB=Iy,DB=function(t){var n=t.children,o=n===void 0?"No options":n,r=t.innerProps,s=Wn(t,IB);return ge("div",E({},pt(ve(ve({},s),{},{children:o,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),o)},jB=function(t){var n=t.children,o=n===void 0?"Loading...":n,r=t.innerProps,s=Wn(t,TB);return ge("div",E({},pt(ve(ve({},s),{},{children:o,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),o)},FB=function(t){var n=t.rect,o=t.offset,r=t.position;return{left:n.left,position:r,top:o,width:n.width,zIndex:1}},VB=function(t){var n=t.appendTo,o=t.children,r=t.controlElement,s=t.innerProps,a=t.menuPlacement,c=t.menuPosition,l=P.useRef(null),u=P.useRef(null),d=P.useState(Cy(a)),p=Gn(d,2),f=p[0],g=p[1],m=P.useMemo(function(){return{setPortalPlacement:g}},[]),h=P.useState(null),b=Gn(h,2),y=b[0],T=b[1],C=P.useCallback(function(){if(r){var w=gB(r),O=c==="fixed"?0:window.pageYOffset,M=w[f]+O;(M!==(y==null?void 0:y.offset)||w.left!==(y==null?void 0:y.rect.left)||w.width!==(y==null?void 0:y.rect.width))&&T({offset:M,rect:w})}},[r,c,f,y==null?void 0:y.offset,y==null?void 0:y.rect.left,y==null?void 0:y.rect.width]);Fd(function(){C()},[C]);var I=P.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),r&&l.current&&(u.current=cB(r,l.current,C,{elementResize:"ResizeObserver"in window}))},[r,C]);Fd(function(){I()},[I]);var x=P.useCallback(function(w){l.current=w,I()},[I]);if(!n&&c!=="fixed"||!y)return null;var R=ge("div",E({ref:x},pt(ve(ve({},t),{},{offset:y.offset,position:c,rect:y.rect}),"menuPortal",{"menu-portal":!0}),s),o);return ge(Ey.Provider,{value:m},n?jo.createPortal(R,n):R)},LB=function(t){var n=t.isDisabled,o=t.isRtl;return{label:"container",direction:o?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},_B=function(t){var n=t.children,o=t.innerProps,r=t.isDisabled,s=t.isRtl;return ge("div",E({},pt(t,"container",{"--is-disabled":r,"--is-rtl":s}),o),n)},$B=function(t,n){var o=t.theme.spacing,r=t.isMulti,s=t.hasValue,a=t.selectProps.controlShouldRenderValue;return ve({alignItems:"center",display:r&&s&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(o.baseUnit/2,"px ").concat(o.baseUnit*2,"px")})},GB=function(t){var n=t.children,o=t.innerProps,r=t.isMulti,s=t.hasValue;return ge("div",E({},pt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":s}),o),n)},WB=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},zB=function(t){var n=t.children,o=t.innerProps;return ge("div",E({},pt(t,"indicatorsContainer",{indicators:!0}),o),n)},Ty,HB=["size"],XB=["innerProps","isRtl","size"];function UB(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var YB=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY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xlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:UB},Sy=function(t){var n=t.size,o=Wn(t,HB);return ge("svg",E({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:YB},o))},Vd=function(t){return ge(Sy,E({size:20},t),ge("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},wy=function(t){return ge(Sy,E({size:20},t),ge("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ry=function(t,n){var o=t.isFocused,r=t.theme,s=r.spacing.baseUnit,a=r.colors;return ve({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:o?a.neutral60:a.neutral20,padding:s*2,":hover":{color:o?a.neutral80:a.neutral40}})},ZB=Ry,JB=function(t){var n=t.children,o=t.innerProps;return ge("div",E({},pt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),o),n||ge(wy,null))},qB=Ry,KB=function(t){var n=t.children,o=t.innerProps;return ge("div",E({},pt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),o),n||ge(Vd,null))},QB=function(t,n){var o=t.isDisabled,r=t.theme,s=r.spacing.baseUnit,a=r.colors;return ve({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:o?a.neutral10:a.neutral20,marginBottom:s*2,marginTop:s*2})},eD=function(t){var n=t.innerProps;return ge("span",E({},n,pt(t,"indicatorSeparator",{"indicator-separator":!0})))},tD=uo(Ty||(Ty=J3([`
|
|
256
256
|
0%, 80%, 100% { opacity: 0; }
|
|
257
257
|
40% { opacity: 1; }
|
|
258
|
-
`]))),nD=function(t,n){var o=t.isFocused,r=t.size,s=t.theme,a=s.colors,c=s.spacing.baseUnit;return ve({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:o?a.neutral60:a.neutral20,padding:c*2})},Ld=function(t){var n=t.delay,o=t.offset;return ge("span",{css:Uo({animation:"".concat(tD," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:o?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW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Y2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},oD=function(t){var n=t.innerProps,o=t.isRtl,r=t.size,s=r===void 0?4:r,a=Wn(t,XB);return ge("div",E({},pt(ve(ve({},a),{},{innerProps:n,isRtl:o,size:s}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),ge(Ld,{delay:0,offset:o}),ge(Ld,{delay:160,offset:!0}),ge(Ld,{delay:320,offset:!o}))},rD=function(t,n){var o=t.isDisabled,r=t.isFocused,s=t.theme,a=s.colors,c=s.borderRadius,l=s.spacing;return ve({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:o?a.neutral5:a.neutral0,borderColor:o?a.neutral10:r?a.primary:a.neutral20,borderRadius:c,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},iD=function(t){var n=t.children,o=t.isDisabled,r=t.isFocused,s=t.innerRef,a=t.innerProps,c=t.menuIsOpen;return ge("div",E({ref:s},pt(t,"control",{control:!0,"control--is-disabled":o,"control--is-focused":r,"control--menu-is-open":c}),a,{"aria-disabled":o||void 0}),n)},sD=iD,aD=["data"],lD=function(t,n){var o=t.theme.spacing;return n?{}:{paddingBottom:o.baseUnit*2,paddingTop:o.baseUnit*2}},cD=function(t){var n=t.children,o=t.cx,r=t.getStyles,s=t.getClassNames,a=t.Heading,c=t.headingProps,l=t.innerProps,u=t.label,d=t.theme,p=t.selectProps;return ge("div",E({},pt(t,"group",{group:!0}),l),ge(a,E({},c,{selectProps:p,theme:d,getStyles:r,getClassNames:s,cx:o}),u),ge("div",null,n))},uD=function(t,n){var o=t.theme,r=o.colors,s=o.spacing;return ve({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},dD=function(t){var n=gy(t);n.data;var o=Wn(n,aD);return ge("div",E({},pt(t,"groupHeading",{"group-heading":!0}),o))},pD=cD,fD=["innerRef","isDisabled","isHidden","inputClassName"],hD=function(t,n){var o=t.isDisabled,r=t.value,s=t.theme,a=s.spacing,c=s.colors;return ve(ve({visibility:o?"hidden":"visible",transform:r?"translateZ(0)":""},mD),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:c.neutral80})},Oy={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},mD={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ve({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Oy)},gD=function(t){return ve({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Oy)},bD=function(t){var n=t.cx,o=t.value,r=gy(t),s=r.innerRef,a=r.isDisabled,c=r.isHidden,l=r.inputClassName,u=Wn(r,fD);return ge("div",E({},pt(t,"input",{"input-container":!0}),{"data-value":o||""}),ge("input",E({className:n({input:!0},l),ref:s,style:gD(c),disabled:a},u)))},vD=bD,yD=function(t,n){var o=t.theme,r=o.spacing,s=o.borderRadius,a=o.colors;return ve({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:s/2,margin:r.baseUnit/2})},xD=function(t,n){var o=t.theme,r=o.borderRadius,s=o.colors,a=t.cropWithEllipsis;return ve({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},CD=function(t,n){var o=t.theme,r=o.spacing,s=o.borderRadius,a=o.colors,c=t.isFocused;return ve({alignItems:"center",display:"flex"},n?{}:{borderRadius:s/2,backgroundColor:c?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Ay=function(t){var n=t.children,o=t.innerProps;return ge("div",o,n)},ED=Ay,ID=Ay;function TD(e){var t=e.children,n=e.innerProps;return ge("div",E({role:"button"},n),t||ge(Vd,{size:14}))}var SD=function(t){var n=t.children,o=t.components,r=t.data,s=t.innerProps,a=t.isDisabled,c=t.removeProps,l=t.selectProps,u=o.Container,d=o.Label,p=o.Remove;return ge(u,{data:r,innerProps:ve(ve({},pt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),s),selectProps:l},ge(d,{data:r,innerProps:ve({},pt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),ge(p,{data:r,innerProps:ve(ve({},pt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},c),selectProps:l}))},wD=SD,RD=function(t,n){var o=t.isDisabled,r=t.isFocused,s=t.isSelected,a=t.theme,c=a.spacing,l=a.colors;return ve({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:s?l.primary:r?l.primary25:"transparent",color:o?l.neutral20:s?l.neutral0:"inherit",padding:"".concat(c.baseUnit*2,"px ").concat(c.baseUnit*3,"px"),":active":{backgroundColor:o?void 0:s?l.primary:l.primary50}})},OD=function(t){var n=t.children,o=t.isDisabled,r=t.isFocused,s=t.isSelected,a=t.innerRef,c=t.innerProps;return ge("div",E({},pt(t,"option",{option:!0,"option--is-disabled":o,"option--is-focused":r,"option--is-selected":s}),{ref:a,"aria-disabled":o},c),n)},AD=OD,PD=function(t,n){var o=t.theme,r=o.spacing,s=o.colors;return ve({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:s.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},MD=function(t){var n=t.children,o=t.innerProps;return ge("div",E({},pt(t,"placeholder",{placeholder:!0}),o),n)},ND=MD,kD=function(t,n){var o=t.isDisabled,r=t.theme,s=r.spacing,a=r.colors;return ve({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:o?a.neutral40:a.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},BD=function(t){var n=t.children,o=t.isDisabled,r=t.innerProps;return ge("div",E({},pt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":o}),r),n)},DD=BD,jD={ClearIndicator:KB,Control:sD,DropdownIndicator:JB,DownChevron:wy,CrossIcon:Vd,Group:pD,GroupHeading:dD,IndicatorsContainer:zB,IndicatorSeparator:eD,Input:vD,LoadingIndicator:oD,Menu:PB,MenuList:NB,MenuPortal:VB,LoadingMessage:jB,NoOptionsMessage:DB,MultiValue:wD,MultiValueContainer:ED,MultiValueLabel:ID,MultiValueRemove:TD,Option:AD,Placeholder:ND,SelectContainer:_B,SingleValue:DD,ValueContainer:GB},FD=function(t){return ve(ve({},jD),t.components)},Py=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function VD(e,t){return!!(e===t||Py(e)&&Py(t))}function LD(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!VD(e[n],t[n]))return!1;return!0}function _D(e,t){t===void 0&&(t=LD);var n=null;function o(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return o.clear=function(){n=null},o}function $D(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var GD=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:$D},WD=function(t){return ge("span",E({css:GD},t))},My=WD,zD={guidance:function(t){var n=t.isSearchable,o=t.isMulti,r=t.tabSelectsValue,s=t.context,a=t.isInitialFocus;switch(s){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(o?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,o=t.label,r=o===void 0?"":o,s=t.labels,a=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return a?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(t){var n=t.context,o=t.focused,r=t.options,s=t.label,a=s===void 0?"":s,c=t.selectValue,l=t.isDisabled,u=t.isSelected,d=t.isAppleDevice,p=function(h,b){return h&&h.length?"".concat(h.indexOf(b)+1," of ").concat(h.length):""};if(n==="value"&&c)return"value ".concat(a," focused, ").concat(p(c,o),".");if(n==="menu"&&d){var f=l?" disabled":"",g="".concat(u?" selected":"").concat(f);return"".concat(a).concat(g,", ").concat(p(r,o),".")}return""},onFilter:function(t){var n=t.inputValue,o=t.resultsMessage;return"".concat(o).concat(n?" for search term "+n:"",".")}},HD=function(t){var n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,s=t.focusableOptions,a=t.isFocused,c=t.selectValue,l=t.selectProps,u=t.id,d=t.isAppleDevice,p=l.ariaLiveMessages,f=l.getOptionLabel,g=l.inputValue,m=l.isMulti,h=l.isOptionDisabled,b=l.isSearchable,y=l.menuIsOpen,T=l.options,C=l.screenReaderStatus,I=l.tabSelectsValue,x=l.isLoading,R=l["aria-label"],w=l["aria-live"],O=P.useMemo(function(){return ve(ve({},zD),p||{})},[p]),M=P.useMemo(function(){var _="";if(n&&O.onChange){var V=n.option,$=n.options,k=n.removedValue,H=n.removedValues,B=n.value,z=function(te){return Array.isArray(te)?null:te},Z=k||V||z(B),Q=Z?f(Z):"",U=$||H||void 0,ee=U?U.map(f):[],J=ve({isDisabled:Z&&h(Z,c),label:Q,labels:ee},n);_=O.onChange(J)}return _},[n,O,h,c,f]),N=P.useMemo(function(){var _="",V=o||r,$=!!(o&&c&&c.includes(o));if(V&&O.onFocus){var k={focused:V,label:f(V),isDisabled:h(V,c),isSelected:$,options:s,context:V===o?"menu":"value",selectValue:c,isAppleDevice:d};_=O.onFocus(k)}return _},[o,r,f,h,O,s,c,d]),j=P.useMemo(function(){var _="";if(y&&T.length&&!x&&O.onFilter){var V=C({count:s.length});_=O.onFilter({inputValue:g,resultsMessage:V})}return _},[s,g,y,O,T,C,x]),W=(n==null?void 0:n.action)==="initial-input-focus",D=P.useMemo(function(){var _="";if(O.guidance){var V=r?"value":y?"menu":"input";_=O.guidance({"aria-label":R,context:V,isDisabled:o&&h(o,c),isMulti:m,isSearchable:b,tabSelectsValue:I,isInitialFocus:W})}return _},[R,o,r,m,h,b,y,O,c,I,W]),L=ge(P.Fragment,null,ge("span",{id:"aria-selection"},M),ge("span",{id:"aria-focused"},N),ge("span",{id:"aria-results"},j),ge("span",{id:"aria-guidance"},D));return ge(P.Fragment,null,ge(My,{id:u},W&&L),ge(My,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!W&&L))},XD=HD,_d=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],UD=new RegExp("["+_d.map(function(e){return e.letters}).join("")+"]","g"),Ny={},$d=0;$d<_d.length;$d++)for(var Gd=_d[$d],Wd=0;Wd<Gd.letters.length;Wd++)Ny[Gd.letters[Wd]]=Gd.base;var ky=function(t){return t.replace(UD,function(n){return Ny[n]})},YD=_D(ky),By=function(t){return t.replace(/^\s+|\s+$/g,"")},ZD=function(t){return"".concat(t.label," ").concat(t.value)},JD=function(t){return function(n,o){if(n.data.__isNew__)return!0;var r=ve({ignoreCase:!0,ignoreAccents:!0,stringify:ZD,trim:!0,matchFrom:"any"},t),s=r.ignoreCase,a=r.ignoreAccents,c=r.stringify,l=r.trim,u=r.matchFrom,d=l?By(o):o,p=l?By(c(n)):c(n);return s&&(d=d.toLowerCase(),p=p.toLowerCase()),a&&(d=YD(d),p=ky(p)),u==="start"?p.substr(0,d.length)===d:p.indexOf(d)>-1}},qD=["innerRef"];function KD(e){var t=e.innerRef,n=Wn(e,qD),o=EB(n,"onExited","in","enter","exit","appear");return ge("input",E({ref:t},o,{css:Uo({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O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pb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var QD=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function ej(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,r=e.onTopArrive,s=e.onTopLeave,a=P.useRef(!1),c=P.useRef(!1),l=P.useRef(0),u=P.useRef(null),d=P.useCallback(function(b,y){if(u.current!==null){var T=u.current,C=T.scrollTop,I=T.scrollHeight,x=T.clientHeight,R=u.current,w=y>0,O=I-x-C,M=!1;O>y&&a.current&&(o&&o(b),a.current=!1),w&&c.current&&(s&&s(b),c.current=!1),w&&y>O?(n&&!a.current&&n(b),R.scrollTop=I,M=!0,a.current=!0):!w&&-y>C&&(r&&!c.current&&r(b),R.scrollTop=0,M=!0,c.current=!0),M&&QD(b)}},[n,o,r,s]),p=P.useCallback(function(b){d(b,b.deltaY)},[d]),f=P.useCallback(function(b){l.current=b.changedTouches[0].clientY},[]),g=P.useCallback(function(b){var y=l.current-b.changedTouches[0].clientY;d(b,y)},[d]),m=P.useCallback(function(b){if(b){var y=yB?{passive:!1}:!1;b.addEventListener("wheel",p,y),b.addEventListener("touchstart",f,y),b.addEventListener("touchmove",g,y)}},[g,f,p]),h=P.useCallback(function(b){b&&(b.removeEventListener("wheel",p,!1),b.removeEventListener("touchstart",f,!1),b.removeEventListener("touchmove",g,!1))},[g,f,p]);return P.useEffect(function(){if(t){var b=u.current;return m(b),function(){h(b)}}},[t,m,h]),function(b){u.current=b}}var Dy=["boxSizing","height","overflow","paddingRight","position"],jy={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Fy(e){e.cancelable&&e.preventDefault()}function Vy(e){e.stopPropagation()}function Ly(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function _y(){return"ontouchstart"in window||navigator.maxTouchPoints}var $y=!!(typeof window<"u"&&window.document&&window.document.createElement),Hi=0,wr={capture:!1,passive:!1};function tj(e){var t=e.isEnabled,n=e.accountForScrollbars,o=n===void 0?!0:n,r=P.useRef({}),s=P.useRef(null),a=P.useCallback(function(l){if($y){var u=document.body,d=u&&u.style;if(o&&Dy.forEach(function(m){var h=d&&d[m];r.current[m]=h}),o&&Hi<1){var p=parseInt(r.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,g=window.innerWidth-f+p||0;Object.keys(jy).forEach(function(m){var h=jy[m];d&&(d[m]=h)}),d&&(d.paddingRight="".concat(g,"px"))}u&&_y()&&(u.addEventListener("touchmove",Fy,wr),l&&(l.addEventListener("touchstart",Ly,wr),l.addEventListener("touchmove",Vy,wr))),Hi+=1}},[o]),c=P.useCallback(function(l){if($y){var u=document.body,d=u&&u.style;Hi=Math.max(Hi-1,0),o&&Hi<1&&Dy.forEach(function(p){var f=r.current[p];d&&(d[p]=f)}),u&&_y()&&(u.removeEventListener("touchmove",Fy,wr),l&&(l.removeEventListener("touchstart",Ly,wr),l.removeEventListener("touchmove",Vy,wr)))}},[o]);return P.useEffect(function(){if(t){var l=s.current;return a(l),function(){c(l)}}},[t,a,c]),function(l){s.current=l}}function nj(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var oj=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},rj=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb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ZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:nj};function ij(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,r=o===void 0?!0:o,s=e.onBottomArrive,a=e.onBottomLeave,c=e.onTopArrive,l=e.onTopLeave,u=ej({isEnabled:r,onBottomArrive:s,onBottomLeave:a,onTopArrive:c,onTopLeave:l}),d=tj({isEnabled:n}),p=function(g){u(g),d(g)};return ge(P.Fragment,null,n&&ge("div",{onClick:oj,css:rj}),t(p))}function sj(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var aj=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:sj},lj=function(t){var n=t.name,o=t.onFocus;return ge("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:o,css:aj,value:"",onChange:function(){}})},cj=lj;function zd(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function uj(){return zd(/^iPhone/i)}function Gy(){return zd(/^Mac/i)}function dj(){return zd(/^iPad/i)||Gy()&&navigator.maxTouchPoints>1}function pj(){return uj()||dj()}function fj(){return Gy()||pj()}var hj=function(t){return t.label},mj=function(t){return t.label},gj=function(t){return t.value},bj=function(t){return!!t.isDisabled},vj={clearIndicator:qB,container:LB,control:rD,dropdownIndicator:ZB,group:lD,groupHeading:uD,indicatorsContainer:WB,indicatorSeparator:QB,input:hD,loadingIndicator:nD,loadingMessage:BB,menu:RB,menuList:MB,menuPortal:FB,multiValue:yD,multiValueLabel:xD,multiValueRemove:CD,noOptionsMessage:kB,option:RD,placeholder:PD,singleValue:kD,valueContainer:$B},yj={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},xj=4,Wy=4,Cj=38,Ej=Wy*2,Ij={baseUnit:Wy,controlHeight:Cj,menuGutter:Ej},Hd={borderRadius:xj,colors:yj,spacing:Ij},Tj={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:yy(),captureMenuScroll:!yy(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:JD(),formatGroupLabel:hj,getOptionLabel:mj,getOptionValue:gj,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:bj,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!bB(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function zy(e,t,n,o){var r=Zy(e,t,n),s=Jy(e,t,n),a=Yy(e,t),c=nl(e,t);return{type:"option",data:t,isDisabled:r,isSelected:s,label:a,value:c,index:o}}function tl(e,t){return e.options.map(function(n,o){if("options"in n){var r=n.options.map(function(a,c){return zy(e,a,t,c)}).filter(function(a){return Uy(e,a)});return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var s=zy(e,n,t,o);return Uy(e,s)?s:void 0}).filter(xB)}function Hy(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Nd(n.options.map(function(o){return o.data}))):t.push(n.data),t},[])}function Xy(e,t){return e.reduce(function(n,o){return o.type==="group"?n.push.apply(n,Nd(o.options.map(function(r){return{data:r.data,id:"".concat(t,"-").concat(o.index,"-").concat(r.index)}}))):n.push({data:o.data,id:"".concat(t,"-").concat(o.index)}),n},[])}function Sj(e,t){return Hy(tl(e,t))}function Uy(e,t){var n=e.inputValue,o=n===void 0?"":n,r=t.data,s=t.isSelected,a=t.label,c=t.value;return(!Ky(e)||!s)&&qy(e,{label:a,value:c,data:r},o)}function wj(e,t){var n=e.focusedValue,o=e.selectValue,r=o.indexOf(n);if(r>-1){var s=t.indexOf(n);if(s>-1)return n;if(r<t.length)return t[r]}return null}function Rj(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Xd=function(t,n){var o,r=(o=t.find(function(s){return s.data===n}))===null||o===void 0?void 0:o.id;return r||null},Yy=function(t,n){return t.getOptionLabel(n)},nl=function(t,n){return t.getOptionValue(n)};function Zy(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Jy(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var o=nl(e,t);return n.some(function(r){return nl(e,r)===o})}function qy(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Ky=function(t){var n=t.hideSelectedOptions,o=t.isMulti;return n===void 0?o:n},Oj=1,Qy=function(e){z3(n,e);var t=X3(n);function n(o){var r;if(G3(this,n),r=t.call(this,o),r.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=fj(),r.controlRef=null,r.getControlRef=function(l){r.controlRef=l},r.focusedOptionRef=null,r.getFocusedOptionRef=function(l){r.focusedOptionRef=l},r.menuListRef=null,r.getMenuListRef=function(l){r.menuListRef=l},r.inputRef=null,r.getInputRef=function(l){r.inputRef=l},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(l,u){var d=r.props,p=d.onChange,f=d.name;u.name=f,r.ariaOnChange(l,u),p(l,u)},r.setValue=function(l,u,d){var p=r.props,f=p.closeMenuOnSelect,g=p.isMulti,m=p.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:m}),f&&(r.setState({inputIsHiddenAfterUpdate:!g}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(l,{action:u,option:d})},r.selectOption=function(l){var u=r.props,d=u.blurInputOnSelect,p=u.isMulti,f=u.name,g=r.state.selectValue,m=p&&r.isOptionSelected(l,g),h=r.isOptionDisabled(l,g);if(m){var b=r.getOptionValue(l);r.setValue(g.filter(function(y){return r.getOptionValue(y)!==b}),"deselect-option",l)}else if(!h)p?r.setValue([].concat(Nd(g),[l]),"select-option",l):r.setValue(l,"select-option");else{r.ariaOnChange(l,{action:"select-option",option:l,name:f});return}d&&r.blurInput()},r.removeValue=function(l){var u=r.props.isMulti,d=r.state.selectValue,p=r.getOptionValue(l),f=d.filter(function(m){return r.getOptionValue(m)!==p}),g=el(u,f,f[0]||null);r.onChange(g,{action:"remove-value",removedValue:l}),r.focusInput()},r.clearValue=function(){var l=r.state.selectValue;r.onChange(el(r.props.isMulti,[],null),{action:"clear",removedValues:l})},r.popValue=function(){var l=r.props.isMulti,u=r.state.selectValue,d=u[u.length-1],p=u.slice(0,u.length-1),f=el(l,p,p[0]||null);d&&r.onChange(f,{action:"pop-value",removedValue:d})},r.getFocusedOptionId=function(l){return Xd(r.state.focusableOptionsWithIds,l)},r.getFocusableOptionsWithIds=function(){return Xy(tl(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return pB.apply(void 0,[r.props.classNamePrefix].concat(u))},r.getOptionLabel=function(l){return Yy(r.props,l)},r.getOptionValue=function(l){return nl(r.props,l)},r.getStyles=function(l,u){var d=r.props.unstyled,p=vj[l](u,d);p.boxSizing="border-box";var f=r.props.styles[l];return f?f(p,u):p},r.getClassNames=function(l,u){var d,p;return(d=(p=r.props.classNames)[l])===null||d===void 0?void 0:d.call(p,u)},r.getElementId=function(l){return"".concat(r.state.instancePrefix,"-").concat(l)},r.getComponents=function(){return FD(r.props)},r.buildCategorizedOptions=function(){return tl(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Hy(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(l,u){r.setState({ariaSelection:ve({value:l},u)})},r.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(l){r.blockOptionHover=!1},r.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&r.onMenuClose():u&&r.openMenu("first"):(u&&(r.openAfterFocus=!0),r.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},r.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!r.props.isDisabled){var u=r.props,d=u.isMulti,p=u.menuIsOpen;r.focusInput(),p?(r.setState({inputIsHiddenAfterUpdate:!d}),r.onMenuClose()):r.openMenu("first"),l.preventDefault()}},r.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(r.clearValue(),l.preventDefault(),r.openAfterFocus=!1,l.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(l){typeof r.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Ja(l.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(l)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(l){var u=l.touches,d=u&&u.item(0);d&&(r.initialTouchX=d.clientX,r.initialTouchY=d.clientY,r.userIsDragging=!1)},r.onTouchMove=function(l){var u=l.touches,d=u&&u.item(0);if(d){var p=Math.abs(d.clientX-r.initialTouchX),f=Math.abs(d.clientY-r.initialTouchY),g=5;r.userIsDragging=p>g||f>g}},r.onTouchEnd=function(l){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(l.target)&&r.menuListRef&&!r.menuListRef.contains(l.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(l){r.userIsDragging||r.onControlMouseDown(l)},r.onClearIndicatorTouchEnd=function(l){r.userIsDragging||r.onClearIndicatorMouseDown(l)},r.onDropdownIndicatorTouchEnd=function(l){r.userIsDragging||r.onDropdownIndicatorMouseDown(l)},r.handleInputChange=function(l){var u=r.props.inputValue,d=l.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(d,{action:"input-change",prevInputValue:u}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(l){r.props.onFocus&&r.props.onFocus(l),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(l){var u=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(l),r.onInputChange("",{action:"input-blur",prevInputValue:u}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(l){if(!(r.blockOptionHover||r.state.focusedOption===l)){var u=r.getFocusableOptions(),d=u.indexOf(l);r.setState({focusedOption:l,focusedOptionId:d>-1?r.getFocusedOptionId(l):null})}},r.shouldHideSelectedOptions=function(){return Ky(r.props)},r.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),r.focus()},r.onKeyDown=function(l){var u=r.props,d=u.isMulti,p=u.backspaceRemovesValue,f=u.escapeClearsValue,g=u.inputValue,m=u.isClearable,h=u.isDisabled,b=u.menuIsOpen,y=u.onKeyDown,T=u.tabSelectsValue,C=u.openMenuOnFocus,I=r.state,x=I.focusedOption,R=I.focusedValue,w=I.selectValue;if(!h&&!(typeof y=="function"&&(y(l),l.defaultPrevented))){switch(r.blockOptionHover=!0,l.key){case"ArrowLeft":if(!d||g)return;r.focusValue("previous");break;case"ArrowRight":if(!d||g)return;r.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(R)r.removeValue(R);else{if(!p)return;d?r.popValue():m&&r.clearValue()}break;case"Tab":if(r.isComposing||l.shiftKey||!b||!T||!x||C&&r.isOptionSelected(x,w))return;r.selectOption(x);break;case"Enter":if(l.keyCode===229)break;if(b){if(!x||r.isComposing)return;r.selectOption(x);break}return;case"Escape":b?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:g}),r.onMenuClose()):m&&f&&r.clearValue();break;case" ":if(g)return;if(!b){r.openMenu("first");break}if(!x)return;r.selectOption(x);break;case"ArrowUp":b?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":b?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!b)return;r.focusOption("pageup");break;case"PageDown":if(!b)return;r.focusOption("pagedown");break;case"Home":if(!b)return;r.focusOption("first");break;case"End":if(!b)return;r.focusOption("last");break;default:return}l.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Oj),r.state.selectValue=my(o.value),o.menuIsOpen&&r.state.selectValue.length){var s=r.getFocusableOptionsWithIds(),a=r.buildFocusableOptions(),c=a.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=s,r.state.focusedOption=a[c],r.state.focusedOptionId=Xd(s,a[c])}return r}return W3(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&vy(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var s=this.props,a=s.isDisabled,c=s.menuIsOpen,l=this.state.isFocused;(l&&!a&&r.isDisabled||l&&c&&!r.menuIsOpen)&&this.focusInput(),l&&a&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(vy(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,s){this.props.onInputChange(r,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var s=this,a=this.state,c=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),d=r==="first"?0:u.length-1;if(!this.props.isMulti){var p=u.indexOf(c[0]);p>-1&&(d=p)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[d],focusedOptionId:this.getFocusedOptionId(u[d])},function(){return s.onMenuOpen()})}},{key:"focusValue",value:function(r){var s=this.state,a=s.selectValue,c=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(c);c||(l=-1);var u=a.length-1,d=-1;if(a.length){switch(r){case"previous":l===0?d=0:l===-1?d=u:d=l-1;break;case"next":l>-1&&l<u&&(d=l+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:a[d]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,a=this.state.focusedOption,c=this.getFocusableOptions();if(c.length){var l=0,u=c.indexOf(a);a||(u=-1),r==="up"?l=u>0?u-1:c.length-1:r==="down"?l=(u+1)%c.length:r==="pageup"?(l=u-s,l<0&&(l=0)):r==="pagedown"?(l=u+s,l>c.length-1&&(l=c.length-1)):r==="last"&&(l=c.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:c[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(c[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Hd):ve(ve({},Hd),this.props.theme):Hd}},{key:"getCommonProps",value:function(){var r=this.clearValue,s=this.cx,a=this.getStyles,c=this.getClassNames,l=this.getValue,u=this.selectOption,d=this.setValue,p=this.props,f=p.isMulti,g=p.isRtl,m=p.options,h=this.hasValue();return{clearValue:r,cx:s,getStyles:a,getClassNames:c,getValue:l,hasValue:h,isMulti:f,isRtl:g,options:m,selectOption:u,selectProps:p,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,s=r.isClearable,a=r.isMulti;return s===void 0?a:s}},{key:"isOptionDisabled",value:function(r,s){return Zy(this.props,r,s)}},{key:"isOptionSelected",value:function(r,s){return Jy(this.props,r,s)}},{key:"filterOption",value:function(r,s){return qy(this.props,r,s)}},{key:"formatOptionLabel",value:function(r,s){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,c=this.state.selectValue;return this.props.formatOptionLabel(r,{context:s,inputValue:a,selectValue:c})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var r=this.props,s=r.isDisabled,a=r.isSearchable,c=r.inputId,l=r.inputValue,u=r.tabIndex,d=r.form,p=r.menuIsOpen,f=r.required,g=this.getComponents(),m=g.Input,h=this.state,b=h.inputIsHidden,y=h.ariaSelection,T=this.commonProps,C=c||this.getElementId("input"),I=ve(ve(ve({"aria-autocomplete":"list","aria-expanded":p,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},p&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(y==null?void 0:y.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?S.createElement(m,E({},T,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:s,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:d,type:"text",value:l},I)):S.createElement(KD,E({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Za,onFocus:this.onInputFocus,disabled:s,tabIndex:u,inputMode:"none",form:d,value:""},I))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,s=this.getComponents(),a=s.MultiValue,c=s.MultiValueContainer,l=s.MultiValueLabel,u=s.MultiValueRemove,d=s.SingleValue,p=s.Placeholder,f=this.commonProps,g=this.props,m=g.controlShouldRenderValue,h=g.isDisabled,b=g.isMulti,y=g.inputValue,T=g.placeholder,C=this.state,I=C.selectValue,x=C.focusedValue,R=C.isFocused;if(!this.hasValue()||!m)return y?null:S.createElement(p,E({},f,{key:"placeholder",isDisabled:h,isFocused:R,innerProps:{id:this.getElementId("placeholder")}}),T);if(b)return I.map(function(O,M){var N=O===x,j="".concat(r.getOptionLabel(O),"-").concat(r.getOptionValue(O));return S.createElement(a,E({},f,{components:{Container:c,Label:l,Remove:u},isFocused:N,isDisabled:h,key:j,index:M,removeProps:{onClick:function(){return r.removeValue(O)},onTouchEnd:function(){return r.removeValue(O)},onMouseDown:function(D){D.preventDefault()}},data:O}),r.formatOptionLabel(O,"value"))});if(y)return null;var w=I[0];return S.createElement(d,E({},f,{data:w,isDisabled:h}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),s=r.ClearIndicator,a=this.commonProps,c=this.props,l=c.isDisabled,u=c.isLoading,d=this.state.isFocused;if(!this.isClearable()||!s||l||!this.hasValue()||u)return null;var p={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return S.createElement(s,E({},a,{innerProps:p,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),s=r.LoadingIndicator,a=this.commonProps,c=this.props,l=c.isDisabled,u=c.isLoading,d=this.state.isFocused;if(!s||!u)return null;var p={"aria-hidden":"true"};return S.createElement(s,E({},a,{innerProps:p,isDisabled:l,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),s=r.DropdownIndicator,a=r.IndicatorSeparator;if(!s||!a)return null;var c=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return S.createElement(a,E({},c,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),s=r.DropdownIndicator;if(!s)return null;var a=this.commonProps,c=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return S.createElement(s,E({},a,{innerProps:u,isDisabled:c,isFocused:l}))}},{key:"renderMenu",value:function(){var r=this,s=this.getComponents(),a=s.Group,c=s.GroupHeading,l=s.Menu,u=s.MenuList,d=s.MenuPortal,p=s.LoadingMessage,f=s.NoOptionsMessage,g=s.Option,m=this.commonProps,h=this.state.focusedOption,b=this.props,y=b.captureMenuScroll,T=b.inputValue,C=b.isLoading,I=b.loadingMessage,x=b.minMenuHeight,R=b.maxMenuHeight,w=b.menuIsOpen,O=b.menuPlacement,M=b.menuPosition,N=b.menuPortalTarget,j=b.menuShouldBlockScroll,W=b.menuShouldScrollIntoView,D=b.noOptionsMessage,L=b.onMenuScrollToTop,_=b.onMenuScrollToBottom;if(!w)return null;var V=function(Q,U){var ee=Q.type,J=Q.data,oe=Q.isDisabled,te=Q.isSelected,ie=Q.label,ce=Q.value,le=h===J,F=oe?void 0:function(){return r.onOptionHover(J)},de=oe?void 0:function(){return r.selectOption(J)},me="".concat(r.getElementId("option"),"-").concat(U),be={id:me,onClick:de,onMouseMove:F,onMouseOver:F,tabIndex:-1,role:"option","aria-selected":r.isAppleDevice?void 0:te};return S.createElement(g,E({},m,{innerProps:be,data:J,isDisabled:oe,isSelected:te,key:me,label:ie,type:ee,value:ce,isFocused:le,innerRef:le?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(Q.data,"menu"))},$;if(this.hasOptions())$=this.getCategorizedOptions().map(function(Z){if(Z.type==="group"){var Q=Z.data,U=Z.options,ee=Z.index,J="".concat(r.getElementId("group"),"-").concat(ee),oe="".concat(J,"-heading");return S.createElement(a,E({},m,{key:J,data:Q,options:U,Heading:c,headingProps:{id:oe,data:Z.data},label:r.formatGroupLabel(Z.data)}),Z.options.map(function(te){return V(te,"".concat(ee,"-").concat(te.index))}))}else if(Z.type==="option")return V(Z,"".concat(Z.index))});else if(C){var k=I({inputValue:T});if(k===null)return null;$=S.createElement(p,m,k)}else{var H=D({inputValue:T});if(H===null)return null;$=S.createElement(f,m,H)}var B={minMenuHeight:x,maxMenuHeight:R,menuPlacement:O,menuPosition:M,menuShouldScrollIntoView:W},z=S.createElement(OB,E({},m,B),function(Z){var Q=Z.ref,U=Z.placerProps,ee=U.placement,J=U.maxHeight;return S.createElement(l,E({},m,B,{innerRef:Q,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:C,placement:ee}),S.createElement(ij,{captureEnabled:y,onTopArrive:L,onBottomArrive:_,lockEnabled:j},function(oe){return S.createElement(u,E({},m,{innerRef:function(ie){r.getMenuListRef(ie),oe(ie)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:r.getElementId("listbox")},isLoading:C,maxHeight:J,focusedOption:h}),$)}))});return N||M==="fixed"?S.createElement(d,E({},m,{appendTo:N,controlElement:this.controlRef,menuPlacement:O,menuPosition:M}),z):z}},{key:"renderFormField",value:function(){var r=this,s=this.props,a=s.delimiter,c=s.isDisabled,l=s.isMulti,u=s.name,d=s.required,p=this.state.selectValue;if(d&&!this.hasValue()&&!c)return S.createElement(cj,{name:u,onFocus:this.onValueInputFocus});if(!(!u||c))if(l)if(a){var f=p.map(function(h){return r.getOptionValue(h)}).join(a);return S.createElement("input",{name:u,type:"hidden",value:f})}else{var g=p.length>0?p.map(function(h,b){return S.createElement("input",{key:"i-".concat(b),name:u,type:"hidden",value:r.getOptionValue(h)})}):S.createElement("input",{name:u,type:"hidden",value:""});return S.createElement("div",null,g)}else{var m=p[0]?this.getOptionValue(p[0]):"";return S.createElement("input",{name:u,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,s=this.state,a=s.ariaSelection,c=s.focusedOption,l=s.focusedValue,u=s.isFocused,d=s.selectValue,p=this.getFocusableOptions();return S.createElement(XD,E({},r,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:c,focusedValue:l,isFocused:u,selectValue:d,focusableOptions:p,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),s=r.Control,a=r.IndicatorsContainer,c=r.SelectContainer,l=r.ValueContainer,u=this.props,d=u.className,p=u.id,f=u.isDisabled,g=u.menuIsOpen,m=this.state.isFocused,h=this.commonProps=this.getCommonProps();return S.createElement(c,E({},h,{className:d,innerProps:{id:p,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:m}),this.renderLiveRegion(),S.createElement(s,E({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:m,menuIsOpen:g}),S.createElement(l,E({},h,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),S.createElement(a,E({},h,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,s){var a=s.prevProps,c=s.clearFocusValueOnUpdate,l=s.inputIsHiddenAfterUpdate,u=s.ariaSelection,d=s.isFocused,p=s.prevWasFocused,f=s.instancePrefix,g=r.options,m=r.value,h=r.menuIsOpen,b=r.inputValue,y=r.isMulti,T=my(m),C={};if(a&&(m!==a.value||g!==a.options||h!==a.menuIsOpen||b!==a.inputValue)){var I=h?Sj(r,T):[],x=h?Xy(tl(r,T),"".concat(f,"-option")):[],R=c?wj(s,T):null,w=Rj(s,I),O=Xd(x,w);C={selectValue:T,focusedOption:w,focusedOptionId:O,focusableOptionsWithIds:x,focusedValue:R,clearFocusValueOnUpdate:!1}}var M=l!=null&&r!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},N=u,j=d&&p;return d&&!j&&(N={value:el(y,T,T[0]||null),options:T,action:"initial-input-focus"},j=!p),(u==null?void 0:u.action)==="initial-input-focus"&&(N=null),ve(ve(ve({},C),M),{},{prevProps:r,ariaSelection:N,prevWasFocused:j})}}]),n}(P.Component);Qy.defaultProps=Tj;var Aj=P.forwardRef(function(e,t){var n=$3(e);return S.createElement(Qy,E({ref:t},n))}),Pj=Aj;const Mj=e=>({...e,borderRadius:2,colors:{...e.colors,primary25:"#F2F2F2",primary:"#E94F1C"}}),Ud=({id:e,name:t,placeholder:n,options:o,value:r,onChange:s,classNamePrefix:a,disabled:c})=>{const l=nt(),u={menu:d=>({...d,borderRadius:0,backgroundColor:l.palette.primary.notifyBackground,color:l.palette.primary.notifyTextColor}),option:(d,p)=>({...d,border:`0.05rem solid ${l.palette.primary.notifyBorderColor}`,padding:"0.5rem 0.8rem",backgroundColor:(p.isFocused,l.palette.primary.notifyBackground),color:l.palette.primary.notifyTextColor}),control:d=>({...d,backgroundColor:l.palette.primary.notifyBackground,borderColor:l.palette.primary.notifyBorderColor,boxShadow:"none","&:hover":{borderColor:l.palette.primary.notifyBorderColor}})};return v.jsx(Pj,{theme:l,id:e,name:t,placeholder:n,options:o,value:r,onChange:s,classNamePrefix:a,className:"custom-select-container",isDisabled:c,styles:u})};Ud.propTypes={theme:i.func,id:i.string,name:i.string,placeholder:i.string,options:i.arrayOf(i.shape({label:i.string,value:i.number})).isRequired,value:i.shape({label:i.string,value:i.number}).isRequired,onChange:i.func.isRequired,classNamePrefix:i.string,disabled:i.bool},Ud.defaultProps={theme:Mj,id:"cusom-select-container",name:"cusom-select-name",placeholder:"Show 10 rows",options:[],value:{},onChange:Function.prototype,classNamePrefix:"custom-select",disabled:!1};const Nj=({rowLength:e,disabled:t,setRowLength:n,setPageIndex:o})=>{const r=Rv.map(a=>({label:`Show ${a} Rows`,value:a}));return{showMoreRowsJSX:v.jsx(Ud,{placeholder:"Show 10 Rows",options:r||[],value:{label:`Show ${e} Rows`,value:e},onChange:a=>{n(a==null?void 0:a.value),o(1)},disabled:t})}};function kj({...e}){return v.jsxs(ue,{sx:{border:t=>`1px solid ${t.palette.primary.notifyBorderColor}`,py:.2,px:1.2,borderRadius:2.5,display:"flex",alignItems:"center"},children:[v.jsx(Bs,{type:"button","aria-label":"search",children:v.jsx(ue,{component:"img",src:mt.Search,alt:"search"})}),v.jsx(ri,{sx:{fontSize:12,fontWeight:500,color:t=>t.palette.primary.notifyTextColor},...e})]})}const ex=({page:e,rowPerPage:t,total:n,handleChangePage:o,...r})=>{const s=nt();return v.jsx(cn,{display:"flex",alignItems:"center",justifyContent:"space-between",flexDirection:"row",px:1,sx:{width:"100%",borderTop:"transparent"},children:v.jsx(kc,{count:Math.ceil(n/t),page:e,onChange:(a,c)=>{o(c)},sx:{margin:"1rem 0",width:"100%","& .MuiPagination-ul":{width:"100%",display:"flex",justifyContent:"center","& li:first-child":{backgroundColor:s.palette.primary.notifyButtonBackground,marginRight:"auto",borderRadius:2.5},"& li:last-child":{backgroundColor:s.palette.primary.notifyButtonBackground,marginLeft:"auto",borderRadius:2.5}},"& .MuiPaginationItem-root":{color:s.palette.primary.notifyTextColor,fontSize:"1.25rem",borderRadius:2.5,"& .MuiSvgIcon-root":{fontSize:"2.2rem"}},"& .Mui-selected":{color:s.palette.primary.notifyActiveText,backgroundColor:s.palette.primary.notifyButtonBackground}},shape:"rounded",...r})})};ex.propTypes={page:i.number,rowPerPage:i.number,total:i.number,handleChangePage:i.func};const Bj=({sortKey:e,sortDir:t,column:n})=>v.jsx(v.Fragment,{children:e===n?t?v.jsx("i",{className:"fa fa-arrow-down","aria-hidden":"true"}):v.jsx("i",{className:"fa fa-arrow-up","aria-hidden":"true"}):v.jsx(v.Fragment,{children:v.jsx("i",{className:"fa fa-sort","aria-hidden":"true"})})}),Dj=Y(Fc)(({theme:e})=>({borderCollapse:"separate",borderSpacing:"0",border:`0.1rem solid ${e.palette.primary.notifyBorderColor}`,borderRadius:"1rem",overflow:"hidden"})),Cn=Y(_c)(({theme:e,isLastRow:t})=>({padding:"0.8rem",fontSize:"1rem",textAlign:"center",color:e.palette.primary.notifyTextColor,borderBottom:t?"none":`0.1rem solid ${e.palette.primary.notifyBorderColor}`})),Yd=Y(Cn)(({theme:e})=>({borderBottom:`0.1rem solid ${e.palette.primary.notifyBorderColor}`,color:e.palette.primary.notifyTextColor,fontWeight:600})),jj=({data:e,handleSort:t,sortDir:n,sortKey:o})=>{const r=P.useCallback(()=>{let s={},a=["channel_id","node_id","sku_id"];return(e==null?void 0:e.length)>0&&e.forEach(c=>{Object.keys(c).filter(l=>!a.includes(l)).forEach(l=>{l==="custom"?c[l]&&Object.keys(c[l]).forEach(u=>{typeof c[l][u]=="object"?u in s?Object.keys(c[l][u]).map(d=>{typeof c[l][u][d]!="object"&&(s[u][d]=d)}):Object.keys(c[l][u]).forEach(d=>{typeof c[l][u][d]!="object"?(s[u]={},s[u][d]=d):Array.isArray(c[l][u][d])&&(s[u]=[...new Set([...s[u]??[],...c[l][u][d]])])}):u in s||(s[u]=u)}):c[l]&&!(l in s)&&(s[l]=l)})}),v.jsxs(v.Fragment,{children:[v.jsxs($c,{children:[v.jsxs(gi,{children:[Object.keys(s).map(c=>{if(typeof s[c]!="object")return v.jsx(Yd,{rowSpan:2,children:v.jsxs("span",{onClick:()=>t(c),className:"sort-header",children:[gd(c),v.jsx(Bj,{column:c,sortKey:o,sortDir:n})]})})}),Object.keys(s).map(c=>{if(typeof s[c]=="object")return v.jsx(Yd,{colSpan:Object.keys(s[c]).length,children:gd(c)})})]}),v.jsx(gi,{children:Object.keys(s).map(c=>{if(typeof s[c]=="object")return Object.keys(s[c]).map(l=>v.jsx(Yd,{children:gd(s[c][l])}))})})]}),v.jsx(Vc,{children:v.jsx(v.Fragment,{children:e.map((c,l)=>v.jsxs(gi,{children:[c.sku_name&&v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:c.sku_name}),c.node&&v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:c.node}),c.channel_name&&v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:c.channel_name}),(c==null?void 0:c.custom)&&Object.keys(s).map(u=>{var d;if(!["sku_name","node","channel_name"].includes(u))return typeof s[u]=="object"?u in(c==null?void 0:c.custom)?Array.isArray(s[u])?s[u].map(p=>{var f,g,m,h,b;return v.jsx(v.Fragment,{children:p in((g=(f=c==null?void 0:c.custom)==null?void 0:f[u])==null?void 0:g.data)?v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:(b=(h=(m=c==null?void 0:c.custom)==null?void 0:m[u])==null?void 0:h.data)==null?void 0:b[p]}):v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:"—"})})}):Object.keys(s[u]).map(p=>{var f,g,m;return v.jsx(v.Fragment,{children:p in((f=c==null?void 0:c.custom)==null?void 0:f[u])?v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:(m=(g=c==null?void 0:c.custom)==null?void 0:g[u])==null?void 0:m[p]}):v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:"—"})})}):Object.keys(s[u]).map(p=>v.jsx(v.Fragment,{children:v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:"—"})})):v.jsx(v.Fragment,{children:u in(c==null?void 0:c.custom)?v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:(d=c==null?void 0:c.custom)==null?void 0:d[u]}):v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:"—"})})})]},l))})})]})},[e]);return v.jsx(ue,{className:"scai-common-component-table-container",children:v.jsx(Dj,{children:r()})})},Fj=({loading:e,isEmpty:t,data:n,subTitle:o})=>{const[r,s]=P.useState(""),[a,c]=P.useState(1),[l,u]=P.useState(10),[d,p]=P.useState(0),[f,g]=P.useState([]),[m,h]=P.useState(!1),[b,y]=P.useState(""),T=nt(),{showMoreRowsJSX:C}=Nj({rowLength:l,disabled:(f==null?void 0:f.length)===0,setRowLength:u,setPageIndex:c});P.useEffect(()=>{if(r||b){const w=K4(n,n3,r);if(b){const O=Q4(w,b,m?"asc":"desc");g(md(O,a,l)),p(O.length);return}g(md(w,a,l)),p(w.length);return}g(md(n,a,l)),p(n.length)},[r,n,a,l,m,b]);const I=w=>{c(w)},x=w=>{const O=w.target.value;O&&c(1),s(O)},R=w=>{h(!m),y(w)};return v.jsxs(v.Fragment,{children:[v.jsx(Sc,{dividers:!0,sx:{pt:"0 !important",minHeight:240,overflowX:"hidden",padding:0,borderTop:`0.1rem solid ${T.palette.primary.notifyBorderColor}`,borderBottom:`0.1rem solid ${T.palette.primary.notifyBorderColor}`},children:v.jsx(ue,{sx:e||t?{position:"relative",minHeight:320,display:"flex",justifyContent:"center",alignItems:"center"}:{},children:e?v.jsx(si,{size:30,className:"circular-loader"}):t?v.jsx(wt,{className:"no-record",children:fn.NRF}):v.jsxs(v.Fragment,{children:[v.jsxs(ue,{className:"sticky-input-select",sx:{gap:1,backgroundColor:T.palette.primary.notifyBackground},children:[v.jsx(kj,{value:r,placeholder:"Search",onChange:x}),C]}),f.length===0?v.jsx(wt,{className:"no-record",sx:{color:T.palette.primary.notifyTextColor},children:fn.NRF}):v.jsx(v.Fragment,{children:v.jsx(jj,{data:f,handleSort:R,sortDir:m,sortKey:b})})]})})}),!(e||t)&&v.jsx(Tc,{sx:{justifyContent:"space-between",gap:1,p:0},className:"action-show-all-dialog",children:f.length!==0&&v.jsx(ex,{page:a,rowPerPage:l,total:d,handleChangePage:I})})]})},Vj=({baseUrl:e})=>{const t=P.useContext(Gv),{loading:n,data:o,isMarkAllAsRead:r}=P.useContext(Ed),[s,a]=P.useState(!1),[c,l]=P.useState(!1),[u,d]=P.useState(!1),[p,f]=P.useState({}),[g,m]=P.useState(null),[h,b]=P.useState(1),[y,T]=P.useState(!1),[C,I]=P.useState([]),x=o.length===0,R=nt(),w=P.useCallback(async()=>{var k,H,B,z;t({type:ke.LOADING,loading:!0}),t({type:ke.SUCCESS,data:[]}),t({type:ke.MARK_ALL_AS_READ,isMarkAllAsRead:{count:0,boo:!1}});try{const Z=await P3(e);if(Z.status===Ga.OK){const Q=hd(((H=(k=Z.data)==null?void 0:k.responseData)==null?void 0:H.response)||[]);let U=[...Q];t({type:ke.SUCCESS,data:U||[]});const ee=J4(((z=(B=Z.data)==null?void 0:B.responseData)==null?void 0:z.response)||[]);t({type:ke.MARK_ALL_AS_READ,isMarkAllAsRead:{count:ee,boo:ee>0}}),setCardData(Q)}}catch{t({type:ke.ERROR,error:fn.SWR})}finally{t({type:ke.LOADING,loading:!1})}},[e,t]),O=k=>{b(1);const H=k.target.checked;T(H)};P.useEffect(()=>{if(y){const k=o==null?void 0:o.filter(H=>!H.isRead);I(k)}else I([...o])},[y,o]),P.useEffect(()=>{w();const k=setInterval(()=>{w()},3e5);return()=>clearInterval(k)},[w]);const M=()=>a(!s),N=()=>a(!s),j=()=>l(!c),W=()=>d(!u),D=()=>{w()},L=()=>{j()},_=async(k,H)=>{var B,z;if(k){m(k);try{const{data:Z,status:Q}=await M3({baseUrl:e,id:k,snopId:H});if(Q!==Ga.OK)throw new Error(fn.SWR);const U=((z=(B=Z==null?void 0:Z.responseData)==null?void 0:B.response)==null?void 0:z[0])||{};f(U),W()}catch{t({type:ke.ERROR,error:fn.SWR})}finally{m(null)}}},V=async(k,H)=>{if(k.length!==0){t({type:ke.LOADING,loading:!0});try{if((await zv(e,k,H)).status===Ga.OK){let z=0;const Z=o.map(ee=>(!ee.isRead&&!k.includes(ee.id)&&z++,k.includes(ee.id)?{...ee,isRead:!0}:ee));let U=[...hd(Z||[])];t({type:ke.MARK_ALL_AS_READ,isMarkAllAsRead:{count:z,boo:z>0}}),t({type:ke.SUCCESS,data:U})}}catch{t({type:ke.ERROR,error:fn.SWR})}finally{t({type:ke.LOADING,loading:!1})}}},$=async()=>{const k=q4(cardData);t({type:ke.LOADING,loading:!0});try{if((await zv(e,k,Ov.MARK_ALL_READ)).status===Ga.OK){const B=cardData.map(Z=>({...Z,isRead:!0})),z=hd(B||[]);setCardData(z),t({type:ke.SUCCESS,data:z}),t({type:ke.MARK_ALL_AS_READ,isMarkAllAsRead:{count:0,boo:!1}})}}catch{t({type:ke.ERROR,error:fn.SWR})}finally{t({type:ke.LOADING,loading:!1})}};return v.jsxs(ue,{children:[v.jsx(ue,{sx:{display:"flex",justifyContent:"center",cursor:"pointer",marginTop:"0.6rem"},onClick:()=>{w(),M()},children:v.jsx(k3,{count:r.count})}),v.jsx(Jv,{title:"Notifications",open:s,loading:n,isMarkAllAsRead:r,onClose:!g&&N,onRefresh:D,handleShowAll:L,handleMarkAllAsRead:$,headerIconType:La.REFRESH,isDialogActionShow:!0,className:"alert-dialog-main",dialogType:"notifcation-dialog",data:Object.values(o).flat(),toggleNotify:O,mode:y,children:v.jsx(Sc,{dividers:!0,sx:{borderTop:"none",borderBottom:`0.1rem solid ${R.palette.primary.notifyBorderColor}`},children:v.jsx(ue,{sx:n||x?{display:"flex",justifyContent:"center",alignItems:"center",height:320}:{height:320},children:n?v.jsx(si,{size:30,className:"circular-loader"}):x?v.jsx(Dn,{className:"no-record",children:fn.NRF}):v.jsx(ty,{data:C,handleRead:V,handleShowDetails:_,clickId:g,mode:y,setPage:b,page:h})})})}),v.jsx(Jv,{title:p==null?void 0:p.message,open:u,isDetail:!0,onClose:W,headerIconType:La.CLOSE,className:"alert-dialog",children:v.jsx(Fj,{loading:n,isEmpty:x,data:(p==null?void 0:p.notificationDetails)||[],subTitle:p==null?void 0:p.remark})})]})},Lj=({baseUrl:e})=>v.jsx(eo,{children:v.jsx(R3,{children:v.jsx(Vj,{baseUrl:e})})}),_j=({rightChild:e,leftChild:t,isDrawerMerged:n,isDrawerOpen:o,drawerTitle:r,showExpand:s,onCloseClick:a,onMergeClick:c,onExpandClick:l,isDrawerExpanded:u})=>{const d=nt();return v.jsx(ue,{sx:{position:"relative",overflow:"hidden"},children:v.jsxs(Io,{container:!0,sx:{height:"100%"},children:[v.jsx(Io,{item:!0,sx:{width:n?"75%":"100%",position:"relative",zIndex:3,height:"calc(100vh - 7rem)",p:"0rem 1.5rem",overflow:"auto"},children:t}),o&&!n&&v.jsxs(v.Fragment,{children:[v.jsx(ue,{onClick:a,sx:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#07080B80",backdropFilter:"blur(3px)",zIndex:3,transition:"opacity 0.3s ease-in-out"}}),v.jsx(ue,{onClick:a,sx:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"transparent",zIndex:4}})]}),e&&v.jsxs(Io,{item:!0,sx:{width:u?"90%":"25%",position:n?"relative":"absolute",top:0,right:0,height:"calc(100vh - 7rem)",backgroundColor:d.palette.primary.notifyBackground,transform:o?"translateX(0)":"translateX(100%)",transition:"transform 0.4s ease-in-out , width 0.4s ease-in-out",zIndex:4,borderLeft:`0.1rem solid ${d.palette.primary.notifyBorderColor}`,display:"flex",flexDirection:"column"},children:[v.jsxs(cn,{direction:"row",alignItems:"center",sx:{width:"100%",flexShrink:0,paddingBottom:"0.8rem",px:2,pt:"0.8rem",borderBottom:p=>`0.1rem solid ${p.palette.primary.notifyBorderColor}`},children:[!u&&v.jsxs(v.Fragment,{children:[v.jsx(ue,{sx:{display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"},onClick:c,children:v.jsx(ue,{component:"img",src:mt.Merge})}),v.jsx(Qs,{orientation:"vertical",flexItem:!0,sx:{mx:"1rem",height:"auto!important",borderColor:d.palette.primary.notifyBorderColor}})]}),v.jsxs(cn,{direction:"row",justifyContent:"space-between",alignItems:"center",flexGrow:1,children:[v.jsxs(cn,{direction:"row",gap:"0.5rem",alignItems:"center",onClick:a,sx:{cursor:"pointer"},children:[v.jsx(ue,{component:"img",src:d.icons.close}),v.jsx(wt,{sx:{fontSize:"1.2rem",color:d.palette.primary.notifyTextColor},children:r})]}),v.jsx(cn,{direction:"row",gap:"0.5rem",alignItems:"center",children:s&&!u&&v.jsx(ue,{onClick:l,sx:{cursor:"pointer"},children:v.jsx(ue,{component:"img",src:mt.Expand})})})]})]}),v.jsx(ue,{sx:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},overflow:"auto",px:2},children:e})]})]})})},tx=({layoutChildren:e,layoutProps:t})=>v.jsx(eo,{children:v.jsx(_j,{...e,...t})});tx.propTypes={layoutChildren:i.object.isRequired,layoutProps:i.object.isRequired},kt.Button=Ir,kt.Grid=Vv,kt.Header=$v,kt.InputField=$0,kt.Notification=Lj,kt.Select=Qu,kt.SliderLayout=tx,kt.Switch=z0,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})});
|
|
258
|
+
`]))),nD=function(t,n){var o=t.isFocused,r=t.size,s=t.theme,a=s.colors,c=s.spacing.baseUnit;return ve({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:o?a.neutral60:a.neutral20,padding:c*2})},Ld=function(t){var n=t.delay,o=t.offset;return ge("span",{css:Uo({animation:"".concat(tD," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:o?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSl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iAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},oD=function(t){var n=t.innerProps,o=t.isRtl,r=t.size,s=r===void 0?4:r,a=Wn(t,XB);return ge("div",E({},pt(ve(ve({},a),{},{innerProps:n,isRtl:o,size:s}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),ge(Ld,{delay:0,offset:o}),ge(Ld,{delay:160,offset:!0}),ge(Ld,{delay:320,offset:!o}))},rD=function(t,n){var o=t.isDisabled,r=t.isFocused,s=t.theme,a=s.colors,c=s.borderRadius,l=s.spacing;return ve({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:o?a.neutral5:a.neutral0,borderColor:o?a.neutral10:r?a.primary:a.neutral20,borderRadius:c,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},iD=function(t){var n=t.children,o=t.isDisabled,r=t.isFocused,s=t.innerRef,a=t.innerProps,c=t.menuIsOpen;return ge("div",E({ref:s},pt(t,"control",{control:!0,"control--is-disabled":o,"control--is-focused":r,"control--menu-is-open":c}),a,{"aria-disabled":o||void 0}),n)},sD=iD,aD=["data"],lD=function(t,n){var o=t.theme.spacing;return n?{}:{paddingBottom:o.baseUnit*2,paddingTop:o.baseUnit*2}},cD=function(t){var n=t.children,o=t.cx,r=t.getStyles,s=t.getClassNames,a=t.Heading,c=t.headingProps,l=t.innerProps,u=t.label,d=t.theme,p=t.selectProps;return ge("div",E({},pt(t,"group",{group:!0}),l),ge(a,E({},c,{selectProps:p,theme:d,getStyles:r,getClassNames:s,cx:o}),u),ge("div",null,n))},uD=function(t,n){var o=t.theme,r=o.colors,s=o.spacing;return ve({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},dD=function(t){var n=gy(t);n.data;var o=Wn(n,aD);return ge("div",E({},pt(t,"groupHeading",{"group-heading":!0}),o))},pD=cD,fD=["innerRef","isDisabled","isHidden","inputClassName"],hD=function(t,n){var o=t.isDisabled,r=t.value,s=t.theme,a=s.spacing,c=s.colors;return ve(ve({visibility:o?"hidden":"visible",transform:r?"translateZ(0)":""},mD),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:c.neutral80})},Oy={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},mD={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ve({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Oy)},gD=function(t){return ve({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Oy)},bD=function(t){var n=t.cx,o=t.value,r=gy(t),s=r.innerRef,a=r.isDisabled,c=r.isHidden,l=r.inputClassName,u=Wn(r,fD);return ge("div",E({},pt(t,"input",{"input-container":!0}),{"data-value":o||""}),ge("input",E({className:n({input:!0},l),ref:s,style:gD(c),disabled:a},u)))},vD=bD,yD=function(t,n){var o=t.theme,r=o.spacing,s=o.borderRadius,a=o.colors;return ve({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:s/2,margin:r.baseUnit/2})},xD=function(t,n){var o=t.theme,r=o.borderRadius,s=o.colors,a=t.cropWithEllipsis;return ve({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},CD=function(t,n){var o=t.theme,r=o.spacing,s=o.borderRadius,a=o.colors,c=t.isFocused;return ve({alignItems:"center",display:"flex"},n?{}:{borderRadius:s/2,backgroundColor:c?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Ay=function(t){var n=t.children,o=t.innerProps;return ge("div",o,n)},ED=Ay,ID=Ay;function TD(e){var t=e.children,n=e.innerProps;return ge("div",E({role:"button"},n),t||ge(Vd,{size:14}))}var SD=function(t){var n=t.children,o=t.components,r=t.data,s=t.innerProps,a=t.isDisabled,c=t.removeProps,l=t.selectProps,u=o.Container,d=o.Label,p=o.Remove;return ge(u,{data:r,innerProps:ve(ve({},pt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),s),selectProps:l},ge(d,{data:r,innerProps:ve({},pt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),ge(p,{data:r,innerProps:ve(ve({},pt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},c),selectProps:l}))},wD=SD,RD=function(t,n){var o=t.isDisabled,r=t.isFocused,s=t.isSelected,a=t.theme,c=a.spacing,l=a.colors;return ve({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:s?l.primary:r?l.primary25:"transparent",color:o?l.neutral20:s?l.neutral0:"inherit",padding:"".concat(c.baseUnit*2,"px ").concat(c.baseUnit*3,"px"),":active":{backgroundColor:o?void 0:s?l.primary:l.primary50}})},OD=function(t){var n=t.children,o=t.isDisabled,r=t.isFocused,s=t.isSelected,a=t.innerRef,c=t.innerProps;return ge("div",E({},pt(t,"option",{option:!0,"option--is-disabled":o,"option--is-focused":r,"option--is-selected":s}),{ref:a,"aria-disabled":o},c),n)},AD=OD,PD=function(t,n){var o=t.theme,r=o.spacing,s=o.colors;return ve({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:s.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},MD=function(t){var n=t.children,o=t.innerProps;return ge("div",E({},pt(t,"placeholder",{placeholder:!0}),o),n)},ND=MD,kD=function(t,n){var o=t.isDisabled,r=t.theme,s=r.spacing,a=r.colors;return ve({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:o?a.neutral40:a.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},BD=function(t){var n=t.children,o=t.isDisabled,r=t.innerProps;return ge("div",E({},pt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":o}),r),n)},DD=BD,jD={ClearIndicator:KB,Control:sD,DropdownIndicator:JB,DownChevron:wy,CrossIcon:Vd,Group:pD,GroupHeading:dD,IndicatorsContainer:zB,IndicatorSeparator:eD,Input:vD,LoadingIndicator:oD,Menu:PB,MenuList:NB,MenuPortal:VB,LoadingMessage:jB,NoOptionsMessage:DB,MultiValue:wD,MultiValueContainer:ED,MultiValueLabel:ID,MultiValueRemove:TD,Option:AD,Placeholder:ND,SelectContainer:_B,SingleValue:DD,ValueContainer:GB},FD=function(t){return ve(ve({},jD),t.components)},Py=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function VD(e,t){return!!(e===t||Py(e)&&Py(t))}function LD(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!VD(e[n],t[n]))return!1;return!0}function _D(e,t){t===void 0&&(t=LD);var n=null;function o(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return o.clear=function(){n=null},o}function $D(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var GD=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:$D},WD=function(t){return ge("span",E({css:GD},t))},My=WD,zD={guidance:function(t){var n=t.isSearchable,o=t.isMulti,r=t.tabSelectsValue,s=t.context,a=t.isInitialFocus;switch(s){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(o?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,o=t.label,r=o===void 0?"":o,s=t.labels,a=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return a?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(t){var n=t.context,o=t.focused,r=t.options,s=t.label,a=s===void 0?"":s,c=t.selectValue,l=t.isDisabled,u=t.isSelected,d=t.isAppleDevice,p=function(h,b){return h&&h.length?"".concat(h.indexOf(b)+1," of ").concat(h.length):""};if(n==="value"&&c)return"value ".concat(a," focused, ").concat(p(c,o),".");if(n==="menu"&&d){var f=l?" disabled":"",g="".concat(u?" selected":"").concat(f);return"".concat(a).concat(g,", ").concat(p(r,o),".")}return""},onFilter:function(t){var n=t.inputValue,o=t.resultsMessage;return"".concat(o).concat(n?" for search term "+n:"",".")}},HD=function(t){var n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,s=t.focusableOptions,a=t.isFocused,c=t.selectValue,l=t.selectProps,u=t.id,d=t.isAppleDevice,p=l.ariaLiveMessages,f=l.getOptionLabel,g=l.inputValue,m=l.isMulti,h=l.isOptionDisabled,b=l.isSearchable,y=l.menuIsOpen,T=l.options,C=l.screenReaderStatus,I=l.tabSelectsValue,x=l.isLoading,R=l["aria-label"],w=l["aria-live"],O=P.useMemo(function(){return ve(ve({},zD),p||{})},[p]),M=P.useMemo(function(){var _="";if(n&&O.onChange){var V=n.option,$=n.options,k=n.removedValue,H=n.removedValues,B=n.value,z=function(te){return Array.isArray(te)?null:te},Z=k||V||z(B),Q=Z?f(Z):"",U=$||H||void 0,ee=U?U.map(f):[],J=ve({isDisabled:Z&&h(Z,c),label:Q,labels:ee},n);_=O.onChange(J)}return _},[n,O,h,c,f]),N=P.useMemo(function(){var _="",V=o||r,$=!!(o&&c&&c.includes(o));if(V&&O.onFocus){var k={focused:V,label:f(V),isDisabled:h(V,c),isSelected:$,options:s,context:V===o?"menu":"value",selectValue:c,isAppleDevice:d};_=O.onFocus(k)}return _},[o,r,f,h,O,s,c,d]),j=P.useMemo(function(){var _="";if(y&&T.length&&!x&&O.onFilter){var V=C({count:s.length});_=O.onFilter({inputValue:g,resultsMessage:V})}return _},[s,g,y,O,T,C,x]),W=(n==null?void 0:n.action)==="initial-input-focus",D=P.useMemo(function(){var _="";if(O.guidance){var V=r?"value":y?"menu":"input";_=O.guidance({"aria-label":R,context:V,isDisabled:o&&h(o,c),isMulti:m,isSearchable:b,tabSelectsValue:I,isInitialFocus:W})}return _},[R,o,r,m,h,b,y,O,c,I,W]),L=ge(P.Fragment,null,ge("span",{id:"aria-selection"},M),ge("span",{id:"aria-focused"},N),ge("span",{id:"aria-results"},j),ge("span",{id:"aria-guidance"},D));return ge(P.Fragment,null,ge(My,{id:u},W&&L),ge(My,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!W&&L))},XD=HD,_d=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],UD=new RegExp("["+_d.map(function(e){return e.letters}).join("")+"]","g"),Ny={},$d=0;$d<_d.length;$d++)for(var Gd=_d[$d],Wd=0;Wd<Gd.letters.length;Wd++)Ny[Gd.letters[Wd]]=Gd.base;var ky=function(t){return t.replace(UD,function(n){return Ny[n]})},YD=_D(ky),By=function(t){return t.replace(/^\s+|\s+$/g,"")},ZD=function(t){return"".concat(t.label," ").concat(t.value)},JD=function(t){return function(n,o){if(n.data.__isNew__)return!0;var r=ve({ignoreCase:!0,ignoreAccents:!0,stringify:ZD,trim:!0,matchFrom:"any"},t),s=r.ignoreCase,a=r.ignoreAccents,c=r.stringify,l=r.trim,u=r.matchFrom,d=l?By(o):o,p=l?By(c(n)):c(n);return s&&(d=d.toLowerCase(),p=p.toLowerCase()),a&&(d=YD(d),p=ky(p)),u==="start"?p.substr(0,d.length)===d:p.indexOf(d)>-1}},qD=["innerRef"];function KD(e){var t=e.innerRef,n=Wn(e,qD),o=EB(n,"onExited","in","enter","exit","appear");return ge("input",E({ref:t},o,{css:Uo({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOi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TaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var QD=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function ej(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,r=e.onTopArrive,s=e.onTopLeave,a=P.useRef(!1),c=P.useRef(!1),l=P.useRef(0),u=P.useRef(null),d=P.useCallback(function(b,y){if(u.current!==null){var T=u.current,C=T.scrollTop,I=T.scrollHeight,x=T.clientHeight,R=u.current,w=y>0,O=I-x-C,M=!1;O>y&&a.current&&(o&&o(b),a.current=!1),w&&c.current&&(s&&s(b),c.current=!1),w&&y>O?(n&&!a.current&&n(b),R.scrollTop=I,M=!0,a.current=!0):!w&&-y>C&&(r&&!c.current&&r(b),R.scrollTop=0,M=!0,c.current=!0),M&&QD(b)}},[n,o,r,s]),p=P.useCallback(function(b){d(b,b.deltaY)},[d]),f=P.useCallback(function(b){l.current=b.changedTouches[0].clientY},[]),g=P.useCallback(function(b){var y=l.current-b.changedTouches[0].clientY;d(b,y)},[d]),m=P.useCallback(function(b){if(b){var y=yB?{passive:!1}:!1;b.addEventListener("wheel",p,y),b.addEventListener("touchstart",f,y),b.addEventListener("touchmove",g,y)}},[g,f,p]),h=P.useCallback(function(b){b&&(b.removeEventListener("wheel",p,!1),b.removeEventListener("touchstart",f,!1),b.removeEventListener("touchmove",g,!1))},[g,f,p]);return P.useEffect(function(){if(t){var b=u.current;return m(b),function(){h(b)}}},[t,m,h]),function(b){u.current=b}}var Dy=["boxSizing","height","overflow","paddingRight","position"],jy={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Fy(e){e.cancelable&&e.preventDefault()}function Vy(e){e.stopPropagation()}function Ly(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function _y(){return"ontouchstart"in window||navigator.maxTouchPoints}var $y=!!(typeof window<"u"&&window.document&&window.document.createElement),Hi=0,wr={capture:!1,passive:!1};function tj(e){var t=e.isEnabled,n=e.accountForScrollbars,o=n===void 0?!0:n,r=P.useRef({}),s=P.useRef(null),a=P.useCallback(function(l){if($y){var u=document.body,d=u&&u.style;if(o&&Dy.forEach(function(m){var h=d&&d[m];r.current[m]=h}),o&&Hi<1){var p=parseInt(r.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,g=window.innerWidth-f+p||0;Object.keys(jy).forEach(function(m){var h=jy[m];d&&(d[m]=h)}),d&&(d.paddingRight="".concat(g,"px"))}u&&_y()&&(u.addEventListener("touchmove",Fy,wr),l&&(l.addEventListener("touchstart",Ly,wr),l.addEventListener("touchmove",Vy,wr))),Hi+=1}},[o]),c=P.useCallback(function(l){if($y){var u=document.body,d=u&&u.style;Hi=Math.max(Hi-1,0),o&&Hi<1&&Dy.forEach(function(p){var f=r.current[p];d&&(d[p]=f)}),u&&_y()&&(u.removeEventListener("touchmove",Fy,wr),l&&(l.removeEventListener("touchstart",Ly,wr),l.removeEventListener("touchmove",Vy,wr)))}},[o]);return P.useEffect(function(){if(t){var l=s.current;return a(l),function(){c(l)}}},[t,a,c]),function(l){s.current=l}}function nj(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var oj=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},rj=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZU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kLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:nj};function ij(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,r=o===void 0?!0:o,s=e.onBottomArrive,a=e.onBottomLeave,c=e.onTopArrive,l=e.onTopLeave,u=ej({isEnabled:r,onBottomArrive:s,onBottomLeave:a,onTopArrive:c,onTopLeave:l}),d=tj({isEnabled:n}),p=function(g){u(g),d(g)};return ge(P.Fragment,null,n&&ge("div",{onClick:oj,css:rj}),t(p))}function sj(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var aj=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:sj},lj=function(t){var n=t.name,o=t.onFocus;return ge("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:o,css:aj,value:"",onChange:function(){}})},cj=lj;function zd(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function uj(){return zd(/^iPhone/i)}function Gy(){return zd(/^Mac/i)}function dj(){return zd(/^iPad/i)||Gy()&&navigator.maxTouchPoints>1}function pj(){return uj()||dj()}function fj(){return Gy()||pj()}var hj=function(t){return t.label},mj=function(t){return t.label},gj=function(t){return t.value},bj=function(t){return!!t.isDisabled},vj={clearIndicator:qB,container:LB,control:rD,dropdownIndicator:ZB,group:lD,groupHeading:uD,indicatorsContainer:WB,indicatorSeparator:QB,input:hD,loadingIndicator:nD,loadingMessage:BB,menu:RB,menuList:MB,menuPortal:FB,multiValue:yD,multiValueLabel:xD,multiValueRemove:CD,noOptionsMessage:kB,option:RD,placeholder:PD,singleValue:kD,valueContainer:$B},yj={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},xj=4,Wy=4,Cj=38,Ej=Wy*2,Ij={baseUnit:Wy,controlHeight:Cj,menuGutter:Ej},Hd={borderRadius:xj,colors:yj,spacing:Ij},Tj={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:yy(),captureMenuScroll:!yy(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:JD(),formatGroupLabel:hj,getOptionLabel:mj,getOptionValue:gj,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:bj,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!bB(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function zy(e,t,n,o){var r=Zy(e,t,n),s=Jy(e,t,n),a=Yy(e,t),c=nl(e,t);return{type:"option",data:t,isDisabled:r,isSelected:s,label:a,value:c,index:o}}function tl(e,t){return e.options.map(function(n,o){if("options"in n){var r=n.options.map(function(a,c){return zy(e,a,t,c)}).filter(function(a){return Uy(e,a)});return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var s=zy(e,n,t,o);return Uy(e,s)?s:void 0}).filter(xB)}function Hy(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Nd(n.options.map(function(o){return o.data}))):t.push(n.data),t},[])}function Xy(e,t){return e.reduce(function(n,o){return o.type==="group"?n.push.apply(n,Nd(o.options.map(function(r){return{data:r.data,id:"".concat(t,"-").concat(o.index,"-").concat(r.index)}}))):n.push({data:o.data,id:"".concat(t,"-").concat(o.index)}),n},[])}function Sj(e,t){return Hy(tl(e,t))}function Uy(e,t){var n=e.inputValue,o=n===void 0?"":n,r=t.data,s=t.isSelected,a=t.label,c=t.value;return(!Ky(e)||!s)&&qy(e,{label:a,value:c,data:r},o)}function wj(e,t){var n=e.focusedValue,o=e.selectValue,r=o.indexOf(n);if(r>-1){var s=t.indexOf(n);if(s>-1)return n;if(r<t.length)return t[r]}return null}function Rj(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Xd=function(t,n){var o,r=(o=t.find(function(s){return s.data===n}))===null||o===void 0?void 0:o.id;return r||null},Yy=function(t,n){return t.getOptionLabel(n)},nl=function(t,n){return t.getOptionValue(n)};function Zy(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Jy(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var o=nl(e,t);return n.some(function(r){return nl(e,r)===o})}function qy(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Ky=function(t){var n=t.hideSelectedOptions,o=t.isMulti;return n===void 0?o:n},Oj=1,Qy=function(e){z3(n,e);var t=X3(n);function n(o){var r;if(G3(this,n),r=t.call(this,o),r.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=fj(),r.controlRef=null,r.getControlRef=function(l){r.controlRef=l},r.focusedOptionRef=null,r.getFocusedOptionRef=function(l){r.focusedOptionRef=l},r.menuListRef=null,r.getMenuListRef=function(l){r.menuListRef=l},r.inputRef=null,r.getInputRef=function(l){r.inputRef=l},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(l,u){var d=r.props,p=d.onChange,f=d.name;u.name=f,r.ariaOnChange(l,u),p(l,u)},r.setValue=function(l,u,d){var p=r.props,f=p.closeMenuOnSelect,g=p.isMulti,m=p.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:m}),f&&(r.setState({inputIsHiddenAfterUpdate:!g}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(l,{action:u,option:d})},r.selectOption=function(l){var u=r.props,d=u.blurInputOnSelect,p=u.isMulti,f=u.name,g=r.state.selectValue,m=p&&r.isOptionSelected(l,g),h=r.isOptionDisabled(l,g);if(m){var b=r.getOptionValue(l);r.setValue(g.filter(function(y){return r.getOptionValue(y)!==b}),"deselect-option",l)}else if(!h)p?r.setValue([].concat(Nd(g),[l]),"select-option",l):r.setValue(l,"select-option");else{r.ariaOnChange(l,{action:"select-option",option:l,name:f});return}d&&r.blurInput()},r.removeValue=function(l){var u=r.props.isMulti,d=r.state.selectValue,p=r.getOptionValue(l),f=d.filter(function(m){return r.getOptionValue(m)!==p}),g=el(u,f,f[0]||null);r.onChange(g,{action:"remove-value",removedValue:l}),r.focusInput()},r.clearValue=function(){var l=r.state.selectValue;r.onChange(el(r.props.isMulti,[],null),{action:"clear",removedValues:l})},r.popValue=function(){var l=r.props.isMulti,u=r.state.selectValue,d=u[u.length-1],p=u.slice(0,u.length-1),f=el(l,p,p[0]||null);d&&r.onChange(f,{action:"pop-value",removedValue:d})},r.getFocusedOptionId=function(l){return Xd(r.state.focusableOptionsWithIds,l)},r.getFocusableOptionsWithIds=function(){return Xy(tl(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return pB.apply(void 0,[r.props.classNamePrefix].concat(u))},r.getOptionLabel=function(l){return Yy(r.props,l)},r.getOptionValue=function(l){return nl(r.props,l)},r.getStyles=function(l,u){var d=r.props.unstyled,p=vj[l](u,d);p.boxSizing="border-box";var f=r.props.styles[l];return f?f(p,u):p},r.getClassNames=function(l,u){var d,p;return(d=(p=r.props.classNames)[l])===null||d===void 0?void 0:d.call(p,u)},r.getElementId=function(l){return"".concat(r.state.instancePrefix,"-").concat(l)},r.getComponents=function(){return FD(r.props)},r.buildCategorizedOptions=function(){return tl(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Hy(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(l,u){r.setState({ariaSelection:ve({value:l},u)})},r.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(l){r.blockOptionHover=!1},r.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&r.onMenuClose():u&&r.openMenu("first"):(u&&(r.openAfterFocus=!0),r.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},r.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!r.props.isDisabled){var u=r.props,d=u.isMulti,p=u.menuIsOpen;r.focusInput(),p?(r.setState({inputIsHiddenAfterUpdate:!d}),r.onMenuClose()):r.openMenu("first"),l.preventDefault()}},r.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(r.clearValue(),l.preventDefault(),r.openAfterFocus=!1,l.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(l){typeof r.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Ja(l.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(l)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(l){var u=l.touches,d=u&&u.item(0);d&&(r.initialTouchX=d.clientX,r.initialTouchY=d.clientY,r.userIsDragging=!1)},r.onTouchMove=function(l){var u=l.touches,d=u&&u.item(0);if(d){var p=Math.abs(d.clientX-r.initialTouchX),f=Math.abs(d.clientY-r.initialTouchY),g=5;r.userIsDragging=p>g||f>g}},r.onTouchEnd=function(l){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(l.target)&&r.menuListRef&&!r.menuListRef.contains(l.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(l){r.userIsDragging||r.onControlMouseDown(l)},r.onClearIndicatorTouchEnd=function(l){r.userIsDragging||r.onClearIndicatorMouseDown(l)},r.onDropdownIndicatorTouchEnd=function(l){r.userIsDragging||r.onDropdownIndicatorMouseDown(l)},r.handleInputChange=function(l){var u=r.props.inputValue,d=l.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(d,{action:"input-change",prevInputValue:u}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(l){r.props.onFocus&&r.props.onFocus(l),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(l){var u=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(l),r.onInputChange("",{action:"input-blur",prevInputValue:u}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(l){if(!(r.blockOptionHover||r.state.focusedOption===l)){var u=r.getFocusableOptions(),d=u.indexOf(l);r.setState({focusedOption:l,focusedOptionId:d>-1?r.getFocusedOptionId(l):null})}},r.shouldHideSelectedOptions=function(){return Ky(r.props)},r.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),r.focus()},r.onKeyDown=function(l){var u=r.props,d=u.isMulti,p=u.backspaceRemovesValue,f=u.escapeClearsValue,g=u.inputValue,m=u.isClearable,h=u.isDisabled,b=u.menuIsOpen,y=u.onKeyDown,T=u.tabSelectsValue,C=u.openMenuOnFocus,I=r.state,x=I.focusedOption,R=I.focusedValue,w=I.selectValue;if(!h&&!(typeof y=="function"&&(y(l),l.defaultPrevented))){switch(r.blockOptionHover=!0,l.key){case"ArrowLeft":if(!d||g)return;r.focusValue("previous");break;case"ArrowRight":if(!d||g)return;r.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(R)r.removeValue(R);else{if(!p)return;d?r.popValue():m&&r.clearValue()}break;case"Tab":if(r.isComposing||l.shiftKey||!b||!T||!x||C&&r.isOptionSelected(x,w))return;r.selectOption(x);break;case"Enter":if(l.keyCode===229)break;if(b){if(!x||r.isComposing)return;r.selectOption(x);break}return;case"Escape":b?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:g}),r.onMenuClose()):m&&f&&r.clearValue();break;case" ":if(g)return;if(!b){r.openMenu("first");break}if(!x)return;r.selectOption(x);break;case"ArrowUp":b?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":b?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!b)return;r.focusOption("pageup");break;case"PageDown":if(!b)return;r.focusOption("pagedown");break;case"Home":if(!b)return;r.focusOption("first");break;case"End":if(!b)return;r.focusOption("last");break;default:return}l.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Oj),r.state.selectValue=my(o.value),o.menuIsOpen&&r.state.selectValue.length){var s=r.getFocusableOptionsWithIds(),a=r.buildFocusableOptions(),c=a.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=s,r.state.focusedOption=a[c],r.state.focusedOptionId=Xd(s,a[c])}return r}return W3(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&vy(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var s=this.props,a=s.isDisabled,c=s.menuIsOpen,l=this.state.isFocused;(l&&!a&&r.isDisabled||l&&c&&!r.menuIsOpen)&&this.focusInput(),l&&a&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(vy(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,s){this.props.onInputChange(r,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var s=this,a=this.state,c=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),d=r==="first"?0:u.length-1;if(!this.props.isMulti){var p=u.indexOf(c[0]);p>-1&&(d=p)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[d],focusedOptionId:this.getFocusedOptionId(u[d])},function(){return s.onMenuOpen()})}},{key:"focusValue",value:function(r){var s=this.state,a=s.selectValue,c=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(c);c||(l=-1);var u=a.length-1,d=-1;if(a.length){switch(r){case"previous":l===0?d=0:l===-1?d=u:d=l-1;break;case"next":l>-1&&l<u&&(d=l+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:a[d]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,a=this.state.focusedOption,c=this.getFocusableOptions();if(c.length){var l=0,u=c.indexOf(a);a||(u=-1),r==="up"?l=u>0?u-1:c.length-1:r==="down"?l=(u+1)%c.length:r==="pageup"?(l=u-s,l<0&&(l=0)):r==="pagedown"?(l=u+s,l>c.length-1&&(l=c.length-1)):r==="last"&&(l=c.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:c[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(c[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Hd):ve(ve({},Hd),this.props.theme):Hd}},{key:"getCommonProps",value:function(){var r=this.clearValue,s=this.cx,a=this.getStyles,c=this.getClassNames,l=this.getValue,u=this.selectOption,d=this.setValue,p=this.props,f=p.isMulti,g=p.isRtl,m=p.options,h=this.hasValue();return{clearValue:r,cx:s,getStyles:a,getClassNames:c,getValue:l,hasValue:h,isMulti:f,isRtl:g,options:m,selectOption:u,selectProps:p,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,s=r.isClearable,a=r.isMulti;return s===void 0?a:s}},{key:"isOptionDisabled",value:function(r,s){return Zy(this.props,r,s)}},{key:"isOptionSelected",value:function(r,s){return Jy(this.props,r,s)}},{key:"filterOption",value:function(r,s){return qy(this.props,r,s)}},{key:"formatOptionLabel",value:function(r,s){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,c=this.state.selectValue;return this.props.formatOptionLabel(r,{context:s,inputValue:a,selectValue:c})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var r=this.props,s=r.isDisabled,a=r.isSearchable,c=r.inputId,l=r.inputValue,u=r.tabIndex,d=r.form,p=r.menuIsOpen,f=r.required,g=this.getComponents(),m=g.Input,h=this.state,b=h.inputIsHidden,y=h.ariaSelection,T=this.commonProps,C=c||this.getElementId("input"),I=ve(ve(ve({"aria-autocomplete":"list","aria-expanded":p,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},p&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(y==null?void 0:y.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?S.createElement(m,E({},T,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:s,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:d,type:"text",value:l},I)):S.createElement(KD,E({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Za,onFocus:this.onInputFocus,disabled:s,tabIndex:u,inputMode:"none",form:d,value:""},I))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,s=this.getComponents(),a=s.MultiValue,c=s.MultiValueContainer,l=s.MultiValueLabel,u=s.MultiValueRemove,d=s.SingleValue,p=s.Placeholder,f=this.commonProps,g=this.props,m=g.controlShouldRenderValue,h=g.isDisabled,b=g.isMulti,y=g.inputValue,T=g.placeholder,C=this.state,I=C.selectValue,x=C.focusedValue,R=C.isFocused;if(!this.hasValue()||!m)return y?null:S.createElement(p,E({},f,{key:"placeholder",isDisabled:h,isFocused:R,innerProps:{id:this.getElementId("placeholder")}}),T);if(b)return I.map(function(O,M){var N=O===x,j="".concat(r.getOptionLabel(O),"-").concat(r.getOptionValue(O));return S.createElement(a,E({},f,{components:{Container:c,Label:l,Remove:u},isFocused:N,isDisabled:h,key:j,index:M,removeProps:{onClick:function(){return r.removeValue(O)},onTouchEnd:function(){return r.removeValue(O)},onMouseDown:function(D){D.preventDefault()}},data:O}),r.formatOptionLabel(O,"value"))});if(y)return null;var w=I[0];return S.createElement(d,E({},f,{data:w,isDisabled:h}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),s=r.ClearIndicator,a=this.commonProps,c=this.props,l=c.isDisabled,u=c.isLoading,d=this.state.isFocused;if(!this.isClearable()||!s||l||!this.hasValue()||u)return null;var p={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return S.createElement(s,E({},a,{innerProps:p,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),s=r.LoadingIndicator,a=this.commonProps,c=this.props,l=c.isDisabled,u=c.isLoading,d=this.state.isFocused;if(!s||!u)return null;var p={"aria-hidden":"true"};return S.createElement(s,E({},a,{innerProps:p,isDisabled:l,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),s=r.DropdownIndicator,a=r.IndicatorSeparator;if(!s||!a)return null;var c=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return S.createElement(a,E({},c,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),s=r.DropdownIndicator;if(!s)return null;var a=this.commonProps,c=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return S.createElement(s,E({},a,{innerProps:u,isDisabled:c,isFocused:l}))}},{key:"renderMenu",value:function(){var r=this,s=this.getComponents(),a=s.Group,c=s.GroupHeading,l=s.Menu,u=s.MenuList,d=s.MenuPortal,p=s.LoadingMessage,f=s.NoOptionsMessage,g=s.Option,m=this.commonProps,h=this.state.focusedOption,b=this.props,y=b.captureMenuScroll,T=b.inputValue,C=b.isLoading,I=b.loadingMessage,x=b.minMenuHeight,R=b.maxMenuHeight,w=b.menuIsOpen,O=b.menuPlacement,M=b.menuPosition,N=b.menuPortalTarget,j=b.menuShouldBlockScroll,W=b.menuShouldScrollIntoView,D=b.noOptionsMessage,L=b.onMenuScrollToTop,_=b.onMenuScrollToBottom;if(!w)return null;var V=function(Q,U){var ee=Q.type,J=Q.data,oe=Q.isDisabled,te=Q.isSelected,ie=Q.label,ce=Q.value,le=h===J,F=oe?void 0:function(){return r.onOptionHover(J)},de=oe?void 0:function(){return r.selectOption(J)},me="".concat(r.getElementId("option"),"-").concat(U),be={id:me,onClick:de,onMouseMove:F,onMouseOver:F,tabIndex:-1,role:"option","aria-selected":r.isAppleDevice?void 0:te};return S.createElement(g,E({},m,{innerProps:be,data:J,isDisabled:oe,isSelected:te,key:me,label:ie,type:ee,value:ce,isFocused:le,innerRef:le?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(Q.data,"menu"))},$;if(this.hasOptions())$=this.getCategorizedOptions().map(function(Z){if(Z.type==="group"){var Q=Z.data,U=Z.options,ee=Z.index,J="".concat(r.getElementId("group"),"-").concat(ee),oe="".concat(J,"-heading");return S.createElement(a,E({},m,{key:J,data:Q,options:U,Heading:c,headingProps:{id:oe,data:Z.data},label:r.formatGroupLabel(Z.data)}),Z.options.map(function(te){return V(te,"".concat(ee,"-").concat(te.index))}))}else if(Z.type==="option")return V(Z,"".concat(Z.index))});else if(C){var k=I({inputValue:T});if(k===null)return null;$=S.createElement(p,m,k)}else{var H=D({inputValue:T});if(H===null)return null;$=S.createElement(f,m,H)}var B={minMenuHeight:x,maxMenuHeight:R,menuPlacement:O,menuPosition:M,menuShouldScrollIntoView:W},z=S.createElement(OB,E({},m,B),function(Z){var Q=Z.ref,U=Z.placerProps,ee=U.placement,J=U.maxHeight;return S.createElement(l,E({},m,B,{innerRef:Q,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:C,placement:ee}),S.createElement(ij,{captureEnabled:y,onTopArrive:L,onBottomArrive:_,lockEnabled:j},function(oe){return S.createElement(u,E({},m,{innerRef:function(ie){r.getMenuListRef(ie),oe(ie)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:r.getElementId("listbox")},isLoading:C,maxHeight:J,focusedOption:h}),$)}))});return N||M==="fixed"?S.createElement(d,E({},m,{appendTo:N,controlElement:this.controlRef,menuPlacement:O,menuPosition:M}),z):z}},{key:"renderFormField",value:function(){var r=this,s=this.props,a=s.delimiter,c=s.isDisabled,l=s.isMulti,u=s.name,d=s.required,p=this.state.selectValue;if(d&&!this.hasValue()&&!c)return S.createElement(cj,{name:u,onFocus:this.onValueInputFocus});if(!(!u||c))if(l)if(a){var f=p.map(function(h){return r.getOptionValue(h)}).join(a);return S.createElement("input",{name:u,type:"hidden",value:f})}else{var g=p.length>0?p.map(function(h,b){return S.createElement("input",{key:"i-".concat(b),name:u,type:"hidden",value:r.getOptionValue(h)})}):S.createElement("input",{name:u,type:"hidden",value:""});return S.createElement("div",null,g)}else{var m=p[0]?this.getOptionValue(p[0]):"";return S.createElement("input",{name:u,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,s=this.state,a=s.ariaSelection,c=s.focusedOption,l=s.focusedValue,u=s.isFocused,d=s.selectValue,p=this.getFocusableOptions();return S.createElement(XD,E({},r,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:c,focusedValue:l,isFocused:u,selectValue:d,focusableOptions:p,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),s=r.Control,a=r.IndicatorsContainer,c=r.SelectContainer,l=r.ValueContainer,u=this.props,d=u.className,p=u.id,f=u.isDisabled,g=u.menuIsOpen,m=this.state.isFocused,h=this.commonProps=this.getCommonProps();return S.createElement(c,E({},h,{className:d,innerProps:{id:p,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:m}),this.renderLiveRegion(),S.createElement(s,E({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:m,menuIsOpen:g}),S.createElement(l,E({},h,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),S.createElement(a,E({},h,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,s){var a=s.prevProps,c=s.clearFocusValueOnUpdate,l=s.inputIsHiddenAfterUpdate,u=s.ariaSelection,d=s.isFocused,p=s.prevWasFocused,f=s.instancePrefix,g=r.options,m=r.value,h=r.menuIsOpen,b=r.inputValue,y=r.isMulti,T=my(m),C={};if(a&&(m!==a.value||g!==a.options||h!==a.menuIsOpen||b!==a.inputValue)){var I=h?Sj(r,T):[],x=h?Xy(tl(r,T),"".concat(f,"-option")):[],R=c?wj(s,T):null,w=Rj(s,I),O=Xd(x,w);C={selectValue:T,focusedOption:w,focusedOptionId:O,focusableOptionsWithIds:x,focusedValue:R,clearFocusValueOnUpdate:!1}}var M=l!=null&&r!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},N=u,j=d&&p;return d&&!j&&(N={value:el(y,T,T[0]||null),options:T,action:"initial-input-focus"},j=!p),(u==null?void 0:u.action)==="initial-input-focus"&&(N=null),ve(ve(ve({},C),M),{},{prevProps:r,ariaSelection:N,prevWasFocused:j})}}]),n}(P.Component);Qy.defaultProps=Tj;var Aj=P.forwardRef(function(e,t){var n=$3(e);return S.createElement(Qy,E({ref:t},n))}),Pj=Aj;const Mj=e=>({...e,borderRadius:2,colors:{...e.colors,primary25:"#F2F2F2",primary:"#E94F1C"}}),Ud=({id:e,name:t,placeholder:n,options:o,value:r,onChange:s,classNamePrefix:a,disabled:c})=>{const l=nt(),u={menu:d=>({...d,borderRadius:0,backgroundColor:l.palette.primary.notifyBackground,color:l.palette.primary.notifyTextColor}),option:(d,p)=>({...d,border:`0.05rem solid ${l.palette.primary.notifyBorderColor}`,padding:"0.5rem 0.8rem",backgroundColor:(p.isFocused,l.palette.primary.notifyBackground),color:l.palette.primary.notifyTextColor}),control:d=>({...d,backgroundColor:l.palette.primary.notifyBackground,borderColor:l.palette.primary.notifyBorderColor,boxShadow:"none","&:hover":{borderColor:l.palette.primary.notifyBorderColor}})};return v.jsx(Pj,{theme:l,id:e,name:t,placeholder:n,options:o,value:r,onChange:s,classNamePrefix:a,className:"custom-select-container",isDisabled:c,styles:u})};Ud.propTypes={theme:i.func,id:i.string,name:i.string,placeholder:i.string,options:i.arrayOf(i.shape({label:i.string,value:i.number})).isRequired,value:i.shape({label:i.string,value:i.number}).isRequired,onChange:i.func.isRequired,classNamePrefix:i.string,disabled:i.bool},Ud.defaultProps={theme:Mj,id:"cusom-select-container",name:"cusom-select-name",placeholder:"Show 10 rows",options:[],value:{},onChange:Function.prototype,classNamePrefix:"custom-select",disabled:!1};const Nj=({rowLength:e,disabled:t,setRowLength:n,setPageIndex:o})=>{const r=Rv.map(a=>({label:`Show ${a} Rows`,value:a}));return{showMoreRowsJSX:v.jsx(Ud,{placeholder:"Show 10 Rows",options:r||[],value:{label:`Show ${e} Rows`,value:e},onChange:a=>{n(a==null?void 0:a.value),o(1)},disabled:t})}};function kj({...e}){return v.jsxs(ue,{sx:{border:t=>`1px solid ${t.palette.primary.notifyBorderColor}`,py:.2,px:1.2,borderRadius:2.5,display:"flex",alignItems:"center"},children:[v.jsx(Bs,{type:"button","aria-label":"search",children:v.jsx(ue,{component:"img",src:mt.Search,alt:"search"})}),v.jsx(ri,{sx:{fontSize:12,fontWeight:500,color:t=>t.palette.primary.notifyTextColor},...e})]})}const ex=({page:e,rowPerPage:t,total:n,handleChangePage:o,...r})=>{const s=nt();return v.jsx(cn,{display:"flex",alignItems:"center",justifyContent:"space-between",flexDirection:"row",px:1,sx:{width:"100%",borderTop:"transparent"},children:v.jsx(kc,{count:Math.ceil(n/t),page:e,onChange:(a,c)=>{o(c)},sx:{margin:"1rem 0",width:"100%","& .MuiPagination-ul":{width:"100%",display:"flex",justifyContent:"center","& li:first-child":{backgroundColor:s.palette.primary.notifyButtonBackground,marginRight:"auto",borderRadius:2.5},"& li:last-child":{backgroundColor:s.palette.primary.notifyButtonBackground,marginLeft:"auto",borderRadius:2.5}},"& .MuiPaginationItem-root":{color:s.palette.primary.notifyTextColor,fontSize:"1.25rem",borderRadius:2.5,"& .MuiSvgIcon-root":{fontSize:"2.2rem"}},"& .Mui-selected":{color:s.palette.primary.notifyActiveText,backgroundColor:s.palette.primary.notifyButtonBackground}},shape:"rounded",...r})})};ex.propTypes={page:i.number,rowPerPage:i.number,total:i.number,handleChangePage:i.func};const Bj=({sortKey:e,sortDir:t,column:n})=>v.jsx(v.Fragment,{children:e===n?t?v.jsx("i",{className:"fa fa-arrow-down","aria-hidden":"true"}):v.jsx("i",{className:"fa fa-arrow-up","aria-hidden":"true"}):v.jsx(v.Fragment,{children:v.jsx("i",{className:"fa fa-sort","aria-hidden":"true"})})}),Dj=Y(Fc)(({theme:e})=>({borderCollapse:"separate",borderSpacing:"0",border:`0.1rem solid ${e.palette.primary.notifyBorderColor}`,borderRadius:"1rem",overflow:"hidden"})),Cn=Y(_c)(({theme:e,isLastRow:t})=>({padding:"0.8rem",fontSize:"1rem",textAlign:"center",color:e.palette.primary.notifyTextColor,borderBottom:t?"none":`0.1rem solid ${e.palette.primary.notifyBorderColor}`})),Yd=Y(Cn)(({theme:e})=>({borderBottom:`0.1rem solid ${e.palette.primary.notifyBorderColor}`,color:e.palette.primary.notifyTextColor,fontWeight:600})),jj=({data:e,handleSort:t,sortDir:n,sortKey:o})=>{const r=P.useCallback(()=>{let s={},a=["channel_id","node_id","sku_id"];return(e==null?void 0:e.length)>0&&e.forEach(c=>{Object.keys(c).filter(l=>!a.includes(l)).forEach(l=>{l==="custom"?c[l]&&Object.keys(c[l]).forEach(u=>{typeof c[l][u]=="object"?u in s?Object.keys(c[l][u]).map(d=>{typeof c[l][u][d]!="object"&&(s[u][d]=d)}):Object.keys(c[l][u]).forEach(d=>{typeof c[l][u][d]!="object"?(s[u]={},s[u][d]=d):Array.isArray(c[l][u][d])&&(s[u]=[...new Set([...s[u]??[],...c[l][u][d]])])}):u in s||(s[u]=u)}):c[l]&&!(l in s)&&(s[l]=l)})}),v.jsxs(v.Fragment,{children:[v.jsxs($c,{children:[v.jsxs(gi,{children:[Object.keys(s).map(c=>{if(typeof s[c]!="object")return v.jsx(Yd,{rowSpan:2,children:v.jsxs("span",{onClick:()=>t(c),className:"sort-header",children:[gd(c),v.jsx(Bj,{column:c,sortKey:o,sortDir:n})]})})}),Object.keys(s).map(c=>{if(typeof s[c]=="object")return v.jsx(Yd,{colSpan:Object.keys(s[c]).length,children:gd(c)})})]}),v.jsx(gi,{children:Object.keys(s).map(c=>{if(typeof s[c]=="object")return Object.keys(s[c]).map(l=>v.jsx(Yd,{children:gd(s[c][l])}))})})]}),v.jsx(Vc,{children:v.jsx(v.Fragment,{children:e.map((c,l)=>v.jsxs(gi,{children:[c.sku_name&&v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:c.sku_name}),c.node&&v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:c.node}),c.channel_name&&v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:c.channel_name}),(c==null?void 0:c.custom)&&Object.keys(s).map(u=>{var d;if(!["sku_name","node","channel_name"].includes(u))return typeof s[u]=="object"?u in(c==null?void 0:c.custom)?Array.isArray(s[u])?s[u].map(p=>{var f,g,m,h,b;return v.jsx(v.Fragment,{children:p in((g=(f=c==null?void 0:c.custom)==null?void 0:f[u])==null?void 0:g.data)?v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:(b=(h=(m=c==null?void 0:c.custom)==null?void 0:m[u])==null?void 0:h.data)==null?void 0:b[p]}):v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:"—"})})}):Object.keys(s[u]).map(p=>{var f,g,m;return v.jsx(v.Fragment,{children:p in((f=c==null?void 0:c.custom)==null?void 0:f[u])?v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:(m=(g=c==null?void 0:c.custom)==null?void 0:g[u])==null?void 0:m[p]}):v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:"—"})})}):Object.keys(s[u]).map(p=>v.jsx(v.Fragment,{children:v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:"—"})})):v.jsx(v.Fragment,{children:u in(c==null?void 0:c.custom)?v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:(d=c==null?void 0:c.custom)==null?void 0:d[u]}):v.jsx(Cn,{isLastRow:l===(e==null?void 0:e.length)-1,children:"—"})})})]},l))})})]})},[e]);return v.jsx(ue,{className:"scai-common-component-table-container",children:v.jsx(Dj,{children:r()})})},Fj=({loading:e,isEmpty:t,data:n,subTitle:o})=>{const[r,s]=P.useState(""),[a,c]=P.useState(1),[l,u]=P.useState(10),[d,p]=P.useState(0),[f,g]=P.useState([]),[m,h]=P.useState(!1),[b,y]=P.useState(""),T=nt(),{showMoreRowsJSX:C}=Nj({rowLength:l,disabled:(f==null?void 0:f.length)===0,setRowLength:u,setPageIndex:c});P.useEffect(()=>{if(r||b){const w=K4(n,n3,r);if(b){const O=Q4(w,b,m?"asc":"desc");g(md(O,a,l)),p(O.length);return}g(md(w,a,l)),p(w.length);return}g(md(n,a,l)),p(n.length)},[r,n,a,l,m,b]);const I=w=>{c(w)},x=w=>{const O=w.target.value;O&&c(1),s(O)},R=w=>{h(!m),y(w)};return v.jsxs(v.Fragment,{children:[v.jsx(Sc,{dividers:!0,sx:{pt:"0 !important",minHeight:240,overflowX:"hidden",padding:0,borderTop:`0.1rem solid ${T.palette.primary.notifyBorderColor}`,borderBottom:`0.1rem solid ${T.palette.primary.notifyBorderColor}`},children:v.jsx(ue,{sx:e||t?{position:"relative",minHeight:320,display:"flex",justifyContent:"center",alignItems:"center"}:{},children:e?v.jsx(si,{size:30,className:"circular-loader"}):t?v.jsx(wt,{className:"no-record",children:fn.NRF}):v.jsxs(v.Fragment,{children:[v.jsxs(ue,{className:"sticky-input-select",sx:{gap:1,backgroundColor:T.palette.primary.notifyBackground},children:[v.jsx(kj,{value:r,placeholder:"Search",onChange:x}),C]}),f.length===0?v.jsx(wt,{className:"no-record",sx:{color:T.palette.primary.notifyTextColor},children:fn.NRF}):v.jsx(v.Fragment,{children:v.jsx(jj,{data:f,handleSort:R,sortDir:m,sortKey:b})})]})})}),!(e||t)&&v.jsx(Tc,{sx:{justifyContent:"space-between",gap:1,p:0},className:"action-show-all-dialog",children:f.length!==0&&v.jsx(ex,{page:a,rowPerPage:l,total:d,handleChangePage:I})})]})},Vj=({baseUrl:e})=>{const t=P.useContext(Gv),{loading:n,data:o,isMarkAllAsRead:r}=P.useContext(Ed),[s,a]=P.useState(!1),[c,l]=P.useState(!1),[u,d]=P.useState(!1),[p,f]=P.useState({}),[g,m]=P.useState(null),[h,b]=P.useState(1),[y,T]=P.useState(!1),[C,I]=P.useState([]),x=o.length===0,R=nt(),w=P.useCallback(async()=>{var k,H,B,z;t({type:ke.LOADING,loading:!0}),t({type:ke.SUCCESS,data:[]}),t({type:ke.MARK_ALL_AS_READ,isMarkAllAsRead:{count:0,boo:!1}});try{const Z=await P3(e);if(Z.status===Ga.OK){const Q=hd(((H=(k=Z.data)==null?void 0:k.responseData)==null?void 0:H.response)||[]);let U=[...Q];t({type:ke.SUCCESS,data:U||[]});const ee=J4(((z=(B=Z.data)==null?void 0:B.responseData)==null?void 0:z.response)||[]);t({type:ke.MARK_ALL_AS_READ,isMarkAllAsRead:{count:ee,boo:ee>0}}),setCardData(Q)}}catch{t({type:ke.ERROR,error:fn.SWR})}finally{t({type:ke.LOADING,loading:!1})}},[e,t]),O=k=>{b(1);const H=k.target.checked;T(H)};P.useEffect(()=>{if(y){const k=o==null?void 0:o.filter(H=>!H.isRead);I(k)}else I([...o])},[y,o]),P.useEffect(()=>{w();const k=setInterval(()=>{w()},3e5);return()=>clearInterval(k)},[w]);const M=()=>a(!s),N=()=>a(!s),j=()=>l(!c),W=()=>d(!u),D=()=>{w()},L=()=>{j()},_=async(k,H)=>{var B,z;if(k){m(k);try{const{data:Z,status:Q}=await M3({baseUrl:e,id:k,snopId:H});if(Q!==Ga.OK)throw new Error(fn.SWR);const U=((z=(B=Z==null?void 0:Z.responseData)==null?void 0:B.response)==null?void 0:z[0])||{};f(U),W()}catch{t({type:ke.ERROR,error:fn.SWR})}finally{m(null)}}},V=async(k,H)=>{if(k.length!==0){t({type:ke.LOADING,loading:!0});try{if((await zv(e,k,H)).status===Ga.OK){let z=0;const Z=o.map(ee=>(!ee.isRead&&!k.includes(ee.id)&&z++,k.includes(ee.id)?{...ee,isRead:!0}:ee));let U=[...hd(Z||[])];t({type:ke.MARK_ALL_AS_READ,isMarkAllAsRead:{count:z,boo:z>0}}),t({type:ke.SUCCESS,data:U})}}catch{t({type:ke.ERROR,error:fn.SWR})}finally{t({type:ke.LOADING,loading:!1})}}},$=async()=>{const k=q4(cardData);t({type:ke.LOADING,loading:!0});try{if((await zv(e,k,Ov.MARK_ALL_READ)).status===Ga.OK){const B=cardData.map(Z=>({...Z,isRead:!0})),z=hd(B||[]);setCardData(z),t({type:ke.SUCCESS,data:z}),t({type:ke.MARK_ALL_AS_READ,isMarkAllAsRead:{count:0,boo:!1}})}}catch{t({type:ke.ERROR,error:fn.SWR})}finally{t({type:ke.LOADING,loading:!1})}};return v.jsxs(ue,{children:[v.jsx(ue,{sx:{display:"flex",justifyContent:"center",cursor:"pointer",marginTop:"0.6rem"},onClick:()=>{w(),M()},children:v.jsx(k3,{count:r.count})}),v.jsx(Jv,{title:"Notifications",open:s,loading:n,isMarkAllAsRead:r,onClose:!g&&N,onRefresh:D,handleShowAll:L,handleMarkAllAsRead:$,headerIconType:La.REFRESH,isDialogActionShow:!0,className:"alert-dialog-main",dialogType:"notifcation-dialog",data:Object.values(o).flat(),toggleNotify:O,mode:y,children:v.jsx(Sc,{dividers:!0,sx:{borderTop:"none",borderBottom:`0.1rem solid ${R.palette.primary.notifyBorderColor}`},children:v.jsx(ue,{sx:n||x?{display:"flex",justifyContent:"center",alignItems:"center",height:320}:{height:320},children:n?v.jsx(si,{size:30,className:"circular-loader"}):x?v.jsx(Dn,{className:"no-record",children:fn.NRF}):v.jsx(ty,{data:C,handleRead:V,handleShowDetails:_,clickId:g,mode:y,setPage:b,page:h})})})}),v.jsx(Jv,{title:p==null?void 0:p.message,open:u,isDetail:!0,onClose:W,headerIconType:La.CLOSE,className:"alert-dialog",children:v.jsx(Fj,{loading:n,isEmpty:x,data:(p==null?void 0:p.notificationDetails)||[],subTitle:p==null?void 0:p.remark})})]})},Lj=({baseUrl:e})=>v.jsx(eo,{children:v.jsx(R3,{children:v.jsx(Vj,{baseUrl:e})})}),_j=({rightChild:e,leftChild:t,isDrawerMerged:n,isDrawerOpen:o,drawerTitle:r,showExpand:s,onCloseClick:a,onMergeClick:c,onExpandClick:l,isDrawerExpanded:u,styles:d})=>{console.log(d);const p=nt();return v.jsx(ue,{sx:{position:"relative",overflow:"hidden"},children:v.jsxs(Io,{container:!0,sx:{height:"100%"},children:[v.jsx(Io,{item:!0,sx:{width:n?d!=null&&d.drawerWidth?`calc(${"100%"-(d==null?void 0:d.drawerWidth)})`:"75%":"100%",position:"relative",zIndex:3,height:"calc(100vh - 7rem)",p:"0rem 1.5rem",overflow:"auto"},children:t}),o&&!n&&v.jsxs(v.Fragment,{children:[v.jsx(ue,{onClick:a,sx:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#07080B80",backdropFilter:"blur(3px)",zIndex:3,transition:"opacity 0.3s ease-in-out"}}),v.jsx(ue,{onClick:a,sx:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"transparent",zIndex:4}})]}),e&&v.jsxs(Io,{item:!0,sx:{width:u?"90%":(d==null?void 0:d.drawerWidth)||"25%",position:n?"relative":"absolute",top:0,right:0,height:"calc(100vh - 7rem)",backgroundColor:p.palette.primary.notifyBackground,transform:o?"translateX(0)":"translateX(100%)",transition:"transform 0.4s ease-in-out , width 0.4s ease-in-out",zIndex:4,borderLeft:`0.1rem solid ${p.palette.primary.notifyBorderColor}`,display:"flex",flexDirection:"column"},children:[v.jsxs(cn,{direction:"row",alignItems:"center",sx:{width:"100%",flexShrink:0,paddingBottom:"0.8rem",px:2,pt:"0.8rem",borderBottom:f=>`0.1rem solid ${f.palette.primary.notifyBorderColor}`},children:[!u&&v.jsxs(v.Fragment,{children:[v.jsx(ue,{sx:{display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"},onClick:c,children:v.jsx(ue,{component:"img",src:mt.Merge})}),v.jsx(Qs,{orientation:"vertical",flexItem:!0,sx:{mx:"1rem",height:"auto!important",borderColor:p.palette.primary.notifyBorderColor}})]}),v.jsxs(cn,{direction:"row",justifyContent:"space-between",alignItems:"center",flexGrow:1,children:[v.jsxs(cn,{direction:"row",gap:"0.5rem",alignItems:"center",onClick:a,sx:{cursor:"pointer"},children:[v.jsx(ue,{component:"img",src:p.icons.close}),v.jsx(wt,{sx:{fontSize:"1.2rem",color:p.palette.primary.notifyTextColor},children:r})]}),v.jsx(cn,{direction:"row",gap:"0.5rem",alignItems:"center",children:s&&!u&&v.jsx(ue,{onClick:l,sx:{cursor:"pointer"},children:v.jsx(ue,{component:"img",src:mt.Expand})})})]})]}),v.jsx(ue,{sx:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},overflow:"auto",px:2},children:e})]})]})})},tx=({layoutChildren:e,layoutProps:t})=>v.jsx(eo,{children:v.jsx(_j,{...e,...t})});tx.propTypes={layoutChildren:i.object.isRequired,layoutProps:i.object.isRequired},kt.Button=Ir,kt.Grid=Vv,kt.Header=$v,kt.InputField=$0,kt.Notification=Lj,kt.Select=Qu,kt.SliderLayout=tx,kt.Switch=z0,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})});
|
|
259
259
|
//# sourceMappingURL=index.umd.js.map
|